configure revision 3da084b3
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for libfontenc 1.0.4. 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='libfontenc' 715PACKAGE_TARNAME='libfontenc' 716PACKAGE_VERSION='1.0.4' 717PACKAGE_STRING='libfontenc 1.0.4' 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 864ENCODINGSDIR 865PKG_CONFIG 866FONTENC_CFLAGS 867FONTENC_LIBS 868LINT 869LINT_FLAGS 870LINT_TRUE 871LINT_FALSE 872LIBOBJS 873LTLIBOBJS' 874ac_subst_files='' 875 ac_precious_vars='build_alias 876host_alias 877target_alias 878CC 879CFLAGS 880LDFLAGS 881CPPFLAGS 882CPP 883CXX 884CXXFLAGS 885CCC 886CXXCPP 887F77 888FFLAGS 889PKG_CONFIG 890FONTENC_CFLAGS 891FONTENC_LIBS' 892 893 894# Initialize some variables set by options. 895ac_init_help= 896ac_init_version=false 897# The variables have the same names as the options, with 898# dashes changed to underlines. 899cache_file=/dev/null 900exec_prefix=NONE 901no_create= 902no_recursion= 903prefix=NONE 904program_prefix=NONE 905program_suffix=NONE 906program_transform_name=s,x,x, 907silent= 908site= 909srcdir= 910verbose= 911x_includes=NONE 912x_libraries=NONE 913 914# Installation directory options. 915# These are left unexpanded so users can "make install exec_prefix=/foo" 916# and all the variables that are supposed to be based on exec_prefix 917# by default will actually change. 918# Use braces instead of parens because sh, perl, etc. also accept them. 919# (The list follows the same order as the GNU Coding Standards.) 920bindir='${exec_prefix}/bin' 921sbindir='${exec_prefix}/sbin' 922libexecdir='${exec_prefix}/libexec' 923datarootdir='${prefix}/share' 924datadir='${datarootdir}' 925sysconfdir='${prefix}/etc' 926sharedstatedir='${prefix}/com' 927localstatedir='${prefix}/var' 928includedir='${prefix}/include' 929oldincludedir='/usr/include' 930docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 931infodir='${datarootdir}/info' 932htmldir='${docdir}' 933dvidir='${docdir}' 934pdfdir='${docdir}' 935psdir='${docdir}' 936libdir='${exec_prefix}/lib' 937localedir='${datarootdir}/locale' 938mandir='${datarootdir}/man' 939 940ac_prev= 941ac_dashdash= 942for ac_option 943do 944 # If the previous option needs an argument, assign it. 945 if test -n "$ac_prev"; then 946 eval $ac_prev=\$ac_option 947 ac_prev= 948 continue 949 fi 950 951 case $ac_option in 952 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 953 *) ac_optarg=yes ;; 954 esac 955 956 # Accept the important Cygnus configure options, so we can diagnose typos. 957 958 case $ac_dashdash$ac_option in 959 --) 960 ac_dashdash=yes ;; 961 962 -bindir | --bindir | --bindi | --bind | --bin | --bi) 963 ac_prev=bindir ;; 964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 965 bindir=$ac_optarg ;; 966 967 -build | --build | --buil | --bui | --bu) 968 ac_prev=build_alias ;; 969 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 970 build_alias=$ac_optarg ;; 971 972 -cache-file | --cache-file | --cache-fil | --cache-fi \ 973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 974 ac_prev=cache_file ;; 975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 977 cache_file=$ac_optarg ;; 978 979 --config-cache | -C) 980 cache_file=config.cache ;; 981 982 -datadir | --datadir | --datadi | --datad) 983 ac_prev=datadir ;; 984 -datadir=* | --datadir=* | --datadi=* | --datad=*) 985 datadir=$ac_optarg ;; 986 987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 988 | --dataroo | --dataro | --datar) 989 ac_prev=datarootdir ;; 990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 992 datarootdir=$ac_optarg ;; 993 994 -disable-* | --disable-*) 995 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 996 # Reject names that are not valid shell variable names. 997 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 998 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 999 { (exit 1); exit 1; }; } 1000 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1001 eval enable_$ac_feature=no ;; 1002 1003 -docdir | --docdir | --docdi | --doc | --do) 1004 ac_prev=docdir ;; 1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1006 docdir=$ac_optarg ;; 1007 1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1009 ac_prev=dvidir ;; 1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1011 dvidir=$ac_optarg ;; 1012 1013 -enable-* | --enable-*) 1014 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1015 # Reject names that are not valid shell variable names. 1016 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1018 { (exit 1); exit 1; }; } 1019 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1020 eval enable_$ac_feature=\$ac_optarg ;; 1021 1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1024 | --exec | --exe | --ex) 1025 ac_prev=exec_prefix ;; 1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1028 | --exec=* | --exe=* | --ex=*) 1029 exec_prefix=$ac_optarg ;; 1030 1031 -gas | --gas | --ga | --g) 1032 # Obsolete; use --with-gas. 1033 with_gas=yes ;; 1034 1035 -help | --help | --hel | --he | -h) 1036 ac_init_help=long ;; 1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1038 ac_init_help=recursive ;; 1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1040 ac_init_help=short ;; 1041 1042 -host | --host | --hos | --ho) 1043 ac_prev=host_alias ;; 1044 -host=* | --host=* | --hos=* | --ho=*) 1045 host_alias=$ac_optarg ;; 1046 1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1048 ac_prev=htmldir ;; 1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1050 | --ht=*) 1051 htmldir=$ac_optarg ;; 1052 1053 -includedir | --includedir | --includedi | --included | --include \ 1054 | --includ | --inclu | --incl | --inc) 1055 ac_prev=includedir ;; 1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1057 | --includ=* | --inclu=* | --incl=* | --inc=*) 1058 includedir=$ac_optarg ;; 1059 1060 -infodir | --infodir | --infodi | --infod | --info | --inf) 1061 ac_prev=infodir ;; 1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1063 infodir=$ac_optarg ;; 1064 1065 -libdir | --libdir | --libdi | --libd) 1066 ac_prev=libdir ;; 1067 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1068 libdir=$ac_optarg ;; 1069 1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1071 | --libexe | --libex | --libe) 1072 ac_prev=libexecdir ;; 1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1074 | --libexe=* | --libex=* | --libe=*) 1075 libexecdir=$ac_optarg ;; 1076 1077 -localedir | --localedir | --localedi | --localed | --locale) 1078 ac_prev=localedir ;; 1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1080 localedir=$ac_optarg ;; 1081 1082 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1083 | --localstate | --localstat | --localsta | --localst | --locals) 1084 ac_prev=localstatedir ;; 1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1087 localstatedir=$ac_optarg ;; 1088 1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1090 ac_prev=mandir ;; 1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1092 mandir=$ac_optarg ;; 1093 1094 -nfp | --nfp | --nf) 1095 # Obsolete; use --without-fp. 1096 with_fp=no ;; 1097 1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1099 | --no-cr | --no-c | -n) 1100 no_create=yes ;; 1101 1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1104 no_recursion=yes ;; 1105 1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1108 | --oldin | --oldi | --old | --ol | --o) 1109 ac_prev=oldincludedir ;; 1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1113 oldincludedir=$ac_optarg ;; 1114 1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1116 ac_prev=prefix ;; 1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1118 prefix=$ac_optarg ;; 1119 1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1121 | --program-pre | --program-pr | --program-p) 1122 ac_prev=program_prefix ;; 1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1125 program_prefix=$ac_optarg ;; 1126 1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1128 | --program-suf | --program-su | --program-s) 1129 ac_prev=program_suffix ;; 1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1132 program_suffix=$ac_optarg ;; 1133 1134 -program-transform-name | --program-transform-name \ 1135 | --program-transform-nam | --program-transform-na \ 1136 | --program-transform-n | --program-transform- \ 1137 | --program-transform | --program-transfor \ 1138 | --program-transfo | --program-transf \ 1139 | --program-trans | --program-tran \ 1140 | --progr-tra | --program-tr | --program-t) 1141 ac_prev=program_transform_name ;; 1142 -program-transform-name=* | --program-transform-name=* \ 1143 | --program-transform-nam=* | --program-transform-na=* \ 1144 | --program-transform-n=* | --program-transform-=* \ 1145 | --program-transform=* | --program-transfor=* \ 1146 | --program-transfo=* | --program-transf=* \ 1147 | --program-trans=* | --program-tran=* \ 1148 | --progr-tra=* | --program-tr=* | --program-t=*) 1149 program_transform_name=$ac_optarg ;; 1150 1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1152 ac_prev=pdfdir ;; 1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1154 pdfdir=$ac_optarg ;; 1155 1156 -psdir | --psdir | --psdi | --psd | --ps) 1157 ac_prev=psdir ;; 1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1159 psdir=$ac_optarg ;; 1160 1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1162 | -silent | --silent | --silen | --sile | --sil) 1163 silent=yes ;; 1164 1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1166 ac_prev=sbindir ;; 1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1168 | --sbi=* | --sb=*) 1169 sbindir=$ac_optarg ;; 1170 1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1173 | --sharedst | --shareds | --shared | --share | --shar \ 1174 | --sha | --sh) 1175 ac_prev=sharedstatedir ;; 1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1179 | --sha=* | --sh=*) 1180 sharedstatedir=$ac_optarg ;; 1181 1182 -site | --site | --sit) 1183 ac_prev=site ;; 1184 -site=* | --site=* | --sit=*) 1185 site=$ac_optarg ;; 1186 1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1188 ac_prev=srcdir ;; 1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1190 srcdir=$ac_optarg ;; 1191 1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1193 | --syscon | --sysco | --sysc | --sys | --sy) 1194 ac_prev=sysconfdir ;; 1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1197 sysconfdir=$ac_optarg ;; 1198 1199 -target | --target | --targe | --targ | --tar | --ta | --t) 1200 ac_prev=target_alias ;; 1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1202 target_alias=$ac_optarg ;; 1203 1204 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1205 verbose=yes ;; 1206 1207 -version | --version | --versio | --versi | --vers | -V) 1208 ac_init_version=: ;; 1209 1210 -with-* | --with-*) 1211 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1212 # Reject names that are not valid shell variable names. 1213 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1214 { echo "$as_me: error: invalid package name: $ac_package" >&2 1215 { (exit 1); exit 1; }; } 1216 ac_package=`echo $ac_package| sed 's/-/_/g'` 1217 eval with_$ac_package=\$ac_optarg ;; 1218 1219 -without-* | --without-*) 1220 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1221 # Reject names that are not valid shell variable names. 1222 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1223 { echo "$as_me: error: invalid package name: $ac_package" >&2 1224 { (exit 1); exit 1; }; } 1225 ac_package=`echo $ac_package | sed 's/-/_/g'` 1226 eval with_$ac_package=no ;; 1227 1228 --x) 1229 # Obsolete; use --with-x. 1230 with_x=yes ;; 1231 1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1233 | --x-incl | --x-inc | --x-in | --x-i) 1234 ac_prev=x_includes ;; 1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1237 x_includes=$ac_optarg ;; 1238 1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1241 ac_prev=x_libraries ;; 1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1244 x_libraries=$ac_optarg ;; 1245 1246 -*) { echo "$as_me: error: unrecognized option: $ac_option 1247Try \`$0 --help' for more information." >&2 1248 { (exit 1); exit 1; }; } 1249 ;; 1250 1251 *=*) 1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1253 # Reject names that are not valid shell variable names. 1254 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1255 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1256 { (exit 1); exit 1; }; } 1257 eval $ac_envvar=\$ac_optarg 1258 export $ac_envvar ;; 1259 1260 *) 1261 # FIXME: should be removed in autoconf 3.0. 1262 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1264 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1265 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1266 ;; 1267 1268 esac 1269done 1270 1271if test -n "$ac_prev"; then 1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1273 { echo "$as_me: error: missing argument to $ac_option" >&2 1274 { (exit 1); exit 1; }; } 1275fi 1276 1277# Be sure to have absolute directory names. 1278for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1279 datadir sysconfdir sharedstatedir localstatedir includedir \ 1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1281 libdir localedir mandir 1282do 1283 eval ac_val=\$$ac_var 1284 case $ac_val in 1285 [\\/$]* | ?:[\\/]* ) continue;; 1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1287 esac 1288 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1289 { (exit 1); exit 1; }; } 1290done 1291 1292# There might be people who depend on the old broken behavior: `$host' 1293# used to hold the argument of --host etc. 1294# FIXME: To remove some day. 1295build=$build_alias 1296host=$host_alias 1297target=$target_alias 1298 1299# FIXME: To remove some day. 1300if test "x$host_alias" != x; then 1301 if test "x$build_alias" = x; then 1302 cross_compiling=maybe 1303 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1304 If a cross compiler is detected then cross compile mode will be used." >&2 1305 elif test "x$build_alias" != "x$host_alias"; then 1306 cross_compiling=yes 1307 fi 1308fi 1309 1310ac_tool_prefix= 1311test -n "$host_alias" && ac_tool_prefix=$host_alias- 1312 1313test "$silent" = yes && exec 6>/dev/null 1314 1315 1316ac_pwd=`pwd` && test -n "$ac_pwd" && 1317ac_ls_di=`ls -di .` && 1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1319 { echo "$as_me: error: Working directory cannot be determined" >&2 1320 { (exit 1); exit 1; }; } 1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1322 { echo "$as_me: error: pwd does not report name of working directory" >&2 1323 { (exit 1); exit 1; }; } 1324 1325 1326# Find the source files, if location was not specified. 1327if test -z "$srcdir"; then 1328 ac_srcdir_defaulted=yes 1329 # Try the directory containing this script, then the parent directory. 1330 ac_confdir=`$as_dirname -- "$0" || 1331$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1332 X"$0" : 'X\(//\)[^/]' \| \ 1333 X"$0" : 'X\(//\)$' \| \ 1334 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1335echo X"$0" | 1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1337 s//\1/ 1338 q 1339 } 1340 /^X\(\/\/\)[^/].*/{ 1341 s//\1/ 1342 q 1343 } 1344 /^X\(\/\/\)$/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\).*/{ 1349 s//\1/ 1350 q 1351 } 1352 s/.*/./; q'` 1353 srcdir=$ac_confdir 1354 if test ! -r "$srcdir/$ac_unique_file"; then 1355 srcdir=.. 1356 fi 1357else 1358 ac_srcdir_defaulted=no 1359fi 1360if test ! -r "$srcdir/$ac_unique_file"; then 1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1362 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1363 { (exit 1); exit 1; }; } 1364fi 1365ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1366ac_abs_confdir=`( 1367 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1368 { (exit 1); exit 1; }; } 1369 pwd)` 1370# When building in place, set srcdir=. 1371if test "$ac_abs_confdir" = "$ac_pwd"; then 1372 srcdir=. 1373fi 1374# Remove unnecessary trailing slashes from srcdir. 1375# Double slashes in file names in object file debugging info 1376# mess up M-x gdb in Emacs. 1377case $srcdir in 1378*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1379esac 1380for ac_var in $ac_precious_vars; do 1381 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1382 eval ac_env_${ac_var}_value=\$${ac_var} 1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1384 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1385done 1386 1387# 1388# Report the --help message. 1389# 1390if test "$ac_init_help" = "long"; then 1391 # Omit some internal or obsolete options to make the list less imposing. 1392 # This message is too long to be a string in the A/UX 3.1 sh. 1393 cat <<_ACEOF 1394\`configure' configures libfontenc 1.0.4 to adapt to many kinds of systems. 1395 1396Usage: $0 [OPTION]... [VAR=VALUE]... 1397 1398To assign environment variables (e.g., CC, CFLAGS...), specify them as 1399VAR=VALUE. See below for descriptions of some of the useful variables. 1400 1401Defaults for the options are specified in brackets. 1402 1403Configuration: 1404 -h, --help display this help and exit 1405 --help=short display options specific to this package 1406 --help=recursive display the short help of all the included packages 1407 -V, --version display version information and exit 1408 -q, --quiet, --silent do not print \`checking...' messages 1409 --cache-file=FILE cache test results in FILE [disabled] 1410 -C, --config-cache alias for \`--cache-file=config.cache' 1411 -n, --no-create do not create output files 1412 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1413 1414Installation directories: 1415 --prefix=PREFIX install architecture-independent files in PREFIX 1416 [$ac_default_prefix] 1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1418 [PREFIX] 1419 1420By default, \`make install' will install all the files in 1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1422an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1423for instance \`--prefix=\$HOME'. 1424 1425For better control, use the options below. 1426 1427Fine tuning of the installation directories: 1428 --bindir=DIR user executables [EPREFIX/bin] 1429 --sbindir=DIR system admin executables [EPREFIX/sbin] 1430 --libexecdir=DIR program executables [EPREFIX/libexec] 1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1434 --libdir=DIR object code libraries [EPREFIX/lib] 1435 --includedir=DIR C header files [PREFIX/include] 1436 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1439 --infodir=DIR info documentation [DATAROOTDIR/info] 1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1441 --mandir=DIR man documentation [DATAROOTDIR/man] 1442 --docdir=DIR documentation root [DATAROOTDIR/doc/libfontenc] 1443 --htmldir=DIR html documentation [DOCDIR] 1444 --dvidir=DIR dvi documentation [DOCDIR] 1445 --pdfdir=DIR pdf documentation [DOCDIR] 1446 --psdir=DIR ps documentation [DOCDIR] 1447_ACEOF 1448 1449 cat <<\_ACEOF 1450 1451Program names: 1452 --program-prefix=PREFIX prepend PREFIX to installed program names 1453 --program-suffix=SUFFIX append SUFFIX to installed program names 1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1455 1456System types: 1457 --build=BUILD configure for building on BUILD [guessed] 1458 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1459_ACEOF 1460fi 1461 1462if test -n "$ac_init_help"; then 1463 case $ac_init_help in 1464 short | recursive ) echo "Configuration of libfontenc 1.0.4:";; 1465 esac 1466 cat <<\_ACEOF 1467 1468Optional Features: 1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1471 --disable-pretty-cmds show all commands executed 1472 --enable-pretty-cmds do not output the entire command lines 1473 --enable-maintainer-mode enable make rules and dependencies not useful 1474 (and sometimes confusing) to the casual installer 1475 --disable-dependency-tracking speeds up one-time build 1476 --enable-dependency-tracking do not reject slow dependency extractors 1477 --enable-shared[=PKGS] build shared libraries [default=yes] 1478 --enable-static[=PKGS] build static libraries [default=yes] 1479 --enable-fast-install[=PKGS] 1480 optimize for fast installation [default=yes] 1481 --disable-libtool-lock avoid locking (might break parallel builds) 1482 1483Optional Packages: 1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1487 --with-pic try to use only PIC/non-PIC objects [default=use 1488 both] 1489 --with-tags[=TAGS] include additional configurations [automatic] 1490 --with-encodingsdir=ENCODINGSDIR 1491 Path to font encodings 1492 --with-lint Use a lint-style source code checker (default: 1493 disabled) 1494 --with-release-version=STRING 1495 Use release version string in package name 1496 1497Some influential environment variables: 1498 CC C compiler command 1499 CFLAGS C compiler flags 1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1501 nonstandard directory <lib dir> 1502 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1503 you have headers in a nonstandard directory <include dir> 1504 CPP C preprocessor 1505 CXX C++ compiler command 1506 CXXFLAGS C++ compiler flags 1507 CXXCPP C++ preprocessor 1508 F77 Fortran 77 compiler command 1509 FFLAGS Fortran 77 compiler flags 1510 PKG_CONFIG path to pkg-config utility 1511 FONTENC_CFLAGS 1512 C compiler flags for FONTENC, overriding pkg-config 1513 FONTENC_LIBS 1514 linker flags for FONTENC, overriding pkg-config 1515 1516Use these variables to override the choices made by `configure' or to help 1517it to find libraries and programs with nonstandard names/locations. 1518 1519Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1520_ACEOF 1521ac_status=$? 1522fi 1523 1524if test "$ac_init_help" = "recursive"; then 1525 # If there are subdirs, report their specific --help. 1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1527 test -d "$ac_dir" || continue 1528 ac_builddir=. 1529 1530case "$ac_dir" in 1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1532*) 1533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1534 # A ".." for each directory in $ac_dir_suffix. 1535 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1536 case $ac_top_builddir_sub in 1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1539 esac ;; 1540esac 1541ac_abs_top_builddir=$ac_pwd 1542ac_abs_builddir=$ac_pwd$ac_dir_suffix 1543# for backward compatibility: 1544ac_top_builddir=$ac_top_build_prefix 1545 1546case $srcdir in 1547 .) # We are building in place. 1548 ac_srcdir=. 1549 ac_top_srcdir=$ac_top_builddir_sub 1550 ac_abs_top_srcdir=$ac_pwd ;; 1551 [\\/]* | ?:[\\/]* ) # Absolute name. 1552 ac_srcdir=$srcdir$ac_dir_suffix; 1553 ac_top_srcdir=$srcdir 1554 ac_abs_top_srcdir=$srcdir ;; 1555 *) # Relative name. 1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1557 ac_top_srcdir=$ac_top_build_prefix$srcdir 1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1559esac 1560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1561 1562 cd "$ac_dir" || { ac_status=$?; continue; } 1563 # Check for guested configure. 1564 if test -f "$ac_srcdir/configure.gnu"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1567 elif test -f "$ac_srcdir/configure"; then 1568 echo && 1569 $SHELL "$ac_srcdir/configure" --help=recursive 1570 else 1571 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1572 fi || ac_status=$? 1573 cd "$ac_pwd" || { ac_status=$?; break; } 1574 done 1575fi 1576 1577test -n "$ac_init_help" && exit $ac_status 1578if $ac_init_version; then 1579 cat <<\_ACEOF 1580libfontenc configure 1.0.4 1581generated by GNU Autoconf 2.60 1582 1583Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15842002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1585This configure script is free software; the Free Software Foundation 1586gives unlimited permission to copy, distribute and modify it. 1587_ACEOF 1588 exit 1589fi 1590cat >config.log <<_ACEOF 1591This file contains any messages produced by compilers while 1592running configure, to aid debugging if configure makes a mistake. 1593 1594It was created by libfontenc $as_me 1.0.4, which was 1595generated by GNU Autoconf 2.60. Invocation command line was 1596 1597 $ $0 $@ 1598 1599_ACEOF 1600exec 5>>config.log 1601{ 1602cat <<_ASUNAME 1603## --------- ## 1604## Platform. ## 1605## --------- ## 1606 1607hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1608uname -m = `(uname -m) 2>/dev/null || echo unknown` 1609uname -r = `(uname -r) 2>/dev/null || echo unknown` 1610uname -s = `(uname -s) 2>/dev/null || echo unknown` 1611uname -v = `(uname -v) 2>/dev/null || echo unknown` 1612 1613/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1614/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1615 1616/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1617/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1618/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1619/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1620/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1621/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1622/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1623 1624_ASUNAME 1625 1626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1627for as_dir in $PATH 1628do 1629 IFS=$as_save_IFS 1630 test -z "$as_dir" && as_dir=. 1631 echo "PATH: $as_dir" 1632done 1633IFS=$as_save_IFS 1634 1635} >&5 1636 1637cat >&5 <<_ACEOF 1638 1639 1640## ----------- ## 1641## Core tests. ## 1642## ----------- ## 1643 1644_ACEOF 1645 1646 1647# Keep a trace of the command line. 1648# Strip out --no-create and --no-recursion so they do not pile up. 1649# Strip out --silent because we don't want to record it for future runs. 1650# Also quote any args containing shell meta-characters. 1651# Make two passes to allow for proper duplicate-argument suppression. 1652ac_configure_args= 1653ac_configure_args0= 1654ac_configure_args1= 1655ac_must_keep_next=false 1656for ac_pass in 1 2 1657do 1658 for ac_arg 1659 do 1660 case $ac_arg in 1661 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1663 | -silent | --silent | --silen | --sile | --sil) 1664 continue ;; 1665 *\'*) 1666 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1667 esac 1668 case $ac_pass in 1669 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1670 2) 1671 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1672 if test $ac_must_keep_next = true; then 1673 ac_must_keep_next=false # Got value, back to normal. 1674 else 1675 case $ac_arg in 1676 *=* | --config-cache | -C | -disable-* | --disable-* \ 1677 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1678 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1679 | -with-* | --with-* | -without-* | --without-* | --x) 1680 case "$ac_configure_args0 " in 1681 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1682 esac 1683 ;; 1684 -* ) ac_must_keep_next=true ;; 1685 esac 1686 fi 1687 ac_configure_args="$ac_configure_args '$ac_arg'" 1688 ;; 1689 esac 1690 done 1691done 1692$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1693$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1694 1695# When interrupted or exit'd, cleanup temporary files, and complete 1696# config.log. We remove comments because anyway the quotes in there 1697# would cause problems or look ugly. 1698# WARNING: Use '\'' to represent an apostrophe within the trap. 1699# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1700trap 'exit_status=$? 1701 # Save into config.log some information that might help in debugging. 1702 { 1703 echo 1704 1705 cat <<\_ASBOX 1706## ---------------- ## 1707## Cache variables. ## 1708## ---------------- ## 1709_ASBOX 1710 echo 1711 # The following way of writing the cache mishandles newlines in values, 1712( 1713 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1714 eval ac_val=\$$ac_var 1715 case $ac_val in #( 1716 *${as_nl}*) 1717 case $ac_var in #( 1718 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1719echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1720 esac 1721 case $ac_var in #( 1722 _ | IFS | as_nl) ;; #( 1723 *) $as_unset $ac_var ;; 1724 esac ;; 1725 esac 1726 done 1727 (set) 2>&1 | 1728 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1729 *${as_nl}ac_space=\ *) 1730 sed -n \ 1731 "s/'\''/'\''\\\\'\'''\''/g; 1732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1733 ;; #( 1734 *) 1735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1736 ;; 1737 esac | 1738 sort 1739) 1740 echo 1741 1742 cat <<\_ASBOX 1743## ----------------- ## 1744## Output variables. ## 1745## ----------------- ## 1746_ASBOX 1747 echo 1748 for ac_var in $ac_subst_vars 1749 do 1750 eval ac_val=\$$ac_var 1751 case $ac_val in 1752 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1753 esac 1754 echo "$ac_var='\''$ac_val'\''" 1755 done | sort 1756 echo 1757 1758 if test -n "$ac_subst_files"; then 1759 cat <<\_ASBOX 1760## ------------------- ## 1761## File substitutions. ## 1762## ------------------- ## 1763_ASBOX 1764 echo 1765 for ac_var in $ac_subst_files 1766 do 1767 eval ac_val=\$$ac_var 1768 case $ac_val in 1769 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1770 esac 1771 echo "$ac_var='\''$ac_val'\''" 1772 done | sort 1773 echo 1774 fi 1775 1776 if test -s confdefs.h; then 1777 cat <<\_ASBOX 1778## ----------- ## 1779## confdefs.h. ## 1780## ----------- ## 1781_ASBOX 1782 echo 1783 cat confdefs.h 1784 echo 1785 fi 1786 test "$ac_signal" != 0 && 1787 echo "$as_me: caught signal $ac_signal" 1788 echo "$as_me: exit $exit_status" 1789 } >&5 1790 rm -f core *.core core.conftest.* && 1791 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1792 exit $exit_status 1793' 0 1794for ac_signal in 1 2 13 15; do 1795 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1796done 1797ac_signal=0 1798 1799# confdefs.h avoids OS command line length limits that DEFS can exceed. 1800rm -f -r conftest* confdefs.h 1801 1802# Predefined preprocessor variables. 1803 1804cat >>confdefs.h <<_ACEOF 1805#define PACKAGE_NAME "$PACKAGE_NAME" 1806_ACEOF 1807 1808 1809cat >>confdefs.h <<_ACEOF 1810#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1811_ACEOF 1812 1813 1814cat >>confdefs.h <<_ACEOF 1815#define PACKAGE_VERSION "$PACKAGE_VERSION" 1816_ACEOF 1817 1818 1819cat >>confdefs.h <<_ACEOF 1820#define PACKAGE_STRING "$PACKAGE_STRING" 1821_ACEOF 1822 1823 1824cat >>confdefs.h <<_ACEOF 1825#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1826_ACEOF 1827 1828 1829# Let the site file select an alternate cache file if it wants to. 1830# Prefer explicitly selected file to automatically selected ones. 1831if test -n "$CONFIG_SITE"; then 1832 set x "$CONFIG_SITE" 1833elif test "x$prefix" != xNONE; then 1834 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1835else 1836 set x "$ac_default_prefix/share/config.site" \ 1837 "$ac_default_prefix/etc/config.site" 1838fi 1839shift 1840for ac_site_file 1841do 1842 if test -r "$ac_site_file"; then 1843 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1844echo "$as_me: loading site script $ac_site_file" >&6;} 1845 sed 's/^/| /' "$ac_site_file" >&5 1846 . "$ac_site_file" 1847 fi 1848done 1849 1850if test -r "$cache_file"; then 1851 # Some versions of bash will fail to source /dev/null (special 1852 # files actually), so we avoid doing that. 1853 if test -f "$cache_file"; then 1854 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1855echo "$as_me: loading cache $cache_file" >&6;} 1856 case $cache_file in 1857 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1858 *) . "./$cache_file";; 1859 esac 1860 fi 1861else 1862 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1863echo "$as_me: creating cache $cache_file" >&6;} 1864 >$cache_file 1865fi 1866 1867# Check that the precious variables saved in the cache have kept the same 1868# value. 1869ac_cache_corrupted=false 1870for ac_var in $ac_precious_vars; do 1871 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1872 eval ac_new_set=\$ac_env_${ac_var}_set 1873 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1874 eval ac_new_val=\$ac_env_${ac_var}_value 1875 case $ac_old_set,$ac_new_set in 1876 set,) 1877 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1878echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1879 ac_cache_corrupted=: ;; 1880 ,set) 1881 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1882echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1883 ac_cache_corrupted=: ;; 1884 ,);; 1885 *) 1886 if test "x$ac_old_val" != "x$ac_new_val"; then 1887 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1888echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1889 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1890echo "$as_me: former value: $ac_old_val" >&2;} 1891 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1892echo "$as_me: current value: $ac_new_val" >&2;} 1893 ac_cache_corrupted=: 1894 fi;; 1895 esac 1896 # Pass precious variables to config.status. 1897 if test "$ac_new_set" = set; then 1898 case $ac_new_val in 1899 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1900 *) ac_arg=$ac_var=$ac_new_val ;; 1901 esac 1902 case " $ac_configure_args " in 1903 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1904 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1905 esac 1906 fi 1907done 1908if $ac_cache_corrupted; then 1909 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1910echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1911 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1912echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1913 { (exit 1); exit 1; }; } 1914fi 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940ac_ext=c 1941ac_cpp='$CPP $CPPFLAGS' 1942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1944ac_compiler_gnu=$ac_cv_c_compiler_gnu 1945 1946 1947am__api_version="1.9" 1948ac_aux_dir= 1949for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1950 if test -f "$ac_dir/install-sh"; then 1951 ac_aux_dir=$ac_dir 1952 ac_install_sh="$ac_aux_dir/install-sh -c" 1953 break 1954 elif test -f "$ac_dir/install.sh"; then 1955 ac_aux_dir=$ac_dir 1956 ac_install_sh="$ac_aux_dir/install.sh -c" 1957 break 1958 elif test -f "$ac_dir/shtool"; then 1959 ac_aux_dir=$ac_dir 1960 ac_install_sh="$ac_aux_dir/shtool install -c" 1961 break 1962 fi 1963done 1964if test -z "$ac_aux_dir"; then 1965 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1966echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1967 { (exit 1); exit 1; }; } 1968fi 1969 1970# These three variables are undocumented and unsupported, 1971# and are intended to be withdrawn in a future Autoconf release. 1972# They can cause serious problems if a builder's source tree is in a directory 1973# whose full name contains unusual characters. 1974ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1975ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1976ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1977 1978 1979# Find a good install program. We prefer a C program (faster), 1980# so one script is as good as another. But avoid the broken or 1981# incompatible versions: 1982# SysV /etc/install, /usr/sbin/install 1983# SunOS /usr/etc/install 1984# IRIX /sbin/install 1985# AIX /bin/install 1986# AmigaOS /C/install, which installs bootblocks on floppy discs 1987# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1988# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1989# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1990# OS/2's system install, which has a completely different semantic 1991# ./install, which can be erroneously created by make from ./install.sh. 1992{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1993echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1994if test -z "$INSTALL"; then 1995if test "${ac_cv_path_install+set}" = set; then 1996 echo $ECHO_N "(cached) $ECHO_C" >&6 1997else 1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1999for as_dir in $PATH 2000do 2001 IFS=$as_save_IFS 2002 test -z "$as_dir" && as_dir=. 2003 # Account for people who put trailing slashes in PATH elements. 2004case $as_dir/ in 2005 ./ | .// | /cC/* | \ 2006 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2007 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2008 /usr/ucb/* ) ;; 2009 *) 2010 # OSF1 and SCO ODT 3.0 have their own names for install. 2011 # Don't use installbsd from OSF since it installs stuff as root 2012 # by default. 2013 for ac_prog in ginstall scoinst install; do 2014 for ac_exec_ext in '' $ac_executable_extensions; do 2015 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 2016 if test $ac_prog = install && 2017 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2018 # AIX install. It has an incompatible calling convention. 2019 : 2020 elif test $ac_prog = install && 2021 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2022 # program-specific install script used by HP pwplus--don't use. 2023 : 2024 else 2025 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2026 break 3 2027 fi 2028 fi 2029 done 2030 done 2031 ;; 2032esac 2033done 2034IFS=$as_save_IFS 2035 2036 2037fi 2038 if test "${ac_cv_path_install+set}" = set; then 2039 INSTALL=$ac_cv_path_install 2040 else 2041 # As a last resort, use the slow shell script. Don't cache a 2042 # value for INSTALL within a source directory, because that will 2043 # break other packages using the cache if that directory is 2044 # removed, or if the value is a relative name. 2045 INSTALL=$ac_install_sh 2046 fi 2047fi 2048{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2049echo "${ECHO_T}$INSTALL" >&6; } 2050 2051# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2052# It thinks the first close brace ends the variable substitution. 2053test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2054 2055test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2056 2057test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2058 2059{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2060echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2061# Just in case 2062sleep 1 2063echo timestamp > conftest.file 2064# Do `set' in a subshell so we don't clobber the current shell's 2065# arguments. Must try -L first in case configure is actually a 2066# symlink; some systems play weird games with the mod time of symlinks 2067# (eg FreeBSD returns the mod time of the symlink's containing 2068# directory). 2069if ( 2070 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2071 if test "$*" = "X"; then 2072 # -L didn't work. 2073 set X `ls -t $srcdir/configure conftest.file` 2074 fi 2075 rm -f conftest.file 2076 if test "$*" != "X $srcdir/configure conftest.file" \ 2077 && test "$*" != "X conftest.file $srcdir/configure"; then 2078 2079 # If neither matched, then we have a broken ls. This can happen 2080 # if, for instance, CONFIG_SHELL is bash and it inherits a 2081 # broken ls alias from the environment. This has actually 2082 # happened. Such a system could not be considered "sane". 2083 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2084alias in your environment" >&5 2085echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2086alias in your environment" >&2;} 2087 { (exit 1); exit 1; }; } 2088 fi 2089 2090 test "$2" = conftest.file 2091 ) 2092then 2093 # Ok. 2094 : 2095else 2096 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2097Check your system clock" >&5 2098echo "$as_me: error: newly created file is older than distributed files! 2099Check your system clock" >&2;} 2100 { (exit 1); exit 1; }; } 2101fi 2102{ echo "$as_me:$LINENO: result: yes" >&5 2103echo "${ECHO_T}yes" >&6; } 2104test "$program_prefix" != NONE && 2105 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2106# Use a double $ so make ignores it. 2107test "$program_suffix" != NONE && 2108 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2109# Double any \ or $. echo might interpret backslashes. 2110# By default was `s,x,x', remove it if useless. 2111cat <<\_ACEOF >conftest.sed 2112s/[\\$]/&&/g;s/;s,x,x,$// 2113_ACEOF 2114program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2115rm -f conftest.sed 2116 2117# expand $ac_aux_dir to an absolute path 2118am_aux_dir=`cd $ac_aux_dir && pwd` 2119 2120test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2121# Use eval to expand $SHELL 2122if eval "$MISSING --run true"; then 2123 am_missing_run="$MISSING --run " 2124else 2125 am_missing_run= 2126 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2127echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2128fi 2129 2130if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2131 # We used to keeping the `.' as first argument, in order to 2132 # allow $(mkdir_p) to be used without argument. As in 2133 # $(mkdir_p) $(somedir) 2134 # where $(somedir) is conditionally defined. However this is wrong 2135 # for two reasons: 2136 # 1. if the package is installed by a user who cannot write `.' 2137 # make install will fail, 2138 # 2. the above comment should most certainly read 2139 # $(mkdir_p) $(DESTDIR)$(somedir) 2140 # so it does not work when $(somedir) is undefined and 2141 # $(DESTDIR) is not. 2142 # To support the latter case, we have to write 2143 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2144 # so the `.' trick is pointless. 2145 mkdir_p='mkdir -p --' 2146else 2147 # On NextStep and OpenStep, the `mkdir' command does not 2148 # recognize any option. It will interpret all options as 2149 # directories to create, and then abort because `.' already 2150 # exists. 2151 for d in ./-p ./--version; 2152 do 2153 test -d $d && rmdir $d 2154 done 2155 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2156 if test -f "$ac_aux_dir/mkinstalldirs"; then 2157 mkdir_p='$(mkinstalldirs)' 2158 else 2159 mkdir_p='$(install_sh) -d' 2160 fi 2161fi 2162 2163for ac_prog in gawk mawk nawk awk 2164do 2165 # Extract the first word of "$ac_prog", so it can be a program name with args. 2166set dummy $ac_prog; ac_word=$2 2167{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2169if test "${ac_cv_prog_AWK+set}" = set; then 2170 echo $ECHO_N "(cached) $ECHO_C" >&6 2171else 2172 if test -n "$AWK"; then 2173 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2174else 2175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2176for as_dir in $PATH 2177do 2178 IFS=$as_save_IFS 2179 test -z "$as_dir" && as_dir=. 2180 for ac_exec_ext in '' $ac_executable_extensions; do 2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2182 ac_cv_prog_AWK="$ac_prog" 2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2184 break 2 2185 fi 2186done 2187done 2188IFS=$as_save_IFS 2189 2190fi 2191fi 2192AWK=$ac_cv_prog_AWK 2193if test -n "$AWK"; then 2194 { echo "$as_me:$LINENO: result: $AWK" >&5 2195echo "${ECHO_T}$AWK" >&6; } 2196else 2197 { echo "$as_me:$LINENO: result: no" >&5 2198echo "${ECHO_T}no" >&6; } 2199fi 2200 2201 2202 test -n "$AWK" && break 2203done 2204 2205{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2206echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2207set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2208if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2209 echo $ECHO_N "(cached) $ECHO_C" >&6 2210else 2211 cat >conftest.make <<\_ACEOF 2212SHELL = /bin/sh 2213all: 2214 @echo '@@@%%%=$(MAKE)=@@@%%%' 2215_ACEOF 2216# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2217case `${MAKE-make} -f conftest.make 2>/dev/null` in 2218 *@@@%%%=?*=@@@%%%*) 2219 eval ac_cv_prog_make_${ac_make}_set=yes;; 2220 *) 2221 eval ac_cv_prog_make_${ac_make}_set=no;; 2222esac 2223rm -f conftest.make 2224fi 2225if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2226 { echo "$as_me:$LINENO: result: yes" >&5 2227echo "${ECHO_T}yes" >&6; } 2228 SET_MAKE= 2229else 2230 { echo "$as_me:$LINENO: result: no" >&5 2231echo "${ECHO_T}no" >&6; } 2232 SET_MAKE="MAKE=${MAKE-make}" 2233fi 2234 2235rm -rf .tst 2>/dev/null 2236mkdir .tst 2>/dev/null 2237if test -d .tst; then 2238 am__leading_dot=. 2239else 2240 am__leading_dot=_ 2241fi 2242rmdir .tst 2>/dev/null 2243 2244# Check whether --enable-pretty-cmds was given. 2245if test "${enable_pretty_cmds+set}" = set; then 2246 enableval=$enable_pretty_cmds; 2247fi 2248 2249AMSHOWCMDSAT='' 2250AMDEPSHOWCMDSAT='' 2251AMPRETTYECHO=true 2252AMCMDECHO=echo 2253if test "x$enable_pretty_cmds" = xyes; 2254then 2255 AMSHOWCMDSAT='@' 2256 test "x$enable_dependency_tracking" = xno && AMDEPSHOWCMDSAT='@' 2257 AMPRETTYECHO=echo 2258 AMCMDECHO=true 2259 LT_QUIET='--quiet' 2260fi 2261 2262 2263 2264 2265 2266 2267# test to see if srcdir already configured 2268if test "`cd $srcdir && pwd`" != "`pwd`" && 2269 test -f $srcdir/config.status; then 2270 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2271echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2272 { (exit 1); exit 1; }; } 2273fi 2274 2275# test whether we have cygpath 2276if test -z "$CYGPATH_W"; then 2277 if (cygpath --version) >/dev/null 2>/dev/null; then 2278 CYGPATH_W='cygpath -w' 2279 else 2280 CYGPATH_W=echo 2281 fi 2282fi 2283 2284 2285# Define the identity of the package. 2286 PACKAGE='libfontenc' 2287 VERSION='1.0.4' 2288 2289 2290cat >>confdefs.h <<_ACEOF 2291#define PACKAGE "$PACKAGE" 2292_ACEOF 2293 2294 2295cat >>confdefs.h <<_ACEOF 2296#define VERSION "$VERSION" 2297_ACEOF 2298 2299# Some tools Automake needs. 2300 2301ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2302 2303 2304AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2305 2306 2307AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2308 2309 2310AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2311 2312 2313MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2314 2315install_sh=${install_sh-"$am_aux_dir/install-sh"} 2316 2317# Installed binaries are usually stripped using `strip' when the user 2318# run `make install-strip'. However `strip' might not be the right 2319# tool to use in cross-compilation environments, therefore Automake 2320# will honor the `STRIP' environment variable to overrule this program. 2321if test "$cross_compiling" != no; then 2322 if test -n "$ac_tool_prefix"; then 2323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2324set dummy ${ac_tool_prefix}strip; ac_word=$2 2325{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2327if test "${ac_cv_prog_STRIP+set}" = set; then 2328 echo $ECHO_N "(cached) $ECHO_C" >&6 2329else 2330 if test -n "$STRIP"; then 2331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2332else 2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2334for as_dir in $PATH 2335do 2336 IFS=$as_save_IFS 2337 test -z "$as_dir" && as_dir=. 2338 for ac_exec_ext in '' $ac_executable_extensions; do 2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2340 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2342 break 2 2343 fi 2344done 2345done 2346IFS=$as_save_IFS 2347 2348fi 2349fi 2350STRIP=$ac_cv_prog_STRIP 2351if test -n "$STRIP"; then 2352 { echo "$as_me:$LINENO: result: $STRIP" >&5 2353echo "${ECHO_T}$STRIP" >&6; } 2354else 2355 { echo "$as_me:$LINENO: result: no" >&5 2356echo "${ECHO_T}no" >&6; } 2357fi 2358 2359 2360fi 2361if test -z "$ac_cv_prog_STRIP"; then 2362 ac_ct_STRIP=$STRIP 2363 # Extract the first word of "strip", so it can be a program name with args. 2364set dummy strip; ac_word=$2 2365{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2367if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2368 echo $ECHO_N "(cached) $ECHO_C" >&6 2369else 2370 if test -n "$ac_ct_STRIP"; then 2371 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2372else 2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2374for as_dir in $PATH 2375do 2376 IFS=$as_save_IFS 2377 test -z "$as_dir" && as_dir=. 2378 for ac_exec_ext in '' $ac_executable_extensions; do 2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2380 ac_cv_prog_ac_ct_STRIP="strip" 2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2382 break 2 2383 fi 2384done 2385done 2386IFS=$as_save_IFS 2387 2388fi 2389fi 2390ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2391if test -n "$ac_ct_STRIP"; then 2392 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2393echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2394else 2395 { echo "$as_me:$LINENO: result: no" >&5 2396echo "${ECHO_T}no" >&6; } 2397fi 2398 2399 if test "x$ac_ct_STRIP" = x; then 2400 STRIP=":" 2401 else 2402 case $cross_compiling:$ac_tool_warned in 2403yes:) 2404{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2405whose name does not start with the host triplet. If you think this 2406configuration is useful to you, please write to autoconf@gnu.org." >&5 2407echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2408whose name does not start with the host triplet. If you think this 2409configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2410ac_tool_warned=yes ;; 2411esac 2412 STRIP=$ac_ct_STRIP 2413 fi 2414else 2415 STRIP="$ac_cv_prog_STRIP" 2416fi 2417 2418fi 2419INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2420 2421# We need awk for the "check" target. The system "awk" is bad on 2422# some platforms. 2423# Always define AMTAR for backward compatibility. 2424 2425AMTAR=${AMTAR-"${am_missing_run}tar"} 2426 2427am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2428 2429 2430 2431 2432 2433 2434{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2435echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2436 # Check whether --enable-maintainer-mode was given. 2437if test "${enable_maintainer_mode+set}" = set; then 2438 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2439else 2440 USE_MAINTAINER_MODE=no 2441fi 2442 2443 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2444echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2445 2446 2447if test $USE_MAINTAINER_MODE = yes; then 2448 MAINTAINER_MODE_TRUE= 2449 MAINTAINER_MODE_FALSE='#' 2450else 2451 MAINTAINER_MODE_TRUE='#' 2452 MAINTAINER_MODE_FALSE= 2453fi 2454 2455 MAINT=$MAINTAINER_MODE_TRUE 2456 2457 2458 2459ac_config_headers="$ac_config_headers config.h" 2460 2461 2462# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro 2463 2464 2465 XORG_MACROS_needed_version=1.1 2466 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 2467 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2468 { echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5 2469echo $ECHO_N "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... $ECHO_C" >&6; } 2470 XORG_MACROS_version=1.1.3 2471 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 2472 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2473 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 2474 { { echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5 2475echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;} 2476 { (exit 1); exit 1; }; } 2477 fi 2478 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 2479 { { echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5 2480echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;} 2481 { (exit 1); exit 1; }; } 2482 fi 2483 { echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5 2484echo "${ECHO_T}yes, $XORG_MACROS_version" >&6; } 2485 2486 2487# Check for progs 2488ac_ext=c 2489ac_cpp='$CPP $CPPFLAGS' 2490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2492ac_compiler_gnu=$ac_cv_c_compiler_gnu 2493if test -n "$ac_tool_prefix"; then 2494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2495set dummy ${ac_tool_prefix}gcc; ac_word=$2 2496{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2498if test "${ac_cv_prog_CC+set}" = set; then 2499 echo $ECHO_N "(cached) $ECHO_C" >&6 2500else 2501 if test -n "$CC"; then 2502 ac_cv_prog_CC="$CC" # Let the user override the test. 2503else 2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2505for as_dir in $PATH 2506do 2507 IFS=$as_save_IFS 2508 test -z "$as_dir" && as_dir=. 2509 for ac_exec_ext in '' $ac_executable_extensions; do 2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2511 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2513 break 2 2514 fi 2515done 2516done 2517IFS=$as_save_IFS 2518 2519fi 2520fi 2521CC=$ac_cv_prog_CC 2522if test -n "$CC"; then 2523 { echo "$as_me:$LINENO: result: $CC" >&5 2524echo "${ECHO_T}$CC" >&6; } 2525else 2526 { echo "$as_me:$LINENO: result: no" >&5 2527echo "${ECHO_T}no" >&6; } 2528fi 2529 2530 2531fi 2532if test -z "$ac_cv_prog_CC"; then 2533 ac_ct_CC=$CC 2534 # Extract the first word of "gcc", so it can be a program name with args. 2535set dummy gcc; ac_word=$2 2536{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2538if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2539 echo $ECHO_N "(cached) $ECHO_C" >&6 2540else 2541 if test -n "$ac_ct_CC"; then 2542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2543else 2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2545for as_dir in $PATH 2546do 2547 IFS=$as_save_IFS 2548 test -z "$as_dir" && as_dir=. 2549 for ac_exec_ext in '' $ac_executable_extensions; do 2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2551 ac_cv_prog_ac_ct_CC="gcc" 2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2553 break 2 2554 fi 2555done 2556done 2557IFS=$as_save_IFS 2558 2559fi 2560fi 2561ac_ct_CC=$ac_cv_prog_ac_ct_CC 2562if test -n "$ac_ct_CC"; then 2563 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2564echo "${ECHO_T}$ac_ct_CC" >&6; } 2565else 2566 { echo "$as_me:$LINENO: result: no" >&5 2567echo "${ECHO_T}no" >&6; } 2568fi 2569 2570 if test "x$ac_ct_CC" = x; then 2571 CC="" 2572 else 2573 case $cross_compiling:$ac_tool_warned in 2574yes:) 2575{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2576whose name does not start with the host triplet. If you think this 2577configuration is useful to you, please write to autoconf@gnu.org." >&5 2578echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2579whose name does not start with the host triplet. If you think this 2580configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2581ac_tool_warned=yes ;; 2582esac 2583 CC=$ac_ct_CC 2584 fi 2585else 2586 CC="$ac_cv_prog_CC" 2587fi 2588 2589if test -z "$CC"; then 2590 if test -n "$ac_tool_prefix"; then 2591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2592set dummy ${ac_tool_prefix}cc; ac_word=$2 2593{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2595if test "${ac_cv_prog_CC+set}" = set; then 2596 echo $ECHO_N "(cached) $ECHO_C" >&6 2597else 2598 if test -n "$CC"; then 2599 ac_cv_prog_CC="$CC" # Let the user override the test. 2600else 2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2602for as_dir in $PATH 2603do 2604 IFS=$as_save_IFS 2605 test -z "$as_dir" && as_dir=. 2606 for ac_exec_ext in '' $ac_executable_extensions; do 2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2608 ac_cv_prog_CC="${ac_tool_prefix}cc" 2609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2610 break 2 2611 fi 2612done 2613done 2614IFS=$as_save_IFS 2615 2616fi 2617fi 2618CC=$ac_cv_prog_CC 2619if test -n "$CC"; then 2620 { echo "$as_me:$LINENO: result: $CC" >&5 2621echo "${ECHO_T}$CC" >&6; } 2622else 2623 { echo "$as_me:$LINENO: result: no" >&5 2624echo "${ECHO_T}no" >&6; } 2625fi 2626 2627 2628 fi 2629fi 2630if test -z "$CC"; then 2631 # Extract the first word of "cc", so it can be a program name with args. 2632set dummy cc; ac_word=$2 2633{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2635if test "${ac_cv_prog_CC+set}" = set; then 2636 echo $ECHO_N "(cached) $ECHO_C" >&6 2637else 2638 if test -n "$CC"; then 2639 ac_cv_prog_CC="$CC" # Let the user override the test. 2640else 2641 ac_prog_rejected=no 2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2643for as_dir in $PATH 2644do 2645 IFS=$as_save_IFS 2646 test -z "$as_dir" && as_dir=. 2647 for ac_exec_ext in '' $ac_executable_extensions; do 2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2650 ac_prog_rejected=yes 2651 continue 2652 fi 2653 ac_cv_prog_CC="cc" 2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657done 2658done 2659IFS=$as_save_IFS 2660 2661if test $ac_prog_rejected = yes; then 2662 # We found a bogon in the path, so make sure we never use it. 2663 set dummy $ac_cv_prog_CC 2664 shift 2665 if test $# != 0; then 2666 # We chose a different compiler from the bogus one. 2667 # However, it has the same basename, so the bogon will be chosen 2668 # first if we set CC to just the basename; use the full file name. 2669 shift 2670 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2671 fi 2672fi 2673fi 2674fi 2675CC=$ac_cv_prog_CC 2676if test -n "$CC"; then 2677 { echo "$as_me:$LINENO: result: $CC" >&5 2678echo "${ECHO_T}$CC" >&6; } 2679else 2680 { echo "$as_me:$LINENO: result: no" >&5 2681echo "${ECHO_T}no" >&6; } 2682fi 2683 2684 2685fi 2686if test -z "$CC"; then 2687 if test -n "$ac_tool_prefix"; then 2688 for ac_prog in cl.exe 2689 do 2690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2691set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2692{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2694if test "${ac_cv_prog_CC+set}" = set; then 2695 echo $ECHO_N "(cached) $ECHO_C" >&6 2696else 2697 if test -n "$CC"; then 2698 ac_cv_prog_CC="$CC" # Let the user override the test. 2699else 2700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2701for as_dir in $PATH 2702do 2703 IFS=$as_save_IFS 2704 test -z "$as_dir" && as_dir=. 2705 for ac_exec_ext in '' $ac_executable_extensions; do 2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2709 break 2 2710 fi 2711done 2712done 2713IFS=$as_save_IFS 2714 2715fi 2716fi 2717CC=$ac_cv_prog_CC 2718if test -n "$CC"; then 2719 { echo "$as_me:$LINENO: result: $CC" >&5 2720echo "${ECHO_T}$CC" >&6; } 2721else 2722 { echo "$as_me:$LINENO: result: no" >&5 2723echo "${ECHO_T}no" >&6; } 2724fi 2725 2726 2727 test -n "$CC" && break 2728 done 2729fi 2730if test -z "$CC"; then 2731 ac_ct_CC=$CC 2732 for ac_prog in cl.exe 2733do 2734 # Extract the first word of "$ac_prog", so it can be a program name with args. 2735set dummy $ac_prog; ac_word=$2 2736{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2738if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2739 echo $ECHO_N "(cached) $ECHO_C" >&6 2740else 2741 if test -n "$ac_ct_CC"; then 2742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2743else 2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2745for as_dir in $PATH 2746do 2747 IFS=$as_save_IFS 2748 test -z "$as_dir" && as_dir=. 2749 for ac_exec_ext in '' $ac_executable_extensions; do 2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2751 ac_cv_prog_ac_ct_CC="$ac_prog" 2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2753 break 2 2754 fi 2755done 2756done 2757IFS=$as_save_IFS 2758 2759fi 2760fi 2761ac_ct_CC=$ac_cv_prog_ac_ct_CC 2762if test -n "$ac_ct_CC"; then 2763 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2764echo "${ECHO_T}$ac_ct_CC" >&6; } 2765else 2766 { echo "$as_me:$LINENO: result: no" >&5 2767echo "${ECHO_T}no" >&6; } 2768fi 2769 2770 2771 test -n "$ac_ct_CC" && break 2772done 2773 2774 if test "x$ac_ct_CC" = x; then 2775 CC="" 2776 else 2777 case $cross_compiling:$ac_tool_warned in 2778yes:) 2779{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2780whose name does not start with the host triplet. If you think this 2781configuration is useful to you, please write to autoconf@gnu.org." >&5 2782echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2783whose name does not start with the host triplet. If you think this 2784configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2785ac_tool_warned=yes ;; 2786esac 2787 CC=$ac_ct_CC 2788 fi 2789fi 2790 2791fi 2792 2793 2794test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2795See \`config.log' for more details." >&5 2796echo "$as_me: error: no acceptable C compiler found in \$PATH 2797See \`config.log' for more details." >&2;} 2798 { (exit 1); exit 1; }; } 2799 2800# Provide some information about the compiler. 2801echo "$as_me:$LINENO: checking for C compiler version" >&5 2802ac_compiler=`set X $ac_compile; echo $2` 2803{ (ac_try="$ac_compiler --version >&5" 2804case "(($ac_try" in 2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2806 *) ac_try_echo=$ac_try;; 2807esac 2808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2809 (eval "$ac_compiler --version >&5") 2>&5 2810 ac_status=$? 2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2812 (exit $ac_status); } 2813{ (ac_try="$ac_compiler -v >&5" 2814case "(($ac_try" in 2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2816 *) ac_try_echo=$ac_try;; 2817esac 2818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2819 (eval "$ac_compiler -v >&5") 2>&5 2820 ac_status=$? 2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2822 (exit $ac_status); } 2823{ (ac_try="$ac_compiler -V >&5" 2824case "(($ac_try" in 2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2826 *) ac_try_echo=$ac_try;; 2827esac 2828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2829 (eval "$ac_compiler -V >&5") 2>&5 2830 ac_status=$? 2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2832 (exit $ac_status); } 2833 2834cat >conftest.$ac_ext <<_ACEOF 2835/* confdefs.h. */ 2836_ACEOF 2837cat confdefs.h >>conftest.$ac_ext 2838cat >>conftest.$ac_ext <<_ACEOF 2839/* end confdefs.h. */ 2840 2841int 2842main () 2843{ 2844 2845 ; 2846 return 0; 2847} 2848_ACEOF 2849ac_clean_files_save=$ac_clean_files 2850ac_clean_files="$ac_clean_files a.out a.exe b.out" 2851# Try to create an executable without -o first, disregard a.out. 2852# It will help us diagnose broken compilers, and finding out an intuition 2853# of exeext. 2854{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2855echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2856ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2857# 2858# List of possible output files, starting from the most likely. 2859# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2860# only as a last resort. b.out is created by i960 compilers. 2861ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2862# 2863# The IRIX 6 linker writes into existing files which may not be 2864# executable, retaining their permissions. Remove them first so a 2865# subsequent execution test works. 2866ac_rmfiles= 2867for ac_file in $ac_files 2868do 2869 case $ac_file in 2870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2871 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2872 esac 2873done 2874rm -f $ac_rmfiles 2875 2876if { (ac_try="$ac_link_default" 2877case "(($ac_try" in 2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2879 *) ac_try_echo=$ac_try;; 2880esac 2881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2882 (eval "$ac_link_default") 2>&5 2883 ac_status=$? 2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2885 (exit $ac_status); }; then 2886 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2887# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2888# in a Makefile. We should not override ac_cv_exeext if it was cached, 2889# so that the user can short-circuit this test for compilers unknown to 2890# Autoconf. 2891for ac_file in $ac_files 2892do 2893 test -f "$ac_file" || continue 2894 case $ac_file in 2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2896 ;; 2897 [ab].out ) 2898 # We found the default executable, but exeext='' is most 2899 # certainly right. 2900 break;; 2901 *.* ) 2902 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2903 then :; else 2904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2905 fi 2906 # We set ac_cv_exeext here because the later test for it is not 2907 # safe: cross compilers may not add the suffix if given an `-o' 2908 # argument, so we may need to know it at that point already. 2909 # Even if this section looks crufty: it has the advantage of 2910 # actually working. 2911 break;; 2912 * ) 2913 break;; 2914 esac 2915done 2916test "$ac_cv_exeext" = no && ac_cv_exeext= 2917 2918else 2919 echo "$as_me: failed program was:" >&5 2920sed 's/^/| /' conftest.$ac_ext >&5 2921 2922{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2923See \`config.log' for more details." >&5 2924echo "$as_me: error: C compiler cannot create executables 2925See \`config.log' for more details." >&2;} 2926 { (exit 77); exit 77; }; } 2927fi 2928 2929ac_exeext=$ac_cv_exeext 2930{ echo "$as_me:$LINENO: result: $ac_file" >&5 2931echo "${ECHO_T}$ac_file" >&6; } 2932 2933# Check that the compiler produces executables we can run. If not, either 2934# the compiler is broken, or we cross compile. 2935{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2936echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2937# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2938# If not cross compiling, check that we can run a simple program. 2939if test "$cross_compiling" != yes; then 2940 if { ac_try='./$ac_file' 2941 { (case "(($ac_try" in 2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2943 *) ac_try_echo=$ac_try;; 2944esac 2945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2946 (eval "$ac_try") 2>&5 2947 ac_status=$? 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2949 (exit $ac_status); }; }; then 2950 cross_compiling=no 2951 else 2952 if test "$cross_compiling" = maybe; then 2953 cross_compiling=yes 2954 else 2955 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2956If you meant to cross compile, use \`--host'. 2957See \`config.log' for more details." >&5 2958echo "$as_me: error: cannot run C compiled programs. 2959If you meant to cross compile, use \`--host'. 2960See \`config.log' for more details." >&2;} 2961 { (exit 1); exit 1; }; } 2962 fi 2963 fi 2964fi 2965{ echo "$as_me:$LINENO: result: yes" >&5 2966echo "${ECHO_T}yes" >&6; } 2967 2968rm -f a.out a.exe conftest$ac_cv_exeext b.out 2969ac_clean_files=$ac_clean_files_save 2970# Check that the compiler produces executables we can run. If not, either 2971# the compiler is broken, or we cross compile. 2972{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2973echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2974{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2975echo "${ECHO_T}$cross_compiling" >&6; } 2976 2977{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2978echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2979if { (ac_try="$ac_link" 2980case "(($ac_try" in 2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2982 *) ac_try_echo=$ac_try;; 2983esac 2984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2985 (eval "$ac_link") 2>&5 2986 ac_status=$? 2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2988 (exit $ac_status); }; then 2989 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2990# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2991# work properly (i.e., refer to `conftest.exe'), while it won't with 2992# `rm'. 2993for ac_file in conftest.exe conftest conftest.*; do 2994 test -f "$ac_file" || continue 2995 case $ac_file in 2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2998 break;; 2999 * ) break;; 3000 esac 3001done 3002else 3003 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3004See \`config.log' for more details." >&5 3005echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3006See \`config.log' for more details." >&2;} 3007 { (exit 1); exit 1; }; } 3008fi 3009 3010rm -f conftest$ac_cv_exeext 3011{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3012echo "${ECHO_T}$ac_cv_exeext" >&6; } 3013 3014rm -f conftest.$ac_ext 3015EXEEXT=$ac_cv_exeext 3016ac_exeext=$EXEEXT 3017{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3018echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3019if test "${ac_cv_objext+set}" = set; then 3020 echo $ECHO_N "(cached) $ECHO_C" >&6 3021else 3022 cat >conftest.$ac_ext <<_ACEOF 3023/* confdefs.h. */ 3024_ACEOF 3025cat confdefs.h >>conftest.$ac_ext 3026cat >>conftest.$ac_ext <<_ACEOF 3027/* end confdefs.h. */ 3028 3029int 3030main () 3031{ 3032 3033 ; 3034 return 0; 3035} 3036_ACEOF 3037rm -f conftest.o conftest.obj 3038if { (ac_try="$ac_compile" 3039case "(($ac_try" in 3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3041 *) ac_try_echo=$ac_try;; 3042esac 3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3044 (eval "$ac_compile") 2>&5 3045 ac_status=$? 3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3047 (exit $ac_status); }; then 3048 for ac_file in conftest.o conftest.obj conftest.*; do 3049 test -f "$ac_file" || continue; 3050 case $ac_file in 3051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3053 break;; 3054 esac 3055done 3056else 3057 echo "$as_me: failed program was:" >&5 3058sed 's/^/| /' conftest.$ac_ext >&5 3059 3060{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3061See \`config.log' for more details." >&5 3062echo "$as_me: error: cannot compute suffix of object files: cannot compile 3063See \`config.log' for more details." >&2;} 3064 { (exit 1); exit 1; }; } 3065fi 3066 3067rm -f conftest.$ac_cv_objext conftest.$ac_ext 3068fi 3069{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3070echo "${ECHO_T}$ac_cv_objext" >&6; } 3071OBJEXT=$ac_cv_objext 3072ac_objext=$OBJEXT 3073{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3074echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3075if test "${ac_cv_c_compiler_gnu+set}" = set; then 3076 echo $ECHO_N "(cached) $ECHO_C" >&6 3077else 3078 cat >conftest.$ac_ext <<_ACEOF 3079/* confdefs.h. */ 3080_ACEOF 3081cat confdefs.h >>conftest.$ac_ext 3082cat >>conftest.$ac_ext <<_ACEOF 3083/* end confdefs.h. */ 3084 3085int 3086main () 3087{ 3088#ifndef __GNUC__ 3089 choke me 3090#endif 3091 3092 ; 3093 return 0; 3094} 3095_ACEOF 3096rm -f conftest.$ac_objext 3097if { (ac_try="$ac_compile" 3098case "(($ac_try" in 3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3100 *) ac_try_echo=$ac_try;; 3101esac 3102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3103 (eval "$ac_compile") 2>conftest.er1 3104 ac_status=$? 3105 grep -v '^ *+' conftest.er1 >conftest.err 3106 rm -f conftest.er1 3107 cat conftest.err >&5 3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3109 (exit $ac_status); } && 3110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3111 { (case "(($ac_try" in 3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3113 *) ac_try_echo=$ac_try;; 3114esac 3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3116 (eval "$ac_try") 2>&5 3117 ac_status=$? 3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3119 (exit $ac_status); }; } && 3120 { ac_try='test -s conftest.$ac_objext' 3121 { (case "(($ac_try" in 3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3123 *) ac_try_echo=$ac_try;; 3124esac 3125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3126 (eval "$ac_try") 2>&5 3127 ac_status=$? 3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3129 (exit $ac_status); }; }; then 3130 ac_compiler_gnu=yes 3131else 3132 echo "$as_me: failed program was:" >&5 3133sed 's/^/| /' conftest.$ac_ext >&5 3134 3135 ac_compiler_gnu=no 3136fi 3137 3138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3139ac_cv_c_compiler_gnu=$ac_compiler_gnu 3140 3141fi 3142{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3143echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3144GCC=`test $ac_compiler_gnu = yes && echo yes` 3145ac_test_CFLAGS=${CFLAGS+set} 3146ac_save_CFLAGS=$CFLAGS 3147{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3148echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3149if test "${ac_cv_prog_cc_g+set}" = set; then 3150 echo $ECHO_N "(cached) $ECHO_C" >&6 3151else 3152 ac_save_c_werror_flag=$ac_c_werror_flag 3153 ac_c_werror_flag=yes 3154 ac_cv_prog_cc_g=no 3155 CFLAGS="-g" 3156 cat >conftest.$ac_ext <<_ACEOF 3157/* confdefs.h. */ 3158_ACEOF 3159cat confdefs.h >>conftest.$ac_ext 3160cat >>conftest.$ac_ext <<_ACEOF 3161/* end confdefs.h. */ 3162 3163int 3164main () 3165{ 3166 3167 ; 3168 return 0; 3169} 3170_ACEOF 3171rm -f conftest.$ac_objext 3172if { (ac_try="$ac_compile" 3173case "(($ac_try" in 3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3175 *) ac_try_echo=$ac_try;; 3176esac 3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3178 (eval "$ac_compile") 2>conftest.er1 3179 ac_status=$? 3180 grep -v '^ *+' conftest.er1 >conftest.err 3181 rm -f conftest.er1 3182 cat conftest.err >&5 3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3184 (exit $ac_status); } && 3185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3186 { (case "(($ac_try" in 3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3188 *) ac_try_echo=$ac_try;; 3189esac 3190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3191 (eval "$ac_try") 2>&5 3192 ac_status=$? 3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3194 (exit $ac_status); }; } && 3195 { ac_try='test -s conftest.$ac_objext' 3196 { (case "(($ac_try" in 3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3198 *) ac_try_echo=$ac_try;; 3199esac 3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3201 (eval "$ac_try") 2>&5 3202 ac_status=$? 3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3204 (exit $ac_status); }; }; then 3205 ac_cv_prog_cc_g=yes 3206else 3207 echo "$as_me: failed program was:" >&5 3208sed 's/^/| /' conftest.$ac_ext >&5 3209 3210 CFLAGS="" 3211 cat >conftest.$ac_ext <<_ACEOF 3212/* confdefs.h. */ 3213_ACEOF 3214cat confdefs.h >>conftest.$ac_ext 3215cat >>conftest.$ac_ext <<_ACEOF 3216/* end confdefs.h. */ 3217 3218int 3219main () 3220{ 3221 3222 ; 3223 return 0; 3224} 3225_ACEOF 3226rm -f conftest.$ac_objext 3227if { (ac_try="$ac_compile" 3228case "(($ac_try" in 3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3230 *) ac_try_echo=$ac_try;; 3231esac 3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3233 (eval "$ac_compile") 2>conftest.er1 3234 ac_status=$? 3235 grep -v '^ *+' conftest.er1 >conftest.err 3236 rm -f conftest.er1 3237 cat conftest.err >&5 3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3239 (exit $ac_status); } && 3240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3241 { (case "(($ac_try" in 3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3243 *) ac_try_echo=$ac_try;; 3244esac 3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3246 (eval "$ac_try") 2>&5 3247 ac_status=$? 3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3249 (exit $ac_status); }; } && 3250 { ac_try='test -s conftest.$ac_objext' 3251 { (case "(($ac_try" in 3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3253 *) ac_try_echo=$ac_try;; 3254esac 3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3256 (eval "$ac_try") 2>&5 3257 ac_status=$? 3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3259 (exit $ac_status); }; }; then 3260 : 3261else 3262 echo "$as_me: failed program was:" >&5 3263sed 's/^/| /' conftest.$ac_ext >&5 3264 3265 ac_c_werror_flag=$ac_save_c_werror_flag 3266 CFLAGS="-g" 3267 cat >conftest.$ac_ext <<_ACEOF 3268/* confdefs.h. */ 3269_ACEOF 3270cat confdefs.h >>conftest.$ac_ext 3271cat >>conftest.$ac_ext <<_ACEOF 3272/* end confdefs.h. */ 3273 3274int 3275main () 3276{ 3277 3278 ; 3279 return 0; 3280} 3281_ACEOF 3282rm -f conftest.$ac_objext 3283if { (ac_try="$ac_compile" 3284case "(($ac_try" in 3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3286 *) ac_try_echo=$ac_try;; 3287esac 3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3289 (eval "$ac_compile") 2>conftest.er1 3290 ac_status=$? 3291 grep -v '^ *+' conftest.er1 >conftest.err 3292 rm -f conftest.er1 3293 cat conftest.err >&5 3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3295 (exit $ac_status); } && 3296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3297 { (case "(($ac_try" in 3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3299 *) ac_try_echo=$ac_try;; 3300esac 3301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3302 (eval "$ac_try") 2>&5 3303 ac_status=$? 3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3305 (exit $ac_status); }; } && 3306 { ac_try='test -s conftest.$ac_objext' 3307 { (case "(($ac_try" in 3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3309 *) ac_try_echo=$ac_try;; 3310esac 3311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3312 (eval "$ac_try") 2>&5 3313 ac_status=$? 3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3315 (exit $ac_status); }; }; then 3316 ac_cv_prog_cc_g=yes 3317else 3318 echo "$as_me: failed program was:" >&5 3319sed 's/^/| /' conftest.$ac_ext >&5 3320 3321 3322fi 3323 3324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3325fi 3326 3327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3328fi 3329 3330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3331 ac_c_werror_flag=$ac_save_c_werror_flag 3332fi 3333{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3334echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3335if test "$ac_test_CFLAGS" = set; then 3336 CFLAGS=$ac_save_CFLAGS 3337elif test $ac_cv_prog_cc_g = yes; then 3338 if test "$GCC" = yes; then 3339 CFLAGS="-g -O2" 3340 else 3341 CFLAGS="-g" 3342 fi 3343else 3344 if test "$GCC" = yes; then 3345 CFLAGS="-O2" 3346 else 3347 CFLAGS= 3348 fi 3349fi 3350{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3351echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3352if test "${ac_cv_prog_cc_c89+set}" = set; then 3353 echo $ECHO_N "(cached) $ECHO_C" >&6 3354else 3355 ac_cv_prog_cc_c89=no 3356ac_save_CC=$CC 3357cat >conftest.$ac_ext <<_ACEOF 3358/* confdefs.h. */ 3359_ACEOF 3360cat confdefs.h >>conftest.$ac_ext 3361cat >>conftest.$ac_ext <<_ACEOF 3362/* end confdefs.h. */ 3363#include <stdarg.h> 3364#include <stdio.h> 3365#include <sys/types.h> 3366#include <sys/stat.h> 3367/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3368struct buf { int x; }; 3369FILE * (*rcsopen) (struct buf *, struct stat *, int); 3370static char *e (p, i) 3371 char **p; 3372 int i; 3373{ 3374 return p[i]; 3375} 3376static char *f (char * (*g) (char **, int), char **p, ...) 3377{ 3378 char *s; 3379 va_list v; 3380 va_start (v,p); 3381 s = g (p, va_arg (v,int)); 3382 va_end (v); 3383 return s; 3384} 3385 3386/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3387 function prototypes and stuff, but not '\xHH' hex character constants. 3388 These don't provoke an error unfortunately, instead are silently treated 3389 as 'x'. The following induces an error, until -std is added to get 3390 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3391 array size at least. It's necessary to write '\x00'==0 to get something 3392 that's true only with -std. */ 3393int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3394 3395/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3396 inside strings and character constants. */ 3397#define FOO(x) 'x' 3398int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3399 3400int test (int i, double x); 3401struct s1 {int (*f) (int a);}; 3402struct s2 {int (*f) (double a);}; 3403int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3404int argc; 3405char **argv; 3406int 3407main () 3408{ 3409return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3410 ; 3411 return 0; 3412} 3413_ACEOF 3414for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3415 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3416do 3417 CC="$ac_save_CC $ac_arg" 3418 rm -f conftest.$ac_objext 3419if { (ac_try="$ac_compile" 3420case "(($ac_try" in 3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3422 *) ac_try_echo=$ac_try;; 3423esac 3424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3425 (eval "$ac_compile") 2>conftest.er1 3426 ac_status=$? 3427 grep -v '^ *+' conftest.er1 >conftest.err 3428 rm -f conftest.er1 3429 cat conftest.err >&5 3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3431 (exit $ac_status); } && 3432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3433 { (case "(($ac_try" in 3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3435 *) ac_try_echo=$ac_try;; 3436esac 3437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3438 (eval "$ac_try") 2>&5 3439 ac_status=$? 3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3441 (exit $ac_status); }; } && 3442 { ac_try='test -s conftest.$ac_objext' 3443 { (case "(($ac_try" in 3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3445 *) ac_try_echo=$ac_try;; 3446esac 3447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3448 (eval "$ac_try") 2>&5 3449 ac_status=$? 3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3451 (exit $ac_status); }; }; then 3452 ac_cv_prog_cc_c89=$ac_arg 3453else 3454 echo "$as_me: failed program was:" >&5 3455sed 's/^/| /' conftest.$ac_ext >&5 3456 3457 3458fi 3459 3460rm -f core conftest.err conftest.$ac_objext 3461 test "x$ac_cv_prog_cc_c89" != "xno" && break 3462done 3463rm -f conftest.$ac_ext 3464CC=$ac_save_CC 3465 3466fi 3467# AC_CACHE_VAL 3468case "x$ac_cv_prog_cc_c89" in 3469 x) 3470 { echo "$as_me:$LINENO: result: none needed" >&5 3471echo "${ECHO_T}none needed" >&6; } ;; 3472 xno) 3473 { echo "$as_me:$LINENO: result: unsupported" >&5 3474echo "${ECHO_T}unsupported" >&6; } ;; 3475 *) 3476 CC="$CC $ac_cv_prog_cc_c89" 3477 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3478echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3479esac 3480 3481 3482ac_ext=c 3483ac_cpp='$CPP $CPPFLAGS' 3484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3486ac_compiler_gnu=$ac_cv_c_compiler_gnu 3487DEPDIR="${am__leading_dot}deps" 3488 3489ac_config_commands="$ac_config_commands depfiles" 3490 3491 3492am_make=${MAKE-make} 3493cat > confinc << 'END' 3494am__doit: 3495 @echo done 3496.PHONY: am__doit 3497END 3498# If we don't find an include directive, just comment out the code. 3499{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3500echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3501am__include="#" 3502am__quote= 3503_am_result=none 3504# First try GNU make style include. 3505echo "include confinc" > confmf 3506# We grep out `Entering directory' and `Leaving directory' 3507# messages which can occur if `w' ends up in MAKEFLAGS. 3508# In particular we don't look at `^make:' because GNU make might 3509# be invoked under some other name (usually "gmake"), in which 3510# case it prints its new name instead of `make'. 3511if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3512 am__include=include 3513 am__quote= 3514 _am_result=GNU 3515fi 3516# Now try BSD make style include. 3517if test "$am__include" = "#"; then 3518 echo '.include "confinc"' > confmf 3519 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3520 am__include=.include 3521 am__quote="\"" 3522 _am_result=BSD 3523 fi 3524fi 3525 3526 3527{ echo "$as_me:$LINENO: result: $_am_result" >&5 3528echo "${ECHO_T}$_am_result" >&6; } 3529rm -f confinc confmf 3530 3531# Check whether --enable-dependency-tracking was given. 3532if test "${enable_dependency_tracking+set}" = set; then 3533 enableval=$enable_dependency_tracking; 3534fi 3535 3536if test "x$enable_dependency_tracking" != xno; then 3537 am_depcomp="$ac_aux_dir/depcomp" 3538 AMDEPBACKSLASH='\' 3539fi 3540 3541 3542if test "x$enable_dependency_tracking" != xno; then 3543 AMDEP_TRUE= 3544 AMDEP_FALSE='#' 3545else 3546 AMDEP_TRUE='#' 3547 AMDEP_FALSE= 3548fi 3549 3550 3551 3552 3553depcc="$CC" am_compiler_list= 3554 3555{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3556echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3557if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3558 echo $ECHO_N "(cached) $ECHO_C" >&6 3559else 3560 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3561 # We make a subdir and do the tests there. Otherwise we can end up 3562 # making bogus files that we don't know about and never remove. For 3563 # instance it was reported that on HP-UX the gcc test will end up 3564 # making a dummy file named `D' -- because `-MD' means `put the output 3565 # in D'. 3566 mkdir conftest.dir 3567 # Copy depcomp to subdir because otherwise we won't find it if we're 3568 # using a relative directory. 3569 cp "$am_depcomp" conftest.dir 3570 cd conftest.dir 3571 # We will build objects and dependencies in a subdirectory because 3572 # it helps to detect inapplicable dependency modes. For instance 3573 # both Tru64's cc and ICC support -MD to output dependencies as a 3574 # side effect of compilation, but ICC will put the dependencies in 3575 # the current directory while Tru64 will put them in the object 3576 # directory. 3577 mkdir sub 3578 3579 am_cv_CC_dependencies_compiler_type=none 3580 if test "$am_compiler_list" = ""; then 3581 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3582 fi 3583 for depmode in $am_compiler_list; do 3584 # Setup a source with many dependencies, because some compilers 3585 # like to wrap large dependency lists on column 80 (with \), and 3586 # we should not choose a depcomp mode which is confused by this. 3587 # 3588 # We need to recreate these files for each test, as the compiler may 3589 # overwrite some of them when testing with obscure command lines. 3590 # This happens at least with the AIX C compiler. 3591 : > sub/conftest.c 3592 for i in 1 2 3 4 5 6; do 3593 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3594 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3595 # Solaris 8's {/usr,}/bin/sh. 3596 touch sub/conftst$i.h 3597 done 3598 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3599 3600 case $depmode in 3601 nosideeffect) 3602 # after this tag, mechanisms are not by side-effect, so they'll 3603 # only be used when explicitly requested 3604 if test "x$enable_dependency_tracking" = xyes; then 3605 continue 3606 else 3607 break 3608 fi 3609 ;; 3610 none) break ;; 3611 esac 3612 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3613 # mode. It turns out that the SunPro C++ compiler does not properly 3614 # handle `-M -o', and we need to detect this. 3615 if depmode=$depmode \ 3616 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3617 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3618 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3619 >/dev/null 2>conftest.err && 3620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3621 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3623 # icc doesn't choke on unknown options, it will just issue warnings 3624 # or remarks (even with -Werror). So we grep stderr for any message 3625 # that says an option was ignored or not supported. 3626 # When given -MP, icc 7.0 and 7.1 complain thusly: 3627 # icc: Command line warning: ignoring option '-M'; no argument required 3628 # The diagnosis changed in icc 8.0: 3629 # icc: Command line remark: option '-MP' not supported 3630 if (grep 'ignoring option' conftest.err || 3631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3632 am_cv_CC_dependencies_compiler_type=$depmode 3633 break 3634 fi 3635 fi 3636 done 3637 3638 cd .. 3639 rm -rf conftest.dir 3640else 3641 am_cv_CC_dependencies_compiler_type=none 3642fi 3643 3644fi 3645{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3646echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3647CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3648 3649 3650 3651if 3652 test "x$enable_dependency_tracking" != xno \ 3653 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3654 am__fastdepCC_TRUE= 3655 am__fastdepCC_FALSE='#' 3656else 3657 am__fastdepCC_TRUE='#' 3658 am__fastdepCC_FALSE= 3659fi 3660 3661 3662# Check whether --enable-shared was given. 3663if test "${enable_shared+set}" = set; then 3664 enableval=$enable_shared; p=${PACKAGE-default} 3665 case $enableval in 3666 yes) enable_shared=yes ;; 3667 no) enable_shared=no ;; 3668 *) 3669 enable_shared=no 3670 # Look at the argument we got. We use all the common list separators. 3671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3672 for pkg in $enableval; do 3673 IFS="$lt_save_ifs" 3674 if test "X$pkg" = "X$p"; then 3675 enable_shared=yes 3676 fi 3677 done 3678 IFS="$lt_save_ifs" 3679 ;; 3680 esac 3681else 3682 enable_shared=yes 3683fi 3684 3685 3686# Check whether --enable-static was given. 3687if test "${enable_static+set}" = set; then 3688 enableval=$enable_static; p=${PACKAGE-default} 3689 case $enableval in 3690 yes) enable_static=yes ;; 3691 no) enable_static=no ;; 3692 *) 3693 enable_static=no 3694 # Look at the argument we got. We use all the common list separators. 3695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3696 for pkg in $enableval; do 3697 IFS="$lt_save_ifs" 3698 if test "X$pkg" = "X$p"; then 3699 enable_static=yes 3700 fi 3701 done 3702 IFS="$lt_save_ifs" 3703 ;; 3704 esac 3705else 3706 enable_static=yes 3707fi 3708 3709 3710# Check whether --enable-fast-install was given. 3711if test "${enable_fast_install+set}" = set; then 3712 enableval=$enable_fast_install; p=${PACKAGE-default} 3713 case $enableval in 3714 yes) enable_fast_install=yes ;; 3715 no) enable_fast_install=no ;; 3716 *) 3717 enable_fast_install=no 3718 # Look at the argument we got. We use all the common list separators. 3719 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3720 for pkg in $enableval; do 3721 IFS="$lt_save_ifs" 3722 if test "X$pkg" = "X$p"; then 3723 enable_fast_install=yes 3724 fi 3725 done 3726 IFS="$lt_save_ifs" 3727 ;; 3728 esac 3729else 3730 enable_fast_install=yes 3731fi 3732 3733 3734# Make sure we can run config.sub. 3735$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3736 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3737echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3738 { (exit 1); exit 1; }; } 3739 3740{ echo "$as_me:$LINENO: checking build system type" >&5 3741echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3742if test "${ac_cv_build+set}" = set; then 3743 echo $ECHO_N "(cached) $ECHO_C" >&6 3744else 3745 ac_build_alias=$build_alias 3746test "x$ac_build_alias" = x && 3747 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3748test "x$ac_build_alias" = x && 3749 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3750echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3751 { (exit 1); exit 1; }; } 3752ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3753 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3754echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3755 { (exit 1); exit 1; }; } 3756 3757fi 3758{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3759echo "${ECHO_T}$ac_cv_build" >&6; } 3760case $ac_cv_build in 3761*-*-*) ;; 3762*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3763echo "$as_me: error: invalid value of canonical build" >&2;} 3764 { (exit 1); exit 1; }; };; 3765esac 3766build=$ac_cv_build 3767ac_save_IFS=$IFS; IFS='-' 3768set x $ac_cv_build 3769shift 3770build_cpu=$1 3771build_vendor=$2 3772shift; shift 3773# Remember, the first character of IFS is used to create $*, 3774# except with old shells: 3775build_os=$* 3776IFS=$ac_save_IFS 3777case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3778 3779 3780{ echo "$as_me:$LINENO: checking host system type" >&5 3781echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3782if test "${ac_cv_host+set}" = set; then 3783 echo $ECHO_N "(cached) $ECHO_C" >&6 3784else 3785 if test "x$host_alias" = x; then 3786 ac_cv_host=$ac_cv_build 3787else 3788 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3789 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3790echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3791 { (exit 1); exit 1; }; } 3792fi 3793 3794fi 3795{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3796echo "${ECHO_T}$ac_cv_host" >&6; } 3797case $ac_cv_host in 3798*-*-*) ;; 3799*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3800echo "$as_me: error: invalid value of canonical host" >&2;} 3801 { (exit 1); exit 1; }; };; 3802esac 3803host=$ac_cv_host 3804ac_save_IFS=$IFS; IFS='-' 3805set x $ac_cv_host 3806shift 3807host_cpu=$1 3808host_vendor=$2 3809shift; shift 3810# Remember, the first character of IFS is used to create $*, 3811# except with old shells: 3812host_os=$* 3813IFS=$ac_save_IFS 3814case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3815 3816 3817{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3818echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3819if test "${lt_cv_path_SED+set}" = set; then 3820 echo $ECHO_N "(cached) $ECHO_C" >&6 3821else 3822 # Loop through the user's path and test for sed and gsed. 3823# Then use that list of sed's as ones to test for truncation. 3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825for as_dir in $PATH 3826do 3827 IFS=$as_save_IFS 3828 test -z "$as_dir" && as_dir=. 3829 for lt_ac_prog in sed gsed; do 3830 for ac_exec_ext in '' $ac_executable_extensions; do 3831 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3832 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3833 fi 3834 done 3835 done 3836done 3837lt_ac_max=0 3838lt_ac_count=0 3839# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3840# along with /bin/sed that truncates output. 3841for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3842 test ! -f $lt_ac_sed && continue 3843 cat /dev/null > conftest.in 3844 lt_ac_count=0 3845 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3846 # Check for GNU sed and select it if it is found. 3847 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3848 lt_cv_path_SED=$lt_ac_sed 3849 break 3850 fi 3851 while true; do 3852 cat conftest.in conftest.in >conftest.tmp 3853 mv conftest.tmp conftest.in 3854 cp conftest.in conftest.nl 3855 echo >>conftest.nl 3856 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3857 cmp -s conftest.out conftest.nl || break 3858 # 10000 chars as input seems more than enough 3859 test $lt_ac_count -gt 10 && break 3860 lt_ac_count=`expr $lt_ac_count + 1` 3861 if test $lt_ac_count -gt $lt_ac_max; then 3862 lt_ac_max=$lt_ac_count 3863 lt_cv_path_SED=$lt_ac_sed 3864 fi 3865 done 3866done 3867 3868fi 3869 3870SED=$lt_cv_path_SED 3871{ echo "$as_me:$LINENO: result: $SED" >&5 3872echo "${ECHO_T}$SED" >&6; } 3873 3874{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3875echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3876if test "${ac_cv_path_GREP+set}" = set; then 3877 echo $ECHO_N "(cached) $ECHO_C" >&6 3878else 3879 # Extract the first word of "grep ggrep" to use in msg output 3880if test -z "$GREP"; then 3881set dummy grep ggrep; ac_prog_name=$2 3882if test "${ac_cv_path_GREP+set}" = set; then 3883 echo $ECHO_N "(cached) $ECHO_C" >&6 3884else 3885 ac_path_GREP_found=false 3886# Loop through the user's path and test for each of PROGNAME-LIST 3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3889do 3890 IFS=$as_save_IFS 3891 test -z "$as_dir" && as_dir=. 3892 for ac_prog in grep ggrep; do 3893 for ac_exec_ext in '' $ac_executable_extensions; do 3894 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3895 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3896 # Check for GNU ac_path_GREP and select it if it is found. 3897 # Check for GNU $ac_path_GREP 3898case `"$ac_path_GREP" --version 2>&1` in 3899*GNU*) 3900 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3901*) 3902 ac_count=0 3903 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3904 while : 3905 do 3906 cat "conftest.in" "conftest.in" >"conftest.tmp" 3907 mv "conftest.tmp" "conftest.in" 3908 cp "conftest.in" "conftest.nl" 3909 echo 'GREP' >> "conftest.nl" 3910 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3912 ac_count=`expr $ac_count + 1` 3913 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3914 # Best one so far, save it but keep looking for a better one 3915 ac_cv_path_GREP="$ac_path_GREP" 3916 ac_path_GREP_max=$ac_count 3917 fi 3918 # 10*(2^10) chars as input seems more than enough 3919 test $ac_count -gt 10 && break 3920 done 3921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3922esac 3923 3924 3925 $ac_path_GREP_found && break 3 3926 done 3927done 3928 3929done 3930IFS=$as_save_IFS 3931 3932 3933fi 3934 3935GREP="$ac_cv_path_GREP" 3936if test -z "$GREP"; then 3937 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3938echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3939 { (exit 1); exit 1; }; } 3940fi 3941 3942else 3943 ac_cv_path_GREP=$GREP 3944fi 3945 3946 3947fi 3948{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3949echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3950 GREP="$ac_cv_path_GREP" 3951 3952 3953{ echo "$as_me:$LINENO: checking for egrep" >&5 3954echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3955if test "${ac_cv_path_EGREP+set}" = set; then 3956 echo $ECHO_N "(cached) $ECHO_C" >&6 3957else 3958 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3959 then ac_cv_path_EGREP="$GREP -E" 3960 else 3961 # Extract the first word of "egrep" to use in msg output 3962if test -z "$EGREP"; then 3963set dummy egrep; ac_prog_name=$2 3964if test "${ac_cv_path_EGREP+set}" = set; then 3965 echo $ECHO_N "(cached) $ECHO_C" >&6 3966else 3967 ac_path_EGREP_found=false 3968# Loop through the user's path and test for each of PROGNAME-LIST 3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3970for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3971do 3972 IFS=$as_save_IFS 3973 test -z "$as_dir" && as_dir=. 3974 for ac_prog in egrep; do 3975 for ac_exec_ext in '' $ac_executable_extensions; do 3976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3977 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3978 # Check for GNU ac_path_EGREP and select it if it is found. 3979 # Check for GNU $ac_path_EGREP 3980case `"$ac_path_EGREP" --version 2>&1` in 3981*GNU*) 3982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3983*) 3984 ac_count=0 3985 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3986 while : 3987 do 3988 cat "conftest.in" "conftest.in" >"conftest.tmp" 3989 mv "conftest.tmp" "conftest.in" 3990 cp "conftest.in" "conftest.nl" 3991 echo 'EGREP' >> "conftest.nl" 3992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3994 ac_count=`expr $ac_count + 1` 3995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3996 # Best one so far, save it but keep looking for a better one 3997 ac_cv_path_EGREP="$ac_path_EGREP" 3998 ac_path_EGREP_max=$ac_count 3999 fi 4000 # 10*(2^10) chars as input seems more than enough 4001 test $ac_count -gt 10 && break 4002 done 4003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4004esac 4005 4006 4007 $ac_path_EGREP_found && break 3 4008 done 4009done 4010 4011done 4012IFS=$as_save_IFS 4013 4014 4015fi 4016 4017EGREP="$ac_cv_path_EGREP" 4018if test -z "$EGREP"; then 4019 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4020echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4021 { (exit 1); exit 1; }; } 4022fi 4023 4024else 4025 ac_cv_path_EGREP=$EGREP 4026fi 4027 4028 4029 fi 4030fi 4031{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4032echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4033 EGREP="$ac_cv_path_EGREP" 4034 4035 4036 4037# Check whether --with-gnu-ld was given. 4038if test "${with_gnu_ld+set}" = set; then 4039 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4040else 4041 with_gnu_ld=no 4042fi 4043 4044ac_prog=ld 4045if test "$GCC" = yes; then 4046 # Check if gcc -print-prog-name=ld gives a path. 4047 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4048echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4049 case $host in 4050 *-*-mingw*) 4051 # gcc leaves a trailing carriage return which upsets mingw 4052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4053 *) 4054 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4055 esac 4056 case $ac_prog in 4057 # Accept absolute paths. 4058 [\\/]* | ?:[\\/]*) 4059 re_direlt='/[^/][^/]*/\.\./' 4060 # Canonicalize the pathname of ld 4061 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4062 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4063 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4064 done 4065 test -z "$LD" && LD="$ac_prog" 4066 ;; 4067 "") 4068 # If it fails, then pretend we aren't using GCC. 4069 ac_prog=ld 4070 ;; 4071 *) 4072 # If it is relative, then search for the first ld in PATH. 4073 with_gnu_ld=unknown 4074 ;; 4075 esac 4076elif test "$with_gnu_ld" = yes; then 4077 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4078echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4079else 4080 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4081echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4082fi 4083if test "${lt_cv_path_LD+set}" = set; then 4084 echo $ECHO_N "(cached) $ECHO_C" >&6 4085else 4086 if test -z "$LD"; then 4087 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4088 for ac_dir in $PATH; do 4089 IFS="$lt_save_ifs" 4090 test -z "$ac_dir" && ac_dir=. 4091 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4092 lt_cv_path_LD="$ac_dir/$ac_prog" 4093 # Check to see if the program is GNU ld. I'd rather use --version, 4094 # but apparently some variants of GNU ld only accept -v. 4095 # Break only if it was the GNU/non-GNU ld that we prefer. 4096 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4097 *GNU* | *'with BFD'*) 4098 test "$with_gnu_ld" != no && break 4099 ;; 4100 *) 4101 test "$with_gnu_ld" != yes && break 4102 ;; 4103 esac 4104 fi 4105 done 4106 IFS="$lt_save_ifs" 4107else 4108 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4109fi 4110fi 4111 4112LD="$lt_cv_path_LD" 4113if test -n "$LD"; then 4114 { echo "$as_me:$LINENO: result: $LD" >&5 4115echo "${ECHO_T}$LD" >&6; } 4116else 4117 { echo "$as_me:$LINENO: result: no" >&5 4118echo "${ECHO_T}no" >&6; } 4119fi 4120test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4121echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4122 { (exit 1); exit 1; }; } 4123{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4124echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4125if test "${lt_cv_prog_gnu_ld+set}" = set; then 4126 echo $ECHO_N "(cached) $ECHO_C" >&6 4127else 4128 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4129case `$LD -v 2>&1 </dev/null` in 4130*GNU* | *'with BFD'*) 4131 lt_cv_prog_gnu_ld=yes 4132 ;; 4133*) 4134 lt_cv_prog_gnu_ld=no 4135 ;; 4136esac 4137fi 4138{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4139echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4140with_gnu_ld=$lt_cv_prog_gnu_ld 4141 4142 4143{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4144echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4145if test "${lt_cv_ld_reload_flag+set}" = set; then 4146 echo $ECHO_N "(cached) $ECHO_C" >&6 4147else 4148 lt_cv_ld_reload_flag='-r' 4149fi 4150{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4151echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4152reload_flag=$lt_cv_ld_reload_flag 4153case $reload_flag in 4154"" | " "*) ;; 4155*) reload_flag=" $reload_flag" ;; 4156esac 4157reload_cmds='$LD$reload_flag -o $output$reload_objs' 4158case $host_os in 4159 darwin*) 4160 if test "$GCC" = yes; then 4161 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4162 else 4163 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4164 fi 4165 ;; 4166esac 4167 4168{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4169echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4170if test "${lt_cv_path_NM+set}" = set; then 4171 echo $ECHO_N "(cached) $ECHO_C" >&6 4172else 4173 if test -n "$NM"; then 4174 # Let the user override the test. 4175 lt_cv_path_NM="$NM" 4176else 4177 lt_nm_to_check="${ac_tool_prefix}nm" 4178 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4179 lt_nm_to_check="$lt_nm_to_check nm" 4180 fi 4181 for lt_tmp_nm in $lt_nm_to_check; do 4182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4183 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4184 IFS="$lt_save_ifs" 4185 test -z "$ac_dir" && ac_dir=. 4186 tmp_nm="$ac_dir/$lt_tmp_nm" 4187 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4188 # Check to see if the nm accepts a BSD-compat flag. 4189 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4190 # nm: unknown option "B" ignored 4191 # Tru64's nm complains that /dev/null is an invalid object file 4192 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4193 */dev/null* | *'Invalid file or object type'*) 4194 lt_cv_path_NM="$tmp_nm -B" 4195 break 4196 ;; 4197 *) 4198 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4199 */dev/null*) 4200 lt_cv_path_NM="$tmp_nm -p" 4201 break 4202 ;; 4203 *) 4204 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4205 continue # so that we can try to find one that supports BSD flags 4206 ;; 4207 esac 4208 ;; 4209 esac 4210 fi 4211 done 4212 IFS="$lt_save_ifs" 4213 done 4214 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4215fi 4216fi 4217{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4218echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4219NM="$lt_cv_path_NM" 4220 4221{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4222echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4223LN_S=$as_ln_s 4224if test "$LN_S" = "ln -s"; then 4225 { echo "$as_me:$LINENO: result: yes" >&5 4226echo "${ECHO_T}yes" >&6; } 4227else 4228 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4229echo "${ECHO_T}no, using $LN_S" >&6; } 4230fi 4231 4232{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4233echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4234if test "${lt_cv_deplibs_check_method+set}" = set; then 4235 echo $ECHO_N "(cached) $ECHO_C" >&6 4236else 4237 lt_cv_file_magic_cmd='$MAGIC_CMD' 4238lt_cv_file_magic_test_file= 4239lt_cv_deplibs_check_method='unknown' 4240# Need to set the preceding variable on all platforms that support 4241# interlibrary dependencies. 4242# 'none' -- dependencies not supported. 4243# `unknown' -- same as none, but documents that we really don't know. 4244# 'pass_all' -- all dependencies passed with no checks. 4245# 'test_compile' -- check by making test program. 4246# 'file_magic [[regex]]' -- check by looking for files in library path 4247# which responds to the $file_magic_cmd with a given extended regex. 4248# If you have `file' or equivalent on your system and you're not sure 4249# whether `pass_all' will *always* work, you probably want this one. 4250 4251case $host_os in 4252aix4* | aix5*) 4253 lt_cv_deplibs_check_method=pass_all 4254 ;; 4255 4256beos*) 4257 lt_cv_deplibs_check_method=pass_all 4258 ;; 4259 4260bsdi[45]*) 4261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4262 lt_cv_file_magic_cmd='/usr/bin/file -L' 4263 lt_cv_file_magic_test_file=/shlib/libc.so 4264 ;; 4265 4266cygwin*) 4267 # func_win32_libid is a shell function defined in ltmain.sh 4268 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4269 lt_cv_file_magic_cmd='func_win32_libid' 4270 ;; 4271 4272mingw* | pw32*) 4273 # Base MSYS/MinGW do not provide the 'file' command needed by 4274 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4275 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4276 lt_cv_file_magic_cmd='$OBJDUMP -f' 4277 ;; 4278 4279darwin* | rhapsody*) 4280 lt_cv_deplibs_check_method=pass_all 4281 ;; 4282 4283freebsd* | dragonfly*) 4284 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4285 case $host_cpu in 4286 i*86 ) 4287 # Not sure whether the presence of OpenBSD here was a mistake. 4288 # Let's accept both of them until this is cleared up. 4289 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4290 lt_cv_file_magic_cmd=/usr/bin/file 4291 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4292 ;; 4293 esac 4294 else 4295 lt_cv_deplibs_check_method=pass_all 4296 fi 4297 ;; 4298 4299gnu*) 4300 lt_cv_deplibs_check_method=pass_all 4301 ;; 4302 4303hpux10.20* | hpux11*) 4304 lt_cv_file_magic_cmd=/usr/bin/file 4305 case $host_cpu in 4306 ia64*) 4307 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4308 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4309 ;; 4310 hppa*64*) 4311 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]' 4312 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4313 ;; 4314 *) 4315 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4316 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4317 ;; 4318 esac 4319 ;; 4320 4321interix3*) 4322 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4324 ;; 4325 4326irix5* | irix6* | nonstopux*) 4327 case $LD in 4328 *-32|*"-32 ") libmagic=32-bit;; 4329 *-n32|*"-n32 ") libmagic=N32;; 4330 *-64|*"-64 ") libmagic=64-bit;; 4331 *) libmagic=never-match;; 4332 esac 4333 lt_cv_deplibs_check_method=pass_all 4334 ;; 4335 4336# This must be Linux ELF. 4337linux* | k*bsd*-gnu) 4338 lt_cv_deplibs_check_method=pass_all 4339 ;; 4340 4341netbsd* | netbsdelf*-gnu) 4342 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4344 else 4345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4346 fi 4347 ;; 4348 4349newos6*) 4350 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4351 lt_cv_file_magic_cmd=/usr/bin/file 4352 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4353 ;; 4354 4355nto-qnx*) 4356 lt_cv_deplibs_check_method=unknown 4357 ;; 4358 4359openbsd*) 4360 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4362 else 4363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4364 fi 4365 ;; 4366 4367osf3* | osf4* | osf5*) 4368 lt_cv_deplibs_check_method=pass_all 4369 ;; 4370 4371solaris*) 4372 lt_cv_deplibs_check_method=pass_all 4373 ;; 4374 4375sysv4 | sysv4.3*) 4376 case $host_vendor in 4377 motorola) 4378 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]' 4379 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4380 ;; 4381 ncr) 4382 lt_cv_deplibs_check_method=pass_all 4383 ;; 4384 sequent) 4385 lt_cv_file_magic_cmd='/bin/file' 4386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4387 ;; 4388 sni) 4389 lt_cv_file_magic_cmd='/bin/file' 4390 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4391 lt_cv_file_magic_test_file=/lib/libc.so 4392 ;; 4393 siemens) 4394 lt_cv_deplibs_check_method=pass_all 4395 ;; 4396 pc) 4397 lt_cv_deplibs_check_method=pass_all 4398 ;; 4399 esac 4400 ;; 4401 4402sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4403 lt_cv_deplibs_check_method=pass_all 4404 ;; 4405esac 4406 4407fi 4408{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4409echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4410file_magic_cmd=$lt_cv_file_magic_cmd 4411deplibs_check_method=$lt_cv_deplibs_check_method 4412test -z "$deplibs_check_method" && deplibs_check_method=unknown 4413 4414 4415 4416 4417# If no C compiler was specified, use CC. 4418LTCC=${LTCC-"$CC"} 4419 4420# If no C compiler flags were specified, use CFLAGS. 4421LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4422 4423# Allow CC to be a program name with arguments. 4424compiler=$CC 4425 4426 4427# Check whether --enable-libtool-lock was given. 4428if test "${enable_libtool_lock+set}" = set; then 4429 enableval=$enable_libtool_lock; 4430fi 4431 4432test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4433 4434# Some flags need to be propagated to the compiler or linker for good 4435# libtool support. 4436case $host in 4437ia64-*-hpux*) 4438 # Find out which ABI we are using. 4439 echo 'int i;' > conftest.$ac_ext 4440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4441 (eval $ac_compile) 2>&5 4442 ac_status=$? 4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4444 (exit $ac_status); }; then 4445 case `/usr/bin/file conftest.$ac_objext` in 4446 *ELF-32*) 4447 HPUX_IA64_MODE="32" 4448 ;; 4449 *ELF-64*) 4450 HPUX_IA64_MODE="64" 4451 ;; 4452 esac 4453 fi 4454 rm -rf conftest* 4455 ;; 4456*-*-irix6*) 4457 # Find out which ABI we are using. 4458 echo '#line 4458 "configure"' > conftest.$ac_ext 4459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4460 (eval $ac_compile) 2>&5 4461 ac_status=$? 4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4463 (exit $ac_status); }; then 4464 if test "$lt_cv_prog_gnu_ld" = yes; then 4465 case `/usr/bin/file conftest.$ac_objext` in 4466 *32-bit*) 4467 LD="${LD-ld} -melf32bsmip" 4468 ;; 4469 *N32*) 4470 LD="${LD-ld} -melf32bmipn32" 4471 ;; 4472 *64-bit*) 4473 LD="${LD-ld} -melf64bmip" 4474 ;; 4475 esac 4476 else 4477 case `/usr/bin/file conftest.$ac_objext` in 4478 *32-bit*) 4479 LD="${LD-ld} -32" 4480 ;; 4481 *N32*) 4482 LD="${LD-ld} -n32" 4483 ;; 4484 *64-bit*) 4485 LD="${LD-ld} -64" 4486 ;; 4487 esac 4488 fi 4489 fi 4490 rm -rf conftest* 4491 ;; 4492 4493x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4494 # Find out which ABI we are using. 4495 echo 'int i;' > conftest.$ac_ext 4496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4497 (eval $ac_compile) 2>&5 4498 ac_status=$? 4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4500 (exit $ac_status); }; then 4501 case `/usr/bin/file conftest.o` in 4502 *32-bit*) 4503 case $host in 4504 x86_64-*linux*) 4505 LD="${LD-ld} -m elf_i386" 4506 ;; 4507 ppc64-*linux*|powerpc64-*linux*) 4508 LD="${LD-ld} -m elf32ppclinux" 4509 ;; 4510 s390x-*linux*) 4511 LD="${LD-ld} -m elf_s390" 4512 ;; 4513 sparc64-*linux*) 4514 LD="${LD-ld} -m elf32_sparc" 4515 ;; 4516 esac 4517 ;; 4518 *64-bit*) 4519 case $host in 4520 x86_64-*linux*) 4521 LD="${LD-ld} -m elf_x86_64" 4522 ;; 4523 ppc*-*linux*|powerpc*-*linux*) 4524 LD="${LD-ld} -m elf64ppc" 4525 ;; 4526 s390*-*linux*) 4527 LD="${LD-ld} -m elf64_s390" 4528 ;; 4529 sparc*-*linux*) 4530 LD="${LD-ld} -m elf64_sparc" 4531 ;; 4532 esac 4533 ;; 4534 esac 4535 fi 4536 rm -rf conftest* 4537 ;; 4538 4539*-*-sco3.2v5*) 4540 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4541 SAVE_CFLAGS="$CFLAGS" 4542 CFLAGS="$CFLAGS -belf" 4543 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4544echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4545if test "${lt_cv_cc_needs_belf+set}" = set; then 4546 echo $ECHO_N "(cached) $ECHO_C" >&6 4547else 4548 ac_ext=c 4549ac_cpp='$CPP $CPPFLAGS' 4550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4552ac_compiler_gnu=$ac_cv_c_compiler_gnu 4553 4554 cat >conftest.$ac_ext <<_ACEOF 4555/* confdefs.h. */ 4556_ACEOF 4557cat confdefs.h >>conftest.$ac_ext 4558cat >>conftest.$ac_ext <<_ACEOF 4559/* end confdefs.h. */ 4560 4561int 4562main () 4563{ 4564 4565 ; 4566 return 0; 4567} 4568_ACEOF 4569rm -f conftest.$ac_objext conftest$ac_exeext 4570if { (ac_try="$ac_link" 4571case "(($ac_try" in 4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4573 *) ac_try_echo=$ac_try;; 4574esac 4575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4576 (eval "$ac_link") 2>conftest.er1 4577 ac_status=$? 4578 grep -v '^ *+' conftest.er1 >conftest.err 4579 rm -f conftest.er1 4580 cat conftest.err >&5 4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4582 (exit $ac_status); } && 4583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4584 { (case "(($ac_try" in 4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4586 *) ac_try_echo=$ac_try;; 4587esac 4588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4589 (eval "$ac_try") 2>&5 4590 ac_status=$? 4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4592 (exit $ac_status); }; } && 4593 { ac_try='test -s conftest$ac_exeext' 4594 { (case "(($ac_try" in 4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4596 *) ac_try_echo=$ac_try;; 4597esac 4598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4599 (eval "$ac_try") 2>&5 4600 ac_status=$? 4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4602 (exit $ac_status); }; }; then 4603 lt_cv_cc_needs_belf=yes 4604else 4605 echo "$as_me: failed program was:" >&5 4606sed 's/^/| /' conftest.$ac_ext >&5 4607 4608 lt_cv_cc_needs_belf=no 4609fi 4610 4611rm -f core conftest.err conftest.$ac_objext \ 4612 conftest$ac_exeext conftest.$ac_ext 4613 ac_ext=c 4614ac_cpp='$CPP $CPPFLAGS' 4615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4617ac_compiler_gnu=$ac_cv_c_compiler_gnu 4618 4619fi 4620{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4621echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4622 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4623 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4624 CFLAGS="$SAVE_CFLAGS" 4625 fi 4626 ;; 4627sparc*-*solaris*) 4628 # Find out which ABI we are using. 4629 echo 'int i;' > conftest.$ac_ext 4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4631 (eval $ac_compile) 2>&5 4632 ac_status=$? 4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4634 (exit $ac_status); }; then 4635 case `/usr/bin/file conftest.o` in 4636 *64-bit*) 4637 case $lt_cv_prog_gnu_ld in 4638 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4639 *) LD="${LD-ld} -64" ;; 4640 esac 4641 ;; 4642 esac 4643 fi 4644 rm -rf conftest* 4645 ;; 4646 4647 4648esac 4649 4650need_locks="$enable_libtool_lock" 4651 4652 4653ac_ext=c 4654ac_cpp='$CPP $CPPFLAGS' 4655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4657ac_compiler_gnu=$ac_cv_c_compiler_gnu 4658{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4659echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4660# On Suns, sometimes $CPP names a directory. 4661if test -n "$CPP" && test -d "$CPP"; then 4662 CPP= 4663fi 4664if test -z "$CPP"; then 4665 if test "${ac_cv_prog_CPP+set}" = set; then 4666 echo $ECHO_N "(cached) $ECHO_C" >&6 4667else 4668 # Double quotes because CPP needs to be expanded 4669 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4670 do 4671 ac_preproc_ok=false 4672for ac_c_preproc_warn_flag in '' yes 4673do 4674 # Use a header file that comes with gcc, so configuring glibc 4675 # with a fresh cross-compiler works. 4676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4677 # <limits.h> exists even on freestanding compilers. 4678 # On the NeXT, cc -E runs the code through the compiler's parser, 4679 # not just through cpp. "Syntax error" is here to catch this case. 4680 cat >conftest.$ac_ext <<_ACEOF 4681/* confdefs.h. */ 4682_ACEOF 4683cat confdefs.h >>conftest.$ac_ext 4684cat >>conftest.$ac_ext <<_ACEOF 4685/* end confdefs.h. */ 4686#ifdef __STDC__ 4687# include <limits.h> 4688#else 4689# include <assert.h> 4690#endif 4691 Syntax error 4692_ACEOF 4693if { (ac_try="$ac_cpp conftest.$ac_ext" 4694case "(($ac_try" in 4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4696 *) ac_try_echo=$ac_try;; 4697esac 4698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4700 ac_status=$? 4701 grep -v '^ *+' conftest.er1 >conftest.err 4702 rm -f conftest.er1 4703 cat conftest.err >&5 4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4705 (exit $ac_status); } >/dev/null; then 4706 if test -s conftest.err; then 4707 ac_cpp_err=$ac_c_preproc_warn_flag 4708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4709 else 4710 ac_cpp_err= 4711 fi 4712else 4713 ac_cpp_err=yes 4714fi 4715if test -z "$ac_cpp_err"; then 4716 : 4717else 4718 echo "$as_me: failed program was:" >&5 4719sed 's/^/| /' conftest.$ac_ext >&5 4720 4721 # Broken: fails on valid input. 4722continue 4723fi 4724 4725rm -f conftest.err conftest.$ac_ext 4726 4727 # OK, works on sane cases. Now check whether nonexistent headers 4728 # can be detected and how. 4729 cat >conftest.$ac_ext <<_ACEOF 4730/* confdefs.h. */ 4731_ACEOF 4732cat confdefs.h >>conftest.$ac_ext 4733cat >>conftest.$ac_ext <<_ACEOF 4734/* end confdefs.h. */ 4735#include <ac_nonexistent.h> 4736_ACEOF 4737if { (ac_try="$ac_cpp conftest.$ac_ext" 4738case "(($ac_try" in 4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4740 *) ac_try_echo=$ac_try;; 4741esac 4742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4744 ac_status=$? 4745 grep -v '^ *+' conftest.er1 >conftest.err 4746 rm -f conftest.er1 4747 cat conftest.err >&5 4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4749 (exit $ac_status); } >/dev/null; then 4750 if test -s conftest.err; then 4751 ac_cpp_err=$ac_c_preproc_warn_flag 4752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4753 else 4754 ac_cpp_err= 4755 fi 4756else 4757 ac_cpp_err=yes 4758fi 4759if test -z "$ac_cpp_err"; then 4760 # Broken: success on invalid input. 4761continue 4762else 4763 echo "$as_me: failed program was:" >&5 4764sed 's/^/| /' conftest.$ac_ext >&5 4765 4766 # Passes both tests. 4767ac_preproc_ok=: 4768break 4769fi 4770 4771rm -f conftest.err conftest.$ac_ext 4772 4773done 4774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4775rm -f conftest.err conftest.$ac_ext 4776if $ac_preproc_ok; then 4777 break 4778fi 4779 4780 done 4781 ac_cv_prog_CPP=$CPP 4782 4783fi 4784 CPP=$ac_cv_prog_CPP 4785else 4786 ac_cv_prog_CPP=$CPP 4787fi 4788{ echo "$as_me:$LINENO: result: $CPP" >&5 4789echo "${ECHO_T}$CPP" >&6; } 4790ac_preproc_ok=false 4791for ac_c_preproc_warn_flag in '' yes 4792do 4793 # Use a header file that comes with gcc, so configuring glibc 4794 # with a fresh cross-compiler works. 4795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4796 # <limits.h> exists even on freestanding compilers. 4797 # On the NeXT, cc -E runs the code through the compiler's parser, 4798 # not just through cpp. "Syntax error" is here to catch this case. 4799 cat >conftest.$ac_ext <<_ACEOF 4800/* confdefs.h. */ 4801_ACEOF 4802cat confdefs.h >>conftest.$ac_ext 4803cat >>conftest.$ac_ext <<_ACEOF 4804/* end confdefs.h. */ 4805#ifdef __STDC__ 4806# include <limits.h> 4807#else 4808# include <assert.h> 4809#endif 4810 Syntax error 4811_ACEOF 4812if { (ac_try="$ac_cpp conftest.$ac_ext" 4813case "(($ac_try" in 4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4815 *) ac_try_echo=$ac_try;; 4816esac 4817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4819 ac_status=$? 4820 grep -v '^ *+' conftest.er1 >conftest.err 4821 rm -f conftest.er1 4822 cat conftest.err >&5 4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4824 (exit $ac_status); } >/dev/null; then 4825 if test -s conftest.err; then 4826 ac_cpp_err=$ac_c_preproc_warn_flag 4827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4828 else 4829 ac_cpp_err= 4830 fi 4831else 4832 ac_cpp_err=yes 4833fi 4834if test -z "$ac_cpp_err"; then 4835 : 4836else 4837 echo "$as_me: failed program was:" >&5 4838sed 's/^/| /' conftest.$ac_ext >&5 4839 4840 # Broken: fails on valid input. 4841continue 4842fi 4843 4844rm -f conftest.err conftest.$ac_ext 4845 4846 # OK, works on sane cases. Now check whether nonexistent headers 4847 # can be detected and how. 4848 cat >conftest.$ac_ext <<_ACEOF 4849/* confdefs.h. */ 4850_ACEOF 4851cat confdefs.h >>conftest.$ac_ext 4852cat >>conftest.$ac_ext <<_ACEOF 4853/* end confdefs.h. */ 4854#include <ac_nonexistent.h> 4855_ACEOF 4856if { (ac_try="$ac_cpp conftest.$ac_ext" 4857case "(($ac_try" in 4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4859 *) ac_try_echo=$ac_try;; 4860esac 4861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4863 ac_status=$? 4864 grep -v '^ *+' conftest.er1 >conftest.err 4865 rm -f conftest.er1 4866 cat conftest.err >&5 4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4868 (exit $ac_status); } >/dev/null; then 4869 if test -s conftest.err; then 4870 ac_cpp_err=$ac_c_preproc_warn_flag 4871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4872 else 4873 ac_cpp_err= 4874 fi 4875else 4876 ac_cpp_err=yes 4877fi 4878if test -z "$ac_cpp_err"; then 4879 # Broken: success on invalid input. 4880continue 4881else 4882 echo "$as_me: failed program was:" >&5 4883sed 's/^/| /' conftest.$ac_ext >&5 4884 4885 # Passes both tests. 4886ac_preproc_ok=: 4887break 4888fi 4889 4890rm -f conftest.err conftest.$ac_ext 4891 4892done 4893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4894rm -f conftest.err conftest.$ac_ext 4895if $ac_preproc_ok; then 4896 : 4897else 4898 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4899See \`config.log' for more details." >&5 4900echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4901See \`config.log' for more details." >&2;} 4902 { (exit 1); exit 1; }; } 4903fi 4904 4905ac_ext=c 4906ac_cpp='$CPP $CPPFLAGS' 4907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4909ac_compiler_gnu=$ac_cv_c_compiler_gnu 4910 4911 4912{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4913echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4914if test "${ac_cv_header_stdc+set}" = set; then 4915 echo $ECHO_N "(cached) $ECHO_C" >&6 4916else 4917 cat >conftest.$ac_ext <<_ACEOF 4918/* confdefs.h. */ 4919_ACEOF 4920cat confdefs.h >>conftest.$ac_ext 4921cat >>conftest.$ac_ext <<_ACEOF 4922/* end confdefs.h. */ 4923#include <stdlib.h> 4924#include <stdarg.h> 4925#include <string.h> 4926#include <float.h> 4927 4928int 4929main () 4930{ 4931 4932 ; 4933 return 0; 4934} 4935_ACEOF 4936rm -f conftest.$ac_objext 4937if { (ac_try="$ac_compile" 4938case "(($ac_try" in 4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4940 *) ac_try_echo=$ac_try;; 4941esac 4942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4943 (eval "$ac_compile") 2>conftest.er1 4944 ac_status=$? 4945 grep -v '^ *+' conftest.er1 >conftest.err 4946 rm -f conftest.er1 4947 cat conftest.err >&5 4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4949 (exit $ac_status); } && 4950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4951 { (case "(($ac_try" in 4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4953 *) ac_try_echo=$ac_try;; 4954esac 4955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4956 (eval "$ac_try") 2>&5 4957 ac_status=$? 4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4959 (exit $ac_status); }; } && 4960 { ac_try='test -s conftest.$ac_objext' 4961 { (case "(($ac_try" in 4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4963 *) ac_try_echo=$ac_try;; 4964esac 4965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4966 (eval "$ac_try") 2>&5 4967 ac_status=$? 4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 (exit $ac_status); }; }; then 4970 ac_cv_header_stdc=yes 4971else 4972 echo "$as_me: failed program was:" >&5 4973sed 's/^/| /' conftest.$ac_ext >&5 4974 4975 ac_cv_header_stdc=no 4976fi 4977 4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4979 4980if test $ac_cv_header_stdc = yes; then 4981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4982 cat >conftest.$ac_ext <<_ACEOF 4983/* confdefs.h. */ 4984_ACEOF 4985cat confdefs.h >>conftest.$ac_ext 4986cat >>conftest.$ac_ext <<_ACEOF 4987/* end confdefs.h. */ 4988#include <string.h> 4989 4990_ACEOF 4991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4992 $EGREP "memchr" >/dev/null 2>&1; then 4993 : 4994else 4995 ac_cv_header_stdc=no 4996fi 4997rm -f conftest* 4998 4999fi 5000 5001if test $ac_cv_header_stdc = yes; then 5002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5003 cat >conftest.$ac_ext <<_ACEOF 5004/* confdefs.h. */ 5005_ACEOF 5006cat confdefs.h >>conftest.$ac_ext 5007cat >>conftest.$ac_ext <<_ACEOF 5008/* end confdefs.h. */ 5009#include <stdlib.h> 5010 5011_ACEOF 5012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5013 $EGREP "free" >/dev/null 2>&1; then 5014 : 5015else 5016 ac_cv_header_stdc=no 5017fi 5018rm -f conftest* 5019 5020fi 5021 5022if test $ac_cv_header_stdc = yes; then 5023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5024 if test "$cross_compiling" = yes; then 5025 : 5026else 5027 cat >conftest.$ac_ext <<_ACEOF 5028/* confdefs.h. */ 5029_ACEOF 5030cat confdefs.h >>conftest.$ac_ext 5031cat >>conftest.$ac_ext <<_ACEOF 5032/* end confdefs.h. */ 5033#include <ctype.h> 5034#include <stdlib.h> 5035#if ((' ' & 0x0FF) == 0x020) 5036# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5037# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5038#else 5039# define ISLOWER(c) \ 5040 (('a' <= (c) && (c) <= 'i') \ 5041 || ('j' <= (c) && (c) <= 'r') \ 5042 || ('s' <= (c) && (c) <= 'z')) 5043# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5044#endif 5045 5046#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5047int 5048main () 5049{ 5050 int i; 5051 for (i = 0; i < 256; i++) 5052 if (XOR (islower (i), ISLOWER (i)) 5053 || toupper (i) != TOUPPER (i)) 5054 return 2; 5055 return 0; 5056} 5057_ACEOF 5058rm -f conftest$ac_exeext 5059if { (ac_try="$ac_link" 5060case "(($ac_try" in 5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5062 *) ac_try_echo=$ac_try;; 5063esac 5064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5065 (eval "$ac_link") 2>&5 5066 ac_status=$? 5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5069 { (case "(($ac_try" in 5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5071 *) ac_try_echo=$ac_try;; 5072esac 5073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5074 (eval "$ac_try") 2>&5 5075 ac_status=$? 5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5077 (exit $ac_status); }; }; then 5078 : 5079else 5080 echo "$as_me: program exited with status $ac_status" >&5 5081echo "$as_me: failed program was:" >&5 5082sed 's/^/| /' conftest.$ac_ext >&5 5083 5084( exit $ac_status ) 5085ac_cv_header_stdc=no 5086fi 5087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5088fi 5089 5090 5091fi 5092fi 5093{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5094echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5095if test $ac_cv_header_stdc = yes; then 5096 5097cat >>confdefs.h <<\_ACEOF 5098#define STDC_HEADERS 1 5099_ACEOF 5100 5101fi 5102 5103# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5114 inttypes.h stdint.h unistd.h 5115do 5116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5117{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5120 echo $ECHO_N "(cached) $ECHO_C" >&6 5121else 5122 cat >conftest.$ac_ext <<_ACEOF 5123/* confdefs.h. */ 5124_ACEOF 5125cat confdefs.h >>conftest.$ac_ext 5126cat >>conftest.$ac_ext <<_ACEOF 5127/* end confdefs.h. */ 5128$ac_includes_default 5129 5130#include <$ac_header> 5131_ACEOF 5132rm -f conftest.$ac_objext 5133if { (ac_try="$ac_compile" 5134case "(($ac_try" in 5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5136 *) ac_try_echo=$ac_try;; 5137esac 5138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5139 (eval "$ac_compile") 2>conftest.er1 5140 ac_status=$? 5141 grep -v '^ *+' conftest.er1 >conftest.err 5142 rm -f conftest.er1 5143 cat conftest.err >&5 5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5145 (exit $ac_status); } && 5146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5147 { (case "(($ac_try" in 5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5149 *) ac_try_echo=$ac_try;; 5150esac 5151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5152 (eval "$ac_try") 2>&5 5153 ac_status=$? 5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5155 (exit $ac_status); }; } && 5156 { ac_try='test -s conftest.$ac_objext' 5157 { (case "(($ac_try" in 5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5159 *) ac_try_echo=$ac_try;; 5160esac 5161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5162 (eval "$ac_try") 2>&5 5163 ac_status=$? 5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5165 (exit $ac_status); }; }; then 5166 eval "$as_ac_Header=yes" 5167else 5168 echo "$as_me: failed program was:" >&5 5169sed 's/^/| /' conftest.$ac_ext >&5 5170 5171 eval "$as_ac_Header=no" 5172fi 5173 5174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5175fi 5176ac_res=`eval echo '${'$as_ac_Header'}'` 5177 { echo "$as_me:$LINENO: result: $ac_res" >&5 5178echo "${ECHO_T}$ac_res" >&6; } 5179if test `eval echo '${'$as_ac_Header'}'` = yes; then 5180 cat >>confdefs.h <<_ACEOF 5181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5182_ACEOF 5183 5184fi 5185 5186done 5187 5188 5189 5190for ac_header in dlfcn.h 5191do 5192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5194 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5197 echo $ECHO_N "(cached) $ECHO_C" >&6 5198fi 5199ac_res=`eval echo '${'$as_ac_Header'}'` 5200 { echo "$as_me:$LINENO: result: $ac_res" >&5 5201echo "${ECHO_T}$ac_res" >&6; } 5202else 5203 # Is the header compilable? 5204{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5205echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5206cat >conftest.$ac_ext <<_ACEOF 5207/* confdefs.h. */ 5208_ACEOF 5209cat confdefs.h >>conftest.$ac_ext 5210cat >>conftest.$ac_ext <<_ACEOF 5211/* end confdefs.h. */ 5212$ac_includes_default 5213#include <$ac_header> 5214_ACEOF 5215rm -f conftest.$ac_objext 5216if { (ac_try="$ac_compile" 5217case "(($ac_try" in 5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5219 *) ac_try_echo=$ac_try;; 5220esac 5221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5222 (eval "$ac_compile") 2>conftest.er1 5223 ac_status=$? 5224 grep -v '^ *+' conftest.er1 >conftest.err 5225 rm -f conftest.er1 5226 cat conftest.err >&5 5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5228 (exit $ac_status); } && 5229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5230 { (case "(($ac_try" in 5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5232 *) ac_try_echo=$ac_try;; 5233esac 5234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5235 (eval "$ac_try") 2>&5 5236 ac_status=$? 5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5238 (exit $ac_status); }; } && 5239 { ac_try='test -s conftest.$ac_objext' 5240 { (case "(($ac_try" in 5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5242 *) ac_try_echo=$ac_try;; 5243esac 5244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5245 (eval "$ac_try") 2>&5 5246 ac_status=$? 5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5248 (exit $ac_status); }; }; then 5249 ac_header_compiler=yes 5250else 5251 echo "$as_me: failed program was:" >&5 5252sed 's/^/| /' conftest.$ac_ext >&5 5253 5254 ac_header_compiler=no 5255fi 5256 5257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5258{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5259echo "${ECHO_T}$ac_header_compiler" >&6; } 5260 5261# Is the header present? 5262{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5263echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5264cat >conftest.$ac_ext <<_ACEOF 5265/* confdefs.h. */ 5266_ACEOF 5267cat confdefs.h >>conftest.$ac_ext 5268cat >>conftest.$ac_ext <<_ACEOF 5269/* end confdefs.h. */ 5270#include <$ac_header> 5271_ACEOF 5272if { (ac_try="$ac_cpp conftest.$ac_ext" 5273case "(($ac_try" in 5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5275 *) ac_try_echo=$ac_try;; 5276esac 5277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5279 ac_status=$? 5280 grep -v '^ *+' conftest.er1 >conftest.err 5281 rm -f conftest.er1 5282 cat conftest.err >&5 5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5284 (exit $ac_status); } >/dev/null; then 5285 if test -s conftest.err; then 5286 ac_cpp_err=$ac_c_preproc_warn_flag 5287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5288 else 5289 ac_cpp_err= 5290 fi 5291else 5292 ac_cpp_err=yes 5293fi 5294if test -z "$ac_cpp_err"; then 5295 ac_header_preproc=yes 5296else 5297 echo "$as_me: failed program was:" >&5 5298sed 's/^/| /' conftest.$ac_ext >&5 5299 5300 ac_header_preproc=no 5301fi 5302 5303rm -f conftest.err conftest.$ac_ext 5304{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5305echo "${ECHO_T}$ac_header_preproc" >&6; } 5306 5307# So? What about this header? 5308case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5309 yes:no: ) 5310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5313echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5314 ac_header_preproc=yes 5315 ;; 5316 no:yes:* ) 5317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5322echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5324echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5328echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5329 ( cat <<\_ASBOX 5330## ---------------------------------------------------------------------- ## 5331## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5332## ---------------------------------------------------------------------- ## 5333_ASBOX 5334 ) | sed "s/^/$as_me: WARNING: /" >&2 5335 ;; 5336esac 5337{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5340 echo $ECHO_N "(cached) $ECHO_C" >&6 5341else 5342 eval "$as_ac_Header=\$ac_header_preproc" 5343fi 5344ac_res=`eval echo '${'$as_ac_Header'}'` 5345 { echo "$as_me:$LINENO: result: $ac_res" >&5 5346echo "${ECHO_T}$ac_res" >&6; } 5347 5348fi 5349if test `eval echo '${'$as_ac_Header'}'` = yes; then 5350 cat >>confdefs.h <<_ACEOF 5351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5352_ACEOF 5353 5354fi 5355 5356done 5357 5358ac_ext=cpp 5359ac_cpp='$CXXCPP $CPPFLAGS' 5360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5363if test -z "$CXX"; then 5364 if test -n "$CCC"; then 5365 CXX=$CCC 5366 else 5367 if test -n "$ac_tool_prefix"; then 5368 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5369 do 5370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5371set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5372{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5374if test "${ac_cv_prog_CXX+set}" = set; then 5375 echo $ECHO_N "(cached) $ECHO_C" >&6 5376else 5377 if test -n "$CXX"; then 5378 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5379else 5380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5381for as_dir in $PATH 5382do 5383 IFS=$as_save_IFS 5384 test -z "$as_dir" && as_dir=. 5385 for ac_exec_ext in '' $ac_executable_extensions; do 5386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5387 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5389 break 2 5390 fi 5391done 5392done 5393IFS=$as_save_IFS 5394 5395fi 5396fi 5397CXX=$ac_cv_prog_CXX 5398if test -n "$CXX"; then 5399 { echo "$as_me:$LINENO: result: $CXX" >&5 5400echo "${ECHO_T}$CXX" >&6; } 5401else 5402 { echo "$as_me:$LINENO: result: no" >&5 5403echo "${ECHO_T}no" >&6; } 5404fi 5405 5406 5407 test -n "$CXX" && break 5408 done 5409fi 5410if test -z "$CXX"; then 5411 ac_ct_CXX=$CXX 5412 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5413do 5414 # Extract the first word of "$ac_prog", so it can be a program name with args. 5415set dummy $ac_prog; ac_word=$2 5416{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5418if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5419 echo $ECHO_N "(cached) $ECHO_C" >&6 5420else 5421 if test -n "$ac_ct_CXX"; then 5422 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5423else 5424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5425for as_dir in $PATH 5426do 5427 IFS=$as_save_IFS 5428 test -z "$as_dir" && as_dir=. 5429 for ac_exec_ext in '' $ac_executable_extensions; do 5430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5431 ac_cv_prog_ac_ct_CXX="$ac_prog" 5432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5433 break 2 5434 fi 5435done 5436done 5437IFS=$as_save_IFS 5438 5439fi 5440fi 5441ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5442if test -n "$ac_ct_CXX"; then 5443 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5444echo "${ECHO_T}$ac_ct_CXX" >&6; } 5445else 5446 { echo "$as_me:$LINENO: result: no" >&5 5447echo "${ECHO_T}no" >&6; } 5448fi 5449 5450 5451 test -n "$ac_ct_CXX" && break 5452done 5453 5454 if test "x$ac_ct_CXX" = x; then 5455 CXX="g++" 5456 else 5457 case $cross_compiling:$ac_tool_warned in 5458yes:) 5459{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5460whose name does not start with the host triplet. If you think this 5461configuration is useful to you, please write to autoconf@gnu.org." >&5 5462echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5463whose name does not start with the host triplet. If you think this 5464configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5465ac_tool_warned=yes ;; 5466esac 5467 CXX=$ac_ct_CXX 5468 fi 5469fi 5470 5471 fi 5472fi 5473# Provide some information about the compiler. 5474echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5475ac_compiler=`set X $ac_compile; echo $2` 5476{ (ac_try="$ac_compiler --version >&5" 5477case "(($ac_try" in 5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5479 *) ac_try_echo=$ac_try;; 5480esac 5481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5482 (eval "$ac_compiler --version >&5") 2>&5 5483 ac_status=$? 5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5485 (exit $ac_status); } 5486{ (ac_try="$ac_compiler -v >&5" 5487case "(($ac_try" in 5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5489 *) ac_try_echo=$ac_try;; 5490esac 5491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5492 (eval "$ac_compiler -v >&5") 2>&5 5493 ac_status=$? 5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5495 (exit $ac_status); } 5496{ (ac_try="$ac_compiler -V >&5" 5497case "(($ac_try" in 5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5499 *) ac_try_echo=$ac_try;; 5500esac 5501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5502 (eval "$ac_compiler -V >&5") 2>&5 5503 ac_status=$? 5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5505 (exit $ac_status); } 5506 5507{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5508echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5509if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5510 echo $ECHO_N "(cached) $ECHO_C" >&6 5511else 5512 cat >conftest.$ac_ext <<_ACEOF 5513/* confdefs.h. */ 5514_ACEOF 5515cat confdefs.h >>conftest.$ac_ext 5516cat >>conftest.$ac_ext <<_ACEOF 5517/* end confdefs.h. */ 5518 5519int 5520main () 5521{ 5522#ifndef __GNUC__ 5523 choke me 5524#endif 5525 5526 ; 5527 return 0; 5528} 5529_ACEOF 5530rm -f conftest.$ac_objext 5531if { (ac_try="$ac_compile" 5532case "(($ac_try" in 5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5534 *) ac_try_echo=$ac_try;; 5535esac 5536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5537 (eval "$ac_compile") 2>conftest.er1 5538 ac_status=$? 5539 grep -v '^ *+' conftest.er1 >conftest.err 5540 rm -f conftest.er1 5541 cat conftest.err >&5 5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5543 (exit $ac_status); } && 5544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5545 { (case "(($ac_try" in 5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5547 *) ac_try_echo=$ac_try;; 5548esac 5549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5550 (eval "$ac_try") 2>&5 5551 ac_status=$? 5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5553 (exit $ac_status); }; } && 5554 { ac_try='test -s conftest.$ac_objext' 5555 { (case "(($ac_try" in 5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5557 *) ac_try_echo=$ac_try;; 5558esac 5559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5560 (eval "$ac_try") 2>&5 5561 ac_status=$? 5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5563 (exit $ac_status); }; }; then 5564 ac_compiler_gnu=yes 5565else 5566 echo "$as_me: failed program was:" >&5 5567sed 's/^/| /' conftest.$ac_ext >&5 5568 5569 ac_compiler_gnu=no 5570fi 5571 5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5573ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5574 5575fi 5576{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5577echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5578GXX=`test $ac_compiler_gnu = yes && echo yes` 5579ac_test_CXXFLAGS=${CXXFLAGS+set} 5580ac_save_CXXFLAGS=$CXXFLAGS 5581{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5582echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5583if test "${ac_cv_prog_cxx_g+set}" = set; then 5584 echo $ECHO_N "(cached) $ECHO_C" >&6 5585else 5586 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5587 ac_cxx_werror_flag=yes 5588 ac_cv_prog_cxx_g=no 5589 CXXFLAGS="-g" 5590 cat >conftest.$ac_ext <<_ACEOF 5591/* confdefs.h. */ 5592_ACEOF 5593cat confdefs.h >>conftest.$ac_ext 5594cat >>conftest.$ac_ext <<_ACEOF 5595/* end confdefs.h. */ 5596 5597int 5598main () 5599{ 5600 5601 ; 5602 return 0; 5603} 5604_ACEOF 5605rm -f conftest.$ac_objext 5606if { (ac_try="$ac_compile" 5607case "(($ac_try" in 5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5609 *) ac_try_echo=$ac_try;; 5610esac 5611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5612 (eval "$ac_compile") 2>conftest.er1 5613 ac_status=$? 5614 grep -v '^ *+' conftest.er1 >conftest.err 5615 rm -f conftest.er1 5616 cat conftest.err >&5 5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5618 (exit $ac_status); } && 5619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5620 { (case "(($ac_try" in 5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5622 *) ac_try_echo=$ac_try;; 5623esac 5624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5625 (eval "$ac_try") 2>&5 5626 ac_status=$? 5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5628 (exit $ac_status); }; } && 5629 { ac_try='test -s conftest.$ac_objext' 5630 { (case "(($ac_try" in 5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5632 *) ac_try_echo=$ac_try;; 5633esac 5634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5635 (eval "$ac_try") 2>&5 5636 ac_status=$? 5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5638 (exit $ac_status); }; }; then 5639 ac_cv_prog_cxx_g=yes 5640else 5641 echo "$as_me: failed program was:" >&5 5642sed 's/^/| /' conftest.$ac_ext >&5 5643 5644 CXXFLAGS="" 5645 cat >conftest.$ac_ext <<_ACEOF 5646/* confdefs.h. */ 5647_ACEOF 5648cat confdefs.h >>conftest.$ac_ext 5649cat >>conftest.$ac_ext <<_ACEOF 5650/* end confdefs.h. */ 5651 5652int 5653main () 5654{ 5655 5656 ; 5657 return 0; 5658} 5659_ACEOF 5660rm -f conftest.$ac_objext 5661if { (ac_try="$ac_compile" 5662case "(($ac_try" in 5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5664 *) ac_try_echo=$ac_try;; 5665esac 5666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5667 (eval "$ac_compile") 2>conftest.er1 5668 ac_status=$? 5669 grep -v '^ *+' conftest.er1 >conftest.err 5670 rm -f conftest.er1 5671 cat conftest.err >&5 5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5673 (exit $ac_status); } && 5674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5675 { (case "(($ac_try" in 5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5677 *) ac_try_echo=$ac_try;; 5678esac 5679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5680 (eval "$ac_try") 2>&5 5681 ac_status=$? 5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5683 (exit $ac_status); }; } && 5684 { ac_try='test -s conftest.$ac_objext' 5685 { (case "(($ac_try" in 5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5687 *) ac_try_echo=$ac_try;; 5688esac 5689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5690 (eval "$ac_try") 2>&5 5691 ac_status=$? 5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5693 (exit $ac_status); }; }; then 5694 : 5695else 5696 echo "$as_me: failed program was:" >&5 5697sed 's/^/| /' conftest.$ac_ext >&5 5698 5699 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5700 CXXFLAGS="-g" 5701 cat >conftest.$ac_ext <<_ACEOF 5702/* confdefs.h. */ 5703_ACEOF 5704cat confdefs.h >>conftest.$ac_ext 5705cat >>conftest.$ac_ext <<_ACEOF 5706/* end confdefs.h. */ 5707 5708int 5709main () 5710{ 5711 5712 ; 5713 return 0; 5714} 5715_ACEOF 5716rm -f conftest.$ac_objext 5717if { (ac_try="$ac_compile" 5718case "(($ac_try" in 5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5720 *) ac_try_echo=$ac_try;; 5721esac 5722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5723 (eval "$ac_compile") 2>conftest.er1 5724 ac_status=$? 5725 grep -v '^ *+' conftest.er1 >conftest.err 5726 rm -f conftest.er1 5727 cat conftest.err >&5 5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5729 (exit $ac_status); } && 5730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5731 { (case "(($ac_try" in 5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5733 *) ac_try_echo=$ac_try;; 5734esac 5735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5736 (eval "$ac_try") 2>&5 5737 ac_status=$? 5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5739 (exit $ac_status); }; } && 5740 { ac_try='test -s conftest.$ac_objext' 5741 { (case "(($ac_try" in 5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5743 *) ac_try_echo=$ac_try;; 5744esac 5745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5746 (eval "$ac_try") 2>&5 5747 ac_status=$? 5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5749 (exit $ac_status); }; }; then 5750 ac_cv_prog_cxx_g=yes 5751else 5752 echo "$as_me: failed program was:" >&5 5753sed 's/^/| /' conftest.$ac_ext >&5 5754 5755 5756fi 5757 5758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5759fi 5760 5761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5762fi 5763 5764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5765 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5766fi 5767{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5768echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5769if test "$ac_test_CXXFLAGS" = set; then 5770 CXXFLAGS=$ac_save_CXXFLAGS 5771elif test $ac_cv_prog_cxx_g = yes; then 5772 if test "$GXX" = yes; then 5773 CXXFLAGS="-g -O2" 5774 else 5775 CXXFLAGS="-g" 5776 fi 5777else 5778 if test "$GXX" = yes; then 5779 CXXFLAGS="-O2" 5780 else 5781 CXXFLAGS= 5782 fi 5783fi 5784ac_ext=cpp 5785ac_cpp='$CXXCPP $CPPFLAGS' 5786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5789 5790depcc="$CXX" am_compiler_list= 5791 5792{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5793echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5794if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5795 echo $ECHO_N "(cached) $ECHO_C" >&6 5796else 5797 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5798 # We make a subdir and do the tests there. Otherwise we can end up 5799 # making bogus files that we don't know about and never remove. For 5800 # instance it was reported that on HP-UX the gcc test will end up 5801 # making a dummy file named `D' -- because `-MD' means `put the output 5802 # in D'. 5803 mkdir conftest.dir 5804 # Copy depcomp to subdir because otherwise we won't find it if we're 5805 # using a relative directory. 5806 cp "$am_depcomp" conftest.dir 5807 cd conftest.dir 5808 # We will build objects and dependencies in a subdirectory because 5809 # it helps to detect inapplicable dependency modes. For instance 5810 # both Tru64's cc and ICC support -MD to output dependencies as a 5811 # side effect of compilation, but ICC will put the dependencies in 5812 # the current directory while Tru64 will put them in the object 5813 # directory. 5814 mkdir sub 5815 5816 am_cv_CXX_dependencies_compiler_type=none 5817 if test "$am_compiler_list" = ""; then 5818 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5819 fi 5820 for depmode in $am_compiler_list; do 5821 # Setup a source with many dependencies, because some compilers 5822 # like to wrap large dependency lists on column 80 (with \), and 5823 # we should not choose a depcomp mode which is confused by this. 5824 # 5825 # We need to recreate these files for each test, as the compiler may 5826 # overwrite some of them when testing with obscure command lines. 5827 # This happens at least with the AIX C compiler. 5828 : > sub/conftest.c 5829 for i in 1 2 3 4 5 6; do 5830 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5831 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5832 # Solaris 8's {/usr,}/bin/sh. 5833 touch sub/conftst$i.h 5834 done 5835 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5836 5837 case $depmode in 5838 nosideeffect) 5839 # after this tag, mechanisms are not by side-effect, so they'll 5840 # only be used when explicitly requested 5841 if test "x$enable_dependency_tracking" = xyes; then 5842 continue 5843 else 5844 break 5845 fi 5846 ;; 5847 none) break ;; 5848 esac 5849 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5850 # mode. It turns out that the SunPro C++ compiler does not properly 5851 # handle `-M -o', and we need to detect this. 5852 if depmode=$depmode \ 5853 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5854 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5855 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5856 >/dev/null 2>conftest.err && 5857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5858 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5860 # icc doesn't choke on unknown options, it will just issue warnings 5861 # or remarks (even with -Werror). So we grep stderr for any message 5862 # that says an option was ignored or not supported. 5863 # When given -MP, icc 7.0 and 7.1 complain thusly: 5864 # icc: Command line warning: ignoring option '-M'; no argument required 5865 # The diagnosis changed in icc 8.0: 5866 # icc: Command line remark: option '-MP' not supported 5867 if (grep 'ignoring option' conftest.err || 5868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5869 am_cv_CXX_dependencies_compiler_type=$depmode 5870 break 5871 fi 5872 fi 5873 done 5874 5875 cd .. 5876 rm -rf conftest.dir 5877else 5878 am_cv_CXX_dependencies_compiler_type=none 5879fi 5880 5881fi 5882{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5883echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5884CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5885 5886 5887 5888if 5889 test "x$enable_dependency_tracking" != xno \ 5890 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5891 am__fastdepCXX_TRUE= 5892 am__fastdepCXX_FALSE='#' 5893else 5894 am__fastdepCXX_TRUE='#' 5895 am__fastdepCXX_FALSE= 5896fi 5897 5898 5899 5900 5901if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5902 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5903 (test "X$CXX" != "Xg++"))) ; then 5904 ac_ext=cpp 5905ac_cpp='$CXXCPP $CPPFLAGS' 5906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5909{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5910echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5911if test -z "$CXXCPP"; then 5912 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5913 echo $ECHO_N "(cached) $ECHO_C" >&6 5914else 5915 # Double quotes because CXXCPP needs to be expanded 5916 for CXXCPP in "$CXX -E" "/lib/cpp" 5917 do 5918 ac_preproc_ok=false 5919for ac_cxx_preproc_warn_flag in '' yes 5920do 5921 # Use a header file that comes with gcc, so configuring glibc 5922 # with a fresh cross-compiler works. 5923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5924 # <limits.h> exists even on freestanding compilers. 5925 # On the NeXT, cc -E runs the code through the compiler's parser, 5926 # not just through cpp. "Syntax error" is here to catch this case. 5927 cat >conftest.$ac_ext <<_ACEOF 5928/* confdefs.h. */ 5929_ACEOF 5930cat confdefs.h >>conftest.$ac_ext 5931cat >>conftest.$ac_ext <<_ACEOF 5932/* end confdefs.h. */ 5933#ifdef __STDC__ 5934# include <limits.h> 5935#else 5936# include <assert.h> 5937#endif 5938 Syntax error 5939_ACEOF 5940if { (ac_try="$ac_cpp conftest.$ac_ext" 5941case "(($ac_try" in 5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5943 *) ac_try_echo=$ac_try;; 5944esac 5945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5947 ac_status=$? 5948 grep -v '^ *+' conftest.er1 >conftest.err 5949 rm -f conftest.er1 5950 cat conftest.err >&5 5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5952 (exit $ac_status); } >/dev/null; then 5953 if test -s conftest.err; then 5954 ac_cpp_err=$ac_cxx_preproc_warn_flag 5955 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5956 else 5957 ac_cpp_err= 5958 fi 5959else 5960 ac_cpp_err=yes 5961fi 5962if test -z "$ac_cpp_err"; then 5963 : 5964else 5965 echo "$as_me: failed program was:" >&5 5966sed 's/^/| /' conftest.$ac_ext >&5 5967 5968 # Broken: fails on valid input. 5969continue 5970fi 5971 5972rm -f conftest.err conftest.$ac_ext 5973 5974 # OK, works on sane cases. Now check whether nonexistent headers 5975 # can be detected and how. 5976 cat >conftest.$ac_ext <<_ACEOF 5977/* confdefs.h. */ 5978_ACEOF 5979cat confdefs.h >>conftest.$ac_ext 5980cat >>conftest.$ac_ext <<_ACEOF 5981/* end confdefs.h. */ 5982#include <ac_nonexistent.h> 5983_ACEOF 5984if { (ac_try="$ac_cpp conftest.$ac_ext" 5985case "(($ac_try" in 5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5987 *) ac_try_echo=$ac_try;; 5988esac 5989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5991 ac_status=$? 5992 grep -v '^ *+' conftest.er1 >conftest.err 5993 rm -f conftest.er1 5994 cat conftest.err >&5 5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5996 (exit $ac_status); } >/dev/null; then 5997 if test -s conftest.err; then 5998 ac_cpp_err=$ac_cxx_preproc_warn_flag 5999 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6000 else 6001 ac_cpp_err= 6002 fi 6003else 6004 ac_cpp_err=yes 6005fi 6006if test -z "$ac_cpp_err"; then 6007 # Broken: success on invalid input. 6008continue 6009else 6010 echo "$as_me: failed program was:" >&5 6011sed 's/^/| /' conftest.$ac_ext >&5 6012 6013 # Passes both tests. 6014ac_preproc_ok=: 6015break 6016fi 6017 6018rm -f conftest.err conftest.$ac_ext 6019 6020done 6021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6022rm -f conftest.err conftest.$ac_ext 6023if $ac_preproc_ok; then 6024 break 6025fi 6026 6027 done 6028 ac_cv_prog_CXXCPP=$CXXCPP 6029 6030fi 6031 CXXCPP=$ac_cv_prog_CXXCPP 6032else 6033 ac_cv_prog_CXXCPP=$CXXCPP 6034fi 6035{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6036echo "${ECHO_T}$CXXCPP" >&6; } 6037ac_preproc_ok=false 6038for ac_cxx_preproc_warn_flag in '' yes 6039do 6040 # Use a header file that comes with gcc, so configuring glibc 6041 # with a fresh cross-compiler works. 6042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6043 # <limits.h> exists even on freestanding compilers. 6044 # On the NeXT, cc -E runs the code through the compiler's parser, 6045 # not just through cpp. "Syntax error" is here to catch this case. 6046 cat >conftest.$ac_ext <<_ACEOF 6047/* confdefs.h. */ 6048_ACEOF 6049cat confdefs.h >>conftest.$ac_ext 6050cat >>conftest.$ac_ext <<_ACEOF 6051/* end confdefs.h. */ 6052#ifdef __STDC__ 6053# include <limits.h> 6054#else 6055# include <assert.h> 6056#endif 6057 Syntax error 6058_ACEOF 6059if { (ac_try="$ac_cpp conftest.$ac_ext" 6060case "(($ac_try" in 6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6062 *) ac_try_echo=$ac_try;; 6063esac 6064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6066 ac_status=$? 6067 grep -v '^ *+' conftest.er1 >conftest.err 6068 rm -f conftest.er1 6069 cat conftest.err >&5 6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6071 (exit $ac_status); } >/dev/null; then 6072 if test -s conftest.err; then 6073 ac_cpp_err=$ac_cxx_preproc_warn_flag 6074 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6075 else 6076 ac_cpp_err= 6077 fi 6078else 6079 ac_cpp_err=yes 6080fi 6081if test -z "$ac_cpp_err"; then 6082 : 6083else 6084 echo "$as_me: failed program was:" >&5 6085sed 's/^/| /' conftest.$ac_ext >&5 6086 6087 # Broken: fails on valid input. 6088continue 6089fi 6090 6091rm -f conftest.err conftest.$ac_ext 6092 6093 # OK, works on sane cases. Now check whether nonexistent headers 6094 # can be detected and how. 6095 cat >conftest.$ac_ext <<_ACEOF 6096/* confdefs.h. */ 6097_ACEOF 6098cat confdefs.h >>conftest.$ac_ext 6099cat >>conftest.$ac_ext <<_ACEOF 6100/* end confdefs.h. */ 6101#include <ac_nonexistent.h> 6102_ACEOF 6103if { (ac_try="$ac_cpp conftest.$ac_ext" 6104case "(($ac_try" in 6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6106 *) ac_try_echo=$ac_try;; 6107esac 6108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6110 ac_status=$? 6111 grep -v '^ *+' conftest.er1 >conftest.err 6112 rm -f conftest.er1 6113 cat conftest.err >&5 6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6115 (exit $ac_status); } >/dev/null; then 6116 if test -s conftest.err; then 6117 ac_cpp_err=$ac_cxx_preproc_warn_flag 6118 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6119 else 6120 ac_cpp_err= 6121 fi 6122else 6123 ac_cpp_err=yes 6124fi 6125if test -z "$ac_cpp_err"; then 6126 # Broken: success on invalid input. 6127continue 6128else 6129 echo "$as_me: failed program was:" >&5 6130sed 's/^/| /' conftest.$ac_ext >&5 6131 6132 # Passes both tests. 6133ac_preproc_ok=: 6134break 6135fi 6136 6137rm -f conftest.err conftest.$ac_ext 6138 6139done 6140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6141rm -f conftest.err conftest.$ac_ext 6142if $ac_preproc_ok; then 6143 : 6144else 6145 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6146See \`config.log' for more details." >&5 6147echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6148See \`config.log' for more details." >&2;} 6149 { (exit 1); exit 1; }; } 6150fi 6151 6152ac_ext=cpp 6153ac_cpp='$CXXCPP $CPPFLAGS' 6154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6157 6158fi 6159 6160 6161ac_ext=f 6162ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6163ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6164ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6165if test -n "$ac_tool_prefix"; then 6166 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 6167 do 6168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6169set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6170{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6172if test "${ac_cv_prog_F77+set}" = set; then 6173 echo $ECHO_N "(cached) $ECHO_C" >&6 6174else 6175 if test -n "$F77"; then 6176 ac_cv_prog_F77="$F77" # Let the user override the test. 6177else 6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6179for as_dir in $PATH 6180do 6181 IFS=$as_save_IFS 6182 test -z "$as_dir" && as_dir=. 6183 for ac_exec_ext in '' $ac_executable_extensions; do 6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6185 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6187 break 2 6188 fi 6189done 6190done 6191IFS=$as_save_IFS 6192 6193fi 6194fi 6195F77=$ac_cv_prog_F77 6196if test -n "$F77"; then 6197 { echo "$as_me:$LINENO: result: $F77" >&5 6198echo "${ECHO_T}$F77" >&6; } 6199else 6200 { echo "$as_me:$LINENO: result: no" >&5 6201echo "${ECHO_T}no" >&6; } 6202fi 6203 6204 6205 test -n "$F77" && break 6206 done 6207fi 6208if test -z "$F77"; then 6209 ac_ct_F77=$F77 6210 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 6211do 6212 # Extract the first word of "$ac_prog", so it can be a program name with args. 6213set dummy $ac_prog; ac_word=$2 6214{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6216if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6217 echo $ECHO_N "(cached) $ECHO_C" >&6 6218else 6219 if test -n "$ac_ct_F77"; then 6220 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6221else 6222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6223for as_dir in $PATH 6224do 6225 IFS=$as_save_IFS 6226 test -z "$as_dir" && as_dir=. 6227 for ac_exec_ext in '' $ac_executable_extensions; do 6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6229 ac_cv_prog_ac_ct_F77="$ac_prog" 6230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6231 break 2 6232 fi 6233done 6234done 6235IFS=$as_save_IFS 6236 6237fi 6238fi 6239ac_ct_F77=$ac_cv_prog_ac_ct_F77 6240if test -n "$ac_ct_F77"; then 6241 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6242echo "${ECHO_T}$ac_ct_F77" >&6; } 6243else 6244 { echo "$as_me:$LINENO: result: no" >&5 6245echo "${ECHO_T}no" >&6; } 6246fi 6247 6248 6249 test -n "$ac_ct_F77" && break 6250done 6251 6252 if test "x$ac_ct_F77" = x; then 6253 F77="" 6254 else 6255 case $cross_compiling:$ac_tool_warned in 6256yes:) 6257{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6258whose name does not start with the host triplet. If you think this 6259configuration is useful to you, please write to autoconf@gnu.org." >&5 6260echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6261whose name does not start with the host triplet. If you think this 6262configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6263ac_tool_warned=yes ;; 6264esac 6265 F77=$ac_ct_F77 6266 fi 6267fi 6268 6269 6270# Provide some information about the compiler. 6271echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6272ac_compiler=`set X $ac_compile; echo $2` 6273{ (ac_try="$ac_compiler --version >&5" 6274case "(($ac_try" in 6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6276 *) ac_try_echo=$ac_try;; 6277esac 6278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6279 (eval "$ac_compiler --version >&5") 2>&5 6280 ac_status=$? 6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6282 (exit $ac_status); } 6283{ (ac_try="$ac_compiler -v >&5" 6284case "(($ac_try" in 6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6286 *) ac_try_echo=$ac_try;; 6287esac 6288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6289 (eval "$ac_compiler -v >&5") 2>&5 6290 ac_status=$? 6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6292 (exit $ac_status); } 6293{ (ac_try="$ac_compiler -V >&5" 6294case "(($ac_try" in 6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6296 *) ac_try_echo=$ac_try;; 6297esac 6298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6299 (eval "$ac_compiler -V >&5") 2>&5 6300 ac_status=$? 6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6302 (exit $ac_status); } 6303rm -f a.out 6304 6305# If we don't use `.F' as extension, the preprocessor is not run on the 6306# input file. (Note that this only needs to work for GNU compilers.) 6307ac_save_ext=$ac_ext 6308ac_ext=F 6309{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6310echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6311if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6312 echo $ECHO_N "(cached) $ECHO_C" >&6 6313else 6314 cat >conftest.$ac_ext <<_ACEOF 6315 program main 6316#ifndef __GNUC__ 6317 choke me 6318#endif 6319 6320 end 6321_ACEOF 6322rm -f conftest.$ac_objext 6323if { (ac_try="$ac_compile" 6324case "(($ac_try" in 6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6326 *) ac_try_echo=$ac_try;; 6327esac 6328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6329 (eval "$ac_compile") 2>conftest.er1 6330 ac_status=$? 6331 grep -v '^ *+' conftest.er1 >conftest.err 6332 rm -f conftest.er1 6333 cat conftest.err >&5 6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6335 (exit $ac_status); } && 6336 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6337 { (case "(($ac_try" in 6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6339 *) ac_try_echo=$ac_try;; 6340esac 6341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6342 (eval "$ac_try") 2>&5 6343 ac_status=$? 6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6345 (exit $ac_status); }; } && 6346 { ac_try='test -s conftest.$ac_objext' 6347 { (case "(($ac_try" in 6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6349 *) ac_try_echo=$ac_try;; 6350esac 6351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6352 (eval "$ac_try") 2>&5 6353 ac_status=$? 6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6355 (exit $ac_status); }; }; then 6356 ac_compiler_gnu=yes 6357else 6358 echo "$as_me: failed program was:" >&5 6359sed 's/^/| /' conftest.$ac_ext >&5 6360 6361 ac_compiler_gnu=no 6362fi 6363 6364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6365ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6366 6367fi 6368{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6369echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6370ac_ext=$ac_save_ext 6371ac_test_FFLAGS=${FFLAGS+set} 6372ac_save_FFLAGS=$FFLAGS 6373FFLAGS= 6374{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6375echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6376if test "${ac_cv_prog_f77_g+set}" = set; then 6377 echo $ECHO_N "(cached) $ECHO_C" >&6 6378else 6379 FFLAGS=-g 6380cat >conftest.$ac_ext <<_ACEOF 6381 program main 6382 6383 end 6384_ACEOF 6385rm -f conftest.$ac_objext 6386if { (ac_try="$ac_compile" 6387case "(($ac_try" in 6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6389 *) ac_try_echo=$ac_try;; 6390esac 6391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6392 (eval "$ac_compile") 2>conftest.er1 6393 ac_status=$? 6394 grep -v '^ *+' conftest.er1 >conftest.err 6395 rm -f conftest.er1 6396 cat conftest.err >&5 6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6398 (exit $ac_status); } && 6399 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6400 { (case "(($ac_try" in 6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6402 *) ac_try_echo=$ac_try;; 6403esac 6404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6405 (eval "$ac_try") 2>&5 6406 ac_status=$? 6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6408 (exit $ac_status); }; } && 6409 { ac_try='test -s conftest.$ac_objext' 6410 { (case "(($ac_try" in 6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6412 *) ac_try_echo=$ac_try;; 6413esac 6414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6415 (eval "$ac_try") 2>&5 6416 ac_status=$? 6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6418 (exit $ac_status); }; }; then 6419 ac_cv_prog_f77_g=yes 6420else 6421 echo "$as_me: failed program was:" >&5 6422sed 's/^/| /' conftest.$ac_ext >&5 6423 6424 ac_cv_prog_f77_g=no 6425fi 6426 6427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6428 6429fi 6430{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6431echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6432if test "$ac_test_FFLAGS" = set; then 6433 FFLAGS=$ac_save_FFLAGS 6434elif test $ac_cv_prog_f77_g = yes; then 6435 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6436 FFLAGS="-g -O2" 6437 else 6438 FFLAGS="-g" 6439 fi 6440else 6441 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6442 FFLAGS="-O2" 6443 else 6444 FFLAGS= 6445 fi 6446fi 6447 6448G77=`test $ac_compiler_gnu = yes && echo yes` 6449ac_ext=c 6450ac_cpp='$CPP $CPPFLAGS' 6451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6453ac_compiler_gnu=$ac_cv_c_compiler_gnu 6454 6455 6456 6457# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6458 6459# find the maximum length of command line arguments 6460{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6461echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6462if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6463 echo $ECHO_N "(cached) $ECHO_C" >&6 6464else 6465 i=0 6466 teststring="ABCD" 6467 6468 case $build_os in 6469 msdosdjgpp*) 6470 # On DJGPP, this test can blow up pretty badly due to problems in libc 6471 # (any single argument exceeding 2000 bytes causes a buffer overrun 6472 # during glob expansion). Even if it were fixed, the result of this 6473 # check would be larger than it should be. 6474 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6475 ;; 6476 6477 gnu*) 6478 # Under GNU Hurd, this test is not required because there is 6479 # no limit to the length of command line arguments. 6480 # Libtool will interpret -1 as no limit whatsoever 6481 lt_cv_sys_max_cmd_len=-1; 6482 ;; 6483 6484 cygwin* | mingw*) 6485 # On Win9x/ME, this test blows up -- it succeeds, but takes 6486 # about 5 minutes as the teststring grows exponentially. 6487 # Worse, since 9x/ME are not pre-emptively multitasking, 6488 # you end up with a "frozen" computer, even though with patience 6489 # the test eventually succeeds (with a max line length of 256k). 6490 # Instead, let's just punt: use the minimum linelength reported by 6491 # all of the supported platforms: 8192 (on NT/2K/XP). 6492 lt_cv_sys_max_cmd_len=8192; 6493 ;; 6494 6495 amigaos*) 6496 # On AmigaOS with pdksh, this test takes hours, literally. 6497 # So we just punt and use a minimum line length of 8192. 6498 lt_cv_sys_max_cmd_len=8192; 6499 ;; 6500 6501 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6502 # This has been around since 386BSD, at least. Likely further. 6503 if test -x /sbin/sysctl; then 6504 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6505 elif test -x /usr/sbin/sysctl; then 6506 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6507 else 6508 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6509 fi 6510 # And add a safety zone 6511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6513 ;; 6514 6515 interix*) 6516 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6517 lt_cv_sys_max_cmd_len=196608 6518 ;; 6519 6520 osf*) 6521 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6522 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6523 # nice to cause kernel panics so lets avoid the loop below. 6524 # First set a reasonable default. 6525 lt_cv_sys_max_cmd_len=16384 6526 # 6527 if test -x /sbin/sysconfig; then 6528 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6529 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6530 esac 6531 fi 6532 ;; 6533 sco3.2v5*) 6534 lt_cv_sys_max_cmd_len=102400 6535 ;; 6536 sysv5* | sco5v6* | sysv4.2uw2*) 6537 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6538 if test -n "$kargmax"; then 6539 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6540 else 6541 lt_cv_sys_max_cmd_len=32768 6542 fi 6543 ;; 6544 *) 6545 # If test is not a shell built-in, we'll probably end up computing a 6546 # maximum length that is only half of the actual maximum length, but 6547 # we can't tell. 6548 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6549 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6550 = "XX$teststring") >/dev/null 2>&1 && 6551 new_result=`expr "X$teststring" : ".*" 2>&1` && 6552 lt_cv_sys_max_cmd_len=$new_result && 6553 test $i != 17 # 1/2 MB should be enough 6554 do 6555 i=`expr $i + 1` 6556 teststring=$teststring$teststring 6557 done 6558 teststring= 6559 # Add a significant safety factor because C++ compilers can tack on massive 6560 # amounts of additional arguments before passing them to the linker. 6561 # It appears as though 1/2 is a usable value. 6562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6563 ;; 6564 esac 6565 6566fi 6567 6568if test -n $lt_cv_sys_max_cmd_len ; then 6569 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6570echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6571else 6572 { echo "$as_me:$LINENO: result: none" >&5 6573echo "${ECHO_T}none" >&6; } 6574fi 6575 6576 6577 6578 6579# Check for command to grab the raw symbol name followed by C symbol from nm. 6580{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6581echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6582if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6583 echo $ECHO_N "(cached) $ECHO_C" >&6 6584else 6585 6586# These are sane defaults that work on at least a few old systems. 6587# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6588 6589# Character class describing NM global symbol codes. 6590symcode='[BCDEGRST]' 6591 6592# Regexp to match symbols that can be accessed directly from C. 6593sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6594 6595# Transform an extracted symbol line into a proper C declaration 6596lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6597 6598# Transform an extracted symbol line into symbol name and symbol address 6599lt_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'" 6600 6601# Define system-specific variables. 6602case $host_os in 6603aix*) 6604 symcode='[BCDT]' 6605 ;; 6606cygwin* | mingw* | pw32*) 6607 symcode='[ABCDGISTW]' 6608 ;; 6609hpux*) # Its linker distinguishes data from code symbols 6610 if test "$host_cpu" = ia64; then 6611 symcode='[ABCDEGRST]' 6612 fi 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 ;; 6616linux* | k*bsd*-gnu) 6617 if test "$host_cpu" = ia64; then 6618 symcode='[ABCDGIRSTW]' 6619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6620 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'" 6621 fi 6622 ;; 6623irix* | nonstopux*) 6624 symcode='[BCDEGRST]' 6625 ;; 6626osf*) 6627 symcode='[BCDEGQRST]' 6628 ;; 6629solaris*) 6630 symcode='[BDRT]' 6631 ;; 6632sco3.2v5*) 6633 symcode='[DT]' 6634 ;; 6635sysv4.2uw2*) 6636 symcode='[DT]' 6637 ;; 6638sysv5* | sco5v6* | unixware* | OpenUNIX*) 6639 symcode='[ABDT]' 6640 ;; 6641sysv4) 6642 symcode='[DFNSTU]' 6643 ;; 6644esac 6645 6646# Handle CRLF in mingw tool chain 6647opt_cr= 6648case $build_os in 6649mingw*) 6650 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6651 ;; 6652esac 6653 6654# If we're using GNU nm, then use its standard symbol codes. 6655case `$NM -V 2>&1` in 6656*GNU* | *'with BFD'*) 6657 symcode='[ABCDGIRSTW]' ;; 6658esac 6659 6660# Try without a prefix undercore, then with it. 6661for ac_symprfx in "" "_"; do 6662 6663 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6664 symxfrm="\\1 $ac_symprfx\\2 \\2" 6665 6666 # Write the raw and C identifiers. 6667 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6668 6669 # Check to see that the pipe works correctly. 6670 pipe_works=no 6671 6672 rm -f conftest* 6673 cat > conftest.$ac_ext <<EOF 6674#ifdef __cplusplus 6675extern "C" { 6676#endif 6677char nm_test_var; 6678void nm_test_func(){} 6679#ifdef __cplusplus 6680} 6681#endif 6682int main(){nm_test_var='a';nm_test_func();return(0);} 6683EOF 6684 6685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6686 (eval $ac_compile) 2>&5 6687 ac_status=$? 6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6689 (exit $ac_status); }; then 6690 # Now try to grab the symbols. 6691 nlist=conftest.nm 6692 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6693 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6694 ac_status=$? 6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6696 (exit $ac_status); } && test -s "$nlist"; then 6697 # Try sorting and uniquifying the output. 6698 if sort "$nlist" | uniq > "$nlist"T; then 6699 mv -f "$nlist"T "$nlist" 6700 else 6701 rm -f "$nlist"T 6702 fi 6703 6704 # Make sure that we snagged all the symbols we need. 6705 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6706 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6707 cat <<EOF > conftest.$ac_ext 6708#ifdef __cplusplus 6709extern "C" { 6710#endif 6711 6712EOF 6713 # Now generate the symbol file. 6714 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6715 6716 cat <<EOF >> conftest.$ac_ext 6717#if defined (__STDC__) && __STDC__ 6718# define lt_ptr_t void * 6719#else 6720# define lt_ptr_t char * 6721# define const 6722#endif 6723 6724/* The mapping between symbol names and symbols. */ 6725const struct { 6726 const char *name; 6727 lt_ptr_t address; 6728} 6729lt_preloaded_symbols[] = 6730{ 6731EOF 6732 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6733 cat <<\EOF >> conftest.$ac_ext 6734 {0, (lt_ptr_t) 0} 6735}; 6736 6737#ifdef __cplusplus 6738} 6739#endif 6740EOF 6741 # Now try linking the two files. 6742 mv conftest.$ac_objext conftstm.$ac_objext 6743 lt_save_LIBS="$LIBS" 6744 lt_save_CFLAGS="$CFLAGS" 6745 LIBS="conftstm.$ac_objext" 6746 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6748 (eval $ac_link) 2>&5 6749 ac_status=$? 6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6751 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6752 pipe_works=yes 6753 fi 6754 LIBS="$lt_save_LIBS" 6755 CFLAGS="$lt_save_CFLAGS" 6756 else 6757 echo "cannot find nm_test_func in $nlist" >&5 6758 fi 6759 else 6760 echo "cannot find nm_test_var in $nlist" >&5 6761 fi 6762 else 6763 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6764 fi 6765 else 6766 echo "$progname: failed program was:" >&5 6767 cat conftest.$ac_ext >&5 6768 fi 6769 rm -f conftest* conftst* 6770 6771 # Do not use the global_symbol_pipe unless it works. 6772 if test "$pipe_works" = yes; then 6773 break 6774 else 6775 lt_cv_sys_global_symbol_pipe= 6776 fi 6777done 6778 6779fi 6780 6781if test -z "$lt_cv_sys_global_symbol_pipe"; then 6782 lt_cv_sys_global_symbol_to_cdecl= 6783fi 6784if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6785 { echo "$as_me:$LINENO: result: failed" >&5 6786echo "${ECHO_T}failed" >&6; } 6787else 6788 { echo "$as_me:$LINENO: result: ok" >&5 6789echo "${ECHO_T}ok" >&6; } 6790fi 6791 6792{ echo "$as_me:$LINENO: checking for objdir" >&5 6793echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6794if test "${lt_cv_objdir+set}" = set; then 6795 echo $ECHO_N "(cached) $ECHO_C" >&6 6796else 6797 rm -f .libs 2>/dev/null 6798mkdir .libs 2>/dev/null 6799if test -d .libs; then 6800 lt_cv_objdir=.libs 6801else 6802 # MS-DOS does not allow filenames that begin with a dot. 6803 lt_cv_objdir=_libs 6804fi 6805rmdir .libs 2>/dev/null 6806fi 6807{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6808echo "${ECHO_T}$lt_cv_objdir" >&6; } 6809objdir=$lt_cv_objdir 6810 6811 6812 6813 6814 6815case $host_os in 6816aix3*) 6817 # AIX sometimes has problems with the GCC collect2 program. For some 6818 # reason, if we set the COLLECT_NAMES environment variable, the problems 6819 # vanish in a puff of smoke. 6820 if test "X${COLLECT_NAMES+set}" != Xset; then 6821 COLLECT_NAMES= 6822 export COLLECT_NAMES 6823 fi 6824 ;; 6825esac 6826 6827# Sed substitution that helps us do robust quoting. It backslashifies 6828# metacharacters that are still active within double-quoted strings. 6829Xsed='sed -e 1s/^X//' 6830sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6831 6832# Same as above, but do not quote variable references. 6833double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6834 6835# Sed substitution to delay expansion of an escaped shell variable in a 6836# double_quote_subst'ed string. 6837delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6838 6839# Sed substitution to avoid accidental globbing in evaled expressions 6840no_glob_subst='s/\*/\\\*/g' 6841 6842# Constants: 6843rm="rm -f" 6844 6845# Global variables: 6846default_ofile=libtool 6847can_build_shared=yes 6848 6849# All known linkers require a `.a' archive for static linking (except MSVC, 6850# which needs '.lib'). 6851libext=a 6852ltmain="$ac_aux_dir/ltmain.sh" 6853ofile="$default_ofile" 6854with_gnu_ld="$lt_cv_prog_gnu_ld" 6855 6856if test -n "$ac_tool_prefix"; then 6857 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6858set dummy ${ac_tool_prefix}ar; ac_word=$2 6859{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6861if test "${ac_cv_prog_AR+set}" = set; then 6862 echo $ECHO_N "(cached) $ECHO_C" >&6 6863else 6864 if test -n "$AR"; then 6865 ac_cv_prog_AR="$AR" # Let the user override the test. 6866else 6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6868for as_dir in $PATH 6869do 6870 IFS=$as_save_IFS 6871 test -z "$as_dir" && as_dir=. 6872 for ac_exec_ext in '' $ac_executable_extensions; do 6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6874 ac_cv_prog_AR="${ac_tool_prefix}ar" 6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6876 break 2 6877 fi 6878done 6879done 6880IFS=$as_save_IFS 6881 6882fi 6883fi 6884AR=$ac_cv_prog_AR 6885if test -n "$AR"; then 6886 { echo "$as_me:$LINENO: result: $AR" >&5 6887echo "${ECHO_T}$AR" >&6; } 6888else 6889 { echo "$as_me:$LINENO: result: no" >&5 6890echo "${ECHO_T}no" >&6; } 6891fi 6892 6893 6894fi 6895if test -z "$ac_cv_prog_AR"; then 6896 ac_ct_AR=$AR 6897 # Extract the first word of "ar", so it can be a program name with args. 6898set dummy ar; ac_word=$2 6899{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6901if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6902 echo $ECHO_N "(cached) $ECHO_C" >&6 6903else 6904 if test -n "$ac_ct_AR"; then 6905 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6906else 6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6908for as_dir in $PATH 6909do 6910 IFS=$as_save_IFS 6911 test -z "$as_dir" && as_dir=. 6912 for ac_exec_ext in '' $ac_executable_extensions; do 6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6914 ac_cv_prog_ac_ct_AR="ar" 6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6916 break 2 6917 fi 6918done 6919done 6920IFS=$as_save_IFS 6921 6922fi 6923fi 6924ac_ct_AR=$ac_cv_prog_ac_ct_AR 6925if test -n "$ac_ct_AR"; then 6926 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6927echo "${ECHO_T}$ac_ct_AR" >&6; } 6928else 6929 { echo "$as_me:$LINENO: result: no" >&5 6930echo "${ECHO_T}no" >&6; } 6931fi 6932 6933 if test "x$ac_ct_AR" = x; then 6934 AR="false" 6935 else 6936 case $cross_compiling:$ac_tool_warned in 6937yes:) 6938{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6939whose name does not start with the host triplet. If you think this 6940configuration is useful to you, please write to autoconf@gnu.org." >&5 6941echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6942whose name does not start with the host triplet. If you think this 6943configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6944ac_tool_warned=yes ;; 6945esac 6946 AR=$ac_ct_AR 6947 fi 6948else 6949 AR="$ac_cv_prog_AR" 6950fi 6951 6952if test -n "$ac_tool_prefix"; then 6953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6954set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6955{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6957if test "${ac_cv_prog_RANLIB+set}" = set; then 6958 echo $ECHO_N "(cached) $ECHO_C" >&6 6959else 6960 if test -n "$RANLIB"; then 6961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6962else 6963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6964for as_dir in $PATH 6965do 6966 IFS=$as_save_IFS 6967 test -z "$as_dir" && as_dir=. 6968 for ac_exec_ext in '' $ac_executable_extensions; do 6969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6972 break 2 6973 fi 6974done 6975done 6976IFS=$as_save_IFS 6977 6978fi 6979fi 6980RANLIB=$ac_cv_prog_RANLIB 6981if test -n "$RANLIB"; then 6982 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6983echo "${ECHO_T}$RANLIB" >&6; } 6984else 6985 { echo "$as_me:$LINENO: result: no" >&5 6986echo "${ECHO_T}no" >&6; } 6987fi 6988 6989 6990fi 6991if test -z "$ac_cv_prog_RANLIB"; then 6992 ac_ct_RANLIB=$RANLIB 6993 # Extract the first word of "ranlib", so it can be a program name with args. 6994set dummy ranlib; ac_word=$2 6995{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6997if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6998 echo $ECHO_N "(cached) $ECHO_C" >&6 6999else 7000 if test -n "$ac_ct_RANLIB"; then 7001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7002else 7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7004for as_dir in $PATH 7005do 7006 IFS=$as_save_IFS 7007 test -z "$as_dir" && as_dir=. 7008 for ac_exec_ext in '' $ac_executable_extensions; do 7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7010 ac_cv_prog_ac_ct_RANLIB="ranlib" 7011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7012 break 2 7013 fi 7014done 7015done 7016IFS=$as_save_IFS 7017 7018fi 7019fi 7020ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7021if test -n "$ac_ct_RANLIB"; then 7022 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7023echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7024else 7025 { echo "$as_me:$LINENO: result: no" >&5 7026echo "${ECHO_T}no" >&6; } 7027fi 7028 7029 if test "x$ac_ct_RANLIB" = x; then 7030 RANLIB=":" 7031 else 7032 case $cross_compiling:$ac_tool_warned in 7033yes:) 7034{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7035whose name does not start with the host triplet. If you think this 7036configuration is useful to you, please write to autoconf@gnu.org." >&5 7037echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7038whose name does not start with the host triplet. If you think this 7039configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7040ac_tool_warned=yes ;; 7041esac 7042 RANLIB=$ac_ct_RANLIB 7043 fi 7044else 7045 RANLIB="$ac_cv_prog_RANLIB" 7046fi 7047 7048if test -n "$ac_tool_prefix"; then 7049 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7050set dummy ${ac_tool_prefix}strip; ac_word=$2 7051{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7053if test "${ac_cv_prog_STRIP+set}" = set; then 7054 echo $ECHO_N "(cached) $ECHO_C" >&6 7055else 7056 if test -n "$STRIP"; then 7057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7058else 7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7060for as_dir in $PATH 7061do 7062 IFS=$as_save_IFS 7063 test -z "$as_dir" && as_dir=. 7064 for ac_exec_ext in '' $ac_executable_extensions; do 7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7066 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7068 break 2 7069 fi 7070done 7071done 7072IFS=$as_save_IFS 7073 7074fi 7075fi 7076STRIP=$ac_cv_prog_STRIP 7077if test -n "$STRIP"; then 7078 { echo "$as_me:$LINENO: result: $STRIP" >&5 7079echo "${ECHO_T}$STRIP" >&6; } 7080else 7081 { echo "$as_me:$LINENO: result: no" >&5 7082echo "${ECHO_T}no" >&6; } 7083fi 7084 7085 7086fi 7087if test -z "$ac_cv_prog_STRIP"; then 7088 ac_ct_STRIP=$STRIP 7089 # Extract the first word of "strip", so it can be a program name with args. 7090set dummy strip; ac_word=$2 7091{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7093if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7094 echo $ECHO_N "(cached) $ECHO_C" >&6 7095else 7096 if test -n "$ac_ct_STRIP"; then 7097 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7098else 7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7100for as_dir in $PATH 7101do 7102 IFS=$as_save_IFS 7103 test -z "$as_dir" && as_dir=. 7104 for ac_exec_ext in '' $ac_executable_extensions; do 7105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7106 ac_cv_prog_ac_ct_STRIP="strip" 7107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7108 break 2 7109 fi 7110done 7111done 7112IFS=$as_save_IFS 7113 7114fi 7115fi 7116ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7117if test -n "$ac_ct_STRIP"; then 7118 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7119echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7120else 7121 { echo "$as_me:$LINENO: result: no" >&5 7122echo "${ECHO_T}no" >&6; } 7123fi 7124 7125 if test "x$ac_ct_STRIP" = x; then 7126 STRIP=":" 7127 else 7128 case $cross_compiling:$ac_tool_warned in 7129yes:) 7130{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7131whose name does not start with the host triplet. If you think this 7132configuration is useful to you, please write to autoconf@gnu.org." >&5 7133echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7134whose name does not start with the host triplet. If you think this 7135configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7136ac_tool_warned=yes ;; 7137esac 7138 STRIP=$ac_ct_STRIP 7139 fi 7140else 7141 STRIP="$ac_cv_prog_STRIP" 7142fi 7143 7144 7145old_CC="$CC" 7146old_CFLAGS="$CFLAGS" 7147 7148# Set sane defaults for various variables 7149test -z "$AR" && AR=ar 7150test -z "$AR_FLAGS" && AR_FLAGS=cru 7151test -z "$AS" && AS=as 7152test -z "$CC" && CC=cc 7153test -z "$LTCC" && LTCC=$CC 7154test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7155test -z "$DLLTOOL" && DLLTOOL=dlltool 7156test -z "$LD" && LD=ld 7157test -z "$LN_S" && LN_S="ln -s" 7158test -z "$MAGIC_CMD" && MAGIC_CMD=file 7159test -z "$NM" && NM=nm 7160test -z "$SED" && SED=sed 7161test -z "$OBJDUMP" && OBJDUMP=objdump 7162test -z "$RANLIB" && RANLIB=: 7163test -z "$STRIP" && STRIP=: 7164test -z "$ac_objext" && ac_objext=o 7165 7166# Determine commands to create old-style static archives. 7167old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7168old_postinstall_cmds='chmod 644 $oldlib' 7169old_postuninstall_cmds= 7170 7171if test -n "$RANLIB"; then 7172 case $host_os in 7173 openbsd*) 7174 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7175 ;; 7176 *) 7177 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7178 ;; 7179 esac 7180 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7181fi 7182 7183for cc_temp in $compiler""; do 7184 case $cc_temp in 7185 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7186 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7187 \-*) ;; 7188 *) break;; 7189 esac 7190done 7191cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7192 7193 7194# Only perform the check for file, if the check method requires it 7195case $deplibs_check_method in 7196file_magic*) 7197 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7198 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7199echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7200if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7201 echo $ECHO_N "(cached) $ECHO_C" >&6 7202else 7203 case $MAGIC_CMD in 7204[\\/*] | ?:[\\/]*) 7205 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7206 ;; 7207*) 7208 lt_save_MAGIC_CMD="$MAGIC_CMD" 7209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7210 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7211 for ac_dir in $ac_dummy; do 7212 IFS="$lt_save_ifs" 7213 test -z "$ac_dir" && ac_dir=. 7214 if test -f $ac_dir/${ac_tool_prefix}file; then 7215 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7216 if test -n "$file_magic_test_file"; then 7217 case $deplibs_check_method in 7218 "file_magic "*) 7219 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7221 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7222 $EGREP "$file_magic_regex" > /dev/null; then 7223 : 7224 else 7225 cat <<EOF 1>&2 7226 7227*** Warning: the command libtool uses to detect shared libraries, 7228*** $file_magic_cmd, produces output that libtool cannot recognize. 7229*** The result is that libtool may fail to recognize shared libraries 7230*** as such. This will affect the creation of libtool libraries that 7231*** depend on shared libraries, but programs linked with such libtool 7232*** libraries will work regardless of this problem. Nevertheless, you 7233*** may want to report the problem to your system manager and/or to 7234*** bug-libtool@gnu.org 7235 7236EOF 7237 fi ;; 7238 esac 7239 fi 7240 break 7241 fi 7242 done 7243 IFS="$lt_save_ifs" 7244 MAGIC_CMD="$lt_save_MAGIC_CMD" 7245 ;; 7246esac 7247fi 7248 7249MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7250if test -n "$MAGIC_CMD"; then 7251 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7252echo "${ECHO_T}$MAGIC_CMD" >&6; } 7253else 7254 { echo "$as_me:$LINENO: result: no" >&5 7255echo "${ECHO_T}no" >&6; } 7256fi 7257 7258if test -z "$lt_cv_path_MAGIC_CMD"; then 7259 if test -n "$ac_tool_prefix"; then 7260 { echo "$as_me:$LINENO: checking for file" >&5 7261echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7262if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7263 echo $ECHO_N "(cached) $ECHO_C" >&6 7264else 7265 case $MAGIC_CMD in 7266[\\/*] | ?:[\\/]*) 7267 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7268 ;; 7269*) 7270 lt_save_MAGIC_CMD="$MAGIC_CMD" 7271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7272 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7273 for ac_dir in $ac_dummy; do 7274 IFS="$lt_save_ifs" 7275 test -z "$ac_dir" && ac_dir=. 7276 if test -f $ac_dir/file; then 7277 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7278 if test -n "$file_magic_test_file"; then 7279 case $deplibs_check_method in 7280 "file_magic "*) 7281 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7282 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7283 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7284 $EGREP "$file_magic_regex" > /dev/null; then 7285 : 7286 else 7287 cat <<EOF 1>&2 7288 7289*** Warning: the command libtool uses to detect shared libraries, 7290*** $file_magic_cmd, produces output that libtool cannot recognize. 7291*** The result is that libtool may fail to recognize shared libraries 7292*** as such. This will affect the creation of libtool libraries that 7293*** depend on shared libraries, but programs linked with such libtool 7294*** libraries will work regardless of this problem. Nevertheless, you 7295*** may want to report the problem to your system manager and/or to 7296*** bug-libtool@gnu.org 7297 7298EOF 7299 fi ;; 7300 esac 7301 fi 7302 break 7303 fi 7304 done 7305 IFS="$lt_save_ifs" 7306 MAGIC_CMD="$lt_save_MAGIC_CMD" 7307 ;; 7308esac 7309fi 7310 7311MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7312if test -n "$MAGIC_CMD"; then 7313 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7314echo "${ECHO_T}$MAGIC_CMD" >&6; } 7315else 7316 { echo "$as_me:$LINENO: result: no" >&5 7317echo "${ECHO_T}no" >&6; } 7318fi 7319 7320 else 7321 MAGIC_CMD=: 7322 fi 7323fi 7324 7325 fi 7326 ;; 7327esac 7328 7329enable_dlopen=no 7330enable_win32_dll=no 7331 7332# Check whether --enable-libtool-lock was given. 7333if test "${enable_libtool_lock+set}" = set; then 7334 enableval=$enable_libtool_lock; 7335fi 7336 7337test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7338 7339 7340# Check whether --with-pic was given. 7341if test "${with_pic+set}" = set; then 7342 withval=$with_pic; pic_mode="$withval" 7343else 7344 pic_mode=default 7345fi 7346 7347test -z "$pic_mode" && pic_mode=default 7348 7349# Use C for the default configuration in the libtool script 7350tagname= 7351lt_save_CC="$CC" 7352ac_ext=c 7353ac_cpp='$CPP $CPPFLAGS' 7354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7356ac_compiler_gnu=$ac_cv_c_compiler_gnu 7357 7358 7359# Source file extension for C test sources. 7360ac_ext=c 7361 7362# Object file extension for compiled C test sources. 7363objext=o 7364objext=$objext 7365 7366# Code to be used in simple compile tests 7367lt_simple_compile_test_code="int some_variable = 0;\n" 7368 7369# Code to be used in simple link tests 7370lt_simple_link_test_code='int main(){return(0);}\n' 7371 7372 7373# If no C compiler was specified, use CC. 7374LTCC=${LTCC-"$CC"} 7375 7376# If no C compiler flags were specified, use CFLAGS. 7377LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7378 7379# Allow CC to be a program name with arguments. 7380compiler=$CC 7381 7382 7383# save warnings/boilerplate of simple test code 7384ac_outfile=conftest.$ac_objext 7385printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7386eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7387_lt_compiler_boilerplate=`cat conftest.err` 7388$rm conftest* 7389 7390ac_outfile=conftest.$ac_objext 7391printf "$lt_simple_link_test_code" >conftest.$ac_ext 7392eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7393_lt_linker_boilerplate=`cat conftest.err` 7394$rm conftest* 7395 7396 7397 7398lt_prog_compiler_no_builtin_flag= 7399 7400if test "$GCC" = yes; then 7401 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7402 7403 7404{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7405echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7406if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7407 echo $ECHO_N "(cached) $ECHO_C" >&6 7408else 7409 lt_cv_prog_compiler_rtti_exceptions=no 7410 ac_outfile=conftest.$ac_objext 7411 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7412 lt_compiler_flag="-fno-rtti -fno-exceptions" 7413 # Insert the option either (1) after the last *FLAGS variable, or 7414 # (2) before a word containing "conftest.", or (3) at the end. 7415 # Note that $ac_compile itself does not contain backslashes and begins 7416 # with a dollar sign (not a hyphen), so the echo should work correctly. 7417 # The option is referenced via a variable to avoid confusing sed. 7418 lt_compile=`echo "$ac_compile" | $SED \ 7419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7421 -e 's:$: $lt_compiler_flag:'` 7422 (eval echo "\"\$as_me:7422: $lt_compile\"" >&5) 7423 (eval "$lt_compile" 2>conftest.err) 7424 ac_status=$? 7425 cat conftest.err >&5 7426 echo "$as_me:7426: \$? = $ac_status" >&5 7427 if (exit $ac_status) && test -s "$ac_outfile"; then 7428 # The compiler can only warn and ignore the option if not recognized 7429 # So say no if there are warnings other than the usual output. 7430 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7433 lt_cv_prog_compiler_rtti_exceptions=yes 7434 fi 7435 fi 7436 $rm conftest* 7437 7438fi 7439{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7440echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7441 7442if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7443 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7444else 7445 : 7446fi 7447 7448fi 7449 7450lt_prog_compiler_wl= 7451lt_prog_compiler_pic= 7452lt_prog_compiler_static= 7453 7454{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7455echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7456 7457 if test "$GCC" = yes; then 7458 lt_prog_compiler_wl='-Wl,' 7459 lt_prog_compiler_static='-static' 7460 7461 case $host_os in 7462 aix*) 7463 # All AIX code is PIC. 7464 if test "$host_cpu" = ia64; then 7465 # AIX 5 now supports IA64 processor 7466 lt_prog_compiler_static='-Bstatic' 7467 fi 7468 ;; 7469 7470 amigaos*) 7471 # FIXME: we need at least 68020 code to build shared libraries, but 7472 # adding the `-m68020' flag to GCC prevents building anything better, 7473 # like `-m68040'. 7474 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7475 ;; 7476 7477 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7478 # PIC is the default for these OSes. 7479 ;; 7480 7481 mingw* | pw32* | os2*) 7482 # This hack is so that the source file can tell whether it is being 7483 # built for inclusion in a dll (and should export symbols for example). 7484 lt_prog_compiler_pic='-DDLL_EXPORT' 7485 ;; 7486 7487 darwin* | rhapsody*) 7488 # PIC is the default on this platform 7489 # Common symbols not allowed in MH_DYLIB files 7490 lt_prog_compiler_pic='-fno-common' 7491 ;; 7492 7493 interix3*) 7494 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7495 # Instead, we relocate shared libraries at runtime. 7496 ;; 7497 7498 msdosdjgpp*) 7499 # Just because we use GCC doesn't mean we suddenly get shared libraries 7500 # on systems that don't support them. 7501 lt_prog_compiler_can_build_shared=no 7502 enable_shared=no 7503 ;; 7504 7505 sysv4*MP*) 7506 if test -d /usr/nec; then 7507 lt_prog_compiler_pic=-Kconform_pic 7508 fi 7509 ;; 7510 7511 hpux*) 7512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7513 # not for PA HP-UX. 7514 case $host_cpu in 7515 hppa*64*|ia64*) 7516 # +Z the default 7517 ;; 7518 *) 7519 lt_prog_compiler_pic='-fPIC' 7520 ;; 7521 esac 7522 ;; 7523 7524 *) 7525 lt_prog_compiler_pic='-fPIC' 7526 ;; 7527 esac 7528 else 7529 # PORTME Check for flag to pass linker flags through the system compiler. 7530 case $host_os in 7531 aix*) 7532 lt_prog_compiler_wl='-Wl,' 7533 if test "$host_cpu" = ia64; then 7534 # AIX 5 now supports IA64 processor 7535 lt_prog_compiler_static='-Bstatic' 7536 else 7537 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7538 fi 7539 ;; 7540 darwin*) 7541 # PIC is the default on this platform 7542 # Common symbols not allowed in MH_DYLIB files 7543 case $cc_basename in 7544 xlc*) 7545 lt_prog_compiler_pic='-qnocommon' 7546 lt_prog_compiler_wl='-Wl,' 7547 ;; 7548 esac 7549 ;; 7550 7551 mingw* | pw32* | os2*) 7552 # This hack is so that the source file can tell whether it is being 7553 # built for inclusion in a dll (and should export symbols for example). 7554 lt_prog_compiler_pic='-DDLL_EXPORT' 7555 ;; 7556 7557 hpux9* | hpux10* | hpux11*) 7558 lt_prog_compiler_wl='-Wl,' 7559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7560 # not for PA HP-UX. 7561 case $host_cpu in 7562 hppa*64*|ia64*) 7563 # +Z the default 7564 ;; 7565 *) 7566 lt_prog_compiler_pic='+Z' 7567 ;; 7568 esac 7569 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7570 lt_prog_compiler_static='${wl}-a ${wl}archive' 7571 ;; 7572 7573 irix5* | irix6* | nonstopux*) 7574 lt_prog_compiler_wl='-Wl,' 7575 # PIC (with -KPIC) is the default. 7576 lt_prog_compiler_static='-non_shared' 7577 ;; 7578 7579 newsos6) 7580 lt_prog_compiler_pic='-KPIC' 7581 lt_prog_compiler_static='-Bstatic' 7582 ;; 7583 7584 linux* | k*bsd*-gnu) 7585 case $cc_basename in 7586 icc* | ecc*) 7587 lt_prog_compiler_wl='-Wl,' 7588 lt_prog_compiler_pic='-KPIC' 7589 lt_prog_compiler_static='-static' 7590 ;; 7591 pgcc* | pgf77* | pgf90* | pgf95*) 7592 # Portland Group compilers (*not* the Pentium gcc compiler, 7593 # which looks to be a dead project) 7594 lt_prog_compiler_wl='-Wl,' 7595 lt_prog_compiler_pic='-fpic' 7596 lt_prog_compiler_static='-Bstatic' 7597 ;; 7598 ccc*) 7599 lt_prog_compiler_wl='-Wl,' 7600 # All Alpha code is PIC. 7601 lt_prog_compiler_static='-non_shared' 7602 ;; 7603 esac 7604 ;; 7605 7606 osf3* | osf4* | osf5*) 7607 lt_prog_compiler_wl='-Wl,' 7608 # All OSF/1 code is PIC. 7609 lt_prog_compiler_static='-non_shared' 7610 ;; 7611 7612 solaris*) 7613 lt_prog_compiler_pic='-KPIC' 7614 lt_prog_compiler_static='-Bstatic' 7615 case $cc_basename in 7616 f77* | f90* | f95*) 7617 lt_prog_compiler_wl='-Qoption ld ';; 7618 *) 7619 lt_prog_compiler_wl='-Wl,';; 7620 esac 7621 ;; 7622 7623 sunos4*) 7624 lt_prog_compiler_wl='-Qoption ld ' 7625 lt_prog_compiler_pic='-PIC' 7626 lt_prog_compiler_static='-Bstatic' 7627 ;; 7628 7629 sysv4 | sysv4.2uw2* | sysv4.3*) 7630 lt_prog_compiler_wl='-Wl,' 7631 lt_prog_compiler_pic='-KPIC' 7632 lt_prog_compiler_static='-Bstatic' 7633 ;; 7634 7635 sysv4*MP*) 7636 if test -d /usr/nec ;then 7637 lt_prog_compiler_pic='-Kconform_pic' 7638 lt_prog_compiler_static='-Bstatic' 7639 fi 7640 ;; 7641 7642 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7643 lt_prog_compiler_wl='-Wl,' 7644 lt_prog_compiler_pic='-KPIC' 7645 lt_prog_compiler_static='-Bstatic' 7646 ;; 7647 7648 unicos*) 7649 lt_prog_compiler_wl='-Wl,' 7650 lt_prog_compiler_can_build_shared=no 7651 ;; 7652 7653 uts4*) 7654 lt_prog_compiler_pic='-pic' 7655 lt_prog_compiler_static='-Bstatic' 7656 ;; 7657 7658 *) 7659 lt_prog_compiler_can_build_shared=no 7660 ;; 7661 esac 7662 fi 7663 7664{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7665echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7666 7667# 7668# Check to make sure the PIC flag actually works. 7669# 7670if test -n "$lt_prog_compiler_pic"; then 7671 7672{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7673echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7674if test "${lt_prog_compiler_pic_works+set}" = set; then 7675 echo $ECHO_N "(cached) $ECHO_C" >&6 7676else 7677 lt_prog_compiler_pic_works=no 7678 ac_outfile=conftest.$ac_objext 7679 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7680 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7681 # Insert the option either (1) after the last *FLAGS variable, or 7682 # (2) before a word containing "conftest.", or (3) at the end. 7683 # Note that $ac_compile itself does not contain backslashes and begins 7684 # with a dollar sign (not a hyphen), so the echo should work correctly. 7685 # The option is referenced via a variable to avoid confusing sed. 7686 lt_compile=`echo "$ac_compile" | $SED \ 7687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7689 -e 's:$: $lt_compiler_flag:'` 7690 (eval echo "\"\$as_me:7690: $lt_compile\"" >&5) 7691 (eval "$lt_compile" 2>conftest.err) 7692 ac_status=$? 7693 cat conftest.err >&5 7694 echo "$as_me:7694: \$? = $ac_status" >&5 7695 if (exit $ac_status) && test -s "$ac_outfile"; then 7696 # The compiler can only warn and ignore the option if not recognized 7697 # So say no if there are warnings other than the usual output. 7698 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7700 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7701 lt_prog_compiler_pic_works=yes 7702 fi 7703 fi 7704 $rm conftest* 7705 7706fi 7707{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7708echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7709 7710if test x"$lt_prog_compiler_pic_works" = xyes; then 7711 case $lt_prog_compiler_pic in 7712 "" | " "*) ;; 7713 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7714 esac 7715else 7716 lt_prog_compiler_pic= 7717 lt_prog_compiler_can_build_shared=no 7718fi 7719 7720fi 7721case $host_os in 7722 # For platforms which do not support PIC, -DPIC is meaningless: 7723 *djgpp*) 7724 lt_prog_compiler_pic= 7725 ;; 7726 *) 7727 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7728 ;; 7729esac 7730 7731# 7732# Check to make sure the static flag actually works. 7733# 7734wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7735{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7736echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7737if test "${lt_prog_compiler_static_works+set}" = set; then 7738 echo $ECHO_N "(cached) $ECHO_C" >&6 7739else 7740 lt_prog_compiler_static_works=no 7741 save_LDFLAGS="$LDFLAGS" 7742 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7743 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7744 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7745 # The linker can only warn and ignore the option if not recognized 7746 # So say no if there are warnings 7747 if test -s conftest.err; then 7748 # Append any errors to the config.log. 7749 cat conftest.err 1>&5 7750 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7751 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7752 if diff conftest.exp conftest.er2 >/dev/null; then 7753 lt_prog_compiler_static_works=yes 7754 fi 7755 else 7756 lt_prog_compiler_static_works=yes 7757 fi 7758 fi 7759 $rm conftest* 7760 LDFLAGS="$save_LDFLAGS" 7761 7762fi 7763{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7764echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7765 7766if test x"$lt_prog_compiler_static_works" = xyes; then 7767 : 7768else 7769 lt_prog_compiler_static= 7770fi 7771 7772 7773{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7774echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7775if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7776 echo $ECHO_N "(cached) $ECHO_C" >&6 7777else 7778 lt_cv_prog_compiler_c_o=no 7779 $rm -r conftest 2>/dev/null 7780 mkdir conftest 7781 cd conftest 7782 mkdir out 7783 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7784 7785 lt_compiler_flag="-o out/conftest2.$ac_objext" 7786 # Insert the option either (1) after the last *FLAGS variable, or 7787 # (2) before a word containing "conftest.", or (3) at the end. 7788 # Note that $ac_compile itself does not contain backslashes and begins 7789 # with a dollar sign (not a hyphen), so the echo should work correctly. 7790 lt_compile=`echo "$ac_compile" | $SED \ 7791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7793 -e 's:$: $lt_compiler_flag:'` 7794 (eval echo "\"\$as_me:7794: $lt_compile\"" >&5) 7795 (eval "$lt_compile" 2>out/conftest.err) 7796 ac_status=$? 7797 cat out/conftest.err >&5 7798 echo "$as_me:7798: \$? = $ac_status" >&5 7799 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7800 then 7801 # The compiler can only warn and ignore the option if not recognized 7802 # So say no if there are warnings 7803 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7804 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7805 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7806 lt_cv_prog_compiler_c_o=yes 7807 fi 7808 fi 7809 chmod u+w . 2>&5 7810 $rm conftest* 7811 # SGI C++ compiler will create directory out/ii_files/ for 7812 # template instantiation 7813 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7814 $rm out/* && rmdir out 7815 cd .. 7816 rmdir conftest 7817 $rm conftest* 7818 7819fi 7820{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7821echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7822 7823 7824hard_links="nottested" 7825if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7826 # do not overwrite the value of need_locks provided by the user 7827 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7828echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7829 hard_links=yes 7830 $rm conftest* 7831 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7832 touch conftest.a 7833 ln conftest.a conftest.b 2>&5 || hard_links=no 7834 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7835 { echo "$as_me:$LINENO: result: $hard_links" >&5 7836echo "${ECHO_T}$hard_links" >&6; } 7837 if test "$hard_links" = no; then 7838 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7839echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7840 need_locks=warn 7841 fi 7842else 7843 need_locks=no 7844fi 7845 7846{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7847echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7848 7849 runpath_var= 7850 allow_undefined_flag= 7851 enable_shared_with_static_runtimes=no 7852 archive_cmds= 7853 archive_expsym_cmds= 7854 old_archive_From_new_cmds= 7855 old_archive_from_expsyms_cmds= 7856 export_dynamic_flag_spec= 7857 whole_archive_flag_spec= 7858 thread_safe_flag_spec= 7859 hardcode_libdir_flag_spec= 7860 hardcode_libdir_flag_spec_ld= 7861 hardcode_libdir_separator= 7862 hardcode_direct=no 7863 hardcode_minus_L=no 7864 hardcode_shlibpath_var=unsupported 7865 link_all_deplibs=unknown 7866 hardcode_automatic=no 7867 module_cmds= 7868 module_expsym_cmds= 7869 always_export_symbols=no 7870 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7871 # include_expsyms should be a list of space-separated symbols to be *always* 7872 # included in the symbol list 7873 include_expsyms= 7874 # exclude_expsyms can be an extended regexp of symbols to exclude 7875 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7876 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7877 # as well as any symbol that contains `d'. 7878 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7879 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7880 # platforms (ab)use it in PIC code, but their linkers get confused if 7881 # the symbol is explicitly referenced. Since portable code cannot 7882 # rely on this symbol name, it's probably fine to never include it in 7883 # preloaded symbol tables. 7884 extract_expsyms_cmds= 7885 # Just being paranoid about ensuring that cc_basename is set. 7886 for cc_temp in $compiler""; do 7887 case $cc_temp in 7888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7890 \-*) ;; 7891 *) break;; 7892 esac 7893done 7894cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7895 7896 case $host_os in 7897 cygwin* | mingw* | pw32*) 7898 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7899 # When not using gcc, we currently assume that we are using 7900 # Microsoft Visual C++. 7901 if test "$GCC" != yes; then 7902 with_gnu_ld=no 7903 fi 7904 ;; 7905 interix*) 7906 # we just hope/assume this is gcc and not c89 (= MSVC++) 7907 with_gnu_ld=yes 7908 ;; 7909 openbsd*) 7910 with_gnu_ld=no 7911 ;; 7912 esac 7913 7914 ld_shlibs=yes 7915 if test "$with_gnu_ld" = yes; then 7916 # If archive_cmds runs LD, not CC, wlarc should be empty 7917 wlarc='${wl}' 7918 7919 # Set some defaults for GNU ld with shared library support. These 7920 # are reset later if shared libraries are not supported. Putting them 7921 # here allows them to be overridden if necessary. 7922 runpath_var=LD_RUN_PATH 7923 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7924 export_dynamic_flag_spec='${wl}--export-dynamic' 7925 # ancient GNU ld didn't support --whole-archive et. al. 7926 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7927 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7928 else 7929 whole_archive_flag_spec= 7930 fi 7931 supports_anon_versioning=no 7932 case `$LD -v 2>/dev/null` in 7933 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7934 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7935 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7936 *\ 2.11.*) ;; # other 2.11 versions 7937 *) supports_anon_versioning=yes ;; 7938 esac 7939 7940 # See if GNU ld supports shared libraries. 7941 case $host_os in 7942 aix3* | aix4* | aix5*) 7943 # On AIX/PPC, the GNU linker is very broken 7944 if test "$host_cpu" != ia64; then 7945 ld_shlibs=no 7946 cat <<EOF 1>&2 7947 7948*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7949*** to be unable to reliably create shared libraries on AIX. 7950*** Therefore, libtool is disabling shared libraries support. If you 7951*** really care for shared libraries, you may want to modify your PATH 7952*** so that a non-GNU linker is found, and then restart. 7953 7954EOF 7955 fi 7956 ;; 7957 7958 amigaos*) 7959 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)' 7960 hardcode_libdir_flag_spec='-L$libdir' 7961 hardcode_minus_L=yes 7962 7963 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7964 # that the semantics of dynamic libraries on AmigaOS, at least up 7965 # to version 4, is to share data among multiple programs linked 7966 # with the same dynamic library. Since this doesn't match the 7967 # behavior of shared libraries on other platforms, we can't use 7968 # them. 7969 ld_shlibs=no 7970 ;; 7971 7972 beos*) 7973 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7974 allow_undefined_flag=unsupported 7975 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7976 # support --undefined. This deserves some investigation. FIXME 7977 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7978 else 7979 ld_shlibs=no 7980 fi 7981 ;; 7982 7983 cygwin* | mingw* | pw32*) 7984 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7985 # as there is no search path for DLLs. 7986 hardcode_libdir_flag_spec='-L$libdir' 7987 allow_undefined_flag=unsupported 7988 always_export_symbols=no 7989 enable_shared_with_static_runtimes=yes 7990 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7991 7992 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7994 # If the export-symbols file already is a .def file (1st line 7995 # is EXPORTS), use it as is; otherwise, prepend... 7996 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7997 cp $export_symbols $output_objdir/$soname.def; 7998 else 7999 echo EXPORTS > $output_objdir/$soname.def; 8000 cat $export_symbols >> $output_objdir/$soname.def; 8001 fi~ 8002 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8003 else 8004 ld_shlibs=no 8005 fi 8006 ;; 8007 8008 interix3*) 8009 hardcode_direct=no 8010 hardcode_shlibpath_var=no 8011 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8012 export_dynamic_flag_spec='${wl}-E' 8013 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8014 # Instead, shared libraries are loaded at an image base (0x10000000 by 8015 # default) and relocated if they conflict, which is a slow very memory 8016 # consuming and fragmenting process. To avoid this, we pick a random, 8017 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8018 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8020 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' 8021 ;; 8022 8023 linux* | k*bsd*-gnu) 8024 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8025 tmp_addflag= 8026 case $cc_basename,$host_cpu in 8027 pgcc*) # Portland Group C compiler 8028 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' 8029 tmp_addflag=' $pic_flag' 8030 ;; 8031 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8032 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' 8033 tmp_addflag=' $pic_flag -Mnomain' ;; 8034 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8035 tmp_addflag=' -i_dynamic' ;; 8036 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8037 tmp_addflag=' -i_dynamic -nofor_main' ;; 8038 ifc* | ifort*) # Intel Fortran compiler 8039 tmp_addflag=' -nofor_main' ;; 8040 esac 8041 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8042 8043 if test $supports_anon_versioning = yes; then 8044 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8045 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8046 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8047 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8048 fi 8049 link_all_deplibs=no 8050 else 8051 ld_shlibs=no 8052 fi 8053 ;; 8054 8055 netbsd* | netbsdelf*-gnu) 8056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8057 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8058 wlarc= 8059 else 8060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8061 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8062 fi 8063 ;; 8064 8065 solaris*) 8066 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8067 ld_shlibs=no 8068 cat <<EOF 1>&2 8069 8070*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8071*** create shared libraries on Solaris systems. Therefore, libtool 8072*** is disabling shared libraries support. We urge you to upgrade GNU 8073*** binutils to release 2.9.1 or newer. Another option is to modify 8074*** your PATH or compiler configuration so that the native linker is 8075*** used, and then restart. 8076 8077EOF 8078 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8080 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8081 else 8082 ld_shlibs=no 8083 fi 8084 ;; 8085 8086 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8087 case `$LD -v 2>&1` in 8088 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8089 ld_shlibs=no 8090 cat <<_LT_EOF 1>&2 8091 8092*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8093*** reliably create shared libraries on SCO systems. Therefore, libtool 8094*** is disabling shared libraries support. We urge you to upgrade GNU 8095*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8096*** your PATH or compiler configuration so that the native linker is 8097*** used, and then restart. 8098 8099_LT_EOF 8100 ;; 8101 *) 8102 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8103 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8105 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8106 else 8107 ld_shlibs=no 8108 fi 8109 ;; 8110 esac 8111 ;; 8112 8113 sunos4*) 8114 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8115 wlarc= 8116 hardcode_direct=yes 8117 hardcode_shlibpath_var=no 8118 ;; 8119 8120 *) 8121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8123 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8124 else 8125 ld_shlibs=no 8126 fi 8127 ;; 8128 esac 8129 8130 if test "$ld_shlibs" = no; then 8131 runpath_var= 8132 hardcode_libdir_flag_spec= 8133 export_dynamic_flag_spec= 8134 whole_archive_flag_spec= 8135 fi 8136 else 8137 # PORTME fill in a description of your system's linker (not GNU ld) 8138 case $host_os in 8139 aix3*) 8140 allow_undefined_flag=unsupported 8141 always_export_symbols=yes 8142 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' 8143 # Note: this linker hardcodes the directories in LIBPATH if there 8144 # are no directories specified by -L. 8145 hardcode_minus_L=yes 8146 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8147 # Neither direct hardcoding nor static linking is supported with a 8148 # broken collect2. 8149 hardcode_direct=unsupported 8150 fi 8151 ;; 8152 8153 aix4* | aix5*) 8154 if test "$host_cpu" = ia64; then 8155 # On IA64, the linker does run time linking by default, so we don't 8156 # have to do anything special. 8157 aix_use_runtimelinking=no 8158 exp_sym_flag='-Bexport' 8159 no_entry_flag="" 8160 else 8161 # If we're using GNU nm, then we don't want the "-C" option. 8162 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8163 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8164 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' 8165 else 8166 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' 8167 fi 8168 aix_use_runtimelinking=no 8169 8170 # Test if we are trying to use run time linking or normal 8171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8172 # need to do runtime linking. 8173 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8174 for ld_flag in $LDFLAGS; do 8175 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8176 aix_use_runtimelinking=yes 8177 break 8178 fi 8179 done 8180 ;; 8181 esac 8182 8183 exp_sym_flag='-bexport' 8184 no_entry_flag='-bnoentry' 8185 fi 8186 8187 # When large executables or shared objects are built, AIX ld can 8188 # have problems creating the table of contents. If linking a library 8189 # or program results in "error TOC overflow" add -mminimal-toc to 8190 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8191 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8192 8193 archive_cmds='' 8194 hardcode_direct=yes 8195 hardcode_libdir_separator=':' 8196 link_all_deplibs=yes 8197 8198 if test "$GCC" = yes; then 8199 case $host_os in aix4.[012]|aix4.[012].*) 8200 # We only want to do this on AIX 4.2 and lower, the check 8201 # below for broken collect2 doesn't work under 4.3+ 8202 collect2name=`${CC} -print-prog-name=collect2` 8203 if test -f "$collect2name" && \ 8204 strings "$collect2name" | grep resolve_lib_name >/dev/null 8205 then 8206 # We have reworked collect2 8207 hardcode_direct=yes 8208 else 8209 # We have old collect2 8210 hardcode_direct=unsupported 8211 # It fails to find uninstalled libraries when the uninstalled 8212 # path is not listed in the libpath. Setting hardcode_minus_L 8213 # to unsupported forces relinking 8214 hardcode_minus_L=yes 8215 hardcode_libdir_flag_spec='-L$libdir' 8216 hardcode_libdir_separator= 8217 fi 8218 ;; 8219 esac 8220 shared_flag='-shared' 8221 if test "$aix_use_runtimelinking" = yes; then 8222 shared_flag="$shared_flag "'${wl}-G' 8223 fi 8224 else 8225 # not using gcc 8226 if test "$host_cpu" = ia64; then 8227 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8228 # chokes on -Wl,-G. The following line is correct: 8229 shared_flag='-G' 8230 else 8231 if test "$aix_use_runtimelinking" = yes; then 8232 shared_flag='${wl}-G' 8233 else 8234 shared_flag='${wl}-bM:SRE' 8235 fi 8236 fi 8237 fi 8238 8239 # It seems that -bexpall does not export symbols beginning with 8240 # underscore (_), so it is better to generate a list of symbols to export. 8241 always_export_symbols=yes 8242 if test "$aix_use_runtimelinking" = yes; then 8243 # Warning - without using the other runtime loading flags (-brtl), 8244 # -berok will link without error, but may produce a broken library. 8245 allow_undefined_flag='-berok' 8246 # Determine the default libpath from the value encoded in an empty executable. 8247 cat >conftest.$ac_ext <<_ACEOF 8248/* confdefs.h. */ 8249_ACEOF 8250cat confdefs.h >>conftest.$ac_ext 8251cat >>conftest.$ac_ext <<_ACEOF 8252/* end confdefs.h. */ 8253 8254int 8255main () 8256{ 8257 8258 ; 8259 return 0; 8260} 8261_ACEOF 8262rm -f conftest.$ac_objext conftest$ac_exeext 8263if { (ac_try="$ac_link" 8264case "(($ac_try" in 8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8266 *) ac_try_echo=$ac_try;; 8267esac 8268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8269 (eval "$ac_link") 2>conftest.er1 8270 ac_status=$? 8271 grep -v '^ *+' conftest.er1 >conftest.err 8272 rm -f conftest.er1 8273 cat conftest.err >&5 8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8275 (exit $ac_status); } && 8276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8277 { (case "(($ac_try" in 8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8279 *) ac_try_echo=$ac_try;; 8280esac 8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8282 (eval "$ac_try") 2>&5 8283 ac_status=$? 8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8285 (exit $ac_status); }; } && 8286 { ac_try='test -s conftest$ac_exeext' 8287 { (case "(($ac_try" in 8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8289 *) ac_try_echo=$ac_try;; 8290esac 8291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8292 (eval "$ac_try") 2>&5 8293 ac_status=$? 8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8295 (exit $ac_status); }; }; then 8296 8297aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8298}'` 8299# Check for a 64-bit object if we didn't find anything. 8300if 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; } 8301}'`; fi 8302else 8303 echo "$as_me: failed program was:" >&5 8304sed 's/^/| /' conftest.$ac_ext >&5 8305 8306 8307fi 8308 8309rm -f core conftest.err conftest.$ac_objext \ 8310 conftest$ac_exeext conftest.$ac_ext 8311if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8312 8313 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8314 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" 8315 else 8316 if test "$host_cpu" = ia64; then 8317 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8318 allow_undefined_flag="-z nodefs" 8319 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" 8320 else 8321 # Determine the default libpath from the value encoded in an empty executable. 8322 cat >conftest.$ac_ext <<_ACEOF 8323/* confdefs.h. */ 8324_ACEOF 8325cat confdefs.h >>conftest.$ac_ext 8326cat >>conftest.$ac_ext <<_ACEOF 8327/* end confdefs.h. */ 8328 8329int 8330main () 8331{ 8332 8333 ; 8334 return 0; 8335} 8336_ACEOF 8337rm -f conftest.$ac_objext conftest$ac_exeext 8338if { (ac_try="$ac_link" 8339case "(($ac_try" in 8340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8341 *) ac_try_echo=$ac_try;; 8342esac 8343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8344 (eval "$ac_link") 2>conftest.er1 8345 ac_status=$? 8346 grep -v '^ *+' conftest.er1 >conftest.err 8347 rm -f conftest.er1 8348 cat conftest.err >&5 8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8350 (exit $ac_status); } && 8351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8352 { (case "(($ac_try" in 8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8354 *) ac_try_echo=$ac_try;; 8355esac 8356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8357 (eval "$ac_try") 2>&5 8358 ac_status=$? 8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8360 (exit $ac_status); }; } && 8361 { ac_try='test -s conftest$ac_exeext' 8362 { (case "(($ac_try" in 8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8364 *) ac_try_echo=$ac_try;; 8365esac 8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8367 (eval "$ac_try") 2>&5 8368 ac_status=$? 8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8370 (exit $ac_status); }; }; then 8371 8372aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8373}'` 8374# Check for a 64-bit object if we didn't find anything. 8375if 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; } 8376}'`; fi 8377else 8378 echo "$as_me: failed program was:" >&5 8379sed 's/^/| /' conftest.$ac_ext >&5 8380 8381 8382fi 8383 8384rm -f core conftest.err conftest.$ac_objext \ 8385 conftest$ac_exeext conftest.$ac_ext 8386if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8387 8388 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8389 # Warning - without using the other run time loading flags, 8390 # -berok will link without error, but may produce a broken library. 8391 no_undefined_flag=' ${wl}-bernotok' 8392 allow_undefined_flag=' ${wl}-berok' 8393 # Exported symbols can be pulled into shared objects from archives 8394 whole_archive_flag_spec='$convenience' 8395 archive_cmds_need_lc=yes 8396 # This is similar to how AIX traditionally builds its shared libraries. 8397 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' 8398 fi 8399 fi 8400 ;; 8401 8402 amigaos*) 8403 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)' 8404 hardcode_libdir_flag_spec='-L$libdir' 8405 hardcode_minus_L=yes 8406 # see comment about different semantics on the GNU ld section 8407 ld_shlibs=no 8408 ;; 8409 8410 bsdi[45]*) 8411 export_dynamic_flag_spec=-rdynamic 8412 ;; 8413 8414 cygwin* | mingw* | pw32*) 8415 # When not using gcc, we currently assume that we are using 8416 # Microsoft Visual C++. 8417 # hardcode_libdir_flag_spec is actually meaningless, as there is 8418 # no search path for DLLs. 8419 hardcode_libdir_flag_spec=' ' 8420 allow_undefined_flag=unsupported 8421 # Tell ltmain to make .lib files, not .a files. 8422 libext=lib 8423 # Tell ltmain to make .dll files, not .so files. 8424 shrext_cmds=".dll" 8425 # FIXME: Setting linknames here is a bad hack. 8426 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8427 # The linker will automatically build a .lib file if we build a DLL. 8428 old_archive_From_new_cmds='true' 8429 # FIXME: Should let the user specify the lib program. 8430 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8431 fix_srcfile_path='`cygpath -w "$srcfile"`' 8432 enable_shared_with_static_runtimes=yes 8433 ;; 8434 8435 darwin* | rhapsody*) 8436 case $host_os in 8437 rhapsody* | darwin1.[012]) 8438 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8439 ;; 8440 *) # Darwin 1.3 on 8441 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8442 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8443 else 8444 case ${MACOSX_DEPLOYMENT_TARGET} in 8445 10.[012]) 8446 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8447 ;; 8448 10.*) 8449 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8450 ;; 8451 esac 8452 fi 8453 ;; 8454 esac 8455 archive_cmds_need_lc=no 8456 hardcode_direct=no 8457 hardcode_automatic=yes 8458 hardcode_shlibpath_var=unsupported 8459 whole_archive_flag_spec='' 8460 link_all_deplibs=yes 8461 if test "$GCC" = yes ; then 8462 output_verbose_link_cmd='echo' 8463 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8464 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8465 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8466 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}' 8467 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}' 8468 else 8469 case $cc_basename in 8470 xlc*) 8471 output_verbose_link_cmd='echo' 8472 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8473 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8474 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8475 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}' 8476 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}' 8477 ;; 8478 *) 8479 ld_shlibs=no 8480 ;; 8481 esac 8482 fi 8483 ;; 8484 8485 dgux*) 8486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8487 hardcode_libdir_flag_spec='-L$libdir' 8488 hardcode_shlibpath_var=no 8489 ;; 8490 8491 freebsd1*) 8492 ld_shlibs=no 8493 ;; 8494 8495 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8496 # support. Future versions do this automatically, but an explicit c++rt0.o 8497 # does not break anything, and helps significantly (at the cost of a little 8498 # extra space). 8499 freebsd2.2*) 8500 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8501 hardcode_libdir_flag_spec='-R$libdir' 8502 hardcode_direct=yes 8503 hardcode_shlibpath_var=no 8504 ;; 8505 8506 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8507 freebsd2*) 8508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8509 hardcode_direct=yes 8510 hardcode_minus_L=yes 8511 hardcode_shlibpath_var=no 8512 ;; 8513 8514 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8515 freebsd* | dragonfly*) 8516 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8517 hardcode_libdir_flag_spec='-R$libdir' 8518 hardcode_direct=yes 8519 hardcode_shlibpath_var=no 8520 ;; 8521 8522 hpux9*) 8523 if test "$GCC" = yes; then 8524 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' 8525 else 8526 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' 8527 fi 8528 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8529 hardcode_libdir_separator=: 8530 hardcode_direct=yes 8531 8532 # hardcode_minus_L: Not really in the search PATH, 8533 # but as the default location of the library. 8534 hardcode_minus_L=yes 8535 export_dynamic_flag_spec='${wl}-E' 8536 ;; 8537 8538 hpux10*) 8539 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8540 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8541 else 8542 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8543 fi 8544 if test "$with_gnu_ld" = no; then 8545 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8546 hardcode_libdir_separator=: 8547 8548 hardcode_direct=yes 8549 export_dynamic_flag_spec='${wl}-E' 8550 8551 # hardcode_minus_L: Not really in the search PATH, 8552 # but as the default location of the library. 8553 hardcode_minus_L=yes 8554 fi 8555 ;; 8556 8557 hpux11*) 8558 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8559 case $host_cpu in 8560 hppa*64*) 8561 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8562 ;; 8563 ia64*) 8564 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8565 ;; 8566 *) 8567 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8568 ;; 8569 esac 8570 else 8571 case $host_cpu in 8572 hppa*64*) 8573 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8574 ;; 8575 ia64*) 8576 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8577 ;; 8578 *) 8579 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8580 ;; 8581 esac 8582 fi 8583 if test "$with_gnu_ld" = no; then 8584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8585 hardcode_libdir_separator=: 8586 8587 case $host_cpu in 8588 hppa*64*|ia64*) 8589 hardcode_libdir_flag_spec_ld='+b $libdir' 8590 hardcode_direct=no 8591 hardcode_shlibpath_var=no 8592 ;; 8593 *) 8594 hardcode_direct=yes 8595 export_dynamic_flag_spec='${wl}-E' 8596 8597 # hardcode_minus_L: Not really in the search PATH, 8598 # but as the default location of the library. 8599 hardcode_minus_L=yes 8600 ;; 8601 esac 8602 fi 8603 ;; 8604 8605 irix5* | irix6* | nonstopux*) 8606 if test "$GCC" = yes; then 8607 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' 8608 else 8609 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' 8610 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8611 fi 8612 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8613 hardcode_libdir_separator=: 8614 link_all_deplibs=yes 8615 ;; 8616 8617 netbsd* | netbsdelf*-gnu) 8618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8620 else 8621 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8622 fi 8623 hardcode_libdir_flag_spec='-R$libdir' 8624 hardcode_direct=yes 8625 hardcode_shlibpath_var=no 8626 ;; 8627 8628 newsos6) 8629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8630 hardcode_direct=yes 8631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8632 hardcode_libdir_separator=: 8633 hardcode_shlibpath_var=no 8634 ;; 8635 8636 openbsd*) 8637 hardcode_direct=yes 8638 hardcode_shlibpath_var=no 8639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8640 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8641 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8643 export_dynamic_flag_spec='${wl}-E' 8644 else 8645 case $host_os in 8646 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8648 hardcode_libdir_flag_spec='-R$libdir' 8649 ;; 8650 *) 8651 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8652 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8653 ;; 8654 esac 8655 fi 8656 ;; 8657 8658 os2*) 8659 hardcode_libdir_flag_spec='-L$libdir' 8660 hardcode_minus_L=yes 8661 allow_undefined_flag=unsupported 8662 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' 8663 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8664 ;; 8665 8666 osf3*) 8667 if test "$GCC" = yes; then 8668 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8669 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' 8670 else 8671 allow_undefined_flag=' -expect_unresolved \*' 8672 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' 8673 fi 8674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8675 hardcode_libdir_separator=: 8676 ;; 8677 8678 osf4* | osf5*) # as osf3* with the addition of -msym flag 8679 if test "$GCC" = yes; then 8680 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8681 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' 8682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8683 else 8684 allow_undefined_flag=' -expect_unresolved \*' 8685 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' 8686 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8687 $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' 8688 8689 # Both c and cxx compiler support -rpath directly 8690 hardcode_libdir_flag_spec='-rpath $libdir' 8691 fi 8692 hardcode_libdir_separator=: 8693 ;; 8694 8695 solaris*) 8696 no_undefined_flag=' -z text' 8697 if test "$GCC" = yes; then 8698 wlarc='${wl}' 8699 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8700 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8701 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8702 else 8703 wlarc='' 8704 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8705 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8706 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8707 fi 8708 hardcode_libdir_flag_spec='-R$libdir' 8709 hardcode_shlibpath_var=no 8710 case $host_os in 8711 solaris2.[0-5] | solaris2.[0-5].*) ;; 8712 *) 8713 # The compiler driver will combine linker options so we 8714 # cannot just pass the convience library names through 8715 # without $wl, iff we do not link with $LD. 8716 # Luckily, gcc supports the same syntax we need for Sun Studio. 8717 # Supported since Solaris 2.6 (maybe 2.5.1?) 8718 case $wlarc in 8719 '') 8720 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8721 *) 8722 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' ;; 8723 esac ;; 8724 esac 8725 link_all_deplibs=yes 8726 ;; 8727 8728 sunos4*) 8729 if test "x$host_vendor" = xsequent; then 8730 # Use $CC to link under sequent, because it throws in some extra .o 8731 # files that make .init and .fini sections work. 8732 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8733 else 8734 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8735 fi 8736 hardcode_libdir_flag_spec='-L$libdir' 8737 hardcode_direct=yes 8738 hardcode_minus_L=yes 8739 hardcode_shlibpath_var=no 8740 ;; 8741 8742 sysv4) 8743 case $host_vendor in 8744 sni) 8745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8746 hardcode_direct=yes # is this really true??? 8747 ;; 8748 siemens) 8749 ## LD is ld it makes a PLAMLIB 8750 ## CC just makes a GrossModule. 8751 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8752 reload_cmds='$CC -r -o $output$reload_objs' 8753 hardcode_direct=no 8754 ;; 8755 motorola) 8756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8757 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8758 ;; 8759 esac 8760 runpath_var='LD_RUN_PATH' 8761 hardcode_shlibpath_var=no 8762 ;; 8763 8764 sysv4.3*) 8765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8766 hardcode_shlibpath_var=no 8767 export_dynamic_flag_spec='-Bexport' 8768 ;; 8769 8770 sysv4*MP*) 8771 if test -d /usr/nec; then 8772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8773 hardcode_shlibpath_var=no 8774 runpath_var=LD_RUN_PATH 8775 hardcode_runpath_var=yes 8776 ld_shlibs=yes 8777 fi 8778 ;; 8779 8780 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8781 no_undefined_flag='${wl}-z,text' 8782 archive_cmds_need_lc=no 8783 hardcode_shlibpath_var=no 8784 runpath_var='LD_RUN_PATH' 8785 8786 if test "$GCC" = yes; then 8787 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8788 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8789 else 8790 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8791 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8792 fi 8793 ;; 8794 8795 sysv5* | sco3.2v5* | sco5v6*) 8796 # Note: We can NOT use -z defs as we might desire, because we do not 8797 # link with -lc, and that would cause any symbols used from libc to 8798 # always be unresolved, which means just about no library would 8799 # ever link correctly. If we're not using GNU ld we use -z text 8800 # though, which does catch some bad symbols but isn't as heavy-handed 8801 # as -z defs. 8802 no_undefined_flag='${wl}-z,text' 8803 allow_undefined_flag='${wl}-z,nodefs' 8804 archive_cmds_need_lc=no 8805 hardcode_shlibpath_var=no 8806 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8807 hardcode_libdir_separator=':' 8808 link_all_deplibs=yes 8809 export_dynamic_flag_spec='${wl}-Bexport' 8810 runpath_var='LD_RUN_PATH' 8811 8812 if test "$GCC" = yes; then 8813 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8814 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8815 else 8816 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8817 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8818 fi 8819 ;; 8820 8821 uts4*) 8822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8823 hardcode_libdir_flag_spec='-L$libdir' 8824 hardcode_shlibpath_var=no 8825 ;; 8826 8827 *) 8828 ld_shlibs=no 8829 ;; 8830 esac 8831 fi 8832 8833{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8834echo "${ECHO_T}$ld_shlibs" >&6; } 8835test "$ld_shlibs" = no && can_build_shared=no 8836 8837# 8838# Do we need to explicitly link libc? 8839# 8840case "x$archive_cmds_need_lc" in 8841x|xyes) 8842 # Assume -lc should be added 8843 archive_cmds_need_lc=yes 8844 8845 if test "$enable_shared" = yes && test "$GCC" = yes; then 8846 case $archive_cmds in 8847 *'~'*) 8848 # FIXME: we may have to deal with multi-command sequences. 8849 ;; 8850 '$CC '*) 8851 # Test whether the compiler implicitly links with -lc since on some 8852 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8853 # to ld, don't add -lc before -lgcc. 8854 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8855echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8856 $rm conftest* 8857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8858 8859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8860 (eval $ac_compile) 2>&5 8861 ac_status=$? 8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8863 (exit $ac_status); } 2>conftest.err; then 8864 soname=conftest 8865 lib=conftest 8866 libobjs=conftest.$ac_objext 8867 deplibs= 8868 wl=$lt_prog_compiler_wl 8869 pic_flag=$lt_prog_compiler_pic 8870 compiler_flags=-v 8871 linker_flags=-v 8872 verstring= 8873 output_objdir=. 8874 libname=conftest 8875 lt_save_allow_undefined_flag=$allow_undefined_flag 8876 allow_undefined_flag= 8877 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8878 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8879 ac_status=$? 8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8881 (exit $ac_status); } 8882 then 8883 archive_cmds_need_lc=no 8884 else 8885 archive_cmds_need_lc=yes 8886 fi 8887 allow_undefined_flag=$lt_save_allow_undefined_flag 8888 else 8889 cat conftest.err 1>&5 8890 fi 8891 $rm conftest* 8892 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8893echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8894 ;; 8895 esac 8896 fi 8897 ;; 8898esac 8899 8900{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8901echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8902library_names_spec= 8903libname_spec='lib$name' 8904soname_spec= 8905shrext_cmds=".so" 8906postinstall_cmds= 8907postuninstall_cmds= 8908finish_cmds= 8909finish_eval= 8910shlibpath_var= 8911shlibpath_overrides_runpath=unknown 8912version_type=none 8913dynamic_linker="$host_os ld.so" 8914sys_lib_dlsearch_path_spec="/lib /usr/lib" 8915if test "$GCC" = yes; then 8916 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8917 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8918 # if the path contains ";" then we assume it to be the separator 8919 # otherwise default to the standard path separator (i.e. ":") - it is 8920 # assumed that no part of a normal pathname contains ";" but that should 8921 # okay in the real world where ";" in dirpaths is itself problematic. 8922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8923 else 8924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8925 fi 8926else 8927 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8928fi 8929need_lib_prefix=unknown 8930hardcode_into_libs=no 8931 8932# when you set need_version to no, make sure it does not cause -set_version 8933# flags to be left without arguments 8934need_version=unknown 8935 8936case $host_os in 8937aix3*) 8938 version_type=linux 8939 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8940 shlibpath_var=LIBPATH 8941 8942 # AIX 3 has no versioning support, so we append a major version to the name. 8943 soname_spec='${libname}${release}${shared_ext}$major' 8944 ;; 8945 8946aix4* | aix5*) 8947 version_type=linux 8948 need_lib_prefix=no 8949 need_version=no 8950 hardcode_into_libs=yes 8951 if test "$host_cpu" = ia64; then 8952 # AIX 5 supports IA64 8953 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8954 shlibpath_var=LD_LIBRARY_PATH 8955 else 8956 # With GCC up to 2.95.x, collect2 would create an import file 8957 # for dependence libraries. The import file would start with 8958 # the line `#! .'. This would cause the generated library to 8959 # depend on `.', always an invalid library. This was fixed in 8960 # development snapshots of GCC prior to 3.0. 8961 case $host_os in 8962 aix4 | aix4.[01] | aix4.[01].*) 8963 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8964 echo ' yes ' 8965 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8966 : 8967 else 8968 can_build_shared=no 8969 fi 8970 ;; 8971 esac 8972 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8973 # soname into executable. Probably we can add versioning support to 8974 # collect2, so additional links can be useful in future. 8975 if test "$aix_use_runtimelinking" = yes; then 8976 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8977 # instead of lib<name>.a to let people know that these are not 8978 # typical AIX shared libraries. 8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8980 else 8981 # We preserve .a as extension for shared libraries through AIX4.2 8982 # and later when we are not doing run time linking. 8983 library_names_spec='${libname}${release}.a $libname.a' 8984 soname_spec='${libname}${release}${shared_ext}$major' 8985 fi 8986 shlibpath_var=LIBPATH 8987 fi 8988 ;; 8989 8990amigaos*) 8991 library_names_spec='$libname.ixlibrary $libname.a' 8992 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8993 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' 8994 ;; 8995 8996beos*) 8997 library_names_spec='${libname}${shared_ext}' 8998 dynamic_linker="$host_os ld.so" 8999 shlibpath_var=LIBRARY_PATH 9000 ;; 9001 9002bsdi[45]*) 9003 version_type=linux 9004 need_version=no 9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9006 soname_spec='${libname}${release}${shared_ext}$major' 9007 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9008 shlibpath_var=LD_LIBRARY_PATH 9009 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9010 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9011 # the default ld.so.conf also contains /usr/contrib/lib and 9012 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9013 # libtool to hard-code these into programs 9014 ;; 9015 9016cygwin* | mingw* | pw32*) 9017 version_type=windows 9018 shrext_cmds=".dll" 9019 need_version=no 9020 need_lib_prefix=no 9021 9022 case $GCC,$host_os in 9023 yes,cygwin* | yes,mingw* | yes,pw32*) 9024 library_names_spec='$libname.dll.a' 9025 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9026 postinstall_cmds='base_file=`basename \${file}`~ 9027 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9028 dldir=$destdir/`dirname \$dlpath`~ 9029 test -d \$dldir || mkdir -p \$dldir~ 9030 $install_prog $dir/$dlname \$dldir/$dlname~ 9031 chmod a+x \$dldir/$dlname' 9032 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9033 dlpath=$dir/\$dldll~ 9034 $rm \$dlpath' 9035 shlibpath_overrides_runpath=yes 9036 9037 case $host_os in 9038 cygwin*) 9039 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9040 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9041 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9042 ;; 9043 mingw*) 9044 # MinGW DLLs use traditional 'lib' prefix 9045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9046 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9047 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9048 # It is most probably a Windows format PATH printed by 9049 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9050 # path with ; separators, and with drive letters. We can handle the 9051 # drive letters (cygwin fileutils understands them), so leave them, 9052 # especially as we might pass files found there to a mingw objdump, 9053 # which wouldn't understand a cygwinified path. Ahh. 9054 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9055 else 9056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9057 fi 9058 ;; 9059 pw32*) 9060 # pw32 DLLs use 'pw' prefix rather than 'lib' 9061 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9062 ;; 9063 esac 9064 ;; 9065 9066 *) 9067 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9068 ;; 9069 esac 9070 dynamic_linker='Win32 ld.exe' 9071 # FIXME: first we should search . and the directory the executable is in 9072 shlibpath_var=PATH 9073 ;; 9074 9075darwin* | rhapsody*) 9076 dynamic_linker="$host_os dyld" 9077 version_type=darwin 9078 need_lib_prefix=no 9079 need_version=no 9080 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9081 soname_spec='${libname}${release}${major}$shared_ext' 9082 shlibpath_overrides_runpath=yes 9083 shlibpath_var=DYLD_LIBRARY_PATH 9084 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9085 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9086 if test "$GCC" = yes; then 9087 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"` 9088 else 9089 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9090 fi 9091 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9092 ;; 9093 9094dgux*) 9095 version_type=linux 9096 need_lib_prefix=no 9097 need_version=no 9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9099 soname_spec='${libname}${release}${shared_ext}$major' 9100 shlibpath_var=LD_LIBRARY_PATH 9101 ;; 9102 9103freebsd1*) 9104 dynamic_linker=no 9105 ;; 9106 9107freebsd* | dragonfly*) 9108 # DragonFly does not have aout. When/if they implement a new 9109 # versioning mechanism, adjust this. 9110 if test -x /usr/bin/objformat; then 9111 objformat=`/usr/bin/objformat` 9112 else 9113 case $host_os in 9114 freebsd[123]*) objformat=aout ;; 9115 *) objformat=elf ;; 9116 esac 9117 fi 9118 version_type=freebsd-$objformat 9119 case $version_type in 9120 freebsd-elf*) 9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9122 need_version=no 9123 need_lib_prefix=no 9124 ;; 9125 freebsd-*) 9126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9127 need_version=yes 9128 ;; 9129 esac 9130 shlibpath_var=LD_LIBRARY_PATH 9131 case $host_os in 9132 freebsd2*) 9133 shlibpath_overrides_runpath=yes 9134 ;; 9135 freebsd3.[01]* | freebsdelf3.[01]*) 9136 shlibpath_overrides_runpath=yes 9137 hardcode_into_libs=yes 9138 ;; 9139 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9140 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9141 shlibpath_overrides_runpath=no 9142 hardcode_into_libs=yes 9143 ;; 9144 freebsd*) # from 4.6 on 9145 shlibpath_overrides_runpath=yes 9146 hardcode_into_libs=yes 9147 ;; 9148 esac 9149 ;; 9150 9151gnu*) 9152 version_type=linux 9153 need_lib_prefix=no 9154 need_version=no 9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9156 soname_spec='${libname}${release}${shared_ext}$major' 9157 shlibpath_var=LD_LIBRARY_PATH 9158 hardcode_into_libs=yes 9159 ;; 9160 9161hpux9* | hpux10* | hpux11*) 9162 # Give a soname corresponding to the major version so that dld.sl refuses to 9163 # link against other versions. 9164 version_type=sunos 9165 need_lib_prefix=no 9166 need_version=no 9167 case $host_cpu in 9168 ia64*) 9169 shrext_cmds='.so' 9170 hardcode_into_libs=yes 9171 dynamic_linker="$host_os dld.so" 9172 shlibpath_var=LD_LIBRARY_PATH 9173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9175 soname_spec='${libname}${release}${shared_ext}$major' 9176 if test "X$HPUX_IA64_MODE" = X32; then 9177 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9178 else 9179 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9180 fi 9181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9182 ;; 9183 hppa*64*) 9184 shrext_cmds='.sl' 9185 hardcode_into_libs=yes 9186 dynamic_linker="$host_os dld.sl" 9187 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9190 soname_spec='${libname}${release}${shared_ext}$major' 9191 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9193 ;; 9194 *) 9195 shrext_cmds='.sl' 9196 dynamic_linker="$host_os dld.sl" 9197 shlibpath_var=SHLIB_PATH 9198 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9200 soname_spec='${libname}${release}${shared_ext}$major' 9201 ;; 9202 esac 9203 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9204 postinstall_cmds='chmod 555 $lib' 9205 ;; 9206 9207interix3*) 9208 version_type=linux 9209 need_lib_prefix=no 9210 need_version=no 9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9212 soname_spec='${libname}${release}${shared_ext}$major' 9213 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9214 shlibpath_var=LD_LIBRARY_PATH 9215 shlibpath_overrides_runpath=no 9216 hardcode_into_libs=yes 9217 ;; 9218 9219irix5* | irix6* | nonstopux*) 9220 case $host_os in 9221 nonstopux*) version_type=nonstopux ;; 9222 *) 9223 if test "$lt_cv_prog_gnu_ld" = yes; then 9224 version_type=linux 9225 else 9226 version_type=irix 9227 fi ;; 9228 esac 9229 need_lib_prefix=no 9230 need_version=no 9231 soname_spec='${libname}${release}${shared_ext}$major' 9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9233 case $host_os in 9234 irix5* | nonstopux*) 9235 libsuff= shlibsuff= 9236 ;; 9237 *) 9238 case $LD in # libtool.m4 will add one of these switches to LD 9239 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9240 libsuff= shlibsuff= libmagic=32-bit;; 9241 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9242 libsuff=32 shlibsuff=N32 libmagic=N32;; 9243 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9244 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9245 *) libsuff= shlibsuff= libmagic=never-match;; 9246 esac 9247 ;; 9248 esac 9249 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9250 shlibpath_overrides_runpath=no 9251 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9252 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9253 hardcode_into_libs=yes 9254 ;; 9255 9256# No shared lib support for Linux oldld, aout, or coff. 9257linux*oldld* | linux*aout* | linux*coff*) 9258 dynamic_linker=no 9259 ;; 9260 9261# This must be Linux ELF. 9262linux* | k*bsd*-gnu) 9263 version_type=linux 9264 need_lib_prefix=no 9265 need_version=no 9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9267 soname_spec='${libname}${release}${shared_ext}$major' 9268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9269 shlibpath_var=LD_LIBRARY_PATH 9270 shlibpath_overrides_runpath=no 9271 # This implies no fast_install, which is unacceptable. 9272 # Some rework will be needed to allow for fast_install 9273 # before this can be enabled. 9274 hardcode_into_libs=yes 9275 9276 # Append ld.so.conf contents to the search path 9277 if test -f /etc/ld.so.conf; then 9278 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' ' '` 9279 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9280 fi 9281 9282 # We used to test for /lib/ld.so.1 and disable shared libraries on 9283 # powerpc, because MkLinux only supported shared libraries with the 9284 # GNU dynamic linker. Since this was broken with cross compilers, 9285 # most powerpc-linux boxes support dynamic linking these days and 9286 # people can always --disable-shared, the test was removed, and we 9287 # assume the GNU/Linux dynamic linker is in use. 9288 dynamic_linker='GNU/Linux ld.so' 9289 ;; 9290 9291netbsdelf*-gnu) 9292 version_type=linux 9293 need_lib_prefix=no 9294 need_version=no 9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9296 soname_spec='${libname}${release}${shared_ext}$major' 9297 shlibpath_var=LD_LIBRARY_PATH 9298 shlibpath_overrides_runpath=no 9299 hardcode_into_libs=yes 9300 dynamic_linker='NetBSD ld.elf_so' 9301 ;; 9302 9303netbsd*) 9304 version_type=sunos 9305 need_lib_prefix=no 9306 need_version=no 9307 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9310 dynamic_linker='NetBSD (a.out) ld.so' 9311 else 9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9313 soname_spec='${libname}${release}${shared_ext}$major' 9314 dynamic_linker='NetBSD ld.elf_so' 9315 fi 9316 shlibpath_var=LD_LIBRARY_PATH 9317 shlibpath_overrides_runpath=yes 9318 hardcode_into_libs=yes 9319 ;; 9320 9321newsos6) 9322 version_type=linux 9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9324 shlibpath_var=LD_LIBRARY_PATH 9325 shlibpath_overrides_runpath=yes 9326 ;; 9327 9328nto-qnx*) 9329 version_type=linux 9330 need_lib_prefix=no 9331 need_version=no 9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9333 soname_spec='${libname}${release}${shared_ext}$major' 9334 shlibpath_var=LD_LIBRARY_PATH 9335 shlibpath_overrides_runpath=yes 9336 ;; 9337 9338openbsd*) 9339 version_type=sunos 9340 sys_lib_dlsearch_path_spec="/usr/lib" 9341 need_lib_prefix=no 9342 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9343 case $host_os in 9344 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9345 *) need_version=no ;; 9346 esac 9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9349 shlibpath_var=LD_LIBRARY_PATH 9350 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9351 case $host_os in 9352 openbsd2.[89] | openbsd2.[89].*) 9353 shlibpath_overrides_runpath=no 9354 ;; 9355 *) 9356 shlibpath_overrides_runpath=yes 9357 ;; 9358 esac 9359 else 9360 shlibpath_overrides_runpath=yes 9361 fi 9362 ;; 9363 9364os2*) 9365 libname_spec='$name' 9366 shrext_cmds=".dll" 9367 need_lib_prefix=no 9368 library_names_spec='$libname${shared_ext} $libname.a' 9369 dynamic_linker='OS/2 ld.exe' 9370 shlibpath_var=LIBPATH 9371 ;; 9372 9373osf3* | osf4* | osf5*) 9374 version_type=osf 9375 need_lib_prefix=no 9376 need_version=no 9377 soname_spec='${libname}${release}${shared_ext}$major' 9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9379 shlibpath_var=LD_LIBRARY_PATH 9380 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9381 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9382 ;; 9383 9384solaris*) 9385 version_type=linux 9386 need_lib_prefix=no 9387 need_version=no 9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9389 soname_spec='${libname}${release}${shared_ext}$major' 9390 shlibpath_var=LD_LIBRARY_PATH 9391 shlibpath_overrides_runpath=yes 9392 hardcode_into_libs=yes 9393 # ldd complains unless libraries are executable 9394 postinstall_cmds='chmod +x $lib' 9395 ;; 9396 9397sunos4*) 9398 version_type=sunos 9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9400 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9401 shlibpath_var=LD_LIBRARY_PATH 9402 shlibpath_overrides_runpath=yes 9403 if test "$with_gnu_ld" = yes; then 9404 need_lib_prefix=no 9405 fi 9406 need_version=yes 9407 ;; 9408 9409sysv4 | sysv4.3*) 9410 version_type=linux 9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9412 soname_spec='${libname}${release}${shared_ext}$major' 9413 shlibpath_var=LD_LIBRARY_PATH 9414 case $host_vendor in 9415 sni) 9416 shlibpath_overrides_runpath=no 9417 need_lib_prefix=no 9418 export_dynamic_flag_spec='${wl}-Blargedynsym' 9419 runpath_var=LD_RUN_PATH 9420 ;; 9421 siemens) 9422 need_lib_prefix=no 9423 ;; 9424 motorola) 9425 need_lib_prefix=no 9426 need_version=no 9427 shlibpath_overrides_runpath=no 9428 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9429 ;; 9430 esac 9431 ;; 9432 9433sysv4*MP*) 9434 if test -d /usr/nec ;then 9435 version_type=linux 9436 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9437 soname_spec='$libname${shared_ext}.$major' 9438 shlibpath_var=LD_LIBRARY_PATH 9439 fi 9440 ;; 9441 9442sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9443 version_type=freebsd-elf 9444 need_lib_prefix=no 9445 need_version=no 9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9447 soname_spec='${libname}${release}${shared_ext}$major' 9448 shlibpath_var=LD_LIBRARY_PATH 9449 hardcode_into_libs=yes 9450 if test "$with_gnu_ld" = yes; then 9451 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9452 shlibpath_overrides_runpath=no 9453 else 9454 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9455 shlibpath_overrides_runpath=yes 9456 case $host_os in 9457 sco3.2v5*) 9458 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9459 ;; 9460 esac 9461 fi 9462 sys_lib_dlsearch_path_spec='/usr/lib' 9463 ;; 9464 9465uts4*) 9466 version_type=linux 9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9468 soname_spec='${libname}${release}${shared_ext}$major' 9469 shlibpath_var=LD_LIBRARY_PATH 9470 ;; 9471 9472*) 9473 dynamic_linker=no 9474 ;; 9475esac 9476{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9477echo "${ECHO_T}$dynamic_linker" >&6; } 9478test "$dynamic_linker" = no && can_build_shared=no 9479 9480variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9481if test "$GCC" = yes; then 9482 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9483fi 9484 9485{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9486echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9487hardcode_action= 9488if test -n "$hardcode_libdir_flag_spec" || \ 9489 test -n "$runpath_var" || \ 9490 test "X$hardcode_automatic" = "Xyes" ; then 9491 9492 # We can hardcode non-existant directories. 9493 if test "$hardcode_direct" != no && 9494 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9495 # have to relink, otherwise we might link with an installed library 9496 # when we should be linking with a yet-to-be-installed one 9497 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9498 test "$hardcode_minus_L" != no; then 9499 # Linking always hardcodes the temporary library directory. 9500 hardcode_action=relink 9501 else 9502 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9503 hardcode_action=immediate 9504 fi 9505else 9506 # We cannot hardcode anything, or else we can only hardcode existing 9507 # directories. 9508 hardcode_action=unsupported 9509fi 9510{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9511echo "${ECHO_T}$hardcode_action" >&6; } 9512 9513if test "$hardcode_action" = relink; then 9514 # Fast installation is not supported 9515 enable_fast_install=no 9516elif test "$shlibpath_overrides_runpath" = yes || 9517 test "$enable_shared" = no; then 9518 # Fast installation is not necessary 9519 enable_fast_install=needless 9520fi 9521 9522striplib= 9523old_striplib= 9524{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9525echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9526if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9527 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9528 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9529 { echo "$as_me:$LINENO: result: yes" >&5 9530echo "${ECHO_T}yes" >&6; } 9531else 9532# FIXME - insert some real tests, host_os isn't really good enough 9533 case $host_os in 9534 darwin*) 9535 if test -n "$STRIP" ; then 9536 striplib="$STRIP -x" 9537 { echo "$as_me:$LINENO: result: yes" >&5 9538echo "${ECHO_T}yes" >&6; } 9539 else 9540 { echo "$as_me:$LINENO: result: no" >&5 9541echo "${ECHO_T}no" >&6; } 9542fi 9543 ;; 9544 *) 9545 { echo "$as_me:$LINENO: result: no" >&5 9546echo "${ECHO_T}no" >&6; } 9547 ;; 9548 esac 9549fi 9550 9551if test "x$enable_dlopen" != xyes; then 9552 enable_dlopen=unknown 9553 enable_dlopen_self=unknown 9554 enable_dlopen_self_static=unknown 9555else 9556 lt_cv_dlopen=no 9557 lt_cv_dlopen_libs= 9558 9559 case $host_os in 9560 beos*) 9561 lt_cv_dlopen="load_add_on" 9562 lt_cv_dlopen_libs= 9563 lt_cv_dlopen_self=yes 9564 ;; 9565 9566 mingw* | pw32*) 9567 lt_cv_dlopen="LoadLibrary" 9568 lt_cv_dlopen_libs= 9569 ;; 9570 9571 cygwin*) 9572 lt_cv_dlopen="dlopen" 9573 lt_cv_dlopen_libs= 9574 ;; 9575 9576 darwin*) 9577 # if libdl is installed we need to link against it 9578 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9579echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9580if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9581 echo $ECHO_N "(cached) $ECHO_C" >&6 9582else 9583 ac_check_lib_save_LIBS=$LIBS 9584LIBS="-ldl $LIBS" 9585cat >conftest.$ac_ext <<_ACEOF 9586/* confdefs.h. */ 9587_ACEOF 9588cat confdefs.h >>conftest.$ac_ext 9589cat >>conftest.$ac_ext <<_ACEOF 9590/* end confdefs.h. */ 9591 9592/* Override any GCC internal prototype to avoid an error. 9593 Use char because int might match the return type of a GCC 9594 builtin and then its argument prototype would still apply. */ 9595#ifdef __cplusplus 9596extern "C" 9597#endif 9598char dlopen (); 9599int 9600main () 9601{ 9602return dlopen (); 9603 ; 9604 return 0; 9605} 9606_ACEOF 9607rm -f conftest.$ac_objext conftest$ac_exeext 9608if { (ac_try="$ac_link" 9609case "(($ac_try" in 9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9611 *) ac_try_echo=$ac_try;; 9612esac 9613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9614 (eval "$ac_link") 2>conftest.er1 9615 ac_status=$? 9616 grep -v '^ *+' conftest.er1 >conftest.err 9617 rm -f conftest.er1 9618 cat conftest.err >&5 9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9620 (exit $ac_status); } && 9621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9622 { (case "(($ac_try" in 9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9624 *) ac_try_echo=$ac_try;; 9625esac 9626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9627 (eval "$ac_try") 2>&5 9628 ac_status=$? 9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9630 (exit $ac_status); }; } && 9631 { ac_try='test -s conftest$ac_exeext' 9632 { (case "(($ac_try" in 9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9634 *) ac_try_echo=$ac_try;; 9635esac 9636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9637 (eval "$ac_try") 2>&5 9638 ac_status=$? 9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9640 (exit $ac_status); }; }; then 9641 ac_cv_lib_dl_dlopen=yes 9642else 9643 echo "$as_me: failed program was:" >&5 9644sed 's/^/| /' conftest.$ac_ext >&5 9645 9646 ac_cv_lib_dl_dlopen=no 9647fi 9648 9649rm -f core conftest.err conftest.$ac_objext \ 9650 conftest$ac_exeext conftest.$ac_ext 9651LIBS=$ac_check_lib_save_LIBS 9652fi 9653{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9654echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9655if test $ac_cv_lib_dl_dlopen = yes; then 9656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9657else 9658 9659 lt_cv_dlopen="dyld" 9660 lt_cv_dlopen_libs= 9661 lt_cv_dlopen_self=yes 9662 9663fi 9664 9665 ;; 9666 9667 *) 9668 { echo "$as_me:$LINENO: checking for shl_load" >&5 9669echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9670if test "${ac_cv_func_shl_load+set}" = set; then 9671 echo $ECHO_N "(cached) $ECHO_C" >&6 9672else 9673 cat >conftest.$ac_ext <<_ACEOF 9674/* confdefs.h. */ 9675_ACEOF 9676cat confdefs.h >>conftest.$ac_ext 9677cat >>conftest.$ac_ext <<_ACEOF 9678/* end confdefs.h. */ 9679/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9680 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9681#define shl_load innocuous_shl_load 9682 9683/* System header to define __stub macros and hopefully few prototypes, 9684 which can conflict with char shl_load (); below. 9685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9686 <limits.h> exists even on freestanding compilers. */ 9687 9688#ifdef __STDC__ 9689# include <limits.h> 9690#else 9691# include <assert.h> 9692#endif 9693 9694#undef shl_load 9695 9696/* Override any GCC internal prototype to avoid an error. 9697 Use char because int might match the return type of a GCC 9698 builtin and then its argument prototype would still apply. */ 9699#ifdef __cplusplus 9700extern "C" 9701#endif 9702char shl_load (); 9703/* The GNU C library defines this for functions which it implements 9704 to always fail with ENOSYS. Some functions are actually named 9705 something starting with __ and the normal name is an alias. */ 9706#if defined __stub_shl_load || defined __stub___shl_load 9707choke me 9708#endif 9709 9710int 9711main () 9712{ 9713return shl_load (); 9714 ; 9715 return 0; 9716} 9717_ACEOF 9718rm -f conftest.$ac_objext conftest$ac_exeext 9719if { (ac_try="$ac_link" 9720case "(($ac_try" in 9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9722 *) ac_try_echo=$ac_try;; 9723esac 9724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9725 (eval "$ac_link") 2>conftest.er1 9726 ac_status=$? 9727 grep -v '^ *+' conftest.er1 >conftest.err 9728 rm -f conftest.er1 9729 cat conftest.err >&5 9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9731 (exit $ac_status); } && 9732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9733 { (case "(($ac_try" in 9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9735 *) ac_try_echo=$ac_try;; 9736esac 9737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9738 (eval "$ac_try") 2>&5 9739 ac_status=$? 9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9741 (exit $ac_status); }; } && 9742 { ac_try='test -s conftest$ac_exeext' 9743 { (case "(($ac_try" in 9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9745 *) ac_try_echo=$ac_try;; 9746esac 9747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9748 (eval "$ac_try") 2>&5 9749 ac_status=$? 9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9751 (exit $ac_status); }; }; then 9752 ac_cv_func_shl_load=yes 9753else 9754 echo "$as_me: failed program was:" >&5 9755sed 's/^/| /' conftest.$ac_ext >&5 9756 9757 ac_cv_func_shl_load=no 9758fi 9759 9760rm -f core conftest.err conftest.$ac_objext \ 9761 conftest$ac_exeext conftest.$ac_ext 9762fi 9763{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9764echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9765if test $ac_cv_func_shl_load = yes; then 9766 lt_cv_dlopen="shl_load" 9767else 9768 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9769echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9770if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9771 echo $ECHO_N "(cached) $ECHO_C" >&6 9772else 9773 ac_check_lib_save_LIBS=$LIBS 9774LIBS="-ldld $LIBS" 9775cat >conftest.$ac_ext <<_ACEOF 9776/* confdefs.h. */ 9777_ACEOF 9778cat confdefs.h >>conftest.$ac_ext 9779cat >>conftest.$ac_ext <<_ACEOF 9780/* end confdefs.h. */ 9781 9782/* Override any GCC internal prototype to avoid an error. 9783 Use char because int might match the return type of a GCC 9784 builtin and then its argument prototype would still apply. */ 9785#ifdef __cplusplus 9786extern "C" 9787#endif 9788char shl_load (); 9789int 9790main () 9791{ 9792return shl_load (); 9793 ; 9794 return 0; 9795} 9796_ACEOF 9797rm -f conftest.$ac_objext conftest$ac_exeext 9798if { (ac_try="$ac_link" 9799case "(($ac_try" in 9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9801 *) ac_try_echo=$ac_try;; 9802esac 9803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9804 (eval "$ac_link") 2>conftest.er1 9805 ac_status=$? 9806 grep -v '^ *+' conftest.er1 >conftest.err 9807 rm -f conftest.er1 9808 cat conftest.err >&5 9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9810 (exit $ac_status); } && 9811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9812 { (case "(($ac_try" in 9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9814 *) ac_try_echo=$ac_try;; 9815esac 9816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9817 (eval "$ac_try") 2>&5 9818 ac_status=$? 9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9820 (exit $ac_status); }; } && 9821 { ac_try='test -s conftest$ac_exeext' 9822 { (case "(($ac_try" in 9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9824 *) ac_try_echo=$ac_try;; 9825esac 9826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9827 (eval "$ac_try") 2>&5 9828 ac_status=$? 9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9830 (exit $ac_status); }; }; then 9831 ac_cv_lib_dld_shl_load=yes 9832else 9833 echo "$as_me: failed program was:" >&5 9834sed 's/^/| /' conftest.$ac_ext >&5 9835 9836 ac_cv_lib_dld_shl_load=no 9837fi 9838 9839rm -f core conftest.err conftest.$ac_objext \ 9840 conftest$ac_exeext conftest.$ac_ext 9841LIBS=$ac_check_lib_save_LIBS 9842fi 9843{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9844echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9845if test $ac_cv_lib_dld_shl_load = yes; then 9846 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9847else 9848 { echo "$as_me:$LINENO: checking for dlopen" >&5 9849echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9850if test "${ac_cv_func_dlopen+set}" = set; then 9851 echo $ECHO_N "(cached) $ECHO_C" >&6 9852else 9853 cat >conftest.$ac_ext <<_ACEOF 9854/* confdefs.h. */ 9855_ACEOF 9856cat confdefs.h >>conftest.$ac_ext 9857cat >>conftest.$ac_ext <<_ACEOF 9858/* end confdefs.h. */ 9859/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9860 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9861#define dlopen innocuous_dlopen 9862 9863/* System header to define __stub macros and hopefully few prototypes, 9864 which can conflict with char dlopen (); below. 9865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9866 <limits.h> exists even on freestanding compilers. */ 9867 9868#ifdef __STDC__ 9869# include <limits.h> 9870#else 9871# include <assert.h> 9872#endif 9873 9874#undef dlopen 9875 9876/* Override any GCC internal prototype to avoid an error. 9877 Use char because int might match the return type of a GCC 9878 builtin and then its argument prototype would still apply. */ 9879#ifdef __cplusplus 9880extern "C" 9881#endif 9882char dlopen (); 9883/* The GNU C library defines this for functions which it implements 9884 to always fail with ENOSYS. Some functions are actually named 9885 something starting with __ and the normal name is an alias. */ 9886#if defined __stub_dlopen || defined __stub___dlopen 9887choke me 9888#endif 9889 9890int 9891main () 9892{ 9893return dlopen (); 9894 ; 9895 return 0; 9896} 9897_ACEOF 9898rm -f conftest.$ac_objext conftest$ac_exeext 9899if { (ac_try="$ac_link" 9900case "(($ac_try" in 9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9902 *) ac_try_echo=$ac_try;; 9903esac 9904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9905 (eval "$ac_link") 2>conftest.er1 9906 ac_status=$? 9907 grep -v '^ *+' conftest.er1 >conftest.err 9908 rm -f conftest.er1 9909 cat conftest.err >&5 9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9911 (exit $ac_status); } && 9912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9913 { (case "(($ac_try" in 9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9915 *) ac_try_echo=$ac_try;; 9916esac 9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9918 (eval "$ac_try") 2>&5 9919 ac_status=$? 9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9921 (exit $ac_status); }; } && 9922 { ac_try='test -s conftest$ac_exeext' 9923 { (case "(($ac_try" in 9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9925 *) ac_try_echo=$ac_try;; 9926esac 9927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9928 (eval "$ac_try") 2>&5 9929 ac_status=$? 9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9931 (exit $ac_status); }; }; then 9932 ac_cv_func_dlopen=yes 9933else 9934 echo "$as_me: failed program was:" >&5 9935sed 's/^/| /' conftest.$ac_ext >&5 9936 9937 ac_cv_func_dlopen=no 9938fi 9939 9940rm -f core conftest.err conftest.$ac_objext \ 9941 conftest$ac_exeext conftest.$ac_ext 9942fi 9943{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9944echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9945if test $ac_cv_func_dlopen = yes; then 9946 lt_cv_dlopen="dlopen" 9947else 9948 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9949echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9950if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9951 echo $ECHO_N "(cached) $ECHO_C" >&6 9952else 9953 ac_check_lib_save_LIBS=$LIBS 9954LIBS="-ldl $LIBS" 9955cat >conftest.$ac_ext <<_ACEOF 9956/* confdefs.h. */ 9957_ACEOF 9958cat confdefs.h >>conftest.$ac_ext 9959cat >>conftest.$ac_ext <<_ACEOF 9960/* end confdefs.h. */ 9961 9962/* Override any GCC internal prototype to avoid an error. 9963 Use char because int might match the return type of a GCC 9964 builtin and then its argument prototype would still apply. */ 9965#ifdef __cplusplus 9966extern "C" 9967#endif 9968char dlopen (); 9969int 9970main () 9971{ 9972return dlopen (); 9973 ; 9974 return 0; 9975} 9976_ACEOF 9977rm -f conftest.$ac_objext conftest$ac_exeext 9978if { (ac_try="$ac_link" 9979case "(($ac_try" in 9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9981 *) ac_try_echo=$ac_try;; 9982esac 9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9984 (eval "$ac_link") 2>conftest.er1 9985 ac_status=$? 9986 grep -v '^ *+' conftest.er1 >conftest.err 9987 rm -f conftest.er1 9988 cat conftest.err >&5 9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9990 (exit $ac_status); } && 9991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9992 { (case "(($ac_try" in 9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9994 *) ac_try_echo=$ac_try;; 9995esac 9996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9997 (eval "$ac_try") 2>&5 9998 ac_status=$? 9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10000 (exit $ac_status); }; } && 10001 { ac_try='test -s conftest$ac_exeext' 10002 { (case "(($ac_try" in 10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10004 *) ac_try_echo=$ac_try;; 10005esac 10006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10007 (eval "$ac_try") 2>&5 10008 ac_status=$? 10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10010 (exit $ac_status); }; }; then 10011 ac_cv_lib_dl_dlopen=yes 10012else 10013 echo "$as_me: failed program was:" >&5 10014sed 's/^/| /' conftest.$ac_ext >&5 10015 10016 ac_cv_lib_dl_dlopen=no 10017fi 10018 10019rm -f core conftest.err conftest.$ac_objext \ 10020 conftest$ac_exeext conftest.$ac_ext 10021LIBS=$ac_check_lib_save_LIBS 10022fi 10023{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10024echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10025if test $ac_cv_lib_dl_dlopen = yes; then 10026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10027else 10028 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10029echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10030if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10031 echo $ECHO_N "(cached) $ECHO_C" >&6 10032else 10033 ac_check_lib_save_LIBS=$LIBS 10034LIBS="-lsvld $LIBS" 10035cat >conftest.$ac_ext <<_ACEOF 10036/* confdefs.h. */ 10037_ACEOF 10038cat confdefs.h >>conftest.$ac_ext 10039cat >>conftest.$ac_ext <<_ACEOF 10040/* end confdefs.h. */ 10041 10042/* Override any GCC internal prototype to avoid an error. 10043 Use char because int might match the return type of a GCC 10044 builtin and then its argument prototype would still apply. */ 10045#ifdef __cplusplus 10046extern "C" 10047#endif 10048char dlopen (); 10049int 10050main () 10051{ 10052return dlopen (); 10053 ; 10054 return 0; 10055} 10056_ACEOF 10057rm -f conftest.$ac_objext conftest$ac_exeext 10058if { (ac_try="$ac_link" 10059case "(($ac_try" in 10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10061 *) ac_try_echo=$ac_try;; 10062esac 10063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10064 (eval "$ac_link") 2>conftest.er1 10065 ac_status=$? 10066 grep -v '^ *+' conftest.er1 >conftest.err 10067 rm -f conftest.er1 10068 cat conftest.err >&5 10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10070 (exit $ac_status); } && 10071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10072 { (case "(($ac_try" in 10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10074 *) ac_try_echo=$ac_try;; 10075esac 10076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10077 (eval "$ac_try") 2>&5 10078 ac_status=$? 10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10080 (exit $ac_status); }; } && 10081 { ac_try='test -s conftest$ac_exeext' 10082 { (case "(($ac_try" in 10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10084 *) ac_try_echo=$ac_try;; 10085esac 10086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10087 (eval "$ac_try") 2>&5 10088 ac_status=$? 10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10090 (exit $ac_status); }; }; then 10091 ac_cv_lib_svld_dlopen=yes 10092else 10093 echo "$as_me: failed program was:" >&5 10094sed 's/^/| /' conftest.$ac_ext >&5 10095 10096 ac_cv_lib_svld_dlopen=no 10097fi 10098 10099rm -f core conftest.err conftest.$ac_objext \ 10100 conftest$ac_exeext conftest.$ac_ext 10101LIBS=$ac_check_lib_save_LIBS 10102fi 10103{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10104echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10105if test $ac_cv_lib_svld_dlopen = yes; then 10106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10107else 10108 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10109echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10110if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10111 echo $ECHO_N "(cached) $ECHO_C" >&6 10112else 10113 ac_check_lib_save_LIBS=$LIBS 10114LIBS="-ldld $LIBS" 10115cat >conftest.$ac_ext <<_ACEOF 10116/* confdefs.h. */ 10117_ACEOF 10118cat confdefs.h >>conftest.$ac_ext 10119cat >>conftest.$ac_ext <<_ACEOF 10120/* end confdefs.h. */ 10121 10122/* Override any GCC internal prototype to avoid an error. 10123 Use char because int might match the return type of a GCC 10124 builtin and then its argument prototype would still apply. */ 10125#ifdef __cplusplus 10126extern "C" 10127#endif 10128char dld_link (); 10129int 10130main () 10131{ 10132return dld_link (); 10133 ; 10134 return 0; 10135} 10136_ACEOF 10137rm -f conftest.$ac_objext conftest$ac_exeext 10138if { (ac_try="$ac_link" 10139case "(($ac_try" in 10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10141 *) ac_try_echo=$ac_try;; 10142esac 10143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10144 (eval "$ac_link") 2>conftest.er1 10145 ac_status=$? 10146 grep -v '^ *+' conftest.er1 >conftest.err 10147 rm -f conftest.er1 10148 cat conftest.err >&5 10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10150 (exit $ac_status); } && 10151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10152 { (case "(($ac_try" in 10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10154 *) ac_try_echo=$ac_try;; 10155esac 10156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10157 (eval "$ac_try") 2>&5 10158 ac_status=$? 10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10160 (exit $ac_status); }; } && 10161 { ac_try='test -s conftest$ac_exeext' 10162 { (case "(($ac_try" in 10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10164 *) ac_try_echo=$ac_try;; 10165esac 10166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10167 (eval "$ac_try") 2>&5 10168 ac_status=$? 10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10170 (exit $ac_status); }; }; then 10171 ac_cv_lib_dld_dld_link=yes 10172else 10173 echo "$as_me: failed program was:" >&5 10174sed 's/^/| /' conftest.$ac_ext >&5 10175 10176 ac_cv_lib_dld_dld_link=no 10177fi 10178 10179rm -f core conftest.err conftest.$ac_objext \ 10180 conftest$ac_exeext conftest.$ac_ext 10181LIBS=$ac_check_lib_save_LIBS 10182fi 10183{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10184echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10185if test $ac_cv_lib_dld_dld_link = yes; then 10186 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10187fi 10188 10189 10190fi 10191 10192 10193fi 10194 10195 10196fi 10197 10198 10199fi 10200 10201 10202fi 10203 10204 ;; 10205 esac 10206 10207 if test "x$lt_cv_dlopen" != xno; then 10208 enable_dlopen=yes 10209 else 10210 enable_dlopen=no 10211 fi 10212 10213 case $lt_cv_dlopen in 10214 dlopen) 10215 save_CPPFLAGS="$CPPFLAGS" 10216 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10217 10218 save_LDFLAGS="$LDFLAGS" 10219 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10220 10221 save_LIBS="$LIBS" 10222 LIBS="$lt_cv_dlopen_libs $LIBS" 10223 10224 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10225echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10226if test "${lt_cv_dlopen_self+set}" = set; then 10227 echo $ECHO_N "(cached) $ECHO_C" >&6 10228else 10229 if test "$cross_compiling" = yes; then : 10230 lt_cv_dlopen_self=cross 10231else 10232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10233 lt_status=$lt_dlunknown 10234 cat > conftest.$ac_ext <<EOF 10235#line 10235 "configure" 10236#include "confdefs.h" 10237 10238#if HAVE_DLFCN_H 10239#include <dlfcn.h> 10240#endif 10241 10242#include <stdio.h> 10243 10244#ifdef RTLD_GLOBAL 10245# define LT_DLGLOBAL RTLD_GLOBAL 10246#else 10247# ifdef DL_GLOBAL 10248# define LT_DLGLOBAL DL_GLOBAL 10249# else 10250# define LT_DLGLOBAL 0 10251# endif 10252#endif 10253 10254/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10255 find out it does not work in some platform. */ 10256#ifndef LT_DLLAZY_OR_NOW 10257# ifdef RTLD_LAZY 10258# define LT_DLLAZY_OR_NOW RTLD_LAZY 10259# else 10260# ifdef DL_LAZY 10261# define LT_DLLAZY_OR_NOW DL_LAZY 10262# else 10263# ifdef RTLD_NOW 10264# define LT_DLLAZY_OR_NOW RTLD_NOW 10265# else 10266# ifdef DL_NOW 10267# define LT_DLLAZY_OR_NOW DL_NOW 10268# else 10269# define LT_DLLAZY_OR_NOW 0 10270# endif 10271# endif 10272# endif 10273# endif 10274#endif 10275 10276#ifdef __cplusplus 10277extern "C" void exit (int); 10278#endif 10279 10280void fnord() { int i=42;} 10281int main () 10282{ 10283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10284 int status = $lt_dlunknown; 10285 10286 if (self) 10287 { 10288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10289 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10290 /* dlclose (self); */ 10291 } 10292 else 10293 puts (dlerror ()); 10294 10295 exit (status); 10296} 10297EOF 10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10299 (eval $ac_link) 2>&5 10300 ac_status=$? 10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10302 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10303 (./conftest; exit; ) >&5 2>/dev/null 10304 lt_status=$? 10305 case x$lt_status in 10306 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10307 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10308 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10309 esac 10310 else : 10311 # compilation failed 10312 lt_cv_dlopen_self=no 10313 fi 10314fi 10315rm -fr conftest* 10316 10317 10318fi 10319{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10320echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10321 10322 if test "x$lt_cv_dlopen_self" = xyes; then 10323 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10324 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10325echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10326if test "${lt_cv_dlopen_self_static+set}" = set; then 10327 echo $ECHO_N "(cached) $ECHO_C" >&6 10328else 10329 if test "$cross_compiling" = yes; then : 10330 lt_cv_dlopen_self_static=cross 10331else 10332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10333 lt_status=$lt_dlunknown 10334 cat > conftest.$ac_ext <<EOF 10335#line 10335 "configure" 10336#include "confdefs.h" 10337 10338#if HAVE_DLFCN_H 10339#include <dlfcn.h> 10340#endif 10341 10342#include <stdio.h> 10343 10344#ifdef RTLD_GLOBAL 10345# define LT_DLGLOBAL RTLD_GLOBAL 10346#else 10347# ifdef DL_GLOBAL 10348# define LT_DLGLOBAL DL_GLOBAL 10349# else 10350# define LT_DLGLOBAL 0 10351# endif 10352#endif 10353 10354/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10355 find out it does not work in some platform. */ 10356#ifndef LT_DLLAZY_OR_NOW 10357# ifdef RTLD_LAZY 10358# define LT_DLLAZY_OR_NOW RTLD_LAZY 10359# else 10360# ifdef DL_LAZY 10361# define LT_DLLAZY_OR_NOW DL_LAZY 10362# else 10363# ifdef RTLD_NOW 10364# define LT_DLLAZY_OR_NOW RTLD_NOW 10365# else 10366# ifdef DL_NOW 10367# define LT_DLLAZY_OR_NOW DL_NOW 10368# else 10369# define LT_DLLAZY_OR_NOW 0 10370# endif 10371# endif 10372# endif 10373# endif 10374#endif 10375 10376#ifdef __cplusplus 10377extern "C" void exit (int); 10378#endif 10379 10380void fnord() { int i=42;} 10381int main () 10382{ 10383 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10384 int status = $lt_dlunknown; 10385 10386 if (self) 10387 { 10388 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10389 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10390 /* dlclose (self); */ 10391 } 10392 else 10393 puts (dlerror ()); 10394 10395 exit (status); 10396} 10397EOF 10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10399 (eval $ac_link) 2>&5 10400 ac_status=$? 10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10402 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10403 (./conftest; exit; ) >&5 2>/dev/null 10404 lt_status=$? 10405 case x$lt_status in 10406 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10407 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10408 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10409 esac 10410 else : 10411 # compilation failed 10412 lt_cv_dlopen_self_static=no 10413 fi 10414fi 10415rm -fr conftest* 10416 10417 10418fi 10419{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10420echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10421 fi 10422 10423 CPPFLAGS="$save_CPPFLAGS" 10424 LDFLAGS="$save_LDFLAGS" 10425 LIBS="$save_LIBS" 10426 ;; 10427 esac 10428 10429 case $lt_cv_dlopen_self in 10430 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10431 *) enable_dlopen_self=unknown ;; 10432 esac 10433 10434 case $lt_cv_dlopen_self_static in 10435 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10436 *) enable_dlopen_self_static=unknown ;; 10437 esac 10438fi 10439 10440 10441# Report which library types will actually be built 10442{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10443echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10444{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10445echo "${ECHO_T}$can_build_shared" >&6; } 10446 10447{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10448echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10449test "$can_build_shared" = "no" && enable_shared=no 10450 10451# On AIX, shared libraries and static libraries use the same namespace, and 10452# are all built from PIC. 10453case $host_os in 10454aix3*) 10455 test "$enable_shared" = yes && enable_static=no 10456 if test -n "$RANLIB"; then 10457 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10458 postinstall_cmds='$RANLIB $lib' 10459 fi 10460 ;; 10461 10462aix4* | aix5*) 10463 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10464 test "$enable_shared" = yes && enable_static=no 10465 fi 10466 ;; 10467esac 10468{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10469echo "${ECHO_T}$enable_shared" >&6; } 10470 10471{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10472echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10473# Make sure either enable_shared or enable_static is yes. 10474test "$enable_shared" = yes || enable_static=yes 10475{ echo "$as_me:$LINENO: result: $enable_static" >&5 10476echo "${ECHO_T}$enable_static" >&6; } 10477 10478# The else clause should only fire when bootstrapping the 10479# libtool distribution, otherwise you forgot to ship ltmain.sh 10480# with your package, and you will get complaints that there are 10481# no rules to generate ltmain.sh. 10482if test -f "$ltmain"; then 10483 # See if we are running on zsh, and set the options which allow our commands through 10484 # without removal of \ escapes. 10485 if test -n "${ZSH_VERSION+set}" ; then 10486 setopt NO_GLOB_SUBST 10487 fi 10488 # Now quote all the things that may contain metacharacters while being 10489 # careful not to overquote the AC_SUBSTed values. We take copies of the 10490 # variables and quote the copies for generation of the libtool script. 10491 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10492 SED SHELL STRIP \ 10493 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10494 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10495 deplibs_check_method reload_flag reload_cmds need_locks \ 10496 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10497 lt_cv_sys_global_symbol_to_c_name_address \ 10498 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10499 old_postinstall_cmds old_postuninstall_cmds \ 10500 compiler \ 10501 CC \ 10502 LD \ 10503 lt_prog_compiler_wl \ 10504 lt_prog_compiler_pic \ 10505 lt_prog_compiler_static \ 10506 lt_prog_compiler_no_builtin_flag \ 10507 export_dynamic_flag_spec \ 10508 thread_safe_flag_spec \ 10509 whole_archive_flag_spec \ 10510 enable_shared_with_static_runtimes \ 10511 old_archive_cmds \ 10512 old_archive_from_new_cmds \ 10513 predep_objects \ 10514 postdep_objects \ 10515 predeps \ 10516 postdeps \ 10517 compiler_lib_search_path \ 10518 archive_cmds \ 10519 archive_expsym_cmds \ 10520 postinstall_cmds \ 10521 postuninstall_cmds \ 10522 old_archive_from_expsyms_cmds \ 10523 allow_undefined_flag \ 10524 no_undefined_flag \ 10525 export_symbols_cmds \ 10526 hardcode_libdir_flag_spec \ 10527 hardcode_libdir_flag_spec_ld \ 10528 hardcode_libdir_separator \ 10529 hardcode_automatic \ 10530 module_cmds \ 10531 module_expsym_cmds \ 10532 lt_cv_prog_compiler_c_o \ 10533 exclude_expsyms \ 10534 include_expsyms; do 10535 10536 case $var in 10537 old_archive_cmds | \ 10538 old_archive_from_new_cmds | \ 10539 archive_cmds | \ 10540 archive_expsym_cmds | \ 10541 module_cmds | \ 10542 module_expsym_cmds | \ 10543 old_archive_from_expsyms_cmds | \ 10544 export_symbols_cmds | \ 10545 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10546 postinstall_cmds | postuninstall_cmds | \ 10547 old_postinstall_cmds | old_postuninstall_cmds | \ 10548 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10549 # Double-quote double-evaled strings. 10550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10551 ;; 10552 *) 10553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10554 ;; 10555 esac 10556 done 10557 10558 case $lt_echo in 10559 *'\$0 --fallback-echo"') 10560 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10561 ;; 10562 esac 10563 10564cfgfile="${ofile}T" 10565 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10566 $rm -f "$cfgfile" 10567 { echo "$as_me:$LINENO: creating $ofile" >&5 10568echo "$as_me: creating $ofile" >&6;} 10569 10570 cat <<__EOF__ >> "$cfgfile" 10571#! $SHELL 10572 10573# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10574# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10575# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10576# 10577# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10578# Free Software Foundation, Inc. 10579# 10580# This file is part of GNU Libtool: 10581# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10582# 10583# This program is free software; you can redistribute it and/or modify 10584# it under the terms of the GNU General Public License as published by 10585# the Free Software Foundation; either version 2 of the License, or 10586# (at your option) any later version. 10587# 10588# This program is distributed in the hope that it will be useful, but 10589# WITHOUT ANY WARRANTY; without even the implied warranty of 10590# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10591# General Public License for more details. 10592# 10593# You should have received a copy of the GNU General Public License 10594# along with this program; if not, write to the Free Software 10595# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10596# 10597# As a special exception to the GNU General Public License, if you 10598# distribute this file as part of a program that contains a 10599# configuration script generated by Autoconf, you may include it under 10600# the same distribution terms that you use for the rest of that program. 10601 10602# A sed program that does not truncate output. 10603SED=$lt_SED 10604 10605# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10606Xsed="$SED -e 1s/^X//" 10607 10608# The HP-UX ksh and POSIX shell print the target directory to stdout 10609# if CDPATH is set. 10610(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10611 10612# The names of the tagged configurations supported by this script. 10613available_tags= 10614 10615# ### BEGIN LIBTOOL CONFIG 10616 10617# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10618 10619# Shell to use when invoking shell scripts. 10620SHELL=$lt_SHELL 10621 10622# Whether or not to build shared libraries. 10623build_libtool_libs=$enable_shared 10624 10625# Whether or not to build static libraries. 10626build_old_libs=$enable_static 10627 10628# Whether or not to add -lc for building shared libraries. 10629build_libtool_need_lc=$archive_cmds_need_lc 10630 10631# Whether or not to disallow shared libs when runtime libs are static 10632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10633 10634# Whether or not to optimize for fast installation. 10635fast_install=$enable_fast_install 10636 10637# The host system. 10638host_alias=$host_alias 10639host=$host 10640host_os=$host_os 10641 10642# The build system. 10643build_alias=$build_alias 10644build=$build 10645build_os=$build_os 10646 10647# An echo program that does not interpret backslashes. 10648echo=$lt_echo 10649 10650# The archiver. 10651AR=$lt_AR 10652AR_FLAGS=$lt_AR_FLAGS 10653 10654# A C compiler. 10655LTCC=$lt_LTCC 10656 10657# LTCC compiler flags. 10658LTCFLAGS=$lt_LTCFLAGS 10659 10660# A language-specific compiler. 10661CC=$lt_compiler 10662 10663# Is the compiler the GNU C compiler? 10664with_gcc=$GCC 10665 10666# An ERE matcher. 10667EGREP=$lt_EGREP 10668 10669# The linker used to build libraries. 10670LD=$lt_LD 10671 10672# Whether we need hard or soft links. 10673LN_S=$lt_LN_S 10674 10675# A BSD-compatible nm program. 10676NM=$lt_NM 10677 10678# A symbol stripping program 10679STRIP=$lt_STRIP 10680 10681# Used to examine libraries when file_magic_cmd begins "file" 10682MAGIC_CMD=$MAGIC_CMD 10683 10684# Used on cygwin: DLL creation program. 10685DLLTOOL="$DLLTOOL" 10686 10687# Used on cygwin: object dumper. 10688OBJDUMP="$OBJDUMP" 10689 10690# Used on cygwin: assembler. 10691AS="$AS" 10692 10693# The name of the directory that contains temporary libtool files. 10694objdir=$objdir 10695 10696# How to create reloadable object files. 10697reload_flag=$lt_reload_flag 10698reload_cmds=$lt_reload_cmds 10699 10700# How to pass a linker flag through the compiler. 10701wl=$lt_lt_prog_compiler_wl 10702 10703# Object file suffix (normally "o"). 10704objext="$ac_objext" 10705 10706# Old archive suffix (normally "a"). 10707libext="$libext" 10708 10709# Shared library suffix (normally ".so"). 10710shrext_cmds='$shrext_cmds' 10711 10712# Executable file suffix (normally ""). 10713exeext="$exeext" 10714 10715# Additional compiler flags for building library objects. 10716pic_flag=$lt_lt_prog_compiler_pic 10717pic_mode=$pic_mode 10718 10719# What is the maximum length of a command? 10720max_cmd_len=$lt_cv_sys_max_cmd_len 10721 10722# Does compiler simultaneously support -c and -o options? 10723compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10724 10725# Must we lock files when doing compilation? 10726need_locks=$lt_need_locks 10727 10728# Do we need the lib prefix for modules? 10729need_lib_prefix=$need_lib_prefix 10730 10731# Do we need a version for libraries? 10732need_version=$need_version 10733 10734# Whether dlopen is supported. 10735dlopen_support=$enable_dlopen 10736 10737# Whether dlopen of programs is supported. 10738dlopen_self=$enable_dlopen_self 10739 10740# Whether dlopen of statically linked programs is supported. 10741dlopen_self_static=$enable_dlopen_self_static 10742 10743# Compiler flag to prevent dynamic linking. 10744link_static_flag=$lt_lt_prog_compiler_static 10745 10746# Compiler flag to turn off builtin functions. 10747no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10748 10749# Compiler flag to allow reflexive dlopens. 10750export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10751 10752# Compiler flag to generate shared objects directly from archives. 10753whole_archive_flag_spec=$lt_whole_archive_flag_spec 10754 10755# Compiler flag to generate thread-safe objects. 10756thread_safe_flag_spec=$lt_thread_safe_flag_spec 10757 10758# Library versioning type. 10759version_type=$version_type 10760 10761# Format of library name prefix. 10762libname_spec=$lt_libname_spec 10763 10764# List of archive names. First name is the real one, the rest are links. 10765# The last name is the one that the linker finds with -lNAME. 10766library_names_spec=$lt_library_names_spec 10767 10768# The coded name of the library, if different from the real name. 10769soname_spec=$lt_soname_spec 10770 10771# Commands used to build and install an old-style archive. 10772RANLIB=$lt_RANLIB 10773old_archive_cmds=$lt_old_archive_cmds 10774old_postinstall_cmds=$lt_old_postinstall_cmds 10775old_postuninstall_cmds=$lt_old_postuninstall_cmds 10776 10777# Create an old-style archive from a shared archive. 10778old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10779 10780# Create a temporary old-style archive to link instead of a shared archive. 10781old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10782 10783# Commands used to build and install a shared archive. 10784archive_cmds=$lt_archive_cmds 10785archive_expsym_cmds=$lt_archive_expsym_cmds 10786postinstall_cmds=$lt_postinstall_cmds 10787postuninstall_cmds=$lt_postuninstall_cmds 10788 10789# Commands used to build a loadable module (assumed same as above if empty) 10790module_cmds=$lt_module_cmds 10791module_expsym_cmds=$lt_module_expsym_cmds 10792 10793# Commands to strip libraries. 10794old_striplib=$lt_old_striplib 10795striplib=$lt_striplib 10796 10797# Dependencies to place before the objects being linked to create a 10798# shared library. 10799predep_objects=$lt_predep_objects 10800 10801# Dependencies to place after the objects being linked to create a 10802# shared library. 10803postdep_objects=$lt_postdep_objects 10804 10805# Dependencies to place before the objects being linked to create a 10806# shared library. 10807predeps=$lt_predeps 10808 10809# Dependencies to place after the objects being linked to create a 10810# shared library. 10811postdeps=$lt_postdeps 10812 10813# The library search path used internally by the compiler when linking 10814# a shared library. 10815compiler_lib_search_path=$lt_compiler_lib_search_path 10816 10817# Method to check whether dependent libraries are shared objects. 10818deplibs_check_method=$lt_deplibs_check_method 10819 10820# Command to use when deplibs_check_method == file_magic. 10821file_magic_cmd=$lt_file_magic_cmd 10822 10823# Flag that allows shared libraries with undefined symbols to be built. 10824allow_undefined_flag=$lt_allow_undefined_flag 10825 10826# Flag that forces no undefined symbols. 10827no_undefined_flag=$lt_no_undefined_flag 10828 10829# Commands used to finish a libtool library installation in a directory. 10830finish_cmds=$lt_finish_cmds 10831 10832# Same as above, but a single script fragment to be evaled but not shown. 10833finish_eval=$lt_finish_eval 10834 10835# Take the output of nm and produce a listing of raw symbols and C names. 10836global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10837 10838# Transform the output of nm in a proper C declaration 10839global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10840 10841# Transform the output of nm in a C name address pair 10842global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10843 10844# This is the shared library runtime path variable. 10845runpath_var=$runpath_var 10846 10847# This is the shared library path variable. 10848shlibpath_var=$shlibpath_var 10849 10850# Is shlibpath searched before the hard-coded library search path? 10851shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10852 10853# How to hardcode a shared library path into an executable. 10854hardcode_action=$hardcode_action 10855 10856# Whether we should hardcode library paths into libraries. 10857hardcode_into_libs=$hardcode_into_libs 10858 10859# Flag to hardcode \$libdir into a binary during linking. 10860# This must work even if \$libdir does not exist. 10861hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10862 10863# If ld is used when linking, flag to hardcode \$libdir into 10864# a binary during linking. This must work even if \$libdir does 10865# not exist. 10866hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10867 10868# Whether we need a single -rpath flag with a separated argument. 10869hardcode_libdir_separator=$lt_hardcode_libdir_separator 10870 10871# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10872# resulting binary. 10873hardcode_direct=$hardcode_direct 10874 10875# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10876# resulting binary. 10877hardcode_minus_L=$hardcode_minus_L 10878 10879# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10880# the resulting binary. 10881hardcode_shlibpath_var=$hardcode_shlibpath_var 10882 10883# Set to yes if building a shared library automatically hardcodes DIR into the library 10884# and all subsequent libraries and executables linked against it. 10885hardcode_automatic=$hardcode_automatic 10886 10887# Variables whose values should be saved in libtool wrapper scripts and 10888# restored at relink time. 10889variables_saved_for_relink="$variables_saved_for_relink" 10890 10891# Whether libtool must link a program against all its dependency libraries. 10892link_all_deplibs=$link_all_deplibs 10893 10894# Compile-time system search path for libraries 10895sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10896 10897# Run-time system search path for libraries 10898sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10899 10900# Fix the shell variable \$srcfile for the compiler. 10901fix_srcfile_path="$fix_srcfile_path" 10902 10903# Set to yes if exported symbols are required. 10904always_export_symbols=$always_export_symbols 10905 10906# The commands to list exported symbols. 10907export_symbols_cmds=$lt_export_symbols_cmds 10908 10909# The commands to extract the exported symbol list from a shared archive. 10910extract_expsyms_cmds=$lt_extract_expsyms_cmds 10911 10912# Symbols that should not be listed in the preloaded symbols. 10913exclude_expsyms=$lt_exclude_expsyms 10914 10915# Symbols that must always be exported. 10916include_expsyms=$lt_include_expsyms 10917 10918# ### END LIBTOOL CONFIG 10919 10920__EOF__ 10921 10922 10923 case $host_os in 10924 aix3*) 10925 cat <<\EOF >> "$cfgfile" 10926 10927# AIX sometimes has problems with the GCC collect2 program. For some 10928# reason, if we set the COLLECT_NAMES environment variable, the problems 10929# vanish in a puff of smoke. 10930if test "X${COLLECT_NAMES+set}" != Xset; then 10931 COLLECT_NAMES= 10932 export COLLECT_NAMES 10933fi 10934EOF 10935 ;; 10936 esac 10937 10938 # We use sed instead of cat because bash on DJGPP gets confused if 10939 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10940 # text mode, it properly converts lines to CR/LF. This bash problem 10941 # is reportedly fixed, but why not run on old versions too? 10942 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10943 10944 mv -f "$cfgfile" "$ofile" || \ 10945 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10946 chmod +x "$ofile" 10947 10948else 10949 # If there is no Makefile yet, we rely on a make rule to execute 10950 # `config.status --recheck' to rerun these tests and create the 10951 # libtool script then. 10952 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10953 if test -f "$ltmain_in"; then 10954 test -f Makefile && make "$ltmain" 10955 fi 10956fi 10957 10958 10959ac_ext=c 10960ac_cpp='$CPP $CPPFLAGS' 10961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10963ac_compiler_gnu=$ac_cv_c_compiler_gnu 10964 10965CC="$lt_save_CC" 10966 10967 10968# Check whether --with-tags was given. 10969if test "${with_tags+set}" = set; then 10970 withval=$with_tags; tagnames="$withval" 10971fi 10972 10973 10974if test -f "$ltmain" && test -n "$tagnames"; then 10975 if test ! -f "${ofile}"; then 10976 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10977echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10978 fi 10979 10980 if test -z "$LTCC"; then 10981 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10982 if test -z "$LTCC"; then 10983 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10984echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10985 else 10986 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10987echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10988 fi 10989 fi 10990 if test -z "$LTCFLAGS"; then 10991 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10992 fi 10993 10994 # Extract list of available tagged configurations in $ofile. 10995 # Note that this assumes the entire list is on one line. 10996 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10997 10998 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10999 for tagname in $tagnames; do 11000 IFS="$lt_save_ifs" 11001 # Check whether tagname contains only valid characters 11002 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11003 "") ;; 11004 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11005echo "$as_me: error: invalid tag name: $tagname" >&2;} 11006 { (exit 1); exit 1; }; } 11007 ;; 11008 esac 11009 11010 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11011 then 11012 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11013echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11014 { (exit 1); exit 1; }; } 11015 fi 11016 11017 # Update the list of available tags. 11018 if test -n "$tagname"; then 11019 echo appending configuration tag \"$tagname\" to $ofile 11020 11021 case $tagname in 11022 CXX) 11023 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11024 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11025 (test "X$CXX" != "Xg++"))) ; then 11026 ac_ext=cpp 11027ac_cpp='$CXXCPP $CPPFLAGS' 11028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11031 11032 11033 11034 11035archive_cmds_need_lc_CXX=no 11036allow_undefined_flag_CXX= 11037always_export_symbols_CXX=no 11038archive_expsym_cmds_CXX= 11039export_dynamic_flag_spec_CXX= 11040hardcode_direct_CXX=no 11041hardcode_libdir_flag_spec_CXX= 11042hardcode_libdir_flag_spec_ld_CXX= 11043hardcode_libdir_separator_CXX= 11044hardcode_minus_L_CXX=no 11045hardcode_shlibpath_var_CXX=unsupported 11046hardcode_automatic_CXX=no 11047module_cmds_CXX= 11048module_expsym_cmds_CXX= 11049link_all_deplibs_CXX=unknown 11050old_archive_cmds_CXX=$old_archive_cmds 11051no_undefined_flag_CXX= 11052whole_archive_flag_spec_CXX= 11053enable_shared_with_static_runtimes_CXX=no 11054 11055# Dependencies to place before and after the object being linked: 11056predep_objects_CXX= 11057postdep_objects_CXX= 11058predeps_CXX= 11059postdeps_CXX= 11060compiler_lib_search_path_CXX= 11061 11062# Source file extension for C++ test sources. 11063ac_ext=cpp 11064 11065# Object file extension for compiled C++ test sources. 11066objext=o 11067objext_CXX=$objext 11068 11069# Code to be used in simple compile tests 11070lt_simple_compile_test_code="int some_variable = 0;\n" 11071 11072# Code to be used in simple link tests 11073lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11074 11075# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11076 11077# If no C compiler was specified, use CC. 11078LTCC=${LTCC-"$CC"} 11079 11080# If no C compiler flags were specified, use CFLAGS. 11081LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11082 11083# Allow CC to be a program name with arguments. 11084compiler=$CC 11085 11086 11087# save warnings/boilerplate of simple test code 11088ac_outfile=conftest.$ac_objext 11089printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11090eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11091_lt_compiler_boilerplate=`cat conftest.err` 11092$rm conftest* 11093 11094ac_outfile=conftest.$ac_objext 11095printf "$lt_simple_link_test_code" >conftest.$ac_ext 11096eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11097_lt_linker_boilerplate=`cat conftest.err` 11098$rm conftest* 11099 11100 11101# Allow CC to be a program name with arguments. 11102lt_save_CC=$CC 11103lt_save_LD=$LD 11104lt_save_GCC=$GCC 11105GCC=$GXX 11106lt_save_with_gnu_ld=$with_gnu_ld 11107lt_save_path_LD=$lt_cv_path_LD 11108if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11109 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11110else 11111 $as_unset lt_cv_prog_gnu_ld 11112fi 11113if test -n "${lt_cv_path_LDCXX+set}"; then 11114 lt_cv_path_LD=$lt_cv_path_LDCXX 11115else 11116 $as_unset lt_cv_path_LD 11117fi 11118test -z "${LDCXX+set}" || LD=$LDCXX 11119CC=${CXX-"c++"} 11120compiler=$CC 11121compiler_CXX=$CC 11122for cc_temp in $compiler""; do 11123 case $cc_temp in 11124 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11125 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11126 \-*) ;; 11127 *) break;; 11128 esac 11129done 11130cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11131 11132 11133# We don't want -fno-exception wen compiling C++ code, so set the 11134# no_builtin_flag separately 11135if test "$GXX" = yes; then 11136 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11137else 11138 lt_prog_compiler_no_builtin_flag_CXX= 11139fi 11140 11141if test "$GXX" = yes; then 11142 # Set up default GNU C++ configuration 11143 11144 11145# Check whether --with-gnu-ld was given. 11146if test "${with_gnu_ld+set}" = set; then 11147 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11148else 11149 with_gnu_ld=no 11150fi 11151 11152ac_prog=ld 11153if test "$GCC" = yes; then 11154 # Check if gcc -print-prog-name=ld gives a path. 11155 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11156echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11157 case $host in 11158 *-*-mingw*) 11159 # gcc leaves a trailing carriage return which upsets mingw 11160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11161 *) 11162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11163 esac 11164 case $ac_prog in 11165 # Accept absolute paths. 11166 [\\/]* | ?:[\\/]*) 11167 re_direlt='/[^/][^/]*/\.\./' 11168 # Canonicalize the pathname of ld 11169 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11170 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11171 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11172 done 11173 test -z "$LD" && LD="$ac_prog" 11174 ;; 11175 "") 11176 # If it fails, then pretend we aren't using GCC. 11177 ac_prog=ld 11178 ;; 11179 *) 11180 # If it is relative, then search for the first ld in PATH. 11181 with_gnu_ld=unknown 11182 ;; 11183 esac 11184elif test "$with_gnu_ld" = yes; then 11185 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11186echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11187else 11188 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11189echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11190fi 11191if test "${lt_cv_path_LD+set}" = set; then 11192 echo $ECHO_N "(cached) $ECHO_C" >&6 11193else 11194 if test -z "$LD"; then 11195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11196 for ac_dir in $PATH; do 11197 IFS="$lt_save_ifs" 11198 test -z "$ac_dir" && ac_dir=. 11199 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11200 lt_cv_path_LD="$ac_dir/$ac_prog" 11201 # Check to see if the program is GNU ld. I'd rather use --version, 11202 # but apparently some variants of GNU ld only accept -v. 11203 # Break only if it was the GNU/non-GNU ld that we prefer. 11204 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11205 *GNU* | *'with BFD'*) 11206 test "$with_gnu_ld" != no && break 11207 ;; 11208 *) 11209 test "$with_gnu_ld" != yes && break 11210 ;; 11211 esac 11212 fi 11213 done 11214 IFS="$lt_save_ifs" 11215else 11216 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11217fi 11218fi 11219 11220LD="$lt_cv_path_LD" 11221if test -n "$LD"; then 11222 { echo "$as_me:$LINENO: result: $LD" >&5 11223echo "${ECHO_T}$LD" >&6; } 11224else 11225 { echo "$as_me:$LINENO: result: no" >&5 11226echo "${ECHO_T}no" >&6; } 11227fi 11228test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11229echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11230 { (exit 1); exit 1; }; } 11231{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11232echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11233if test "${lt_cv_prog_gnu_ld+set}" = set; then 11234 echo $ECHO_N "(cached) $ECHO_C" >&6 11235else 11236 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11237case `$LD -v 2>&1 </dev/null` in 11238*GNU* | *'with BFD'*) 11239 lt_cv_prog_gnu_ld=yes 11240 ;; 11241*) 11242 lt_cv_prog_gnu_ld=no 11243 ;; 11244esac 11245fi 11246{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11247echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11248with_gnu_ld=$lt_cv_prog_gnu_ld 11249 11250 11251 11252 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11253 # archiving commands below assume that GNU ld is being used. 11254 if test "$with_gnu_ld" = yes; then 11255 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11256 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' 11257 11258 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11259 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11260 11261 # If archive_cmds runs LD, not CC, wlarc should be empty 11262 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11263 # investigate it a little bit more. (MM) 11264 wlarc='${wl}' 11265 11266 # ancient GNU ld didn't support --whole-archive et. al. 11267 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11268 grep 'no-whole-archive' > /dev/null; then 11269 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11270 else 11271 whole_archive_flag_spec_CXX= 11272 fi 11273 else 11274 with_gnu_ld=no 11275 wlarc= 11276 11277 # A generic and very simple default shared library creation 11278 # command for GNU C++ for the case where it uses the native 11279 # linker, instead of GNU ld. If possible, this setting should 11280 # overridden to take advantage of the native linker features on 11281 # the platform it is being used on. 11282 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11283 fi 11284 11285 # Commands to make compiler produce verbose output that lists 11286 # what "hidden" libraries, object files and flags are used when 11287 # linking a shared library. 11288 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11289 11290else 11291 GXX=no 11292 with_gnu_ld=no 11293 wlarc= 11294fi 11295 11296# PORTME: fill in a description of your system's C++ link characteristics 11297{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11298echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11299ld_shlibs_CXX=yes 11300case $host_os in 11301 aix3*) 11302 # FIXME: insert proper C++ library support 11303 ld_shlibs_CXX=no 11304 ;; 11305 aix4* | aix5*) 11306 if test "$host_cpu" = ia64; then 11307 # On IA64, the linker does run time linking by default, so we don't 11308 # have to do anything special. 11309 aix_use_runtimelinking=no 11310 exp_sym_flag='-Bexport' 11311 no_entry_flag="" 11312 else 11313 aix_use_runtimelinking=no 11314 11315 # Test if we are trying to use run time linking or normal 11316 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11317 # need to do runtime linking. 11318 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11319 for ld_flag in $LDFLAGS; do 11320 case $ld_flag in 11321 *-brtl*) 11322 aix_use_runtimelinking=yes 11323 break 11324 ;; 11325 esac 11326 done 11327 ;; 11328 esac 11329 11330 exp_sym_flag='-bexport' 11331 no_entry_flag='-bnoentry' 11332 fi 11333 11334 # When large executables or shared objects are built, AIX ld can 11335 # have problems creating the table of contents. If linking a library 11336 # or program results in "error TOC overflow" add -mminimal-toc to 11337 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11338 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11339 11340 archive_cmds_CXX='' 11341 hardcode_direct_CXX=yes 11342 hardcode_libdir_separator_CXX=':' 11343 link_all_deplibs_CXX=yes 11344 11345 if test "$GXX" = yes; then 11346 case $host_os in aix4.[012]|aix4.[012].*) 11347 # We only want to do this on AIX 4.2 and lower, the check 11348 # below for broken collect2 doesn't work under 4.3+ 11349 collect2name=`${CC} -print-prog-name=collect2` 11350 if test -f "$collect2name" && \ 11351 strings "$collect2name" | grep resolve_lib_name >/dev/null 11352 then 11353 # We have reworked collect2 11354 hardcode_direct_CXX=yes 11355 else 11356 # We have old collect2 11357 hardcode_direct_CXX=unsupported 11358 # It fails to find uninstalled libraries when the uninstalled 11359 # path is not listed in the libpath. Setting hardcode_minus_L 11360 # to unsupported forces relinking 11361 hardcode_minus_L_CXX=yes 11362 hardcode_libdir_flag_spec_CXX='-L$libdir' 11363 hardcode_libdir_separator_CXX= 11364 fi 11365 ;; 11366 esac 11367 shared_flag='-shared' 11368 if test "$aix_use_runtimelinking" = yes; then 11369 shared_flag="$shared_flag "'${wl}-G' 11370 fi 11371 else 11372 # not using gcc 11373 if test "$host_cpu" = ia64; then 11374 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11375 # chokes on -Wl,-G. The following line is correct: 11376 shared_flag='-G' 11377 else 11378 if test "$aix_use_runtimelinking" = yes; then 11379 shared_flag='${wl}-G' 11380 else 11381 shared_flag='${wl}-bM:SRE' 11382 fi 11383 fi 11384 fi 11385 11386 # It seems that -bexpall does not export symbols beginning with 11387 # underscore (_), so it is better to generate a list of symbols to export. 11388 always_export_symbols_CXX=yes 11389 if test "$aix_use_runtimelinking" = yes; then 11390 # Warning - without using the other runtime loading flags (-brtl), 11391 # -berok will link without error, but may produce a broken library. 11392 allow_undefined_flag_CXX='-berok' 11393 # Determine the default libpath from the value encoded in an empty executable. 11394 cat >conftest.$ac_ext <<_ACEOF 11395/* confdefs.h. */ 11396_ACEOF 11397cat confdefs.h >>conftest.$ac_ext 11398cat >>conftest.$ac_ext <<_ACEOF 11399/* end confdefs.h. */ 11400 11401int 11402main () 11403{ 11404 11405 ; 11406 return 0; 11407} 11408_ACEOF 11409rm -f conftest.$ac_objext conftest$ac_exeext 11410if { (ac_try="$ac_link" 11411case "(($ac_try" in 11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11413 *) ac_try_echo=$ac_try;; 11414esac 11415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11416 (eval "$ac_link") 2>conftest.er1 11417 ac_status=$? 11418 grep -v '^ *+' conftest.er1 >conftest.err 11419 rm -f conftest.er1 11420 cat conftest.err >&5 11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11422 (exit $ac_status); } && 11423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11424 { (case "(($ac_try" in 11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11426 *) ac_try_echo=$ac_try;; 11427esac 11428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11429 (eval "$ac_try") 2>&5 11430 ac_status=$? 11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11432 (exit $ac_status); }; } && 11433 { ac_try='test -s conftest$ac_exeext' 11434 { (case "(($ac_try" in 11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11436 *) ac_try_echo=$ac_try;; 11437esac 11438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11439 (eval "$ac_try") 2>&5 11440 ac_status=$? 11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11442 (exit $ac_status); }; }; then 11443 11444aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11445}'` 11446# Check for a 64-bit object if we didn't find anything. 11447if 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; } 11448}'`; fi 11449else 11450 echo "$as_me: failed program was:" >&5 11451sed 's/^/| /' conftest.$ac_ext >&5 11452 11453 11454fi 11455 11456rm -f core conftest.err conftest.$ac_objext \ 11457 conftest$ac_exeext conftest.$ac_ext 11458if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11459 11460 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11461 11462 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" 11463 else 11464 if test "$host_cpu" = ia64; then 11465 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11466 allow_undefined_flag_CXX="-z nodefs" 11467 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" 11468 else 11469 # Determine the default libpath from the value encoded in an empty executable. 11470 cat >conftest.$ac_ext <<_ACEOF 11471/* confdefs.h. */ 11472_ACEOF 11473cat confdefs.h >>conftest.$ac_ext 11474cat >>conftest.$ac_ext <<_ACEOF 11475/* end confdefs.h. */ 11476 11477int 11478main () 11479{ 11480 11481 ; 11482 return 0; 11483} 11484_ACEOF 11485rm -f conftest.$ac_objext conftest$ac_exeext 11486if { (ac_try="$ac_link" 11487case "(($ac_try" in 11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11489 *) ac_try_echo=$ac_try;; 11490esac 11491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11492 (eval "$ac_link") 2>conftest.er1 11493 ac_status=$? 11494 grep -v '^ *+' conftest.er1 >conftest.err 11495 rm -f conftest.er1 11496 cat conftest.err >&5 11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11498 (exit $ac_status); } && 11499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11500 { (case "(($ac_try" in 11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11502 *) ac_try_echo=$ac_try;; 11503esac 11504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11505 (eval "$ac_try") 2>&5 11506 ac_status=$? 11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11508 (exit $ac_status); }; } && 11509 { ac_try='test -s conftest$ac_exeext' 11510 { (case "(($ac_try" in 11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11512 *) ac_try_echo=$ac_try;; 11513esac 11514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11515 (eval "$ac_try") 2>&5 11516 ac_status=$? 11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11518 (exit $ac_status); }; }; then 11519 11520aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11521}'` 11522# Check for a 64-bit object if we didn't find anything. 11523if 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; } 11524}'`; fi 11525else 11526 echo "$as_me: failed program was:" >&5 11527sed 's/^/| /' conftest.$ac_ext >&5 11528 11529 11530fi 11531 11532rm -f core conftest.err conftest.$ac_objext \ 11533 conftest$ac_exeext conftest.$ac_ext 11534if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11535 11536 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11537 # Warning - without using the other run time loading flags, 11538 # -berok will link without error, but may produce a broken library. 11539 no_undefined_flag_CXX=' ${wl}-bernotok' 11540 allow_undefined_flag_CXX=' ${wl}-berok' 11541 # Exported symbols can be pulled into shared objects from archives 11542 whole_archive_flag_spec_CXX='$convenience' 11543 archive_cmds_need_lc_CXX=yes 11544 # This is similar to how AIX traditionally builds its shared libraries. 11545 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' 11546 fi 11547 fi 11548 ;; 11549 11550 beos*) 11551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11552 allow_undefined_flag_CXX=unsupported 11553 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11554 # support --undefined. This deserves some investigation. FIXME 11555 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11556 else 11557 ld_shlibs_CXX=no 11558 fi 11559 ;; 11560 11561 chorus*) 11562 case $cc_basename in 11563 *) 11564 # FIXME: insert proper C++ library support 11565 ld_shlibs_CXX=no 11566 ;; 11567 esac 11568 ;; 11569 11570 cygwin* | mingw* | pw32*) 11571 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11572 # as there is no search path for DLLs. 11573 hardcode_libdir_flag_spec_CXX='-L$libdir' 11574 allow_undefined_flag_CXX=unsupported 11575 always_export_symbols_CXX=no 11576 enable_shared_with_static_runtimes_CXX=yes 11577 11578 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11579 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' 11580 # If the export-symbols file already is a .def file (1st line 11581 # is EXPORTS), use it as is; otherwise, prepend... 11582 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11583 cp $export_symbols $output_objdir/$soname.def; 11584 else 11585 echo EXPORTS > $output_objdir/$soname.def; 11586 cat $export_symbols >> $output_objdir/$soname.def; 11587 fi~ 11588 $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' 11589 else 11590 ld_shlibs_CXX=no 11591 fi 11592 ;; 11593 darwin* | rhapsody*) 11594 case $host_os in 11595 rhapsody* | darwin1.[012]) 11596 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11597 ;; 11598 *) # Darwin 1.3 on 11599 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11600 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11601 else 11602 case ${MACOSX_DEPLOYMENT_TARGET} in 11603 10.[012]) 11604 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11605 ;; 11606 10.*) 11607 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11608 ;; 11609 esac 11610 fi 11611 ;; 11612 esac 11613 archive_cmds_need_lc_CXX=no 11614 hardcode_direct_CXX=no 11615 hardcode_automatic_CXX=yes 11616 hardcode_shlibpath_var_CXX=unsupported 11617 whole_archive_flag_spec_CXX='' 11618 link_all_deplibs_CXX=yes 11619 11620 if test "$GXX" = yes ; then 11621 lt_int_apple_cc_single_mod=no 11622 output_verbose_link_cmd='echo' 11623 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11624 lt_int_apple_cc_single_mod=yes 11625 fi 11626 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11627 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11628 else 11629 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' 11630 fi 11631 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11633 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11634 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}' 11635 else 11636 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}' 11637 fi 11638 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}' 11639 else 11640 case $cc_basename in 11641 xlc*) 11642 output_verbose_link_cmd='echo' 11643 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' 11644 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11645 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11646 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}' 11647 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}' 11648 ;; 11649 *) 11650 ld_shlibs_CXX=no 11651 ;; 11652 esac 11653 fi 11654 ;; 11655 11656 dgux*) 11657 case $cc_basename in 11658 ec++*) 11659 # FIXME: insert proper C++ library support 11660 ld_shlibs_CXX=no 11661 ;; 11662 ghcx*) 11663 # Green Hills C++ Compiler 11664 # FIXME: insert proper C++ library support 11665 ld_shlibs_CXX=no 11666 ;; 11667 *) 11668 # FIXME: insert proper C++ library support 11669 ld_shlibs_CXX=no 11670 ;; 11671 esac 11672 ;; 11673 freebsd[12]*) 11674 # C++ shared libraries reported to be fairly broken before switch to ELF 11675 ld_shlibs_CXX=no 11676 ;; 11677 freebsd-elf*) 11678 archive_cmds_need_lc_CXX=no 11679 ;; 11680 freebsd* | dragonfly*) 11681 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11682 # conventions 11683 ld_shlibs_CXX=yes 11684 ;; 11685 gnu*) 11686 ;; 11687 hpux9*) 11688 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11689 hardcode_libdir_separator_CXX=: 11690 export_dynamic_flag_spec_CXX='${wl}-E' 11691 hardcode_direct_CXX=yes 11692 hardcode_minus_L_CXX=yes # Not in the search PATH, 11693 # but as the default 11694 # location of the library. 11695 11696 case $cc_basename in 11697 CC*) 11698 # FIXME: insert proper C++ library support 11699 ld_shlibs_CXX=no 11700 ;; 11701 aCC*) 11702 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' 11703 # Commands to make compiler produce verbose output that lists 11704 # what "hidden" libraries, object files and flags are used when 11705 # linking a shared library. 11706 # 11707 # There doesn't appear to be a way to prevent this compiler from 11708 # explicitly linking system object files so we need to strip them 11709 # from the output so that they don't get included in the library 11710 # dependencies. 11711 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' 11712 ;; 11713 *) 11714 if test "$GXX" = yes; then 11715 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' 11716 else 11717 # FIXME: insert proper C++ library support 11718 ld_shlibs_CXX=no 11719 fi 11720 ;; 11721 esac 11722 ;; 11723 hpux10*|hpux11*) 11724 if test $with_gnu_ld = no; then 11725 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11726 hardcode_libdir_separator_CXX=: 11727 11728 case $host_cpu in 11729 hppa*64*|ia64*) 11730 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11731 ;; 11732 *) 11733 export_dynamic_flag_spec_CXX='${wl}-E' 11734 ;; 11735 esac 11736 fi 11737 case $host_cpu in 11738 hppa*64*|ia64*) 11739 hardcode_direct_CXX=no 11740 hardcode_shlibpath_var_CXX=no 11741 ;; 11742 *) 11743 hardcode_direct_CXX=yes 11744 hardcode_minus_L_CXX=yes # Not in the search PATH, 11745 # but as the default 11746 # location of the library. 11747 ;; 11748 esac 11749 11750 case $cc_basename in 11751 CC*) 11752 # FIXME: insert proper C++ library support 11753 ld_shlibs_CXX=no 11754 ;; 11755 aCC*) 11756 case $host_cpu in 11757 hppa*64*) 11758 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11759 ;; 11760 ia64*) 11761 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11762 ;; 11763 *) 11764 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11765 ;; 11766 esac 11767 # Commands to make compiler produce verbose output that lists 11768 # what "hidden" libraries, object files and flags are used when 11769 # linking a shared library. 11770 # 11771 # There doesn't appear to be a way to prevent this compiler from 11772 # explicitly linking system object files so we need to strip them 11773 # from the output so that they don't get included in the library 11774 # dependencies. 11775 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' 11776 ;; 11777 *) 11778 if test "$GXX" = yes; then 11779 if test $with_gnu_ld = no; then 11780 case $host_cpu in 11781 hppa*64*) 11782 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11783 ;; 11784 ia64*) 11785 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11786 ;; 11787 *) 11788 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' 11789 ;; 11790 esac 11791 fi 11792 else 11793 # FIXME: insert proper C++ library support 11794 ld_shlibs_CXX=no 11795 fi 11796 ;; 11797 esac 11798 ;; 11799 interix3*) 11800 hardcode_direct_CXX=no 11801 hardcode_shlibpath_var_CXX=no 11802 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11803 export_dynamic_flag_spec_CXX='${wl}-E' 11804 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11805 # Instead, shared libraries are loaded at an image base (0x10000000 by 11806 # default) and relocated if they conflict, which is a slow very memory 11807 # consuming and fragmenting process. To avoid this, we pick a random, 11808 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11809 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11810 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' 11811 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' 11812 ;; 11813 irix5* | irix6*) 11814 case $cc_basename in 11815 CC*) 11816 # SGI C++ 11817 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' 11818 11819 # Archives containing C++ object files must be created using 11820 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11821 # necessary to make sure instantiated templates are included 11822 # in the archive. 11823 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11824 ;; 11825 *) 11826 if test "$GXX" = yes; then 11827 if test "$with_gnu_ld" = no; then 11828 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' 11829 else 11830 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' 11831 fi 11832 fi 11833 link_all_deplibs_CXX=yes 11834 ;; 11835 esac 11836 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11837 hardcode_libdir_separator_CXX=: 11838 ;; 11839 linux* | k*bsd*-gnu) 11840 case $cc_basename in 11841 KCC*) 11842 # Kuck and Associates, Inc. (KAI) C++ Compiler 11843 11844 # KCC will only create a shared library if the output file 11845 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11846 # to its proper name (with version) after linking. 11847 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' 11848 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' 11849 # Commands to make compiler produce verbose output that lists 11850 # what "hidden" libraries, object files and flags are used when 11851 # linking a shared library. 11852 # 11853 # There doesn't appear to be a way to prevent this compiler from 11854 # explicitly linking system object files so we need to strip them 11855 # from the output so that they don't get included in the library 11856 # dependencies. 11857 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' 11858 11859 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11860 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11861 11862 # Archives containing C++ object files must be created using 11863 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11864 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11865 ;; 11866 icpc*) 11867 # Intel C++ 11868 with_gnu_ld=yes 11869 # version 8.0 and above of icpc choke on multiply defined symbols 11870 # if we add $predep_objects and $postdep_objects, however 7.1 and 11871 # earlier do not add the objects themselves. 11872 case `$CC -V 2>&1` in 11873 *"Version 7."*) 11874 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11875 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' 11876 ;; 11877 *) # Version 8.0 or newer 11878 tmp_idyn= 11879 case $host_cpu in 11880 ia64*) tmp_idyn=' -i_dynamic';; 11881 esac 11882 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11883 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' 11884 ;; 11885 esac 11886 archive_cmds_need_lc_CXX=no 11887 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11888 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11889 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11890 ;; 11891 pgCC*) 11892 # Portland Group C++ compiler 11893 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11894 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' 11895 11896 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11897 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11898 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' 11899 ;; 11900 cxx*) 11901 # Compaq C++ 11902 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11903 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' 11904 11905 runpath_var=LD_RUN_PATH 11906 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11907 hardcode_libdir_separator_CXX=: 11908 11909 # Commands to make compiler produce verbose output that lists 11910 # what "hidden" libraries, object files and flags are used when 11911 # linking a shared library. 11912 # 11913 # There doesn't appear to be a way to prevent this compiler from 11914 # explicitly linking system object files so we need to strip them 11915 # from the output so that they don't get included in the library 11916 # dependencies. 11917 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' 11918 ;; 11919 esac 11920 ;; 11921 lynxos*) 11922 # FIXME: insert proper C++ library support 11923 ld_shlibs_CXX=no 11924 ;; 11925 m88k*) 11926 # FIXME: insert proper C++ library support 11927 ld_shlibs_CXX=no 11928 ;; 11929 mvs*) 11930 case $cc_basename in 11931 cxx*) 11932 # FIXME: insert proper C++ library support 11933 ld_shlibs_CXX=no 11934 ;; 11935 *) 11936 # FIXME: insert proper C++ library support 11937 ld_shlibs_CXX=no 11938 ;; 11939 esac 11940 ;; 11941 netbsd* | netbsdelf*-gnu) 11942 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11943 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11944 wlarc= 11945 hardcode_libdir_flag_spec_CXX='-R$libdir' 11946 hardcode_direct_CXX=yes 11947 hardcode_shlibpath_var_CXX=no 11948 fi 11949 # Workaround some broken pre-1.5 toolchains 11950 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11951 ;; 11952 openbsd2*) 11953 # C++ shared libraries are fairly broken 11954 ld_shlibs_CXX=no 11955 ;; 11956 openbsd*) 11957 hardcode_direct_CXX=yes 11958 hardcode_shlibpath_var_CXX=no 11959 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11960 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11962 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11963 export_dynamic_flag_spec_CXX='${wl}-E' 11964 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11965 fi 11966 output_verbose_link_cmd='echo' 11967 ;; 11968 osf3*) 11969 case $cc_basename in 11970 KCC*) 11971 # Kuck and Associates, Inc. (KAI) C++ Compiler 11972 11973 # KCC will only create a shared library if the output file 11974 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11975 # to its proper name (with version) after linking. 11976 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11977 11978 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11979 hardcode_libdir_separator_CXX=: 11980 11981 # Archives containing C++ object files must be created using 11982 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11983 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11984 11985 ;; 11986 RCC*) 11987 # Rational C++ 2.4.1 11988 # FIXME: insert proper C++ library support 11989 ld_shlibs_CXX=no 11990 ;; 11991 cxx*) 11992 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11993 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11994 11995 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11996 hardcode_libdir_separator_CXX=: 11997 11998 # Commands to make compiler produce verbose output that lists 11999 # what "hidden" libraries, object files and flags are used when 12000 # linking a shared library. 12001 # 12002 # There doesn't appear to be a way to prevent this compiler from 12003 # explicitly linking system object files so we need to strip them 12004 # from the output so that they don't get included in the library 12005 # dependencies. 12006 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12007 ;; 12008 *) 12009 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12010 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12011 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12012 12013 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12014 hardcode_libdir_separator_CXX=: 12015 12016 # Commands to make compiler produce verbose output that lists 12017 # what "hidden" libraries, object files and flags are used when 12018 # linking a shared library. 12019 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12020 12021 else 12022 # FIXME: insert proper C++ library support 12023 ld_shlibs_CXX=no 12024 fi 12025 ;; 12026 esac 12027 ;; 12028 osf4* | osf5*) 12029 case $cc_basename in 12030 KCC*) 12031 # Kuck and Associates, Inc. (KAI) C++ Compiler 12032 12033 # KCC will only create a shared library if the output file 12034 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12035 # to its proper name (with version) after linking. 12036 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12037 12038 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12039 hardcode_libdir_separator_CXX=: 12040 12041 # Archives containing C++ object files must be created using 12042 # the KAI C++ compiler. 12043 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12044 ;; 12045 RCC*) 12046 # Rational C++ 2.4.1 12047 # FIXME: insert proper C++ library support 12048 ld_shlibs_CXX=no 12049 ;; 12050 cxx*) 12051 allow_undefined_flag_CXX=' -expect_unresolved \*' 12052 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12053 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12054 echo "-hidden">> $lib.exp~ 12055 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 12056 $rm $lib.exp' 12057 12058 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12059 hardcode_libdir_separator_CXX=: 12060 12061 # Commands to make compiler produce verbose output that lists 12062 # what "hidden" libraries, object files and flags are used when 12063 # linking a shared library. 12064 # 12065 # There doesn't appear to be a way to prevent this compiler from 12066 # explicitly linking system object files so we need to strip them 12067 # from the output so that they don't get included in the library 12068 # dependencies. 12069 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12070 ;; 12071 *) 12072 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12073 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12074 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12075 12076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12077 hardcode_libdir_separator_CXX=: 12078 12079 # Commands to make compiler produce verbose output that lists 12080 # what "hidden" libraries, object files and flags are used when 12081 # linking a shared library. 12082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12083 12084 else 12085 # FIXME: insert proper C++ library support 12086 ld_shlibs_CXX=no 12087 fi 12088 ;; 12089 esac 12090 ;; 12091 psos*) 12092 # FIXME: insert proper C++ library support 12093 ld_shlibs_CXX=no 12094 ;; 12095 sunos4*) 12096 case $cc_basename in 12097 CC*) 12098 # Sun C++ 4.x 12099 # FIXME: insert proper C++ library support 12100 ld_shlibs_CXX=no 12101 ;; 12102 lcc*) 12103 # Lucid 12104 # FIXME: insert proper C++ library support 12105 ld_shlibs_CXX=no 12106 ;; 12107 *) 12108 # FIXME: insert proper C++ library support 12109 ld_shlibs_CXX=no 12110 ;; 12111 esac 12112 ;; 12113 solaris*) 12114 case $cc_basename in 12115 CC*) 12116 # Sun C++ 4.2, 5.x and Centerline C++ 12117 archive_cmds_need_lc_CXX=yes 12118 no_undefined_flag_CXX=' -zdefs' 12119 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12120 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12121 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12122 12123 hardcode_libdir_flag_spec_CXX='-R$libdir' 12124 hardcode_shlibpath_var_CXX=no 12125 case $host_os in 12126 solaris2.[0-5] | solaris2.[0-5].*) ;; 12127 *) 12128 # The C++ compiler is used as linker so we must use $wl 12129 # flag to pass the commands to the underlying system 12130 # linker. We must also pass each convience library through 12131 # to the system linker between allextract/defaultextract. 12132 # The C++ compiler will combine linker options so we 12133 # cannot just pass the convience library names through 12134 # without $wl. 12135 # Supported since Solaris 2.6 (maybe 2.5.1?) 12136 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' 12137 ;; 12138 esac 12139 link_all_deplibs_CXX=yes 12140 12141 output_verbose_link_cmd='echo' 12142 12143 # Archives containing C++ object files must be created using 12144 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12145 # necessary to make sure instantiated templates are included 12146 # in the archive. 12147 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12148 ;; 12149 gcx*) 12150 # Green Hills C++ Compiler 12151 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12152 12153 # The C++ compiler must be used to create the archive. 12154 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12155 ;; 12156 *) 12157 # GNU C++ compiler with Solaris linker 12158 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12159 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12160 if $CC --version | grep -v '^2\.7' > /dev/null; then 12161 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12162 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12163 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12164 12165 # Commands to make compiler produce verbose output that lists 12166 # what "hidden" libraries, object files and flags are used when 12167 # linking a shared library. 12168 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12169 else 12170 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12171 # platform. 12172 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12173 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12174 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12175 12176 # Commands to make compiler produce verbose output that lists 12177 # what "hidden" libraries, object files and flags are used when 12178 # linking a shared library. 12179 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12180 fi 12181 12182 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12183 fi 12184 ;; 12185 esac 12186 ;; 12187 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12188 no_undefined_flag_CXX='${wl}-z,text' 12189 archive_cmds_need_lc_CXX=no 12190 hardcode_shlibpath_var_CXX=no 12191 runpath_var='LD_RUN_PATH' 12192 12193 case $cc_basename in 12194 CC*) 12195 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12196 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12197 ;; 12198 *) 12199 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12200 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12201 ;; 12202 esac 12203 ;; 12204 sysv5* | sco3.2v5* | sco5v6*) 12205 # Note: We can NOT use -z defs as we might desire, because we do not 12206 # link with -lc, and that would cause any symbols used from libc to 12207 # always be unresolved, which means just about no library would 12208 # ever link correctly. If we're not using GNU ld we use -z text 12209 # though, which does catch some bad symbols but isn't as heavy-handed 12210 # as -z defs. 12211 # For security reasons, it is highly recommended that you always 12212 # use absolute paths for naming shared libraries, and exclude the 12213 # DT_RUNPATH tag from executables and libraries. But doing so 12214 # requires that you compile everything twice, which is a pain. 12215 # So that behaviour is only enabled if SCOABSPATH is set to a 12216 # non-empty value in the environment. Most likely only useful for 12217 # creating official distributions of packages. 12218 # This is a hack until libtool officially supports absolute path 12219 # names for shared libraries. 12220 no_undefined_flag_CXX='${wl}-z,text' 12221 allow_undefined_flag_CXX='${wl}-z,nodefs' 12222 archive_cmds_need_lc_CXX=no 12223 hardcode_shlibpath_var_CXX=no 12224 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12225 hardcode_libdir_separator_CXX=':' 12226 link_all_deplibs_CXX=yes 12227 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12228 runpath_var='LD_RUN_PATH' 12229 12230 case $cc_basename in 12231 CC*) 12232 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12233 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12234 ;; 12235 *) 12236 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12237 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12238 ;; 12239 esac 12240 ;; 12241 tandem*) 12242 case $cc_basename in 12243 NCC*) 12244 # NonStop-UX NCC 3.20 12245 # FIXME: insert proper C++ library support 12246 ld_shlibs_CXX=no 12247 ;; 12248 *) 12249 # FIXME: insert proper C++ library support 12250 ld_shlibs_CXX=no 12251 ;; 12252 esac 12253 ;; 12254 vxworks*) 12255 # FIXME: insert proper C++ library support 12256 ld_shlibs_CXX=no 12257 ;; 12258 *) 12259 # FIXME: insert proper C++ library support 12260 ld_shlibs_CXX=no 12261 ;; 12262esac 12263{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12264echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12265test "$ld_shlibs_CXX" = no && can_build_shared=no 12266 12267GCC_CXX="$GXX" 12268LD_CXX="$LD" 12269 12270 12271cat > conftest.$ac_ext <<EOF 12272class Foo 12273{ 12274public: 12275 Foo (void) { a = 0; } 12276private: 12277 int a; 12278}; 12279EOF 12280 12281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12282 (eval $ac_compile) 2>&5 12283 ac_status=$? 12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12285 (exit $ac_status); }; then 12286 # Parse the compiler output and extract the necessary 12287 # objects, libraries and library flags. 12288 12289 # Sentinel used to keep track of whether or not we are before 12290 # the conftest object file. 12291 pre_test_object_deps_done=no 12292 12293 # The `*' in the case matches for architectures that use `case' in 12294 # $output_verbose_cmd can trigger glob expansion during the loop 12295 # eval without this substitution. 12296 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12297 12298 for p in `eval $output_verbose_link_cmd`; do 12299 case $p in 12300 12301 -L* | -R* | -l*) 12302 # Some compilers place space between "-{L,R}" and the path. 12303 # Remove the space. 12304 if test $p = "-L" \ 12305 || test $p = "-R"; then 12306 prev=$p 12307 continue 12308 else 12309 prev= 12310 fi 12311 12312 if test "$pre_test_object_deps_done" = no; then 12313 case $p in 12314 -L* | -R*) 12315 # Internal compiler library paths should come after those 12316 # provided the user. The postdeps already come after the 12317 # user supplied libs so there is no need to process them. 12318 if test -z "$compiler_lib_search_path_CXX"; then 12319 compiler_lib_search_path_CXX="${prev}${p}" 12320 else 12321 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12322 fi 12323 ;; 12324 # The "-l" case would never come before the object being 12325 # linked, so don't bother handling this case. 12326 esac 12327 else 12328 if test -z "$postdeps_CXX"; then 12329 postdeps_CXX="${prev}${p}" 12330 else 12331 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12332 fi 12333 fi 12334 ;; 12335 12336 *.$objext) 12337 # This assumes that the test object file only shows up 12338 # once in the compiler output. 12339 if test "$p" = "conftest.$objext"; then 12340 pre_test_object_deps_done=yes 12341 continue 12342 fi 12343 12344 if test "$pre_test_object_deps_done" = no; then 12345 if test -z "$predep_objects_CXX"; then 12346 predep_objects_CXX="$p" 12347 else 12348 predep_objects_CXX="$predep_objects_CXX $p" 12349 fi 12350 else 12351 if test -z "$postdep_objects_CXX"; then 12352 postdep_objects_CXX="$p" 12353 else 12354 postdep_objects_CXX="$postdep_objects_CXX $p" 12355 fi 12356 fi 12357 ;; 12358 12359 *) ;; # Ignore the rest. 12360 12361 esac 12362 done 12363 12364 # Clean up. 12365 rm -f a.out a.exe 12366else 12367 echo "libtool.m4: error: problem compiling CXX test program" 12368fi 12369 12370$rm -f confest.$objext 12371 12372# PORTME: override above test on systems where it is broken 12373case $host_os in 12374interix3*) 12375 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12376 # hack all around it, let's just trust "g++" to DTRT. 12377 predep_objects_CXX= 12378 postdep_objects_CXX= 12379 postdeps_CXX= 12380 ;; 12381 12382solaris*) 12383 case $cc_basename in 12384 CC*) 12385 # Adding this requires a known-good setup of shared libraries for 12386 # Sun compiler versions before 5.6, else PIC objects from an old 12387 # archive will be linked into the output, leading to subtle bugs. 12388 postdeps_CXX='-lCstd -lCrun' 12389 ;; 12390 esac 12391 ;; 12392esac 12393 12394 12395case " $postdeps_CXX " in 12396*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12397esac 12398 12399lt_prog_compiler_wl_CXX= 12400lt_prog_compiler_pic_CXX= 12401lt_prog_compiler_static_CXX= 12402 12403{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12404echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12405 12406 # C++ specific cases for pic, static, wl, etc. 12407 if test "$GXX" = yes; then 12408 lt_prog_compiler_wl_CXX='-Wl,' 12409 lt_prog_compiler_static_CXX='-static' 12410 12411 case $host_os in 12412 aix*) 12413 # All AIX code is PIC. 12414 if test "$host_cpu" = ia64; then 12415 # AIX 5 now supports IA64 processor 12416 lt_prog_compiler_static_CXX='-Bstatic' 12417 fi 12418 ;; 12419 amigaos*) 12420 # FIXME: we need at least 68020 code to build shared libraries, but 12421 # adding the `-m68020' flag to GCC prevents building anything better, 12422 # like `-m68040'. 12423 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12424 ;; 12425 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12426 # PIC is the default for these OSes. 12427 ;; 12428 mingw* | os2* | pw32*) 12429 # This hack is so that the source file can tell whether it is being 12430 # built for inclusion in a dll (and should export symbols for example). 12431 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12432 ;; 12433 darwin* | rhapsody*) 12434 # PIC is the default on this platform 12435 # Common symbols not allowed in MH_DYLIB files 12436 lt_prog_compiler_pic_CXX='-fno-common' 12437 ;; 12438 *djgpp*) 12439 # DJGPP does not support shared libraries at all 12440 lt_prog_compiler_pic_CXX= 12441 ;; 12442 interix3*) 12443 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12444 # Instead, we relocate shared libraries at runtime. 12445 ;; 12446 sysv4*MP*) 12447 if test -d /usr/nec; then 12448 lt_prog_compiler_pic_CXX=-Kconform_pic 12449 fi 12450 ;; 12451 hpux*) 12452 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12453 # not for PA HP-UX. 12454 case $host_cpu in 12455 hppa*64*|ia64*) 12456 ;; 12457 *) 12458 lt_prog_compiler_pic_CXX='-fPIC' 12459 ;; 12460 esac 12461 ;; 12462 *) 12463 lt_prog_compiler_pic_CXX='-fPIC' 12464 ;; 12465 esac 12466 else 12467 case $host_os in 12468 aix4* | aix5*) 12469 # All AIX code is PIC. 12470 if test "$host_cpu" = ia64; then 12471 # AIX 5 now supports IA64 processor 12472 lt_prog_compiler_static_CXX='-Bstatic' 12473 else 12474 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12475 fi 12476 ;; 12477 chorus*) 12478 case $cc_basename in 12479 cxch68*) 12480 # Green Hills C++ Compiler 12481 # _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" 12482 ;; 12483 esac 12484 ;; 12485 darwin*) 12486 # PIC is the default on this platform 12487 # Common symbols not allowed in MH_DYLIB files 12488 case $cc_basename in 12489 xlc*) 12490 lt_prog_compiler_pic_CXX='-qnocommon' 12491 lt_prog_compiler_wl_CXX='-Wl,' 12492 ;; 12493 esac 12494 ;; 12495 dgux*) 12496 case $cc_basename in 12497 ec++*) 12498 lt_prog_compiler_pic_CXX='-KPIC' 12499 ;; 12500 ghcx*) 12501 # Green Hills C++ Compiler 12502 lt_prog_compiler_pic_CXX='-pic' 12503 ;; 12504 *) 12505 ;; 12506 esac 12507 ;; 12508 freebsd* | dragonfly*) 12509 # FreeBSD uses GNU C++ 12510 ;; 12511 hpux9* | hpux10* | hpux11*) 12512 case $cc_basename in 12513 CC*) 12514 lt_prog_compiler_wl_CXX='-Wl,' 12515 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12516 if test "$host_cpu" != ia64; then 12517 lt_prog_compiler_pic_CXX='+Z' 12518 fi 12519 ;; 12520 aCC*) 12521 lt_prog_compiler_wl_CXX='-Wl,' 12522 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12523 case $host_cpu in 12524 hppa*64*|ia64*) 12525 # +Z the default 12526 ;; 12527 *) 12528 lt_prog_compiler_pic_CXX='+Z' 12529 ;; 12530 esac 12531 ;; 12532 *) 12533 ;; 12534 esac 12535 ;; 12536 interix*) 12537 # This is c89, which is MS Visual C++ (no shared libs) 12538 # Anyone wants to do a port? 12539 ;; 12540 irix5* | irix6* | nonstopux*) 12541 case $cc_basename in 12542 CC*) 12543 lt_prog_compiler_wl_CXX='-Wl,' 12544 lt_prog_compiler_static_CXX='-non_shared' 12545 # CC pic flag -KPIC is the default. 12546 ;; 12547 *) 12548 ;; 12549 esac 12550 ;; 12551 linux* | k*bsd*-gnu) 12552 case $cc_basename in 12553 KCC*) 12554 # KAI C++ Compiler 12555 lt_prog_compiler_wl_CXX='--backend -Wl,' 12556 lt_prog_compiler_pic_CXX='-fPIC' 12557 ;; 12558 icpc* | ecpc*) 12559 # Intel C++ 12560 lt_prog_compiler_wl_CXX='-Wl,' 12561 lt_prog_compiler_pic_CXX='-KPIC' 12562 lt_prog_compiler_static_CXX='-static' 12563 ;; 12564 pgCC*) 12565 # Portland Group C++ compiler. 12566 lt_prog_compiler_wl_CXX='-Wl,' 12567 lt_prog_compiler_pic_CXX='-fpic' 12568 lt_prog_compiler_static_CXX='-Bstatic' 12569 ;; 12570 cxx*) 12571 # Compaq C++ 12572 # Make sure the PIC flag is empty. It appears that all Alpha 12573 # Linux and Compaq Tru64 Unix objects are PIC. 12574 lt_prog_compiler_pic_CXX= 12575 lt_prog_compiler_static_CXX='-non_shared' 12576 ;; 12577 *) 12578 ;; 12579 esac 12580 ;; 12581 lynxos*) 12582 ;; 12583 m88k*) 12584 ;; 12585 mvs*) 12586 case $cc_basename in 12587 cxx*) 12588 lt_prog_compiler_pic_CXX='-W c,exportall' 12589 ;; 12590 *) 12591 ;; 12592 esac 12593 ;; 12594 netbsd* | netbsdelf*-gnu) 12595 ;; 12596 osf3* | osf4* | osf5*) 12597 case $cc_basename in 12598 KCC*) 12599 lt_prog_compiler_wl_CXX='--backend -Wl,' 12600 ;; 12601 RCC*) 12602 # Rational C++ 2.4.1 12603 lt_prog_compiler_pic_CXX='-pic' 12604 ;; 12605 cxx*) 12606 # Digital/Compaq C++ 12607 lt_prog_compiler_wl_CXX='-Wl,' 12608 # Make sure the PIC flag is empty. It appears that all Alpha 12609 # Linux and Compaq Tru64 Unix objects are PIC. 12610 lt_prog_compiler_pic_CXX= 12611 lt_prog_compiler_static_CXX='-non_shared' 12612 ;; 12613 *) 12614 ;; 12615 esac 12616 ;; 12617 psos*) 12618 ;; 12619 solaris*) 12620 case $cc_basename in 12621 CC*) 12622 # Sun C++ 4.2, 5.x and Centerline C++ 12623 lt_prog_compiler_pic_CXX='-KPIC' 12624 lt_prog_compiler_static_CXX='-Bstatic' 12625 lt_prog_compiler_wl_CXX='-Qoption ld ' 12626 ;; 12627 gcx*) 12628 # Green Hills C++ Compiler 12629 lt_prog_compiler_pic_CXX='-PIC' 12630 ;; 12631 *) 12632 ;; 12633 esac 12634 ;; 12635 sunos4*) 12636 case $cc_basename in 12637 CC*) 12638 # Sun C++ 4.x 12639 lt_prog_compiler_pic_CXX='-pic' 12640 lt_prog_compiler_static_CXX='-Bstatic' 12641 ;; 12642 lcc*) 12643 # Lucid 12644 lt_prog_compiler_pic_CXX='-pic' 12645 ;; 12646 *) 12647 ;; 12648 esac 12649 ;; 12650 tandem*) 12651 case $cc_basename in 12652 NCC*) 12653 # NonStop-UX NCC 3.20 12654 lt_prog_compiler_pic_CXX='-KPIC' 12655 ;; 12656 *) 12657 ;; 12658 esac 12659 ;; 12660 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12661 case $cc_basename in 12662 CC*) 12663 lt_prog_compiler_wl_CXX='-Wl,' 12664 lt_prog_compiler_pic_CXX='-KPIC' 12665 lt_prog_compiler_static_CXX='-Bstatic' 12666 ;; 12667 esac 12668 ;; 12669 vxworks*) 12670 ;; 12671 *) 12672 lt_prog_compiler_can_build_shared_CXX=no 12673 ;; 12674 esac 12675 fi 12676 12677{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12678echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12679 12680# 12681# Check to make sure the PIC flag actually works. 12682# 12683if test -n "$lt_prog_compiler_pic_CXX"; then 12684 12685{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12686echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12687if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12688 echo $ECHO_N "(cached) $ECHO_C" >&6 12689else 12690 lt_prog_compiler_pic_works_CXX=no 12691 ac_outfile=conftest.$ac_objext 12692 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12693 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12694 # Insert the option either (1) after the last *FLAGS variable, or 12695 # (2) before a word containing "conftest.", or (3) at the end. 12696 # Note that $ac_compile itself does not contain backslashes and begins 12697 # with a dollar sign (not a hyphen), so the echo should work correctly. 12698 # The option is referenced via a variable to avoid confusing sed. 12699 lt_compile=`echo "$ac_compile" | $SED \ 12700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12702 -e 's:$: $lt_compiler_flag:'` 12703 (eval echo "\"\$as_me:12703: $lt_compile\"" >&5) 12704 (eval "$lt_compile" 2>conftest.err) 12705 ac_status=$? 12706 cat conftest.err >&5 12707 echo "$as_me:12707: \$? = $ac_status" >&5 12708 if (exit $ac_status) && test -s "$ac_outfile"; then 12709 # The compiler can only warn and ignore the option if not recognized 12710 # So say no if there are warnings other than the usual output. 12711 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12714 lt_prog_compiler_pic_works_CXX=yes 12715 fi 12716 fi 12717 $rm conftest* 12718 12719fi 12720{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12721echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12722 12723if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12724 case $lt_prog_compiler_pic_CXX in 12725 "" | " "*) ;; 12726 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12727 esac 12728else 12729 lt_prog_compiler_pic_CXX= 12730 lt_prog_compiler_can_build_shared_CXX=no 12731fi 12732 12733fi 12734case $host_os in 12735 # For platforms which do not support PIC, -DPIC is meaningless: 12736 *djgpp*) 12737 lt_prog_compiler_pic_CXX= 12738 ;; 12739 *) 12740 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12741 ;; 12742esac 12743 12744# 12745# Check to make sure the static flag actually works. 12746# 12747wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12748{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12749echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12750if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12751 echo $ECHO_N "(cached) $ECHO_C" >&6 12752else 12753 lt_prog_compiler_static_works_CXX=no 12754 save_LDFLAGS="$LDFLAGS" 12755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12756 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12758 # The linker can only warn and ignore the option if not recognized 12759 # So say no if there are warnings 12760 if test -s conftest.err; then 12761 # Append any errors to the config.log. 12762 cat conftest.err 1>&5 12763 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12765 if diff conftest.exp conftest.er2 >/dev/null; then 12766 lt_prog_compiler_static_works_CXX=yes 12767 fi 12768 else 12769 lt_prog_compiler_static_works_CXX=yes 12770 fi 12771 fi 12772 $rm conftest* 12773 LDFLAGS="$save_LDFLAGS" 12774 12775fi 12776{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12777echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12778 12779if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12780 : 12781else 12782 lt_prog_compiler_static_CXX= 12783fi 12784 12785 12786{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12787echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12788if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12789 echo $ECHO_N "(cached) $ECHO_C" >&6 12790else 12791 lt_cv_prog_compiler_c_o_CXX=no 12792 $rm -r conftest 2>/dev/null 12793 mkdir conftest 12794 cd conftest 12795 mkdir out 12796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12797 12798 lt_compiler_flag="-o out/conftest2.$ac_objext" 12799 # Insert the option either (1) after the last *FLAGS variable, or 12800 # (2) before a word containing "conftest.", or (3) at the end. 12801 # Note that $ac_compile itself does not contain backslashes and begins 12802 # with a dollar sign (not a hyphen), so the echo should work correctly. 12803 lt_compile=`echo "$ac_compile" | $SED \ 12804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12806 -e 's:$: $lt_compiler_flag:'` 12807 (eval echo "\"\$as_me:12807: $lt_compile\"" >&5) 12808 (eval "$lt_compile" 2>out/conftest.err) 12809 ac_status=$? 12810 cat out/conftest.err >&5 12811 echo "$as_me:12811: \$? = $ac_status" >&5 12812 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12813 then 12814 # The compiler can only warn and ignore the option if not recognized 12815 # So say no if there are warnings 12816 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12819 lt_cv_prog_compiler_c_o_CXX=yes 12820 fi 12821 fi 12822 chmod u+w . 2>&5 12823 $rm conftest* 12824 # SGI C++ compiler will create directory out/ii_files/ for 12825 # template instantiation 12826 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12827 $rm out/* && rmdir out 12828 cd .. 12829 rmdir conftest 12830 $rm conftest* 12831 12832fi 12833{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12834echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12835 12836 12837hard_links="nottested" 12838if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12839 # do not overwrite the value of need_locks provided by the user 12840 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12841echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12842 hard_links=yes 12843 $rm conftest* 12844 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12845 touch conftest.a 12846 ln conftest.a conftest.b 2>&5 || hard_links=no 12847 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12848 { echo "$as_me:$LINENO: result: $hard_links" >&5 12849echo "${ECHO_T}$hard_links" >&6; } 12850 if test "$hard_links" = no; then 12851 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12852echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12853 need_locks=warn 12854 fi 12855else 12856 need_locks=no 12857fi 12858 12859{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12860echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12861 12862 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12863 case $host_os in 12864 aix4* | aix5*) 12865 # If we're using GNU nm, then we don't want the "-C" option. 12866 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12867 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12868 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' 12869 else 12870 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' 12871 fi 12872 ;; 12873 pw32*) 12874 export_symbols_cmds_CXX="$ltdll_cmds" 12875 ;; 12876 cygwin* | mingw*) 12877 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' 12878 ;; 12879 linux* | k*bsd*-gnu) 12880 link_all_deplibs_CXX=no 12881 ;; 12882 *) 12883 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12884 ;; 12885 esac 12886 12887{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12888echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12889test "$ld_shlibs_CXX" = no && can_build_shared=no 12890 12891# 12892# Do we need to explicitly link libc? 12893# 12894case "x$archive_cmds_need_lc_CXX" in 12895x|xyes) 12896 # Assume -lc should be added 12897 archive_cmds_need_lc_CXX=yes 12898 12899 if test "$enable_shared" = yes && test "$GCC" = yes; then 12900 case $archive_cmds_CXX in 12901 *'~'*) 12902 # FIXME: we may have to deal with multi-command sequences. 12903 ;; 12904 '$CC '*) 12905 # Test whether the compiler implicitly links with -lc since on some 12906 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12907 # to ld, don't add -lc before -lgcc. 12908 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12909echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12910 $rm conftest* 12911 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12912 12913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12914 (eval $ac_compile) 2>&5 12915 ac_status=$? 12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12917 (exit $ac_status); } 2>conftest.err; then 12918 soname=conftest 12919 lib=conftest 12920 libobjs=conftest.$ac_objext 12921 deplibs= 12922 wl=$lt_prog_compiler_wl_CXX 12923 pic_flag=$lt_prog_compiler_pic_CXX 12924 compiler_flags=-v 12925 linker_flags=-v 12926 verstring= 12927 output_objdir=. 12928 libname=conftest 12929 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12930 allow_undefined_flag_CXX= 12931 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12932 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12933 ac_status=$? 12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12935 (exit $ac_status); } 12936 then 12937 archive_cmds_need_lc_CXX=no 12938 else 12939 archive_cmds_need_lc_CXX=yes 12940 fi 12941 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12942 else 12943 cat conftest.err 1>&5 12944 fi 12945 $rm conftest* 12946 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12947echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12948 ;; 12949 esac 12950 fi 12951 ;; 12952esac 12953 12954{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12955echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12956library_names_spec= 12957libname_spec='lib$name' 12958soname_spec= 12959shrext_cmds=".so" 12960postinstall_cmds= 12961postuninstall_cmds= 12962finish_cmds= 12963finish_eval= 12964shlibpath_var= 12965shlibpath_overrides_runpath=unknown 12966version_type=none 12967dynamic_linker="$host_os ld.so" 12968sys_lib_dlsearch_path_spec="/lib /usr/lib" 12969if test "$GCC" = yes; then 12970 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12971 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12972 # if the path contains ";" then we assume it to be the separator 12973 # otherwise default to the standard path separator (i.e. ":") - it is 12974 # assumed that no part of a normal pathname contains ";" but that should 12975 # okay in the real world where ";" in dirpaths is itself problematic. 12976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12977 else 12978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12979 fi 12980else 12981 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12982fi 12983need_lib_prefix=unknown 12984hardcode_into_libs=no 12985 12986# when you set need_version to no, make sure it does not cause -set_version 12987# flags to be left without arguments 12988need_version=unknown 12989 12990case $host_os in 12991aix3*) 12992 version_type=linux 12993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12994 shlibpath_var=LIBPATH 12995 12996 # AIX 3 has no versioning support, so we append a major version to the name. 12997 soname_spec='${libname}${release}${shared_ext}$major' 12998 ;; 12999 13000aix4* | aix5*) 13001 version_type=linux 13002 need_lib_prefix=no 13003 need_version=no 13004 hardcode_into_libs=yes 13005 if test "$host_cpu" = ia64; then 13006 # AIX 5 supports IA64 13007 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13008 shlibpath_var=LD_LIBRARY_PATH 13009 else 13010 # With GCC up to 2.95.x, collect2 would create an import file 13011 # for dependence libraries. The import file would start with 13012 # the line `#! .'. This would cause the generated library to 13013 # depend on `.', always an invalid library. This was fixed in 13014 # development snapshots of GCC prior to 3.0. 13015 case $host_os in 13016 aix4 | aix4.[01] | aix4.[01].*) 13017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13018 echo ' yes ' 13019 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13020 : 13021 else 13022 can_build_shared=no 13023 fi 13024 ;; 13025 esac 13026 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13027 # soname into executable. Probably we can add versioning support to 13028 # collect2, so additional links can be useful in future. 13029 if test "$aix_use_runtimelinking" = yes; then 13030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13031 # instead of lib<name>.a to let people know that these are not 13032 # typical AIX shared libraries. 13033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13034 else 13035 # We preserve .a as extension for shared libraries through AIX4.2 13036 # and later when we are not doing run time linking. 13037 library_names_spec='${libname}${release}.a $libname.a' 13038 soname_spec='${libname}${release}${shared_ext}$major' 13039 fi 13040 shlibpath_var=LIBPATH 13041 fi 13042 ;; 13043 13044amigaos*) 13045 library_names_spec='$libname.ixlibrary $libname.a' 13046 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13047 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' 13048 ;; 13049 13050beos*) 13051 library_names_spec='${libname}${shared_ext}' 13052 dynamic_linker="$host_os ld.so" 13053 shlibpath_var=LIBRARY_PATH 13054 ;; 13055 13056bsdi[45]*) 13057 version_type=linux 13058 need_version=no 13059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13060 soname_spec='${libname}${release}${shared_ext}$major' 13061 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13062 shlibpath_var=LD_LIBRARY_PATH 13063 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13064 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13065 # the default ld.so.conf also contains /usr/contrib/lib and 13066 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13067 # libtool to hard-code these into programs 13068 ;; 13069 13070cygwin* | mingw* | pw32*) 13071 version_type=windows 13072 shrext_cmds=".dll" 13073 need_version=no 13074 need_lib_prefix=no 13075 13076 case $GCC,$host_os in 13077 yes,cygwin* | yes,mingw* | yes,pw32*) 13078 library_names_spec='$libname.dll.a' 13079 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13080 postinstall_cmds='base_file=`basename \${file}`~ 13081 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13082 dldir=$destdir/`dirname \$dlpath`~ 13083 test -d \$dldir || mkdir -p \$dldir~ 13084 $install_prog $dir/$dlname \$dldir/$dlname~ 13085 chmod a+x \$dldir/$dlname' 13086 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13087 dlpath=$dir/\$dldll~ 13088 $rm \$dlpath' 13089 shlibpath_overrides_runpath=yes 13090 13091 case $host_os in 13092 cygwin*) 13093 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13094 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13095 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13096 ;; 13097 mingw*) 13098 # MinGW DLLs use traditional 'lib' prefix 13099 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13100 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13101 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13102 # It is most probably a Windows format PATH printed by 13103 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13104 # path with ; separators, and with drive letters. We can handle the 13105 # drive letters (cygwin fileutils understands them), so leave them, 13106 # especially as we might pass files found there to a mingw objdump, 13107 # which wouldn't understand a cygwinified path. Ahh. 13108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13109 else 13110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13111 fi 13112 ;; 13113 pw32*) 13114 # pw32 DLLs use 'pw' prefix rather than 'lib' 13115 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13116 ;; 13117 esac 13118 ;; 13119 13120 *) 13121 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13122 ;; 13123 esac 13124 dynamic_linker='Win32 ld.exe' 13125 # FIXME: first we should search . and the directory the executable is in 13126 shlibpath_var=PATH 13127 ;; 13128 13129darwin* | rhapsody*) 13130 dynamic_linker="$host_os dyld" 13131 version_type=darwin 13132 need_lib_prefix=no 13133 need_version=no 13134 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13135 soname_spec='${libname}${release}${major}$shared_ext' 13136 shlibpath_overrides_runpath=yes 13137 shlibpath_var=DYLD_LIBRARY_PATH 13138 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13139 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13140 if test "$GCC" = yes; then 13141 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"` 13142 else 13143 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13144 fi 13145 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13146 ;; 13147 13148dgux*) 13149 version_type=linux 13150 need_lib_prefix=no 13151 need_version=no 13152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13153 soname_spec='${libname}${release}${shared_ext}$major' 13154 shlibpath_var=LD_LIBRARY_PATH 13155 ;; 13156 13157freebsd1*) 13158 dynamic_linker=no 13159 ;; 13160 13161freebsd* | dragonfly*) 13162 # DragonFly does not have aout. When/if they implement a new 13163 # versioning mechanism, adjust this. 13164 if test -x /usr/bin/objformat; then 13165 objformat=`/usr/bin/objformat` 13166 else 13167 case $host_os in 13168 freebsd[123]*) objformat=aout ;; 13169 *) objformat=elf ;; 13170 esac 13171 fi 13172 version_type=freebsd-$objformat 13173 case $version_type in 13174 freebsd-elf*) 13175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13176 need_version=no 13177 need_lib_prefix=no 13178 ;; 13179 freebsd-*) 13180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13181 need_version=yes 13182 ;; 13183 esac 13184 shlibpath_var=LD_LIBRARY_PATH 13185 case $host_os in 13186 freebsd2*) 13187 shlibpath_overrides_runpath=yes 13188 ;; 13189 freebsd3.[01]* | freebsdelf3.[01]*) 13190 shlibpath_overrides_runpath=yes 13191 hardcode_into_libs=yes 13192 ;; 13193 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13194 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13195 shlibpath_overrides_runpath=no 13196 hardcode_into_libs=yes 13197 ;; 13198 freebsd*) # from 4.6 on 13199 shlibpath_overrides_runpath=yes 13200 hardcode_into_libs=yes 13201 ;; 13202 esac 13203 ;; 13204 13205gnu*) 13206 version_type=linux 13207 need_lib_prefix=no 13208 need_version=no 13209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13210 soname_spec='${libname}${release}${shared_ext}$major' 13211 shlibpath_var=LD_LIBRARY_PATH 13212 hardcode_into_libs=yes 13213 ;; 13214 13215hpux9* | hpux10* | hpux11*) 13216 # Give a soname corresponding to the major version so that dld.sl refuses to 13217 # link against other versions. 13218 version_type=sunos 13219 need_lib_prefix=no 13220 need_version=no 13221 case $host_cpu in 13222 ia64*) 13223 shrext_cmds='.so' 13224 hardcode_into_libs=yes 13225 dynamic_linker="$host_os dld.so" 13226 shlibpath_var=LD_LIBRARY_PATH 13227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13229 soname_spec='${libname}${release}${shared_ext}$major' 13230 if test "X$HPUX_IA64_MODE" = X32; then 13231 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13232 else 13233 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13234 fi 13235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13236 ;; 13237 hppa*64*) 13238 shrext_cmds='.sl' 13239 hardcode_into_libs=yes 13240 dynamic_linker="$host_os dld.sl" 13241 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13242 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13244 soname_spec='${libname}${release}${shared_ext}$major' 13245 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13247 ;; 13248 *) 13249 shrext_cmds='.sl' 13250 dynamic_linker="$host_os dld.sl" 13251 shlibpath_var=SHLIB_PATH 13252 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13254 soname_spec='${libname}${release}${shared_ext}$major' 13255 ;; 13256 esac 13257 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13258 postinstall_cmds='chmod 555 $lib' 13259 ;; 13260 13261interix3*) 13262 version_type=linux 13263 need_lib_prefix=no 13264 need_version=no 13265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13266 soname_spec='${libname}${release}${shared_ext}$major' 13267 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13268 shlibpath_var=LD_LIBRARY_PATH 13269 shlibpath_overrides_runpath=no 13270 hardcode_into_libs=yes 13271 ;; 13272 13273irix5* | irix6* | nonstopux*) 13274 case $host_os in 13275 nonstopux*) version_type=nonstopux ;; 13276 *) 13277 if test "$lt_cv_prog_gnu_ld" = yes; then 13278 version_type=linux 13279 else 13280 version_type=irix 13281 fi ;; 13282 esac 13283 need_lib_prefix=no 13284 need_version=no 13285 soname_spec='${libname}${release}${shared_ext}$major' 13286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13287 case $host_os in 13288 irix5* | nonstopux*) 13289 libsuff= shlibsuff= 13290 ;; 13291 *) 13292 case $LD in # libtool.m4 will add one of these switches to LD 13293 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13294 libsuff= shlibsuff= libmagic=32-bit;; 13295 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13296 libsuff=32 shlibsuff=N32 libmagic=N32;; 13297 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13298 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13299 *) libsuff= shlibsuff= libmagic=never-match;; 13300 esac 13301 ;; 13302 esac 13303 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13304 shlibpath_overrides_runpath=no 13305 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13306 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13307 hardcode_into_libs=yes 13308 ;; 13309 13310# No shared lib support for Linux oldld, aout, or coff. 13311linux*oldld* | linux*aout* | linux*coff*) 13312 dynamic_linker=no 13313 ;; 13314 13315# This must be Linux ELF. 13316linux* | k*bsd*-gnu) 13317 version_type=linux 13318 need_lib_prefix=no 13319 need_version=no 13320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13321 soname_spec='${libname}${release}${shared_ext}$major' 13322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13323 shlibpath_var=LD_LIBRARY_PATH 13324 shlibpath_overrides_runpath=no 13325 # This implies no fast_install, which is unacceptable. 13326 # Some rework will be needed to allow for fast_install 13327 # before this can be enabled. 13328 hardcode_into_libs=yes 13329 13330 # Append ld.so.conf contents to the search path 13331 if test -f /etc/ld.so.conf; then 13332 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' ' '` 13333 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13334 fi 13335 13336 # We used to test for /lib/ld.so.1 and disable shared libraries on 13337 # powerpc, because MkLinux only supported shared libraries with the 13338 # GNU dynamic linker. Since this was broken with cross compilers, 13339 # most powerpc-linux boxes support dynamic linking these days and 13340 # people can always --disable-shared, the test was removed, and we 13341 # assume the GNU/Linux dynamic linker is in use. 13342 dynamic_linker='GNU/Linux ld.so' 13343 ;; 13344 13345netbsdelf*-gnu) 13346 version_type=linux 13347 need_lib_prefix=no 13348 need_version=no 13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13350 soname_spec='${libname}${release}${shared_ext}$major' 13351 shlibpath_var=LD_LIBRARY_PATH 13352 shlibpath_overrides_runpath=no 13353 hardcode_into_libs=yes 13354 dynamic_linker='NetBSD ld.elf_so' 13355 ;; 13356 13357netbsd*) 13358 version_type=sunos 13359 need_lib_prefix=no 13360 need_version=no 13361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13364 dynamic_linker='NetBSD (a.out) ld.so' 13365 else 13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13367 soname_spec='${libname}${release}${shared_ext}$major' 13368 dynamic_linker='NetBSD ld.elf_so' 13369 fi 13370 shlibpath_var=LD_LIBRARY_PATH 13371 shlibpath_overrides_runpath=yes 13372 hardcode_into_libs=yes 13373 ;; 13374 13375newsos6) 13376 version_type=linux 13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13378 shlibpath_var=LD_LIBRARY_PATH 13379 shlibpath_overrides_runpath=yes 13380 ;; 13381 13382nto-qnx*) 13383 version_type=linux 13384 need_lib_prefix=no 13385 need_version=no 13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13387 soname_spec='${libname}${release}${shared_ext}$major' 13388 shlibpath_var=LD_LIBRARY_PATH 13389 shlibpath_overrides_runpath=yes 13390 ;; 13391 13392openbsd*) 13393 version_type=sunos 13394 sys_lib_dlsearch_path_spec="/usr/lib" 13395 need_lib_prefix=no 13396 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13397 case $host_os in 13398 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13399 *) need_version=no ;; 13400 esac 13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13403 shlibpath_var=LD_LIBRARY_PATH 13404 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13405 case $host_os in 13406 openbsd2.[89] | openbsd2.[89].*) 13407 shlibpath_overrides_runpath=no 13408 ;; 13409 *) 13410 shlibpath_overrides_runpath=yes 13411 ;; 13412 esac 13413 else 13414 shlibpath_overrides_runpath=yes 13415 fi 13416 ;; 13417 13418os2*) 13419 libname_spec='$name' 13420 shrext_cmds=".dll" 13421 need_lib_prefix=no 13422 library_names_spec='$libname${shared_ext} $libname.a' 13423 dynamic_linker='OS/2 ld.exe' 13424 shlibpath_var=LIBPATH 13425 ;; 13426 13427osf3* | osf4* | osf5*) 13428 version_type=osf 13429 need_lib_prefix=no 13430 need_version=no 13431 soname_spec='${libname}${release}${shared_ext}$major' 13432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13433 shlibpath_var=LD_LIBRARY_PATH 13434 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13435 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13436 ;; 13437 13438solaris*) 13439 version_type=linux 13440 need_lib_prefix=no 13441 need_version=no 13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13443 soname_spec='${libname}${release}${shared_ext}$major' 13444 shlibpath_var=LD_LIBRARY_PATH 13445 shlibpath_overrides_runpath=yes 13446 hardcode_into_libs=yes 13447 # ldd complains unless libraries are executable 13448 postinstall_cmds='chmod +x $lib' 13449 ;; 13450 13451sunos4*) 13452 version_type=sunos 13453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13454 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13455 shlibpath_var=LD_LIBRARY_PATH 13456 shlibpath_overrides_runpath=yes 13457 if test "$with_gnu_ld" = yes; then 13458 need_lib_prefix=no 13459 fi 13460 need_version=yes 13461 ;; 13462 13463sysv4 | sysv4.3*) 13464 version_type=linux 13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13466 soname_spec='${libname}${release}${shared_ext}$major' 13467 shlibpath_var=LD_LIBRARY_PATH 13468 case $host_vendor in 13469 sni) 13470 shlibpath_overrides_runpath=no 13471 need_lib_prefix=no 13472 export_dynamic_flag_spec='${wl}-Blargedynsym' 13473 runpath_var=LD_RUN_PATH 13474 ;; 13475 siemens) 13476 need_lib_prefix=no 13477 ;; 13478 motorola) 13479 need_lib_prefix=no 13480 need_version=no 13481 shlibpath_overrides_runpath=no 13482 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13483 ;; 13484 esac 13485 ;; 13486 13487sysv4*MP*) 13488 if test -d /usr/nec ;then 13489 version_type=linux 13490 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13491 soname_spec='$libname${shared_ext}.$major' 13492 shlibpath_var=LD_LIBRARY_PATH 13493 fi 13494 ;; 13495 13496sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13497 version_type=freebsd-elf 13498 need_lib_prefix=no 13499 need_version=no 13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13501 soname_spec='${libname}${release}${shared_ext}$major' 13502 shlibpath_var=LD_LIBRARY_PATH 13503 hardcode_into_libs=yes 13504 if test "$with_gnu_ld" = yes; then 13505 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13506 shlibpath_overrides_runpath=no 13507 else 13508 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13509 shlibpath_overrides_runpath=yes 13510 case $host_os in 13511 sco3.2v5*) 13512 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13513 ;; 13514 esac 13515 fi 13516 sys_lib_dlsearch_path_spec='/usr/lib' 13517 ;; 13518 13519uts4*) 13520 version_type=linux 13521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13522 soname_spec='${libname}${release}${shared_ext}$major' 13523 shlibpath_var=LD_LIBRARY_PATH 13524 ;; 13525 13526*) 13527 dynamic_linker=no 13528 ;; 13529esac 13530{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13531echo "${ECHO_T}$dynamic_linker" >&6; } 13532test "$dynamic_linker" = no && can_build_shared=no 13533 13534variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13535if test "$GCC" = yes; then 13536 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13537fi 13538 13539{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13540echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13541hardcode_action_CXX= 13542if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13543 test -n "$runpath_var_CXX" || \ 13544 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13545 13546 # We can hardcode non-existant directories. 13547 if test "$hardcode_direct_CXX" != no && 13548 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13549 # have to relink, otherwise we might link with an installed library 13550 # when we should be linking with a yet-to-be-installed one 13551 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13552 test "$hardcode_minus_L_CXX" != no; then 13553 # Linking always hardcodes the temporary library directory. 13554 hardcode_action_CXX=relink 13555 else 13556 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13557 hardcode_action_CXX=immediate 13558 fi 13559else 13560 # We cannot hardcode anything, or else we can only hardcode existing 13561 # directories. 13562 hardcode_action_CXX=unsupported 13563fi 13564{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13565echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13566 13567if test "$hardcode_action_CXX" = relink; then 13568 # Fast installation is not supported 13569 enable_fast_install=no 13570elif test "$shlibpath_overrides_runpath" = yes || 13571 test "$enable_shared" = no; then 13572 # Fast installation is not necessary 13573 enable_fast_install=needless 13574fi 13575 13576 13577# The else clause should only fire when bootstrapping the 13578# libtool distribution, otherwise you forgot to ship ltmain.sh 13579# with your package, and you will get complaints that there are 13580# no rules to generate ltmain.sh. 13581if test -f "$ltmain"; then 13582 # See if we are running on zsh, and set the options which allow our commands through 13583 # without removal of \ escapes. 13584 if test -n "${ZSH_VERSION+set}" ; then 13585 setopt NO_GLOB_SUBST 13586 fi 13587 # Now quote all the things that may contain metacharacters while being 13588 # careful not to overquote the AC_SUBSTed values. We take copies of the 13589 # variables and quote the copies for generation of the libtool script. 13590 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13591 SED SHELL STRIP \ 13592 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13593 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13594 deplibs_check_method reload_flag reload_cmds need_locks \ 13595 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13596 lt_cv_sys_global_symbol_to_c_name_address \ 13597 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13598 old_postinstall_cmds old_postuninstall_cmds \ 13599 compiler_CXX \ 13600 CC_CXX \ 13601 LD_CXX \ 13602 lt_prog_compiler_wl_CXX \ 13603 lt_prog_compiler_pic_CXX \ 13604 lt_prog_compiler_static_CXX \ 13605 lt_prog_compiler_no_builtin_flag_CXX \ 13606 export_dynamic_flag_spec_CXX \ 13607 thread_safe_flag_spec_CXX \ 13608 whole_archive_flag_spec_CXX \ 13609 enable_shared_with_static_runtimes_CXX \ 13610 old_archive_cmds_CXX \ 13611 old_archive_from_new_cmds_CXX \ 13612 predep_objects_CXX \ 13613 postdep_objects_CXX \ 13614 predeps_CXX \ 13615 postdeps_CXX \ 13616 compiler_lib_search_path_CXX \ 13617 archive_cmds_CXX \ 13618 archive_expsym_cmds_CXX \ 13619 postinstall_cmds_CXX \ 13620 postuninstall_cmds_CXX \ 13621 old_archive_from_expsyms_cmds_CXX \ 13622 allow_undefined_flag_CXX \ 13623 no_undefined_flag_CXX \ 13624 export_symbols_cmds_CXX \ 13625 hardcode_libdir_flag_spec_CXX \ 13626 hardcode_libdir_flag_spec_ld_CXX \ 13627 hardcode_libdir_separator_CXX \ 13628 hardcode_automatic_CXX \ 13629 module_cmds_CXX \ 13630 module_expsym_cmds_CXX \ 13631 lt_cv_prog_compiler_c_o_CXX \ 13632 exclude_expsyms_CXX \ 13633 include_expsyms_CXX; do 13634 13635 case $var in 13636 old_archive_cmds_CXX | \ 13637 old_archive_from_new_cmds_CXX | \ 13638 archive_cmds_CXX | \ 13639 archive_expsym_cmds_CXX | \ 13640 module_cmds_CXX | \ 13641 module_expsym_cmds_CXX | \ 13642 old_archive_from_expsyms_cmds_CXX | \ 13643 export_symbols_cmds_CXX | \ 13644 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13645 postinstall_cmds | postuninstall_cmds | \ 13646 old_postinstall_cmds | old_postuninstall_cmds | \ 13647 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13648 # Double-quote double-evaled strings. 13649 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13650 ;; 13651 *) 13652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13653 ;; 13654 esac 13655 done 13656 13657 case $lt_echo in 13658 *'\$0 --fallback-echo"') 13659 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13660 ;; 13661 esac 13662 13663cfgfile="$ofile" 13664 13665 cat <<__EOF__ >> "$cfgfile" 13666# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13667 13668# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13669 13670# Shell to use when invoking shell scripts. 13671SHELL=$lt_SHELL 13672 13673# Whether or not to build shared libraries. 13674build_libtool_libs=$enable_shared 13675 13676# Whether or not to build static libraries. 13677build_old_libs=$enable_static 13678 13679# Whether or not to add -lc for building shared libraries. 13680build_libtool_need_lc=$archive_cmds_need_lc_CXX 13681 13682# Whether or not to disallow shared libs when runtime libs are static 13683allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13684 13685# Whether or not to optimize for fast installation. 13686fast_install=$enable_fast_install 13687 13688# The host system. 13689host_alias=$host_alias 13690host=$host 13691host_os=$host_os 13692 13693# The build system. 13694build_alias=$build_alias 13695build=$build 13696build_os=$build_os 13697 13698# An echo program that does not interpret backslashes. 13699echo=$lt_echo 13700 13701# The archiver. 13702AR=$lt_AR 13703AR_FLAGS=$lt_AR_FLAGS 13704 13705# A C compiler. 13706LTCC=$lt_LTCC 13707 13708# LTCC compiler flags. 13709LTCFLAGS=$lt_LTCFLAGS 13710 13711# A language-specific compiler. 13712CC=$lt_compiler_CXX 13713 13714# Is the compiler the GNU C compiler? 13715with_gcc=$GCC_CXX 13716 13717# An ERE matcher. 13718EGREP=$lt_EGREP 13719 13720# The linker used to build libraries. 13721LD=$lt_LD_CXX 13722 13723# Whether we need hard or soft links. 13724LN_S=$lt_LN_S 13725 13726# A BSD-compatible nm program. 13727NM=$lt_NM 13728 13729# A symbol stripping program 13730STRIP=$lt_STRIP 13731 13732# Used to examine libraries when file_magic_cmd begins "file" 13733MAGIC_CMD=$MAGIC_CMD 13734 13735# Used on cygwin: DLL creation program. 13736DLLTOOL="$DLLTOOL" 13737 13738# Used on cygwin: object dumper. 13739OBJDUMP="$OBJDUMP" 13740 13741# Used on cygwin: assembler. 13742AS="$AS" 13743 13744# The name of the directory that contains temporary libtool files. 13745objdir=$objdir 13746 13747# How to create reloadable object files. 13748reload_flag=$lt_reload_flag 13749reload_cmds=$lt_reload_cmds 13750 13751# How to pass a linker flag through the compiler. 13752wl=$lt_lt_prog_compiler_wl_CXX 13753 13754# Object file suffix (normally "o"). 13755objext="$ac_objext" 13756 13757# Old archive suffix (normally "a"). 13758libext="$libext" 13759 13760# Shared library suffix (normally ".so"). 13761shrext_cmds='$shrext_cmds' 13762 13763# Executable file suffix (normally ""). 13764exeext="$exeext" 13765 13766# Additional compiler flags for building library objects. 13767pic_flag=$lt_lt_prog_compiler_pic_CXX 13768pic_mode=$pic_mode 13769 13770# What is the maximum length of a command? 13771max_cmd_len=$lt_cv_sys_max_cmd_len 13772 13773# Does compiler simultaneously support -c and -o options? 13774compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13775 13776# Must we lock files when doing compilation? 13777need_locks=$lt_need_locks 13778 13779# Do we need the lib prefix for modules? 13780need_lib_prefix=$need_lib_prefix 13781 13782# Do we need a version for libraries? 13783need_version=$need_version 13784 13785# Whether dlopen is supported. 13786dlopen_support=$enable_dlopen 13787 13788# Whether dlopen of programs is supported. 13789dlopen_self=$enable_dlopen_self 13790 13791# Whether dlopen of statically linked programs is supported. 13792dlopen_self_static=$enable_dlopen_self_static 13793 13794# Compiler flag to prevent dynamic linking. 13795link_static_flag=$lt_lt_prog_compiler_static_CXX 13796 13797# Compiler flag to turn off builtin functions. 13798no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13799 13800# Compiler flag to allow reflexive dlopens. 13801export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13802 13803# Compiler flag to generate shared objects directly from archives. 13804whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13805 13806# Compiler flag to generate thread-safe objects. 13807thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13808 13809# Library versioning type. 13810version_type=$version_type 13811 13812# Format of library name prefix. 13813libname_spec=$lt_libname_spec 13814 13815# List of archive names. First name is the real one, the rest are links. 13816# The last name is the one that the linker finds with -lNAME. 13817library_names_spec=$lt_library_names_spec 13818 13819# The coded name of the library, if different from the real name. 13820soname_spec=$lt_soname_spec 13821 13822# Commands used to build and install an old-style archive. 13823RANLIB=$lt_RANLIB 13824old_archive_cmds=$lt_old_archive_cmds_CXX 13825old_postinstall_cmds=$lt_old_postinstall_cmds 13826old_postuninstall_cmds=$lt_old_postuninstall_cmds 13827 13828# Create an old-style archive from a shared archive. 13829old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13830 13831# Create a temporary old-style archive to link instead of a shared archive. 13832old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13833 13834# Commands used to build and install a shared archive. 13835archive_cmds=$lt_archive_cmds_CXX 13836archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13837postinstall_cmds=$lt_postinstall_cmds 13838postuninstall_cmds=$lt_postuninstall_cmds 13839 13840# Commands used to build a loadable module (assumed same as above if empty) 13841module_cmds=$lt_module_cmds_CXX 13842module_expsym_cmds=$lt_module_expsym_cmds_CXX 13843 13844# Commands to strip libraries. 13845old_striplib=$lt_old_striplib 13846striplib=$lt_striplib 13847 13848# Dependencies to place before the objects being linked to create a 13849# shared library. 13850predep_objects=$lt_predep_objects_CXX 13851 13852# Dependencies to place after the objects being linked to create a 13853# shared library. 13854postdep_objects=$lt_postdep_objects_CXX 13855 13856# Dependencies to place before the objects being linked to create a 13857# shared library. 13858predeps=$lt_predeps_CXX 13859 13860# Dependencies to place after the objects being linked to create a 13861# shared library. 13862postdeps=$lt_postdeps_CXX 13863 13864# The library search path used internally by the compiler when linking 13865# a shared library. 13866compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13867 13868# Method to check whether dependent libraries are shared objects. 13869deplibs_check_method=$lt_deplibs_check_method 13870 13871# Command to use when deplibs_check_method == file_magic. 13872file_magic_cmd=$lt_file_magic_cmd 13873 13874# Flag that allows shared libraries with undefined symbols to be built. 13875allow_undefined_flag=$lt_allow_undefined_flag_CXX 13876 13877# Flag that forces no undefined symbols. 13878no_undefined_flag=$lt_no_undefined_flag_CXX 13879 13880# Commands used to finish a libtool library installation in a directory. 13881finish_cmds=$lt_finish_cmds 13882 13883# Same as above, but a single script fragment to be evaled but not shown. 13884finish_eval=$lt_finish_eval 13885 13886# Take the output of nm and produce a listing of raw symbols and C names. 13887global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13888 13889# Transform the output of nm in a proper C declaration 13890global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13891 13892# Transform the output of nm in a C name address pair 13893global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13894 13895# This is the shared library runtime path variable. 13896runpath_var=$runpath_var 13897 13898# This is the shared library path variable. 13899shlibpath_var=$shlibpath_var 13900 13901# Is shlibpath searched before the hard-coded library search path? 13902shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13903 13904# How to hardcode a shared library path into an executable. 13905hardcode_action=$hardcode_action_CXX 13906 13907# Whether we should hardcode library paths into libraries. 13908hardcode_into_libs=$hardcode_into_libs 13909 13910# Flag to hardcode \$libdir into a binary during linking. 13911# This must work even if \$libdir does not exist. 13912hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13913 13914# If ld is used when linking, flag to hardcode \$libdir into 13915# a binary during linking. This must work even if \$libdir does 13916# not exist. 13917hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13918 13919# Whether we need a single -rpath flag with a separated argument. 13920hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13921 13922# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13923# resulting binary. 13924hardcode_direct=$hardcode_direct_CXX 13925 13926# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13927# resulting binary. 13928hardcode_minus_L=$hardcode_minus_L_CXX 13929 13930# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13931# the resulting binary. 13932hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13933 13934# Set to yes if building a shared library automatically hardcodes DIR into the library 13935# and all subsequent libraries and executables linked against it. 13936hardcode_automatic=$hardcode_automatic_CXX 13937 13938# Variables whose values should be saved in libtool wrapper scripts and 13939# restored at relink time. 13940variables_saved_for_relink="$variables_saved_for_relink" 13941 13942# Whether libtool must link a program against all its dependency libraries. 13943link_all_deplibs=$link_all_deplibs_CXX 13944 13945# Compile-time system search path for libraries 13946sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13947 13948# Run-time system search path for libraries 13949sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13950 13951# Fix the shell variable \$srcfile for the compiler. 13952fix_srcfile_path="$fix_srcfile_path_CXX" 13953 13954# Set to yes if exported symbols are required. 13955always_export_symbols=$always_export_symbols_CXX 13956 13957# The commands to list exported symbols. 13958export_symbols_cmds=$lt_export_symbols_cmds_CXX 13959 13960# The commands to extract the exported symbol list from a shared archive. 13961extract_expsyms_cmds=$lt_extract_expsyms_cmds 13962 13963# Symbols that should not be listed in the preloaded symbols. 13964exclude_expsyms=$lt_exclude_expsyms_CXX 13965 13966# Symbols that must always be exported. 13967include_expsyms=$lt_include_expsyms_CXX 13968 13969# ### END LIBTOOL TAG CONFIG: $tagname 13970 13971__EOF__ 13972 13973 13974else 13975 # If there is no Makefile yet, we rely on a make rule to execute 13976 # `config.status --recheck' to rerun these tests and create the 13977 # libtool script then. 13978 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13979 if test -f "$ltmain_in"; then 13980 test -f Makefile && make "$ltmain" 13981 fi 13982fi 13983 13984 13985ac_ext=c 13986ac_cpp='$CPP $CPPFLAGS' 13987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13989ac_compiler_gnu=$ac_cv_c_compiler_gnu 13990 13991CC=$lt_save_CC 13992LDCXX=$LD 13993LD=$lt_save_LD 13994GCC=$lt_save_GCC 13995with_gnu_ldcxx=$with_gnu_ld 13996with_gnu_ld=$lt_save_with_gnu_ld 13997lt_cv_path_LDCXX=$lt_cv_path_LD 13998lt_cv_path_LD=$lt_save_path_LD 13999lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14000lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14001 14002 else 14003 tagname="" 14004 fi 14005 ;; 14006 14007 F77) 14008 if test -n "$F77" && test "X$F77" != "Xno"; then 14009 14010ac_ext=f 14011ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14012ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14013ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14014 14015 14016archive_cmds_need_lc_F77=no 14017allow_undefined_flag_F77= 14018always_export_symbols_F77=no 14019archive_expsym_cmds_F77= 14020export_dynamic_flag_spec_F77= 14021hardcode_direct_F77=no 14022hardcode_libdir_flag_spec_F77= 14023hardcode_libdir_flag_spec_ld_F77= 14024hardcode_libdir_separator_F77= 14025hardcode_minus_L_F77=no 14026hardcode_automatic_F77=no 14027module_cmds_F77= 14028module_expsym_cmds_F77= 14029link_all_deplibs_F77=unknown 14030old_archive_cmds_F77=$old_archive_cmds 14031no_undefined_flag_F77= 14032whole_archive_flag_spec_F77= 14033enable_shared_with_static_runtimes_F77=no 14034 14035# Source file extension for f77 test sources. 14036ac_ext=f 14037 14038# Object file extension for compiled f77 test sources. 14039objext=o 14040objext_F77=$objext 14041 14042# Code to be used in simple compile tests 14043lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14044 14045# Code to be used in simple link tests 14046lt_simple_link_test_code=" program t\n end\n" 14047 14048# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14049 14050# If no C compiler was specified, use CC. 14051LTCC=${LTCC-"$CC"} 14052 14053# If no C compiler flags were specified, use CFLAGS. 14054LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14055 14056# Allow CC to be a program name with arguments. 14057compiler=$CC 14058 14059 14060# save warnings/boilerplate of simple test code 14061ac_outfile=conftest.$ac_objext 14062printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14063eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14064_lt_compiler_boilerplate=`cat conftest.err` 14065$rm conftest* 14066 14067ac_outfile=conftest.$ac_objext 14068printf "$lt_simple_link_test_code" >conftest.$ac_ext 14069eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14070_lt_linker_boilerplate=`cat conftest.err` 14071$rm conftest* 14072 14073 14074# Allow CC to be a program name with arguments. 14075lt_save_CC="$CC" 14076CC=${F77-"f77"} 14077compiler=$CC 14078compiler_F77=$CC 14079for cc_temp in $compiler""; do 14080 case $cc_temp in 14081 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14082 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14083 \-*) ;; 14084 *) break;; 14085 esac 14086done 14087cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14088 14089 14090{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14091echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14092{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14093echo "${ECHO_T}$can_build_shared" >&6; } 14094 14095{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14096echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14097test "$can_build_shared" = "no" && enable_shared=no 14098 14099# On AIX, shared libraries and static libraries use the same namespace, and 14100# are all built from PIC. 14101case $host_os in 14102aix3*) 14103 test "$enable_shared" = yes && enable_static=no 14104 if test -n "$RANLIB"; then 14105 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14106 postinstall_cmds='$RANLIB $lib' 14107 fi 14108 ;; 14109aix4* | aix5*) 14110 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14111 test "$enable_shared" = yes && enable_static=no 14112 fi 14113 ;; 14114esac 14115{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14116echo "${ECHO_T}$enable_shared" >&6; } 14117 14118{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14119echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14120# Make sure either enable_shared or enable_static is yes. 14121test "$enable_shared" = yes || enable_static=yes 14122{ echo "$as_me:$LINENO: result: $enable_static" >&5 14123echo "${ECHO_T}$enable_static" >&6; } 14124 14125GCC_F77="$G77" 14126LD_F77="$LD" 14127 14128lt_prog_compiler_wl_F77= 14129lt_prog_compiler_pic_F77= 14130lt_prog_compiler_static_F77= 14131 14132{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14133echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14134 14135 if test "$GCC" = yes; then 14136 lt_prog_compiler_wl_F77='-Wl,' 14137 lt_prog_compiler_static_F77='-static' 14138 14139 case $host_os in 14140 aix*) 14141 # All AIX code is PIC. 14142 if test "$host_cpu" = ia64; then 14143 # AIX 5 now supports IA64 processor 14144 lt_prog_compiler_static_F77='-Bstatic' 14145 fi 14146 ;; 14147 14148 amigaos*) 14149 # FIXME: we need at least 68020 code to build shared libraries, but 14150 # adding the `-m68020' flag to GCC prevents building anything better, 14151 # like `-m68040'. 14152 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14153 ;; 14154 14155 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14156 # PIC is the default for these OSes. 14157 ;; 14158 14159 mingw* | pw32* | os2*) 14160 # This hack is so that the source file can tell whether it is being 14161 # built for inclusion in a dll (and should export symbols for example). 14162 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14163 ;; 14164 14165 darwin* | rhapsody*) 14166 # PIC is the default on this platform 14167 # Common symbols not allowed in MH_DYLIB files 14168 lt_prog_compiler_pic_F77='-fno-common' 14169 ;; 14170 14171 interix3*) 14172 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14173 # Instead, we relocate shared libraries at runtime. 14174 ;; 14175 14176 msdosdjgpp*) 14177 # Just because we use GCC doesn't mean we suddenly get shared libraries 14178 # on systems that don't support them. 14179 lt_prog_compiler_can_build_shared_F77=no 14180 enable_shared=no 14181 ;; 14182 14183 sysv4*MP*) 14184 if test -d /usr/nec; then 14185 lt_prog_compiler_pic_F77=-Kconform_pic 14186 fi 14187 ;; 14188 14189 hpux*) 14190 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14191 # not for PA HP-UX. 14192 case $host_cpu in 14193 hppa*64*|ia64*) 14194 # +Z the default 14195 ;; 14196 *) 14197 lt_prog_compiler_pic_F77='-fPIC' 14198 ;; 14199 esac 14200 ;; 14201 14202 *) 14203 lt_prog_compiler_pic_F77='-fPIC' 14204 ;; 14205 esac 14206 else 14207 # PORTME Check for flag to pass linker flags through the system compiler. 14208 case $host_os in 14209 aix*) 14210 lt_prog_compiler_wl_F77='-Wl,' 14211 if test "$host_cpu" = ia64; then 14212 # AIX 5 now supports IA64 processor 14213 lt_prog_compiler_static_F77='-Bstatic' 14214 else 14215 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14216 fi 14217 ;; 14218 darwin*) 14219 # PIC is the default on this platform 14220 # Common symbols not allowed in MH_DYLIB files 14221 case $cc_basename in 14222 xlc*) 14223 lt_prog_compiler_pic_F77='-qnocommon' 14224 lt_prog_compiler_wl_F77='-Wl,' 14225 ;; 14226 esac 14227 ;; 14228 14229 mingw* | pw32* | os2*) 14230 # This hack is so that the source file can tell whether it is being 14231 # built for inclusion in a dll (and should export symbols for example). 14232 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14233 ;; 14234 14235 hpux9* | hpux10* | hpux11*) 14236 lt_prog_compiler_wl_F77='-Wl,' 14237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14238 # not for PA HP-UX. 14239 case $host_cpu in 14240 hppa*64*|ia64*) 14241 # +Z the default 14242 ;; 14243 *) 14244 lt_prog_compiler_pic_F77='+Z' 14245 ;; 14246 esac 14247 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14248 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14249 ;; 14250 14251 irix5* | irix6* | nonstopux*) 14252 lt_prog_compiler_wl_F77='-Wl,' 14253 # PIC (with -KPIC) is the default. 14254 lt_prog_compiler_static_F77='-non_shared' 14255 ;; 14256 14257 newsos6) 14258 lt_prog_compiler_pic_F77='-KPIC' 14259 lt_prog_compiler_static_F77='-Bstatic' 14260 ;; 14261 14262 linux* | k*bsd*-gnu) 14263 case $cc_basename in 14264 icc* | ecc*) 14265 lt_prog_compiler_wl_F77='-Wl,' 14266 lt_prog_compiler_pic_F77='-KPIC' 14267 lt_prog_compiler_static_F77='-static' 14268 ;; 14269 pgcc* | pgf77* | pgf90* | pgf95*) 14270 # Portland Group compilers (*not* the Pentium gcc compiler, 14271 # which looks to be a dead project) 14272 lt_prog_compiler_wl_F77='-Wl,' 14273 lt_prog_compiler_pic_F77='-fpic' 14274 lt_prog_compiler_static_F77='-Bstatic' 14275 ;; 14276 ccc*) 14277 lt_prog_compiler_wl_F77='-Wl,' 14278 # All Alpha code is PIC. 14279 lt_prog_compiler_static_F77='-non_shared' 14280 ;; 14281 esac 14282 ;; 14283 14284 osf3* | osf4* | osf5*) 14285 lt_prog_compiler_wl_F77='-Wl,' 14286 # All OSF/1 code is PIC. 14287 lt_prog_compiler_static_F77='-non_shared' 14288 ;; 14289 14290 solaris*) 14291 lt_prog_compiler_pic_F77='-KPIC' 14292 lt_prog_compiler_static_F77='-Bstatic' 14293 case $cc_basename in 14294 f77* | f90* | f95*) 14295 lt_prog_compiler_wl_F77='-Qoption ld ';; 14296 *) 14297 lt_prog_compiler_wl_F77='-Wl,';; 14298 esac 14299 ;; 14300 14301 sunos4*) 14302 lt_prog_compiler_wl_F77='-Qoption ld ' 14303 lt_prog_compiler_pic_F77='-PIC' 14304 lt_prog_compiler_static_F77='-Bstatic' 14305 ;; 14306 14307 sysv4 | sysv4.2uw2* | sysv4.3*) 14308 lt_prog_compiler_wl_F77='-Wl,' 14309 lt_prog_compiler_pic_F77='-KPIC' 14310 lt_prog_compiler_static_F77='-Bstatic' 14311 ;; 14312 14313 sysv4*MP*) 14314 if test -d /usr/nec ;then 14315 lt_prog_compiler_pic_F77='-Kconform_pic' 14316 lt_prog_compiler_static_F77='-Bstatic' 14317 fi 14318 ;; 14319 14320 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14321 lt_prog_compiler_wl_F77='-Wl,' 14322 lt_prog_compiler_pic_F77='-KPIC' 14323 lt_prog_compiler_static_F77='-Bstatic' 14324 ;; 14325 14326 unicos*) 14327 lt_prog_compiler_wl_F77='-Wl,' 14328 lt_prog_compiler_can_build_shared_F77=no 14329 ;; 14330 14331 uts4*) 14332 lt_prog_compiler_pic_F77='-pic' 14333 lt_prog_compiler_static_F77='-Bstatic' 14334 ;; 14335 14336 *) 14337 lt_prog_compiler_can_build_shared_F77=no 14338 ;; 14339 esac 14340 fi 14341 14342{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14343echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14344 14345# 14346# Check to make sure the PIC flag actually works. 14347# 14348if test -n "$lt_prog_compiler_pic_F77"; then 14349 14350{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14351echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14352if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14353 echo $ECHO_N "(cached) $ECHO_C" >&6 14354else 14355 lt_prog_compiler_pic_works_F77=no 14356 ac_outfile=conftest.$ac_objext 14357 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14358 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14359 # Insert the option either (1) after the last *FLAGS variable, or 14360 # (2) before a word containing "conftest.", or (3) at the end. 14361 # Note that $ac_compile itself does not contain backslashes and begins 14362 # with a dollar sign (not a hyphen), so the echo should work correctly. 14363 # The option is referenced via a variable to avoid confusing sed. 14364 lt_compile=`echo "$ac_compile" | $SED \ 14365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14367 -e 's:$: $lt_compiler_flag:'` 14368 (eval echo "\"\$as_me:14368: $lt_compile\"" >&5) 14369 (eval "$lt_compile" 2>conftest.err) 14370 ac_status=$? 14371 cat conftest.err >&5 14372 echo "$as_me:14372: \$? = $ac_status" >&5 14373 if (exit $ac_status) && test -s "$ac_outfile"; then 14374 # The compiler can only warn and ignore the option if not recognized 14375 # So say no if there are warnings other than the usual output. 14376 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14379 lt_prog_compiler_pic_works_F77=yes 14380 fi 14381 fi 14382 $rm conftest* 14383 14384fi 14385{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14386echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14387 14388if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14389 case $lt_prog_compiler_pic_F77 in 14390 "" | " "*) ;; 14391 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14392 esac 14393else 14394 lt_prog_compiler_pic_F77= 14395 lt_prog_compiler_can_build_shared_F77=no 14396fi 14397 14398fi 14399case $host_os in 14400 # For platforms which do not support PIC, -DPIC is meaningless: 14401 *djgpp*) 14402 lt_prog_compiler_pic_F77= 14403 ;; 14404 *) 14405 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14406 ;; 14407esac 14408 14409# 14410# Check to make sure the static flag actually works. 14411# 14412wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14413{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14414echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14415if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14416 echo $ECHO_N "(cached) $ECHO_C" >&6 14417else 14418 lt_prog_compiler_static_works_F77=no 14419 save_LDFLAGS="$LDFLAGS" 14420 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14421 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14422 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14423 # The linker can only warn and ignore the option if not recognized 14424 # So say no if there are warnings 14425 if test -s conftest.err; then 14426 # Append any errors to the config.log. 14427 cat conftest.err 1>&5 14428 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14430 if diff conftest.exp conftest.er2 >/dev/null; then 14431 lt_prog_compiler_static_works_F77=yes 14432 fi 14433 else 14434 lt_prog_compiler_static_works_F77=yes 14435 fi 14436 fi 14437 $rm conftest* 14438 LDFLAGS="$save_LDFLAGS" 14439 14440fi 14441{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14442echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14443 14444if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14445 : 14446else 14447 lt_prog_compiler_static_F77= 14448fi 14449 14450 14451{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14452echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14453if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14454 echo $ECHO_N "(cached) $ECHO_C" >&6 14455else 14456 lt_cv_prog_compiler_c_o_F77=no 14457 $rm -r conftest 2>/dev/null 14458 mkdir conftest 14459 cd conftest 14460 mkdir out 14461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14462 14463 lt_compiler_flag="-o out/conftest2.$ac_objext" 14464 # Insert the option either (1) after the last *FLAGS variable, or 14465 # (2) before a word containing "conftest.", or (3) at the end. 14466 # Note that $ac_compile itself does not contain backslashes and begins 14467 # with a dollar sign (not a hyphen), so the echo should work correctly. 14468 lt_compile=`echo "$ac_compile" | $SED \ 14469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14471 -e 's:$: $lt_compiler_flag:'` 14472 (eval echo "\"\$as_me:14472: $lt_compile\"" >&5) 14473 (eval "$lt_compile" 2>out/conftest.err) 14474 ac_status=$? 14475 cat out/conftest.err >&5 14476 echo "$as_me:14476: \$? = $ac_status" >&5 14477 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14478 then 14479 # The compiler can only warn and ignore the option if not recognized 14480 # So say no if there are warnings 14481 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14484 lt_cv_prog_compiler_c_o_F77=yes 14485 fi 14486 fi 14487 chmod u+w . 2>&5 14488 $rm conftest* 14489 # SGI C++ compiler will create directory out/ii_files/ for 14490 # template instantiation 14491 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14492 $rm out/* && rmdir out 14493 cd .. 14494 rmdir conftest 14495 $rm conftest* 14496 14497fi 14498{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14499echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14500 14501 14502hard_links="nottested" 14503if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14504 # do not overwrite the value of need_locks provided by the user 14505 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14506echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14507 hard_links=yes 14508 $rm conftest* 14509 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14510 touch conftest.a 14511 ln conftest.a conftest.b 2>&5 || hard_links=no 14512 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14513 { echo "$as_me:$LINENO: result: $hard_links" >&5 14514echo "${ECHO_T}$hard_links" >&6; } 14515 if test "$hard_links" = no; then 14516 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14517echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14518 need_locks=warn 14519 fi 14520else 14521 need_locks=no 14522fi 14523 14524{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14525echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14526 14527 runpath_var= 14528 allow_undefined_flag_F77= 14529 enable_shared_with_static_runtimes_F77=no 14530 archive_cmds_F77= 14531 archive_expsym_cmds_F77= 14532 old_archive_From_new_cmds_F77= 14533 old_archive_from_expsyms_cmds_F77= 14534 export_dynamic_flag_spec_F77= 14535 whole_archive_flag_spec_F77= 14536 thread_safe_flag_spec_F77= 14537 hardcode_libdir_flag_spec_F77= 14538 hardcode_libdir_flag_spec_ld_F77= 14539 hardcode_libdir_separator_F77= 14540 hardcode_direct_F77=no 14541 hardcode_minus_L_F77=no 14542 hardcode_shlibpath_var_F77=unsupported 14543 link_all_deplibs_F77=unknown 14544 hardcode_automatic_F77=no 14545 module_cmds_F77= 14546 module_expsym_cmds_F77= 14547 always_export_symbols_F77=no 14548 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14549 # include_expsyms should be a list of space-separated symbols to be *always* 14550 # included in the symbol list 14551 include_expsyms_F77= 14552 # exclude_expsyms can be an extended regexp of symbols to exclude 14553 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14554 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14555 # as well as any symbol that contains `d'. 14556 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14557 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14558 # platforms (ab)use it in PIC code, but their linkers get confused if 14559 # the symbol is explicitly referenced. Since portable code cannot 14560 # rely on this symbol name, it's probably fine to never include it in 14561 # preloaded symbol tables. 14562 extract_expsyms_cmds= 14563 # Just being paranoid about ensuring that cc_basename is set. 14564 for cc_temp in $compiler""; do 14565 case $cc_temp in 14566 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14567 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14568 \-*) ;; 14569 *) break;; 14570 esac 14571done 14572cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14573 14574 case $host_os in 14575 cygwin* | mingw* | pw32*) 14576 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14577 # When not using gcc, we currently assume that we are using 14578 # Microsoft Visual C++. 14579 if test "$GCC" != yes; then 14580 with_gnu_ld=no 14581 fi 14582 ;; 14583 interix*) 14584 # we just hope/assume this is gcc and not c89 (= MSVC++) 14585 with_gnu_ld=yes 14586 ;; 14587 openbsd*) 14588 with_gnu_ld=no 14589 ;; 14590 esac 14591 14592 ld_shlibs_F77=yes 14593 if test "$with_gnu_ld" = yes; then 14594 # If archive_cmds runs LD, not CC, wlarc should be empty 14595 wlarc='${wl}' 14596 14597 # Set some defaults for GNU ld with shared library support. These 14598 # are reset later if shared libraries are not supported. Putting them 14599 # here allows them to be overridden if necessary. 14600 runpath_var=LD_RUN_PATH 14601 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14602 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14603 # ancient GNU ld didn't support --whole-archive et. al. 14604 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14605 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14606 else 14607 whole_archive_flag_spec_F77= 14608 fi 14609 supports_anon_versioning=no 14610 case `$LD -v 2>/dev/null` in 14611 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14612 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14613 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14614 *\ 2.11.*) ;; # other 2.11 versions 14615 *) supports_anon_versioning=yes ;; 14616 esac 14617 14618 # See if GNU ld supports shared libraries. 14619 case $host_os in 14620 aix3* | aix4* | aix5*) 14621 # On AIX/PPC, the GNU linker is very broken 14622 if test "$host_cpu" != ia64; then 14623 ld_shlibs_F77=no 14624 cat <<EOF 1>&2 14625 14626*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14627*** to be unable to reliably create shared libraries on AIX. 14628*** Therefore, libtool is disabling shared libraries support. If you 14629*** really care for shared libraries, you may want to modify your PATH 14630*** so that a non-GNU linker is found, and then restart. 14631 14632EOF 14633 fi 14634 ;; 14635 14636 amigaos*) 14637 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)' 14638 hardcode_libdir_flag_spec_F77='-L$libdir' 14639 hardcode_minus_L_F77=yes 14640 14641 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14642 # that the semantics of dynamic libraries on AmigaOS, at least up 14643 # to version 4, is to share data among multiple programs linked 14644 # with the same dynamic library. Since this doesn't match the 14645 # behavior of shared libraries on other platforms, we can't use 14646 # them. 14647 ld_shlibs_F77=no 14648 ;; 14649 14650 beos*) 14651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14652 allow_undefined_flag_F77=unsupported 14653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14654 # support --undefined. This deserves some investigation. FIXME 14655 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14656 else 14657 ld_shlibs_F77=no 14658 fi 14659 ;; 14660 14661 cygwin* | mingw* | pw32*) 14662 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14663 # as there is no search path for DLLs. 14664 hardcode_libdir_flag_spec_F77='-L$libdir' 14665 allow_undefined_flag_F77=unsupported 14666 always_export_symbols_F77=no 14667 enable_shared_with_static_runtimes_F77=yes 14668 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14669 14670 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14671 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14672 # If the export-symbols file already is a .def file (1st line 14673 # is EXPORTS), use it as is; otherwise, prepend... 14674 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14675 cp $export_symbols $output_objdir/$soname.def; 14676 else 14677 echo EXPORTS > $output_objdir/$soname.def; 14678 cat $export_symbols >> $output_objdir/$soname.def; 14679 fi~ 14680 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14681 else 14682 ld_shlibs_F77=no 14683 fi 14684 ;; 14685 14686 interix3*) 14687 hardcode_direct_F77=no 14688 hardcode_shlibpath_var_F77=no 14689 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14690 export_dynamic_flag_spec_F77='${wl}-E' 14691 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14692 # Instead, shared libraries are loaded at an image base (0x10000000 by 14693 # default) and relocated if they conflict, which is a slow very memory 14694 # consuming and fragmenting process. To avoid this, we pick a random, 14695 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14696 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14697 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' 14698 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' 14699 ;; 14700 14701 linux* | k*bsd*-gnu) 14702 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14703 tmp_addflag= 14704 case $cc_basename,$host_cpu in 14705 pgcc*) # Portland Group C compiler 14706 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' 14707 tmp_addflag=' $pic_flag' 14708 ;; 14709 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14710 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' 14711 tmp_addflag=' $pic_flag -Mnomain' ;; 14712 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14713 tmp_addflag=' -i_dynamic' ;; 14714 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14715 tmp_addflag=' -i_dynamic -nofor_main' ;; 14716 ifc* | ifort*) # Intel Fortran compiler 14717 tmp_addflag=' -nofor_main' ;; 14718 esac 14719 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14720 14721 if test $supports_anon_versioning = yes; then 14722 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14724 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14725 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14726 fi 14727 link_all_deplibs_F77=no 14728 else 14729 ld_shlibs_F77=no 14730 fi 14731 ;; 14732 14733 netbsd* | netbsdelf*-gnu) 14734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14735 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14736 wlarc= 14737 else 14738 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14739 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14740 fi 14741 ;; 14742 14743 solaris*) 14744 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14745 ld_shlibs_F77=no 14746 cat <<EOF 1>&2 14747 14748*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14749*** create shared libraries on Solaris systems. Therefore, libtool 14750*** is disabling shared libraries support. We urge you to upgrade GNU 14751*** binutils to release 2.9.1 or newer. Another option is to modify 14752*** your PATH or compiler configuration so that the native linker is 14753*** used, and then restart. 14754 14755EOF 14756 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14757 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14758 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14759 else 14760 ld_shlibs_F77=no 14761 fi 14762 ;; 14763 14764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14765 case `$LD -v 2>&1` in 14766 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14767 ld_shlibs_F77=no 14768 cat <<_LT_EOF 1>&2 14769 14770*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14771*** reliably create shared libraries on SCO systems. Therefore, libtool 14772*** is disabling shared libraries support. We urge you to upgrade GNU 14773*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14774*** your PATH or compiler configuration so that the native linker is 14775*** used, and then restart. 14776 14777_LT_EOF 14778 ;; 14779 *) 14780 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14781 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14782 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14783 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14784 else 14785 ld_shlibs_F77=no 14786 fi 14787 ;; 14788 esac 14789 ;; 14790 14791 sunos4*) 14792 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14793 wlarc= 14794 hardcode_direct_F77=yes 14795 hardcode_shlibpath_var_F77=no 14796 ;; 14797 14798 *) 14799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14800 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14801 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14802 else 14803 ld_shlibs_F77=no 14804 fi 14805 ;; 14806 esac 14807 14808 if test "$ld_shlibs_F77" = no; then 14809 runpath_var= 14810 hardcode_libdir_flag_spec_F77= 14811 export_dynamic_flag_spec_F77= 14812 whole_archive_flag_spec_F77= 14813 fi 14814 else 14815 # PORTME fill in a description of your system's linker (not GNU ld) 14816 case $host_os in 14817 aix3*) 14818 allow_undefined_flag_F77=unsupported 14819 always_export_symbols_F77=yes 14820 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' 14821 # Note: this linker hardcodes the directories in LIBPATH if there 14822 # are no directories specified by -L. 14823 hardcode_minus_L_F77=yes 14824 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14825 # Neither direct hardcoding nor static linking is supported with a 14826 # broken collect2. 14827 hardcode_direct_F77=unsupported 14828 fi 14829 ;; 14830 14831 aix4* | aix5*) 14832 if test "$host_cpu" = ia64; then 14833 # On IA64, the linker does run time linking by default, so we don't 14834 # have to do anything special. 14835 aix_use_runtimelinking=no 14836 exp_sym_flag='-Bexport' 14837 no_entry_flag="" 14838 else 14839 # If we're using GNU nm, then we don't want the "-C" option. 14840 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14841 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14842 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' 14843 else 14844 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' 14845 fi 14846 aix_use_runtimelinking=no 14847 14848 # Test if we are trying to use run time linking or normal 14849 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14850 # need to do runtime linking. 14851 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14852 for ld_flag in $LDFLAGS; do 14853 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14854 aix_use_runtimelinking=yes 14855 break 14856 fi 14857 done 14858 ;; 14859 esac 14860 14861 exp_sym_flag='-bexport' 14862 no_entry_flag='-bnoentry' 14863 fi 14864 14865 # When large executables or shared objects are built, AIX ld can 14866 # have problems creating the table of contents. If linking a library 14867 # or program results in "error TOC overflow" add -mminimal-toc to 14868 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14869 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14870 14871 archive_cmds_F77='' 14872 hardcode_direct_F77=yes 14873 hardcode_libdir_separator_F77=':' 14874 link_all_deplibs_F77=yes 14875 14876 if test "$GCC" = yes; then 14877 case $host_os in aix4.[012]|aix4.[012].*) 14878 # We only want to do this on AIX 4.2 and lower, the check 14879 # below for broken collect2 doesn't work under 4.3+ 14880 collect2name=`${CC} -print-prog-name=collect2` 14881 if test -f "$collect2name" && \ 14882 strings "$collect2name" | grep resolve_lib_name >/dev/null 14883 then 14884 # We have reworked collect2 14885 hardcode_direct_F77=yes 14886 else 14887 # We have old collect2 14888 hardcode_direct_F77=unsupported 14889 # It fails to find uninstalled libraries when the uninstalled 14890 # path is not listed in the libpath. Setting hardcode_minus_L 14891 # to unsupported forces relinking 14892 hardcode_minus_L_F77=yes 14893 hardcode_libdir_flag_spec_F77='-L$libdir' 14894 hardcode_libdir_separator_F77= 14895 fi 14896 ;; 14897 esac 14898 shared_flag='-shared' 14899 if test "$aix_use_runtimelinking" = yes; then 14900 shared_flag="$shared_flag "'${wl}-G' 14901 fi 14902 else 14903 # not using gcc 14904 if test "$host_cpu" = ia64; then 14905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14906 # chokes on -Wl,-G. The following line is correct: 14907 shared_flag='-G' 14908 else 14909 if test "$aix_use_runtimelinking" = yes; then 14910 shared_flag='${wl}-G' 14911 else 14912 shared_flag='${wl}-bM:SRE' 14913 fi 14914 fi 14915 fi 14916 14917 # It seems that -bexpall does not export symbols beginning with 14918 # underscore (_), so it is better to generate a list of symbols to export. 14919 always_export_symbols_F77=yes 14920 if test "$aix_use_runtimelinking" = yes; then 14921 # Warning - without using the other runtime loading flags (-brtl), 14922 # -berok will link without error, but may produce a broken library. 14923 allow_undefined_flag_F77='-berok' 14924 # Determine the default libpath from the value encoded in an empty executable. 14925 cat >conftest.$ac_ext <<_ACEOF 14926 program main 14927 14928 end 14929_ACEOF 14930rm -f conftest.$ac_objext conftest$ac_exeext 14931if { (ac_try="$ac_link" 14932case "(($ac_try" in 14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14934 *) ac_try_echo=$ac_try;; 14935esac 14936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14937 (eval "$ac_link") 2>conftest.er1 14938 ac_status=$? 14939 grep -v '^ *+' conftest.er1 >conftest.err 14940 rm -f conftest.er1 14941 cat conftest.err >&5 14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14943 (exit $ac_status); } && 14944 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14945 { (case "(($ac_try" in 14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14947 *) ac_try_echo=$ac_try;; 14948esac 14949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14950 (eval "$ac_try") 2>&5 14951 ac_status=$? 14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14953 (exit $ac_status); }; } && 14954 { ac_try='test -s conftest$ac_exeext' 14955 { (case "(($ac_try" in 14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14957 *) ac_try_echo=$ac_try;; 14958esac 14959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14960 (eval "$ac_try") 2>&5 14961 ac_status=$? 14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14963 (exit $ac_status); }; }; then 14964 14965aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14966}'` 14967# Check for a 64-bit object if we didn't find anything. 14968if 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; } 14969}'`; fi 14970else 14971 echo "$as_me: failed program was:" >&5 14972sed 's/^/| /' conftest.$ac_ext >&5 14973 14974 14975fi 14976 14977rm -f core conftest.err conftest.$ac_objext \ 14978 conftest$ac_exeext conftest.$ac_ext 14979if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14980 14981 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14982 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" 14983 else 14984 if test "$host_cpu" = ia64; then 14985 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14986 allow_undefined_flag_F77="-z nodefs" 14987 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" 14988 else 14989 # Determine the default libpath from the value encoded in an empty executable. 14990 cat >conftest.$ac_ext <<_ACEOF 14991 program main 14992 14993 end 14994_ACEOF 14995rm -f conftest.$ac_objext conftest$ac_exeext 14996if { (ac_try="$ac_link" 14997case "(($ac_try" in 14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14999 *) ac_try_echo=$ac_try;; 15000esac 15001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15002 (eval "$ac_link") 2>conftest.er1 15003 ac_status=$? 15004 grep -v '^ *+' conftest.er1 >conftest.err 15005 rm -f conftest.er1 15006 cat conftest.err >&5 15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15008 (exit $ac_status); } && 15009 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15010 { (case "(($ac_try" in 15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15012 *) ac_try_echo=$ac_try;; 15013esac 15014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15015 (eval "$ac_try") 2>&5 15016 ac_status=$? 15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15018 (exit $ac_status); }; } && 15019 { ac_try='test -s conftest$ac_exeext' 15020 { (case "(($ac_try" in 15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15022 *) ac_try_echo=$ac_try;; 15023esac 15024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15025 (eval "$ac_try") 2>&5 15026 ac_status=$? 15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15028 (exit $ac_status); }; }; then 15029 15030aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15031}'` 15032# Check for a 64-bit object if we didn't find anything. 15033if 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; } 15034}'`; fi 15035else 15036 echo "$as_me: failed program was:" >&5 15037sed 's/^/| /' conftest.$ac_ext >&5 15038 15039 15040fi 15041 15042rm -f core conftest.err conftest.$ac_objext \ 15043 conftest$ac_exeext conftest.$ac_ext 15044if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15045 15046 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15047 # Warning - without using the other run time loading flags, 15048 # -berok will link without error, but may produce a broken library. 15049 no_undefined_flag_F77=' ${wl}-bernotok' 15050 allow_undefined_flag_F77=' ${wl}-berok' 15051 # Exported symbols can be pulled into shared objects from archives 15052 whole_archive_flag_spec_F77='$convenience' 15053 archive_cmds_need_lc_F77=yes 15054 # This is similar to how AIX traditionally builds its shared libraries. 15055 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' 15056 fi 15057 fi 15058 ;; 15059 15060 amigaos*) 15061 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)' 15062 hardcode_libdir_flag_spec_F77='-L$libdir' 15063 hardcode_minus_L_F77=yes 15064 # see comment about different semantics on the GNU ld section 15065 ld_shlibs_F77=no 15066 ;; 15067 15068 bsdi[45]*) 15069 export_dynamic_flag_spec_F77=-rdynamic 15070 ;; 15071 15072 cygwin* | mingw* | pw32*) 15073 # When not using gcc, we currently assume that we are using 15074 # Microsoft Visual C++. 15075 # hardcode_libdir_flag_spec is actually meaningless, as there is 15076 # no search path for DLLs. 15077 hardcode_libdir_flag_spec_F77=' ' 15078 allow_undefined_flag_F77=unsupported 15079 # Tell ltmain to make .lib files, not .a files. 15080 libext=lib 15081 # Tell ltmain to make .dll files, not .so files. 15082 shrext_cmds=".dll" 15083 # FIXME: Setting linknames here is a bad hack. 15084 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15085 # The linker will automatically build a .lib file if we build a DLL. 15086 old_archive_From_new_cmds_F77='true' 15087 # FIXME: Should let the user specify the lib program. 15088 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15089 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15090 enable_shared_with_static_runtimes_F77=yes 15091 ;; 15092 15093 darwin* | rhapsody*) 15094 case $host_os in 15095 rhapsody* | darwin1.[012]) 15096 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15097 ;; 15098 *) # Darwin 1.3 on 15099 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15100 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15101 else 15102 case ${MACOSX_DEPLOYMENT_TARGET} in 15103 10.[012]) 15104 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15105 ;; 15106 10.*) 15107 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15108 ;; 15109 esac 15110 fi 15111 ;; 15112 esac 15113 archive_cmds_need_lc_F77=no 15114 hardcode_direct_F77=no 15115 hardcode_automatic_F77=yes 15116 hardcode_shlibpath_var_F77=unsupported 15117 whole_archive_flag_spec_F77='' 15118 link_all_deplibs_F77=yes 15119 if test "$GCC" = yes ; then 15120 output_verbose_link_cmd='echo' 15121 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15122 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15124 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}' 15125 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}' 15126 else 15127 case $cc_basename in 15128 xlc*) 15129 output_verbose_link_cmd='echo' 15130 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15131 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15132 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15133 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}' 15134 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}' 15135 ;; 15136 *) 15137 ld_shlibs_F77=no 15138 ;; 15139 esac 15140 fi 15141 ;; 15142 15143 dgux*) 15144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15145 hardcode_libdir_flag_spec_F77='-L$libdir' 15146 hardcode_shlibpath_var_F77=no 15147 ;; 15148 15149 freebsd1*) 15150 ld_shlibs_F77=no 15151 ;; 15152 15153 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15154 # support. Future versions do this automatically, but an explicit c++rt0.o 15155 # does not break anything, and helps significantly (at the cost of a little 15156 # extra space). 15157 freebsd2.2*) 15158 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15159 hardcode_libdir_flag_spec_F77='-R$libdir' 15160 hardcode_direct_F77=yes 15161 hardcode_shlibpath_var_F77=no 15162 ;; 15163 15164 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15165 freebsd2*) 15166 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15167 hardcode_direct_F77=yes 15168 hardcode_minus_L_F77=yes 15169 hardcode_shlibpath_var_F77=no 15170 ;; 15171 15172 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15173 freebsd* | dragonfly*) 15174 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15175 hardcode_libdir_flag_spec_F77='-R$libdir' 15176 hardcode_direct_F77=yes 15177 hardcode_shlibpath_var_F77=no 15178 ;; 15179 15180 hpux9*) 15181 if test "$GCC" = yes; then 15182 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' 15183 else 15184 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' 15185 fi 15186 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15187 hardcode_libdir_separator_F77=: 15188 hardcode_direct_F77=yes 15189 15190 # hardcode_minus_L: Not really in the search PATH, 15191 # but as the default location of the library. 15192 hardcode_minus_L_F77=yes 15193 export_dynamic_flag_spec_F77='${wl}-E' 15194 ;; 15195 15196 hpux10*) 15197 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15198 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15199 else 15200 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15201 fi 15202 if test "$with_gnu_ld" = no; then 15203 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15204 hardcode_libdir_separator_F77=: 15205 15206 hardcode_direct_F77=yes 15207 export_dynamic_flag_spec_F77='${wl}-E' 15208 15209 # hardcode_minus_L: Not really in the search PATH, 15210 # but as the default location of the library. 15211 hardcode_minus_L_F77=yes 15212 fi 15213 ;; 15214 15215 hpux11*) 15216 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15217 case $host_cpu in 15218 hppa*64*) 15219 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15220 ;; 15221 ia64*) 15222 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15223 ;; 15224 *) 15225 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15226 ;; 15227 esac 15228 else 15229 case $host_cpu in 15230 hppa*64*) 15231 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15232 ;; 15233 ia64*) 15234 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15235 ;; 15236 *) 15237 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15238 ;; 15239 esac 15240 fi 15241 if test "$with_gnu_ld" = no; then 15242 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15243 hardcode_libdir_separator_F77=: 15244 15245 case $host_cpu in 15246 hppa*64*|ia64*) 15247 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15248 hardcode_direct_F77=no 15249 hardcode_shlibpath_var_F77=no 15250 ;; 15251 *) 15252 hardcode_direct_F77=yes 15253 export_dynamic_flag_spec_F77='${wl}-E' 15254 15255 # hardcode_minus_L: Not really in the search PATH, 15256 # but as the default location of the library. 15257 hardcode_minus_L_F77=yes 15258 ;; 15259 esac 15260 fi 15261 ;; 15262 15263 irix5* | irix6* | nonstopux*) 15264 if test "$GCC" = yes; then 15265 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' 15266 else 15267 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' 15268 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15269 fi 15270 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15271 hardcode_libdir_separator_F77=: 15272 link_all_deplibs_F77=yes 15273 ;; 15274 15275 netbsd* | netbsdelf*-gnu) 15276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15277 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15278 else 15279 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15280 fi 15281 hardcode_libdir_flag_spec_F77='-R$libdir' 15282 hardcode_direct_F77=yes 15283 hardcode_shlibpath_var_F77=no 15284 ;; 15285 15286 newsos6) 15287 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15288 hardcode_direct_F77=yes 15289 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15290 hardcode_libdir_separator_F77=: 15291 hardcode_shlibpath_var_F77=no 15292 ;; 15293 15294 openbsd*) 15295 hardcode_direct_F77=yes 15296 hardcode_shlibpath_var_F77=no 15297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15298 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15299 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15300 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15301 export_dynamic_flag_spec_F77='${wl}-E' 15302 else 15303 case $host_os in 15304 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15305 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15306 hardcode_libdir_flag_spec_F77='-R$libdir' 15307 ;; 15308 *) 15309 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15310 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15311 ;; 15312 esac 15313 fi 15314 ;; 15315 15316 os2*) 15317 hardcode_libdir_flag_spec_F77='-L$libdir' 15318 hardcode_minus_L_F77=yes 15319 allow_undefined_flag_F77=unsupported 15320 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' 15321 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15322 ;; 15323 15324 osf3*) 15325 if test "$GCC" = yes; then 15326 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15327 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' 15328 else 15329 allow_undefined_flag_F77=' -expect_unresolved \*' 15330 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' 15331 fi 15332 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15333 hardcode_libdir_separator_F77=: 15334 ;; 15335 15336 osf4* | osf5*) # as osf3* with the addition of -msym flag 15337 if test "$GCC" = yes; then 15338 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15339 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' 15340 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15341 else 15342 allow_undefined_flag_F77=' -expect_unresolved \*' 15343 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' 15344 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~ 15345 $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' 15346 15347 # Both c and cxx compiler support -rpath directly 15348 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15349 fi 15350 hardcode_libdir_separator_F77=: 15351 ;; 15352 15353 solaris*) 15354 no_undefined_flag_F77=' -z text' 15355 if test "$GCC" = yes; then 15356 wlarc='${wl}' 15357 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15358 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15359 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15360 else 15361 wlarc='' 15362 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15363 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15364 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15365 fi 15366 hardcode_libdir_flag_spec_F77='-R$libdir' 15367 hardcode_shlibpath_var_F77=no 15368 case $host_os in 15369 solaris2.[0-5] | solaris2.[0-5].*) ;; 15370 *) 15371 # The compiler driver will combine linker options so we 15372 # cannot just pass the convience library names through 15373 # without $wl, iff we do not link with $LD. 15374 # Luckily, gcc supports the same syntax we need for Sun Studio. 15375 # Supported since Solaris 2.6 (maybe 2.5.1?) 15376 case $wlarc in 15377 '') 15378 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15379 *) 15380 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' ;; 15381 esac ;; 15382 esac 15383 link_all_deplibs_F77=yes 15384 ;; 15385 15386 sunos4*) 15387 if test "x$host_vendor" = xsequent; then 15388 # Use $CC to link under sequent, because it throws in some extra .o 15389 # files that make .init and .fini sections work. 15390 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15391 else 15392 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15393 fi 15394 hardcode_libdir_flag_spec_F77='-L$libdir' 15395 hardcode_direct_F77=yes 15396 hardcode_minus_L_F77=yes 15397 hardcode_shlibpath_var_F77=no 15398 ;; 15399 15400 sysv4) 15401 case $host_vendor in 15402 sni) 15403 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15404 hardcode_direct_F77=yes # is this really true??? 15405 ;; 15406 siemens) 15407 ## LD is ld it makes a PLAMLIB 15408 ## CC just makes a GrossModule. 15409 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15410 reload_cmds_F77='$CC -r -o $output$reload_objs' 15411 hardcode_direct_F77=no 15412 ;; 15413 motorola) 15414 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15415 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15416 ;; 15417 esac 15418 runpath_var='LD_RUN_PATH' 15419 hardcode_shlibpath_var_F77=no 15420 ;; 15421 15422 sysv4.3*) 15423 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15424 hardcode_shlibpath_var_F77=no 15425 export_dynamic_flag_spec_F77='-Bexport' 15426 ;; 15427 15428 sysv4*MP*) 15429 if test -d /usr/nec; then 15430 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15431 hardcode_shlibpath_var_F77=no 15432 runpath_var=LD_RUN_PATH 15433 hardcode_runpath_var=yes 15434 ld_shlibs_F77=yes 15435 fi 15436 ;; 15437 15438 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15439 no_undefined_flag_F77='${wl}-z,text' 15440 archive_cmds_need_lc_F77=no 15441 hardcode_shlibpath_var_F77=no 15442 runpath_var='LD_RUN_PATH' 15443 15444 if test "$GCC" = yes; then 15445 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15446 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15447 else 15448 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15449 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15450 fi 15451 ;; 15452 15453 sysv5* | sco3.2v5* | sco5v6*) 15454 # Note: We can NOT use -z defs as we might desire, because we do not 15455 # link with -lc, and that would cause any symbols used from libc to 15456 # always be unresolved, which means just about no library would 15457 # ever link correctly. If we're not using GNU ld we use -z text 15458 # though, which does catch some bad symbols but isn't as heavy-handed 15459 # as -z defs. 15460 no_undefined_flag_F77='${wl}-z,text' 15461 allow_undefined_flag_F77='${wl}-z,nodefs' 15462 archive_cmds_need_lc_F77=no 15463 hardcode_shlibpath_var_F77=no 15464 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15465 hardcode_libdir_separator_F77=':' 15466 link_all_deplibs_F77=yes 15467 export_dynamic_flag_spec_F77='${wl}-Bexport' 15468 runpath_var='LD_RUN_PATH' 15469 15470 if test "$GCC" = yes; then 15471 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15472 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15473 else 15474 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15475 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15476 fi 15477 ;; 15478 15479 uts4*) 15480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15481 hardcode_libdir_flag_spec_F77='-L$libdir' 15482 hardcode_shlibpath_var_F77=no 15483 ;; 15484 15485 *) 15486 ld_shlibs_F77=no 15487 ;; 15488 esac 15489 fi 15490 15491{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15492echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15493test "$ld_shlibs_F77" = no && can_build_shared=no 15494 15495# 15496# Do we need to explicitly link libc? 15497# 15498case "x$archive_cmds_need_lc_F77" in 15499x|xyes) 15500 # Assume -lc should be added 15501 archive_cmds_need_lc_F77=yes 15502 15503 if test "$enable_shared" = yes && test "$GCC" = yes; then 15504 case $archive_cmds_F77 in 15505 *'~'*) 15506 # FIXME: we may have to deal with multi-command sequences. 15507 ;; 15508 '$CC '*) 15509 # Test whether the compiler implicitly links with -lc since on some 15510 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15511 # to ld, don't add -lc before -lgcc. 15512 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15513echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15514 $rm conftest* 15515 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15516 15517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15518 (eval $ac_compile) 2>&5 15519 ac_status=$? 15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15521 (exit $ac_status); } 2>conftest.err; then 15522 soname=conftest 15523 lib=conftest 15524 libobjs=conftest.$ac_objext 15525 deplibs= 15526 wl=$lt_prog_compiler_wl_F77 15527 pic_flag=$lt_prog_compiler_pic_F77 15528 compiler_flags=-v 15529 linker_flags=-v 15530 verstring= 15531 output_objdir=. 15532 libname=conftest 15533 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15534 allow_undefined_flag_F77= 15535 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15536 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15537 ac_status=$? 15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15539 (exit $ac_status); } 15540 then 15541 archive_cmds_need_lc_F77=no 15542 else 15543 archive_cmds_need_lc_F77=yes 15544 fi 15545 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15546 else 15547 cat conftest.err 1>&5 15548 fi 15549 $rm conftest* 15550 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15551echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15552 ;; 15553 esac 15554 fi 15555 ;; 15556esac 15557 15558{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15559echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15560library_names_spec= 15561libname_spec='lib$name' 15562soname_spec= 15563shrext_cmds=".so" 15564postinstall_cmds= 15565postuninstall_cmds= 15566finish_cmds= 15567finish_eval= 15568shlibpath_var= 15569shlibpath_overrides_runpath=unknown 15570version_type=none 15571dynamic_linker="$host_os ld.so" 15572sys_lib_dlsearch_path_spec="/lib /usr/lib" 15573if test "$GCC" = yes; then 15574 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15575 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15576 # if the path contains ";" then we assume it to be the separator 15577 # otherwise default to the standard path separator (i.e. ":") - it is 15578 # assumed that no part of a normal pathname contains ";" but that should 15579 # okay in the real world where ";" in dirpaths is itself problematic. 15580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15581 else 15582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15583 fi 15584else 15585 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15586fi 15587need_lib_prefix=unknown 15588hardcode_into_libs=no 15589 15590# when you set need_version to no, make sure it does not cause -set_version 15591# flags to be left without arguments 15592need_version=unknown 15593 15594case $host_os in 15595aix3*) 15596 version_type=linux 15597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15598 shlibpath_var=LIBPATH 15599 15600 # AIX 3 has no versioning support, so we append a major version to the name. 15601 soname_spec='${libname}${release}${shared_ext}$major' 15602 ;; 15603 15604aix4* | aix5*) 15605 version_type=linux 15606 need_lib_prefix=no 15607 need_version=no 15608 hardcode_into_libs=yes 15609 if test "$host_cpu" = ia64; then 15610 # AIX 5 supports IA64 15611 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15612 shlibpath_var=LD_LIBRARY_PATH 15613 else 15614 # With GCC up to 2.95.x, collect2 would create an import file 15615 # for dependence libraries. The import file would start with 15616 # the line `#! .'. This would cause the generated library to 15617 # depend on `.', always an invalid library. This was fixed in 15618 # development snapshots of GCC prior to 3.0. 15619 case $host_os in 15620 aix4 | aix4.[01] | aix4.[01].*) 15621 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15622 echo ' yes ' 15623 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15624 : 15625 else 15626 can_build_shared=no 15627 fi 15628 ;; 15629 esac 15630 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15631 # soname into executable. Probably we can add versioning support to 15632 # collect2, so additional links can be useful in future. 15633 if test "$aix_use_runtimelinking" = yes; then 15634 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15635 # instead of lib<name>.a to let people know that these are not 15636 # typical AIX shared libraries. 15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15638 else 15639 # We preserve .a as extension for shared libraries through AIX4.2 15640 # and later when we are not doing run time linking. 15641 library_names_spec='${libname}${release}.a $libname.a' 15642 soname_spec='${libname}${release}${shared_ext}$major' 15643 fi 15644 shlibpath_var=LIBPATH 15645 fi 15646 ;; 15647 15648amigaos*) 15649 library_names_spec='$libname.ixlibrary $libname.a' 15650 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15651 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' 15652 ;; 15653 15654beos*) 15655 library_names_spec='${libname}${shared_ext}' 15656 dynamic_linker="$host_os ld.so" 15657 shlibpath_var=LIBRARY_PATH 15658 ;; 15659 15660bsdi[45]*) 15661 version_type=linux 15662 need_version=no 15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15664 soname_spec='${libname}${release}${shared_ext}$major' 15665 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15666 shlibpath_var=LD_LIBRARY_PATH 15667 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15668 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15669 # the default ld.so.conf also contains /usr/contrib/lib and 15670 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15671 # libtool to hard-code these into programs 15672 ;; 15673 15674cygwin* | mingw* | pw32*) 15675 version_type=windows 15676 shrext_cmds=".dll" 15677 need_version=no 15678 need_lib_prefix=no 15679 15680 case $GCC,$host_os in 15681 yes,cygwin* | yes,mingw* | yes,pw32*) 15682 library_names_spec='$libname.dll.a' 15683 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15684 postinstall_cmds='base_file=`basename \${file}`~ 15685 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15686 dldir=$destdir/`dirname \$dlpath`~ 15687 test -d \$dldir || mkdir -p \$dldir~ 15688 $install_prog $dir/$dlname \$dldir/$dlname~ 15689 chmod a+x \$dldir/$dlname' 15690 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15691 dlpath=$dir/\$dldll~ 15692 $rm \$dlpath' 15693 shlibpath_overrides_runpath=yes 15694 15695 case $host_os in 15696 cygwin*) 15697 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15698 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15699 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15700 ;; 15701 mingw*) 15702 # MinGW DLLs use traditional 'lib' prefix 15703 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15704 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15705 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15706 # It is most probably a Windows format PATH printed by 15707 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15708 # path with ; separators, and with drive letters. We can handle the 15709 # drive letters (cygwin fileutils understands them), so leave them, 15710 # especially as we might pass files found there to a mingw objdump, 15711 # which wouldn't understand a cygwinified path. Ahh. 15712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15713 else 15714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15715 fi 15716 ;; 15717 pw32*) 15718 # pw32 DLLs use 'pw' prefix rather than 'lib' 15719 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15720 ;; 15721 esac 15722 ;; 15723 15724 *) 15725 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15726 ;; 15727 esac 15728 dynamic_linker='Win32 ld.exe' 15729 # FIXME: first we should search . and the directory the executable is in 15730 shlibpath_var=PATH 15731 ;; 15732 15733darwin* | rhapsody*) 15734 dynamic_linker="$host_os dyld" 15735 version_type=darwin 15736 need_lib_prefix=no 15737 need_version=no 15738 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15739 soname_spec='${libname}${release}${major}$shared_ext' 15740 shlibpath_overrides_runpath=yes 15741 shlibpath_var=DYLD_LIBRARY_PATH 15742 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15743 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15744 if test "$GCC" = yes; then 15745 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"` 15746 else 15747 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15748 fi 15749 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15750 ;; 15751 15752dgux*) 15753 version_type=linux 15754 need_lib_prefix=no 15755 need_version=no 15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15757 soname_spec='${libname}${release}${shared_ext}$major' 15758 shlibpath_var=LD_LIBRARY_PATH 15759 ;; 15760 15761freebsd1*) 15762 dynamic_linker=no 15763 ;; 15764 15765freebsd* | dragonfly*) 15766 # DragonFly does not have aout. When/if they implement a new 15767 # versioning mechanism, adjust this. 15768 if test -x /usr/bin/objformat; then 15769 objformat=`/usr/bin/objformat` 15770 else 15771 case $host_os in 15772 freebsd[123]*) objformat=aout ;; 15773 *) objformat=elf ;; 15774 esac 15775 fi 15776 version_type=freebsd-$objformat 15777 case $version_type in 15778 freebsd-elf*) 15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15780 need_version=no 15781 need_lib_prefix=no 15782 ;; 15783 freebsd-*) 15784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15785 need_version=yes 15786 ;; 15787 esac 15788 shlibpath_var=LD_LIBRARY_PATH 15789 case $host_os in 15790 freebsd2*) 15791 shlibpath_overrides_runpath=yes 15792 ;; 15793 freebsd3.[01]* | freebsdelf3.[01]*) 15794 shlibpath_overrides_runpath=yes 15795 hardcode_into_libs=yes 15796 ;; 15797 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15798 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15799 shlibpath_overrides_runpath=no 15800 hardcode_into_libs=yes 15801 ;; 15802 freebsd*) # from 4.6 on 15803 shlibpath_overrides_runpath=yes 15804 hardcode_into_libs=yes 15805 ;; 15806 esac 15807 ;; 15808 15809gnu*) 15810 version_type=linux 15811 need_lib_prefix=no 15812 need_version=no 15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15814 soname_spec='${libname}${release}${shared_ext}$major' 15815 shlibpath_var=LD_LIBRARY_PATH 15816 hardcode_into_libs=yes 15817 ;; 15818 15819hpux9* | hpux10* | hpux11*) 15820 # Give a soname corresponding to the major version so that dld.sl refuses to 15821 # link against other versions. 15822 version_type=sunos 15823 need_lib_prefix=no 15824 need_version=no 15825 case $host_cpu in 15826 ia64*) 15827 shrext_cmds='.so' 15828 hardcode_into_libs=yes 15829 dynamic_linker="$host_os dld.so" 15830 shlibpath_var=LD_LIBRARY_PATH 15831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15833 soname_spec='${libname}${release}${shared_ext}$major' 15834 if test "X$HPUX_IA64_MODE" = X32; then 15835 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15836 else 15837 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15838 fi 15839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15840 ;; 15841 hppa*64*) 15842 shrext_cmds='.sl' 15843 hardcode_into_libs=yes 15844 dynamic_linker="$host_os dld.sl" 15845 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15848 soname_spec='${libname}${release}${shared_ext}$major' 15849 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15851 ;; 15852 *) 15853 shrext_cmds='.sl' 15854 dynamic_linker="$host_os dld.sl" 15855 shlibpath_var=SHLIB_PATH 15856 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15858 soname_spec='${libname}${release}${shared_ext}$major' 15859 ;; 15860 esac 15861 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15862 postinstall_cmds='chmod 555 $lib' 15863 ;; 15864 15865interix3*) 15866 version_type=linux 15867 need_lib_prefix=no 15868 need_version=no 15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15870 soname_spec='${libname}${release}${shared_ext}$major' 15871 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15872 shlibpath_var=LD_LIBRARY_PATH 15873 shlibpath_overrides_runpath=no 15874 hardcode_into_libs=yes 15875 ;; 15876 15877irix5* | irix6* | nonstopux*) 15878 case $host_os in 15879 nonstopux*) version_type=nonstopux ;; 15880 *) 15881 if test "$lt_cv_prog_gnu_ld" = yes; then 15882 version_type=linux 15883 else 15884 version_type=irix 15885 fi ;; 15886 esac 15887 need_lib_prefix=no 15888 need_version=no 15889 soname_spec='${libname}${release}${shared_ext}$major' 15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15891 case $host_os in 15892 irix5* | nonstopux*) 15893 libsuff= shlibsuff= 15894 ;; 15895 *) 15896 case $LD in # libtool.m4 will add one of these switches to LD 15897 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15898 libsuff= shlibsuff= libmagic=32-bit;; 15899 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15900 libsuff=32 shlibsuff=N32 libmagic=N32;; 15901 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15902 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15903 *) libsuff= shlibsuff= libmagic=never-match;; 15904 esac 15905 ;; 15906 esac 15907 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15908 shlibpath_overrides_runpath=no 15909 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15910 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15911 hardcode_into_libs=yes 15912 ;; 15913 15914# No shared lib support for Linux oldld, aout, or coff. 15915linux*oldld* | linux*aout* | linux*coff*) 15916 dynamic_linker=no 15917 ;; 15918 15919# This must be Linux ELF. 15920linux* | k*bsd*-gnu) 15921 version_type=linux 15922 need_lib_prefix=no 15923 need_version=no 15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15925 soname_spec='${libname}${release}${shared_ext}$major' 15926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15927 shlibpath_var=LD_LIBRARY_PATH 15928 shlibpath_overrides_runpath=no 15929 # This implies no fast_install, which is unacceptable. 15930 # Some rework will be needed to allow for fast_install 15931 # before this can be enabled. 15932 hardcode_into_libs=yes 15933 15934 # Append ld.so.conf contents to the search path 15935 if test -f /etc/ld.so.conf; then 15936 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' ' '` 15937 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15938 fi 15939 15940 # We used to test for /lib/ld.so.1 and disable shared libraries on 15941 # powerpc, because MkLinux only supported shared libraries with the 15942 # GNU dynamic linker. Since this was broken with cross compilers, 15943 # most powerpc-linux boxes support dynamic linking these days and 15944 # people can always --disable-shared, the test was removed, and we 15945 # assume the GNU/Linux dynamic linker is in use. 15946 dynamic_linker='GNU/Linux ld.so' 15947 ;; 15948 15949netbsdelf*-gnu) 15950 version_type=linux 15951 need_lib_prefix=no 15952 need_version=no 15953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15954 soname_spec='${libname}${release}${shared_ext}$major' 15955 shlibpath_var=LD_LIBRARY_PATH 15956 shlibpath_overrides_runpath=no 15957 hardcode_into_libs=yes 15958 dynamic_linker='NetBSD ld.elf_so' 15959 ;; 15960 15961netbsd*) 15962 version_type=sunos 15963 need_lib_prefix=no 15964 need_version=no 15965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15968 dynamic_linker='NetBSD (a.out) ld.so' 15969 else 15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15971 soname_spec='${libname}${release}${shared_ext}$major' 15972 dynamic_linker='NetBSD ld.elf_so' 15973 fi 15974 shlibpath_var=LD_LIBRARY_PATH 15975 shlibpath_overrides_runpath=yes 15976 hardcode_into_libs=yes 15977 ;; 15978 15979newsos6) 15980 version_type=linux 15981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15982 shlibpath_var=LD_LIBRARY_PATH 15983 shlibpath_overrides_runpath=yes 15984 ;; 15985 15986nto-qnx*) 15987 version_type=linux 15988 need_lib_prefix=no 15989 need_version=no 15990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15991 soname_spec='${libname}${release}${shared_ext}$major' 15992 shlibpath_var=LD_LIBRARY_PATH 15993 shlibpath_overrides_runpath=yes 15994 ;; 15995 15996openbsd*) 15997 version_type=sunos 15998 sys_lib_dlsearch_path_spec="/usr/lib" 15999 need_lib_prefix=no 16000 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16001 case $host_os in 16002 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16003 *) need_version=no ;; 16004 esac 16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16007 shlibpath_var=LD_LIBRARY_PATH 16008 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16009 case $host_os in 16010 openbsd2.[89] | openbsd2.[89].*) 16011 shlibpath_overrides_runpath=no 16012 ;; 16013 *) 16014 shlibpath_overrides_runpath=yes 16015 ;; 16016 esac 16017 else 16018 shlibpath_overrides_runpath=yes 16019 fi 16020 ;; 16021 16022os2*) 16023 libname_spec='$name' 16024 shrext_cmds=".dll" 16025 need_lib_prefix=no 16026 library_names_spec='$libname${shared_ext} $libname.a' 16027 dynamic_linker='OS/2 ld.exe' 16028 shlibpath_var=LIBPATH 16029 ;; 16030 16031osf3* | osf4* | osf5*) 16032 version_type=osf 16033 need_lib_prefix=no 16034 need_version=no 16035 soname_spec='${libname}${release}${shared_ext}$major' 16036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16037 shlibpath_var=LD_LIBRARY_PATH 16038 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16039 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16040 ;; 16041 16042solaris*) 16043 version_type=linux 16044 need_lib_prefix=no 16045 need_version=no 16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16047 soname_spec='${libname}${release}${shared_ext}$major' 16048 shlibpath_var=LD_LIBRARY_PATH 16049 shlibpath_overrides_runpath=yes 16050 hardcode_into_libs=yes 16051 # ldd complains unless libraries are executable 16052 postinstall_cmds='chmod +x $lib' 16053 ;; 16054 16055sunos4*) 16056 version_type=sunos 16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16059 shlibpath_var=LD_LIBRARY_PATH 16060 shlibpath_overrides_runpath=yes 16061 if test "$with_gnu_ld" = yes; then 16062 need_lib_prefix=no 16063 fi 16064 need_version=yes 16065 ;; 16066 16067sysv4 | sysv4.3*) 16068 version_type=linux 16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16070 soname_spec='${libname}${release}${shared_ext}$major' 16071 shlibpath_var=LD_LIBRARY_PATH 16072 case $host_vendor in 16073 sni) 16074 shlibpath_overrides_runpath=no 16075 need_lib_prefix=no 16076 export_dynamic_flag_spec='${wl}-Blargedynsym' 16077 runpath_var=LD_RUN_PATH 16078 ;; 16079 siemens) 16080 need_lib_prefix=no 16081 ;; 16082 motorola) 16083 need_lib_prefix=no 16084 need_version=no 16085 shlibpath_overrides_runpath=no 16086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16087 ;; 16088 esac 16089 ;; 16090 16091sysv4*MP*) 16092 if test -d /usr/nec ;then 16093 version_type=linux 16094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16095 soname_spec='$libname${shared_ext}.$major' 16096 shlibpath_var=LD_LIBRARY_PATH 16097 fi 16098 ;; 16099 16100sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16101 version_type=freebsd-elf 16102 need_lib_prefix=no 16103 need_version=no 16104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16105 soname_spec='${libname}${release}${shared_ext}$major' 16106 shlibpath_var=LD_LIBRARY_PATH 16107 hardcode_into_libs=yes 16108 if test "$with_gnu_ld" = yes; then 16109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16110 shlibpath_overrides_runpath=no 16111 else 16112 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16113 shlibpath_overrides_runpath=yes 16114 case $host_os in 16115 sco3.2v5*) 16116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16117 ;; 16118 esac 16119 fi 16120 sys_lib_dlsearch_path_spec='/usr/lib' 16121 ;; 16122 16123uts4*) 16124 version_type=linux 16125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16126 soname_spec='${libname}${release}${shared_ext}$major' 16127 shlibpath_var=LD_LIBRARY_PATH 16128 ;; 16129 16130*) 16131 dynamic_linker=no 16132 ;; 16133esac 16134{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16135echo "${ECHO_T}$dynamic_linker" >&6; } 16136test "$dynamic_linker" = no && can_build_shared=no 16137 16138variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16139if test "$GCC" = yes; then 16140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16141fi 16142 16143{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16144echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16145hardcode_action_F77= 16146if test -n "$hardcode_libdir_flag_spec_F77" || \ 16147 test -n "$runpath_var_F77" || \ 16148 test "X$hardcode_automatic_F77" = "Xyes" ; then 16149 16150 # We can hardcode non-existant directories. 16151 if test "$hardcode_direct_F77" != no && 16152 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16153 # have to relink, otherwise we might link with an installed library 16154 # when we should be linking with a yet-to-be-installed one 16155 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16156 test "$hardcode_minus_L_F77" != no; then 16157 # Linking always hardcodes the temporary library directory. 16158 hardcode_action_F77=relink 16159 else 16160 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16161 hardcode_action_F77=immediate 16162 fi 16163else 16164 # We cannot hardcode anything, or else we can only hardcode existing 16165 # directories. 16166 hardcode_action_F77=unsupported 16167fi 16168{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16169echo "${ECHO_T}$hardcode_action_F77" >&6; } 16170 16171if test "$hardcode_action_F77" = relink; then 16172 # Fast installation is not supported 16173 enable_fast_install=no 16174elif test "$shlibpath_overrides_runpath" = yes || 16175 test "$enable_shared" = no; then 16176 # Fast installation is not necessary 16177 enable_fast_install=needless 16178fi 16179 16180 16181# The else clause should only fire when bootstrapping the 16182# libtool distribution, otherwise you forgot to ship ltmain.sh 16183# with your package, and you will get complaints that there are 16184# no rules to generate ltmain.sh. 16185if test -f "$ltmain"; then 16186 # See if we are running on zsh, and set the options which allow our commands through 16187 # without removal of \ escapes. 16188 if test -n "${ZSH_VERSION+set}" ; then 16189 setopt NO_GLOB_SUBST 16190 fi 16191 # Now quote all the things that may contain metacharacters while being 16192 # careful not to overquote the AC_SUBSTed values. We take copies of the 16193 # variables and quote the copies for generation of the libtool script. 16194 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16195 SED SHELL STRIP \ 16196 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16197 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16198 deplibs_check_method reload_flag reload_cmds need_locks \ 16199 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16200 lt_cv_sys_global_symbol_to_c_name_address \ 16201 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16202 old_postinstall_cmds old_postuninstall_cmds \ 16203 compiler_F77 \ 16204 CC_F77 \ 16205 LD_F77 \ 16206 lt_prog_compiler_wl_F77 \ 16207 lt_prog_compiler_pic_F77 \ 16208 lt_prog_compiler_static_F77 \ 16209 lt_prog_compiler_no_builtin_flag_F77 \ 16210 export_dynamic_flag_spec_F77 \ 16211 thread_safe_flag_spec_F77 \ 16212 whole_archive_flag_spec_F77 \ 16213 enable_shared_with_static_runtimes_F77 \ 16214 old_archive_cmds_F77 \ 16215 old_archive_from_new_cmds_F77 \ 16216 predep_objects_F77 \ 16217 postdep_objects_F77 \ 16218 predeps_F77 \ 16219 postdeps_F77 \ 16220 compiler_lib_search_path_F77 \ 16221 archive_cmds_F77 \ 16222 archive_expsym_cmds_F77 \ 16223 postinstall_cmds_F77 \ 16224 postuninstall_cmds_F77 \ 16225 old_archive_from_expsyms_cmds_F77 \ 16226 allow_undefined_flag_F77 \ 16227 no_undefined_flag_F77 \ 16228 export_symbols_cmds_F77 \ 16229 hardcode_libdir_flag_spec_F77 \ 16230 hardcode_libdir_flag_spec_ld_F77 \ 16231 hardcode_libdir_separator_F77 \ 16232 hardcode_automatic_F77 \ 16233 module_cmds_F77 \ 16234 module_expsym_cmds_F77 \ 16235 lt_cv_prog_compiler_c_o_F77 \ 16236 exclude_expsyms_F77 \ 16237 include_expsyms_F77; do 16238 16239 case $var in 16240 old_archive_cmds_F77 | \ 16241 old_archive_from_new_cmds_F77 | \ 16242 archive_cmds_F77 | \ 16243 archive_expsym_cmds_F77 | \ 16244 module_cmds_F77 | \ 16245 module_expsym_cmds_F77 | \ 16246 old_archive_from_expsyms_cmds_F77 | \ 16247 export_symbols_cmds_F77 | \ 16248 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16249 postinstall_cmds | postuninstall_cmds | \ 16250 old_postinstall_cmds | old_postuninstall_cmds | \ 16251 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16252 # Double-quote double-evaled strings. 16253 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16254 ;; 16255 *) 16256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16257 ;; 16258 esac 16259 done 16260 16261 case $lt_echo in 16262 *'\$0 --fallback-echo"') 16263 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16264 ;; 16265 esac 16266 16267cfgfile="$ofile" 16268 16269 cat <<__EOF__ >> "$cfgfile" 16270# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16271 16272# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16273 16274# Shell to use when invoking shell scripts. 16275SHELL=$lt_SHELL 16276 16277# Whether or not to build shared libraries. 16278build_libtool_libs=$enable_shared 16279 16280# Whether or not to build static libraries. 16281build_old_libs=$enable_static 16282 16283# Whether or not to add -lc for building shared libraries. 16284build_libtool_need_lc=$archive_cmds_need_lc_F77 16285 16286# Whether or not to disallow shared libs when runtime libs are static 16287allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16288 16289# Whether or not to optimize for fast installation. 16290fast_install=$enable_fast_install 16291 16292# The host system. 16293host_alias=$host_alias 16294host=$host 16295host_os=$host_os 16296 16297# The build system. 16298build_alias=$build_alias 16299build=$build 16300build_os=$build_os 16301 16302# An echo program that does not interpret backslashes. 16303echo=$lt_echo 16304 16305# The archiver. 16306AR=$lt_AR 16307AR_FLAGS=$lt_AR_FLAGS 16308 16309# A C compiler. 16310LTCC=$lt_LTCC 16311 16312# LTCC compiler flags. 16313LTCFLAGS=$lt_LTCFLAGS 16314 16315# A language-specific compiler. 16316CC=$lt_compiler_F77 16317 16318# Is the compiler the GNU C compiler? 16319with_gcc=$GCC_F77 16320 16321# An ERE matcher. 16322EGREP=$lt_EGREP 16323 16324# The linker used to build libraries. 16325LD=$lt_LD_F77 16326 16327# Whether we need hard or soft links. 16328LN_S=$lt_LN_S 16329 16330# A BSD-compatible nm program. 16331NM=$lt_NM 16332 16333# A symbol stripping program 16334STRIP=$lt_STRIP 16335 16336# Used to examine libraries when file_magic_cmd begins "file" 16337MAGIC_CMD=$MAGIC_CMD 16338 16339# Used on cygwin: DLL creation program. 16340DLLTOOL="$DLLTOOL" 16341 16342# Used on cygwin: object dumper. 16343OBJDUMP="$OBJDUMP" 16344 16345# Used on cygwin: assembler. 16346AS="$AS" 16347 16348# The name of the directory that contains temporary libtool files. 16349objdir=$objdir 16350 16351# How to create reloadable object files. 16352reload_flag=$lt_reload_flag 16353reload_cmds=$lt_reload_cmds 16354 16355# How to pass a linker flag through the compiler. 16356wl=$lt_lt_prog_compiler_wl_F77 16357 16358# Object file suffix (normally "o"). 16359objext="$ac_objext" 16360 16361# Old archive suffix (normally "a"). 16362libext="$libext" 16363 16364# Shared library suffix (normally ".so"). 16365shrext_cmds='$shrext_cmds' 16366 16367# Executable file suffix (normally ""). 16368exeext="$exeext" 16369 16370# Additional compiler flags for building library objects. 16371pic_flag=$lt_lt_prog_compiler_pic_F77 16372pic_mode=$pic_mode 16373 16374# What is the maximum length of a command? 16375max_cmd_len=$lt_cv_sys_max_cmd_len 16376 16377# Does compiler simultaneously support -c and -o options? 16378compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16379 16380# Must we lock files when doing compilation? 16381need_locks=$lt_need_locks 16382 16383# Do we need the lib prefix for modules? 16384need_lib_prefix=$need_lib_prefix 16385 16386# Do we need a version for libraries? 16387need_version=$need_version 16388 16389# Whether dlopen is supported. 16390dlopen_support=$enable_dlopen 16391 16392# Whether dlopen of programs is supported. 16393dlopen_self=$enable_dlopen_self 16394 16395# Whether dlopen of statically linked programs is supported. 16396dlopen_self_static=$enable_dlopen_self_static 16397 16398# Compiler flag to prevent dynamic linking. 16399link_static_flag=$lt_lt_prog_compiler_static_F77 16400 16401# Compiler flag to turn off builtin functions. 16402no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16403 16404# Compiler flag to allow reflexive dlopens. 16405export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16406 16407# Compiler flag to generate shared objects directly from archives. 16408whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16409 16410# Compiler flag to generate thread-safe objects. 16411thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16412 16413# Library versioning type. 16414version_type=$version_type 16415 16416# Format of library name prefix. 16417libname_spec=$lt_libname_spec 16418 16419# List of archive names. First name is the real one, the rest are links. 16420# The last name is the one that the linker finds with -lNAME. 16421library_names_spec=$lt_library_names_spec 16422 16423# The coded name of the library, if different from the real name. 16424soname_spec=$lt_soname_spec 16425 16426# Commands used to build and install an old-style archive. 16427RANLIB=$lt_RANLIB 16428old_archive_cmds=$lt_old_archive_cmds_F77 16429old_postinstall_cmds=$lt_old_postinstall_cmds 16430old_postuninstall_cmds=$lt_old_postuninstall_cmds 16431 16432# Create an old-style archive from a shared archive. 16433old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16434 16435# Create a temporary old-style archive to link instead of a shared archive. 16436old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16437 16438# Commands used to build and install a shared archive. 16439archive_cmds=$lt_archive_cmds_F77 16440archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16441postinstall_cmds=$lt_postinstall_cmds 16442postuninstall_cmds=$lt_postuninstall_cmds 16443 16444# Commands used to build a loadable module (assumed same as above if empty) 16445module_cmds=$lt_module_cmds_F77 16446module_expsym_cmds=$lt_module_expsym_cmds_F77 16447 16448# Commands to strip libraries. 16449old_striplib=$lt_old_striplib 16450striplib=$lt_striplib 16451 16452# Dependencies to place before the objects being linked to create a 16453# shared library. 16454predep_objects=$lt_predep_objects_F77 16455 16456# Dependencies to place after the objects being linked to create a 16457# shared library. 16458postdep_objects=$lt_postdep_objects_F77 16459 16460# Dependencies to place before the objects being linked to create a 16461# shared library. 16462predeps=$lt_predeps_F77 16463 16464# Dependencies to place after the objects being linked to create a 16465# shared library. 16466postdeps=$lt_postdeps_F77 16467 16468# The library search path used internally by the compiler when linking 16469# a shared library. 16470compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16471 16472# Method to check whether dependent libraries are shared objects. 16473deplibs_check_method=$lt_deplibs_check_method 16474 16475# Command to use when deplibs_check_method == file_magic. 16476file_magic_cmd=$lt_file_magic_cmd 16477 16478# Flag that allows shared libraries with undefined symbols to be built. 16479allow_undefined_flag=$lt_allow_undefined_flag_F77 16480 16481# Flag that forces no undefined symbols. 16482no_undefined_flag=$lt_no_undefined_flag_F77 16483 16484# Commands used to finish a libtool library installation in a directory. 16485finish_cmds=$lt_finish_cmds 16486 16487# Same as above, but a single script fragment to be evaled but not shown. 16488finish_eval=$lt_finish_eval 16489 16490# Take the output of nm and produce a listing of raw symbols and C names. 16491global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16492 16493# Transform the output of nm in a proper C declaration 16494global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16495 16496# Transform the output of nm in a C name address pair 16497global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16498 16499# This is the shared library runtime path variable. 16500runpath_var=$runpath_var 16501 16502# This is the shared library path variable. 16503shlibpath_var=$shlibpath_var 16504 16505# Is shlibpath searched before the hard-coded library search path? 16506shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16507 16508# How to hardcode a shared library path into an executable. 16509hardcode_action=$hardcode_action_F77 16510 16511# Whether we should hardcode library paths into libraries. 16512hardcode_into_libs=$hardcode_into_libs 16513 16514# Flag to hardcode \$libdir into a binary during linking. 16515# This must work even if \$libdir does not exist. 16516hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16517 16518# If ld is used when linking, flag to hardcode \$libdir into 16519# a binary during linking. This must work even if \$libdir does 16520# not exist. 16521hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16522 16523# Whether we need a single -rpath flag with a separated argument. 16524hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16525 16526# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16527# resulting binary. 16528hardcode_direct=$hardcode_direct_F77 16529 16530# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16531# resulting binary. 16532hardcode_minus_L=$hardcode_minus_L_F77 16533 16534# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16535# the resulting binary. 16536hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16537 16538# Set to yes if building a shared library automatically hardcodes DIR into the library 16539# and all subsequent libraries and executables linked against it. 16540hardcode_automatic=$hardcode_automatic_F77 16541 16542# Variables whose values should be saved in libtool wrapper scripts and 16543# restored at relink time. 16544variables_saved_for_relink="$variables_saved_for_relink" 16545 16546# Whether libtool must link a program against all its dependency libraries. 16547link_all_deplibs=$link_all_deplibs_F77 16548 16549# Compile-time system search path for libraries 16550sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16551 16552# Run-time system search path for libraries 16553sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16554 16555# Fix the shell variable \$srcfile for the compiler. 16556fix_srcfile_path="$fix_srcfile_path_F77" 16557 16558# Set to yes if exported symbols are required. 16559always_export_symbols=$always_export_symbols_F77 16560 16561# The commands to list exported symbols. 16562export_symbols_cmds=$lt_export_symbols_cmds_F77 16563 16564# The commands to extract the exported symbol list from a shared archive. 16565extract_expsyms_cmds=$lt_extract_expsyms_cmds 16566 16567# Symbols that should not be listed in the preloaded symbols. 16568exclude_expsyms=$lt_exclude_expsyms_F77 16569 16570# Symbols that must always be exported. 16571include_expsyms=$lt_include_expsyms_F77 16572 16573# ### END LIBTOOL TAG CONFIG: $tagname 16574 16575__EOF__ 16576 16577 16578else 16579 # If there is no Makefile yet, we rely on a make rule to execute 16580 # `config.status --recheck' to rerun these tests and create the 16581 # libtool script then. 16582 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16583 if test -f "$ltmain_in"; then 16584 test -f Makefile && make "$ltmain" 16585 fi 16586fi 16587 16588 16589ac_ext=c 16590ac_cpp='$CPP $CPPFLAGS' 16591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16593ac_compiler_gnu=$ac_cv_c_compiler_gnu 16594 16595CC="$lt_save_CC" 16596 16597 else 16598 tagname="" 16599 fi 16600 ;; 16601 16602 GCJ) 16603 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16604 16605 16606# Source file extension for Java test sources. 16607ac_ext=java 16608 16609# Object file extension for compiled Java test sources. 16610objext=o 16611objext_GCJ=$objext 16612 16613# Code to be used in simple compile tests 16614lt_simple_compile_test_code="class foo {}\n" 16615 16616# Code to be used in simple link tests 16617lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16618 16619# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16620 16621# If no C compiler was specified, use CC. 16622LTCC=${LTCC-"$CC"} 16623 16624# If no C compiler flags were specified, use CFLAGS. 16625LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16626 16627# Allow CC to be a program name with arguments. 16628compiler=$CC 16629 16630 16631# save warnings/boilerplate of simple test code 16632ac_outfile=conftest.$ac_objext 16633printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16634eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16635_lt_compiler_boilerplate=`cat conftest.err` 16636$rm conftest* 16637 16638ac_outfile=conftest.$ac_objext 16639printf "$lt_simple_link_test_code" >conftest.$ac_ext 16640eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16641_lt_linker_boilerplate=`cat conftest.err` 16642$rm conftest* 16643 16644 16645# Allow CC to be a program name with arguments. 16646lt_save_CC="$CC" 16647CC=${GCJ-"gcj"} 16648compiler=$CC 16649compiler_GCJ=$CC 16650for cc_temp in $compiler""; do 16651 case $cc_temp in 16652 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16653 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16654 \-*) ;; 16655 *) break;; 16656 esac 16657done 16658cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16659 16660 16661# GCJ did not exist at the time GCC didn't implicitly link libc in. 16662archive_cmds_need_lc_GCJ=no 16663 16664old_archive_cmds_GCJ=$old_archive_cmds 16665 16666 16667lt_prog_compiler_no_builtin_flag_GCJ= 16668 16669if test "$GCC" = yes; then 16670 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16671 16672 16673{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16674echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16675if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16676 echo $ECHO_N "(cached) $ECHO_C" >&6 16677else 16678 lt_cv_prog_compiler_rtti_exceptions=no 16679 ac_outfile=conftest.$ac_objext 16680 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16681 lt_compiler_flag="-fno-rtti -fno-exceptions" 16682 # Insert the option either (1) after the last *FLAGS variable, or 16683 # (2) before a word containing "conftest.", or (3) at the end. 16684 # Note that $ac_compile itself does not contain backslashes and begins 16685 # with a dollar sign (not a hyphen), so the echo should work correctly. 16686 # The option is referenced via a variable to avoid confusing sed. 16687 lt_compile=`echo "$ac_compile" | $SED \ 16688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16690 -e 's:$: $lt_compiler_flag:'` 16691 (eval echo "\"\$as_me:16691: $lt_compile\"" >&5) 16692 (eval "$lt_compile" 2>conftest.err) 16693 ac_status=$? 16694 cat conftest.err >&5 16695 echo "$as_me:16695: \$? = $ac_status" >&5 16696 if (exit $ac_status) && test -s "$ac_outfile"; then 16697 # The compiler can only warn and ignore the option if not recognized 16698 # So say no if there are warnings other than the usual output. 16699 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16700 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16701 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16702 lt_cv_prog_compiler_rtti_exceptions=yes 16703 fi 16704 fi 16705 $rm conftest* 16706 16707fi 16708{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16709echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16710 16711if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16712 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16713else 16714 : 16715fi 16716 16717fi 16718 16719lt_prog_compiler_wl_GCJ= 16720lt_prog_compiler_pic_GCJ= 16721lt_prog_compiler_static_GCJ= 16722 16723{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16724echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16725 16726 if test "$GCC" = yes; then 16727 lt_prog_compiler_wl_GCJ='-Wl,' 16728 lt_prog_compiler_static_GCJ='-static' 16729 16730 case $host_os in 16731 aix*) 16732 # All AIX code is PIC. 16733 if test "$host_cpu" = ia64; then 16734 # AIX 5 now supports IA64 processor 16735 lt_prog_compiler_static_GCJ='-Bstatic' 16736 fi 16737 ;; 16738 16739 amigaos*) 16740 # FIXME: we need at least 68020 code to build shared libraries, but 16741 # adding the `-m68020' flag to GCC prevents building anything better, 16742 # like `-m68040'. 16743 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16744 ;; 16745 16746 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16747 # PIC is the default for these OSes. 16748 ;; 16749 16750 mingw* | pw32* | os2*) 16751 # This hack is so that the source file can tell whether it is being 16752 # built for inclusion in a dll (and should export symbols for example). 16753 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16754 ;; 16755 16756 darwin* | rhapsody*) 16757 # PIC is the default on this platform 16758 # Common symbols not allowed in MH_DYLIB files 16759 lt_prog_compiler_pic_GCJ='-fno-common' 16760 ;; 16761 16762 interix3*) 16763 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16764 # Instead, we relocate shared libraries at runtime. 16765 ;; 16766 16767 msdosdjgpp*) 16768 # Just because we use GCC doesn't mean we suddenly get shared libraries 16769 # on systems that don't support them. 16770 lt_prog_compiler_can_build_shared_GCJ=no 16771 enable_shared=no 16772 ;; 16773 16774 sysv4*MP*) 16775 if test -d /usr/nec; then 16776 lt_prog_compiler_pic_GCJ=-Kconform_pic 16777 fi 16778 ;; 16779 16780 hpux*) 16781 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16782 # not for PA HP-UX. 16783 case $host_cpu in 16784 hppa*64*|ia64*) 16785 # +Z the default 16786 ;; 16787 *) 16788 lt_prog_compiler_pic_GCJ='-fPIC' 16789 ;; 16790 esac 16791 ;; 16792 16793 *) 16794 lt_prog_compiler_pic_GCJ='-fPIC' 16795 ;; 16796 esac 16797 else 16798 # PORTME Check for flag to pass linker flags through the system compiler. 16799 case $host_os in 16800 aix*) 16801 lt_prog_compiler_wl_GCJ='-Wl,' 16802 if test "$host_cpu" = ia64; then 16803 # AIX 5 now supports IA64 processor 16804 lt_prog_compiler_static_GCJ='-Bstatic' 16805 else 16806 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16807 fi 16808 ;; 16809 darwin*) 16810 # PIC is the default on this platform 16811 # Common symbols not allowed in MH_DYLIB files 16812 case $cc_basename in 16813 xlc*) 16814 lt_prog_compiler_pic_GCJ='-qnocommon' 16815 lt_prog_compiler_wl_GCJ='-Wl,' 16816 ;; 16817 esac 16818 ;; 16819 16820 mingw* | pw32* | os2*) 16821 # This hack is so that the source file can tell whether it is being 16822 # built for inclusion in a dll (and should export symbols for example). 16823 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16824 ;; 16825 16826 hpux9* | hpux10* | hpux11*) 16827 lt_prog_compiler_wl_GCJ='-Wl,' 16828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16829 # not for PA HP-UX. 16830 case $host_cpu in 16831 hppa*64*|ia64*) 16832 # +Z the default 16833 ;; 16834 *) 16835 lt_prog_compiler_pic_GCJ='+Z' 16836 ;; 16837 esac 16838 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16839 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16840 ;; 16841 16842 irix5* | irix6* | nonstopux*) 16843 lt_prog_compiler_wl_GCJ='-Wl,' 16844 # PIC (with -KPIC) is the default. 16845 lt_prog_compiler_static_GCJ='-non_shared' 16846 ;; 16847 16848 newsos6) 16849 lt_prog_compiler_pic_GCJ='-KPIC' 16850 lt_prog_compiler_static_GCJ='-Bstatic' 16851 ;; 16852 16853 linux* | k*bsd*-gnu) 16854 case $cc_basename in 16855 icc* | ecc*) 16856 lt_prog_compiler_wl_GCJ='-Wl,' 16857 lt_prog_compiler_pic_GCJ='-KPIC' 16858 lt_prog_compiler_static_GCJ='-static' 16859 ;; 16860 pgcc* | pgf77* | pgf90* | pgf95*) 16861 # Portland Group compilers (*not* the Pentium gcc compiler, 16862 # which looks to be a dead project) 16863 lt_prog_compiler_wl_GCJ='-Wl,' 16864 lt_prog_compiler_pic_GCJ='-fpic' 16865 lt_prog_compiler_static_GCJ='-Bstatic' 16866 ;; 16867 ccc*) 16868 lt_prog_compiler_wl_GCJ='-Wl,' 16869 # All Alpha code is PIC. 16870 lt_prog_compiler_static_GCJ='-non_shared' 16871 ;; 16872 esac 16873 ;; 16874 16875 osf3* | osf4* | osf5*) 16876 lt_prog_compiler_wl_GCJ='-Wl,' 16877 # All OSF/1 code is PIC. 16878 lt_prog_compiler_static_GCJ='-non_shared' 16879 ;; 16880 16881 solaris*) 16882 lt_prog_compiler_pic_GCJ='-KPIC' 16883 lt_prog_compiler_static_GCJ='-Bstatic' 16884 case $cc_basename in 16885 f77* | f90* | f95*) 16886 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16887 *) 16888 lt_prog_compiler_wl_GCJ='-Wl,';; 16889 esac 16890 ;; 16891 16892 sunos4*) 16893 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16894 lt_prog_compiler_pic_GCJ='-PIC' 16895 lt_prog_compiler_static_GCJ='-Bstatic' 16896 ;; 16897 16898 sysv4 | sysv4.2uw2* | sysv4.3*) 16899 lt_prog_compiler_wl_GCJ='-Wl,' 16900 lt_prog_compiler_pic_GCJ='-KPIC' 16901 lt_prog_compiler_static_GCJ='-Bstatic' 16902 ;; 16903 16904 sysv4*MP*) 16905 if test -d /usr/nec ;then 16906 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16907 lt_prog_compiler_static_GCJ='-Bstatic' 16908 fi 16909 ;; 16910 16911 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16912 lt_prog_compiler_wl_GCJ='-Wl,' 16913 lt_prog_compiler_pic_GCJ='-KPIC' 16914 lt_prog_compiler_static_GCJ='-Bstatic' 16915 ;; 16916 16917 unicos*) 16918 lt_prog_compiler_wl_GCJ='-Wl,' 16919 lt_prog_compiler_can_build_shared_GCJ=no 16920 ;; 16921 16922 uts4*) 16923 lt_prog_compiler_pic_GCJ='-pic' 16924 lt_prog_compiler_static_GCJ='-Bstatic' 16925 ;; 16926 16927 *) 16928 lt_prog_compiler_can_build_shared_GCJ=no 16929 ;; 16930 esac 16931 fi 16932 16933{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16934echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16935 16936# 16937# Check to make sure the PIC flag actually works. 16938# 16939if test -n "$lt_prog_compiler_pic_GCJ"; then 16940 16941{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16942echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16943if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16944 echo $ECHO_N "(cached) $ECHO_C" >&6 16945else 16946 lt_prog_compiler_pic_works_GCJ=no 16947 ac_outfile=conftest.$ac_objext 16948 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16949 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16950 # Insert the option either (1) after the last *FLAGS variable, or 16951 # (2) before a word containing "conftest.", or (3) at the end. 16952 # Note that $ac_compile itself does not contain backslashes and begins 16953 # with a dollar sign (not a hyphen), so the echo should work correctly. 16954 # The option is referenced via a variable to avoid confusing sed. 16955 lt_compile=`echo "$ac_compile" | $SED \ 16956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16958 -e 's:$: $lt_compiler_flag:'` 16959 (eval echo "\"\$as_me:16959: $lt_compile\"" >&5) 16960 (eval "$lt_compile" 2>conftest.err) 16961 ac_status=$? 16962 cat conftest.err >&5 16963 echo "$as_me:16963: \$? = $ac_status" >&5 16964 if (exit $ac_status) && test -s "$ac_outfile"; then 16965 # The compiler can only warn and ignore the option if not recognized 16966 # So say no if there are warnings other than the usual output. 16967 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16969 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16970 lt_prog_compiler_pic_works_GCJ=yes 16971 fi 16972 fi 16973 $rm conftest* 16974 16975fi 16976{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16977echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16978 16979if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16980 case $lt_prog_compiler_pic_GCJ in 16981 "" | " "*) ;; 16982 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16983 esac 16984else 16985 lt_prog_compiler_pic_GCJ= 16986 lt_prog_compiler_can_build_shared_GCJ=no 16987fi 16988 16989fi 16990case $host_os in 16991 # For platforms which do not support PIC, -DPIC is meaningless: 16992 *djgpp*) 16993 lt_prog_compiler_pic_GCJ= 16994 ;; 16995 *) 16996 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16997 ;; 16998esac 16999 17000# 17001# Check to make sure the static flag actually works. 17002# 17003wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17004{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17005echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17006if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17007 echo $ECHO_N "(cached) $ECHO_C" >&6 17008else 17009 lt_prog_compiler_static_works_GCJ=no 17010 save_LDFLAGS="$LDFLAGS" 17011 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17012 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17013 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17014 # The linker can only warn and ignore the option if not recognized 17015 # So say no if there are warnings 17016 if test -s conftest.err; then 17017 # Append any errors to the config.log. 17018 cat conftest.err 1>&5 17019 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17021 if diff conftest.exp conftest.er2 >/dev/null; then 17022 lt_prog_compiler_static_works_GCJ=yes 17023 fi 17024 else 17025 lt_prog_compiler_static_works_GCJ=yes 17026 fi 17027 fi 17028 $rm conftest* 17029 LDFLAGS="$save_LDFLAGS" 17030 17031fi 17032{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17033echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17034 17035if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17036 : 17037else 17038 lt_prog_compiler_static_GCJ= 17039fi 17040 17041 17042{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17043echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17044if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17045 echo $ECHO_N "(cached) $ECHO_C" >&6 17046else 17047 lt_cv_prog_compiler_c_o_GCJ=no 17048 $rm -r conftest 2>/dev/null 17049 mkdir conftest 17050 cd conftest 17051 mkdir out 17052 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17053 17054 lt_compiler_flag="-o out/conftest2.$ac_objext" 17055 # Insert the option either (1) after the last *FLAGS variable, or 17056 # (2) before a word containing "conftest.", or (3) at the end. 17057 # Note that $ac_compile itself does not contain backslashes and begins 17058 # with a dollar sign (not a hyphen), so the echo should work correctly. 17059 lt_compile=`echo "$ac_compile" | $SED \ 17060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17062 -e 's:$: $lt_compiler_flag:'` 17063 (eval echo "\"\$as_me:17063: $lt_compile\"" >&5) 17064 (eval "$lt_compile" 2>out/conftest.err) 17065 ac_status=$? 17066 cat out/conftest.err >&5 17067 echo "$as_me:17067: \$? = $ac_status" >&5 17068 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17069 then 17070 # The compiler can only warn and ignore the option if not recognized 17071 # So say no if there are warnings 17072 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17073 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17074 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17075 lt_cv_prog_compiler_c_o_GCJ=yes 17076 fi 17077 fi 17078 chmod u+w . 2>&5 17079 $rm conftest* 17080 # SGI C++ compiler will create directory out/ii_files/ for 17081 # template instantiation 17082 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17083 $rm out/* && rmdir out 17084 cd .. 17085 rmdir conftest 17086 $rm conftest* 17087 17088fi 17089{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17090echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17091 17092 17093hard_links="nottested" 17094if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17095 # do not overwrite the value of need_locks provided by the user 17096 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17097echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17098 hard_links=yes 17099 $rm conftest* 17100 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17101 touch conftest.a 17102 ln conftest.a conftest.b 2>&5 || hard_links=no 17103 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17104 { echo "$as_me:$LINENO: result: $hard_links" >&5 17105echo "${ECHO_T}$hard_links" >&6; } 17106 if test "$hard_links" = no; then 17107 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17108echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17109 need_locks=warn 17110 fi 17111else 17112 need_locks=no 17113fi 17114 17115{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17116echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17117 17118 runpath_var= 17119 allow_undefined_flag_GCJ= 17120 enable_shared_with_static_runtimes_GCJ=no 17121 archive_cmds_GCJ= 17122 archive_expsym_cmds_GCJ= 17123 old_archive_From_new_cmds_GCJ= 17124 old_archive_from_expsyms_cmds_GCJ= 17125 export_dynamic_flag_spec_GCJ= 17126 whole_archive_flag_spec_GCJ= 17127 thread_safe_flag_spec_GCJ= 17128 hardcode_libdir_flag_spec_GCJ= 17129 hardcode_libdir_flag_spec_ld_GCJ= 17130 hardcode_libdir_separator_GCJ= 17131 hardcode_direct_GCJ=no 17132 hardcode_minus_L_GCJ=no 17133 hardcode_shlibpath_var_GCJ=unsupported 17134 link_all_deplibs_GCJ=unknown 17135 hardcode_automatic_GCJ=no 17136 module_cmds_GCJ= 17137 module_expsym_cmds_GCJ= 17138 always_export_symbols_GCJ=no 17139 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17140 # include_expsyms should be a list of space-separated symbols to be *always* 17141 # included in the symbol list 17142 include_expsyms_GCJ= 17143 # exclude_expsyms can be an extended regexp of symbols to exclude 17144 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17145 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17146 # as well as any symbol that contains `d'. 17147 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17148 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17149 # platforms (ab)use it in PIC code, but their linkers get confused if 17150 # the symbol is explicitly referenced. Since portable code cannot 17151 # rely on this symbol name, it's probably fine to never include it in 17152 # preloaded symbol tables. 17153 extract_expsyms_cmds= 17154 # Just being paranoid about ensuring that cc_basename is set. 17155 for cc_temp in $compiler""; do 17156 case $cc_temp in 17157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17159 \-*) ;; 17160 *) break;; 17161 esac 17162done 17163cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17164 17165 case $host_os in 17166 cygwin* | mingw* | pw32*) 17167 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17168 # When not using gcc, we currently assume that we are using 17169 # Microsoft Visual C++. 17170 if test "$GCC" != yes; then 17171 with_gnu_ld=no 17172 fi 17173 ;; 17174 interix*) 17175 # we just hope/assume this is gcc and not c89 (= MSVC++) 17176 with_gnu_ld=yes 17177 ;; 17178 openbsd*) 17179 with_gnu_ld=no 17180 ;; 17181 esac 17182 17183 ld_shlibs_GCJ=yes 17184 if test "$with_gnu_ld" = yes; then 17185 # If archive_cmds runs LD, not CC, wlarc should be empty 17186 wlarc='${wl}' 17187 17188 # Set some defaults for GNU ld with shared library support. These 17189 # are reset later if shared libraries are not supported. Putting them 17190 # here allows them to be overridden if necessary. 17191 runpath_var=LD_RUN_PATH 17192 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17193 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17194 # ancient GNU ld didn't support --whole-archive et. al. 17195 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17196 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17197 else 17198 whole_archive_flag_spec_GCJ= 17199 fi 17200 supports_anon_versioning=no 17201 case `$LD -v 2>/dev/null` in 17202 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17203 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17204 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17205 *\ 2.11.*) ;; # other 2.11 versions 17206 *) supports_anon_versioning=yes ;; 17207 esac 17208 17209 # See if GNU ld supports shared libraries. 17210 case $host_os in 17211 aix3* | aix4* | aix5*) 17212 # On AIX/PPC, the GNU linker is very broken 17213 if test "$host_cpu" != ia64; then 17214 ld_shlibs_GCJ=no 17215 cat <<EOF 1>&2 17216 17217*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17218*** to be unable to reliably create shared libraries on AIX. 17219*** Therefore, libtool is disabling shared libraries support. If you 17220*** really care for shared libraries, you may want to modify your PATH 17221*** so that a non-GNU linker is found, and then restart. 17222 17223EOF 17224 fi 17225 ;; 17226 17227 amigaos*) 17228 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)' 17229 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17230 hardcode_minus_L_GCJ=yes 17231 17232 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17233 # that the semantics of dynamic libraries on AmigaOS, at least up 17234 # to version 4, is to share data among multiple programs linked 17235 # with the same dynamic library. Since this doesn't match the 17236 # behavior of shared libraries on other platforms, we can't use 17237 # them. 17238 ld_shlibs_GCJ=no 17239 ;; 17240 17241 beos*) 17242 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17243 allow_undefined_flag_GCJ=unsupported 17244 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17245 # support --undefined. This deserves some investigation. FIXME 17246 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17247 else 17248 ld_shlibs_GCJ=no 17249 fi 17250 ;; 17251 17252 cygwin* | mingw* | pw32*) 17253 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17254 # as there is no search path for DLLs. 17255 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17256 allow_undefined_flag_GCJ=unsupported 17257 always_export_symbols_GCJ=no 17258 enable_shared_with_static_runtimes_GCJ=yes 17259 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17260 17261 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17262 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17263 # If the export-symbols file already is a .def file (1st line 17264 # is EXPORTS), use it as is; otherwise, prepend... 17265 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17266 cp $export_symbols $output_objdir/$soname.def; 17267 else 17268 echo EXPORTS > $output_objdir/$soname.def; 17269 cat $export_symbols >> $output_objdir/$soname.def; 17270 fi~ 17271 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17272 else 17273 ld_shlibs_GCJ=no 17274 fi 17275 ;; 17276 17277 interix3*) 17278 hardcode_direct_GCJ=no 17279 hardcode_shlibpath_var_GCJ=no 17280 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17281 export_dynamic_flag_spec_GCJ='${wl}-E' 17282 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17283 # Instead, shared libraries are loaded at an image base (0x10000000 by 17284 # default) and relocated if they conflict, which is a slow very memory 17285 # consuming and fragmenting process. To avoid this, we pick a random, 17286 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17287 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17288 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' 17289 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' 17290 ;; 17291 17292 linux* | k*bsd*-gnu) 17293 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17294 tmp_addflag= 17295 case $cc_basename,$host_cpu in 17296 pgcc*) # Portland Group C compiler 17297 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17298 tmp_addflag=' $pic_flag' 17299 ;; 17300 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17301 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' 17302 tmp_addflag=' $pic_flag -Mnomain' ;; 17303 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17304 tmp_addflag=' -i_dynamic' ;; 17305 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17306 tmp_addflag=' -i_dynamic -nofor_main' ;; 17307 ifc* | ifort*) # Intel Fortran compiler 17308 tmp_addflag=' -nofor_main' ;; 17309 esac 17310 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17311 17312 if test $supports_anon_versioning = yes; then 17313 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17314 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17315 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17316 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17317 fi 17318 link_all_deplibs_GCJ=no 17319 else 17320 ld_shlibs_GCJ=no 17321 fi 17322 ;; 17323 17324 netbsd* | netbsdelf*-gnu) 17325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17326 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17327 wlarc= 17328 else 17329 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17330 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17331 fi 17332 ;; 17333 17334 solaris*) 17335 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17336 ld_shlibs_GCJ=no 17337 cat <<EOF 1>&2 17338 17339*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17340*** create shared libraries on Solaris systems. Therefore, libtool 17341*** is disabling shared libraries support. We urge you to upgrade GNU 17342*** binutils to release 2.9.1 or newer. Another option is to modify 17343*** your PATH or compiler configuration so that the native linker is 17344*** used, and then restart. 17345 17346EOF 17347 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17348 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17349 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17350 else 17351 ld_shlibs_GCJ=no 17352 fi 17353 ;; 17354 17355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17356 case `$LD -v 2>&1` in 17357 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17358 ld_shlibs_GCJ=no 17359 cat <<_LT_EOF 1>&2 17360 17361*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17362*** reliably create shared libraries on SCO systems. Therefore, libtool 17363*** is disabling shared libraries support. We urge you to upgrade GNU 17364*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17365*** your PATH or compiler configuration so that the native linker is 17366*** used, and then restart. 17367 17368_LT_EOF 17369 ;; 17370 *) 17371 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17372 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17373 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17374 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17375 else 17376 ld_shlibs_GCJ=no 17377 fi 17378 ;; 17379 esac 17380 ;; 17381 17382 sunos4*) 17383 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17384 wlarc= 17385 hardcode_direct_GCJ=yes 17386 hardcode_shlibpath_var_GCJ=no 17387 ;; 17388 17389 *) 17390 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17391 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17392 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17393 else 17394 ld_shlibs_GCJ=no 17395 fi 17396 ;; 17397 esac 17398 17399 if test "$ld_shlibs_GCJ" = no; then 17400 runpath_var= 17401 hardcode_libdir_flag_spec_GCJ= 17402 export_dynamic_flag_spec_GCJ= 17403 whole_archive_flag_spec_GCJ= 17404 fi 17405 else 17406 # PORTME fill in a description of your system's linker (not GNU ld) 17407 case $host_os in 17408 aix3*) 17409 allow_undefined_flag_GCJ=unsupported 17410 always_export_symbols_GCJ=yes 17411 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' 17412 # Note: this linker hardcodes the directories in LIBPATH if there 17413 # are no directories specified by -L. 17414 hardcode_minus_L_GCJ=yes 17415 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17416 # Neither direct hardcoding nor static linking is supported with a 17417 # broken collect2. 17418 hardcode_direct_GCJ=unsupported 17419 fi 17420 ;; 17421 17422 aix4* | aix5*) 17423 if test "$host_cpu" = ia64; then 17424 # On IA64, the linker does run time linking by default, so we don't 17425 # have to do anything special. 17426 aix_use_runtimelinking=no 17427 exp_sym_flag='-Bexport' 17428 no_entry_flag="" 17429 else 17430 # If we're using GNU nm, then we don't want the "-C" option. 17431 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17432 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17433 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' 17434 else 17435 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' 17436 fi 17437 aix_use_runtimelinking=no 17438 17439 # Test if we are trying to use run time linking or normal 17440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17441 # need to do runtime linking. 17442 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17443 for ld_flag in $LDFLAGS; do 17444 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17445 aix_use_runtimelinking=yes 17446 break 17447 fi 17448 done 17449 ;; 17450 esac 17451 17452 exp_sym_flag='-bexport' 17453 no_entry_flag='-bnoentry' 17454 fi 17455 17456 # When large executables or shared objects are built, AIX ld can 17457 # have problems creating the table of contents. If linking a library 17458 # or program results in "error TOC overflow" add -mminimal-toc to 17459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17461 17462 archive_cmds_GCJ='' 17463 hardcode_direct_GCJ=yes 17464 hardcode_libdir_separator_GCJ=':' 17465 link_all_deplibs_GCJ=yes 17466 17467 if test "$GCC" = yes; then 17468 case $host_os in aix4.[012]|aix4.[012].*) 17469 # We only want to do this on AIX 4.2 and lower, the check 17470 # below for broken collect2 doesn't work under 4.3+ 17471 collect2name=`${CC} -print-prog-name=collect2` 17472 if test -f "$collect2name" && \ 17473 strings "$collect2name" | grep resolve_lib_name >/dev/null 17474 then 17475 # We have reworked collect2 17476 hardcode_direct_GCJ=yes 17477 else 17478 # We have old collect2 17479 hardcode_direct_GCJ=unsupported 17480 # It fails to find uninstalled libraries when the uninstalled 17481 # path is not listed in the libpath. Setting hardcode_minus_L 17482 # to unsupported forces relinking 17483 hardcode_minus_L_GCJ=yes 17484 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17485 hardcode_libdir_separator_GCJ= 17486 fi 17487 ;; 17488 esac 17489 shared_flag='-shared' 17490 if test "$aix_use_runtimelinking" = yes; then 17491 shared_flag="$shared_flag "'${wl}-G' 17492 fi 17493 else 17494 # not using gcc 17495 if test "$host_cpu" = ia64; then 17496 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17497 # chokes on -Wl,-G. The following line is correct: 17498 shared_flag='-G' 17499 else 17500 if test "$aix_use_runtimelinking" = yes; then 17501 shared_flag='${wl}-G' 17502 else 17503 shared_flag='${wl}-bM:SRE' 17504 fi 17505 fi 17506 fi 17507 17508 # It seems that -bexpall does not export symbols beginning with 17509 # underscore (_), so it is better to generate a list of symbols to export. 17510 always_export_symbols_GCJ=yes 17511 if test "$aix_use_runtimelinking" = yes; then 17512 # Warning - without using the other runtime loading flags (-brtl), 17513 # -berok will link without error, but may produce a broken library. 17514 allow_undefined_flag_GCJ='-berok' 17515 # Determine the default libpath from the value encoded in an empty executable. 17516 cat >conftest.$ac_ext <<_ACEOF 17517/* confdefs.h. */ 17518_ACEOF 17519cat confdefs.h >>conftest.$ac_ext 17520cat >>conftest.$ac_ext <<_ACEOF 17521/* end confdefs.h. */ 17522 17523int 17524main () 17525{ 17526 17527 ; 17528 return 0; 17529} 17530_ACEOF 17531rm -f conftest.$ac_objext conftest$ac_exeext 17532if { (ac_try="$ac_link" 17533case "(($ac_try" in 17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17535 *) ac_try_echo=$ac_try;; 17536esac 17537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17538 (eval "$ac_link") 2>conftest.er1 17539 ac_status=$? 17540 grep -v '^ *+' conftest.er1 >conftest.err 17541 rm -f conftest.er1 17542 cat conftest.err >&5 17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17544 (exit $ac_status); } && 17545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17546 { (case "(($ac_try" in 17547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17548 *) ac_try_echo=$ac_try;; 17549esac 17550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17551 (eval "$ac_try") 2>&5 17552 ac_status=$? 17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17554 (exit $ac_status); }; } && 17555 { ac_try='test -s conftest$ac_exeext' 17556 { (case "(($ac_try" in 17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17558 *) ac_try_echo=$ac_try;; 17559esac 17560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17561 (eval "$ac_try") 2>&5 17562 ac_status=$? 17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17564 (exit $ac_status); }; }; then 17565 17566aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17567}'` 17568# Check for a 64-bit object if we didn't find anything. 17569if 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; } 17570}'`; fi 17571else 17572 echo "$as_me: failed program was:" >&5 17573sed 's/^/| /' conftest.$ac_ext >&5 17574 17575 17576fi 17577 17578rm -f core conftest.err conftest.$ac_objext \ 17579 conftest$ac_exeext conftest.$ac_ext 17580if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17581 17582 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17583 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" 17584 else 17585 if test "$host_cpu" = ia64; then 17586 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17587 allow_undefined_flag_GCJ="-z nodefs" 17588 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" 17589 else 17590 # Determine the default libpath from the value encoded in an empty executable. 17591 cat >conftest.$ac_ext <<_ACEOF 17592/* confdefs.h. */ 17593_ACEOF 17594cat confdefs.h >>conftest.$ac_ext 17595cat >>conftest.$ac_ext <<_ACEOF 17596/* end confdefs.h. */ 17597 17598int 17599main () 17600{ 17601 17602 ; 17603 return 0; 17604} 17605_ACEOF 17606rm -f conftest.$ac_objext conftest$ac_exeext 17607if { (ac_try="$ac_link" 17608case "(($ac_try" in 17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17610 *) ac_try_echo=$ac_try;; 17611esac 17612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17613 (eval "$ac_link") 2>conftest.er1 17614 ac_status=$? 17615 grep -v '^ *+' conftest.er1 >conftest.err 17616 rm -f conftest.er1 17617 cat conftest.err >&5 17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17619 (exit $ac_status); } && 17620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17621 { (case "(($ac_try" in 17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17623 *) ac_try_echo=$ac_try;; 17624esac 17625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17626 (eval "$ac_try") 2>&5 17627 ac_status=$? 17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17629 (exit $ac_status); }; } && 17630 { ac_try='test -s conftest$ac_exeext' 17631 { (case "(($ac_try" in 17632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17633 *) ac_try_echo=$ac_try;; 17634esac 17635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17636 (eval "$ac_try") 2>&5 17637 ac_status=$? 17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17639 (exit $ac_status); }; }; then 17640 17641aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17642}'` 17643# Check for a 64-bit object if we didn't find anything. 17644if 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; } 17645}'`; fi 17646else 17647 echo "$as_me: failed program was:" >&5 17648sed 's/^/| /' conftest.$ac_ext >&5 17649 17650 17651fi 17652 17653rm -f core conftest.err conftest.$ac_objext \ 17654 conftest$ac_exeext conftest.$ac_ext 17655if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17656 17657 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17658 # Warning - without using the other run time loading flags, 17659 # -berok will link without error, but may produce a broken library. 17660 no_undefined_flag_GCJ=' ${wl}-bernotok' 17661 allow_undefined_flag_GCJ=' ${wl}-berok' 17662 # Exported symbols can be pulled into shared objects from archives 17663 whole_archive_flag_spec_GCJ='$convenience' 17664 archive_cmds_need_lc_GCJ=yes 17665 # This is similar to how AIX traditionally builds its shared libraries. 17666 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' 17667 fi 17668 fi 17669 ;; 17670 17671 amigaos*) 17672 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)' 17673 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17674 hardcode_minus_L_GCJ=yes 17675 # see comment about different semantics on the GNU ld section 17676 ld_shlibs_GCJ=no 17677 ;; 17678 17679 bsdi[45]*) 17680 export_dynamic_flag_spec_GCJ=-rdynamic 17681 ;; 17682 17683 cygwin* | mingw* | pw32*) 17684 # When not using gcc, we currently assume that we are using 17685 # Microsoft Visual C++. 17686 # hardcode_libdir_flag_spec is actually meaningless, as there is 17687 # no search path for DLLs. 17688 hardcode_libdir_flag_spec_GCJ=' ' 17689 allow_undefined_flag_GCJ=unsupported 17690 # Tell ltmain to make .lib files, not .a files. 17691 libext=lib 17692 # Tell ltmain to make .dll files, not .so files. 17693 shrext_cmds=".dll" 17694 # FIXME: Setting linknames here is a bad hack. 17695 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17696 # The linker will automatically build a .lib file if we build a DLL. 17697 old_archive_From_new_cmds_GCJ='true' 17698 # FIXME: Should let the user specify the lib program. 17699 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17700 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17701 enable_shared_with_static_runtimes_GCJ=yes 17702 ;; 17703 17704 darwin* | rhapsody*) 17705 case $host_os in 17706 rhapsody* | darwin1.[012]) 17707 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17708 ;; 17709 *) # Darwin 1.3 on 17710 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17711 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17712 else 17713 case ${MACOSX_DEPLOYMENT_TARGET} in 17714 10.[012]) 17715 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17716 ;; 17717 10.*) 17718 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17719 ;; 17720 esac 17721 fi 17722 ;; 17723 esac 17724 archive_cmds_need_lc_GCJ=no 17725 hardcode_direct_GCJ=no 17726 hardcode_automatic_GCJ=yes 17727 hardcode_shlibpath_var_GCJ=unsupported 17728 whole_archive_flag_spec_GCJ='' 17729 link_all_deplibs_GCJ=yes 17730 if test "$GCC" = yes ; then 17731 output_verbose_link_cmd='echo' 17732 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17733 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17734 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17735 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}' 17736 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}' 17737 else 17738 case $cc_basename in 17739 xlc*) 17740 output_verbose_link_cmd='echo' 17741 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17742 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17743 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17744 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}' 17745 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}' 17746 ;; 17747 *) 17748 ld_shlibs_GCJ=no 17749 ;; 17750 esac 17751 fi 17752 ;; 17753 17754 dgux*) 17755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17756 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17757 hardcode_shlibpath_var_GCJ=no 17758 ;; 17759 17760 freebsd1*) 17761 ld_shlibs_GCJ=no 17762 ;; 17763 17764 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17765 # support. Future versions do this automatically, but an explicit c++rt0.o 17766 # does not break anything, and helps significantly (at the cost of a little 17767 # extra space). 17768 freebsd2.2*) 17769 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17770 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17771 hardcode_direct_GCJ=yes 17772 hardcode_shlibpath_var_GCJ=no 17773 ;; 17774 17775 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17776 freebsd2*) 17777 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17778 hardcode_direct_GCJ=yes 17779 hardcode_minus_L_GCJ=yes 17780 hardcode_shlibpath_var_GCJ=no 17781 ;; 17782 17783 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17784 freebsd* | dragonfly*) 17785 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17786 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17787 hardcode_direct_GCJ=yes 17788 hardcode_shlibpath_var_GCJ=no 17789 ;; 17790 17791 hpux9*) 17792 if test "$GCC" = yes; then 17793 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' 17794 else 17795 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' 17796 fi 17797 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17798 hardcode_libdir_separator_GCJ=: 17799 hardcode_direct_GCJ=yes 17800 17801 # hardcode_minus_L: Not really in the search PATH, 17802 # but as the default location of the library. 17803 hardcode_minus_L_GCJ=yes 17804 export_dynamic_flag_spec_GCJ='${wl}-E' 17805 ;; 17806 17807 hpux10*) 17808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17809 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17810 else 17811 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17812 fi 17813 if test "$with_gnu_ld" = no; then 17814 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17815 hardcode_libdir_separator_GCJ=: 17816 17817 hardcode_direct_GCJ=yes 17818 export_dynamic_flag_spec_GCJ='${wl}-E' 17819 17820 # hardcode_minus_L: Not really in the search PATH, 17821 # but as the default location of the library. 17822 hardcode_minus_L_GCJ=yes 17823 fi 17824 ;; 17825 17826 hpux11*) 17827 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17828 case $host_cpu in 17829 hppa*64*) 17830 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17831 ;; 17832 ia64*) 17833 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17834 ;; 17835 *) 17836 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17837 ;; 17838 esac 17839 else 17840 case $host_cpu in 17841 hppa*64*) 17842 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17843 ;; 17844 ia64*) 17845 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17846 ;; 17847 *) 17848 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17849 ;; 17850 esac 17851 fi 17852 if test "$with_gnu_ld" = no; then 17853 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17854 hardcode_libdir_separator_GCJ=: 17855 17856 case $host_cpu in 17857 hppa*64*|ia64*) 17858 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17859 hardcode_direct_GCJ=no 17860 hardcode_shlibpath_var_GCJ=no 17861 ;; 17862 *) 17863 hardcode_direct_GCJ=yes 17864 export_dynamic_flag_spec_GCJ='${wl}-E' 17865 17866 # hardcode_minus_L: Not really in the search PATH, 17867 # but as the default location of the library. 17868 hardcode_minus_L_GCJ=yes 17869 ;; 17870 esac 17871 fi 17872 ;; 17873 17874 irix5* | irix6* | nonstopux*) 17875 if test "$GCC" = yes; then 17876 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' 17877 else 17878 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' 17879 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17880 fi 17881 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17882 hardcode_libdir_separator_GCJ=: 17883 link_all_deplibs_GCJ=yes 17884 ;; 17885 17886 netbsd* | netbsdelf*-gnu) 17887 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17888 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17889 else 17890 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17891 fi 17892 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17893 hardcode_direct_GCJ=yes 17894 hardcode_shlibpath_var_GCJ=no 17895 ;; 17896 17897 newsos6) 17898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17899 hardcode_direct_GCJ=yes 17900 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17901 hardcode_libdir_separator_GCJ=: 17902 hardcode_shlibpath_var_GCJ=no 17903 ;; 17904 17905 openbsd*) 17906 hardcode_direct_GCJ=yes 17907 hardcode_shlibpath_var_GCJ=no 17908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17909 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17910 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17911 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17912 export_dynamic_flag_spec_GCJ='${wl}-E' 17913 else 17914 case $host_os in 17915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17916 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17917 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17918 ;; 17919 *) 17920 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17921 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17922 ;; 17923 esac 17924 fi 17925 ;; 17926 17927 os2*) 17928 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17929 hardcode_minus_L_GCJ=yes 17930 allow_undefined_flag_GCJ=unsupported 17931 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' 17932 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17933 ;; 17934 17935 osf3*) 17936 if test "$GCC" = yes; then 17937 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17938 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' 17939 else 17940 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17941 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' 17942 fi 17943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17944 hardcode_libdir_separator_GCJ=: 17945 ;; 17946 17947 osf4* | osf5*) # as osf3* with the addition of -msym flag 17948 if test "$GCC" = yes; then 17949 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17950 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' 17951 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17952 else 17953 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17954 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' 17955 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~ 17956 $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' 17957 17958 # Both c and cxx compiler support -rpath directly 17959 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17960 fi 17961 hardcode_libdir_separator_GCJ=: 17962 ;; 17963 17964 solaris*) 17965 no_undefined_flag_GCJ=' -z text' 17966 if test "$GCC" = yes; then 17967 wlarc='${wl}' 17968 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17969 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17970 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17971 else 17972 wlarc='' 17973 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17974 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17976 fi 17977 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17978 hardcode_shlibpath_var_GCJ=no 17979 case $host_os in 17980 solaris2.[0-5] | solaris2.[0-5].*) ;; 17981 *) 17982 # The compiler driver will combine linker options so we 17983 # cannot just pass the convience library names through 17984 # without $wl, iff we do not link with $LD. 17985 # Luckily, gcc supports the same syntax we need for Sun Studio. 17986 # Supported since Solaris 2.6 (maybe 2.5.1?) 17987 case $wlarc in 17988 '') 17989 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17990 *) 17991 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' ;; 17992 esac ;; 17993 esac 17994 link_all_deplibs_GCJ=yes 17995 ;; 17996 17997 sunos4*) 17998 if test "x$host_vendor" = xsequent; then 17999 # Use $CC to link under sequent, because it throws in some extra .o 18000 # files that make .init and .fini sections work. 18001 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18002 else 18003 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18004 fi 18005 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18006 hardcode_direct_GCJ=yes 18007 hardcode_minus_L_GCJ=yes 18008 hardcode_shlibpath_var_GCJ=no 18009 ;; 18010 18011 sysv4) 18012 case $host_vendor in 18013 sni) 18014 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18015 hardcode_direct_GCJ=yes # is this really true??? 18016 ;; 18017 siemens) 18018 ## LD is ld it makes a PLAMLIB 18019 ## CC just makes a GrossModule. 18020 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18021 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18022 hardcode_direct_GCJ=no 18023 ;; 18024 motorola) 18025 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18026 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18027 ;; 18028 esac 18029 runpath_var='LD_RUN_PATH' 18030 hardcode_shlibpath_var_GCJ=no 18031 ;; 18032 18033 sysv4.3*) 18034 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18035 hardcode_shlibpath_var_GCJ=no 18036 export_dynamic_flag_spec_GCJ='-Bexport' 18037 ;; 18038 18039 sysv4*MP*) 18040 if test -d /usr/nec; then 18041 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18042 hardcode_shlibpath_var_GCJ=no 18043 runpath_var=LD_RUN_PATH 18044 hardcode_runpath_var=yes 18045 ld_shlibs_GCJ=yes 18046 fi 18047 ;; 18048 18049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18050 no_undefined_flag_GCJ='${wl}-z,text' 18051 archive_cmds_need_lc_GCJ=no 18052 hardcode_shlibpath_var_GCJ=no 18053 runpath_var='LD_RUN_PATH' 18054 18055 if test "$GCC" = yes; then 18056 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18057 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18058 else 18059 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18060 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18061 fi 18062 ;; 18063 18064 sysv5* | sco3.2v5* | sco5v6*) 18065 # Note: We can NOT use -z defs as we might desire, because we do not 18066 # link with -lc, and that would cause any symbols used from libc to 18067 # always be unresolved, which means just about no library would 18068 # ever link correctly. If we're not using GNU ld we use -z text 18069 # though, which does catch some bad symbols but isn't as heavy-handed 18070 # as -z defs. 18071 no_undefined_flag_GCJ='${wl}-z,text' 18072 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18073 archive_cmds_need_lc_GCJ=no 18074 hardcode_shlibpath_var_GCJ=no 18075 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18076 hardcode_libdir_separator_GCJ=':' 18077 link_all_deplibs_GCJ=yes 18078 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18079 runpath_var='LD_RUN_PATH' 18080 18081 if test "$GCC" = yes; then 18082 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18083 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18084 else 18085 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18086 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18087 fi 18088 ;; 18089 18090 uts4*) 18091 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18092 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18093 hardcode_shlibpath_var_GCJ=no 18094 ;; 18095 18096 *) 18097 ld_shlibs_GCJ=no 18098 ;; 18099 esac 18100 fi 18101 18102{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18103echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18104test "$ld_shlibs_GCJ" = no && can_build_shared=no 18105 18106# 18107# Do we need to explicitly link libc? 18108# 18109case "x$archive_cmds_need_lc_GCJ" in 18110x|xyes) 18111 # Assume -lc should be added 18112 archive_cmds_need_lc_GCJ=yes 18113 18114 if test "$enable_shared" = yes && test "$GCC" = yes; then 18115 case $archive_cmds_GCJ in 18116 *'~'*) 18117 # FIXME: we may have to deal with multi-command sequences. 18118 ;; 18119 '$CC '*) 18120 # Test whether the compiler implicitly links with -lc since on some 18121 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18122 # to ld, don't add -lc before -lgcc. 18123 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18124echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18125 $rm conftest* 18126 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18127 18128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18129 (eval $ac_compile) 2>&5 18130 ac_status=$? 18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18132 (exit $ac_status); } 2>conftest.err; then 18133 soname=conftest 18134 lib=conftest 18135 libobjs=conftest.$ac_objext 18136 deplibs= 18137 wl=$lt_prog_compiler_wl_GCJ 18138 pic_flag=$lt_prog_compiler_pic_GCJ 18139 compiler_flags=-v 18140 linker_flags=-v 18141 verstring= 18142 output_objdir=. 18143 libname=conftest 18144 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18145 allow_undefined_flag_GCJ= 18146 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18147 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18148 ac_status=$? 18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18150 (exit $ac_status); } 18151 then 18152 archive_cmds_need_lc_GCJ=no 18153 else 18154 archive_cmds_need_lc_GCJ=yes 18155 fi 18156 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18157 else 18158 cat conftest.err 1>&5 18159 fi 18160 $rm conftest* 18161 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18162echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18163 ;; 18164 esac 18165 fi 18166 ;; 18167esac 18168 18169{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18170echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18171library_names_spec= 18172libname_spec='lib$name' 18173soname_spec= 18174shrext_cmds=".so" 18175postinstall_cmds= 18176postuninstall_cmds= 18177finish_cmds= 18178finish_eval= 18179shlibpath_var= 18180shlibpath_overrides_runpath=unknown 18181version_type=none 18182dynamic_linker="$host_os ld.so" 18183sys_lib_dlsearch_path_spec="/lib /usr/lib" 18184if test "$GCC" = yes; then 18185 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18186 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18187 # if the path contains ";" then we assume it to be the separator 18188 # otherwise default to the standard path separator (i.e. ":") - it is 18189 # assumed that no part of a normal pathname contains ";" but that should 18190 # okay in the real world where ";" in dirpaths is itself problematic. 18191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18192 else 18193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18194 fi 18195else 18196 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18197fi 18198need_lib_prefix=unknown 18199hardcode_into_libs=no 18200 18201# when you set need_version to no, make sure it does not cause -set_version 18202# flags to be left without arguments 18203need_version=unknown 18204 18205case $host_os in 18206aix3*) 18207 version_type=linux 18208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18209 shlibpath_var=LIBPATH 18210 18211 # AIX 3 has no versioning support, so we append a major version to the name. 18212 soname_spec='${libname}${release}${shared_ext}$major' 18213 ;; 18214 18215aix4* | aix5*) 18216 version_type=linux 18217 need_lib_prefix=no 18218 need_version=no 18219 hardcode_into_libs=yes 18220 if test "$host_cpu" = ia64; then 18221 # AIX 5 supports IA64 18222 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18223 shlibpath_var=LD_LIBRARY_PATH 18224 else 18225 # With GCC up to 2.95.x, collect2 would create an import file 18226 # for dependence libraries. The import file would start with 18227 # the line `#! .'. This would cause the generated library to 18228 # depend on `.', always an invalid library. This was fixed in 18229 # development snapshots of GCC prior to 3.0. 18230 case $host_os in 18231 aix4 | aix4.[01] | aix4.[01].*) 18232 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18233 echo ' yes ' 18234 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18235 : 18236 else 18237 can_build_shared=no 18238 fi 18239 ;; 18240 esac 18241 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18242 # soname into executable. Probably we can add versioning support to 18243 # collect2, so additional links can be useful in future. 18244 if test "$aix_use_runtimelinking" = yes; then 18245 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18246 # instead of lib<name>.a to let people know that these are not 18247 # typical AIX shared libraries. 18248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18249 else 18250 # We preserve .a as extension for shared libraries through AIX4.2 18251 # and later when we are not doing run time linking. 18252 library_names_spec='${libname}${release}.a $libname.a' 18253 soname_spec='${libname}${release}${shared_ext}$major' 18254 fi 18255 shlibpath_var=LIBPATH 18256 fi 18257 ;; 18258 18259amigaos*) 18260 library_names_spec='$libname.ixlibrary $libname.a' 18261 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18262 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' 18263 ;; 18264 18265beos*) 18266 library_names_spec='${libname}${shared_ext}' 18267 dynamic_linker="$host_os ld.so" 18268 shlibpath_var=LIBRARY_PATH 18269 ;; 18270 18271bsdi[45]*) 18272 version_type=linux 18273 need_version=no 18274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18275 soname_spec='${libname}${release}${shared_ext}$major' 18276 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18277 shlibpath_var=LD_LIBRARY_PATH 18278 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18279 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18280 # the default ld.so.conf also contains /usr/contrib/lib and 18281 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18282 # libtool to hard-code these into programs 18283 ;; 18284 18285cygwin* | mingw* | pw32*) 18286 version_type=windows 18287 shrext_cmds=".dll" 18288 need_version=no 18289 need_lib_prefix=no 18290 18291 case $GCC,$host_os in 18292 yes,cygwin* | yes,mingw* | yes,pw32*) 18293 library_names_spec='$libname.dll.a' 18294 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18295 postinstall_cmds='base_file=`basename \${file}`~ 18296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18297 dldir=$destdir/`dirname \$dlpath`~ 18298 test -d \$dldir || mkdir -p \$dldir~ 18299 $install_prog $dir/$dlname \$dldir/$dlname~ 18300 chmod a+x \$dldir/$dlname' 18301 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18302 dlpath=$dir/\$dldll~ 18303 $rm \$dlpath' 18304 shlibpath_overrides_runpath=yes 18305 18306 case $host_os in 18307 cygwin*) 18308 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18309 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18310 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18311 ;; 18312 mingw*) 18313 # MinGW DLLs use traditional 'lib' prefix 18314 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18315 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18316 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18317 # It is most probably a Windows format PATH printed by 18318 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18319 # path with ; separators, and with drive letters. We can handle the 18320 # drive letters (cygwin fileutils understands them), so leave them, 18321 # especially as we might pass files found there to a mingw objdump, 18322 # which wouldn't understand a cygwinified path. Ahh. 18323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18324 else 18325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18326 fi 18327 ;; 18328 pw32*) 18329 # pw32 DLLs use 'pw' prefix rather than 'lib' 18330 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18331 ;; 18332 esac 18333 ;; 18334 18335 *) 18336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18337 ;; 18338 esac 18339 dynamic_linker='Win32 ld.exe' 18340 # FIXME: first we should search . and the directory the executable is in 18341 shlibpath_var=PATH 18342 ;; 18343 18344darwin* | rhapsody*) 18345 dynamic_linker="$host_os dyld" 18346 version_type=darwin 18347 need_lib_prefix=no 18348 need_version=no 18349 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18350 soname_spec='${libname}${release}${major}$shared_ext' 18351 shlibpath_overrides_runpath=yes 18352 shlibpath_var=DYLD_LIBRARY_PATH 18353 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18354 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18355 if test "$GCC" = yes; then 18356 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"` 18357 else 18358 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18359 fi 18360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18361 ;; 18362 18363dgux*) 18364 version_type=linux 18365 need_lib_prefix=no 18366 need_version=no 18367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18368 soname_spec='${libname}${release}${shared_ext}$major' 18369 shlibpath_var=LD_LIBRARY_PATH 18370 ;; 18371 18372freebsd1*) 18373 dynamic_linker=no 18374 ;; 18375 18376freebsd* | dragonfly*) 18377 # DragonFly does not have aout. When/if they implement a new 18378 # versioning mechanism, adjust this. 18379 if test -x /usr/bin/objformat; then 18380 objformat=`/usr/bin/objformat` 18381 else 18382 case $host_os in 18383 freebsd[123]*) objformat=aout ;; 18384 *) objformat=elf ;; 18385 esac 18386 fi 18387 version_type=freebsd-$objformat 18388 case $version_type in 18389 freebsd-elf*) 18390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18391 need_version=no 18392 need_lib_prefix=no 18393 ;; 18394 freebsd-*) 18395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18396 need_version=yes 18397 ;; 18398 esac 18399 shlibpath_var=LD_LIBRARY_PATH 18400 case $host_os in 18401 freebsd2*) 18402 shlibpath_overrides_runpath=yes 18403 ;; 18404 freebsd3.[01]* | freebsdelf3.[01]*) 18405 shlibpath_overrides_runpath=yes 18406 hardcode_into_libs=yes 18407 ;; 18408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18410 shlibpath_overrides_runpath=no 18411 hardcode_into_libs=yes 18412 ;; 18413 freebsd*) # from 4.6 on 18414 shlibpath_overrides_runpath=yes 18415 hardcode_into_libs=yes 18416 ;; 18417 esac 18418 ;; 18419 18420gnu*) 18421 version_type=linux 18422 need_lib_prefix=no 18423 need_version=no 18424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18425 soname_spec='${libname}${release}${shared_ext}$major' 18426 shlibpath_var=LD_LIBRARY_PATH 18427 hardcode_into_libs=yes 18428 ;; 18429 18430hpux9* | hpux10* | hpux11*) 18431 # Give a soname corresponding to the major version so that dld.sl refuses to 18432 # link against other versions. 18433 version_type=sunos 18434 need_lib_prefix=no 18435 need_version=no 18436 case $host_cpu in 18437 ia64*) 18438 shrext_cmds='.so' 18439 hardcode_into_libs=yes 18440 dynamic_linker="$host_os dld.so" 18441 shlibpath_var=LD_LIBRARY_PATH 18442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18444 soname_spec='${libname}${release}${shared_ext}$major' 18445 if test "X$HPUX_IA64_MODE" = X32; then 18446 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18447 else 18448 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18449 fi 18450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18451 ;; 18452 hppa*64*) 18453 shrext_cmds='.sl' 18454 hardcode_into_libs=yes 18455 dynamic_linker="$host_os dld.sl" 18456 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18459 soname_spec='${libname}${release}${shared_ext}$major' 18460 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18462 ;; 18463 *) 18464 shrext_cmds='.sl' 18465 dynamic_linker="$host_os dld.sl" 18466 shlibpath_var=SHLIB_PATH 18467 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18469 soname_spec='${libname}${release}${shared_ext}$major' 18470 ;; 18471 esac 18472 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18473 postinstall_cmds='chmod 555 $lib' 18474 ;; 18475 18476interix3*) 18477 version_type=linux 18478 need_lib_prefix=no 18479 need_version=no 18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18481 soname_spec='${libname}${release}${shared_ext}$major' 18482 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18483 shlibpath_var=LD_LIBRARY_PATH 18484 shlibpath_overrides_runpath=no 18485 hardcode_into_libs=yes 18486 ;; 18487 18488irix5* | irix6* | nonstopux*) 18489 case $host_os in 18490 nonstopux*) version_type=nonstopux ;; 18491 *) 18492 if test "$lt_cv_prog_gnu_ld" = yes; then 18493 version_type=linux 18494 else 18495 version_type=irix 18496 fi ;; 18497 esac 18498 need_lib_prefix=no 18499 need_version=no 18500 soname_spec='${libname}${release}${shared_ext}$major' 18501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18502 case $host_os in 18503 irix5* | nonstopux*) 18504 libsuff= shlibsuff= 18505 ;; 18506 *) 18507 case $LD in # libtool.m4 will add one of these switches to LD 18508 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18509 libsuff= shlibsuff= libmagic=32-bit;; 18510 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18511 libsuff=32 shlibsuff=N32 libmagic=N32;; 18512 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18513 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18514 *) libsuff= shlibsuff= libmagic=never-match;; 18515 esac 18516 ;; 18517 esac 18518 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18519 shlibpath_overrides_runpath=no 18520 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18521 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18522 hardcode_into_libs=yes 18523 ;; 18524 18525# No shared lib support for Linux oldld, aout, or coff. 18526linux*oldld* | linux*aout* | linux*coff*) 18527 dynamic_linker=no 18528 ;; 18529 18530# This must be Linux ELF. 18531linux* | k*bsd*-gnu) 18532 version_type=linux 18533 need_lib_prefix=no 18534 need_version=no 18535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18536 soname_spec='${libname}${release}${shared_ext}$major' 18537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18538 shlibpath_var=LD_LIBRARY_PATH 18539 shlibpath_overrides_runpath=no 18540 # This implies no fast_install, which is unacceptable. 18541 # Some rework will be needed to allow for fast_install 18542 # before this can be enabled. 18543 hardcode_into_libs=yes 18544 18545 # Append ld.so.conf contents to the search path 18546 if test -f /etc/ld.so.conf; then 18547 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' ' '` 18548 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18549 fi 18550 18551 # We used to test for /lib/ld.so.1 and disable shared libraries on 18552 # powerpc, because MkLinux only supported shared libraries with the 18553 # GNU dynamic linker. Since this was broken with cross compilers, 18554 # most powerpc-linux boxes support dynamic linking these days and 18555 # people can always --disable-shared, the test was removed, and we 18556 # assume the GNU/Linux dynamic linker is in use. 18557 dynamic_linker='GNU/Linux ld.so' 18558 ;; 18559 18560netbsdelf*-gnu) 18561 version_type=linux 18562 need_lib_prefix=no 18563 need_version=no 18564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18565 soname_spec='${libname}${release}${shared_ext}$major' 18566 shlibpath_var=LD_LIBRARY_PATH 18567 shlibpath_overrides_runpath=no 18568 hardcode_into_libs=yes 18569 dynamic_linker='NetBSD ld.elf_so' 18570 ;; 18571 18572netbsd*) 18573 version_type=sunos 18574 need_lib_prefix=no 18575 need_version=no 18576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18579 dynamic_linker='NetBSD (a.out) ld.so' 18580 else 18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18582 soname_spec='${libname}${release}${shared_ext}$major' 18583 dynamic_linker='NetBSD ld.elf_so' 18584 fi 18585 shlibpath_var=LD_LIBRARY_PATH 18586 shlibpath_overrides_runpath=yes 18587 hardcode_into_libs=yes 18588 ;; 18589 18590newsos6) 18591 version_type=linux 18592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18593 shlibpath_var=LD_LIBRARY_PATH 18594 shlibpath_overrides_runpath=yes 18595 ;; 18596 18597nto-qnx*) 18598 version_type=linux 18599 need_lib_prefix=no 18600 need_version=no 18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18602 soname_spec='${libname}${release}${shared_ext}$major' 18603 shlibpath_var=LD_LIBRARY_PATH 18604 shlibpath_overrides_runpath=yes 18605 ;; 18606 18607openbsd*) 18608 version_type=sunos 18609 sys_lib_dlsearch_path_spec="/usr/lib" 18610 need_lib_prefix=no 18611 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18612 case $host_os in 18613 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18614 *) need_version=no ;; 18615 esac 18616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18618 shlibpath_var=LD_LIBRARY_PATH 18619 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18620 case $host_os in 18621 openbsd2.[89] | openbsd2.[89].*) 18622 shlibpath_overrides_runpath=no 18623 ;; 18624 *) 18625 shlibpath_overrides_runpath=yes 18626 ;; 18627 esac 18628 else 18629 shlibpath_overrides_runpath=yes 18630 fi 18631 ;; 18632 18633os2*) 18634 libname_spec='$name' 18635 shrext_cmds=".dll" 18636 need_lib_prefix=no 18637 library_names_spec='$libname${shared_ext} $libname.a' 18638 dynamic_linker='OS/2 ld.exe' 18639 shlibpath_var=LIBPATH 18640 ;; 18641 18642osf3* | osf4* | osf5*) 18643 version_type=osf 18644 need_lib_prefix=no 18645 need_version=no 18646 soname_spec='${libname}${release}${shared_ext}$major' 18647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18648 shlibpath_var=LD_LIBRARY_PATH 18649 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18650 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18651 ;; 18652 18653solaris*) 18654 version_type=linux 18655 need_lib_prefix=no 18656 need_version=no 18657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18658 soname_spec='${libname}${release}${shared_ext}$major' 18659 shlibpath_var=LD_LIBRARY_PATH 18660 shlibpath_overrides_runpath=yes 18661 hardcode_into_libs=yes 18662 # ldd complains unless libraries are executable 18663 postinstall_cmds='chmod +x $lib' 18664 ;; 18665 18666sunos4*) 18667 version_type=sunos 18668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18669 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18670 shlibpath_var=LD_LIBRARY_PATH 18671 shlibpath_overrides_runpath=yes 18672 if test "$with_gnu_ld" = yes; then 18673 need_lib_prefix=no 18674 fi 18675 need_version=yes 18676 ;; 18677 18678sysv4 | sysv4.3*) 18679 version_type=linux 18680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18681 soname_spec='${libname}${release}${shared_ext}$major' 18682 shlibpath_var=LD_LIBRARY_PATH 18683 case $host_vendor in 18684 sni) 18685 shlibpath_overrides_runpath=no 18686 need_lib_prefix=no 18687 export_dynamic_flag_spec='${wl}-Blargedynsym' 18688 runpath_var=LD_RUN_PATH 18689 ;; 18690 siemens) 18691 need_lib_prefix=no 18692 ;; 18693 motorola) 18694 need_lib_prefix=no 18695 need_version=no 18696 shlibpath_overrides_runpath=no 18697 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18698 ;; 18699 esac 18700 ;; 18701 18702sysv4*MP*) 18703 if test -d /usr/nec ;then 18704 version_type=linux 18705 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18706 soname_spec='$libname${shared_ext}.$major' 18707 shlibpath_var=LD_LIBRARY_PATH 18708 fi 18709 ;; 18710 18711sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18712 version_type=freebsd-elf 18713 need_lib_prefix=no 18714 need_version=no 18715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18716 soname_spec='${libname}${release}${shared_ext}$major' 18717 shlibpath_var=LD_LIBRARY_PATH 18718 hardcode_into_libs=yes 18719 if test "$with_gnu_ld" = yes; then 18720 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18721 shlibpath_overrides_runpath=no 18722 else 18723 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18724 shlibpath_overrides_runpath=yes 18725 case $host_os in 18726 sco3.2v5*) 18727 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18728 ;; 18729 esac 18730 fi 18731 sys_lib_dlsearch_path_spec='/usr/lib' 18732 ;; 18733 18734uts4*) 18735 version_type=linux 18736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18737 soname_spec='${libname}${release}${shared_ext}$major' 18738 shlibpath_var=LD_LIBRARY_PATH 18739 ;; 18740 18741*) 18742 dynamic_linker=no 18743 ;; 18744esac 18745{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18746echo "${ECHO_T}$dynamic_linker" >&6; } 18747test "$dynamic_linker" = no && can_build_shared=no 18748 18749variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18750if test "$GCC" = yes; then 18751 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18752fi 18753 18754{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18755echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18756hardcode_action_GCJ= 18757if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18758 test -n "$runpath_var_GCJ" || \ 18759 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18760 18761 # We can hardcode non-existant directories. 18762 if test "$hardcode_direct_GCJ" != no && 18763 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18764 # have to relink, otherwise we might link with an installed library 18765 # when we should be linking with a yet-to-be-installed one 18766 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18767 test "$hardcode_minus_L_GCJ" != no; then 18768 # Linking always hardcodes the temporary library directory. 18769 hardcode_action_GCJ=relink 18770 else 18771 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18772 hardcode_action_GCJ=immediate 18773 fi 18774else 18775 # We cannot hardcode anything, or else we can only hardcode existing 18776 # directories. 18777 hardcode_action_GCJ=unsupported 18778fi 18779{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18780echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18781 18782if test "$hardcode_action_GCJ" = relink; then 18783 # Fast installation is not supported 18784 enable_fast_install=no 18785elif test "$shlibpath_overrides_runpath" = yes || 18786 test "$enable_shared" = no; then 18787 # Fast installation is not necessary 18788 enable_fast_install=needless 18789fi 18790 18791 18792# The else clause should only fire when bootstrapping the 18793# libtool distribution, otherwise you forgot to ship ltmain.sh 18794# with your package, and you will get complaints that there are 18795# no rules to generate ltmain.sh. 18796if test -f "$ltmain"; then 18797 # See if we are running on zsh, and set the options which allow our commands through 18798 # without removal of \ escapes. 18799 if test -n "${ZSH_VERSION+set}" ; then 18800 setopt NO_GLOB_SUBST 18801 fi 18802 # Now quote all the things that may contain metacharacters while being 18803 # careful not to overquote the AC_SUBSTed values. We take copies of the 18804 # variables and quote the copies for generation of the libtool script. 18805 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18806 SED SHELL STRIP \ 18807 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18808 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18809 deplibs_check_method reload_flag reload_cmds need_locks \ 18810 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18811 lt_cv_sys_global_symbol_to_c_name_address \ 18812 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18813 old_postinstall_cmds old_postuninstall_cmds \ 18814 compiler_GCJ \ 18815 CC_GCJ \ 18816 LD_GCJ \ 18817 lt_prog_compiler_wl_GCJ \ 18818 lt_prog_compiler_pic_GCJ \ 18819 lt_prog_compiler_static_GCJ \ 18820 lt_prog_compiler_no_builtin_flag_GCJ \ 18821 export_dynamic_flag_spec_GCJ \ 18822 thread_safe_flag_spec_GCJ \ 18823 whole_archive_flag_spec_GCJ \ 18824 enable_shared_with_static_runtimes_GCJ \ 18825 old_archive_cmds_GCJ \ 18826 old_archive_from_new_cmds_GCJ \ 18827 predep_objects_GCJ \ 18828 postdep_objects_GCJ \ 18829 predeps_GCJ \ 18830 postdeps_GCJ \ 18831 compiler_lib_search_path_GCJ \ 18832 archive_cmds_GCJ \ 18833 archive_expsym_cmds_GCJ \ 18834 postinstall_cmds_GCJ \ 18835 postuninstall_cmds_GCJ \ 18836 old_archive_from_expsyms_cmds_GCJ \ 18837 allow_undefined_flag_GCJ \ 18838 no_undefined_flag_GCJ \ 18839 export_symbols_cmds_GCJ \ 18840 hardcode_libdir_flag_spec_GCJ \ 18841 hardcode_libdir_flag_spec_ld_GCJ \ 18842 hardcode_libdir_separator_GCJ \ 18843 hardcode_automatic_GCJ \ 18844 module_cmds_GCJ \ 18845 module_expsym_cmds_GCJ \ 18846 lt_cv_prog_compiler_c_o_GCJ \ 18847 exclude_expsyms_GCJ \ 18848 include_expsyms_GCJ; do 18849 18850 case $var in 18851 old_archive_cmds_GCJ | \ 18852 old_archive_from_new_cmds_GCJ | \ 18853 archive_cmds_GCJ | \ 18854 archive_expsym_cmds_GCJ | \ 18855 module_cmds_GCJ | \ 18856 module_expsym_cmds_GCJ | \ 18857 old_archive_from_expsyms_cmds_GCJ | \ 18858 export_symbols_cmds_GCJ | \ 18859 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18860 postinstall_cmds | postuninstall_cmds | \ 18861 old_postinstall_cmds | old_postuninstall_cmds | \ 18862 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18863 # Double-quote double-evaled strings. 18864 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18865 ;; 18866 *) 18867 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18868 ;; 18869 esac 18870 done 18871 18872 case $lt_echo in 18873 *'\$0 --fallback-echo"') 18874 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18875 ;; 18876 esac 18877 18878cfgfile="$ofile" 18879 18880 cat <<__EOF__ >> "$cfgfile" 18881# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18882 18883# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18884 18885# Shell to use when invoking shell scripts. 18886SHELL=$lt_SHELL 18887 18888# Whether or not to build shared libraries. 18889build_libtool_libs=$enable_shared 18890 18891# Whether or not to build static libraries. 18892build_old_libs=$enable_static 18893 18894# Whether or not to add -lc for building shared libraries. 18895build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18896 18897# Whether or not to disallow shared libs when runtime libs are static 18898allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18899 18900# Whether or not to optimize for fast installation. 18901fast_install=$enable_fast_install 18902 18903# The host system. 18904host_alias=$host_alias 18905host=$host 18906host_os=$host_os 18907 18908# The build system. 18909build_alias=$build_alias 18910build=$build 18911build_os=$build_os 18912 18913# An echo program that does not interpret backslashes. 18914echo=$lt_echo 18915 18916# The archiver. 18917AR=$lt_AR 18918AR_FLAGS=$lt_AR_FLAGS 18919 18920# A C compiler. 18921LTCC=$lt_LTCC 18922 18923# LTCC compiler flags. 18924LTCFLAGS=$lt_LTCFLAGS 18925 18926# A language-specific compiler. 18927CC=$lt_compiler_GCJ 18928 18929# Is the compiler the GNU C compiler? 18930with_gcc=$GCC_GCJ 18931 18932# An ERE matcher. 18933EGREP=$lt_EGREP 18934 18935# The linker used to build libraries. 18936LD=$lt_LD_GCJ 18937 18938# Whether we need hard or soft links. 18939LN_S=$lt_LN_S 18940 18941# A BSD-compatible nm program. 18942NM=$lt_NM 18943 18944# A symbol stripping program 18945STRIP=$lt_STRIP 18946 18947# Used to examine libraries when file_magic_cmd begins "file" 18948MAGIC_CMD=$MAGIC_CMD 18949 18950# Used on cygwin: DLL creation program. 18951DLLTOOL="$DLLTOOL" 18952 18953# Used on cygwin: object dumper. 18954OBJDUMP="$OBJDUMP" 18955 18956# Used on cygwin: assembler. 18957AS="$AS" 18958 18959# The name of the directory that contains temporary libtool files. 18960objdir=$objdir 18961 18962# How to create reloadable object files. 18963reload_flag=$lt_reload_flag 18964reload_cmds=$lt_reload_cmds 18965 18966# How to pass a linker flag through the compiler. 18967wl=$lt_lt_prog_compiler_wl_GCJ 18968 18969# Object file suffix (normally "o"). 18970objext="$ac_objext" 18971 18972# Old archive suffix (normally "a"). 18973libext="$libext" 18974 18975# Shared library suffix (normally ".so"). 18976shrext_cmds='$shrext_cmds' 18977 18978# Executable file suffix (normally ""). 18979exeext="$exeext" 18980 18981# Additional compiler flags for building library objects. 18982pic_flag=$lt_lt_prog_compiler_pic_GCJ 18983pic_mode=$pic_mode 18984 18985# What is the maximum length of a command? 18986max_cmd_len=$lt_cv_sys_max_cmd_len 18987 18988# Does compiler simultaneously support -c and -o options? 18989compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18990 18991# Must we lock files when doing compilation? 18992need_locks=$lt_need_locks 18993 18994# Do we need the lib prefix for modules? 18995need_lib_prefix=$need_lib_prefix 18996 18997# Do we need a version for libraries? 18998need_version=$need_version 18999 19000# Whether dlopen is supported. 19001dlopen_support=$enable_dlopen 19002 19003# Whether dlopen of programs is supported. 19004dlopen_self=$enable_dlopen_self 19005 19006# Whether dlopen of statically linked programs is supported. 19007dlopen_self_static=$enable_dlopen_self_static 19008 19009# Compiler flag to prevent dynamic linking. 19010link_static_flag=$lt_lt_prog_compiler_static_GCJ 19011 19012# Compiler flag to turn off builtin functions. 19013no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19014 19015# Compiler flag to allow reflexive dlopens. 19016export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19017 19018# Compiler flag to generate shared objects directly from archives. 19019whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19020 19021# Compiler flag to generate thread-safe objects. 19022thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19023 19024# Library versioning type. 19025version_type=$version_type 19026 19027# Format of library name prefix. 19028libname_spec=$lt_libname_spec 19029 19030# List of archive names. First name is the real one, the rest are links. 19031# The last name is the one that the linker finds with -lNAME. 19032library_names_spec=$lt_library_names_spec 19033 19034# The coded name of the library, if different from the real name. 19035soname_spec=$lt_soname_spec 19036 19037# Commands used to build and install an old-style archive. 19038RANLIB=$lt_RANLIB 19039old_archive_cmds=$lt_old_archive_cmds_GCJ 19040old_postinstall_cmds=$lt_old_postinstall_cmds 19041old_postuninstall_cmds=$lt_old_postuninstall_cmds 19042 19043# Create an old-style archive from a shared archive. 19044old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19045 19046# Create a temporary old-style archive to link instead of a shared archive. 19047old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19048 19049# Commands used to build and install a shared archive. 19050archive_cmds=$lt_archive_cmds_GCJ 19051archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19052postinstall_cmds=$lt_postinstall_cmds 19053postuninstall_cmds=$lt_postuninstall_cmds 19054 19055# Commands used to build a loadable module (assumed same as above if empty) 19056module_cmds=$lt_module_cmds_GCJ 19057module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19058 19059# Commands to strip libraries. 19060old_striplib=$lt_old_striplib 19061striplib=$lt_striplib 19062 19063# Dependencies to place before the objects being linked to create a 19064# shared library. 19065predep_objects=$lt_predep_objects_GCJ 19066 19067# Dependencies to place after the objects being linked to create a 19068# shared library. 19069postdep_objects=$lt_postdep_objects_GCJ 19070 19071# Dependencies to place before the objects being linked to create a 19072# shared library. 19073predeps=$lt_predeps_GCJ 19074 19075# Dependencies to place after the objects being linked to create a 19076# shared library. 19077postdeps=$lt_postdeps_GCJ 19078 19079# The library search path used internally by the compiler when linking 19080# a shared library. 19081compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19082 19083# Method to check whether dependent libraries are shared objects. 19084deplibs_check_method=$lt_deplibs_check_method 19085 19086# Command to use when deplibs_check_method == file_magic. 19087file_magic_cmd=$lt_file_magic_cmd 19088 19089# Flag that allows shared libraries with undefined symbols to be built. 19090allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19091 19092# Flag that forces no undefined symbols. 19093no_undefined_flag=$lt_no_undefined_flag_GCJ 19094 19095# Commands used to finish a libtool library installation in a directory. 19096finish_cmds=$lt_finish_cmds 19097 19098# Same as above, but a single script fragment to be evaled but not shown. 19099finish_eval=$lt_finish_eval 19100 19101# Take the output of nm and produce a listing of raw symbols and C names. 19102global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19103 19104# Transform the output of nm in a proper C declaration 19105global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19106 19107# Transform the output of nm in a C name address pair 19108global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19109 19110# This is the shared library runtime path variable. 19111runpath_var=$runpath_var 19112 19113# This is the shared library path variable. 19114shlibpath_var=$shlibpath_var 19115 19116# Is shlibpath searched before the hard-coded library search path? 19117shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19118 19119# How to hardcode a shared library path into an executable. 19120hardcode_action=$hardcode_action_GCJ 19121 19122# Whether we should hardcode library paths into libraries. 19123hardcode_into_libs=$hardcode_into_libs 19124 19125# Flag to hardcode \$libdir into a binary during linking. 19126# This must work even if \$libdir does not exist. 19127hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19128 19129# If ld is used when linking, flag to hardcode \$libdir into 19130# a binary during linking. This must work even if \$libdir does 19131# not exist. 19132hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19133 19134# Whether we need a single -rpath flag with a separated argument. 19135hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19136 19137# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19138# resulting binary. 19139hardcode_direct=$hardcode_direct_GCJ 19140 19141# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19142# resulting binary. 19143hardcode_minus_L=$hardcode_minus_L_GCJ 19144 19145# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19146# the resulting binary. 19147hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19148 19149# Set to yes if building a shared library automatically hardcodes DIR into the library 19150# and all subsequent libraries and executables linked against it. 19151hardcode_automatic=$hardcode_automatic_GCJ 19152 19153# Variables whose values should be saved in libtool wrapper scripts and 19154# restored at relink time. 19155variables_saved_for_relink="$variables_saved_for_relink" 19156 19157# Whether libtool must link a program against all its dependency libraries. 19158link_all_deplibs=$link_all_deplibs_GCJ 19159 19160# Compile-time system search path for libraries 19161sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19162 19163# Run-time system search path for libraries 19164sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19165 19166# Fix the shell variable \$srcfile for the compiler. 19167fix_srcfile_path="$fix_srcfile_path_GCJ" 19168 19169# Set to yes if exported symbols are required. 19170always_export_symbols=$always_export_symbols_GCJ 19171 19172# The commands to list exported symbols. 19173export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19174 19175# The commands to extract the exported symbol list from a shared archive. 19176extract_expsyms_cmds=$lt_extract_expsyms_cmds 19177 19178# Symbols that should not be listed in the preloaded symbols. 19179exclude_expsyms=$lt_exclude_expsyms_GCJ 19180 19181# Symbols that must always be exported. 19182include_expsyms=$lt_include_expsyms_GCJ 19183 19184# ### END LIBTOOL TAG CONFIG: $tagname 19185 19186__EOF__ 19187 19188 19189else 19190 # If there is no Makefile yet, we rely on a make rule to execute 19191 # `config.status --recheck' to rerun these tests and create the 19192 # libtool script then. 19193 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19194 if test -f "$ltmain_in"; then 19195 test -f Makefile && make "$ltmain" 19196 fi 19197fi 19198 19199 19200ac_ext=c 19201ac_cpp='$CPP $CPPFLAGS' 19202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19204ac_compiler_gnu=$ac_cv_c_compiler_gnu 19205 19206CC="$lt_save_CC" 19207 19208 else 19209 tagname="" 19210 fi 19211 ;; 19212 19213 RC) 19214 19215 19216# Source file extension for RC test sources. 19217ac_ext=rc 19218 19219# Object file extension for compiled RC test sources. 19220objext=o 19221objext_RC=$objext 19222 19223# Code to be used in simple compile tests 19224lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19225 19226# Code to be used in simple link tests 19227lt_simple_link_test_code="$lt_simple_compile_test_code" 19228 19229# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19230 19231# If no C compiler was specified, use CC. 19232LTCC=${LTCC-"$CC"} 19233 19234# If no C compiler flags were specified, use CFLAGS. 19235LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19236 19237# Allow CC to be a program name with arguments. 19238compiler=$CC 19239 19240 19241# save warnings/boilerplate of simple test code 19242ac_outfile=conftest.$ac_objext 19243printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19244eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19245_lt_compiler_boilerplate=`cat conftest.err` 19246$rm conftest* 19247 19248ac_outfile=conftest.$ac_objext 19249printf "$lt_simple_link_test_code" >conftest.$ac_ext 19250eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19251_lt_linker_boilerplate=`cat conftest.err` 19252$rm conftest* 19253 19254 19255# Allow CC to be a program name with arguments. 19256lt_save_CC="$CC" 19257CC=${RC-"windres"} 19258compiler=$CC 19259compiler_RC=$CC 19260for cc_temp in $compiler""; do 19261 case $cc_temp in 19262 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19263 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19264 \-*) ;; 19265 *) break;; 19266 esac 19267done 19268cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19269 19270lt_cv_prog_compiler_c_o_RC=yes 19271 19272# The else clause should only fire when bootstrapping the 19273# libtool distribution, otherwise you forgot to ship ltmain.sh 19274# with your package, and you will get complaints that there are 19275# no rules to generate ltmain.sh. 19276if test -f "$ltmain"; then 19277 # See if we are running on zsh, and set the options which allow our commands through 19278 # without removal of \ escapes. 19279 if test -n "${ZSH_VERSION+set}" ; then 19280 setopt NO_GLOB_SUBST 19281 fi 19282 # Now quote all the things that may contain metacharacters while being 19283 # careful not to overquote the AC_SUBSTed values. We take copies of the 19284 # variables and quote the copies for generation of the libtool script. 19285 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19286 SED SHELL STRIP \ 19287 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19288 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19289 deplibs_check_method reload_flag reload_cmds need_locks \ 19290 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19291 lt_cv_sys_global_symbol_to_c_name_address \ 19292 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19293 old_postinstall_cmds old_postuninstall_cmds \ 19294 compiler_RC \ 19295 CC_RC \ 19296 LD_RC \ 19297 lt_prog_compiler_wl_RC \ 19298 lt_prog_compiler_pic_RC \ 19299 lt_prog_compiler_static_RC \ 19300 lt_prog_compiler_no_builtin_flag_RC \ 19301 export_dynamic_flag_spec_RC \ 19302 thread_safe_flag_spec_RC \ 19303 whole_archive_flag_spec_RC \ 19304 enable_shared_with_static_runtimes_RC \ 19305 old_archive_cmds_RC \ 19306 old_archive_from_new_cmds_RC \ 19307 predep_objects_RC \ 19308 postdep_objects_RC \ 19309 predeps_RC \ 19310 postdeps_RC \ 19311 compiler_lib_search_path_RC \ 19312 archive_cmds_RC \ 19313 archive_expsym_cmds_RC \ 19314 postinstall_cmds_RC \ 19315 postuninstall_cmds_RC \ 19316 old_archive_from_expsyms_cmds_RC \ 19317 allow_undefined_flag_RC \ 19318 no_undefined_flag_RC \ 19319 export_symbols_cmds_RC \ 19320 hardcode_libdir_flag_spec_RC \ 19321 hardcode_libdir_flag_spec_ld_RC \ 19322 hardcode_libdir_separator_RC \ 19323 hardcode_automatic_RC \ 19324 module_cmds_RC \ 19325 module_expsym_cmds_RC \ 19326 lt_cv_prog_compiler_c_o_RC \ 19327 exclude_expsyms_RC \ 19328 include_expsyms_RC; do 19329 19330 case $var in 19331 old_archive_cmds_RC | \ 19332 old_archive_from_new_cmds_RC | \ 19333 archive_cmds_RC | \ 19334 archive_expsym_cmds_RC | \ 19335 module_cmds_RC | \ 19336 module_expsym_cmds_RC | \ 19337 old_archive_from_expsyms_cmds_RC | \ 19338 export_symbols_cmds_RC | \ 19339 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19340 postinstall_cmds | postuninstall_cmds | \ 19341 old_postinstall_cmds | old_postuninstall_cmds | \ 19342 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19343 # Double-quote double-evaled strings. 19344 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19345 ;; 19346 *) 19347 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19348 ;; 19349 esac 19350 done 19351 19352 case $lt_echo in 19353 *'\$0 --fallback-echo"') 19354 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19355 ;; 19356 esac 19357 19358cfgfile="$ofile" 19359 19360 cat <<__EOF__ >> "$cfgfile" 19361# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19362 19363# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19364 19365# Shell to use when invoking shell scripts. 19366SHELL=$lt_SHELL 19367 19368# Whether or not to build shared libraries. 19369build_libtool_libs=$enable_shared 19370 19371# Whether or not to build static libraries. 19372build_old_libs=$enable_static 19373 19374# Whether or not to add -lc for building shared libraries. 19375build_libtool_need_lc=$archive_cmds_need_lc_RC 19376 19377# Whether or not to disallow shared libs when runtime libs are static 19378allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19379 19380# Whether or not to optimize for fast installation. 19381fast_install=$enable_fast_install 19382 19383# The host system. 19384host_alias=$host_alias 19385host=$host 19386host_os=$host_os 19387 19388# The build system. 19389build_alias=$build_alias 19390build=$build 19391build_os=$build_os 19392 19393# An echo program that does not interpret backslashes. 19394echo=$lt_echo 19395 19396# The archiver. 19397AR=$lt_AR 19398AR_FLAGS=$lt_AR_FLAGS 19399 19400# A C compiler. 19401LTCC=$lt_LTCC 19402 19403# LTCC compiler flags. 19404LTCFLAGS=$lt_LTCFLAGS 19405 19406# A language-specific compiler. 19407CC=$lt_compiler_RC 19408 19409# Is the compiler the GNU C compiler? 19410with_gcc=$GCC_RC 19411 19412# An ERE matcher. 19413EGREP=$lt_EGREP 19414 19415# The linker used to build libraries. 19416LD=$lt_LD_RC 19417 19418# Whether we need hard or soft links. 19419LN_S=$lt_LN_S 19420 19421# A BSD-compatible nm program. 19422NM=$lt_NM 19423 19424# A symbol stripping program 19425STRIP=$lt_STRIP 19426 19427# Used to examine libraries when file_magic_cmd begins "file" 19428MAGIC_CMD=$MAGIC_CMD 19429 19430# Used on cygwin: DLL creation program. 19431DLLTOOL="$DLLTOOL" 19432 19433# Used on cygwin: object dumper. 19434OBJDUMP="$OBJDUMP" 19435 19436# Used on cygwin: assembler. 19437AS="$AS" 19438 19439# The name of the directory that contains temporary libtool files. 19440objdir=$objdir 19441 19442# How to create reloadable object files. 19443reload_flag=$lt_reload_flag 19444reload_cmds=$lt_reload_cmds 19445 19446# How to pass a linker flag through the compiler. 19447wl=$lt_lt_prog_compiler_wl_RC 19448 19449# Object file suffix (normally "o"). 19450objext="$ac_objext" 19451 19452# Old archive suffix (normally "a"). 19453libext="$libext" 19454 19455# Shared library suffix (normally ".so"). 19456shrext_cmds='$shrext_cmds' 19457 19458# Executable file suffix (normally ""). 19459exeext="$exeext" 19460 19461# Additional compiler flags for building library objects. 19462pic_flag=$lt_lt_prog_compiler_pic_RC 19463pic_mode=$pic_mode 19464 19465# What is the maximum length of a command? 19466max_cmd_len=$lt_cv_sys_max_cmd_len 19467 19468# Does compiler simultaneously support -c and -o options? 19469compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19470 19471# Must we lock files when doing compilation? 19472need_locks=$lt_need_locks 19473 19474# Do we need the lib prefix for modules? 19475need_lib_prefix=$need_lib_prefix 19476 19477# Do we need a version for libraries? 19478need_version=$need_version 19479 19480# Whether dlopen is supported. 19481dlopen_support=$enable_dlopen 19482 19483# Whether dlopen of programs is supported. 19484dlopen_self=$enable_dlopen_self 19485 19486# Whether dlopen of statically linked programs is supported. 19487dlopen_self_static=$enable_dlopen_self_static 19488 19489# Compiler flag to prevent dynamic linking. 19490link_static_flag=$lt_lt_prog_compiler_static_RC 19491 19492# Compiler flag to turn off builtin functions. 19493no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19494 19495# Compiler flag to allow reflexive dlopens. 19496export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19497 19498# Compiler flag to generate shared objects directly from archives. 19499whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19500 19501# Compiler flag to generate thread-safe objects. 19502thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19503 19504# Library versioning type. 19505version_type=$version_type 19506 19507# Format of library name prefix. 19508libname_spec=$lt_libname_spec 19509 19510# List of archive names. First name is the real one, the rest are links. 19511# The last name is the one that the linker finds with -lNAME. 19512library_names_spec=$lt_library_names_spec 19513 19514# The coded name of the library, if different from the real name. 19515soname_spec=$lt_soname_spec 19516 19517# Commands used to build and install an old-style archive. 19518RANLIB=$lt_RANLIB 19519old_archive_cmds=$lt_old_archive_cmds_RC 19520old_postinstall_cmds=$lt_old_postinstall_cmds 19521old_postuninstall_cmds=$lt_old_postuninstall_cmds 19522 19523# Create an old-style archive from a shared archive. 19524old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19525 19526# Create a temporary old-style archive to link instead of a shared archive. 19527old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19528 19529# Commands used to build and install a shared archive. 19530archive_cmds=$lt_archive_cmds_RC 19531archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19532postinstall_cmds=$lt_postinstall_cmds 19533postuninstall_cmds=$lt_postuninstall_cmds 19534 19535# Commands used to build a loadable module (assumed same as above if empty) 19536module_cmds=$lt_module_cmds_RC 19537module_expsym_cmds=$lt_module_expsym_cmds_RC 19538 19539# Commands to strip libraries. 19540old_striplib=$lt_old_striplib 19541striplib=$lt_striplib 19542 19543# Dependencies to place before the objects being linked to create a 19544# shared library. 19545predep_objects=$lt_predep_objects_RC 19546 19547# Dependencies to place after the objects being linked to create a 19548# shared library. 19549postdep_objects=$lt_postdep_objects_RC 19550 19551# Dependencies to place before the objects being linked to create a 19552# shared library. 19553predeps=$lt_predeps_RC 19554 19555# Dependencies to place after the objects being linked to create a 19556# shared library. 19557postdeps=$lt_postdeps_RC 19558 19559# The library search path used internally by the compiler when linking 19560# a shared library. 19561compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19562 19563# Method to check whether dependent libraries are shared objects. 19564deplibs_check_method=$lt_deplibs_check_method 19565 19566# Command to use when deplibs_check_method == file_magic. 19567file_magic_cmd=$lt_file_magic_cmd 19568 19569# Flag that allows shared libraries with undefined symbols to be built. 19570allow_undefined_flag=$lt_allow_undefined_flag_RC 19571 19572# Flag that forces no undefined symbols. 19573no_undefined_flag=$lt_no_undefined_flag_RC 19574 19575# Commands used to finish a libtool library installation in a directory. 19576finish_cmds=$lt_finish_cmds 19577 19578# Same as above, but a single script fragment to be evaled but not shown. 19579finish_eval=$lt_finish_eval 19580 19581# Take the output of nm and produce a listing of raw symbols and C names. 19582global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19583 19584# Transform the output of nm in a proper C declaration 19585global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19586 19587# Transform the output of nm in a C name address pair 19588global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19589 19590# This is the shared library runtime path variable. 19591runpath_var=$runpath_var 19592 19593# This is the shared library path variable. 19594shlibpath_var=$shlibpath_var 19595 19596# Is shlibpath searched before the hard-coded library search path? 19597shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19598 19599# How to hardcode a shared library path into an executable. 19600hardcode_action=$hardcode_action_RC 19601 19602# Whether we should hardcode library paths into libraries. 19603hardcode_into_libs=$hardcode_into_libs 19604 19605# Flag to hardcode \$libdir into a binary during linking. 19606# This must work even if \$libdir does not exist. 19607hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19608 19609# If ld is used when linking, flag to hardcode \$libdir into 19610# a binary during linking. This must work even if \$libdir does 19611# not exist. 19612hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19613 19614# Whether we need a single -rpath flag with a separated argument. 19615hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19616 19617# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19618# resulting binary. 19619hardcode_direct=$hardcode_direct_RC 19620 19621# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19622# resulting binary. 19623hardcode_minus_L=$hardcode_minus_L_RC 19624 19625# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19626# the resulting binary. 19627hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19628 19629# Set to yes if building a shared library automatically hardcodes DIR into the library 19630# and all subsequent libraries and executables linked against it. 19631hardcode_automatic=$hardcode_automatic_RC 19632 19633# Variables whose values should be saved in libtool wrapper scripts and 19634# restored at relink time. 19635variables_saved_for_relink="$variables_saved_for_relink" 19636 19637# Whether libtool must link a program against all its dependency libraries. 19638link_all_deplibs=$link_all_deplibs_RC 19639 19640# Compile-time system search path for libraries 19641sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19642 19643# Run-time system search path for libraries 19644sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19645 19646# Fix the shell variable \$srcfile for the compiler. 19647fix_srcfile_path="$fix_srcfile_path_RC" 19648 19649# Set to yes if exported symbols are required. 19650always_export_symbols=$always_export_symbols_RC 19651 19652# The commands to list exported symbols. 19653export_symbols_cmds=$lt_export_symbols_cmds_RC 19654 19655# The commands to extract the exported symbol list from a shared archive. 19656extract_expsyms_cmds=$lt_extract_expsyms_cmds 19657 19658# Symbols that should not be listed in the preloaded symbols. 19659exclude_expsyms=$lt_exclude_expsyms_RC 19660 19661# Symbols that must always be exported. 19662include_expsyms=$lt_include_expsyms_RC 19663 19664# ### END LIBTOOL TAG CONFIG: $tagname 19665 19666__EOF__ 19667 19668 19669else 19670 # If there is no Makefile yet, we rely on a make rule to execute 19671 # `config.status --recheck' to rerun these tests and create the 19672 # libtool script then. 19673 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19674 if test -f "$ltmain_in"; then 19675 test -f Makefile && make "$ltmain" 19676 fi 19677fi 19678 19679 19680ac_ext=c 19681ac_cpp='$CPP $CPPFLAGS' 19682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19684ac_compiler_gnu=$ac_cv_c_compiler_gnu 19685 19686CC="$lt_save_CC" 19687 19688 ;; 19689 19690 *) 19691 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19692echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19693 { (exit 1); exit 1; }; } 19694 ;; 19695 esac 19696 19697 # Append the new tag name to the list of available tags. 19698 if test -n "$tagname" ; then 19699 available_tags="$available_tags $tagname" 19700 fi 19701 fi 19702 done 19703 IFS="$lt_save_ifs" 19704 19705 # Now substitute the updated list of available tags. 19706 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19707 mv "${ofile}T" "$ofile" 19708 chmod +x "$ofile" 19709 else 19710 rm -f "${ofile}T" 19711 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19712echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19713 { (exit 1); exit 1; }; } 19714 fi 19715fi 19716 19717 19718 19719# This can be used to rebuild libtool when needed 19720LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19721 19722# Always use our own libtool. 19723LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19724 19725# Prevent multiple expansion 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749DEFAULT_ENCODINGSDIR=${libdir}/X11/fonts/encodings 19750 19751# Check whether --with-encodingsdir was given. 19752if test "${with_encodingsdir+set}" = set; then 19753 withval=$with_encodingsdir; ENCODINGSDIR="$withval" 19754else 19755 ENCODINGSDIR="$DEFAULT_ENCODINGSDIR" 19756fi 19757 19758 19759 19760# zlib 19761 19762 19763{ echo "$as_me:$LINENO: checking for gzclose in -lz" >&5 19764echo $ECHO_N "checking for gzclose in -lz... $ECHO_C" >&6; } 19765if test "${ac_cv_lib_z_gzclose+set}" = set; then 19766 echo $ECHO_N "(cached) $ECHO_C" >&6 19767else 19768 ac_check_lib_save_LIBS=$LIBS 19769LIBS="-lz $LIBS" 19770cat >conftest.$ac_ext <<_ACEOF 19771/* confdefs.h. */ 19772_ACEOF 19773cat confdefs.h >>conftest.$ac_ext 19774cat >>conftest.$ac_ext <<_ACEOF 19775/* end confdefs.h. */ 19776 19777/* Override any GCC internal prototype to avoid an error. 19778 Use char because int might match the return type of a GCC 19779 builtin and then its argument prototype would still apply. */ 19780#ifdef __cplusplus 19781extern "C" 19782#endif 19783char gzclose (); 19784int 19785main () 19786{ 19787return gzclose (); 19788 ; 19789 return 0; 19790} 19791_ACEOF 19792rm -f conftest.$ac_objext conftest$ac_exeext 19793if { (ac_try="$ac_link" 19794case "(($ac_try" in 19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19796 *) ac_try_echo=$ac_try;; 19797esac 19798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19799 (eval "$ac_link") 2>conftest.er1 19800 ac_status=$? 19801 grep -v '^ *+' conftest.er1 >conftest.err 19802 rm -f conftest.er1 19803 cat conftest.err >&5 19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19805 (exit $ac_status); } && 19806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19807 { (case "(($ac_try" in 19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19809 *) ac_try_echo=$ac_try;; 19810esac 19811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19812 (eval "$ac_try") 2>&5 19813 ac_status=$? 19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19815 (exit $ac_status); }; } && 19816 { ac_try='test -s conftest$ac_exeext' 19817 { (case "(($ac_try" in 19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19819 *) ac_try_echo=$ac_try;; 19820esac 19821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19822 (eval "$ac_try") 2>&5 19823 ac_status=$? 19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19825 (exit $ac_status); }; }; then 19826 ac_cv_lib_z_gzclose=yes 19827else 19828 echo "$as_me: failed program was:" >&5 19829sed 's/^/| /' conftest.$ac_ext >&5 19830 19831 ac_cv_lib_z_gzclose=no 19832fi 19833 19834rm -f core conftest.err conftest.$ac_objext \ 19835 conftest$ac_exeext conftest.$ac_ext 19836LIBS=$ac_check_lib_save_LIBS 19837fi 19838{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzclose" >&5 19839echo "${ECHO_T}$ac_cv_lib_z_gzclose" >&6; } 19840if test $ac_cv_lib_z_gzclose = yes; then 19841 cat >>confdefs.h <<_ACEOF 19842#define HAVE_LIBZ 1 19843_ACEOF 19844 19845 LIBS="-lz $LIBS" 19846 19847fi 19848 19849 19850# Check for dependencies 19851 19852 19853if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19854 if test -n "$ac_tool_prefix"; then 19855 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19856set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19857{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19859if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19860 echo $ECHO_N "(cached) $ECHO_C" >&6 19861else 19862 case $PKG_CONFIG in 19863 [\\/]* | ?:[\\/]*) 19864 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19865 ;; 19866 *) 19867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19868for as_dir in $PATH 19869do 19870 IFS=$as_save_IFS 19871 test -z "$as_dir" && as_dir=. 19872 for ac_exec_ext in '' $ac_executable_extensions; do 19873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19874 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19876 break 2 19877 fi 19878done 19879done 19880IFS=$as_save_IFS 19881 19882 ;; 19883esac 19884fi 19885PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19886if test -n "$PKG_CONFIG"; then 19887 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19888echo "${ECHO_T}$PKG_CONFIG" >&6; } 19889else 19890 { echo "$as_me:$LINENO: result: no" >&5 19891echo "${ECHO_T}no" >&6; } 19892fi 19893 19894 19895fi 19896if test -z "$ac_cv_path_PKG_CONFIG"; then 19897 ac_pt_PKG_CONFIG=$PKG_CONFIG 19898 # Extract the first word of "pkg-config", so it can be a program name with args. 19899set dummy pkg-config; ac_word=$2 19900{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19902if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19903 echo $ECHO_N "(cached) $ECHO_C" >&6 19904else 19905 case $ac_pt_PKG_CONFIG in 19906 [\\/]* | ?:[\\/]*) 19907 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19908 ;; 19909 *) 19910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19911for as_dir in $PATH 19912do 19913 IFS=$as_save_IFS 19914 test -z "$as_dir" && as_dir=. 19915 for ac_exec_ext in '' $ac_executable_extensions; do 19916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19917 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19919 break 2 19920 fi 19921done 19922done 19923IFS=$as_save_IFS 19924 19925 ;; 19926esac 19927fi 19928ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19929if test -n "$ac_pt_PKG_CONFIG"; then 19930 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19931echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 19932else 19933 { echo "$as_me:$LINENO: result: no" >&5 19934echo "${ECHO_T}no" >&6; } 19935fi 19936 19937 if test "x$ac_pt_PKG_CONFIG" = x; then 19938 PKG_CONFIG="" 19939 else 19940 case $cross_compiling:$ac_tool_warned in 19941yes:) 19942{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19943whose name does not start with the host triplet. If you think this 19944configuration is useful to you, please write to autoconf@gnu.org." >&5 19945echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19946whose name does not start with the host triplet. If you think this 19947configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19948ac_tool_warned=yes ;; 19949esac 19950 PKG_CONFIG=$ac_pt_PKG_CONFIG 19951 fi 19952else 19953 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19954fi 19955 19956fi 19957if test -n "$PKG_CONFIG"; then 19958 _pkg_min_version=0.9.0 19959 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19960echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 19961 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19962 { echo "$as_me:$LINENO: result: yes" >&5 19963echo "${ECHO_T}yes" >&6; } 19964 else 19965 { echo "$as_me:$LINENO: result: no" >&5 19966echo "${ECHO_T}no" >&6; } 19967 PKG_CONFIG="" 19968 fi 19969 19970fi 19971 19972pkg_failed=no 19973{ echo "$as_me:$LINENO: checking for FONTENC" >&5 19974echo $ECHO_N "checking for FONTENC... $ECHO_C" >&6; } 19975 19976if test -n "$PKG_CONFIG"; then 19977 if test -n "$FONTENC_CFLAGS"; then 19978 pkg_cv_FONTENC_CFLAGS="$FONTENC_CFLAGS" 19979 else 19980 if test -n "$PKG_CONFIG" && \ 19981 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5 19982 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 19983 ac_status=$? 19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19985 (exit $ac_status); }; then 19986 pkg_cv_FONTENC_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 19987else 19988 pkg_failed=yes 19989fi 19990 fi 19991else 19992 pkg_failed=untried 19993fi 19994if test -n "$PKG_CONFIG"; then 19995 if test -n "$FONTENC_LIBS"; then 19996 pkg_cv_FONTENC_LIBS="$FONTENC_LIBS" 19997 else 19998 if test -n "$PKG_CONFIG" && \ 19999 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5 20000 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 20001 ac_status=$? 20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20003 (exit $ac_status); }; then 20004 pkg_cv_FONTENC_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 20005else 20006 pkg_failed=yes 20007fi 20008 fi 20009else 20010 pkg_failed=untried 20011fi 20012 20013 20014 20015if test $pkg_failed = yes; then 20016 20017if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20018 _pkg_short_errors_supported=yes 20019else 20020 _pkg_short_errors_supported=no 20021fi 20022 if test $_pkg_short_errors_supported = yes; then 20023 FONTENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto"` 20024 else 20025 FONTENC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto"` 20026 fi 20027 # Put the nasty error message in config.log where it belongs 20028 echo "$FONTENC_PKG_ERRORS" >&5 20029 20030 { { echo "$as_me:$LINENO: error: Package requirements (xproto) were not met: 20031 20032$FONTENC_PKG_ERRORS 20033 20034Consider adjusting the PKG_CONFIG_PATH environment variable if you 20035installed software in a non-standard prefix. 20036 20037Alternatively, you may set the environment variables FONTENC_CFLAGS 20038and FONTENC_LIBS to avoid the need to call pkg-config. 20039See the pkg-config man page for more details. 20040" >&5 20041echo "$as_me: error: Package requirements (xproto) were not met: 20042 20043$FONTENC_PKG_ERRORS 20044 20045Consider adjusting the PKG_CONFIG_PATH environment variable if you 20046installed software in a non-standard prefix. 20047 20048Alternatively, you may set the environment variables FONTENC_CFLAGS 20049and FONTENC_LIBS to avoid the need to call pkg-config. 20050See the pkg-config man page for more details. 20051" >&2;} 20052 { (exit 1); exit 1; }; } 20053elif test $pkg_failed = untried; then 20054 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20055is in your PATH or set the PKG_CONFIG environment variable to the full 20056path to pkg-config. 20057 20058Alternatively, you may set the environment variables FONTENC_CFLAGS 20059and FONTENC_LIBS to avoid the need to call pkg-config. 20060See the pkg-config man page for more details. 20061 20062To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20063See \`config.log' for more details." >&5 20064echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20065is in your PATH or set the PKG_CONFIG environment variable to the full 20066path to pkg-config. 20067 20068Alternatively, you may set the environment variables FONTENC_CFLAGS 20069and FONTENC_LIBS to avoid the need to call pkg-config. 20070See the pkg-config man page for more details. 20071 20072To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20073See \`config.log' for more details." >&2;} 20074 { (exit 1); exit 1; }; } 20075else 20076 FONTENC_CFLAGS=$pkg_cv_FONTENC_CFLAGS 20077 FONTENC_LIBS=$pkg_cv_FONTENC_LIBS 20078 { echo "$as_me:$LINENO: result: yes" >&5 20079echo "${ECHO_T}yes" >&6; } 20080 : 20081fi 20082 20083 20084 20085 20086 20087 20088# Allow checking code with lint, sparse, etc. 20089 20090# Check whether --with-lint was given. 20091if test "${with_lint+set}" = set; then 20092 withval=$with_lint; use_lint=$withval 20093else 20094 use_lint=no 20095fi 20096 20097if test "x$use_lint" = "xyes" ; then 20098 LINT="lint" 20099else 20100 LINT="$use_lint" 20101fi 20102if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 20103 case $LINT in 20104 lint|*/lint) 20105 case $host_os in 20106 solaris*) 20107 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20108 ;; 20109 esac 20110 ;; 20111 esac 20112fi 20113 20114 20115 20116 20117 20118if test x$LINT != xno; then 20119 LINT_TRUE= 20120 LINT_FALSE='#' 20121else 20122 LINT_TRUE='#' 20123 LINT_FALSE= 20124fi 20125 20126 20127 20128LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}" 20129 20130 20131 20132# Check whether --with-release-version was given. 20133if test "${with_release_version+set}" = set; then 20134 withval=$with_release_version; RELEASE_VERSION="$withval" 20135else 20136 RELEASE_VERSION="" 20137fi 20138 20139 if test "x$RELEASE_VERSION" != "x"; then 20140 PACKAGE="$PACKAGE-$RELEASE_VERSION" 20141 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 20142 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 20143echo "$as_me: Building with package name set to $PACKAGE" >&6;} 20144 fi 20145 20146cat >>confdefs.h <<_ACEOF 20147#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\).*/\1/p'` 20148_ACEOF 20149 20150 PVM=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\).*/\2/p'` 20151 if test "x$PVM" = "x"; then 20152 PVM="0" 20153 fi 20154 20155cat >>confdefs.h <<_ACEOF 20156#define PACKAGE_VERSION_MINOR $PVM 20157_ACEOF 20158 20159 PVP=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\)\.\([^\.]\+\).*/\3/p'` 20160 if test "x$PVP" = "x"; then 20161 PVP="0" 20162 fi 20163 20164cat >>confdefs.h <<_ACEOF 20165#define PACKAGE_VERSION_PATCHLEVEL $PVP 20166_ACEOF 20167 20168 20169 20170ac_config_files="$ac_config_files Makefile src/Makefile fontenc.pc" 20171 20172cat >confcache <<\_ACEOF 20173# This file is a shell script that caches the results of configure 20174# tests run on this system so they can be shared between configure 20175# scripts and configure runs, see configure's option --config-cache. 20176# It is not useful on other systems. If it contains results you don't 20177# want to keep, you may remove or edit it. 20178# 20179# config.status only pays attention to the cache file if you give it 20180# the --recheck option to rerun configure. 20181# 20182# `ac_cv_env_foo' variables (set or unset) will be overridden when 20183# loading this file, other *unset* `ac_cv_foo' will be assigned the 20184# following values. 20185 20186_ACEOF 20187 20188# The following way of writing the cache mishandles newlines in values, 20189# but we know of no workaround that is simple, portable, and efficient. 20190# So, we kill variables containing newlines. 20191# Ultrix sh set writes to stderr and can't be redirected directly, 20192# and sets the high bit in the cache file unless we assign to the vars. 20193( 20194 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20195 eval ac_val=\$$ac_var 20196 case $ac_val in #( 20197 *${as_nl}*) 20198 case $ac_var in #( 20199 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20200echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20201 esac 20202 case $ac_var in #( 20203 _ | IFS | as_nl) ;; #( 20204 *) $as_unset $ac_var ;; 20205 esac ;; 20206 esac 20207 done 20208 20209 (set) 2>&1 | 20210 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20211 *${as_nl}ac_space=\ *) 20212 # `set' does not quote correctly, so add quotes (double-quote 20213 # substitution turns \\\\ into \\, and sed turns \\ into \). 20214 sed -n \ 20215 "s/'/'\\\\''/g; 20216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20217 ;; #( 20218 *) 20219 # `set' quotes correctly as required by POSIX, so do not add quotes. 20220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20221 ;; 20222 esac | 20223 sort 20224) | 20225 sed ' 20226 /^ac_cv_env_/b end 20227 t clear 20228 :clear 20229 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20230 t end 20231 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20232 :end' >>confcache 20233if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20234 if test -w "$cache_file"; then 20235 test "x$cache_file" != "x/dev/null" && 20236 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 20237echo "$as_me: updating cache $cache_file" >&6;} 20238 cat confcache >$cache_file 20239 else 20240 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20241echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20242 fi 20243fi 20244rm -f confcache 20245 20246test "x$prefix" = xNONE && prefix=$ac_default_prefix 20247# Let make expand exec_prefix. 20248test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20249 20250DEFS=-DHAVE_CONFIG_H 20251 20252ac_libobjs= 20253ac_ltlibobjs= 20254for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20255 # 1. Remove the extension, and $U if already installed. 20256 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20257 ac_i=`echo "$ac_i" | sed "$ac_script"` 20258 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20259 # will be set to the directory where LIBOBJS objects are built. 20260 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20261 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20262done 20263LIBOBJS=$ac_libobjs 20264 20265LTLIBOBJS=$ac_ltlibobjs 20266 20267 20268if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20269 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 20270Usually this means the macro was only invoked conditionally." >&5 20271echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 20272Usually this means the macro was only invoked conditionally." >&2;} 20273 { (exit 1); exit 1; }; } 20274fi 20275if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20276 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20277Usually this means the macro was only invoked conditionally." >&5 20278echo "$as_me: error: conditional \"AMDEP\" was never defined. 20279Usually this means the macro was only invoked conditionally." >&2;} 20280 { (exit 1); exit 1; }; } 20281fi 20282if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20283 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20284Usually this means the macro was only invoked conditionally." >&5 20285echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20286Usually this means the macro was only invoked conditionally." >&2;} 20287 { (exit 1); exit 1; }; } 20288fi 20289if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20290 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20291Usually this means the macro was only invoked conditionally." >&5 20292echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20293Usually this means the macro was only invoked conditionally." >&2;} 20294 { (exit 1); exit 1; }; } 20295fi 20296if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 20297 { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined. 20298Usually this means the macro was only invoked conditionally." >&5 20299echo "$as_me: error: conditional \"LINT\" was never defined. 20300Usually this means the macro was only invoked conditionally." >&2;} 20301 { (exit 1); exit 1; }; } 20302fi 20303 20304: ${CONFIG_STATUS=./config.status} 20305ac_clean_files_save=$ac_clean_files 20306ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20307{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20308echo "$as_me: creating $CONFIG_STATUS" >&6;} 20309cat >$CONFIG_STATUS <<_ACEOF 20310#! $SHELL 20311# Generated by $as_me. 20312# Run this file to recreate the current configuration. 20313# Compiler output produced by configure, useful for debugging 20314# configure, is in config.log if it exists. 20315 20316debug=false 20317ac_cs_recheck=false 20318ac_cs_silent=false 20319SHELL=\${CONFIG_SHELL-$SHELL} 20320_ACEOF 20321 20322cat >>$CONFIG_STATUS <<\_ACEOF 20323## --------------------- ## 20324## M4sh Initialization. ## 20325## --------------------- ## 20326 20327# Be Bourne compatible 20328if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20329 emulate sh 20330 NULLCMD=: 20331 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20332 # is contrary to our usage. Disable this feature. 20333 alias -g '${1+"$@"}'='"$@"' 20334 setopt NO_GLOB_SUBST 20335else 20336 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 20337fi 20338BIN_SH=xpg4; export BIN_SH # for Tru64 20339DUALCASE=1; export DUALCASE # for MKS sh 20340 20341 20342# PATH needs CR 20343# Avoid depending upon Character Ranges. 20344as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20345as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20346as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20347as_cr_digits='0123456789' 20348as_cr_alnum=$as_cr_Letters$as_cr_digits 20349 20350# The user is always right. 20351if test "${PATH_SEPARATOR+set}" != set; then 20352 echo "#! /bin/sh" >conf$$.sh 20353 echo "exit 0" >>conf$$.sh 20354 chmod +x conf$$.sh 20355 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20356 PATH_SEPARATOR=';' 20357 else 20358 PATH_SEPARATOR=: 20359 fi 20360 rm -f conf$$.sh 20361fi 20362 20363# Support unset when possible. 20364if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20365 as_unset=unset 20366else 20367 as_unset=false 20368fi 20369 20370 20371# IFS 20372# We need space, tab and new line, in precisely that order. Quoting is 20373# there to prevent editors from complaining about space-tab. 20374# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20375# splitting by setting IFS to empty value.) 20376as_nl=' 20377' 20378IFS=" "" $as_nl" 20379 20380# Find who we are. Look in the path if we contain no directory separator. 20381case $0 in 20382 *[\\/]* ) as_myself=$0 ;; 20383 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20384for as_dir in $PATH 20385do 20386 IFS=$as_save_IFS 20387 test -z "$as_dir" && as_dir=. 20388 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20389done 20390IFS=$as_save_IFS 20391 20392 ;; 20393esac 20394# We did not find ourselves, most probably we were run as `sh COMMAND' 20395# in which case we are not to be found in the path. 20396if test "x$as_myself" = x; then 20397 as_myself=$0 20398fi 20399if test ! -f "$as_myself"; then 20400 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20401 { (exit 1); exit 1; } 20402fi 20403 20404# Work around bugs in pre-3.0 UWIN ksh. 20405for as_var in ENV MAIL MAILPATH 20406do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20407done 20408PS1='$ ' 20409PS2='> ' 20410PS4='+ ' 20411 20412# NLS nuisances. 20413for as_var in \ 20414 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20415 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20416 LC_TELEPHONE LC_TIME 20417do 20418 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20419 eval $as_var=C; export $as_var 20420 else 20421 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20422 fi 20423done 20424 20425# Required to use basename. 20426if expr a : '\(a\)' >/dev/null 2>&1 && 20427 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20428 as_expr=expr 20429else 20430 as_expr=false 20431fi 20432 20433if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20434 as_basename=basename 20435else 20436 as_basename=false 20437fi 20438 20439 20440# Name of the executable. 20441as_me=`$as_basename -- "$0" || 20442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20443 X"$0" : 'X\(//\)$' \| \ 20444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20445echo X/"$0" | 20446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20447 s//\1/ 20448 q 20449 } 20450 /^X\/\(\/\/\)$/{ 20451 s//\1/ 20452 q 20453 } 20454 /^X\/\(\/\).*/{ 20455 s//\1/ 20456 q 20457 } 20458 s/.*/./; q'` 20459 20460# CDPATH. 20461$as_unset CDPATH 20462 20463 20464 20465 as_lineno_1=$LINENO 20466 as_lineno_2=$LINENO 20467 test "x$as_lineno_1" != "x$as_lineno_2" && 20468 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 20469 20470 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20471 # uniformly replaced by the line number. The first 'sed' inserts a 20472 # line-number line after each line using $LINENO; the second 'sed' 20473 # does the real work. The second script uses 'N' to pair each 20474 # line-number line with the line containing $LINENO, and appends 20475 # trailing '-' during substitution so that $LINENO is not a special 20476 # case at line end. 20477 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20478 # scripts with optimization help from Paolo Bonzini. Blame Lee 20479 # E. McMahon (1931-1989) for sed's syntax. :-) 20480 sed -n ' 20481 p 20482 /[$]LINENO/= 20483 ' <$as_myself | 20484 sed ' 20485 s/[$]LINENO.*/&-/ 20486 t lineno 20487 b 20488 :lineno 20489 N 20490 :loop 20491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 20492 t loop 20493 s/-\n.*// 20494 ' >$as_me.lineno && 20495 chmod +x "$as_me.lineno" || 20496 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 20497 { (exit 1); exit 1; }; } 20498 20499 # Don't try to exec as it changes $[0], causing all sort of problems 20500 # (the dirname of $[0] is not the place where we might find the 20501 # original and so on. Autoconf is especially sensitive to this). 20502 . "./$as_me.lineno" 20503 # Exit status is that of the last command. 20504 exit 20505} 20506 20507 20508if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20509 as_dirname=dirname 20510else 20511 as_dirname=false 20512fi 20513 20514ECHO_C= ECHO_N= ECHO_T= 20515case `echo -n x` in 20516-n*) 20517 case `echo 'x\c'` in 20518 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20519 *) ECHO_C='\c';; 20520 esac;; 20521*) 20522 ECHO_N='-n';; 20523esac 20524 20525if expr a : '\(a\)' >/dev/null 2>&1 && 20526 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20527 as_expr=expr 20528else 20529 as_expr=false 20530fi 20531 20532rm -f conf$$ conf$$.exe conf$$.file 20533if test -d conf$$.dir; then 20534 rm -f conf$$.dir/conf$$.file 20535else 20536 rm -f conf$$.dir 20537 mkdir conf$$.dir 20538fi 20539echo >conf$$.file 20540if ln -s conf$$.file conf$$ 2>/dev/null; then 20541 as_ln_s='ln -s' 20542 # ... but there are two gotchas: 20543 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20544 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20545 # In both cases, we have to default to `cp -p'. 20546 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20547 as_ln_s='cp -p' 20548elif ln conf$$.file conf$$ 2>/dev/null; then 20549 as_ln_s=ln 20550else 20551 as_ln_s='cp -p' 20552fi 20553rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20554rmdir conf$$.dir 2>/dev/null 20555 20556if mkdir -p . 2>/dev/null; then 20557 as_mkdir_p=: 20558else 20559 test -d ./-p && rmdir ./-p 20560 as_mkdir_p=false 20561fi 20562 20563# Find out whether ``test -x'' works. Don't use a zero-byte file, as 20564# systems may use methods other than mode bits to determine executability. 20565cat >conf$$.file <<_ASEOF 20566#! /bin/sh 20567exit 0 20568_ASEOF 20569chmod +x conf$$.file 20570if test -x conf$$.file >/dev/null 2>&1; then 20571 as_executable_p="test -x" 20572else 20573 as_executable_p=: 20574fi 20575rm -f conf$$.file 20576 20577# Sed expression to map a string onto a valid CPP name. 20578as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20579 20580# Sed expression to map a string onto a valid variable name. 20581as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20582 20583 20584exec 6>&1 20585 20586# Save the log message, to keep $[0] and so on meaningful, and to 20587# report actual input values of CONFIG_FILES etc. instead of their 20588# values after options handling. 20589ac_log=" 20590This file was extended by libfontenc $as_me 1.0.4, which was 20591generated by GNU Autoconf 2.60. Invocation command line was 20592 20593 CONFIG_FILES = $CONFIG_FILES 20594 CONFIG_HEADERS = $CONFIG_HEADERS 20595 CONFIG_LINKS = $CONFIG_LINKS 20596 CONFIG_COMMANDS = $CONFIG_COMMANDS 20597 $ $0 $@ 20598 20599on `(hostname || uname -n) 2>/dev/null | sed 1q` 20600" 20601 20602_ACEOF 20603 20604cat >>$CONFIG_STATUS <<_ACEOF 20605# Files that config.status was made for. 20606config_files="$ac_config_files" 20607config_headers="$ac_config_headers" 20608config_commands="$ac_config_commands" 20609 20610_ACEOF 20611 20612cat >>$CONFIG_STATUS <<\_ACEOF 20613ac_cs_usage="\ 20614\`$as_me' instantiates files from templates according to the 20615current configuration. 20616 20617Usage: $0 [OPTIONS] [FILE]... 20618 20619 -h, --help print this help, then exit 20620 -V, --version print version number, then exit 20621 -q, --quiet do not print progress messages 20622 -d, --debug don't remove temporary files 20623 --recheck update $as_me by reconfiguring in the same conditions 20624 --file=FILE[:TEMPLATE] 20625 instantiate the configuration file FILE 20626 --header=FILE[:TEMPLATE] 20627 instantiate the configuration header FILE 20628 20629Configuration files: 20630$config_files 20631 20632Configuration headers: 20633$config_headers 20634 20635Configuration commands: 20636$config_commands 20637 20638Report bugs to <bug-autoconf@gnu.org>." 20639 20640_ACEOF 20641cat >>$CONFIG_STATUS <<_ACEOF 20642ac_cs_version="\\ 20643libfontenc config.status 1.0.4 20644configured by $0, generated by GNU Autoconf 2.60, 20645 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20646 20647Copyright (C) 2006 Free Software Foundation, Inc. 20648This config.status script is free software; the Free Software Foundation 20649gives unlimited permission to copy, distribute and modify it." 20650 20651ac_pwd='$ac_pwd' 20652srcdir='$srcdir' 20653INSTALL='$INSTALL' 20654_ACEOF 20655 20656cat >>$CONFIG_STATUS <<\_ACEOF 20657# If no file are specified by the user, then we need to provide default 20658# value. By we need to know if files were specified by the user. 20659ac_need_defaults=: 20660while test $# != 0 20661do 20662 case $1 in 20663 --*=*) 20664 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20665 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20666 ac_shift=: 20667 ;; 20668 *) 20669 ac_option=$1 20670 ac_optarg=$2 20671 ac_shift=shift 20672 ;; 20673 esac 20674 20675 case $ac_option in 20676 # Handling of the options. 20677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20678 ac_cs_recheck=: ;; 20679 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20680 echo "$ac_cs_version"; exit ;; 20681 --debug | --debu | --deb | --de | --d | -d ) 20682 debug=: ;; 20683 --file | --fil | --fi | --f ) 20684 $ac_shift 20685 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20686 ac_need_defaults=false;; 20687 --header | --heade | --head | --hea ) 20688 $ac_shift 20689 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20690 ac_need_defaults=false;; 20691 --he | --h) 20692 # Conflict between --help and --header 20693 { echo "$as_me: error: ambiguous option: $1 20694Try \`$0 --help' for more information." >&2 20695 { (exit 1); exit 1; }; };; 20696 --help | --hel | -h ) 20697 echo "$ac_cs_usage"; exit ;; 20698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20699 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20700 ac_cs_silent=: ;; 20701 20702 # This is an error. 20703 -*) { echo "$as_me: error: unrecognized option: $1 20704Try \`$0 --help' for more information." >&2 20705 { (exit 1); exit 1; }; } ;; 20706 20707 *) ac_config_targets="$ac_config_targets $1" 20708 ac_need_defaults=false ;; 20709 20710 esac 20711 shift 20712done 20713 20714ac_configure_extra_args= 20715 20716if $ac_cs_silent; then 20717 exec 6>/dev/null 20718 ac_configure_extra_args="$ac_configure_extra_args --silent" 20719fi 20720 20721_ACEOF 20722cat >>$CONFIG_STATUS <<_ACEOF 20723if \$ac_cs_recheck; then 20724 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20725 CONFIG_SHELL=$SHELL 20726 export CONFIG_SHELL 20727 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20728fi 20729 20730_ACEOF 20731cat >>$CONFIG_STATUS <<\_ACEOF 20732exec 5>>config.log 20733{ 20734 echo 20735 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20736## Running $as_me. ## 20737_ASBOX 20738 echo "$ac_log" 20739} >&5 20740 20741_ACEOF 20742cat >>$CONFIG_STATUS <<_ACEOF 20743# 20744# INIT-COMMANDS 20745# 20746AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20747 20748_ACEOF 20749 20750cat >>$CONFIG_STATUS <<\_ACEOF 20751 20752# Handling of arguments. 20753for ac_config_target in $ac_config_targets 20754do 20755 case $ac_config_target in 20756 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20757 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20758 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20759 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20760 "fontenc.pc") CONFIG_FILES="$CONFIG_FILES fontenc.pc" ;; 20761 20762 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20763echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20764 { (exit 1); exit 1; }; };; 20765 esac 20766done 20767 20768 20769# If the user did not use the arguments to specify the items to instantiate, 20770# then the envvar interface is used. Set only those that are not. 20771# We use the long form for the default assignment because of an extremely 20772# bizarre bug on SunOS 4.1.3. 20773if $ac_need_defaults; then 20774 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20775 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20776 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20777fi 20778 20779# Have a temporary directory for convenience. Make it in the build tree 20780# simply because there is no reason against having it here, and in addition, 20781# creating and moving files from /tmp can sometimes cause problems. 20782# Hook for its removal unless debugging. 20783# Note that there is a small window in which the directory will not be cleaned: 20784# after its creation but before its name has been assigned to `$tmp'. 20785$debug || 20786{ 20787 tmp= 20788 trap 'exit_status=$? 20789 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20790' 0 20791 trap '{ (exit 1); exit 1; }' 1 2 13 15 20792} 20793# Create a (secure) tmp directory for tmp files. 20794 20795{ 20796 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20797 test -n "$tmp" && test -d "$tmp" 20798} || 20799{ 20800 tmp=./conf$$-$RANDOM 20801 (umask 077 && mkdir "$tmp") 20802} || 20803{ 20804 echo "$me: cannot create a temporary directory in ." >&2 20805 { (exit 1); exit 1; } 20806} 20807 20808# 20809# Set up the sed scripts for CONFIG_FILES section. 20810# 20811 20812# No need to generate the scripts if there are no CONFIG_FILES. 20813# This happens for instance when ./config.status config.h 20814if test -n "$CONFIG_FILES"; then 20815 20816_ACEOF 20817 20818 20819 20820ac_delim='%!_!# ' 20821for ac_last_try in false false false false false :; do 20822 cat >conf$$subs.sed <<_ACEOF 20823SHELL!$SHELL$ac_delim 20824PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 20825PACKAGE_NAME!$PACKAGE_NAME$ac_delim 20826PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 20827PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 20828PACKAGE_STRING!$PACKAGE_STRING$ac_delim 20829PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 20830exec_prefix!$exec_prefix$ac_delim 20831prefix!$prefix$ac_delim 20832program_transform_name!$program_transform_name$ac_delim 20833bindir!$bindir$ac_delim 20834sbindir!$sbindir$ac_delim 20835libexecdir!$libexecdir$ac_delim 20836datarootdir!$datarootdir$ac_delim 20837datadir!$datadir$ac_delim 20838sysconfdir!$sysconfdir$ac_delim 20839sharedstatedir!$sharedstatedir$ac_delim 20840localstatedir!$localstatedir$ac_delim 20841includedir!$includedir$ac_delim 20842oldincludedir!$oldincludedir$ac_delim 20843docdir!$docdir$ac_delim 20844infodir!$infodir$ac_delim 20845htmldir!$htmldir$ac_delim 20846dvidir!$dvidir$ac_delim 20847pdfdir!$pdfdir$ac_delim 20848psdir!$psdir$ac_delim 20849libdir!$libdir$ac_delim 20850localedir!$localedir$ac_delim 20851mandir!$mandir$ac_delim 20852DEFS!$DEFS$ac_delim 20853ECHO_C!$ECHO_C$ac_delim 20854ECHO_N!$ECHO_N$ac_delim 20855ECHO_T!$ECHO_T$ac_delim 20856LIBS!$LIBS$ac_delim 20857build_alias!$build_alias$ac_delim 20858host_alias!$host_alias$ac_delim 20859target_alias!$target_alias$ac_delim 20860INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 20861INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 20862INSTALL_DATA!$INSTALL_DATA$ac_delim 20863CYGPATH_W!$CYGPATH_W$ac_delim 20864PACKAGE!$PACKAGE$ac_delim 20865VERSION!$VERSION$ac_delim 20866ACLOCAL!$ACLOCAL$ac_delim 20867AUTOCONF!$AUTOCONF$ac_delim 20868AUTOMAKE!$AUTOMAKE$ac_delim 20869AUTOHEADER!$AUTOHEADER$ac_delim 20870MAKEINFO!$MAKEINFO$ac_delim 20871install_sh!$install_sh$ac_delim 20872STRIP!$STRIP$ac_delim 20873INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 20874mkdir_p!$mkdir_p$ac_delim 20875AWK!$AWK$ac_delim 20876SET_MAKE!$SET_MAKE$ac_delim 20877am__leading_dot!$am__leading_dot$ac_delim 20878AMTAR!$AMTAR$ac_delim 20879am__tar!$am__tar$ac_delim 20880am__untar!$am__untar$ac_delim 20881AMSHOWCMDSAT!$AMSHOWCMDSAT$ac_delim 20882AMDEPSHOWCMDSAT!$AMDEPSHOWCMDSAT$ac_delim 20883AMPRETTYECHO!$AMPRETTYECHO$ac_delim 20884AMCMDECHO!$AMCMDECHO$ac_delim 20885LT_QUIET!$LT_QUIET$ac_delim 20886MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 20887MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 20888MAINT!$MAINT$ac_delim 20889CC!$CC$ac_delim 20890CFLAGS!$CFLAGS$ac_delim 20891LDFLAGS!$LDFLAGS$ac_delim 20892CPPFLAGS!$CPPFLAGS$ac_delim 20893ac_ct_CC!$ac_ct_CC$ac_delim 20894EXEEXT!$EXEEXT$ac_delim 20895OBJEXT!$OBJEXT$ac_delim 20896DEPDIR!$DEPDIR$ac_delim 20897am__include!$am__include$ac_delim 20898am__quote!$am__quote$ac_delim 20899AMDEP_TRUE!$AMDEP_TRUE$ac_delim 20900AMDEP_FALSE!$AMDEP_FALSE$ac_delim 20901AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 20902CCDEPMODE!$CCDEPMODE$ac_delim 20903am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 20904am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 20905build!$build$ac_delim 20906build_cpu!$build_cpu$ac_delim 20907build_vendor!$build_vendor$ac_delim 20908build_os!$build_os$ac_delim 20909host!$host$ac_delim 20910host_cpu!$host_cpu$ac_delim 20911host_vendor!$host_vendor$ac_delim 20912host_os!$host_os$ac_delim 20913GREP!$GREP$ac_delim 20914EGREP!$EGREP$ac_delim 20915LN_S!$LN_S$ac_delim 20916ECHO!$ECHO$ac_delim 20917AR!$AR$ac_delim 20918RANLIB!$RANLIB$ac_delim 20919CPP!$CPP$ac_delim 20920_ACEOF 20921 20922 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 20923 break 20924 elif $ac_last_try; then 20925 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20926echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20927 { (exit 1); exit 1; }; } 20928 else 20929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20930 fi 20931done 20932 20933ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20934if test -n "$ac_eof"; then 20935 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20936 ac_eof=`expr $ac_eof + 1` 20937fi 20938 20939cat >>$CONFIG_STATUS <<_ACEOF 20940cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 20941/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20942_ACEOF 20943sed ' 20944s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20945s/^/s,@/; s/!/@,|#_!!_#|/ 20946:n 20947t n 20948s/'"$ac_delim"'$/,g/; t 20949s/$/\\/; p 20950N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20951' >>$CONFIG_STATUS <conf$$subs.sed 20952rm -f conf$$subs.sed 20953cat >>$CONFIG_STATUS <<_ACEOF 20954CEOF$ac_eof 20955_ACEOF 20956 20957 20958ac_delim='%!_!# ' 20959for ac_last_try in false false false false false :; do 20960 cat >conf$$subs.sed <<_ACEOF 20961CXX!$CXX$ac_delim 20962CXXFLAGS!$CXXFLAGS$ac_delim 20963ac_ct_CXX!$ac_ct_CXX$ac_delim 20964CXXDEPMODE!$CXXDEPMODE$ac_delim 20965am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 20966am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 20967CXXCPP!$CXXCPP$ac_delim 20968F77!$F77$ac_delim 20969FFLAGS!$FFLAGS$ac_delim 20970ac_ct_F77!$ac_ct_F77$ac_delim 20971LIBTOOL!$LIBTOOL$ac_delim 20972ENCODINGSDIR!$ENCODINGSDIR$ac_delim 20973PKG_CONFIG!$PKG_CONFIG$ac_delim 20974FONTENC_CFLAGS!$FONTENC_CFLAGS$ac_delim 20975FONTENC_LIBS!$FONTENC_LIBS$ac_delim 20976LINT!$LINT$ac_delim 20977LINT_FLAGS!$LINT_FLAGS$ac_delim 20978LINT_TRUE!$LINT_TRUE$ac_delim 20979LINT_FALSE!$LINT_FALSE$ac_delim 20980LIBOBJS!$LIBOBJS$ac_delim 20981LTLIBOBJS!$LTLIBOBJS$ac_delim 20982_ACEOF 20983 20984 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then 20985 break 20986 elif $ac_last_try; then 20987 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20988echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20989 { (exit 1); exit 1; }; } 20990 else 20991 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20992 fi 20993done 20994 20995ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20996if test -n "$ac_eof"; then 20997 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20998 ac_eof=`expr $ac_eof + 1` 20999fi 21000 21001cat >>$CONFIG_STATUS <<_ACEOF 21002cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21003/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21004_ACEOF 21005sed ' 21006s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21007s/^/s,@/; s/!/@,|#_!!_#|/ 21008:n 21009t n 21010s/'"$ac_delim"'$/,g/; t 21011s/$/\\/; p 21012N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21013' >>$CONFIG_STATUS <conf$$subs.sed 21014rm -f conf$$subs.sed 21015cat >>$CONFIG_STATUS <<_ACEOF 21016:end 21017s/|#_!!_#|//g 21018CEOF$ac_eof 21019_ACEOF 21020 21021 21022# VPATH may cause trouble with some makes, so we remove $(srcdir), 21023# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21024# trailing colons and then remove the whole line if VPATH becomes empty 21025# (actually we leave an empty line to preserve line numbers). 21026if test "x$srcdir" = x.; then 21027 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21028s/:*\$(srcdir):*/:/ 21029s/:*\${srcdir}:*/:/ 21030s/:*@srcdir@:*/:/ 21031s/^\([^=]*=[ ]*\):*/\1/ 21032s/:*$// 21033s/^[^=]*=[ ]*$// 21034}' 21035fi 21036 21037cat >>$CONFIG_STATUS <<\_ACEOF 21038fi # test -n "$CONFIG_FILES" 21039 21040 21041for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 21042do 21043 case $ac_tag in 21044 :[FHLC]) ac_mode=$ac_tag; continue;; 21045 esac 21046 case $ac_mode$ac_tag in 21047 :[FHL]*:*);; 21048 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21049echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21050 { (exit 1); exit 1; }; };; 21051 :[FH]-) ac_tag=-:-;; 21052 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21053 esac 21054 ac_save_IFS=$IFS 21055 IFS=: 21056 set x $ac_tag 21057 IFS=$ac_save_IFS 21058 shift 21059 ac_file=$1 21060 shift 21061 21062 case $ac_mode in 21063 :L) ac_source=$1;; 21064 :[FH]) 21065 ac_file_inputs= 21066 for ac_f 21067 do 21068 case $ac_f in 21069 -) ac_f="$tmp/stdin";; 21070 *) # Look for the file first in the build tree, then in the source tree 21071 # (if the path is not absolute). The absolute path cannot be DOS-style, 21072 # because $ac_f cannot contain `:'. 21073 test -f "$ac_f" || 21074 case $ac_f in 21075 [\\/$]*) false;; 21076 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21077 esac || 21078 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21079echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21080 { (exit 1); exit 1; }; };; 21081 esac 21082 ac_file_inputs="$ac_file_inputs $ac_f" 21083 done 21084 21085 # Let's still pretend it is `configure' which instantiates (i.e., don't 21086 # use $as_me), people would be surprised to read: 21087 # /* config.h. Generated by config.status. */ 21088 configure_input="Generated from "`IFS=: 21089 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21090 if test x"$ac_file" != x-; then 21091 configure_input="$ac_file. $configure_input" 21092 { echo "$as_me:$LINENO: creating $ac_file" >&5 21093echo "$as_me: creating $ac_file" >&6;} 21094 fi 21095 21096 case $ac_tag in 21097 *:-:* | *:-) cat >"$tmp/stdin";; 21098 esac 21099 ;; 21100 esac 21101 21102 ac_dir=`$as_dirname -- "$ac_file" || 21103$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21104 X"$ac_file" : 'X\(//\)[^/]' \| \ 21105 X"$ac_file" : 'X\(//\)$' \| \ 21106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21107echo X"$ac_file" | 21108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21109 s//\1/ 21110 q 21111 } 21112 /^X\(\/\/\)[^/].*/{ 21113 s//\1/ 21114 q 21115 } 21116 /^X\(\/\/\)$/{ 21117 s//\1/ 21118 q 21119 } 21120 /^X\(\/\).*/{ 21121 s//\1/ 21122 q 21123 } 21124 s/.*/./; q'` 21125 { as_dir="$ac_dir" 21126 case $as_dir in #( 21127 -*) as_dir=./$as_dir;; 21128 esac 21129 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21130 as_dirs= 21131 while :; do 21132 case $as_dir in #( 21133 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21134 *) as_qdir=$as_dir;; 21135 esac 21136 as_dirs="'$as_qdir' $as_dirs" 21137 as_dir=`$as_dirname -- "$as_dir" || 21138$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21139 X"$as_dir" : 'X\(//\)[^/]' \| \ 21140 X"$as_dir" : 'X\(//\)$' \| \ 21141 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21142echo X"$as_dir" | 21143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21144 s//\1/ 21145 q 21146 } 21147 /^X\(\/\/\)[^/].*/{ 21148 s//\1/ 21149 q 21150 } 21151 /^X\(\/\/\)$/{ 21152 s//\1/ 21153 q 21154 } 21155 /^X\(\/\).*/{ 21156 s//\1/ 21157 q 21158 } 21159 s/.*/./; q'` 21160 test -d "$as_dir" && break 21161 done 21162 test -z "$as_dirs" || eval "mkdir $as_dirs" 21163 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21164echo "$as_me: error: cannot create directory $as_dir" >&2;} 21165 { (exit 1); exit 1; }; }; } 21166 ac_builddir=. 21167 21168case "$ac_dir" in 21169.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21170*) 21171 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21172 # A ".." for each directory in $ac_dir_suffix. 21173 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21174 case $ac_top_builddir_sub in 21175 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21176 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21177 esac ;; 21178esac 21179ac_abs_top_builddir=$ac_pwd 21180ac_abs_builddir=$ac_pwd$ac_dir_suffix 21181# for backward compatibility: 21182ac_top_builddir=$ac_top_build_prefix 21183 21184case $srcdir in 21185 .) # We are building in place. 21186 ac_srcdir=. 21187 ac_top_srcdir=$ac_top_builddir_sub 21188 ac_abs_top_srcdir=$ac_pwd ;; 21189 [\\/]* | ?:[\\/]* ) # Absolute name. 21190 ac_srcdir=$srcdir$ac_dir_suffix; 21191 ac_top_srcdir=$srcdir 21192 ac_abs_top_srcdir=$srcdir ;; 21193 *) # Relative name. 21194 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21195 ac_top_srcdir=$ac_top_build_prefix$srcdir 21196 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21197esac 21198ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21199 21200 21201 case $ac_mode in 21202 :F) 21203 # 21204 # CONFIG_FILE 21205 # 21206 21207 case $INSTALL in 21208 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21209 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21210 esac 21211_ACEOF 21212 21213cat >>$CONFIG_STATUS <<\_ACEOF 21214# If the template does not know about datarootdir, expand it. 21215# FIXME: This hack should be removed a few years after 2.60. 21216ac_datarootdir_hack=; ac_datarootdir_seen= 21217 21218case `sed -n '/datarootdir/ { 21219 p 21220 q 21221} 21222/@datadir@/p 21223/@docdir@/p 21224/@infodir@/p 21225/@localedir@/p 21226/@mandir@/p 21227' $ac_file_inputs` in 21228*datarootdir*) ac_datarootdir_seen=yes;; 21229*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21230 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21231echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21232_ACEOF 21233cat >>$CONFIG_STATUS <<_ACEOF 21234 ac_datarootdir_hack=' 21235 s&@datadir@&$datadir&g 21236 s&@docdir@&$docdir&g 21237 s&@infodir@&$infodir&g 21238 s&@localedir@&$localedir&g 21239 s&@mandir@&$mandir&g 21240 s&\\\${datarootdir}&$datarootdir&g' ;; 21241esac 21242_ACEOF 21243 21244# Neutralize VPATH when `$srcdir' = `.'. 21245# Shell code in configure.ac might set extrasub. 21246# FIXME: do we really want to maintain this feature? 21247cat >>$CONFIG_STATUS <<_ACEOF 21248 sed "$ac_vpsub 21249$extrasub 21250_ACEOF 21251cat >>$CONFIG_STATUS <<\_ACEOF 21252:t 21253/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21254s&@configure_input@&$configure_input&;t t 21255s&@top_builddir@&$ac_top_builddir_sub&;t t 21256s&@srcdir@&$ac_srcdir&;t t 21257s&@abs_srcdir@&$ac_abs_srcdir&;t t 21258s&@top_srcdir@&$ac_top_srcdir&;t t 21259s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21260s&@builddir@&$ac_builddir&;t t 21261s&@abs_builddir@&$ac_abs_builddir&;t t 21262s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21263s&@INSTALL@&$ac_INSTALL&;t t 21264$ac_datarootdir_hack 21265" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 21266 21267test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21268 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21269 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21270 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21271which seems to be undefined. Please make sure it is defined." >&5 21272echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21273which seems to be undefined. Please make sure it is defined." >&2;} 21274 21275 rm -f "$tmp/stdin" 21276 case $ac_file in 21277 -) cat "$tmp/out"; rm -f "$tmp/out";; 21278 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 21279 esac 21280 ;; 21281 :H) 21282 # 21283 # CONFIG_HEADER 21284 # 21285_ACEOF 21286 21287# Transform confdefs.h into a sed script `conftest.defines', that 21288# substitutes the proper values into config.h.in to produce config.h. 21289rm -f conftest.defines conftest.tail 21290# First, append a space to every undef/define line, to ease matching. 21291echo 's/$/ /' >conftest.defines 21292# Then, protect against being on the right side of a sed subst, or in 21293# an unquoted here document, in config.status. If some macros were 21294# called several times there might be several #defines for the same 21295# symbol, which is useless. But do not sort them, since the last 21296# AC_DEFINE must be honored. 21297ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21298# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 21299# NAME is the cpp macro being defined, VALUE is the value it is being given. 21300# PARAMS is the parameter list in the macro definition--in most cases, it's 21301# just an empty string. 21302ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 21303ac_dB='\\)[ (].*,\\1define\\2' 21304ac_dC=' ' 21305ac_dD=' ,' 21306 21307uniq confdefs.h | 21308 sed -n ' 21309 t rset 21310 :rset 21311 s/^[ ]*#[ ]*define[ ][ ]*// 21312 t ok 21313 d 21314 :ok 21315 s/[\\&,]/\\&/g 21316 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 21317 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 21318 ' >>conftest.defines 21319 21320# Remove the space that was appended to ease matching. 21321# Then replace #undef with comments. This is necessary, for 21322# example, in the case of _POSIX_SOURCE, which is predefined and required 21323# on some systems where configure will not decide to define it. 21324# (The regexp can be short, since the line contains either #define or #undef.) 21325echo 's/ $// 21326s,^[ #]*u.*,/* & */,' >>conftest.defines 21327 21328# Break up conftest.defines: 21329ac_max_sed_lines=50 21330 21331# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 21332# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 21333# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 21334# et cetera. 21335ac_in='$ac_file_inputs' 21336ac_out='"$tmp/out1"' 21337ac_nxt='"$tmp/out2"' 21338 21339while : 21340do 21341 # Write a here document: 21342 cat >>$CONFIG_STATUS <<_ACEOF 21343 # First, check the format of the line: 21344 cat >"\$tmp/defines.sed" <<\\CEOF 21345/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 21346/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 21347b 21348:def 21349_ACEOF 21350 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 21351 echo 'CEOF 21352 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 21353 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 21354 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 21355 grep . conftest.tail >/dev/null || break 21356 rm -f conftest.defines 21357 mv conftest.tail conftest.defines 21358done 21359rm -f conftest.defines conftest.tail 21360 21361echo "ac_result=$ac_in" >>$CONFIG_STATUS 21362cat >>$CONFIG_STATUS <<\_ACEOF 21363 if test x"$ac_file" != x-; then 21364 echo "/* $configure_input */" >"$tmp/config.h" 21365 cat "$ac_result" >>"$tmp/config.h" 21366 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 21367 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21368echo "$as_me: $ac_file is unchanged" >&6;} 21369 else 21370 rm -f $ac_file 21371 mv "$tmp/config.h" $ac_file 21372 fi 21373 else 21374 echo "/* $configure_input */" 21375 cat "$ac_result" 21376 fi 21377 rm -f "$tmp/out12" 21378# Compute $ac_file's index in $config_headers. 21379_am_stamp_count=1 21380for _am_header in $config_headers :; do 21381 case $_am_header in 21382 $ac_file | $ac_file:* ) 21383 break ;; 21384 * ) 21385 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21386 esac 21387done 21388echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 21389$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21390 X$ac_file : 'X\(//\)[^/]' \| \ 21391 X$ac_file : 'X\(//\)$' \| \ 21392 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 21393echo X$ac_file | 21394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21395 s//\1/ 21396 q 21397 } 21398 /^X\(\/\/\)[^/].*/{ 21399 s//\1/ 21400 q 21401 } 21402 /^X\(\/\/\)$/{ 21403 s//\1/ 21404 q 21405 } 21406 /^X\(\/\).*/{ 21407 s//\1/ 21408 q 21409 } 21410 s/.*/./; q'`/stamp-h$_am_stamp_count 21411 ;; 21412 21413 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 21414echo "$as_me: executing $ac_file commands" >&6;} 21415 ;; 21416 esac 21417 21418 21419 case $ac_file$ac_mode in 21420 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21421 # Strip MF so we end up with the name of the file. 21422 mf=`echo "$mf" | sed -e 's/:.*$//'` 21423 # Check whether this is an Automake generated Makefile or not. 21424 # We used to match only the files named `Makefile.in', but 21425 # some people rename them; so instead we look at the file content. 21426 # Grep'ing the first line is not enough: some people post-process 21427 # each Makefile.in and add a new line on top of each file to say so. 21428 # So let's grep whole file. 21429 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21430 dirpart=`$as_dirname -- "$mf" || 21431$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21432 X"$mf" : 'X\(//\)[^/]' \| \ 21433 X"$mf" : 'X\(//\)$' \| \ 21434 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21435echo X"$mf" | 21436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21437 s//\1/ 21438 q 21439 } 21440 /^X\(\/\/\)[^/].*/{ 21441 s//\1/ 21442 q 21443 } 21444 /^X\(\/\/\)$/{ 21445 s//\1/ 21446 q 21447 } 21448 /^X\(\/\).*/{ 21449 s//\1/ 21450 q 21451 } 21452 s/.*/./; q'` 21453 else 21454 continue 21455 fi 21456 # Extract the definition of DEPDIR, am__include, and am__quote 21457 # from the Makefile without running `make'. 21458 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21459 test -z "$DEPDIR" && continue 21460 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21461 test -z "am__include" && continue 21462 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21463 # When using ansi2knr, U may be empty or an underscore; expand it 21464 U=`sed -n 's/^U = //p' < "$mf"` 21465 # Find all dependency output files, they are included files with 21466 # $(DEPDIR) in their names. We invoke sed twice because it is the 21467 # simplest approach to changing $(DEPDIR) to its actual value in the 21468 # expansion. 21469 for file in `sed -n " 21470 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21471 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21472 # Make sure the directory exists. 21473 test -f "$dirpart/$file" && continue 21474 fdir=`$as_dirname -- "$file" || 21475$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21476 X"$file" : 'X\(//\)[^/]' \| \ 21477 X"$file" : 'X\(//\)$' \| \ 21478 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21479echo X"$file" | 21480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21481 s//\1/ 21482 q 21483 } 21484 /^X\(\/\/\)[^/].*/{ 21485 s//\1/ 21486 q 21487 } 21488 /^X\(\/\/\)$/{ 21489 s//\1/ 21490 q 21491 } 21492 /^X\(\/\).*/{ 21493 s//\1/ 21494 q 21495 } 21496 s/.*/./; q'` 21497 { as_dir=$dirpart/$fdir 21498 case $as_dir in #( 21499 -*) as_dir=./$as_dir;; 21500 esac 21501 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21502 as_dirs= 21503 while :; do 21504 case $as_dir in #( 21505 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21506 *) as_qdir=$as_dir;; 21507 esac 21508 as_dirs="'$as_qdir' $as_dirs" 21509 as_dir=`$as_dirname -- "$as_dir" || 21510$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21511 X"$as_dir" : 'X\(//\)[^/]' \| \ 21512 X"$as_dir" : 'X\(//\)$' \| \ 21513 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21514echo X"$as_dir" | 21515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21516 s//\1/ 21517 q 21518 } 21519 /^X\(\/\/\)[^/].*/{ 21520 s//\1/ 21521 q 21522 } 21523 /^X\(\/\/\)$/{ 21524 s//\1/ 21525 q 21526 } 21527 /^X\(\/\).*/{ 21528 s//\1/ 21529 q 21530 } 21531 s/.*/./; q'` 21532 test -d "$as_dir" && break 21533 done 21534 test -z "$as_dirs" || eval "mkdir $as_dirs" 21535 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21536echo "$as_me: error: cannot create directory $as_dir" >&2;} 21537 { (exit 1); exit 1; }; }; } 21538 # echo "creating $dirpart/$file" 21539 echo '# dummy' > "$dirpart/$file" 21540 done 21541done 21542 ;; 21543 21544 esac 21545done # for ac_tag 21546 21547 21548{ (exit 0); exit 0; } 21549_ACEOF 21550chmod +x $CONFIG_STATUS 21551ac_clean_files=$ac_clean_files_save 21552 21553 21554# configure is writing to config.log, and then calls config.status. 21555# config.status does its own redirection, appending to config.log. 21556# Unfortunately, on DOS this fails, as config.log is still kept open 21557# by configure, so config.status won't be able to write to it; its 21558# output is simply discarded. So we exec the FD to /dev/null, 21559# effectively closing config.log, so it can be properly (re)opened and 21560# appended to by config.status. When coming back to configure, we 21561# need to make the FD available again. 21562if test "$no_create" != yes; then 21563 ac_cs_success=: 21564 ac_config_status_args= 21565 test "$silent" = yes && 21566 ac_config_status_args="$ac_config_status_args --quiet" 21567 exec 5>/dev/null 21568 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21569 exec 5>>config.log 21570 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21571 # would make configure fail if this is the last instruction. 21572 $ac_cs_success || { (exit 1); exit 1; } 21573fi 21574 21575