configure revision 27702724
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for libXau 1.0.3. 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='libXau' 715PACKAGE_TARNAME='libXau' 716PACKAGE_VERSION='1.0.3' 717PACKAGE_STRING='libXau 1.0.3' 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 838LN_S 839build 840build_cpu 841build_vendor 842build_os 843host 844host_cpu 845host_vendor 846host_os 847GREP 848EGREP 849ECHO 850AR 851RANLIB 852DLLTOOL 853AS 854OBJDUMP 855CPP 856CXX 857CXXFLAGS 858ac_ct_CXX 859CXXDEPMODE 860am__fastdepCXX_TRUE 861am__fastdepCXX_FALSE 862CXXCPP 863F77 864FFLAGS 865ac_ct_F77 866LIBTOOL 867PKG_CONFIG 868XAU_CFLAGS 869XAU_LIBS 870KERBEROS_TRUE 871KERBEROS_FALSE 872LINT 873LINT_FLAGS 874LINT_TRUE 875LINT_FALSE 876LINTLIB 877MAKE_LINT_LIB_TRUE 878MAKE_LINT_LIB_FALSE 879APP_MAN_SUFFIX 880LIB_MAN_SUFFIX 881FILE_MAN_SUFFIX 882MISC_MAN_SUFFIX 883DRIVER_MAN_SUFFIX 884ADMIN_MAN_SUFFIX 885APP_MAN_DIR 886LIB_MAN_DIR 887FILE_MAN_DIR 888MISC_MAN_DIR 889DRIVER_MAN_DIR 890ADMIN_MAN_DIR 891LIBOBJS 892LTLIBOBJS' 893ac_subst_files='' 894 ac_precious_vars='build_alias 895host_alias 896target_alias 897CC 898CFLAGS 899LDFLAGS 900CPPFLAGS 901CPP 902CXX 903CXXFLAGS 904CCC 905CXXCPP 906F77 907FFLAGS 908PKG_CONFIG 909XAU_CFLAGS 910XAU_LIBS' 911 912 913# Initialize some variables set by options. 914ac_init_help= 915ac_init_version=false 916# The variables have the same names as the options, with 917# dashes changed to underlines. 918cache_file=/dev/null 919exec_prefix=NONE 920no_create= 921no_recursion= 922prefix=NONE 923program_prefix=NONE 924program_suffix=NONE 925program_transform_name=s,x,x, 926silent= 927site= 928srcdir= 929verbose= 930x_includes=NONE 931x_libraries=NONE 932 933# Installation directory options. 934# These are left unexpanded so users can "make install exec_prefix=/foo" 935# and all the variables that are supposed to be based on exec_prefix 936# by default will actually change. 937# Use braces instead of parens because sh, perl, etc. also accept them. 938# (The list follows the same order as the GNU Coding Standards.) 939bindir='${exec_prefix}/bin' 940sbindir='${exec_prefix}/sbin' 941libexecdir='${exec_prefix}/libexec' 942datarootdir='${prefix}/share' 943datadir='${datarootdir}' 944sysconfdir='${prefix}/etc' 945sharedstatedir='${prefix}/com' 946localstatedir='${prefix}/var' 947includedir='${prefix}/include' 948oldincludedir='/usr/include' 949docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 950infodir='${datarootdir}/info' 951htmldir='${docdir}' 952dvidir='${docdir}' 953pdfdir='${docdir}' 954psdir='${docdir}' 955libdir='${exec_prefix}/lib' 956localedir='${datarootdir}/locale' 957mandir='${datarootdir}/man' 958 959ac_prev= 960ac_dashdash= 961for ac_option 962do 963 # If the previous option needs an argument, assign it. 964 if test -n "$ac_prev"; then 965 eval $ac_prev=\$ac_option 966 ac_prev= 967 continue 968 fi 969 970 case $ac_option in 971 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 972 *) ac_optarg=yes ;; 973 esac 974 975 # Accept the important Cygnus configure options, so we can diagnose typos. 976 977 case $ac_dashdash$ac_option in 978 --) 979 ac_dashdash=yes ;; 980 981 -bindir | --bindir | --bindi | --bind | --bin | --bi) 982 ac_prev=bindir ;; 983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 984 bindir=$ac_optarg ;; 985 986 -build | --build | --buil | --bui | --bu) 987 ac_prev=build_alias ;; 988 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 989 build_alias=$ac_optarg ;; 990 991 -cache-file | --cache-file | --cache-fil | --cache-fi \ 992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 993 ac_prev=cache_file ;; 994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 996 cache_file=$ac_optarg ;; 997 998 --config-cache | -C) 999 cache_file=config.cache ;; 1000 1001 -datadir | --datadir | --datadi | --datad) 1002 ac_prev=datadir ;; 1003 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1004 datadir=$ac_optarg ;; 1005 1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1007 | --dataroo | --dataro | --datar) 1008 ac_prev=datarootdir ;; 1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1011 datarootdir=$ac_optarg ;; 1012 1013 -disable-* | --disable-*) 1014 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 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=no ;; 1021 1022 -docdir | --docdir | --docdi | --doc | --do) 1023 ac_prev=docdir ;; 1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1025 docdir=$ac_optarg ;; 1026 1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1028 ac_prev=dvidir ;; 1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1030 dvidir=$ac_optarg ;; 1031 1032 -enable-* | --enable-*) 1033 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1034 # Reject names that are not valid shell variable names. 1035 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1036 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1037 { (exit 1); exit 1; }; } 1038 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1039 eval enable_$ac_feature=\$ac_optarg ;; 1040 1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1043 | --exec | --exe | --ex) 1044 ac_prev=exec_prefix ;; 1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1047 | --exec=* | --exe=* | --ex=*) 1048 exec_prefix=$ac_optarg ;; 1049 1050 -gas | --gas | --ga | --g) 1051 # Obsolete; use --with-gas. 1052 with_gas=yes ;; 1053 1054 -help | --help | --hel | --he | -h) 1055 ac_init_help=long ;; 1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1057 ac_init_help=recursive ;; 1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1059 ac_init_help=short ;; 1060 1061 -host | --host | --hos | --ho) 1062 ac_prev=host_alias ;; 1063 -host=* | --host=* | --hos=* | --ho=*) 1064 host_alias=$ac_optarg ;; 1065 1066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1067 ac_prev=htmldir ;; 1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1069 | --ht=*) 1070 htmldir=$ac_optarg ;; 1071 1072 -includedir | --includedir | --includedi | --included | --include \ 1073 | --includ | --inclu | --incl | --inc) 1074 ac_prev=includedir ;; 1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1076 | --includ=* | --inclu=* | --incl=* | --inc=*) 1077 includedir=$ac_optarg ;; 1078 1079 -infodir | --infodir | --infodi | --infod | --info | --inf) 1080 ac_prev=infodir ;; 1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1082 infodir=$ac_optarg ;; 1083 1084 -libdir | --libdir | --libdi | --libd) 1085 ac_prev=libdir ;; 1086 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1087 libdir=$ac_optarg ;; 1088 1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1090 | --libexe | --libex | --libe) 1091 ac_prev=libexecdir ;; 1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1093 | --libexe=* | --libex=* | --libe=*) 1094 libexecdir=$ac_optarg ;; 1095 1096 -localedir | --localedir | --localedi | --localed | --locale) 1097 ac_prev=localedir ;; 1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1099 localedir=$ac_optarg ;; 1100 1101 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1102 | --localstate | --localstat | --localsta | --localst | --locals) 1103 ac_prev=localstatedir ;; 1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1106 localstatedir=$ac_optarg ;; 1107 1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1109 ac_prev=mandir ;; 1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1111 mandir=$ac_optarg ;; 1112 1113 -nfp | --nfp | --nf) 1114 # Obsolete; use --without-fp. 1115 with_fp=no ;; 1116 1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1118 | --no-cr | --no-c | -n) 1119 no_create=yes ;; 1120 1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1123 no_recursion=yes ;; 1124 1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1127 | --oldin | --oldi | --old | --ol | --o) 1128 ac_prev=oldincludedir ;; 1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1132 oldincludedir=$ac_optarg ;; 1133 1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1135 ac_prev=prefix ;; 1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1137 prefix=$ac_optarg ;; 1138 1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1140 | --program-pre | --program-pr | --program-p) 1141 ac_prev=program_prefix ;; 1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1144 program_prefix=$ac_optarg ;; 1145 1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1147 | --program-suf | --program-su | --program-s) 1148 ac_prev=program_suffix ;; 1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1151 program_suffix=$ac_optarg ;; 1152 1153 -program-transform-name | --program-transform-name \ 1154 | --program-transform-nam | --program-transform-na \ 1155 | --program-transform-n | --program-transform- \ 1156 | --program-transform | --program-transfor \ 1157 | --program-transfo | --program-transf \ 1158 | --program-trans | --program-tran \ 1159 | --progr-tra | --program-tr | --program-t) 1160 ac_prev=program_transform_name ;; 1161 -program-transform-name=* | --program-transform-name=* \ 1162 | --program-transform-nam=* | --program-transform-na=* \ 1163 | --program-transform-n=* | --program-transform-=* \ 1164 | --program-transform=* | --program-transfor=* \ 1165 | --program-transfo=* | --program-transf=* \ 1166 | --program-trans=* | --program-tran=* \ 1167 | --progr-tra=* | --program-tr=* | --program-t=*) 1168 program_transform_name=$ac_optarg ;; 1169 1170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1171 ac_prev=pdfdir ;; 1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1173 pdfdir=$ac_optarg ;; 1174 1175 -psdir | --psdir | --psdi | --psd | --ps) 1176 ac_prev=psdir ;; 1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1178 psdir=$ac_optarg ;; 1179 1180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1181 | -silent | --silent | --silen | --sile | --sil) 1182 silent=yes ;; 1183 1184 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1185 ac_prev=sbindir ;; 1186 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1187 | --sbi=* | --sb=*) 1188 sbindir=$ac_optarg ;; 1189 1190 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1191 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1192 | --sharedst | --shareds | --shared | --share | --shar \ 1193 | --sha | --sh) 1194 ac_prev=sharedstatedir ;; 1195 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1196 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1197 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1198 | --sha=* | --sh=*) 1199 sharedstatedir=$ac_optarg ;; 1200 1201 -site | --site | --sit) 1202 ac_prev=site ;; 1203 -site=* | --site=* | --sit=*) 1204 site=$ac_optarg ;; 1205 1206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1207 ac_prev=srcdir ;; 1208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1209 srcdir=$ac_optarg ;; 1210 1211 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1212 | --syscon | --sysco | --sysc | --sys | --sy) 1213 ac_prev=sysconfdir ;; 1214 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1215 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1216 sysconfdir=$ac_optarg ;; 1217 1218 -target | --target | --targe | --targ | --tar | --ta | --t) 1219 ac_prev=target_alias ;; 1220 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1221 target_alias=$ac_optarg ;; 1222 1223 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1224 verbose=yes ;; 1225 1226 -version | --version | --versio | --versi | --vers | -V) 1227 ac_init_version=: ;; 1228 1229 -with-* | --with-*) 1230 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1231 # Reject names that are not valid shell variable names. 1232 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1233 { echo "$as_me: error: invalid package name: $ac_package" >&2 1234 { (exit 1); exit 1; }; } 1235 ac_package=`echo $ac_package| sed 's/-/_/g'` 1236 eval with_$ac_package=\$ac_optarg ;; 1237 1238 -without-* | --without-*) 1239 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1240 # Reject names that are not valid shell variable names. 1241 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1242 { echo "$as_me: error: invalid package name: $ac_package" >&2 1243 { (exit 1); exit 1; }; } 1244 ac_package=`echo $ac_package | sed 's/-/_/g'` 1245 eval with_$ac_package=no ;; 1246 1247 --x) 1248 # Obsolete; use --with-x. 1249 with_x=yes ;; 1250 1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1252 | --x-incl | --x-inc | --x-in | --x-i) 1253 ac_prev=x_includes ;; 1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1256 x_includes=$ac_optarg ;; 1257 1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1260 ac_prev=x_libraries ;; 1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1263 x_libraries=$ac_optarg ;; 1264 1265 -*) { echo "$as_me: error: unrecognized option: $ac_option 1266Try \`$0 --help' for more information." >&2 1267 { (exit 1); exit 1; }; } 1268 ;; 1269 1270 *=*) 1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1272 # Reject names that are not valid shell variable names. 1273 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1274 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1275 { (exit 1); exit 1; }; } 1276 eval $ac_envvar=\$ac_optarg 1277 export $ac_envvar ;; 1278 1279 *) 1280 # FIXME: should be removed in autoconf 3.0. 1281 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1283 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1285 ;; 1286 1287 esac 1288done 1289 1290if test -n "$ac_prev"; then 1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1292 { echo "$as_me: error: missing argument to $ac_option" >&2 1293 { (exit 1); exit 1; }; } 1294fi 1295 1296# Be sure to have absolute directory names. 1297for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1298 datadir sysconfdir sharedstatedir localstatedir includedir \ 1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1300 libdir localedir mandir 1301do 1302 eval ac_val=\$$ac_var 1303 case $ac_val in 1304 [\\/$]* | ?:[\\/]* ) continue;; 1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1306 esac 1307 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1308 { (exit 1); exit 1; }; } 1309done 1310 1311# There might be people who depend on the old broken behavior: `$host' 1312# used to hold the argument of --host etc. 1313# FIXME: To remove some day. 1314build=$build_alias 1315host=$host_alias 1316target=$target_alias 1317 1318# FIXME: To remove some day. 1319if test "x$host_alias" != x; then 1320 if test "x$build_alias" = x; then 1321 cross_compiling=maybe 1322 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1323 If a cross compiler is detected then cross compile mode will be used." >&2 1324 elif test "x$build_alias" != "x$host_alias"; then 1325 cross_compiling=yes 1326 fi 1327fi 1328 1329ac_tool_prefix= 1330test -n "$host_alias" && ac_tool_prefix=$host_alias- 1331 1332test "$silent" = yes && exec 6>/dev/null 1333 1334 1335ac_pwd=`pwd` && test -n "$ac_pwd" && 1336ac_ls_di=`ls -di .` && 1337ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1338 { echo "$as_me: error: Working directory cannot be determined" >&2 1339 { (exit 1); exit 1; }; } 1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1341 { echo "$as_me: error: pwd does not report name of working directory" >&2 1342 { (exit 1); exit 1; }; } 1343 1344 1345# Find the source files, if location was not specified. 1346if test -z "$srcdir"; then 1347 ac_srcdir_defaulted=yes 1348 # Try the directory containing this script, then the parent directory. 1349 ac_confdir=`$as_dirname -- "$0" || 1350$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1351 X"$0" : 'X\(//\)[^/]' \| \ 1352 X"$0" : 'X\(//\)$' \| \ 1353 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1354echo X"$0" | 1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)[^/].*/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\/\)$/{ 1364 s//\1/ 1365 q 1366 } 1367 /^X\(\/\).*/{ 1368 s//\1/ 1369 q 1370 } 1371 s/.*/./; q'` 1372 srcdir=$ac_confdir 1373 if test ! -r "$srcdir/$ac_unique_file"; then 1374 srcdir=.. 1375 fi 1376else 1377 ac_srcdir_defaulted=no 1378fi 1379if test ! -r "$srcdir/$ac_unique_file"; then 1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1381 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1382 { (exit 1); exit 1; }; } 1383fi 1384ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1385ac_abs_confdir=`( 1386 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1387 { (exit 1); exit 1; }; } 1388 pwd)` 1389# When building in place, set srcdir=. 1390if test "$ac_abs_confdir" = "$ac_pwd"; then 1391 srcdir=. 1392fi 1393# Remove unnecessary trailing slashes from srcdir. 1394# Double slashes in file names in object file debugging info 1395# mess up M-x gdb in Emacs. 1396case $srcdir in 1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1398esac 1399for ac_var in $ac_precious_vars; do 1400 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_env_${ac_var}_value=\$${ac_var} 1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1403 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1404done 1405 1406# 1407# Report the --help message. 1408# 1409if test "$ac_init_help" = "long"; then 1410 # Omit some internal or obsolete options to make the list less imposing. 1411 # This message is too long to be a string in the A/UX 3.1 sh. 1412 cat <<_ACEOF 1413\`configure' configures libXau 1.0.3 to adapt to many kinds of systems. 1414 1415Usage: $0 [OPTION]... [VAR=VALUE]... 1416 1417To assign environment variables (e.g., CC, CFLAGS...), specify them as 1418VAR=VALUE. See below for descriptions of some of the useful variables. 1419 1420Defaults for the options are specified in brackets. 1421 1422Configuration: 1423 -h, --help display this help and exit 1424 --help=short display options specific to this package 1425 --help=recursive display the short help of all the included packages 1426 -V, --version display version information and exit 1427 -q, --quiet, --silent do not print \`checking...' messages 1428 --cache-file=FILE cache test results in FILE [disabled] 1429 -C, --config-cache alias for \`--cache-file=config.cache' 1430 -n, --no-create do not create output files 1431 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1432 1433Installation directories: 1434 --prefix=PREFIX install architecture-independent files in PREFIX 1435 [$ac_default_prefix] 1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1437 [PREFIX] 1438 1439By default, \`make install' will install all the files in 1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1441an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1442for instance \`--prefix=\$HOME'. 1443 1444For better control, use the options below. 1445 1446Fine tuning of the installation directories: 1447 --bindir=DIR user executables [EPREFIX/bin] 1448 --sbindir=DIR system admin executables [EPREFIX/sbin] 1449 --libexecdir=DIR program executables [EPREFIX/libexec] 1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1453 --libdir=DIR object code libraries [EPREFIX/lib] 1454 --includedir=DIR C header files [PREFIX/include] 1455 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1458 --infodir=DIR info documentation [DATAROOTDIR/info] 1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1460 --mandir=DIR man documentation [DATAROOTDIR/man] 1461 --docdir=DIR documentation root [DATAROOTDIR/doc/libXau] 1462 --htmldir=DIR html documentation [DOCDIR] 1463 --dvidir=DIR dvi documentation [DOCDIR] 1464 --pdfdir=DIR pdf documentation [DOCDIR] 1465 --psdir=DIR ps documentation [DOCDIR] 1466_ACEOF 1467 1468 cat <<\_ACEOF 1469 1470Program names: 1471 --program-prefix=PREFIX prepend PREFIX to installed program names 1472 --program-suffix=SUFFIX append SUFFIX to installed program names 1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1474 1475System types: 1476 --build=BUILD configure for building on BUILD [guessed] 1477 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1478_ACEOF 1479fi 1480 1481if test -n "$ac_init_help"; then 1482 case $ac_init_help in 1483 short | recursive ) echo "Configuration of libXau 1.0.3:";; 1484 esac 1485 cat <<\_ACEOF 1486 1487Optional Features: 1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1490 --disable-pretty-cmds show all commands executed 1491 --enable-pretty-cmds do not output the entire command lines 1492 --enable-maintainer-mode enable make rules and dependencies not useful 1493 (and sometimes confusing) to the casual installer 1494 --disable-dependency-tracking speeds up one-time build 1495 --enable-dependency-tracking do not reject slow dependency extractors 1496 --enable-shared[=PKGS] build shared libraries [default=yes] 1497 --enable-static[=PKGS] build static libraries [default=yes] 1498 --enable-fast-install[=PKGS] 1499 optimize for fast installation [default=yes] 1500 --disable-libtool-lock avoid locking (might break parallel builds) 1501 --disable-xthreads Disable libXau support for Multithreading 1502 --enable-lint-library Create lint library (default: disabled) 1503 1504Optional Packages: 1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1508 --with-pic try to use only PIC/non-PIC objects [default=use 1509 both] 1510 --with-tags[=TAGS] include additional configurations [automatic] 1511 --with-lint Use a lint-style source code checker (default: 1512 disabled) 1513 --with-release-version=STRING 1514 Use release version string in package name 1515 1516Some influential environment variables: 1517 CC C compiler command 1518 CFLAGS C compiler flags 1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1520 nonstandard directory <lib dir> 1521 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1522 you have headers in a nonstandard directory <include dir> 1523 CPP C preprocessor 1524 CXX C++ compiler command 1525 CXXFLAGS C++ compiler flags 1526 CXXCPP C++ preprocessor 1527 F77 Fortran 77 compiler command 1528 FFLAGS Fortran 77 compiler flags 1529 PKG_CONFIG path to pkg-config utility 1530 XAU_CFLAGS C compiler flags for XAU, overriding pkg-config 1531 XAU_LIBS linker flags for XAU, overriding pkg-config 1532 1533Use these variables to override the choices made by `configure' or to help 1534it to find libraries and programs with nonstandard names/locations. 1535 1536Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1537_ACEOF 1538ac_status=$? 1539fi 1540 1541if test "$ac_init_help" = "recursive"; then 1542 # If there are subdirs, report their specific --help. 1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1544 test -d "$ac_dir" || continue 1545 ac_builddir=. 1546 1547case "$ac_dir" in 1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1549*) 1550 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1551 # A ".." for each directory in $ac_dir_suffix. 1552 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1553 case $ac_top_builddir_sub in 1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1556 esac ;; 1557esac 1558ac_abs_top_builddir=$ac_pwd 1559ac_abs_builddir=$ac_pwd$ac_dir_suffix 1560# for backward compatibility: 1561ac_top_builddir=$ac_top_build_prefix 1562 1563case $srcdir in 1564 .) # We are building in place. 1565 ac_srcdir=. 1566 ac_top_srcdir=$ac_top_builddir_sub 1567 ac_abs_top_srcdir=$ac_pwd ;; 1568 [\\/]* | ?:[\\/]* ) # Absolute name. 1569 ac_srcdir=$srcdir$ac_dir_suffix; 1570 ac_top_srcdir=$srcdir 1571 ac_abs_top_srcdir=$srcdir ;; 1572 *) # Relative name. 1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1574 ac_top_srcdir=$ac_top_build_prefix$srcdir 1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1576esac 1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1578 1579 cd "$ac_dir" || { ac_status=$?; continue; } 1580 # Check for guested configure. 1581 if test -f "$ac_srcdir/configure.gnu"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1584 elif test -f "$ac_srcdir/configure"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure" --help=recursive 1587 else 1588 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1589 fi || ac_status=$? 1590 cd "$ac_pwd" || { ac_status=$?; break; } 1591 done 1592fi 1593 1594test -n "$ac_init_help" && exit $ac_status 1595if $ac_init_version; then 1596 cat <<\_ACEOF 1597libXau configure 1.0.3 1598generated by GNU Autoconf 2.60 1599 1600Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16012002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1602This configure script is free software; the Free Software Foundation 1603gives unlimited permission to copy, distribute and modify it. 1604_ACEOF 1605 exit 1606fi 1607cat >config.log <<_ACEOF 1608This file contains any messages produced by compilers while 1609running configure, to aid debugging if configure makes a mistake. 1610 1611It was created by libXau $as_me 1.0.3, which was 1612generated by GNU Autoconf 2.60. Invocation command line was 1613 1614 $ $0 $@ 1615 1616_ACEOF 1617exec 5>>config.log 1618{ 1619cat <<_ASUNAME 1620## --------- ## 1621## Platform. ## 1622## --------- ## 1623 1624hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1625uname -m = `(uname -m) 2>/dev/null || echo unknown` 1626uname -r = `(uname -r) 2>/dev/null || echo unknown` 1627uname -s = `(uname -s) 2>/dev/null || echo unknown` 1628uname -v = `(uname -v) 2>/dev/null || echo unknown` 1629 1630/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1631/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1632 1633/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1634/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1635/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1636/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1637/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1638/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1639/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1640 1641_ASUNAME 1642 1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1644for as_dir in $PATH 1645do 1646 IFS=$as_save_IFS 1647 test -z "$as_dir" && as_dir=. 1648 echo "PATH: $as_dir" 1649done 1650IFS=$as_save_IFS 1651 1652} >&5 1653 1654cat >&5 <<_ACEOF 1655 1656 1657## ----------- ## 1658## Core tests. ## 1659## ----------- ## 1660 1661_ACEOF 1662 1663 1664# Keep a trace of the command line. 1665# Strip out --no-create and --no-recursion so they do not pile up. 1666# Strip out --silent because we don't want to record it for future runs. 1667# Also quote any args containing shell meta-characters. 1668# Make two passes to allow for proper duplicate-argument suppression. 1669ac_configure_args= 1670ac_configure_args0= 1671ac_configure_args1= 1672ac_must_keep_next=false 1673for ac_pass in 1 2 1674do 1675 for ac_arg 1676 do 1677 case $ac_arg in 1678 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1680 | -silent | --silent | --silen | --sile | --sil) 1681 continue ;; 1682 *\'*) 1683 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1684 esac 1685 case $ac_pass in 1686 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1687 2) 1688 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1689 if test $ac_must_keep_next = true; then 1690 ac_must_keep_next=false # Got value, back to normal. 1691 else 1692 case $ac_arg in 1693 *=* | --config-cache | -C | -disable-* | --disable-* \ 1694 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1695 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1696 | -with-* | --with-* | -without-* | --without-* | --x) 1697 case "$ac_configure_args0 " in 1698 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1699 esac 1700 ;; 1701 -* ) ac_must_keep_next=true ;; 1702 esac 1703 fi 1704 ac_configure_args="$ac_configure_args '$ac_arg'" 1705 ;; 1706 esac 1707 done 1708done 1709$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1710$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1711 1712# When interrupted or exit'd, cleanup temporary files, and complete 1713# config.log. We remove comments because anyway the quotes in there 1714# would cause problems or look ugly. 1715# WARNING: Use '\'' to represent an apostrophe within the trap. 1716# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1717trap 'exit_status=$? 1718 # Save into config.log some information that might help in debugging. 1719 { 1720 echo 1721 1722 cat <<\_ASBOX 1723## ---------------- ## 1724## Cache variables. ## 1725## ---------------- ## 1726_ASBOX 1727 echo 1728 # The following way of writing the cache mishandles newlines in values, 1729( 1730 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1731 eval ac_val=\$$ac_var 1732 case $ac_val in #( 1733 *${as_nl}*) 1734 case $ac_var in #( 1735 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1736echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1737 esac 1738 case $ac_var in #( 1739 _ | IFS | as_nl) ;; #( 1740 *) $as_unset $ac_var ;; 1741 esac ;; 1742 esac 1743 done 1744 (set) 2>&1 | 1745 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1746 *${as_nl}ac_space=\ *) 1747 sed -n \ 1748 "s/'\''/'\''\\\\'\'''\''/g; 1749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1750 ;; #( 1751 *) 1752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1753 ;; 1754 esac | 1755 sort 1756) 1757 echo 1758 1759 cat <<\_ASBOX 1760## ----------------- ## 1761## Output variables. ## 1762## ----------------- ## 1763_ASBOX 1764 echo 1765 for ac_var in $ac_subst_vars 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 1775 if test -n "$ac_subst_files"; then 1776 cat <<\_ASBOX 1777## ------------------- ## 1778## File substitutions. ## 1779## ------------------- ## 1780_ASBOX 1781 echo 1782 for ac_var in $ac_subst_files 1783 do 1784 eval ac_val=\$$ac_var 1785 case $ac_val in 1786 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1787 esac 1788 echo "$ac_var='\''$ac_val'\''" 1789 done | sort 1790 echo 1791 fi 1792 1793 if test -s confdefs.h; then 1794 cat <<\_ASBOX 1795## ----------- ## 1796## confdefs.h. ## 1797## ----------- ## 1798_ASBOX 1799 echo 1800 cat confdefs.h 1801 echo 1802 fi 1803 test "$ac_signal" != 0 && 1804 echo "$as_me: caught signal $ac_signal" 1805 echo "$as_me: exit $exit_status" 1806 } >&5 1807 rm -f core *.core core.conftest.* && 1808 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1809 exit $exit_status 1810' 0 1811for ac_signal in 1 2 13 15; do 1812 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1813done 1814ac_signal=0 1815 1816# confdefs.h avoids OS command line length limits that DEFS can exceed. 1817rm -f -r conftest* confdefs.h 1818 1819# Predefined preprocessor variables. 1820 1821cat >>confdefs.h <<_ACEOF 1822#define PACKAGE_NAME "$PACKAGE_NAME" 1823_ACEOF 1824 1825 1826cat >>confdefs.h <<_ACEOF 1827#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1828_ACEOF 1829 1830 1831cat >>confdefs.h <<_ACEOF 1832#define PACKAGE_VERSION "$PACKAGE_VERSION" 1833_ACEOF 1834 1835 1836cat >>confdefs.h <<_ACEOF 1837#define PACKAGE_STRING "$PACKAGE_STRING" 1838_ACEOF 1839 1840 1841cat >>confdefs.h <<_ACEOF 1842#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1843_ACEOF 1844 1845 1846# Let the site file select an alternate cache file if it wants to. 1847# Prefer explicitly selected file to automatically selected ones. 1848if test -n "$CONFIG_SITE"; then 1849 set x "$CONFIG_SITE" 1850elif test "x$prefix" != xNONE; then 1851 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1852else 1853 set x "$ac_default_prefix/share/config.site" \ 1854 "$ac_default_prefix/etc/config.site" 1855fi 1856shift 1857for ac_site_file 1858do 1859 if test -r "$ac_site_file"; then 1860 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1861echo "$as_me: loading site script $ac_site_file" >&6;} 1862 sed 's/^/| /' "$ac_site_file" >&5 1863 . "$ac_site_file" 1864 fi 1865done 1866 1867if test -r "$cache_file"; then 1868 # Some versions of bash will fail to source /dev/null (special 1869 # files actually), so we avoid doing that. 1870 if test -f "$cache_file"; then 1871 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1872echo "$as_me: loading cache $cache_file" >&6;} 1873 case $cache_file in 1874 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1875 *) . "./$cache_file";; 1876 esac 1877 fi 1878else 1879 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1880echo "$as_me: creating cache $cache_file" >&6;} 1881 >$cache_file 1882fi 1883 1884# Check that the precious variables saved in the cache have kept the same 1885# value. 1886ac_cache_corrupted=false 1887for ac_var in $ac_precious_vars; do 1888 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1889 eval ac_new_set=\$ac_env_${ac_var}_set 1890 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1891 eval ac_new_val=\$ac_env_${ac_var}_value 1892 case $ac_old_set,$ac_new_set in 1893 set,) 1894 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1895echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1896 ac_cache_corrupted=: ;; 1897 ,set) 1898 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1899echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1900 ac_cache_corrupted=: ;; 1901 ,);; 1902 *) 1903 if test "x$ac_old_val" != "x$ac_new_val"; then 1904 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1905echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1906 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1907echo "$as_me: former value: $ac_old_val" >&2;} 1908 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1909echo "$as_me: current value: $ac_new_val" >&2;} 1910 ac_cache_corrupted=: 1911 fi;; 1912 esac 1913 # Pass precious variables to config.status. 1914 if test "$ac_new_set" = set; then 1915 case $ac_new_val in 1916 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1917 *) ac_arg=$ac_var=$ac_new_val ;; 1918 esac 1919 case " $ac_configure_args " in 1920 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1921 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1922 esac 1923 fi 1924done 1925if $ac_cache_corrupted; then 1926 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1927echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1928 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1929echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1930 { (exit 1); exit 1; }; } 1931fi 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957ac_ext=c 1958ac_cpp='$CPP $CPPFLAGS' 1959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1961ac_compiler_gnu=$ac_cv_c_compiler_gnu 1962 1963 1964am__api_version="1.9" 1965ac_aux_dir= 1966for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1967 if test -f "$ac_dir/install-sh"; then 1968 ac_aux_dir=$ac_dir 1969 ac_install_sh="$ac_aux_dir/install-sh -c" 1970 break 1971 elif test -f "$ac_dir/install.sh"; then 1972 ac_aux_dir=$ac_dir 1973 ac_install_sh="$ac_aux_dir/install.sh -c" 1974 break 1975 elif test -f "$ac_dir/shtool"; then 1976 ac_aux_dir=$ac_dir 1977 ac_install_sh="$ac_aux_dir/shtool install -c" 1978 break 1979 fi 1980done 1981if test -z "$ac_aux_dir"; then 1982 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1983echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1984 { (exit 1); exit 1; }; } 1985fi 1986 1987# These three variables are undocumented and unsupported, 1988# and are intended to be withdrawn in a future Autoconf release. 1989# They can cause serious problems if a builder's source tree is in a directory 1990# whose full name contains unusual characters. 1991ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1992ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1993ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1994 1995 1996# Find a good install program. We prefer a C program (faster), 1997# so one script is as good as another. But avoid the broken or 1998# incompatible versions: 1999# SysV /etc/install, /usr/sbin/install 2000# SunOS /usr/etc/install 2001# IRIX /sbin/install 2002# AIX /bin/install 2003# AmigaOS /C/install, which installs bootblocks on floppy discs 2004# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2005# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2006# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2007# OS/2's system install, which has a completely different semantic 2008# ./install, which can be erroneously created by make from ./install.sh. 2009{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2010echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2011if test -z "$INSTALL"; then 2012if test "${ac_cv_path_install+set}" = set; then 2013 echo $ECHO_N "(cached) $ECHO_C" >&6 2014else 2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2016for as_dir in $PATH 2017do 2018 IFS=$as_save_IFS 2019 test -z "$as_dir" && as_dir=. 2020 # Account for people who put trailing slashes in PATH elements. 2021case $as_dir/ in 2022 ./ | .// | /cC/* | \ 2023 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2024 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2025 /usr/ucb/* ) ;; 2026 *) 2027 # OSF1 and SCO ODT 3.0 have their own names for install. 2028 # Don't use installbsd from OSF since it installs stuff as root 2029 # by default. 2030 for ac_prog in ginstall scoinst install; do 2031 for ac_exec_ext in '' $ac_executable_extensions; do 2032 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 2033 if test $ac_prog = install && 2034 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2035 # AIX install. It has an incompatible calling convention. 2036 : 2037 elif test $ac_prog = install && 2038 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2039 # program-specific install script used by HP pwplus--don't use. 2040 : 2041 else 2042 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2043 break 3 2044 fi 2045 fi 2046 done 2047 done 2048 ;; 2049esac 2050done 2051IFS=$as_save_IFS 2052 2053 2054fi 2055 if test "${ac_cv_path_install+set}" = set; then 2056 INSTALL=$ac_cv_path_install 2057 else 2058 # As a last resort, use the slow shell script. Don't cache a 2059 # value for INSTALL within a source directory, because that will 2060 # break other packages using the cache if that directory is 2061 # removed, or if the value is a relative name. 2062 INSTALL=$ac_install_sh 2063 fi 2064fi 2065{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2066echo "${ECHO_T}$INSTALL" >&6; } 2067 2068# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2069# It thinks the first close brace ends the variable substitution. 2070test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2071 2072test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2073 2074test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2075 2076{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2077echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2078# Just in case 2079sleep 1 2080echo timestamp > conftest.file 2081# Do `set' in a subshell so we don't clobber the current shell's 2082# arguments. Must try -L first in case configure is actually a 2083# symlink; some systems play weird games with the mod time of symlinks 2084# (eg FreeBSD returns the mod time of the symlink's containing 2085# directory). 2086if ( 2087 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2088 if test "$*" = "X"; then 2089 # -L didn't work. 2090 set X `ls -t $srcdir/configure conftest.file` 2091 fi 2092 rm -f conftest.file 2093 if test "$*" != "X $srcdir/configure conftest.file" \ 2094 && test "$*" != "X conftest.file $srcdir/configure"; then 2095 2096 # If neither matched, then we have a broken ls. This can happen 2097 # if, for instance, CONFIG_SHELL is bash and it inherits a 2098 # broken ls alias from the environment. This has actually 2099 # happened. Such a system could not be considered "sane". 2100 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2101alias in your environment" >&5 2102echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2103alias in your environment" >&2;} 2104 { (exit 1); exit 1; }; } 2105 fi 2106 2107 test "$2" = conftest.file 2108 ) 2109then 2110 # Ok. 2111 : 2112else 2113 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2114Check your system clock" >&5 2115echo "$as_me: error: newly created file is older than distributed files! 2116Check your system clock" >&2;} 2117 { (exit 1); exit 1; }; } 2118fi 2119{ echo "$as_me:$LINENO: result: yes" >&5 2120echo "${ECHO_T}yes" >&6; } 2121test "$program_prefix" != NONE && 2122 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2123# Use a double $ so make ignores it. 2124test "$program_suffix" != NONE && 2125 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2126# Double any \ or $. echo might interpret backslashes. 2127# By default was `s,x,x', remove it if useless. 2128cat <<\_ACEOF >conftest.sed 2129s/[\\$]/&&/g;s/;s,x,x,$// 2130_ACEOF 2131program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2132rm -f conftest.sed 2133 2134# expand $ac_aux_dir to an absolute path 2135am_aux_dir=`cd $ac_aux_dir && pwd` 2136 2137test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2138# Use eval to expand $SHELL 2139if eval "$MISSING --run true"; then 2140 am_missing_run="$MISSING --run " 2141else 2142 am_missing_run= 2143 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2144echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2145fi 2146 2147if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2148 # We used to keeping the `.' as first argument, in order to 2149 # allow $(mkdir_p) to be used without argument. As in 2150 # $(mkdir_p) $(somedir) 2151 # where $(somedir) is conditionally defined. However this is wrong 2152 # for two reasons: 2153 # 1. if the package is installed by a user who cannot write `.' 2154 # make install will fail, 2155 # 2. the above comment should most certainly read 2156 # $(mkdir_p) $(DESTDIR)$(somedir) 2157 # so it does not work when $(somedir) is undefined and 2158 # $(DESTDIR) is not. 2159 # To support the latter case, we have to write 2160 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2161 # so the `.' trick is pointless. 2162 mkdir_p='mkdir -p --' 2163else 2164 # On NextStep and OpenStep, the `mkdir' command does not 2165 # recognize any option. It will interpret all options as 2166 # directories to create, and then abort because `.' already 2167 # exists. 2168 for d in ./-p ./--version; 2169 do 2170 test -d $d && rmdir $d 2171 done 2172 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2173 if test -f "$ac_aux_dir/mkinstalldirs"; then 2174 mkdir_p='$(mkinstalldirs)' 2175 else 2176 mkdir_p='$(install_sh) -d' 2177 fi 2178fi 2179 2180for ac_prog in gawk mawk nawk awk 2181do 2182 # Extract the first word of "$ac_prog", so it can be a program name with args. 2183set dummy $ac_prog; ac_word=$2 2184{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2186if test "${ac_cv_prog_AWK+set}" = set; then 2187 echo $ECHO_N "(cached) $ECHO_C" >&6 2188else 2189 if test -n "$AWK"; then 2190 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2191else 2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2193for as_dir in $PATH 2194do 2195 IFS=$as_save_IFS 2196 test -z "$as_dir" && as_dir=. 2197 for ac_exec_ext in '' $ac_executable_extensions; do 2198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2199 ac_cv_prog_AWK="$ac_prog" 2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2201 break 2 2202 fi 2203done 2204done 2205IFS=$as_save_IFS 2206 2207fi 2208fi 2209AWK=$ac_cv_prog_AWK 2210if test -n "$AWK"; then 2211 { echo "$as_me:$LINENO: result: $AWK" >&5 2212echo "${ECHO_T}$AWK" >&6; } 2213else 2214 { echo "$as_me:$LINENO: result: no" >&5 2215echo "${ECHO_T}no" >&6; } 2216fi 2217 2218 2219 test -n "$AWK" && break 2220done 2221 2222{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2223echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2224set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2225if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2226 echo $ECHO_N "(cached) $ECHO_C" >&6 2227else 2228 cat >conftest.make <<\_ACEOF 2229SHELL = /bin/sh 2230all: 2231 @echo '@@@%%%=$(MAKE)=@@@%%%' 2232_ACEOF 2233# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2234case `${MAKE-make} -f conftest.make 2>/dev/null` in 2235 *@@@%%%=?*=@@@%%%*) 2236 eval ac_cv_prog_make_${ac_make}_set=yes;; 2237 *) 2238 eval ac_cv_prog_make_${ac_make}_set=no;; 2239esac 2240rm -f conftest.make 2241fi 2242if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2243 { echo "$as_me:$LINENO: result: yes" >&5 2244echo "${ECHO_T}yes" >&6; } 2245 SET_MAKE= 2246else 2247 { echo "$as_me:$LINENO: result: no" >&5 2248echo "${ECHO_T}no" >&6; } 2249 SET_MAKE="MAKE=${MAKE-make}" 2250fi 2251 2252rm -rf .tst 2>/dev/null 2253mkdir .tst 2>/dev/null 2254if test -d .tst; then 2255 am__leading_dot=. 2256else 2257 am__leading_dot=_ 2258fi 2259rmdir .tst 2>/dev/null 2260 2261# Check whether --enable-pretty-cmds was given. 2262if test "${enable_pretty_cmds+set}" = set; then 2263 enableval=$enable_pretty_cmds; 2264fi 2265 2266AMSHOWCMDSAT='' 2267AMDEPSHOWCMDSAT='' 2268AMPRETTYECHO=true 2269AMCMDECHO=echo 2270if test "x$enable_pretty_cmds" = xyes; 2271then 2272 AMSHOWCMDSAT='@' 2273 test "x$enable_dependency_tracking" = xno && AMDEPSHOWCMDSAT='@' 2274 AMPRETTYECHO=echo 2275 AMCMDECHO=true 2276 LT_QUIET='--quiet' 2277fi 2278 2279 2280 2281 2282 2283 2284# test to see if srcdir already configured 2285if test "`cd $srcdir && pwd`" != "`pwd`" && 2286 test -f $srcdir/config.status; then 2287 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2288echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2289 { (exit 1); exit 1; }; } 2290fi 2291 2292# test whether we have cygpath 2293if test -z "$CYGPATH_W"; then 2294 if (cygpath --version) >/dev/null 2>/dev/null; then 2295 CYGPATH_W='cygpath -w' 2296 else 2297 CYGPATH_W=echo 2298 fi 2299fi 2300 2301 2302# Define the identity of the package. 2303 PACKAGE='libXau' 2304 VERSION='1.0.3' 2305 2306 2307cat >>confdefs.h <<_ACEOF 2308#define PACKAGE "$PACKAGE" 2309_ACEOF 2310 2311 2312cat >>confdefs.h <<_ACEOF 2313#define VERSION "$VERSION" 2314_ACEOF 2315 2316# Some tools Automake needs. 2317 2318ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2319 2320 2321AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2322 2323 2324AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2325 2326 2327AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2328 2329 2330MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2331 2332install_sh=${install_sh-"$am_aux_dir/install-sh"} 2333 2334# Installed binaries are usually stripped using `strip' when the user 2335# run `make install-strip'. However `strip' might not be the right 2336# tool to use in cross-compilation environments, therefore Automake 2337# will honor the `STRIP' environment variable to overrule this program. 2338if test "$cross_compiling" != no; then 2339 if test -n "$ac_tool_prefix"; then 2340 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2341set dummy ${ac_tool_prefix}strip; ac_word=$2 2342{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2344if test "${ac_cv_prog_STRIP+set}" = set; then 2345 echo $ECHO_N "(cached) $ECHO_C" >&6 2346else 2347 if test -n "$STRIP"; then 2348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2349else 2350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2351for as_dir in $PATH 2352do 2353 IFS=$as_save_IFS 2354 test -z "$as_dir" && as_dir=. 2355 for ac_exec_ext in '' $ac_executable_extensions; do 2356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2357 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2359 break 2 2360 fi 2361done 2362done 2363IFS=$as_save_IFS 2364 2365fi 2366fi 2367STRIP=$ac_cv_prog_STRIP 2368if test -n "$STRIP"; then 2369 { echo "$as_me:$LINENO: result: $STRIP" >&5 2370echo "${ECHO_T}$STRIP" >&6; } 2371else 2372 { echo "$as_me:$LINENO: result: no" >&5 2373echo "${ECHO_T}no" >&6; } 2374fi 2375 2376 2377fi 2378if test -z "$ac_cv_prog_STRIP"; then 2379 ac_ct_STRIP=$STRIP 2380 # Extract the first word of "strip", so it can be a program name with args. 2381set dummy strip; ac_word=$2 2382{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2384if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2385 echo $ECHO_N "(cached) $ECHO_C" >&6 2386else 2387 if test -n "$ac_ct_STRIP"; then 2388 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2389else 2390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2391for as_dir in $PATH 2392do 2393 IFS=$as_save_IFS 2394 test -z "$as_dir" && as_dir=. 2395 for ac_exec_ext in '' $ac_executable_extensions; do 2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2397 ac_cv_prog_ac_ct_STRIP="strip" 2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2399 break 2 2400 fi 2401done 2402done 2403IFS=$as_save_IFS 2404 2405fi 2406fi 2407ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2408if test -n "$ac_ct_STRIP"; then 2409 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2410echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2411else 2412 { echo "$as_me:$LINENO: result: no" >&5 2413echo "${ECHO_T}no" >&6; } 2414fi 2415 2416 if test "x$ac_ct_STRIP" = x; then 2417 STRIP=":" 2418 else 2419 case $cross_compiling:$ac_tool_warned in 2420yes:) 2421{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2422whose name does not start with the host triplet. If you think this 2423configuration is useful to you, please write to autoconf@gnu.org." >&5 2424echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2425whose name does not start with the host triplet. If you think this 2426configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2427ac_tool_warned=yes ;; 2428esac 2429 STRIP=$ac_ct_STRIP 2430 fi 2431else 2432 STRIP="$ac_cv_prog_STRIP" 2433fi 2434 2435fi 2436INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2437 2438# We need awk for the "check" target. The system "awk" is bad on 2439# some platforms. 2440# Always define AMTAR for backward compatibility. 2441 2442AMTAR=${AMTAR-"${am_missing_run}tar"} 2443 2444am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2445 2446 2447 2448 2449 2450 2451{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2452echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2453 # Check whether --enable-maintainer-mode was given. 2454if test "${enable_maintainer_mode+set}" = set; then 2455 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2456else 2457 USE_MAINTAINER_MODE=no 2458fi 2459 2460 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2461echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2462 2463 2464if test $USE_MAINTAINER_MODE = yes; then 2465 MAINTAINER_MODE_TRUE= 2466 MAINTAINER_MODE_FALSE='#' 2467else 2468 MAINTAINER_MODE_TRUE='#' 2469 MAINTAINER_MODE_FALSE= 2470fi 2471 2472 MAINT=$MAINTAINER_MODE_TRUE 2473 2474 2475 2476ac_config_headers="$ac_config_headers config.h" 2477 2478 2479# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro 2480 2481 2482 XORG_MACROS_needed_version=1.1 2483 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 2484 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2485 { echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5 2486echo $ECHO_N "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... $ECHO_C" >&6; } 2487 XORG_MACROS_version=1.1.3 2488 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 2489 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2490 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 2491 { { echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5 2492echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;} 2493 { (exit 1); exit 1; }; } 2494 fi 2495 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 2496 { { 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 2497echo "$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;} 2498 { (exit 1); exit 1; }; } 2499 fi 2500 { echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5 2501echo "${ECHO_T}yes, $XORG_MACROS_version" >&6; } 2502 2503 2504ac_ext=c 2505ac_cpp='$CPP $CPPFLAGS' 2506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2508ac_compiler_gnu=$ac_cv_c_compiler_gnu 2509if test -n "$ac_tool_prefix"; then 2510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2511set dummy ${ac_tool_prefix}gcc; ac_word=$2 2512{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2514if test "${ac_cv_prog_CC+set}" = set; then 2515 echo $ECHO_N "(cached) $ECHO_C" >&6 2516else 2517 if test -n "$CC"; then 2518 ac_cv_prog_CC="$CC" # Let the user override the test. 2519else 2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2521for as_dir in $PATH 2522do 2523 IFS=$as_save_IFS 2524 test -z "$as_dir" && as_dir=. 2525 for ac_exec_ext in '' $ac_executable_extensions; do 2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2527 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2529 break 2 2530 fi 2531done 2532done 2533IFS=$as_save_IFS 2534 2535fi 2536fi 2537CC=$ac_cv_prog_CC 2538if test -n "$CC"; then 2539 { echo "$as_me:$LINENO: result: $CC" >&5 2540echo "${ECHO_T}$CC" >&6; } 2541else 2542 { echo "$as_me:$LINENO: result: no" >&5 2543echo "${ECHO_T}no" >&6; } 2544fi 2545 2546 2547fi 2548if test -z "$ac_cv_prog_CC"; then 2549 ac_ct_CC=$CC 2550 # Extract the first word of "gcc", so it can be a program name with args. 2551set dummy gcc; ac_word=$2 2552{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2554if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2555 echo $ECHO_N "(cached) $ECHO_C" >&6 2556else 2557 if test -n "$ac_ct_CC"; then 2558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2559else 2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2561for as_dir in $PATH 2562do 2563 IFS=$as_save_IFS 2564 test -z "$as_dir" && as_dir=. 2565 for ac_exec_ext in '' $ac_executable_extensions; do 2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2567 ac_cv_prog_ac_ct_CC="gcc" 2568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2569 break 2 2570 fi 2571done 2572done 2573IFS=$as_save_IFS 2574 2575fi 2576fi 2577ac_ct_CC=$ac_cv_prog_ac_ct_CC 2578if test -n "$ac_ct_CC"; then 2579 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2580echo "${ECHO_T}$ac_ct_CC" >&6; } 2581else 2582 { echo "$as_me:$LINENO: result: no" >&5 2583echo "${ECHO_T}no" >&6; } 2584fi 2585 2586 if test "x$ac_ct_CC" = x; then 2587 CC="" 2588 else 2589 case $cross_compiling:$ac_tool_warned in 2590yes:) 2591{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2592whose name does not start with the host triplet. If you think this 2593configuration is useful to you, please write to autoconf@gnu.org." >&5 2594echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2595whose name does not start with the host triplet. If you think this 2596configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2597ac_tool_warned=yes ;; 2598esac 2599 CC=$ac_ct_CC 2600 fi 2601else 2602 CC="$ac_cv_prog_CC" 2603fi 2604 2605if test -z "$CC"; then 2606 if test -n "$ac_tool_prefix"; then 2607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2608set dummy ${ac_tool_prefix}cc; ac_word=$2 2609{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2611if test "${ac_cv_prog_CC+set}" = set; then 2612 echo $ECHO_N "(cached) $ECHO_C" >&6 2613else 2614 if test -n "$CC"; then 2615 ac_cv_prog_CC="$CC" # Let the user override the test. 2616else 2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2618for as_dir in $PATH 2619do 2620 IFS=$as_save_IFS 2621 test -z "$as_dir" && as_dir=. 2622 for ac_exec_ext in '' $ac_executable_extensions; do 2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2624 ac_cv_prog_CC="${ac_tool_prefix}cc" 2625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2626 break 2 2627 fi 2628done 2629done 2630IFS=$as_save_IFS 2631 2632fi 2633fi 2634CC=$ac_cv_prog_CC 2635if test -n "$CC"; then 2636 { echo "$as_me:$LINENO: result: $CC" >&5 2637echo "${ECHO_T}$CC" >&6; } 2638else 2639 { echo "$as_me:$LINENO: result: no" >&5 2640echo "${ECHO_T}no" >&6; } 2641fi 2642 2643 2644 fi 2645fi 2646if test -z "$CC"; then 2647 # Extract the first word of "cc", so it can be a program name with args. 2648set dummy cc; ac_word=$2 2649{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2651if test "${ac_cv_prog_CC+set}" = set; then 2652 echo $ECHO_N "(cached) $ECHO_C" >&6 2653else 2654 if test -n "$CC"; then 2655 ac_cv_prog_CC="$CC" # Let the user override the test. 2656else 2657 ac_prog_rejected=no 2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2659for as_dir in $PATH 2660do 2661 IFS=$as_save_IFS 2662 test -z "$as_dir" && as_dir=. 2663 for ac_exec_ext in '' $ac_executable_extensions; do 2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2666 ac_prog_rejected=yes 2667 continue 2668 fi 2669 ac_cv_prog_CC="cc" 2670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2671 break 2 2672 fi 2673done 2674done 2675IFS=$as_save_IFS 2676 2677if test $ac_prog_rejected = yes; then 2678 # We found a bogon in the path, so make sure we never use it. 2679 set dummy $ac_cv_prog_CC 2680 shift 2681 if test $# != 0; then 2682 # We chose a different compiler from the bogus one. 2683 # However, it has the same basename, so the bogon will be chosen 2684 # first if we set CC to just the basename; use the full file name. 2685 shift 2686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2687 fi 2688fi 2689fi 2690fi 2691CC=$ac_cv_prog_CC 2692if test -n "$CC"; then 2693 { echo "$as_me:$LINENO: result: $CC" >&5 2694echo "${ECHO_T}$CC" >&6; } 2695else 2696 { echo "$as_me:$LINENO: result: no" >&5 2697echo "${ECHO_T}no" >&6; } 2698fi 2699 2700 2701fi 2702if test -z "$CC"; then 2703 if test -n "$ac_tool_prefix"; then 2704 for ac_prog in cl.exe 2705 do 2706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2707set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2708{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2710if test "${ac_cv_prog_CC+set}" = set; then 2711 echo $ECHO_N "(cached) $ECHO_C" >&6 2712else 2713 if test -n "$CC"; then 2714 ac_cv_prog_CC="$CC" # Let the user override the test. 2715else 2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2717for as_dir in $PATH 2718do 2719 IFS=$as_save_IFS 2720 test -z "$as_dir" && as_dir=. 2721 for ac_exec_ext in '' $ac_executable_extensions; do 2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2725 break 2 2726 fi 2727done 2728done 2729IFS=$as_save_IFS 2730 2731fi 2732fi 2733CC=$ac_cv_prog_CC 2734if test -n "$CC"; then 2735 { echo "$as_me:$LINENO: result: $CC" >&5 2736echo "${ECHO_T}$CC" >&6; } 2737else 2738 { echo "$as_me:$LINENO: result: no" >&5 2739echo "${ECHO_T}no" >&6; } 2740fi 2741 2742 2743 test -n "$CC" && break 2744 done 2745fi 2746if test -z "$CC"; then 2747 ac_ct_CC=$CC 2748 for ac_prog in cl.exe 2749do 2750 # Extract the first word of "$ac_prog", so it can be a program name with args. 2751set dummy $ac_prog; ac_word=$2 2752{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2754if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2755 echo $ECHO_N "(cached) $ECHO_C" >&6 2756else 2757 if test -n "$ac_ct_CC"; then 2758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2759else 2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2761for as_dir in $PATH 2762do 2763 IFS=$as_save_IFS 2764 test -z "$as_dir" && as_dir=. 2765 for ac_exec_ext in '' $ac_executable_extensions; do 2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2767 ac_cv_prog_ac_ct_CC="$ac_prog" 2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2769 break 2 2770 fi 2771done 2772done 2773IFS=$as_save_IFS 2774 2775fi 2776fi 2777ac_ct_CC=$ac_cv_prog_ac_ct_CC 2778if test -n "$ac_ct_CC"; then 2779 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2780echo "${ECHO_T}$ac_ct_CC" >&6; } 2781else 2782 { echo "$as_me:$LINENO: result: no" >&5 2783echo "${ECHO_T}no" >&6; } 2784fi 2785 2786 2787 test -n "$ac_ct_CC" && break 2788done 2789 2790 if test "x$ac_ct_CC" = x; then 2791 CC="" 2792 else 2793 case $cross_compiling:$ac_tool_warned in 2794yes:) 2795{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2796whose name does not start with the host triplet. If you think this 2797configuration is useful to you, please write to autoconf@gnu.org." >&5 2798echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2799whose name does not start with the host triplet. If you think this 2800configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2801ac_tool_warned=yes ;; 2802esac 2803 CC=$ac_ct_CC 2804 fi 2805fi 2806 2807fi 2808 2809 2810test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2811See \`config.log' for more details." >&5 2812echo "$as_me: error: no acceptable C compiler found in \$PATH 2813See \`config.log' for more details." >&2;} 2814 { (exit 1); exit 1; }; } 2815 2816# Provide some information about the compiler. 2817echo "$as_me:$LINENO: checking for C compiler version" >&5 2818ac_compiler=`set X $ac_compile; echo $2` 2819{ (ac_try="$ac_compiler --version >&5" 2820case "(($ac_try" in 2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2822 *) ac_try_echo=$ac_try;; 2823esac 2824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2825 (eval "$ac_compiler --version >&5") 2>&5 2826 ac_status=$? 2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2828 (exit $ac_status); } 2829{ (ac_try="$ac_compiler -v >&5" 2830case "(($ac_try" in 2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2832 *) ac_try_echo=$ac_try;; 2833esac 2834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2835 (eval "$ac_compiler -v >&5") 2>&5 2836 ac_status=$? 2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2838 (exit $ac_status); } 2839{ (ac_try="$ac_compiler -V >&5" 2840case "(($ac_try" in 2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2842 *) ac_try_echo=$ac_try;; 2843esac 2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2845 (eval "$ac_compiler -V >&5") 2>&5 2846 ac_status=$? 2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2848 (exit $ac_status); } 2849 2850cat >conftest.$ac_ext <<_ACEOF 2851/* confdefs.h. */ 2852_ACEOF 2853cat confdefs.h >>conftest.$ac_ext 2854cat >>conftest.$ac_ext <<_ACEOF 2855/* end confdefs.h. */ 2856 2857int 2858main () 2859{ 2860 2861 ; 2862 return 0; 2863} 2864_ACEOF 2865ac_clean_files_save=$ac_clean_files 2866ac_clean_files="$ac_clean_files a.out a.exe b.out" 2867# Try to create an executable without -o first, disregard a.out. 2868# It will help us diagnose broken compilers, and finding out an intuition 2869# of exeext. 2870{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2871echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2872ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2873# 2874# List of possible output files, starting from the most likely. 2875# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2876# only as a last resort. b.out is created by i960 compilers. 2877ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2878# 2879# The IRIX 6 linker writes into existing files which may not be 2880# executable, retaining their permissions. Remove them first so a 2881# subsequent execution test works. 2882ac_rmfiles= 2883for ac_file in $ac_files 2884do 2885 case $ac_file in 2886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2887 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2888 esac 2889done 2890rm -f $ac_rmfiles 2891 2892if { (ac_try="$ac_link_default" 2893case "(($ac_try" in 2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2895 *) ac_try_echo=$ac_try;; 2896esac 2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2898 (eval "$ac_link_default") 2>&5 2899 ac_status=$? 2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2901 (exit $ac_status); }; then 2902 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2903# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2904# in a Makefile. We should not override ac_cv_exeext if it was cached, 2905# so that the user can short-circuit this test for compilers unknown to 2906# Autoconf. 2907for ac_file in $ac_files 2908do 2909 test -f "$ac_file" || continue 2910 case $ac_file in 2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2912 ;; 2913 [ab].out ) 2914 # We found the default executable, but exeext='' is most 2915 # certainly right. 2916 break;; 2917 *.* ) 2918 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2919 then :; else 2920 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2921 fi 2922 # We set ac_cv_exeext here because the later test for it is not 2923 # safe: cross compilers may not add the suffix if given an `-o' 2924 # argument, so we may need to know it at that point already. 2925 # Even if this section looks crufty: it has the advantage of 2926 # actually working. 2927 break;; 2928 * ) 2929 break;; 2930 esac 2931done 2932test "$ac_cv_exeext" = no && ac_cv_exeext= 2933 2934else 2935 echo "$as_me: failed program was:" >&5 2936sed 's/^/| /' conftest.$ac_ext >&5 2937 2938{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2939See \`config.log' for more details." >&5 2940echo "$as_me: error: C compiler cannot create executables 2941See \`config.log' for more details." >&2;} 2942 { (exit 77); exit 77; }; } 2943fi 2944 2945ac_exeext=$ac_cv_exeext 2946{ echo "$as_me:$LINENO: result: $ac_file" >&5 2947echo "${ECHO_T}$ac_file" >&6; } 2948 2949# Check that the compiler produces executables we can run. If not, either 2950# the compiler is broken, or we cross compile. 2951{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2952echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2953# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2954# If not cross compiling, check that we can run a simple program. 2955if test "$cross_compiling" != yes; then 2956 if { ac_try='./$ac_file' 2957 { (case "(($ac_try" in 2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2959 *) ac_try_echo=$ac_try;; 2960esac 2961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2962 (eval "$ac_try") 2>&5 2963 ac_status=$? 2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2965 (exit $ac_status); }; }; then 2966 cross_compiling=no 2967 else 2968 if test "$cross_compiling" = maybe; then 2969 cross_compiling=yes 2970 else 2971 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2972If you meant to cross compile, use \`--host'. 2973See \`config.log' for more details." >&5 2974echo "$as_me: error: cannot run C compiled programs. 2975If you meant to cross compile, use \`--host'. 2976See \`config.log' for more details." >&2;} 2977 { (exit 1); exit 1; }; } 2978 fi 2979 fi 2980fi 2981{ echo "$as_me:$LINENO: result: yes" >&5 2982echo "${ECHO_T}yes" >&6; } 2983 2984rm -f a.out a.exe conftest$ac_cv_exeext b.out 2985ac_clean_files=$ac_clean_files_save 2986# Check that the compiler produces executables we can run. If not, either 2987# the compiler is broken, or we cross compile. 2988{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2989echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2990{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2991echo "${ECHO_T}$cross_compiling" >&6; } 2992 2993{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2994echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2995if { (ac_try="$ac_link" 2996case "(($ac_try" in 2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2998 *) ac_try_echo=$ac_try;; 2999esac 3000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3001 (eval "$ac_link") 2>&5 3002 ac_status=$? 3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3004 (exit $ac_status); }; then 3005 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3006# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3007# work properly (i.e., refer to `conftest.exe'), while it won't with 3008# `rm'. 3009for ac_file in conftest.exe conftest conftest.*; do 3010 test -f "$ac_file" || continue 3011 case $ac_file in 3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3013 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3014 break;; 3015 * ) break;; 3016 esac 3017done 3018else 3019 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3020See \`config.log' for more details." >&5 3021echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3022See \`config.log' for more details." >&2;} 3023 { (exit 1); exit 1; }; } 3024fi 3025 3026rm -f conftest$ac_cv_exeext 3027{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3028echo "${ECHO_T}$ac_cv_exeext" >&6; } 3029 3030rm -f conftest.$ac_ext 3031EXEEXT=$ac_cv_exeext 3032ac_exeext=$EXEEXT 3033{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3034echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3035if test "${ac_cv_objext+set}" = set; then 3036 echo $ECHO_N "(cached) $ECHO_C" >&6 3037else 3038 cat >conftest.$ac_ext <<_ACEOF 3039/* confdefs.h. */ 3040_ACEOF 3041cat confdefs.h >>conftest.$ac_ext 3042cat >>conftest.$ac_ext <<_ACEOF 3043/* end confdefs.h. */ 3044 3045int 3046main () 3047{ 3048 3049 ; 3050 return 0; 3051} 3052_ACEOF 3053rm -f conftest.o conftest.obj 3054if { (ac_try="$ac_compile" 3055case "(($ac_try" in 3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3057 *) ac_try_echo=$ac_try;; 3058esac 3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3060 (eval "$ac_compile") 2>&5 3061 ac_status=$? 3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3063 (exit $ac_status); }; then 3064 for ac_file in conftest.o conftest.obj conftest.*; do 3065 test -f "$ac_file" || continue; 3066 case $ac_file in 3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3068 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3069 break;; 3070 esac 3071done 3072else 3073 echo "$as_me: failed program was:" >&5 3074sed 's/^/| /' conftest.$ac_ext >&5 3075 3076{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3077See \`config.log' for more details." >&5 3078echo "$as_me: error: cannot compute suffix of object files: cannot compile 3079See \`config.log' for more details." >&2;} 3080 { (exit 1); exit 1; }; } 3081fi 3082 3083rm -f conftest.$ac_cv_objext conftest.$ac_ext 3084fi 3085{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3086echo "${ECHO_T}$ac_cv_objext" >&6; } 3087OBJEXT=$ac_cv_objext 3088ac_objext=$OBJEXT 3089{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3090echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3091if test "${ac_cv_c_compiler_gnu+set}" = set; then 3092 echo $ECHO_N "(cached) $ECHO_C" >&6 3093else 3094 cat >conftest.$ac_ext <<_ACEOF 3095/* confdefs.h. */ 3096_ACEOF 3097cat confdefs.h >>conftest.$ac_ext 3098cat >>conftest.$ac_ext <<_ACEOF 3099/* end confdefs.h. */ 3100 3101int 3102main () 3103{ 3104#ifndef __GNUC__ 3105 choke me 3106#endif 3107 3108 ; 3109 return 0; 3110} 3111_ACEOF 3112rm -f conftest.$ac_objext 3113if { (ac_try="$ac_compile" 3114case "(($ac_try" in 3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3116 *) ac_try_echo=$ac_try;; 3117esac 3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3119 (eval "$ac_compile") 2>conftest.er1 3120 ac_status=$? 3121 grep -v '^ *+' conftest.er1 >conftest.err 3122 rm -f conftest.er1 3123 cat conftest.err >&5 3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3125 (exit $ac_status); } && 3126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3127 { (case "(($ac_try" in 3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3129 *) ac_try_echo=$ac_try;; 3130esac 3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3132 (eval "$ac_try") 2>&5 3133 ac_status=$? 3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3135 (exit $ac_status); }; } && 3136 { ac_try='test -s conftest.$ac_objext' 3137 { (case "(($ac_try" in 3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3139 *) ac_try_echo=$ac_try;; 3140esac 3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3142 (eval "$ac_try") 2>&5 3143 ac_status=$? 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3145 (exit $ac_status); }; }; then 3146 ac_compiler_gnu=yes 3147else 3148 echo "$as_me: failed program was:" >&5 3149sed 's/^/| /' conftest.$ac_ext >&5 3150 3151 ac_compiler_gnu=no 3152fi 3153 3154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3155ac_cv_c_compiler_gnu=$ac_compiler_gnu 3156 3157fi 3158{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3159echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3160GCC=`test $ac_compiler_gnu = yes && echo yes` 3161ac_test_CFLAGS=${CFLAGS+set} 3162ac_save_CFLAGS=$CFLAGS 3163{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3164echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3165if test "${ac_cv_prog_cc_g+set}" = set; then 3166 echo $ECHO_N "(cached) $ECHO_C" >&6 3167else 3168 ac_save_c_werror_flag=$ac_c_werror_flag 3169 ac_c_werror_flag=yes 3170 ac_cv_prog_cc_g=no 3171 CFLAGS="-g" 3172 cat >conftest.$ac_ext <<_ACEOF 3173/* confdefs.h. */ 3174_ACEOF 3175cat confdefs.h >>conftest.$ac_ext 3176cat >>conftest.$ac_ext <<_ACEOF 3177/* end confdefs.h. */ 3178 3179int 3180main () 3181{ 3182 3183 ; 3184 return 0; 3185} 3186_ACEOF 3187rm -f conftest.$ac_objext 3188if { (ac_try="$ac_compile" 3189case "(($ac_try" in 3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3191 *) ac_try_echo=$ac_try;; 3192esac 3193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3194 (eval "$ac_compile") 2>conftest.er1 3195 ac_status=$? 3196 grep -v '^ *+' conftest.er1 >conftest.err 3197 rm -f conftest.er1 3198 cat conftest.err >&5 3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3200 (exit $ac_status); } && 3201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3202 { (case "(($ac_try" in 3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3204 *) ac_try_echo=$ac_try;; 3205esac 3206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3207 (eval "$ac_try") 2>&5 3208 ac_status=$? 3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3210 (exit $ac_status); }; } && 3211 { ac_try='test -s conftest.$ac_objext' 3212 { (case "(($ac_try" in 3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3214 *) ac_try_echo=$ac_try;; 3215esac 3216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3217 (eval "$ac_try") 2>&5 3218 ac_status=$? 3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3220 (exit $ac_status); }; }; then 3221 ac_cv_prog_cc_g=yes 3222else 3223 echo "$as_me: failed program was:" >&5 3224sed 's/^/| /' conftest.$ac_ext >&5 3225 3226 CFLAGS="" 3227 cat >conftest.$ac_ext <<_ACEOF 3228/* confdefs.h. */ 3229_ACEOF 3230cat confdefs.h >>conftest.$ac_ext 3231cat >>conftest.$ac_ext <<_ACEOF 3232/* end confdefs.h. */ 3233 3234int 3235main () 3236{ 3237 3238 ; 3239 return 0; 3240} 3241_ACEOF 3242rm -f conftest.$ac_objext 3243if { (ac_try="$ac_compile" 3244case "(($ac_try" in 3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3246 *) ac_try_echo=$ac_try;; 3247esac 3248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3249 (eval "$ac_compile") 2>conftest.er1 3250 ac_status=$? 3251 grep -v '^ *+' conftest.er1 >conftest.err 3252 rm -f conftest.er1 3253 cat conftest.err >&5 3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3255 (exit $ac_status); } && 3256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3257 { (case "(($ac_try" in 3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3259 *) ac_try_echo=$ac_try;; 3260esac 3261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3262 (eval "$ac_try") 2>&5 3263 ac_status=$? 3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3265 (exit $ac_status); }; } && 3266 { ac_try='test -s conftest.$ac_objext' 3267 { (case "(($ac_try" in 3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3269 *) ac_try_echo=$ac_try;; 3270esac 3271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3272 (eval "$ac_try") 2>&5 3273 ac_status=$? 3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3275 (exit $ac_status); }; }; then 3276 : 3277else 3278 echo "$as_me: failed program was:" >&5 3279sed 's/^/| /' conftest.$ac_ext >&5 3280 3281 ac_c_werror_flag=$ac_save_c_werror_flag 3282 CFLAGS="-g" 3283 cat >conftest.$ac_ext <<_ACEOF 3284/* confdefs.h. */ 3285_ACEOF 3286cat confdefs.h >>conftest.$ac_ext 3287cat >>conftest.$ac_ext <<_ACEOF 3288/* end confdefs.h. */ 3289 3290int 3291main () 3292{ 3293 3294 ; 3295 return 0; 3296} 3297_ACEOF 3298rm -f conftest.$ac_objext 3299if { (ac_try="$ac_compile" 3300case "(($ac_try" in 3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3302 *) ac_try_echo=$ac_try;; 3303esac 3304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3305 (eval "$ac_compile") 2>conftest.er1 3306 ac_status=$? 3307 grep -v '^ *+' conftest.er1 >conftest.err 3308 rm -f conftest.er1 3309 cat conftest.err >&5 3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3311 (exit $ac_status); } && 3312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3313 { (case "(($ac_try" in 3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3315 *) ac_try_echo=$ac_try;; 3316esac 3317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3318 (eval "$ac_try") 2>&5 3319 ac_status=$? 3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3321 (exit $ac_status); }; } && 3322 { ac_try='test -s conftest.$ac_objext' 3323 { (case "(($ac_try" in 3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3325 *) ac_try_echo=$ac_try;; 3326esac 3327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3328 (eval "$ac_try") 2>&5 3329 ac_status=$? 3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3331 (exit $ac_status); }; }; then 3332 ac_cv_prog_cc_g=yes 3333else 3334 echo "$as_me: failed program was:" >&5 3335sed 's/^/| /' conftest.$ac_ext >&5 3336 3337 3338fi 3339 3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3341fi 3342 3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3344fi 3345 3346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3347 ac_c_werror_flag=$ac_save_c_werror_flag 3348fi 3349{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3350echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3351if test "$ac_test_CFLAGS" = set; then 3352 CFLAGS=$ac_save_CFLAGS 3353elif test $ac_cv_prog_cc_g = yes; then 3354 if test "$GCC" = yes; then 3355 CFLAGS="-g -O2" 3356 else 3357 CFLAGS="-g" 3358 fi 3359else 3360 if test "$GCC" = yes; then 3361 CFLAGS="-O2" 3362 else 3363 CFLAGS= 3364 fi 3365fi 3366{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3367echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3368if test "${ac_cv_prog_cc_c89+set}" = set; then 3369 echo $ECHO_N "(cached) $ECHO_C" >&6 3370else 3371 ac_cv_prog_cc_c89=no 3372ac_save_CC=$CC 3373cat >conftest.$ac_ext <<_ACEOF 3374/* confdefs.h. */ 3375_ACEOF 3376cat confdefs.h >>conftest.$ac_ext 3377cat >>conftest.$ac_ext <<_ACEOF 3378/* end confdefs.h. */ 3379#include <stdarg.h> 3380#include <stdio.h> 3381#include <sys/types.h> 3382#include <sys/stat.h> 3383/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3384struct buf { int x; }; 3385FILE * (*rcsopen) (struct buf *, struct stat *, int); 3386static char *e (p, i) 3387 char **p; 3388 int i; 3389{ 3390 return p[i]; 3391} 3392static char *f (char * (*g) (char **, int), char **p, ...) 3393{ 3394 char *s; 3395 va_list v; 3396 va_start (v,p); 3397 s = g (p, va_arg (v,int)); 3398 va_end (v); 3399 return s; 3400} 3401 3402/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3403 function prototypes and stuff, but not '\xHH' hex character constants. 3404 These don't provoke an error unfortunately, instead are silently treated 3405 as 'x'. The following induces an error, until -std is added to get 3406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3407 array size at least. It's necessary to write '\x00'==0 to get something 3408 that's true only with -std. */ 3409int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3410 3411/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3412 inside strings and character constants. */ 3413#define FOO(x) 'x' 3414int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3415 3416int test (int i, double x); 3417struct s1 {int (*f) (int a);}; 3418struct s2 {int (*f) (double a);}; 3419int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3420int argc; 3421char **argv; 3422int 3423main () 3424{ 3425return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3426 ; 3427 return 0; 3428} 3429_ACEOF 3430for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3431 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3432do 3433 CC="$ac_save_CC $ac_arg" 3434 rm -f conftest.$ac_objext 3435if { (ac_try="$ac_compile" 3436case "(($ac_try" in 3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3438 *) ac_try_echo=$ac_try;; 3439esac 3440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3441 (eval "$ac_compile") 2>conftest.er1 3442 ac_status=$? 3443 grep -v '^ *+' conftest.er1 >conftest.err 3444 rm -f conftest.er1 3445 cat conftest.err >&5 3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3447 (exit $ac_status); } && 3448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3449 { (case "(($ac_try" in 3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3451 *) ac_try_echo=$ac_try;; 3452esac 3453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3454 (eval "$ac_try") 2>&5 3455 ac_status=$? 3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3457 (exit $ac_status); }; } && 3458 { ac_try='test -s conftest.$ac_objext' 3459 { (case "(($ac_try" in 3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3461 *) ac_try_echo=$ac_try;; 3462esac 3463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3464 (eval "$ac_try") 2>&5 3465 ac_status=$? 3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3467 (exit $ac_status); }; }; then 3468 ac_cv_prog_cc_c89=$ac_arg 3469else 3470 echo "$as_me: failed program was:" >&5 3471sed 's/^/| /' conftest.$ac_ext >&5 3472 3473 3474fi 3475 3476rm -f core conftest.err conftest.$ac_objext 3477 test "x$ac_cv_prog_cc_c89" != "xno" && break 3478done 3479rm -f conftest.$ac_ext 3480CC=$ac_save_CC 3481 3482fi 3483# AC_CACHE_VAL 3484case "x$ac_cv_prog_cc_c89" in 3485 x) 3486 { echo "$as_me:$LINENO: result: none needed" >&5 3487echo "${ECHO_T}none needed" >&6; } ;; 3488 xno) 3489 { echo "$as_me:$LINENO: result: unsupported" >&5 3490echo "${ECHO_T}unsupported" >&6; } ;; 3491 *) 3492 CC="$CC $ac_cv_prog_cc_c89" 3493 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3494echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3495esac 3496 3497 3498ac_ext=c 3499ac_cpp='$CPP $CPPFLAGS' 3500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3502ac_compiler_gnu=$ac_cv_c_compiler_gnu 3503DEPDIR="${am__leading_dot}deps" 3504 3505ac_config_commands="$ac_config_commands depfiles" 3506 3507 3508am_make=${MAKE-make} 3509cat > confinc << 'END' 3510am__doit: 3511 @echo done 3512.PHONY: am__doit 3513END 3514# If we don't find an include directive, just comment out the code. 3515{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3516echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3517am__include="#" 3518am__quote= 3519_am_result=none 3520# First try GNU make style include. 3521echo "include confinc" > confmf 3522# We grep out `Entering directory' and `Leaving directory' 3523# messages which can occur if `w' ends up in MAKEFLAGS. 3524# In particular we don't look at `^make:' because GNU make might 3525# be invoked under some other name (usually "gmake"), in which 3526# case it prints its new name instead of `make'. 3527if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3528 am__include=include 3529 am__quote= 3530 _am_result=GNU 3531fi 3532# Now try BSD make style include. 3533if test "$am__include" = "#"; then 3534 echo '.include "confinc"' > confmf 3535 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3536 am__include=.include 3537 am__quote="\"" 3538 _am_result=BSD 3539 fi 3540fi 3541 3542 3543{ echo "$as_me:$LINENO: result: $_am_result" >&5 3544echo "${ECHO_T}$_am_result" >&6; } 3545rm -f confinc confmf 3546 3547# Check whether --enable-dependency-tracking was given. 3548if test "${enable_dependency_tracking+set}" = set; then 3549 enableval=$enable_dependency_tracking; 3550fi 3551 3552if test "x$enable_dependency_tracking" != xno; then 3553 am_depcomp="$ac_aux_dir/depcomp" 3554 AMDEPBACKSLASH='\' 3555fi 3556 3557 3558if test "x$enable_dependency_tracking" != xno; then 3559 AMDEP_TRUE= 3560 AMDEP_FALSE='#' 3561else 3562 AMDEP_TRUE='#' 3563 AMDEP_FALSE= 3564fi 3565 3566 3567 3568 3569depcc="$CC" am_compiler_list= 3570 3571{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3572echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3573if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3574 echo $ECHO_N "(cached) $ECHO_C" >&6 3575else 3576 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3577 # We make a subdir and do the tests there. Otherwise we can end up 3578 # making bogus files that we don't know about and never remove. For 3579 # instance it was reported that on HP-UX the gcc test will end up 3580 # making a dummy file named `D' -- because `-MD' means `put the output 3581 # in D'. 3582 mkdir conftest.dir 3583 # Copy depcomp to subdir because otherwise we won't find it if we're 3584 # using a relative directory. 3585 cp "$am_depcomp" conftest.dir 3586 cd conftest.dir 3587 # We will build objects and dependencies in a subdirectory because 3588 # it helps to detect inapplicable dependency modes. For instance 3589 # both Tru64's cc and ICC support -MD to output dependencies as a 3590 # side effect of compilation, but ICC will put the dependencies in 3591 # the current directory while Tru64 will put them in the object 3592 # directory. 3593 mkdir sub 3594 3595 am_cv_CC_dependencies_compiler_type=none 3596 if test "$am_compiler_list" = ""; then 3597 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3598 fi 3599 for depmode in $am_compiler_list; do 3600 # Setup a source with many dependencies, because some compilers 3601 # like to wrap large dependency lists on column 80 (with \), and 3602 # we should not choose a depcomp mode which is confused by this. 3603 # 3604 # We need to recreate these files for each test, as the compiler may 3605 # overwrite some of them when testing with obscure command lines. 3606 # This happens at least with the AIX C compiler. 3607 : > sub/conftest.c 3608 for i in 1 2 3 4 5 6; do 3609 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3610 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3611 # Solaris 8's {/usr,}/bin/sh. 3612 touch sub/conftst$i.h 3613 done 3614 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3615 3616 case $depmode in 3617 nosideeffect) 3618 # after this tag, mechanisms are not by side-effect, so they'll 3619 # only be used when explicitly requested 3620 if test "x$enable_dependency_tracking" = xyes; then 3621 continue 3622 else 3623 break 3624 fi 3625 ;; 3626 none) break ;; 3627 esac 3628 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3629 # mode. It turns out that the SunPro C++ compiler does not properly 3630 # handle `-M -o', and we need to detect this. 3631 if depmode=$depmode \ 3632 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3633 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3634 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3635 >/dev/null 2>conftest.err && 3636 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3637 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3638 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3639 # icc doesn't choke on unknown options, it will just issue warnings 3640 # or remarks (even with -Werror). So we grep stderr for any message 3641 # that says an option was ignored or not supported. 3642 # When given -MP, icc 7.0 and 7.1 complain thusly: 3643 # icc: Command line warning: ignoring option '-M'; no argument required 3644 # The diagnosis changed in icc 8.0: 3645 # icc: Command line remark: option '-MP' not supported 3646 if (grep 'ignoring option' conftest.err || 3647 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3648 am_cv_CC_dependencies_compiler_type=$depmode 3649 break 3650 fi 3651 fi 3652 done 3653 3654 cd .. 3655 rm -rf conftest.dir 3656else 3657 am_cv_CC_dependencies_compiler_type=none 3658fi 3659 3660fi 3661{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3662echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3663CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3664 3665 3666 3667if 3668 test "x$enable_dependency_tracking" != xno \ 3669 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3670 am__fastdepCC_TRUE= 3671 am__fastdepCC_FALSE='#' 3672else 3673 am__fastdepCC_TRUE='#' 3674 am__fastdepCC_FALSE= 3675fi 3676 3677 3678# Find a good install program. We prefer a C program (faster), 3679# so one script is as good as another. But avoid the broken or 3680# incompatible versions: 3681# SysV /etc/install, /usr/sbin/install 3682# SunOS /usr/etc/install 3683# IRIX /sbin/install 3684# AIX /bin/install 3685# AmigaOS /C/install, which installs bootblocks on floppy discs 3686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3687# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3689# OS/2's system install, which has a completely different semantic 3690# ./install, which can be erroneously created by make from ./install.sh. 3691{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3692echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3693if test -z "$INSTALL"; then 3694if test "${ac_cv_path_install+set}" = set; then 3695 echo $ECHO_N "(cached) $ECHO_C" >&6 3696else 3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3698for as_dir in $PATH 3699do 3700 IFS=$as_save_IFS 3701 test -z "$as_dir" && as_dir=. 3702 # Account for people who put trailing slashes in PATH elements. 3703case $as_dir/ in 3704 ./ | .// | /cC/* | \ 3705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3706 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3707 /usr/ucb/* ) ;; 3708 *) 3709 # OSF1 and SCO ODT 3.0 have their own names for install. 3710 # Don't use installbsd from OSF since it installs stuff as root 3711 # by default. 3712 for ac_prog in ginstall scoinst install; do 3713 for ac_exec_ext in '' $ac_executable_extensions; do 3714 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 3715 if test $ac_prog = install && 3716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3717 # AIX install. It has an incompatible calling convention. 3718 : 3719 elif test $ac_prog = install && 3720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3721 # program-specific install script used by HP pwplus--don't use. 3722 : 3723 else 3724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3725 break 3 3726 fi 3727 fi 3728 done 3729 done 3730 ;; 3731esac 3732done 3733IFS=$as_save_IFS 3734 3735 3736fi 3737 if test "${ac_cv_path_install+set}" = set; then 3738 INSTALL=$ac_cv_path_install 3739 else 3740 # As a last resort, use the slow shell script. Don't cache a 3741 # value for INSTALL within a source directory, because that will 3742 # break other packages using the cache if that directory is 3743 # removed, or if the value is a relative name. 3744 INSTALL=$ac_install_sh 3745 fi 3746fi 3747{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3748echo "${ECHO_T}$INSTALL" >&6; } 3749 3750# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3751# It thinks the first close brace ends the variable substitution. 3752test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3753 3754test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3755 3756test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3757 3758{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 3759echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 3760LN_S=$as_ln_s 3761if test "$LN_S" = "ln -s"; then 3762 { echo "$as_me:$LINENO: result: yes" >&5 3763echo "${ECHO_T}yes" >&6; } 3764else 3765 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3766echo "${ECHO_T}no, using $LN_S" >&6; } 3767fi 3768 3769 3770 3771# Check whether --enable-shared was given. 3772if test "${enable_shared+set}" = set; then 3773 enableval=$enable_shared; p=${PACKAGE-default} 3774 case $enableval in 3775 yes) enable_shared=yes ;; 3776 no) enable_shared=no ;; 3777 *) 3778 enable_shared=no 3779 # Look at the argument we got. We use all the common list separators. 3780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3781 for pkg in $enableval; do 3782 IFS="$lt_save_ifs" 3783 if test "X$pkg" = "X$p"; then 3784 enable_shared=yes 3785 fi 3786 done 3787 IFS="$lt_save_ifs" 3788 ;; 3789 esac 3790else 3791 enable_shared=yes 3792fi 3793 3794 3795# Check whether --enable-static was given. 3796if test "${enable_static+set}" = set; then 3797 enableval=$enable_static; p=${PACKAGE-default} 3798 case $enableval in 3799 yes) enable_static=yes ;; 3800 no) enable_static=no ;; 3801 *) 3802 enable_static=no 3803 # Look at the argument we got. We use all the common list separators. 3804 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3805 for pkg in $enableval; do 3806 IFS="$lt_save_ifs" 3807 if test "X$pkg" = "X$p"; then 3808 enable_static=yes 3809 fi 3810 done 3811 IFS="$lt_save_ifs" 3812 ;; 3813 esac 3814else 3815 enable_static=yes 3816fi 3817 3818 3819# Check whether --enable-fast-install was given. 3820if test "${enable_fast_install+set}" = set; then 3821 enableval=$enable_fast_install; p=${PACKAGE-default} 3822 case $enableval in 3823 yes) enable_fast_install=yes ;; 3824 no) enable_fast_install=no ;; 3825 *) 3826 enable_fast_install=no 3827 # Look at the argument we got. We use all the common list separators. 3828 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3829 for pkg in $enableval; do 3830 IFS="$lt_save_ifs" 3831 if test "X$pkg" = "X$p"; then 3832 enable_fast_install=yes 3833 fi 3834 done 3835 IFS="$lt_save_ifs" 3836 ;; 3837 esac 3838else 3839 enable_fast_install=yes 3840fi 3841 3842 3843# Make sure we can run config.sub. 3844$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3845 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3846echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3847 { (exit 1); exit 1; }; } 3848 3849{ echo "$as_me:$LINENO: checking build system type" >&5 3850echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3851if test "${ac_cv_build+set}" = set; then 3852 echo $ECHO_N "(cached) $ECHO_C" >&6 3853else 3854 ac_build_alias=$build_alias 3855test "x$ac_build_alias" = x && 3856 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3857test "x$ac_build_alias" = x && 3858 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3859echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3860 { (exit 1); exit 1; }; } 3861ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3862 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3863echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3864 { (exit 1); exit 1; }; } 3865 3866fi 3867{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3868echo "${ECHO_T}$ac_cv_build" >&6; } 3869case $ac_cv_build in 3870*-*-*) ;; 3871*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3872echo "$as_me: error: invalid value of canonical build" >&2;} 3873 { (exit 1); exit 1; }; };; 3874esac 3875build=$ac_cv_build 3876ac_save_IFS=$IFS; IFS='-' 3877set x $ac_cv_build 3878shift 3879build_cpu=$1 3880build_vendor=$2 3881shift; shift 3882# Remember, the first character of IFS is used to create $*, 3883# except with old shells: 3884build_os=$* 3885IFS=$ac_save_IFS 3886case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3887 3888 3889{ echo "$as_me:$LINENO: checking host system type" >&5 3890echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3891if test "${ac_cv_host+set}" = set; then 3892 echo $ECHO_N "(cached) $ECHO_C" >&6 3893else 3894 if test "x$host_alias" = x; then 3895 ac_cv_host=$ac_cv_build 3896else 3897 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3898 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3899echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3900 { (exit 1); exit 1; }; } 3901fi 3902 3903fi 3904{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3905echo "${ECHO_T}$ac_cv_host" >&6; } 3906case $ac_cv_host in 3907*-*-*) ;; 3908*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3909echo "$as_me: error: invalid value of canonical host" >&2;} 3910 { (exit 1); exit 1; }; };; 3911esac 3912host=$ac_cv_host 3913ac_save_IFS=$IFS; IFS='-' 3914set x $ac_cv_host 3915shift 3916host_cpu=$1 3917host_vendor=$2 3918shift; shift 3919# Remember, the first character of IFS is used to create $*, 3920# except with old shells: 3921host_os=$* 3922IFS=$ac_save_IFS 3923case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3924 3925 3926{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3927echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3928if test "${lt_cv_path_SED+set}" = set; then 3929 echo $ECHO_N "(cached) $ECHO_C" >&6 3930else 3931 # Loop through the user's path and test for sed and gsed. 3932# Then use that list of sed's as ones to test for truncation. 3933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3934for as_dir in $PATH 3935do 3936 IFS=$as_save_IFS 3937 test -z "$as_dir" && as_dir=. 3938 for lt_ac_prog in sed gsed; do 3939 for ac_exec_ext in '' $ac_executable_extensions; do 3940 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3941 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3942 fi 3943 done 3944 done 3945done 3946lt_ac_max=0 3947lt_ac_count=0 3948# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3949# along with /bin/sed that truncates output. 3950for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3951 test ! -f $lt_ac_sed && continue 3952 cat /dev/null > conftest.in 3953 lt_ac_count=0 3954 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3955 # Check for GNU sed and select it if it is found. 3956 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3957 lt_cv_path_SED=$lt_ac_sed 3958 break 3959 fi 3960 while true; do 3961 cat conftest.in conftest.in >conftest.tmp 3962 mv conftest.tmp conftest.in 3963 cp conftest.in conftest.nl 3964 echo >>conftest.nl 3965 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3966 cmp -s conftest.out conftest.nl || break 3967 # 10000 chars as input seems more than enough 3968 test $lt_ac_count -gt 10 && break 3969 lt_ac_count=`expr $lt_ac_count + 1` 3970 if test $lt_ac_count -gt $lt_ac_max; then 3971 lt_ac_max=$lt_ac_count 3972 lt_cv_path_SED=$lt_ac_sed 3973 fi 3974 done 3975done 3976 3977fi 3978 3979SED=$lt_cv_path_SED 3980{ echo "$as_me:$LINENO: result: $SED" >&5 3981echo "${ECHO_T}$SED" >&6; } 3982 3983{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3984echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3985if test "${ac_cv_path_GREP+set}" = set; then 3986 echo $ECHO_N "(cached) $ECHO_C" >&6 3987else 3988 # Extract the first word of "grep ggrep" to use in msg output 3989if test -z "$GREP"; then 3990set dummy grep ggrep; ac_prog_name=$2 3991if test "${ac_cv_path_GREP+set}" = set; then 3992 echo $ECHO_N "(cached) $ECHO_C" >&6 3993else 3994 ac_path_GREP_found=false 3995# Loop through the user's path and test for each of PROGNAME-LIST 3996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3997for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3998do 3999 IFS=$as_save_IFS 4000 test -z "$as_dir" && as_dir=. 4001 for ac_prog in grep ggrep; do 4002 for ac_exec_ext in '' $ac_executable_extensions; do 4003 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4004 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 4005 # Check for GNU ac_path_GREP and select it if it is found. 4006 # Check for GNU $ac_path_GREP 4007case `"$ac_path_GREP" --version 2>&1` in 4008*GNU*) 4009 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4010*) 4011 ac_count=0 4012 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4013 while : 4014 do 4015 cat "conftest.in" "conftest.in" >"conftest.tmp" 4016 mv "conftest.tmp" "conftest.in" 4017 cp "conftest.in" "conftest.nl" 4018 echo 'GREP' >> "conftest.nl" 4019 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4021 ac_count=`expr $ac_count + 1` 4022 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4023 # Best one so far, save it but keep looking for a better one 4024 ac_cv_path_GREP="$ac_path_GREP" 4025 ac_path_GREP_max=$ac_count 4026 fi 4027 # 10*(2^10) chars as input seems more than enough 4028 test $ac_count -gt 10 && break 4029 done 4030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4031esac 4032 4033 4034 $ac_path_GREP_found && break 3 4035 done 4036done 4037 4038done 4039IFS=$as_save_IFS 4040 4041 4042fi 4043 4044GREP="$ac_cv_path_GREP" 4045if test -z "$GREP"; then 4046 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4047echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4048 { (exit 1); exit 1; }; } 4049fi 4050 4051else 4052 ac_cv_path_GREP=$GREP 4053fi 4054 4055 4056fi 4057{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4058echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4059 GREP="$ac_cv_path_GREP" 4060 4061 4062{ echo "$as_me:$LINENO: checking for egrep" >&5 4063echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4064if test "${ac_cv_path_EGREP+set}" = set; then 4065 echo $ECHO_N "(cached) $ECHO_C" >&6 4066else 4067 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4068 then ac_cv_path_EGREP="$GREP -E" 4069 else 4070 # Extract the first word of "egrep" to use in msg output 4071if test -z "$EGREP"; then 4072set dummy egrep; ac_prog_name=$2 4073if test "${ac_cv_path_EGREP+set}" = set; then 4074 echo $ECHO_N "(cached) $ECHO_C" >&6 4075else 4076 ac_path_EGREP_found=false 4077# Loop through the user's path and test for each of PROGNAME-LIST 4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4079for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4080do 4081 IFS=$as_save_IFS 4082 test -z "$as_dir" && as_dir=. 4083 for ac_prog in egrep; do 4084 for ac_exec_ext in '' $ac_executable_extensions; do 4085 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4086 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4087 # Check for GNU ac_path_EGREP and select it if it is found. 4088 # Check for GNU $ac_path_EGREP 4089case `"$ac_path_EGREP" --version 2>&1` in 4090*GNU*) 4091 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4092*) 4093 ac_count=0 4094 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4095 while : 4096 do 4097 cat "conftest.in" "conftest.in" >"conftest.tmp" 4098 mv "conftest.tmp" "conftest.in" 4099 cp "conftest.in" "conftest.nl" 4100 echo 'EGREP' >> "conftest.nl" 4101 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4103 ac_count=`expr $ac_count + 1` 4104 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4105 # Best one so far, save it but keep looking for a better one 4106 ac_cv_path_EGREP="$ac_path_EGREP" 4107 ac_path_EGREP_max=$ac_count 4108 fi 4109 # 10*(2^10) chars as input seems more than enough 4110 test $ac_count -gt 10 && break 4111 done 4112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4113esac 4114 4115 4116 $ac_path_EGREP_found && break 3 4117 done 4118done 4119 4120done 4121IFS=$as_save_IFS 4122 4123 4124fi 4125 4126EGREP="$ac_cv_path_EGREP" 4127if test -z "$EGREP"; then 4128 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4129echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4130 { (exit 1); exit 1; }; } 4131fi 4132 4133else 4134 ac_cv_path_EGREP=$EGREP 4135fi 4136 4137 4138 fi 4139fi 4140{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4141echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4142 EGREP="$ac_cv_path_EGREP" 4143 4144 4145 4146# Check whether --with-gnu-ld was given. 4147if test "${with_gnu_ld+set}" = set; then 4148 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4149else 4150 with_gnu_ld=no 4151fi 4152 4153ac_prog=ld 4154if test "$GCC" = yes; then 4155 # Check if gcc -print-prog-name=ld gives a path. 4156 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4157echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4158 case $host in 4159 *-*-mingw*) 4160 # gcc leaves a trailing carriage return which upsets mingw 4161 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4162 *) 4163 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4164 esac 4165 case $ac_prog in 4166 # Accept absolute paths. 4167 [\\/]* | ?:[\\/]*) 4168 re_direlt='/[^/][^/]*/\.\./' 4169 # Canonicalize the pathname of ld 4170 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4171 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4172 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4173 done 4174 test -z "$LD" && LD="$ac_prog" 4175 ;; 4176 "") 4177 # If it fails, then pretend we aren't using GCC. 4178 ac_prog=ld 4179 ;; 4180 *) 4181 # If it is relative, then search for the first ld in PATH. 4182 with_gnu_ld=unknown 4183 ;; 4184 esac 4185elif test "$with_gnu_ld" = yes; then 4186 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4187echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4188else 4189 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4190echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4191fi 4192if test "${lt_cv_path_LD+set}" = set; then 4193 echo $ECHO_N "(cached) $ECHO_C" >&6 4194else 4195 if test -z "$LD"; then 4196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4197 for ac_dir in $PATH; do 4198 IFS="$lt_save_ifs" 4199 test -z "$ac_dir" && ac_dir=. 4200 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4201 lt_cv_path_LD="$ac_dir/$ac_prog" 4202 # Check to see if the program is GNU ld. I'd rather use --version, 4203 # but apparently some variants of GNU ld only accept -v. 4204 # Break only if it was the GNU/non-GNU ld that we prefer. 4205 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4206 *GNU* | *'with BFD'*) 4207 test "$with_gnu_ld" != no && break 4208 ;; 4209 *) 4210 test "$with_gnu_ld" != yes && break 4211 ;; 4212 esac 4213 fi 4214 done 4215 IFS="$lt_save_ifs" 4216else 4217 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4218fi 4219fi 4220 4221LD="$lt_cv_path_LD" 4222if test -n "$LD"; then 4223 { echo "$as_me:$LINENO: result: $LD" >&5 4224echo "${ECHO_T}$LD" >&6; } 4225else 4226 { echo "$as_me:$LINENO: result: no" >&5 4227echo "${ECHO_T}no" >&6; } 4228fi 4229test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4230echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4231 { (exit 1); exit 1; }; } 4232{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4233echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4234if test "${lt_cv_prog_gnu_ld+set}" = set; then 4235 echo $ECHO_N "(cached) $ECHO_C" >&6 4236else 4237 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4238case `$LD -v 2>&1 </dev/null` in 4239*GNU* | *'with BFD'*) 4240 lt_cv_prog_gnu_ld=yes 4241 ;; 4242*) 4243 lt_cv_prog_gnu_ld=no 4244 ;; 4245esac 4246fi 4247{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4248echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4249with_gnu_ld=$lt_cv_prog_gnu_ld 4250 4251 4252{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4253echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4254if test "${lt_cv_ld_reload_flag+set}" = set; then 4255 echo $ECHO_N "(cached) $ECHO_C" >&6 4256else 4257 lt_cv_ld_reload_flag='-r' 4258fi 4259{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4260echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4261reload_flag=$lt_cv_ld_reload_flag 4262case $reload_flag in 4263"" | " "*) ;; 4264*) reload_flag=" $reload_flag" ;; 4265esac 4266reload_cmds='$LD$reload_flag -o $output$reload_objs' 4267case $host_os in 4268 darwin*) 4269 if test "$GCC" = yes; then 4270 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4271 else 4272 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4273 fi 4274 ;; 4275esac 4276 4277{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4278echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4279if test "${lt_cv_path_NM+set}" = set; then 4280 echo $ECHO_N "(cached) $ECHO_C" >&6 4281else 4282 if test -n "$NM"; then 4283 # Let the user override the test. 4284 lt_cv_path_NM="$NM" 4285else 4286 lt_nm_to_check="${ac_tool_prefix}nm" 4287 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4288 lt_nm_to_check="$lt_nm_to_check nm" 4289 fi 4290 for lt_tmp_nm in $lt_nm_to_check; do 4291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4292 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4293 IFS="$lt_save_ifs" 4294 test -z "$ac_dir" && ac_dir=. 4295 tmp_nm="$ac_dir/$lt_tmp_nm" 4296 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4297 # Check to see if the nm accepts a BSD-compat flag. 4298 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4299 # nm: unknown option "B" ignored 4300 # Tru64's nm complains that /dev/null is an invalid object file 4301 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4302 */dev/null* | *'Invalid file or object type'*) 4303 lt_cv_path_NM="$tmp_nm -B" 4304 break 4305 ;; 4306 *) 4307 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4308 */dev/null*) 4309 lt_cv_path_NM="$tmp_nm -p" 4310 break 4311 ;; 4312 *) 4313 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4314 continue # so that we can try to find one that supports BSD flags 4315 ;; 4316 esac 4317 ;; 4318 esac 4319 fi 4320 done 4321 IFS="$lt_save_ifs" 4322 done 4323 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4324fi 4325fi 4326{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4327echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4328NM="$lt_cv_path_NM" 4329 4330{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4331echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4332if test "${lt_cv_deplibs_check_method+set}" = set; then 4333 echo $ECHO_N "(cached) $ECHO_C" >&6 4334else 4335 lt_cv_file_magic_cmd='$MAGIC_CMD' 4336lt_cv_file_magic_test_file= 4337lt_cv_deplibs_check_method='unknown' 4338# Need to set the preceding variable on all platforms that support 4339# interlibrary dependencies. 4340# 'none' -- dependencies not supported. 4341# `unknown' -- same as none, but documents that we really don't know. 4342# 'pass_all' -- all dependencies passed with no checks. 4343# 'test_compile' -- check by making test program. 4344# 'file_magic [[regex]]' -- check by looking for files in library path 4345# which responds to the $file_magic_cmd with a given extended regex. 4346# If you have `file' or equivalent on your system and you're not sure 4347# whether `pass_all' will *always* work, you probably want this one. 4348 4349case $host_os in 4350aix4* | aix5*) 4351 lt_cv_deplibs_check_method=pass_all 4352 ;; 4353 4354beos*) 4355 lt_cv_deplibs_check_method=pass_all 4356 ;; 4357 4358bsdi[45]*) 4359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4360 lt_cv_file_magic_cmd='/usr/bin/file -L' 4361 lt_cv_file_magic_test_file=/shlib/libc.so 4362 ;; 4363 4364cygwin*) 4365 # func_win32_libid is a shell function defined in ltmain.sh 4366 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4367 lt_cv_file_magic_cmd='func_win32_libid' 4368 ;; 4369 4370mingw* | pw32*) 4371 # Base MSYS/MinGW do not provide the 'file' command needed by 4372 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4373 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4374 lt_cv_file_magic_cmd='$OBJDUMP -f' 4375 ;; 4376 4377darwin* | rhapsody*) 4378 lt_cv_deplibs_check_method=pass_all 4379 ;; 4380 4381freebsd* | dragonfly*) 4382 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4383 case $host_cpu in 4384 i*86 ) 4385 # Not sure whether the presence of OpenBSD here was a mistake. 4386 # Let's accept both of them until this is cleared up. 4387 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4388 lt_cv_file_magic_cmd=/usr/bin/file 4389 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4390 ;; 4391 esac 4392 else 4393 lt_cv_deplibs_check_method=pass_all 4394 fi 4395 ;; 4396 4397gnu*) 4398 lt_cv_deplibs_check_method=pass_all 4399 ;; 4400 4401hpux10.20* | hpux11*) 4402 lt_cv_file_magic_cmd=/usr/bin/file 4403 case $host_cpu in 4404 ia64*) 4405 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4406 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4407 ;; 4408 hppa*64*) 4409 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]' 4410 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4411 ;; 4412 *) 4413 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4414 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4415 ;; 4416 esac 4417 ;; 4418 4419interix3*) 4420 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4422 ;; 4423 4424irix5* | irix6* | nonstopux*) 4425 case $LD in 4426 *-32|*"-32 ") libmagic=32-bit;; 4427 *-n32|*"-n32 ") libmagic=N32;; 4428 *-64|*"-64 ") libmagic=64-bit;; 4429 *) libmagic=never-match;; 4430 esac 4431 lt_cv_deplibs_check_method=pass_all 4432 ;; 4433 4434# This must be Linux ELF. 4435linux* | k*bsd*-gnu) 4436 lt_cv_deplibs_check_method=pass_all 4437 ;; 4438 4439netbsd* | netbsdelf*-gnu) 4440 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4442 else 4443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4444 fi 4445 ;; 4446 4447newos6*) 4448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4449 lt_cv_file_magic_cmd=/usr/bin/file 4450 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4451 ;; 4452 4453nto-qnx*) 4454 lt_cv_deplibs_check_method=unknown 4455 ;; 4456 4457openbsd*) 4458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4460 else 4461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4462 fi 4463 ;; 4464 4465osf3* | osf4* | osf5*) 4466 lt_cv_deplibs_check_method=pass_all 4467 ;; 4468 4469solaris*) 4470 lt_cv_deplibs_check_method=pass_all 4471 ;; 4472 4473sysv4 | sysv4.3*) 4474 case $host_vendor in 4475 motorola) 4476 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]' 4477 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4478 ;; 4479 ncr) 4480 lt_cv_deplibs_check_method=pass_all 4481 ;; 4482 sequent) 4483 lt_cv_file_magic_cmd='/bin/file' 4484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4485 ;; 4486 sni) 4487 lt_cv_file_magic_cmd='/bin/file' 4488 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4489 lt_cv_file_magic_test_file=/lib/libc.so 4490 ;; 4491 siemens) 4492 lt_cv_deplibs_check_method=pass_all 4493 ;; 4494 pc) 4495 lt_cv_deplibs_check_method=pass_all 4496 ;; 4497 esac 4498 ;; 4499 4500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4501 lt_cv_deplibs_check_method=pass_all 4502 ;; 4503esac 4504 4505fi 4506{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4507echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4508file_magic_cmd=$lt_cv_file_magic_cmd 4509deplibs_check_method=$lt_cv_deplibs_check_method 4510test -z "$deplibs_check_method" && deplibs_check_method=unknown 4511 4512 4513 4514 4515# If no C compiler was specified, use CC. 4516LTCC=${LTCC-"$CC"} 4517 4518# If no C compiler flags were specified, use CFLAGS. 4519LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4520 4521# Allow CC to be a program name with arguments. 4522compiler=$CC 4523 4524 4525# Check whether --enable-libtool-lock was given. 4526if test "${enable_libtool_lock+set}" = set; then 4527 enableval=$enable_libtool_lock; 4528fi 4529 4530test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4531 4532# Some flags need to be propagated to the compiler or linker for good 4533# libtool support. 4534case $host in 4535ia64-*-hpux*) 4536 # Find out which ABI we are using. 4537 echo 'int i;' > conftest.$ac_ext 4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4539 (eval $ac_compile) 2>&5 4540 ac_status=$? 4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4542 (exit $ac_status); }; then 4543 case `/usr/bin/file conftest.$ac_objext` in 4544 *ELF-32*) 4545 HPUX_IA64_MODE="32" 4546 ;; 4547 *ELF-64*) 4548 HPUX_IA64_MODE="64" 4549 ;; 4550 esac 4551 fi 4552 rm -rf conftest* 4553 ;; 4554*-*-irix6*) 4555 # Find out which ABI we are using. 4556 echo '#line 4556 "configure"' > conftest.$ac_ext 4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4558 (eval $ac_compile) 2>&5 4559 ac_status=$? 4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4561 (exit $ac_status); }; then 4562 if test "$lt_cv_prog_gnu_ld" = yes; then 4563 case `/usr/bin/file conftest.$ac_objext` in 4564 *32-bit*) 4565 LD="${LD-ld} -melf32bsmip" 4566 ;; 4567 *N32*) 4568 LD="${LD-ld} -melf32bmipn32" 4569 ;; 4570 *64-bit*) 4571 LD="${LD-ld} -melf64bmip" 4572 ;; 4573 esac 4574 else 4575 case `/usr/bin/file conftest.$ac_objext` in 4576 *32-bit*) 4577 LD="${LD-ld} -32" 4578 ;; 4579 *N32*) 4580 LD="${LD-ld} -n32" 4581 ;; 4582 *64-bit*) 4583 LD="${LD-ld} -64" 4584 ;; 4585 esac 4586 fi 4587 fi 4588 rm -rf conftest* 4589 ;; 4590 4591x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4592 # Find out which ABI we are using. 4593 echo 'int i;' > conftest.$ac_ext 4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4595 (eval $ac_compile) 2>&5 4596 ac_status=$? 4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4598 (exit $ac_status); }; then 4599 case `/usr/bin/file conftest.o` in 4600 *32-bit*) 4601 case $host in 4602 x86_64-*linux*) 4603 LD="${LD-ld} -m elf_i386" 4604 ;; 4605 ppc64-*linux*|powerpc64-*linux*) 4606 LD="${LD-ld} -m elf32ppclinux" 4607 ;; 4608 s390x-*linux*) 4609 LD="${LD-ld} -m elf_s390" 4610 ;; 4611 sparc64-*linux*) 4612 LD="${LD-ld} -m elf32_sparc" 4613 ;; 4614 esac 4615 ;; 4616 *64-bit*) 4617 case $host in 4618 x86_64-*linux*) 4619 LD="${LD-ld} -m elf_x86_64" 4620 ;; 4621 ppc*-*linux*|powerpc*-*linux*) 4622 LD="${LD-ld} -m elf64ppc" 4623 ;; 4624 s390*-*linux*) 4625 LD="${LD-ld} -m elf64_s390" 4626 ;; 4627 sparc*-*linux*) 4628 LD="${LD-ld} -m elf64_sparc" 4629 ;; 4630 esac 4631 ;; 4632 esac 4633 fi 4634 rm -rf conftest* 4635 ;; 4636 4637*-*-sco3.2v5*) 4638 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4639 SAVE_CFLAGS="$CFLAGS" 4640 CFLAGS="$CFLAGS -belf" 4641 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4642echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4643if test "${lt_cv_cc_needs_belf+set}" = set; then 4644 echo $ECHO_N "(cached) $ECHO_C" >&6 4645else 4646 ac_ext=c 4647ac_cpp='$CPP $CPPFLAGS' 4648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4650ac_compiler_gnu=$ac_cv_c_compiler_gnu 4651 4652 cat >conftest.$ac_ext <<_ACEOF 4653/* confdefs.h. */ 4654_ACEOF 4655cat confdefs.h >>conftest.$ac_ext 4656cat >>conftest.$ac_ext <<_ACEOF 4657/* end confdefs.h. */ 4658 4659int 4660main () 4661{ 4662 4663 ; 4664 return 0; 4665} 4666_ACEOF 4667rm -f conftest.$ac_objext conftest$ac_exeext 4668if { (ac_try="$ac_link" 4669case "(($ac_try" in 4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4671 *) ac_try_echo=$ac_try;; 4672esac 4673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4674 (eval "$ac_link") 2>conftest.er1 4675 ac_status=$? 4676 grep -v '^ *+' conftest.er1 >conftest.err 4677 rm -f conftest.er1 4678 cat conftest.err >&5 4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4680 (exit $ac_status); } && 4681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4682 { (case "(($ac_try" in 4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4684 *) ac_try_echo=$ac_try;; 4685esac 4686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4687 (eval "$ac_try") 2>&5 4688 ac_status=$? 4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4690 (exit $ac_status); }; } && 4691 { ac_try='test -s conftest$ac_exeext' 4692 { (case "(($ac_try" in 4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4694 *) ac_try_echo=$ac_try;; 4695esac 4696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4697 (eval "$ac_try") 2>&5 4698 ac_status=$? 4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4700 (exit $ac_status); }; }; then 4701 lt_cv_cc_needs_belf=yes 4702else 4703 echo "$as_me: failed program was:" >&5 4704sed 's/^/| /' conftest.$ac_ext >&5 4705 4706 lt_cv_cc_needs_belf=no 4707fi 4708 4709rm -f core conftest.err conftest.$ac_objext \ 4710 conftest$ac_exeext conftest.$ac_ext 4711 ac_ext=c 4712ac_cpp='$CPP $CPPFLAGS' 4713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4715ac_compiler_gnu=$ac_cv_c_compiler_gnu 4716 4717fi 4718{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4719echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4720 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4721 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4722 CFLAGS="$SAVE_CFLAGS" 4723 fi 4724 ;; 4725sparc*-*solaris*) 4726 # Find out which ABI we are using. 4727 echo 'int i;' > conftest.$ac_ext 4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4729 (eval $ac_compile) 2>&5 4730 ac_status=$? 4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4732 (exit $ac_status); }; then 4733 case `/usr/bin/file conftest.o` in 4734 *64-bit*) 4735 case $lt_cv_prog_gnu_ld in 4736 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4737 *) LD="${LD-ld} -64" ;; 4738 esac 4739 ;; 4740 esac 4741 fi 4742 rm -rf conftest* 4743 ;; 4744 4745*-*-cygwin* | *-*-mingw* | *-*-pw32*) 4746 if test -n "$ac_tool_prefix"; then 4747 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4748set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4749{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4751if test "${ac_cv_prog_DLLTOOL+set}" = set; then 4752 echo $ECHO_N "(cached) $ECHO_C" >&6 4753else 4754 if test -n "$DLLTOOL"; then 4755 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4756else 4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4758for as_dir in $PATH 4759do 4760 IFS=$as_save_IFS 4761 test -z "$as_dir" && as_dir=. 4762 for ac_exec_ext in '' $ac_executable_extensions; do 4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4764 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4766 break 2 4767 fi 4768done 4769done 4770IFS=$as_save_IFS 4771 4772fi 4773fi 4774DLLTOOL=$ac_cv_prog_DLLTOOL 4775if test -n "$DLLTOOL"; then 4776 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 4777echo "${ECHO_T}$DLLTOOL" >&6; } 4778else 4779 { echo "$as_me:$LINENO: result: no" >&5 4780echo "${ECHO_T}no" >&6; } 4781fi 4782 4783 4784fi 4785if test -z "$ac_cv_prog_DLLTOOL"; then 4786 ac_ct_DLLTOOL=$DLLTOOL 4787 # Extract the first word of "dlltool", so it can be a program name with args. 4788set dummy dlltool; ac_word=$2 4789{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4791if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 4792 echo $ECHO_N "(cached) $ECHO_C" >&6 4793else 4794 if test -n "$ac_ct_DLLTOOL"; then 4795 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4796else 4797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4798for as_dir in $PATH 4799do 4800 IFS=$as_save_IFS 4801 test -z "$as_dir" && as_dir=. 4802 for ac_exec_ext in '' $ac_executable_extensions; do 4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4804 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4806 break 2 4807 fi 4808done 4809done 4810IFS=$as_save_IFS 4811 4812fi 4813fi 4814ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4815if test -n "$ac_ct_DLLTOOL"; then 4816 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 4817echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } 4818else 4819 { echo "$as_me:$LINENO: result: no" >&5 4820echo "${ECHO_T}no" >&6; } 4821fi 4822 4823 if test "x$ac_ct_DLLTOOL" = x; then 4824 DLLTOOL="false" 4825 else 4826 case $cross_compiling:$ac_tool_warned in 4827yes:) 4828{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4829whose name does not start with the host triplet. If you think this 4830configuration is useful to you, please write to autoconf@gnu.org." >&5 4831echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4832whose name does not start with the host triplet. If you think this 4833configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4834ac_tool_warned=yes ;; 4835esac 4836 DLLTOOL=$ac_ct_DLLTOOL 4837 fi 4838else 4839 DLLTOOL="$ac_cv_prog_DLLTOOL" 4840fi 4841 4842 if test -n "$ac_tool_prefix"; then 4843 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4844set dummy ${ac_tool_prefix}as; ac_word=$2 4845{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4847if test "${ac_cv_prog_AS+set}" = set; then 4848 echo $ECHO_N "(cached) $ECHO_C" >&6 4849else 4850 if test -n "$AS"; then 4851 ac_cv_prog_AS="$AS" # Let the user override the test. 4852else 4853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4854for as_dir in $PATH 4855do 4856 IFS=$as_save_IFS 4857 test -z "$as_dir" && as_dir=. 4858 for ac_exec_ext in '' $ac_executable_extensions; do 4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4860 ac_cv_prog_AS="${ac_tool_prefix}as" 4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4862 break 2 4863 fi 4864done 4865done 4866IFS=$as_save_IFS 4867 4868fi 4869fi 4870AS=$ac_cv_prog_AS 4871if test -n "$AS"; then 4872 { echo "$as_me:$LINENO: result: $AS" >&5 4873echo "${ECHO_T}$AS" >&6; } 4874else 4875 { echo "$as_me:$LINENO: result: no" >&5 4876echo "${ECHO_T}no" >&6; } 4877fi 4878 4879 4880fi 4881if test -z "$ac_cv_prog_AS"; then 4882 ac_ct_AS=$AS 4883 # Extract the first word of "as", so it can be a program name with args. 4884set dummy as; ac_word=$2 4885{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4887if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 4888 echo $ECHO_N "(cached) $ECHO_C" >&6 4889else 4890 if test -n "$ac_ct_AS"; then 4891 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4892else 4893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4894for as_dir in $PATH 4895do 4896 IFS=$as_save_IFS 4897 test -z "$as_dir" && as_dir=. 4898 for ac_exec_ext in '' $ac_executable_extensions; do 4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4900 ac_cv_prog_ac_ct_AS="as" 4901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4902 break 2 4903 fi 4904done 4905done 4906IFS=$as_save_IFS 4907 4908fi 4909fi 4910ac_ct_AS=$ac_cv_prog_ac_ct_AS 4911if test -n "$ac_ct_AS"; then 4912 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 4913echo "${ECHO_T}$ac_ct_AS" >&6; } 4914else 4915 { echo "$as_me:$LINENO: result: no" >&5 4916echo "${ECHO_T}no" >&6; } 4917fi 4918 4919 if test "x$ac_ct_AS" = x; then 4920 AS="false" 4921 else 4922 case $cross_compiling:$ac_tool_warned in 4923yes:) 4924{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4925whose name does not start with the host triplet. If you think this 4926configuration is useful to you, please write to autoconf@gnu.org." >&5 4927echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4928whose name does not start with the host triplet. If you think this 4929configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4930ac_tool_warned=yes ;; 4931esac 4932 AS=$ac_ct_AS 4933 fi 4934else 4935 AS="$ac_cv_prog_AS" 4936fi 4937 4938 if test -n "$ac_tool_prefix"; then 4939 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4940set dummy ${ac_tool_prefix}objdump; ac_word=$2 4941{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4943if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4944 echo $ECHO_N "(cached) $ECHO_C" >&6 4945else 4946 if test -n "$OBJDUMP"; then 4947 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4948else 4949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4950for as_dir in $PATH 4951do 4952 IFS=$as_save_IFS 4953 test -z "$as_dir" && as_dir=. 4954 for ac_exec_ext in '' $ac_executable_extensions; do 4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4956 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4958 break 2 4959 fi 4960done 4961done 4962IFS=$as_save_IFS 4963 4964fi 4965fi 4966OBJDUMP=$ac_cv_prog_OBJDUMP 4967if test -n "$OBJDUMP"; then 4968 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4969echo "${ECHO_T}$OBJDUMP" >&6; } 4970else 4971 { echo "$as_me:$LINENO: result: no" >&5 4972echo "${ECHO_T}no" >&6; } 4973fi 4974 4975 4976fi 4977if test -z "$ac_cv_prog_OBJDUMP"; then 4978 ac_ct_OBJDUMP=$OBJDUMP 4979 # Extract the first word of "objdump", so it can be a program name with args. 4980set dummy objdump; ac_word=$2 4981{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4983if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4984 echo $ECHO_N "(cached) $ECHO_C" >&6 4985else 4986 if test -n "$ac_ct_OBJDUMP"; then 4987 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4988else 4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4990for as_dir in $PATH 4991do 4992 IFS=$as_save_IFS 4993 test -z "$as_dir" && as_dir=. 4994 for ac_exec_ext in '' $ac_executable_extensions; do 4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4996 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4998 break 2 4999 fi 5000done 5001done 5002IFS=$as_save_IFS 5003 5004fi 5005fi 5006ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5007if test -n "$ac_ct_OBJDUMP"; then 5008 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5009echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 5010else 5011 { echo "$as_me:$LINENO: result: no" >&5 5012echo "${ECHO_T}no" >&6; } 5013fi 5014 5015 if test "x$ac_ct_OBJDUMP" = x; then 5016 OBJDUMP="false" 5017 else 5018 case $cross_compiling:$ac_tool_warned in 5019yes:) 5020{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5021whose name does not start with the host triplet. If you think this 5022configuration is useful to you, please write to autoconf@gnu.org." >&5 5023echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5024whose name does not start with the host triplet. If you think this 5025configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5026ac_tool_warned=yes ;; 5027esac 5028 OBJDUMP=$ac_ct_OBJDUMP 5029 fi 5030else 5031 OBJDUMP="$ac_cv_prog_OBJDUMP" 5032fi 5033 5034 ;; 5035 5036esac 5037 5038need_locks="$enable_libtool_lock" 5039 5040 5041ac_ext=c 5042ac_cpp='$CPP $CPPFLAGS' 5043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5045ac_compiler_gnu=$ac_cv_c_compiler_gnu 5046{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5047echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5048# On Suns, sometimes $CPP names a directory. 5049if test -n "$CPP" && test -d "$CPP"; then 5050 CPP= 5051fi 5052if test -z "$CPP"; then 5053 if test "${ac_cv_prog_CPP+set}" = set; then 5054 echo $ECHO_N "(cached) $ECHO_C" >&6 5055else 5056 # Double quotes because CPP needs to be expanded 5057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5058 do 5059 ac_preproc_ok=false 5060for ac_c_preproc_warn_flag in '' yes 5061do 5062 # Use a header file that comes with gcc, so configuring glibc 5063 # with a fresh cross-compiler works. 5064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5065 # <limits.h> exists even on freestanding compilers. 5066 # On the NeXT, cc -E runs the code through the compiler's parser, 5067 # not just through cpp. "Syntax error" is here to catch this case. 5068 cat >conftest.$ac_ext <<_ACEOF 5069/* confdefs.h. */ 5070_ACEOF 5071cat confdefs.h >>conftest.$ac_ext 5072cat >>conftest.$ac_ext <<_ACEOF 5073/* end confdefs.h. */ 5074#ifdef __STDC__ 5075# include <limits.h> 5076#else 5077# include <assert.h> 5078#endif 5079 Syntax error 5080_ACEOF 5081if { (ac_try="$ac_cpp conftest.$ac_ext" 5082case "(($ac_try" in 5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5084 *) ac_try_echo=$ac_try;; 5085esac 5086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5088 ac_status=$? 5089 grep -v '^ *+' conftest.er1 >conftest.err 5090 rm -f conftest.er1 5091 cat conftest.err >&5 5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5093 (exit $ac_status); } >/dev/null; then 5094 if test -s conftest.err; then 5095 ac_cpp_err=$ac_c_preproc_warn_flag 5096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5097 else 5098 ac_cpp_err= 5099 fi 5100else 5101 ac_cpp_err=yes 5102fi 5103if test -z "$ac_cpp_err"; then 5104 : 5105else 5106 echo "$as_me: failed program was:" >&5 5107sed 's/^/| /' conftest.$ac_ext >&5 5108 5109 # Broken: fails on valid input. 5110continue 5111fi 5112 5113rm -f conftest.err conftest.$ac_ext 5114 5115 # OK, works on sane cases. Now check whether nonexistent headers 5116 # can be detected and how. 5117 cat >conftest.$ac_ext <<_ACEOF 5118/* confdefs.h. */ 5119_ACEOF 5120cat confdefs.h >>conftest.$ac_ext 5121cat >>conftest.$ac_ext <<_ACEOF 5122/* end confdefs.h. */ 5123#include <ac_nonexistent.h> 5124_ACEOF 5125if { (ac_try="$ac_cpp conftest.$ac_ext" 5126case "(($ac_try" in 5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5128 *) ac_try_echo=$ac_try;; 5129esac 5130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5132 ac_status=$? 5133 grep -v '^ *+' conftest.er1 >conftest.err 5134 rm -f conftest.er1 5135 cat conftest.err >&5 5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5137 (exit $ac_status); } >/dev/null; then 5138 if test -s conftest.err; then 5139 ac_cpp_err=$ac_c_preproc_warn_flag 5140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5141 else 5142 ac_cpp_err= 5143 fi 5144else 5145 ac_cpp_err=yes 5146fi 5147if test -z "$ac_cpp_err"; then 5148 # Broken: success on invalid input. 5149continue 5150else 5151 echo "$as_me: failed program was:" >&5 5152sed 's/^/| /' conftest.$ac_ext >&5 5153 5154 # Passes both tests. 5155ac_preproc_ok=: 5156break 5157fi 5158 5159rm -f conftest.err conftest.$ac_ext 5160 5161done 5162# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5163rm -f conftest.err conftest.$ac_ext 5164if $ac_preproc_ok; then 5165 break 5166fi 5167 5168 done 5169 ac_cv_prog_CPP=$CPP 5170 5171fi 5172 CPP=$ac_cv_prog_CPP 5173else 5174 ac_cv_prog_CPP=$CPP 5175fi 5176{ echo "$as_me:$LINENO: result: $CPP" >&5 5177echo "${ECHO_T}$CPP" >&6; } 5178ac_preproc_ok=false 5179for ac_c_preproc_warn_flag in '' yes 5180do 5181 # Use a header file that comes with gcc, so configuring glibc 5182 # with a fresh cross-compiler works. 5183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5184 # <limits.h> exists even on freestanding compilers. 5185 # On the NeXT, cc -E runs the code through the compiler's parser, 5186 # not just through cpp. "Syntax error" is here to catch this case. 5187 cat >conftest.$ac_ext <<_ACEOF 5188/* confdefs.h. */ 5189_ACEOF 5190cat confdefs.h >>conftest.$ac_ext 5191cat >>conftest.$ac_ext <<_ACEOF 5192/* end confdefs.h. */ 5193#ifdef __STDC__ 5194# include <limits.h> 5195#else 5196# include <assert.h> 5197#endif 5198 Syntax error 5199_ACEOF 5200if { (ac_try="$ac_cpp conftest.$ac_ext" 5201case "(($ac_try" in 5202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5203 *) ac_try_echo=$ac_try;; 5204esac 5205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5207 ac_status=$? 5208 grep -v '^ *+' conftest.er1 >conftest.err 5209 rm -f conftest.er1 5210 cat conftest.err >&5 5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5212 (exit $ac_status); } >/dev/null; then 5213 if test -s conftest.err; then 5214 ac_cpp_err=$ac_c_preproc_warn_flag 5215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5216 else 5217 ac_cpp_err= 5218 fi 5219else 5220 ac_cpp_err=yes 5221fi 5222if test -z "$ac_cpp_err"; then 5223 : 5224else 5225 echo "$as_me: failed program was:" >&5 5226sed 's/^/| /' conftest.$ac_ext >&5 5227 5228 # Broken: fails on valid input. 5229continue 5230fi 5231 5232rm -f conftest.err conftest.$ac_ext 5233 5234 # OK, works on sane cases. Now check whether nonexistent headers 5235 # can be detected and how. 5236 cat >conftest.$ac_ext <<_ACEOF 5237/* confdefs.h. */ 5238_ACEOF 5239cat confdefs.h >>conftest.$ac_ext 5240cat >>conftest.$ac_ext <<_ACEOF 5241/* end confdefs.h. */ 5242#include <ac_nonexistent.h> 5243_ACEOF 5244if { (ac_try="$ac_cpp conftest.$ac_ext" 5245case "(($ac_try" in 5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5247 *) ac_try_echo=$ac_try;; 5248esac 5249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5251 ac_status=$? 5252 grep -v '^ *+' conftest.er1 >conftest.err 5253 rm -f conftest.er1 5254 cat conftest.err >&5 5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5256 (exit $ac_status); } >/dev/null; then 5257 if test -s conftest.err; then 5258 ac_cpp_err=$ac_c_preproc_warn_flag 5259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5260 else 5261 ac_cpp_err= 5262 fi 5263else 5264 ac_cpp_err=yes 5265fi 5266if test -z "$ac_cpp_err"; then 5267 # Broken: success on invalid input. 5268continue 5269else 5270 echo "$as_me: failed program was:" >&5 5271sed 's/^/| /' conftest.$ac_ext >&5 5272 5273 # Passes both tests. 5274ac_preproc_ok=: 5275break 5276fi 5277 5278rm -f conftest.err conftest.$ac_ext 5279 5280done 5281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5282rm -f conftest.err conftest.$ac_ext 5283if $ac_preproc_ok; then 5284 : 5285else 5286 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5287See \`config.log' for more details." >&5 5288echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5289See \`config.log' for more details." >&2;} 5290 { (exit 1); exit 1; }; } 5291fi 5292 5293ac_ext=c 5294ac_cpp='$CPP $CPPFLAGS' 5295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5297ac_compiler_gnu=$ac_cv_c_compiler_gnu 5298 5299 5300{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5301echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5302if test "${ac_cv_header_stdc+set}" = set; then 5303 echo $ECHO_N "(cached) $ECHO_C" >&6 5304else 5305 cat >conftest.$ac_ext <<_ACEOF 5306/* confdefs.h. */ 5307_ACEOF 5308cat confdefs.h >>conftest.$ac_ext 5309cat >>conftest.$ac_ext <<_ACEOF 5310/* end confdefs.h. */ 5311#include <stdlib.h> 5312#include <stdarg.h> 5313#include <string.h> 5314#include <float.h> 5315 5316int 5317main () 5318{ 5319 5320 ; 5321 return 0; 5322} 5323_ACEOF 5324rm -f conftest.$ac_objext 5325if { (ac_try="$ac_compile" 5326case "(($ac_try" in 5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5328 *) ac_try_echo=$ac_try;; 5329esac 5330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5331 (eval "$ac_compile") 2>conftest.er1 5332 ac_status=$? 5333 grep -v '^ *+' conftest.er1 >conftest.err 5334 rm -f conftest.er1 5335 cat conftest.err >&5 5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5337 (exit $ac_status); } && 5338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5339 { (case "(($ac_try" in 5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5341 *) ac_try_echo=$ac_try;; 5342esac 5343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5344 (eval "$ac_try") 2>&5 5345 ac_status=$? 5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5347 (exit $ac_status); }; } && 5348 { ac_try='test -s conftest.$ac_objext' 5349 { (case "(($ac_try" in 5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5351 *) ac_try_echo=$ac_try;; 5352esac 5353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5354 (eval "$ac_try") 2>&5 5355 ac_status=$? 5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5357 (exit $ac_status); }; }; then 5358 ac_cv_header_stdc=yes 5359else 5360 echo "$as_me: failed program was:" >&5 5361sed 's/^/| /' conftest.$ac_ext >&5 5362 5363 ac_cv_header_stdc=no 5364fi 5365 5366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5367 5368if test $ac_cv_header_stdc = yes; then 5369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5370 cat >conftest.$ac_ext <<_ACEOF 5371/* confdefs.h. */ 5372_ACEOF 5373cat confdefs.h >>conftest.$ac_ext 5374cat >>conftest.$ac_ext <<_ACEOF 5375/* end confdefs.h. */ 5376#include <string.h> 5377 5378_ACEOF 5379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5380 $EGREP "memchr" >/dev/null 2>&1; then 5381 : 5382else 5383 ac_cv_header_stdc=no 5384fi 5385rm -f conftest* 5386 5387fi 5388 5389if test $ac_cv_header_stdc = yes; then 5390 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5391 cat >conftest.$ac_ext <<_ACEOF 5392/* confdefs.h. */ 5393_ACEOF 5394cat confdefs.h >>conftest.$ac_ext 5395cat >>conftest.$ac_ext <<_ACEOF 5396/* end confdefs.h. */ 5397#include <stdlib.h> 5398 5399_ACEOF 5400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5401 $EGREP "free" >/dev/null 2>&1; then 5402 : 5403else 5404 ac_cv_header_stdc=no 5405fi 5406rm -f conftest* 5407 5408fi 5409 5410if test $ac_cv_header_stdc = yes; then 5411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5412 if test "$cross_compiling" = yes; then 5413 : 5414else 5415 cat >conftest.$ac_ext <<_ACEOF 5416/* confdefs.h. */ 5417_ACEOF 5418cat confdefs.h >>conftest.$ac_ext 5419cat >>conftest.$ac_ext <<_ACEOF 5420/* end confdefs.h. */ 5421#include <ctype.h> 5422#include <stdlib.h> 5423#if ((' ' & 0x0FF) == 0x020) 5424# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5425# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5426#else 5427# define ISLOWER(c) \ 5428 (('a' <= (c) && (c) <= 'i') \ 5429 || ('j' <= (c) && (c) <= 'r') \ 5430 || ('s' <= (c) && (c) <= 'z')) 5431# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5432#endif 5433 5434#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5435int 5436main () 5437{ 5438 int i; 5439 for (i = 0; i < 256; i++) 5440 if (XOR (islower (i), ISLOWER (i)) 5441 || toupper (i) != TOUPPER (i)) 5442 return 2; 5443 return 0; 5444} 5445_ACEOF 5446rm -f conftest$ac_exeext 5447if { (ac_try="$ac_link" 5448case "(($ac_try" in 5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5450 *) ac_try_echo=$ac_try;; 5451esac 5452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5453 (eval "$ac_link") 2>&5 5454 ac_status=$? 5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5457 { (case "(($ac_try" in 5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5459 *) ac_try_echo=$ac_try;; 5460esac 5461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5462 (eval "$ac_try") 2>&5 5463 ac_status=$? 5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5465 (exit $ac_status); }; }; then 5466 : 5467else 5468 echo "$as_me: program exited with status $ac_status" >&5 5469echo "$as_me: failed program was:" >&5 5470sed 's/^/| /' conftest.$ac_ext >&5 5471 5472( exit $ac_status ) 5473ac_cv_header_stdc=no 5474fi 5475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5476fi 5477 5478 5479fi 5480fi 5481{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5482echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5483if test $ac_cv_header_stdc = yes; then 5484 5485cat >>confdefs.h <<\_ACEOF 5486#define STDC_HEADERS 1 5487_ACEOF 5488 5489fi 5490 5491# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5502 inttypes.h stdint.h unistd.h 5503do 5504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5505{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5508 echo $ECHO_N "(cached) $ECHO_C" >&6 5509else 5510 cat >conftest.$ac_ext <<_ACEOF 5511/* confdefs.h. */ 5512_ACEOF 5513cat confdefs.h >>conftest.$ac_ext 5514cat >>conftest.$ac_ext <<_ACEOF 5515/* end confdefs.h. */ 5516$ac_includes_default 5517 5518#include <$ac_header> 5519_ACEOF 5520rm -f conftest.$ac_objext 5521if { (ac_try="$ac_compile" 5522case "(($ac_try" in 5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5524 *) ac_try_echo=$ac_try;; 5525esac 5526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5527 (eval "$ac_compile") 2>conftest.er1 5528 ac_status=$? 5529 grep -v '^ *+' conftest.er1 >conftest.err 5530 rm -f conftest.er1 5531 cat conftest.err >&5 5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5533 (exit $ac_status); } && 5534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5535 { (case "(($ac_try" in 5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5537 *) ac_try_echo=$ac_try;; 5538esac 5539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5540 (eval "$ac_try") 2>&5 5541 ac_status=$? 5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5543 (exit $ac_status); }; } && 5544 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 5554 eval "$as_ac_Header=yes" 5555else 5556 echo "$as_me: failed program was:" >&5 5557sed 's/^/| /' conftest.$ac_ext >&5 5558 5559 eval "$as_ac_Header=no" 5560fi 5561 5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5563fi 5564ac_res=`eval echo '${'$as_ac_Header'}'` 5565 { echo "$as_me:$LINENO: result: $ac_res" >&5 5566echo "${ECHO_T}$ac_res" >&6; } 5567if test `eval echo '${'$as_ac_Header'}'` = yes; then 5568 cat >>confdefs.h <<_ACEOF 5569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5570_ACEOF 5571 5572fi 5573 5574done 5575 5576 5577 5578for ac_header in dlfcn.h 5579do 5580as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5581if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5582 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5585 echo $ECHO_N "(cached) $ECHO_C" >&6 5586fi 5587ac_res=`eval echo '${'$as_ac_Header'}'` 5588 { echo "$as_me:$LINENO: result: $ac_res" >&5 5589echo "${ECHO_T}$ac_res" >&6; } 5590else 5591 # Is the header compilable? 5592{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5594cat >conftest.$ac_ext <<_ACEOF 5595/* confdefs.h. */ 5596_ACEOF 5597cat confdefs.h >>conftest.$ac_ext 5598cat >>conftest.$ac_ext <<_ACEOF 5599/* end confdefs.h. */ 5600$ac_includes_default 5601#include <$ac_header> 5602_ACEOF 5603rm -f conftest.$ac_objext 5604if { (ac_try="$ac_compile" 5605case "(($ac_try" in 5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5607 *) ac_try_echo=$ac_try;; 5608esac 5609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5610 (eval "$ac_compile") 2>conftest.er1 5611 ac_status=$? 5612 grep -v '^ *+' conftest.er1 >conftest.err 5613 rm -f conftest.er1 5614 cat conftest.err >&5 5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5616 (exit $ac_status); } && 5617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5618 { (case "(($ac_try" in 5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5620 *) ac_try_echo=$ac_try;; 5621esac 5622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5623 (eval "$ac_try") 2>&5 5624 ac_status=$? 5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5626 (exit $ac_status); }; } && 5627 { ac_try='test -s conftest.$ac_objext' 5628 { (case "(($ac_try" in 5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5630 *) ac_try_echo=$ac_try;; 5631esac 5632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5633 (eval "$ac_try") 2>&5 5634 ac_status=$? 5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5636 (exit $ac_status); }; }; then 5637 ac_header_compiler=yes 5638else 5639 echo "$as_me: failed program was:" >&5 5640sed 's/^/| /' conftest.$ac_ext >&5 5641 5642 ac_header_compiler=no 5643fi 5644 5645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5646{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5647echo "${ECHO_T}$ac_header_compiler" >&6; } 5648 5649# Is the header present? 5650{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5651echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5652cat >conftest.$ac_ext <<_ACEOF 5653/* confdefs.h. */ 5654_ACEOF 5655cat confdefs.h >>conftest.$ac_ext 5656cat >>conftest.$ac_ext <<_ACEOF 5657/* end confdefs.h. */ 5658#include <$ac_header> 5659_ACEOF 5660if { (ac_try="$ac_cpp conftest.$ac_ext" 5661case "(($ac_try" in 5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5663 *) ac_try_echo=$ac_try;; 5664esac 5665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5667 ac_status=$? 5668 grep -v '^ *+' conftest.er1 >conftest.err 5669 rm -f conftest.er1 5670 cat conftest.err >&5 5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5672 (exit $ac_status); } >/dev/null; then 5673 if test -s conftest.err; then 5674 ac_cpp_err=$ac_c_preproc_warn_flag 5675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5676 else 5677 ac_cpp_err= 5678 fi 5679else 5680 ac_cpp_err=yes 5681fi 5682if test -z "$ac_cpp_err"; then 5683 ac_header_preproc=yes 5684else 5685 echo "$as_me: failed program was:" >&5 5686sed 's/^/| /' conftest.$ac_ext >&5 5687 5688 ac_header_preproc=no 5689fi 5690 5691rm -f conftest.err conftest.$ac_ext 5692{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5693echo "${ECHO_T}$ac_header_preproc" >&6; } 5694 5695# So? What about this header? 5696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5697 yes:no: ) 5698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5699echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5701echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5702 ac_header_preproc=yes 5703 ;; 5704 no:yes:* ) 5705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5706echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5708echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5710echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5712echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5714echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5716echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5717 ( cat <<\_ASBOX 5718## ---------------------------------------------------------------------- ## 5719## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5720## ---------------------------------------------------------------------- ## 5721_ASBOX 5722 ) | sed "s/^/$as_me: WARNING: /" >&2 5723 ;; 5724esac 5725{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5728 echo $ECHO_N "(cached) $ECHO_C" >&6 5729else 5730 eval "$as_ac_Header=\$ac_header_preproc" 5731fi 5732ac_res=`eval echo '${'$as_ac_Header'}'` 5733 { echo "$as_me:$LINENO: result: $ac_res" >&5 5734echo "${ECHO_T}$ac_res" >&6; } 5735 5736fi 5737if test `eval echo '${'$as_ac_Header'}'` = yes; then 5738 cat >>confdefs.h <<_ACEOF 5739#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5740_ACEOF 5741 5742fi 5743 5744done 5745 5746ac_ext=cpp 5747ac_cpp='$CXXCPP $CPPFLAGS' 5748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5751if test -z "$CXX"; then 5752 if test -n "$CCC"; then 5753 CXX=$CCC 5754 else 5755 if test -n "$ac_tool_prefix"; then 5756 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5757 do 5758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5759set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5760{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5762if test "${ac_cv_prog_CXX+set}" = set; then 5763 echo $ECHO_N "(cached) $ECHO_C" >&6 5764else 5765 if test -n "$CXX"; then 5766 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5767else 5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5769for as_dir in $PATH 5770do 5771 IFS=$as_save_IFS 5772 test -z "$as_dir" && as_dir=. 5773 for ac_exec_ext in '' $ac_executable_extensions; do 5774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5775 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5777 break 2 5778 fi 5779done 5780done 5781IFS=$as_save_IFS 5782 5783fi 5784fi 5785CXX=$ac_cv_prog_CXX 5786if test -n "$CXX"; then 5787 { echo "$as_me:$LINENO: result: $CXX" >&5 5788echo "${ECHO_T}$CXX" >&6; } 5789else 5790 { echo "$as_me:$LINENO: result: no" >&5 5791echo "${ECHO_T}no" >&6; } 5792fi 5793 5794 5795 test -n "$CXX" && break 5796 done 5797fi 5798if test -z "$CXX"; then 5799 ac_ct_CXX=$CXX 5800 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5801do 5802 # Extract the first word of "$ac_prog", so it can be a program name with args. 5803set dummy $ac_prog; ac_word=$2 5804{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5806if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5807 echo $ECHO_N "(cached) $ECHO_C" >&6 5808else 5809 if test -n "$ac_ct_CXX"; then 5810 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5811else 5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5813for as_dir in $PATH 5814do 5815 IFS=$as_save_IFS 5816 test -z "$as_dir" && as_dir=. 5817 for ac_exec_ext in '' $ac_executable_extensions; do 5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5819 ac_cv_prog_ac_ct_CXX="$ac_prog" 5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5821 break 2 5822 fi 5823done 5824done 5825IFS=$as_save_IFS 5826 5827fi 5828fi 5829ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5830if test -n "$ac_ct_CXX"; then 5831 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5832echo "${ECHO_T}$ac_ct_CXX" >&6; } 5833else 5834 { echo "$as_me:$LINENO: result: no" >&5 5835echo "${ECHO_T}no" >&6; } 5836fi 5837 5838 5839 test -n "$ac_ct_CXX" && break 5840done 5841 5842 if test "x$ac_ct_CXX" = x; then 5843 CXX="g++" 5844 else 5845 case $cross_compiling:$ac_tool_warned in 5846yes:) 5847{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5848whose name does not start with the host triplet. If you think this 5849configuration is useful to you, please write to autoconf@gnu.org." >&5 5850echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5851whose name does not start with the host triplet. If you think this 5852configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5853ac_tool_warned=yes ;; 5854esac 5855 CXX=$ac_ct_CXX 5856 fi 5857fi 5858 5859 fi 5860fi 5861# Provide some information about the compiler. 5862echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5863ac_compiler=`set X $ac_compile; echo $2` 5864{ (ac_try="$ac_compiler --version >&5" 5865case "(($ac_try" in 5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5867 *) ac_try_echo=$ac_try;; 5868esac 5869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5870 (eval "$ac_compiler --version >&5") 2>&5 5871 ac_status=$? 5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5873 (exit $ac_status); } 5874{ (ac_try="$ac_compiler -v >&5" 5875case "(($ac_try" in 5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5877 *) ac_try_echo=$ac_try;; 5878esac 5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5880 (eval "$ac_compiler -v >&5") 2>&5 5881 ac_status=$? 5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5883 (exit $ac_status); } 5884{ (ac_try="$ac_compiler -V >&5" 5885case "(($ac_try" in 5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5887 *) ac_try_echo=$ac_try;; 5888esac 5889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5890 (eval "$ac_compiler -V >&5") 2>&5 5891 ac_status=$? 5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5893 (exit $ac_status); } 5894 5895{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5896echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5897if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5898 echo $ECHO_N "(cached) $ECHO_C" >&6 5899else 5900 cat >conftest.$ac_ext <<_ACEOF 5901/* confdefs.h. */ 5902_ACEOF 5903cat confdefs.h >>conftest.$ac_ext 5904cat >>conftest.$ac_ext <<_ACEOF 5905/* end confdefs.h. */ 5906 5907int 5908main () 5909{ 5910#ifndef __GNUC__ 5911 choke me 5912#endif 5913 5914 ; 5915 return 0; 5916} 5917_ACEOF 5918rm -f conftest.$ac_objext 5919if { (ac_try="$ac_compile" 5920case "(($ac_try" in 5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5922 *) ac_try_echo=$ac_try;; 5923esac 5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5925 (eval "$ac_compile") 2>conftest.er1 5926 ac_status=$? 5927 grep -v '^ *+' conftest.er1 >conftest.err 5928 rm -f conftest.er1 5929 cat conftest.err >&5 5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5931 (exit $ac_status); } && 5932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5933 { (case "(($ac_try" in 5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5935 *) ac_try_echo=$ac_try;; 5936esac 5937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5938 (eval "$ac_try") 2>&5 5939 ac_status=$? 5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5941 (exit $ac_status); }; } && 5942 { ac_try='test -s conftest.$ac_objext' 5943 { (case "(($ac_try" in 5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5945 *) ac_try_echo=$ac_try;; 5946esac 5947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5948 (eval "$ac_try") 2>&5 5949 ac_status=$? 5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5951 (exit $ac_status); }; }; then 5952 ac_compiler_gnu=yes 5953else 5954 echo "$as_me: failed program was:" >&5 5955sed 's/^/| /' conftest.$ac_ext >&5 5956 5957 ac_compiler_gnu=no 5958fi 5959 5960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5961ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5962 5963fi 5964{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5965echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5966GXX=`test $ac_compiler_gnu = yes && echo yes` 5967ac_test_CXXFLAGS=${CXXFLAGS+set} 5968ac_save_CXXFLAGS=$CXXFLAGS 5969{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5970echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5971if test "${ac_cv_prog_cxx_g+set}" = set; then 5972 echo $ECHO_N "(cached) $ECHO_C" >&6 5973else 5974 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5975 ac_cxx_werror_flag=yes 5976 ac_cv_prog_cxx_g=no 5977 CXXFLAGS="-g" 5978 cat >conftest.$ac_ext <<_ACEOF 5979/* confdefs.h. */ 5980_ACEOF 5981cat confdefs.h >>conftest.$ac_ext 5982cat >>conftest.$ac_ext <<_ACEOF 5983/* end confdefs.h. */ 5984 5985int 5986main () 5987{ 5988 5989 ; 5990 return 0; 5991} 5992_ACEOF 5993rm -f conftest.$ac_objext 5994if { (ac_try="$ac_compile" 5995case "(($ac_try" in 5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5997 *) ac_try_echo=$ac_try;; 5998esac 5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6000 (eval "$ac_compile") 2>conftest.er1 6001 ac_status=$? 6002 grep -v '^ *+' conftest.er1 >conftest.err 6003 rm -f conftest.er1 6004 cat conftest.err >&5 6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6006 (exit $ac_status); } && 6007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6008 { (case "(($ac_try" in 6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6010 *) ac_try_echo=$ac_try;; 6011esac 6012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6013 (eval "$ac_try") 2>&5 6014 ac_status=$? 6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6016 (exit $ac_status); }; } && 6017 { ac_try='test -s conftest.$ac_objext' 6018 { (case "(($ac_try" in 6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6020 *) ac_try_echo=$ac_try;; 6021esac 6022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6023 (eval "$ac_try") 2>&5 6024 ac_status=$? 6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6026 (exit $ac_status); }; }; then 6027 ac_cv_prog_cxx_g=yes 6028else 6029 echo "$as_me: failed program was:" >&5 6030sed 's/^/| /' conftest.$ac_ext >&5 6031 6032 CXXFLAGS="" 6033 cat >conftest.$ac_ext <<_ACEOF 6034/* confdefs.h. */ 6035_ACEOF 6036cat confdefs.h >>conftest.$ac_ext 6037cat >>conftest.$ac_ext <<_ACEOF 6038/* end confdefs.h. */ 6039 6040int 6041main () 6042{ 6043 6044 ; 6045 return 0; 6046} 6047_ACEOF 6048rm -f conftest.$ac_objext 6049if { (ac_try="$ac_compile" 6050case "(($ac_try" in 6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6052 *) ac_try_echo=$ac_try;; 6053esac 6054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6055 (eval "$ac_compile") 2>conftest.er1 6056 ac_status=$? 6057 grep -v '^ *+' conftest.er1 >conftest.err 6058 rm -f conftest.er1 6059 cat conftest.err >&5 6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6061 (exit $ac_status); } && 6062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6063 { (case "(($ac_try" in 6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6065 *) ac_try_echo=$ac_try;; 6066esac 6067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6068 (eval "$ac_try") 2>&5 6069 ac_status=$? 6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6071 (exit $ac_status); }; } && 6072 { ac_try='test -s conftest.$ac_objext' 6073 { (case "(($ac_try" in 6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6075 *) ac_try_echo=$ac_try;; 6076esac 6077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6078 (eval "$ac_try") 2>&5 6079 ac_status=$? 6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6081 (exit $ac_status); }; }; then 6082 : 6083else 6084 echo "$as_me: failed program was:" >&5 6085sed 's/^/| /' conftest.$ac_ext >&5 6086 6087 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6088 CXXFLAGS="-g" 6089 cat >conftest.$ac_ext <<_ACEOF 6090/* confdefs.h. */ 6091_ACEOF 6092cat confdefs.h >>conftest.$ac_ext 6093cat >>conftest.$ac_ext <<_ACEOF 6094/* end confdefs.h. */ 6095 6096int 6097main () 6098{ 6099 6100 ; 6101 return 0; 6102} 6103_ACEOF 6104rm -f conftest.$ac_objext 6105if { (ac_try="$ac_compile" 6106case "(($ac_try" in 6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6108 *) ac_try_echo=$ac_try;; 6109esac 6110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6111 (eval "$ac_compile") 2>conftest.er1 6112 ac_status=$? 6113 grep -v '^ *+' conftest.er1 >conftest.err 6114 rm -f conftest.er1 6115 cat conftest.err >&5 6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6117 (exit $ac_status); } && 6118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6119 { (case "(($ac_try" in 6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6121 *) ac_try_echo=$ac_try;; 6122esac 6123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6124 (eval "$ac_try") 2>&5 6125 ac_status=$? 6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6127 (exit $ac_status); }; } && 6128 { ac_try='test -s conftest.$ac_objext' 6129 { (case "(($ac_try" in 6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6131 *) ac_try_echo=$ac_try;; 6132esac 6133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6134 (eval "$ac_try") 2>&5 6135 ac_status=$? 6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6137 (exit $ac_status); }; }; then 6138 ac_cv_prog_cxx_g=yes 6139else 6140 echo "$as_me: failed program was:" >&5 6141sed 's/^/| /' conftest.$ac_ext >&5 6142 6143 6144fi 6145 6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6147fi 6148 6149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6150fi 6151 6152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6153 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6154fi 6155{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6156echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 6157if test "$ac_test_CXXFLAGS" = set; then 6158 CXXFLAGS=$ac_save_CXXFLAGS 6159elif test $ac_cv_prog_cxx_g = yes; then 6160 if test "$GXX" = yes; then 6161 CXXFLAGS="-g -O2" 6162 else 6163 CXXFLAGS="-g" 6164 fi 6165else 6166 if test "$GXX" = yes; then 6167 CXXFLAGS="-O2" 6168 else 6169 CXXFLAGS= 6170 fi 6171fi 6172ac_ext=cpp 6173ac_cpp='$CXXCPP $CPPFLAGS' 6174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6177 6178depcc="$CXX" am_compiler_list= 6179 6180{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 6181echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 6182if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 6183 echo $ECHO_N "(cached) $ECHO_C" >&6 6184else 6185 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6186 # We make a subdir and do the tests there. Otherwise we can end up 6187 # making bogus files that we don't know about and never remove. For 6188 # instance it was reported that on HP-UX the gcc test will end up 6189 # making a dummy file named `D' -- because `-MD' means `put the output 6190 # in D'. 6191 mkdir conftest.dir 6192 # Copy depcomp to subdir because otherwise we won't find it if we're 6193 # using a relative directory. 6194 cp "$am_depcomp" conftest.dir 6195 cd conftest.dir 6196 # We will build objects and dependencies in a subdirectory because 6197 # it helps to detect inapplicable dependency modes. For instance 6198 # both Tru64's cc and ICC support -MD to output dependencies as a 6199 # side effect of compilation, but ICC will put the dependencies in 6200 # the current directory while Tru64 will put them in the object 6201 # directory. 6202 mkdir sub 6203 6204 am_cv_CXX_dependencies_compiler_type=none 6205 if test "$am_compiler_list" = ""; then 6206 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6207 fi 6208 for depmode in $am_compiler_list; do 6209 # Setup a source with many dependencies, because some compilers 6210 # like to wrap large dependency lists on column 80 (with \), and 6211 # we should not choose a depcomp mode which is confused by this. 6212 # 6213 # We need to recreate these files for each test, as the compiler may 6214 # overwrite some of them when testing with obscure command lines. 6215 # This happens at least with the AIX C compiler. 6216 : > sub/conftest.c 6217 for i in 1 2 3 4 5 6; do 6218 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6219 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6220 # Solaris 8's {/usr,}/bin/sh. 6221 touch sub/conftst$i.h 6222 done 6223 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6224 6225 case $depmode in 6226 nosideeffect) 6227 # after this tag, mechanisms are not by side-effect, so they'll 6228 # only be used when explicitly requested 6229 if test "x$enable_dependency_tracking" = xyes; then 6230 continue 6231 else 6232 break 6233 fi 6234 ;; 6235 none) break ;; 6236 esac 6237 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6238 # mode. It turns out that the SunPro C++ compiler does not properly 6239 # handle `-M -o', and we need to detect this. 6240 if depmode=$depmode \ 6241 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6242 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6243 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6244 >/dev/null 2>conftest.err && 6245 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6246 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6247 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6248 # icc doesn't choke on unknown options, it will just issue warnings 6249 # or remarks (even with -Werror). So we grep stderr for any message 6250 # that says an option was ignored or not supported. 6251 # When given -MP, icc 7.0 and 7.1 complain thusly: 6252 # icc: Command line warning: ignoring option '-M'; no argument required 6253 # The diagnosis changed in icc 8.0: 6254 # icc: Command line remark: option '-MP' not supported 6255 if (grep 'ignoring option' conftest.err || 6256 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6257 am_cv_CXX_dependencies_compiler_type=$depmode 6258 break 6259 fi 6260 fi 6261 done 6262 6263 cd .. 6264 rm -rf conftest.dir 6265else 6266 am_cv_CXX_dependencies_compiler_type=none 6267fi 6268 6269fi 6270{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6271echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 6272CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6273 6274 6275 6276if 6277 test "x$enable_dependency_tracking" != xno \ 6278 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6279 am__fastdepCXX_TRUE= 6280 am__fastdepCXX_FALSE='#' 6281else 6282 am__fastdepCXX_TRUE='#' 6283 am__fastdepCXX_FALSE= 6284fi 6285 6286 6287 6288 6289if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6290 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6291 (test "X$CXX" != "Xg++"))) ; then 6292 ac_ext=cpp 6293ac_cpp='$CXXCPP $CPPFLAGS' 6294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6297{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6298echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6299if test -z "$CXXCPP"; then 6300 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6301 echo $ECHO_N "(cached) $ECHO_C" >&6 6302else 6303 # Double quotes because CXXCPP needs to be expanded 6304 for CXXCPP in "$CXX -E" "/lib/cpp" 6305 do 6306 ac_preproc_ok=false 6307for ac_cxx_preproc_warn_flag in '' yes 6308do 6309 # Use a header file that comes with gcc, so configuring glibc 6310 # with a fresh cross-compiler works. 6311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6312 # <limits.h> exists even on freestanding compilers. 6313 # On the NeXT, cc -E runs the code through the compiler's parser, 6314 # not just through cpp. "Syntax error" is here to catch this case. 6315 cat >conftest.$ac_ext <<_ACEOF 6316/* confdefs.h. */ 6317_ACEOF 6318cat confdefs.h >>conftest.$ac_ext 6319cat >>conftest.$ac_ext <<_ACEOF 6320/* end confdefs.h. */ 6321#ifdef __STDC__ 6322# include <limits.h> 6323#else 6324# include <assert.h> 6325#endif 6326 Syntax error 6327_ACEOF 6328if { (ac_try="$ac_cpp conftest.$ac_ext" 6329case "(($ac_try" in 6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6331 *) ac_try_echo=$ac_try;; 6332esac 6333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6335 ac_status=$? 6336 grep -v '^ *+' conftest.er1 >conftest.err 6337 rm -f conftest.er1 6338 cat conftest.err >&5 6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6340 (exit $ac_status); } >/dev/null; then 6341 if test -s conftest.err; then 6342 ac_cpp_err=$ac_cxx_preproc_warn_flag 6343 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6344 else 6345 ac_cpp_err= 6346 fi 6347else 6348 ac_cpp_err=yes 6349fi 6350if test -z "$ac_cpp_err"; then 6351 : 6352else 6353 echo "$as_me: failed program was:" >&5 6354sed 's/^/| /' conftest.$ac_ext >&5 6355 6356 # Broken: fails on valid input. 6357continue 6358fi 6359 6360rm -f conftest.err conftest.$ac_ext 6361 6362 # OK, works on sane cases. Now check whether nonexistent headers 6363 # can be detected and how. 6364 cat >conftest.$ac_ext <<_ACEOF 6365/* confdefs.h. */ 6366_ACEOF 6367cat confdefs.h >>conftest.$ac_ext 6368cat >>conftest.$ac_ext <<_ACEOF 6369/* end confdefs.h. */ 6370#include <ac_nonexistent.h> 6371_ACEOF 6372if { (ac_try="$ac_cpp conftest.$ac_ext" 6373case "(($ac_try" in 6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6375 *) ac_try_echo=$ac_try;; 6376esac 6377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6379 ac_status=$? 6380 grep -v '^ *+' conftest.er1 >conftest.err 6381 rm -f conftest.er1 6382 cat conftest.err >&5 6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6384 (exit $ac_status); } >/dev/null; then 6385 if test -s conftest.err; then 6386 ac_cpp_err=$ac_cxx_preproc_warn_flag 6387 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6388 else 6389 ac_cpp_err= 6390 fi 6391else 6392 ac_cpp_err=yes 6393fi 6394if test -z "$ac_cpp_err"; then 6395 # Broken: success on invalid input. 6396continue 6397else 6398 echo "$as_me: failed program was:" >&5 6399sed 's/^/| /' conftest.$ac_ext >&5 6400 6401 # Passes both tests. 6402ac_preproc_ok=: 6403break 6404fi 6405 6406rm -f conftest.err conftest.$ac_ext 6407 6408done 6409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6410rm -f conftest.err conftest.$ac_ext 6411if $ac_preproc_ok; then 6412 break 6413fi 6414 6415 done 6416 ac_cv_prog_CXXCPP=$CXXCPP 6417 6418fi 6419 CXXCPP=$ac_cv_prog_CXXCPP 6420else 6421 ac_cv_prog_CXXCPP=$CXXCPP 6422fi 6423{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6424echo "${ECHO_T}$CXXCPP" >&6; } 6425ac_preproc_ok=false 6426for ac_cxx_preproc_warn_flag in '' yes 6427do 6428 # Use a header file that comes with gcc, so configuring glibc 6429 # with a fresh cross-compiler works. 6430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6431 # <limits.h> exists even on freestanding compilers. 6432 # On the NeXT, cc -E runs the code through the compiler's parser, 6433 # not just through cpp. "Syntax error" is here to catch this case. 6434 cat >conftest.$ac_ext <<_ACEOF 6435/* confdefs.h. */ 6436_ACEOF 6437cat confdefs.h >>conftest.$ac_ext 6438cat >>conftest.$ac_ext <<_ACEOF 6439/* end confdefs.h. */ 6440#ifdef __STDC__ 6441# include <limits.h> 6442#else 6443# include <assert.h> 6444#endif 6445 Syntax error 6446_ACEOF 6447if { (ac_try="$ac_cpp conftest.$ac_ext" 6448case "(($ac_try" in 6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6450 *) ac_try_echo=$ac_try;; 6451esac 6452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6454 ac_status=$? 6455 grep -v '^ *+' conftest.er1 >conftest.err 6456 rm -f conftest.er1 6457 cat conftest.err >&5 6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6459 (exit $ac_status); } >/dev/null; then 6460 if test -s conftest.err; then 6461 ac_cpp_err=$ac_cxx_preproc_warn_flag 6462 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6463 else 6464 ac_cpp_err= 6465 fi 6466else 6467 ac_cpp_err=yes 6468fi 6469if test -z "$ac_cpp_err"; then 6470 : 6471else 6472 echo "$as_me: failed program was:" >&5 6473sed 's/^/| /' conftest.$ac_ext >&5 6474 6475 # Broken: fails on valid input. 6476continue 6477fi 6478 6479rm -f conftest.err conftest.$ac_ext 6480 6481 # OK, works on sane cases. Now check whether nonexistent headers 6482 # can be detected and how. 6483 cat >conftest.$ac_ext <<_ACEOF 6484/* confdefs.h. */ 6485_ACEOF 6486cat confdefs.h >>conftest.$ac_ext 6487cat >>conftest.$ac_ext <<_ACEOF 6488/* end confdefs.h. */ 6489#include <ac_nonexistent.h> 6490_ACEOF 6491if { (ac_try="$ac_cpp conftest.$ac_ext" 6492case "(($ac_try" in 6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6494 *) ac_try_echo=$ac_try;; 6495esac 6496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6498 ac_status=$? 6499 grep -v '^ *+' conftest.er1 >conftest.err 6500 rm -f conftest.er1 6501 cat conftest.err >&5 6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6503 (exit $ac_status); } >/dev/null; then 6504 if test -s conftest.err; then 6505 ac_cpp_err=$ac_cxx_preproc_warn_flag 6506 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6507 else 6508 ac_cpp_err= 6509 fi 6510else 6511 ac_cpp_err=yes 6512fi 6513if test -z "$ac_cpp_err"; then 6514 # Broken: success on invalid input. 6515continue 6516else 6517 echo "$as_me: failed program was:" >&5 6518sed 's/^/| /' conftest.$ac_ext >&5 6519 6520 # Passes both tests. 6521ac_preproc_ok=: 6522break 6523fi 6524 6525rm -f conftest.err conftest.$ac_ext 6526 6527done 6528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6529rm -f conftest.err conftest.$ac_ext 6530if $ac_preproc_ok; then 6531 : 6532else 6533 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6534See \`config.log' for more details." >&5 6535echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6536See \`config.log' for more details." >&2;} 6537 { (exit 1); exit 1; }; } 6538fi 6539 6540ac_ext=cpp 6541ac_cpp='$CXXCPP $CPPFLAGS' 6542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6545 6546fi 6547 6548 6549ac_ext=f 6550ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6551ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6552ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6553if test -n "$ac_tool_prefix"; then 6554 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 6555 do 6556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6557set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6558{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6560if test "${ac_cv_prog_F77+set}" = set; then 6561 echo $ECHO_N "(cached) $ECHO_C" >&6 6562else 6563 if test -n "$F77"; then 6564 ac_cv_prog_F77="$F77" # Let the user override the test. 6565else 6566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6567for as_dir in $PATH 6568do 6569 IFS=$as_save_IFS 6570 test -z "$as_dir" && as_dir=. 6571 for ac_exec_ext in '' $ac_executable_extensions; do 6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6573 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6575 break 2 6576 fi 6577done 6578done 6579IFS=$as_save_IFS 6580 6581fi 6582fi 6583F77=$ac_cv_prog_F77 6584if test -n "$F77"; then 6585 { echo "$as_me:$LINENO: result: $F77" >&5 6586echo "${ECHO_T}$F77" >&6; } 6587else 6588 { echo "$as_me:$LINENO: result: no" >&5 6589echo "${ECHO_T}no" >&6; } 6590fi 6591 6592 6593 test -n "$F77" && break 6594 done 6595fi 6596if test -z "$F77"; then 6597 ac_ct_F77=$F77 6598 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 6599do 6600 # Extract the first word of "$ac_prog", so it can be a program name with args. 6601set dummy $ac_prog; ac_word=$2 6602{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6604if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6605 echo $ECHO_N "(cached) $ECHO_C" >&6 6606else 6607 if test -n "$ac_ct_F77"; then 6608 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6609else 6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6611for as_dir in $PATH 6612do 6613 IFS=$as_save_IFS 6614 test -z "$as_dir" && as_dir=. 6615 for ac_exec_ext in '' $ac_executable_extensions; do 6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6617 ac_cv_prog_ac_ct_F77="$ac_prog" 6618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6619 break 2 6620 fi 6621done 6622done 6623IFS=$as_save_IFS 6624 6625fi 6626fi 6627ac_ct_F77=$ac_cv_prog_ac_ct_F77 6628if test -n "$ac_ct_F77"; then 6629 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6630echo "${ECHO_T}$ac_ct_F77" >&6; } 6631else 6632 { echo "$as_me:$LINENO: result: no" >&5 6633echo "${ECHO_T}no" >&6; } 6634fi 6635 6636 6637 test -n "$ac_ct_F77" && break 6638done 6639 6640 if test "x$ac_ct_F77" = x; then 6641 F77="" 6642 else 6643 case $cross_compiling:$ac_tool_warned in 6644yes:) 6645{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6646whose name does not start with the host triplet. If you think this 6647configuration is useful to you, please write to autoconf@gnu.org." >&5 6648echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6649whose name does not start with the host triplet. If you think this 6650configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6651ac_tool_warned=yes ;; 6652esac 6653 F77=$ac_ct_F77 6654 fi 6655fi 6656 6657 6658# Provide some information about the compiler. 6659echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6660ac_compiler=`set X $ac_compile; echo $2` 6661{ (ac_try="$ac_compiler --version >&5" 6662case "(($ac_try" in 6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6664 *) ac_try_echo=$ac_try;; 6665esac 6666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6667 (eval "$ac_compiler --version >&5") 2>&5 6668 ac_status=$? 6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6670 (exit $ac_status); } 6671{ (ac_try="$ac_compiler -v >&5" 6672case "(($ac_try" in 6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6674 *) ac_try_echo=$ac_try;; 6675esac 6676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6677 (eval "$ac_compiler -v >&5") 2>&5 6678 ac_status=$? 6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6680 (exit $ac_status); } 6681{ (ac_try="$ac_compiler -V >&5" 6682case "(($ac_try" in 6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6684 *) ac_try_echo=$ac_try;; 6685esac 6686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6687 (eval "$ac_compiler -V >&5") 2>&5 6688 ac_status=$? 6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6690 (exit $ac_status); } 6691rm -f a.out 6692 6693# If we don't use `.F' as extension, the preprocessor is not run on the 6694# input file. (Note that this only needs to work for GNU compilers.) 6695ac_save_ext=$ac_ext 6696ac_ext=F 6697{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6698echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6699if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6700 echo $ECHO_N "(cached) $ECHO_C" >&6 6701else 6702 cat >conftest.$ac_ext <<_ACEOF 6703 program main 6704#ifndef __GNUC__ 6705 choke me 6706#endif 6707 6708 end 6709_ACEOF 6710rm -f conftest.$ac_objext 6711if { (ac_try="$ac_compile" 6712case "(($ac_try" in 6713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6714 *) ac_try_echo=$ac_try;; 6715esac 6716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6717 (eval "$ac_compile") 2>conftest.er1 6718 ac_status=$? 6719 grep -v '^ *+' conftest.er1 >conftest.err 6720 rm -f conftest.er1 6721 cat conftest.err >&5 6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6723 (exit $ac_status); } && 6724 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6725 { (case "(($ac_try" in 6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6727 *) ac_try_echo=$ac_try;; 6728esac 6729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6730 (eval "$ac_try") 2>&5 6731 ac_status=$? 6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6733 (exit $ac_status); }; } && 6734 { ac_try='test -s conftest.$ac_objext' 6735 { (case "(($ac_try" in 6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6737 *) ac_try_echo=$ac_try;; 6738esac 6739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6740 (eval "$ac_try") 2>&5 6741 ac_status=$? 6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6743 (exit $ac_status); }; }; then 6744 ac_compiler_gnu=yes 6745else 6746 echo "$as_me: failed program was:" >&5 6747sed 's/^/| /' conftest.$ac_ext >&5 6748 6749 ac_compiler_gnu=no 6750fi 6751 6752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6753ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6754 6755fi 6756{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6757echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6758ac_ext=$ac_save_ext 6759ac_test_FFLAGS=${FFLAGS+set} 6760ac_save_FFLAGS=$FFLAGS 6761FFLAGS= 6762{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6763echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6764if test "${ac_cv_prog_f77_g+set}" = set; then 6765 echo $ECHO_N "(cached) $ECHO_C" >&6 6766else 6767 FFLAGS=-g 6768cat >conftest.$ac_ext <<_ACEOF 6769 program main 6770 6771 end 6772_ACEOF 6773rm -f conftest.$ac_objext 6774if { (ac_try="$ac_compile" 6775case "(($ac_try" in 6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6777 *) ac_try_echo=$ac_try;; 6778esac 6779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6780 (eval "$ac_compile") 2>conftest.er1 6781 ac_status=$? 6782 grep -v '^ *+' conftest.er1 >conftest.err 6783 rm -f conftest.er1 6784 cat conftest.err >&5 6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6786 (exit $ac_status); } && 6787 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6788 { (case "(($ac_try" in 6789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6790 *) ac_try_echo=$ac_try;; 6791esac 6792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6793 (eval "$ac_try") 2>&5 6794 ac_status=$? 6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6796 (exit $ac_status); }; } && 6797 { ac_try='test -s conftest.$ac_objext' 6798 { (case "(($ac_try" in 6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6800 *) ac_try_echo=$ac_try;; 6801esac 6802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6803 (eval "$ac_try") 2>&5 6804 ac_status=$? 6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6806 (exit $ac_status); }; }; then 6807 ac_cv_prog_f77_g=yes 6808else 6809 echo "$as_me: failed program was:" >&5 6810sed 's/^/| /' conftest.$ac_ext >&5 6811 6812 ac_cv_prog_f77_g=no 6813fi 6814 6815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6816 6817fi 6818{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6819echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6820if test "$ac_test_FFLAGS" = set; then 6821 FFLAGS=$ac_save_FFLAGS 6822elif test $ac_cv_prog_f77_g = yes; then 6823 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6824 FFLAGS="-g -O2" 6825 else 6826 FFLAGS="-g" 6827 fi 6828else 6829 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6830 FFLAGS="-O2" 6831 else 6832 FFLAGS= 6833 fi 6834fi 6835 6836G77=`test $ac_compiler_gnu = yes && echo yes` 6837ac_ext=c 6838ac_cpp='$CPP $CPPFLAGS' 6839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6841ac_compiler_gnu=$ac_cv_c_compiler_gnu 6842 6843 6844 6845# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6846 6847# find the maximum length of command line arguments 6848{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6849echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6850if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6851 echo $ECHO_N "(cached) $ECHO_C" >&6 6852else 6853 i=0 6854 teststring="ABCD" 6855 6856 case $build_os in 6857 msdosdjgpp*) 6858 # On DJGPP, this test can blow up pretty badly due to problems in libc 6859 # (any single argument exceeding 2000 bytes causes a buffer overrun 6860 # during glob expansion). Even if it were fixed, the result of this 6861 # check would be larger than it should be. 6862 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6863 ;; 6864 6865 gnu*) 6866 # Under GNU Hurd, this test is not required because there is 6867 # no limit to the length of command line arguments. 6868 # Libtool will interpret -1 as no limit whatsoever 6869 lt_cv_sys_max_cmd_len=-1; 6870 ;; 6871 6872 cygwin* | mingw*) 6873 # On Win9x/ME, this test blows up -- it succeeds, but takes 6874 # about 5 minutes as the teststring grows exponentially. 6875 # Worse, since 9x/ME are not pre-emptively multitasking, 6876 # you end up with a "frozen" computer, even though with patience 6877 # the test eventually succeeds (with a max line length of 256k). 6878 # Instead, let's just punt: use the minimum linelength reported by 6879 # all of the supported platforms: 8192 (on NT/2K/XP). 6880 lt_cv_sys_max_cmd_len=8192; 6881 ;; 6882 6883 amigaos*) 6884 # On AmigaOS with pdksh, this test takes hours, literally. 6885 # So we just punt and use a minimum line length of 8192. 6886 lt_cv_sys_max_cmd_len=8192; 6887 ;; 6888 6889 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6890 # This has been around since 386BSD, at least. Likely further. 6891 if test -x /sbin/sysctl; then 6892 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6893 elif test -x /usr/sbin/sysctl; then 6894 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6895 else 6896 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6897 fi 6898 # And add a safety zone 6899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6901 ;; 6902 6903 interix*) 6904 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6905 lt_cv_sys_max_cmd_len=196608 6906 ;; 6907 6908 osf*) 6909 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6910 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6911 # nice to cause kernel panics so lets avoid the loop below. 6912 # First set a reasonable default. 6913 lt_cv_sys_max_cmd_len=16384 6914 # 6915 if test -x /sbin/sysconfig; then 6916 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6917 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6918 esac 6919 fi 6920 ;; 6921 sco3.2v5*) 6922 lt_cv_sys_max_cmd_len=102400 6923 ;; 6924 sysv5* | sco5v6* | sysv4.2uw2*) 6925 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6926 if test -n "$kargmax"; then 6927 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6928 else 6929 lt_cv_sys_max_cmd_len=32768 6930 fi 6931 ;; 6932 *) 6933 # If test is not a shell built-in, we'll probably end up computing a 6934 # maximum length that is only half of the actual maximum length, but 6935 # we can't tell. 6936 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6937 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6938 = "XX$teststring") >/dev/null 2>&1 && 6939 new_result=`expr "X$teststring" : ".*" 2>&1` && 6940 lt_cv_sys_max_cmd_len=$new_result && 6941 test $i != 17 # 1/2 MB should be enough 6942 do 6943 i=`expr $i + 1` 6944 teststring=$teststring$teststring 6945 done 6946 teststring= 6947 # Add a significant safety factor because C++ compilers can tack on massive 6948 # amounts of additional arguments before passing them to the linker. 6949 # It appears as though 1/2 is a usable value. 6950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6951 ;; 6952 esac 6953 6954fi 6955 6956if test -n $lt_cv_sys_max_cmd_len ; then 6957 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6958echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6959else 6960 { echo "$as_me:$LINENO: result: none" >&5 6961echo "${ECHO_T}none" >&6; } 6962fi 6963 6964 6965 6966 6967# Check for command to grab the raw symbol name followed by C symbol from nm. 6968{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6969echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6970if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6971 echo $ECHO_N "(cached) $ECHO_C" >&6 6972else 6973 6974# These are sane defaults that work on at least a few old systems. 6975# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6976 6977# Character class describing NM global symbol codes. 6978symcode='[BCDEGRST]' 6979 6980# Regexp to match symbols that can be accessed directly from C. 6981sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6982 6983# Transform an extracted symbol line into a proper C declaration 6984lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6985 6986# Transform an extracted symbol line into symbol name and symbol address 6987lt_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'" 6988 6989# Define system-specific variables. 6990case $host_os in 6991aix*) 6992 symcode='[BCDT]' 6993 ;; 6994cygwin* | mingw* | pw32*) 6995 symcode='[ABCDGISTW]' 6996 ;; 6997hpux*) # Its linker distinguishes data from code symbols 6998 if test "$host_cpu" = ia64; then 6999 symcode='[ABCDEGRST]' 7000 fi 7001 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7002 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'" 7003 ;; 7004linux* | k*bsd*-gnu) 7005 if test "$host_cpu" = ia64; then 7006 symcode='[ABCDGIRSTW]' 7007 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7008 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'" 7009 fi 7010 ;; 7011irix* | nonstopux*) 7012 symcode='[BCDEGRST]' 7013 ;; 7014osf*) 7015 symcode='[BCDEGQRST]' 7016 ;; 7017solaris*) 7018 symcode='[BDRT]' 7019 ;; 7020sco3.2v5*) 7021 symcode='[DT]' 7022 ;; 7023sysv4.2uw2*) 7024 symcode='[DT]' 7025 ;; 7026sysv5* | sco5v6* | unixware* | OpenUNIX*) 7027 symcode='[ABDT]' 7028 ;; 7029sysv4) 7030 symcode='[DFNSTU]' 7031 ;; 7032esac 7033 7034# Handle CRLF in mingw tool chain 7035opt_cr= 7036case $build_os in 7037mingw*) 7038 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7039 ;; 7040esac 7041 7042# If we're using GNU nm, then use its standard symbol codes. 7043case `$NM -V 2>&1` in 7044*GNU* | *'with BFD'*) 7045 symcode='[ABCDGIRSTW]' ;; 7046esac 7047 7048# Try without a prefix undercore, then with it. 7049for ac_symprfx in "" "_"; do 7050 7051 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7052 symxfrm="\\1 $ac_symprfx\\2 \\2" 7053 7054 # Write the raw and C identifiers. 7055 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7056 7057 # Check to see that the pipe works correctly. 7058 pipe_works=no 7059 7060 rm -f conftest* 7061 cat > conftest.$ac_ext <<EOF 7062#ifdef __cplusplus 7063extern "C" { 7064#endif 7065char nm_test_var; 7066void nm_test_func(){} 7067#ifdef __cplusplus 7068} 7069#endif 7070int main(){nm_test_var='a';nm_test_func();return(0);} 7071EOF 7072 7073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7074 (eval $ac_compile) 2>&5 7075 ac_status=$? 7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7077 (exit $ac_status); }; then 7078 # Now try to grab the symbols. 7079 nlist=conftest.nm 7080 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7081 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7082 ac_status=$? 7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7084 (exit $ac_status); } && test -s "$nlist"; then 7085 # Try sorting and uniquifying the output. 7086 if sort "$nlist" | uniq > "$nlist"T; then 7087 mv -f "$nlist"T "$nlist" 7088 else 7089 rm -f "$nlist"T 7090 fi 7091 7092 # Make sure that we snagged all the symbols we need. 7093 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7094 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7095 cat <<EOF > conftest.$ac_ext 7096#ifdef __cplusplus 7097extern "C" { 7098#endif 7099 7100EOF 7101 # Now generate the symbol file. 7102 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7103 7104 cat <<EOF >> conftest.$ac_ext 7105#if defined (__STDC__) && __STDC__ 7106# define lt_ptr_t void * 7107#else 7108# define lt_ptr_t char * 7109# define const 7110#endif 7111 7112/* The mapping between symbol names and symbols. */ 7113const struct { 7114 const char *name; 7115 lt_ptr_t address; 7116} 7117lt_preloaded_symbols[] = 7118{ 7119EOF 7120 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7121 cat <<\EOF >> conftest.$ac_ext 7122 {0, (lt_ptr_t) 0} 7123}; 7124 7125#ifdef __cplusplus 7126} 7127#endif 7128EOF 7129 # Now try linking the two files. 7130 mv conftest.$ac_objext conftstm.$ac_objext 7131 lt_save_LIBS="$LIBS" 7132 lt_save_CFLAGS="$CFLAGS" 7133 LIBS="conftstm.$ac_objext" 7134 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7136 (eval $ac_link) 2>&5 7137 ac_status=$? 7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7139 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7140 pipe_works=yes 7141 fi 7142 LIBS="$lt_save_LIBS" 7143 CFLAGS="$lt_save_CFLAGS" 7144 else 7145 echo "cannot find nm_test_func in $nlist" >&5 7146 fi 7147 else 7148 echo "cannot find nm_test_var in $nlist" >&5 7149 fi 7150 else 7151 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7152 fi 7153 else 7154 echo "$progname: failed program was:" >&5 7155 cat conftest.$ac_ext >&5 7156 fi 7157 rm -f conftest* conftst* 7158 7159 # Do not use the global_symbol_pipe unless it works. 7160 if test "$pipe_works" = yes; then 7161 break 7162 else 7163 lt_cv_sys_global_symbol_pipe= 7164 fi 7165done 7166 7167fi 7168 7169if test -z "$lt_cv_sys_global_symbol_pipe"; then 7170 lt_cv_sys_global_symbol_to_cdecl= 7171fi 7172if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7173 { echo "$as_me:$LINENO: result: failed" >&5 7174echo "${ECHO_T}failed" >&6; } 7175else 7176 { echo "$as_me:$LINENO: result: ok" >&5 7177echo "${ECHO_T}ok" >&6; } 7178fi 7179 7180{ echo "$as_me:$LINENO: checking for objdir" >&5 7181echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7182if test "${lt_cv_objdir+set}" = set; then 7183 echo $ECHO_N "(cached) $ECHO_C" >&6 7184else 7185 rm -f .libs 2>/dev/null 7186mkdir .libs 2>/dev/null 7187if test -d .libs; then 7188 lt_cv_objdir=.libs 7189else 7190 # MS-DOS does not allow filenames that begin with a dot. 7191 lt_cv_objdir=_libs 7192fi 7193rmdir .libs 2>/dev/null 7194fi 7195{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7196echo "${ECHO_T}$lt_cv_objdir" >&6; } 7197objdir=$lt_cv_objdir 7198 7199 7200 7201 7202 7203case $host_os in 7204aix3*) 7205 # AIX sometimes has problems with the GCC collect2 program. For some 7206 # reason, if we set the COLLECT_NAMES environment variable, the problems 7207 # vanish in a puff of smoke. 7208 if test "X${COLLECT_NAMES+set}" != Xset; then 7209 COLLECT_NAMES= 7210 export COLLECT_NAMES 7211 fi 7212 ;; 7213esac 7214 7215# Sed substitution that helps us do robust quoting. It backslashifies 7216# metacharacters that are still active within double-quoted strings. 7217Xsed='sed -e 1s/^X//' 7218sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7219 7220# Same as above, but do not quote variable references. 7221double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7222 7223# Sed substitution to delay expansion of an escaped shell variable in a 7224# double_quote_subst'ed string. 7225delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7226 7227# Sed substitution to avoid accidental globbing in evaled expressions 7228no_glob_subst='s/\*/\\\*/g' 7229 7230# Constants: 7231rm="rm -f" 7232 7233# Global variables: 7234default_ofile=libtool 7235can_build_shared=yes 7236 7237# All known linkers require a `.a' archive for static linking (except MSVC, 7238# which needs '.lib'). 7239libext=a 7240ltmain="$ac_aux_dir/ltmain.sh" 7241ofile="$default_ofile" 7242with_gnu_ld="$lt_cv_prog_gnu_ld" 7243 7244if test -n "$ac_tool_prefix"; then 7245 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7246set dummy ${ac_tool_prefix}ar; ac_word=$2 7247{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7249if test "${ac_cv_prog_AR+set}" = set; then 7250 echo $ECHO_N "(cached) $ECHO_C" >&6 7251else 7252 if test -n "$AR"; then 7253 ac_cv_prog_AR="$AR" # Let the user override the test. 7254else 7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7256for as_dir in $PATH 7257do 7258 IFS=$as_save_IFS 7259 test -z "$as_dir" && as_dir=. 7260 for ac_exec_ext in '' $ac_executable_extensions; do 7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7262 ac_cv_prog_AR="${ac_tool_prefix}ar" 7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7264 break 2 7265 fi 7266done 7267done 7268IFS=$as_save_IFS 7269 7270fi 7271fi 7272AR=$ac_cv_prog_AR 7273if test -n "$AR"; then 7274 { echo "$as_me:$LINENO: result: $AR" >&5 7275echo "${ECHO_T}$AR" >&6; } 7276else 7277 { echo "$as_me:$LINENO: result: no" >&5 7278echo "${ECHO_T}no" >&6; } 7279fi 7280 7281 7282fi 7283if test -z "$ac_cv_prog_AR"; then 7284 ac_ct_AR=$AR 7285 # Extract the first word of "ar", so it can be a program name with args. 7286set dummy ar; ac_word=$2 7287{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7289if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7290 echo $ECHO_N "(cached) $ECHO_C" >&6 7291else 7292 if test -n "$ac_ct_AR"; then 7293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7294else 7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7296for as_dir in $PATH 7297do 7298 IFS=$as_save_IFS 7299 test -z "$as_dir" && as_dir=. 7300 for ac_exec_ext in '' $ac_executable_extensions; do 7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7302 ac_cv_prog_ac_ct_AR="ar" 7303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7304 break 2 7305 fi 7306done 7307done 7308IFS=$as_save_IFS 7309 7310fi 7311fi 7312ac_ct_AR=$ac_cv_prog_ac_ct_AR 7313if test -n "$ac_ct_AR"; then 7314 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7315echo "${ECHO_T}$ac_ct_AR" >&6; } 7316else 7317 { echo "$as_me:$LINENO: result: no" >&5 7318echo "${ECHO_T}no" >&6; } 7319fi 7320 7321 if test "x$ac_ct_AR" = x; then 7322 AR="false" 7323 else 7324 case $cross_compiling:$ac_tool_warned in 7325yes:) 7326{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7327whose name does not start with the host triplet. If you think this 7328configuration is useful to you, please write to autoconf@gnu.org." >&5 7329echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7330whose name does not start with the host triplet. If you think this 7331configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7332ac_tool_warned=yes ;; 7333esac 7334 AR=$ac_ct_AR 7335 fi 7336else 7337 AR="$ac_cv_prog_AR" 7338fi 7339 7340if test -n "$ac_tool_prefix"; then 7341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7342set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7343{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7345if test "${ac_cv_prog_RANLIB+set}" = set; then 7346 echo $ECHO_N "(cached) $ECHO_C" >&6 7347else 7348 if test -n "$RANLIB"; then 7349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7350else 7351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7352for as_dir in $PATH 7353do 7354 IFS=$as_save_IFS 7355 test -z "$as_dir" && as_dir=. 7356 for ac_exec_ext in '' $ac_executable_extensions; do 7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7360 break 2 7361 fi 7362done 7363done 7364IFS=$as_save_IFS 7365 7366fi 7367fi 7368RANLIB=$ac_cv_prog_RANLIB 7369if test -n "$RANLIB"; then 7370 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7371echo "${ECHO_T}$RANLIB" >&6; } 7372else 7373 { echo "$as_me:$LINENO: result: no" >&5 7374echo "${ECHO_T}no" >&6; } 7375fi 7376 7377 7378fi 7379if test -z "$ac_cv_prog_RANLIB"; then 7380 ac_ct_RANLIB=$RANLIB 7381 # Extract the first word of "ranlib", so it can be a program name with args. 7382set dummy ranlib; ac_word=$2 7383{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7385if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7386 echo $ECHO_N "(cached) $ECHO_C" >&6 7387else 7388 if test -n "$ac_ct_RANLIB"; then 7389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7390else 7391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7392for as_dir in $PATH 7393do 7394 IFS=$as_save_IFS 7395 test -z "$as_dir" && as_dir=. 7396 for ac_exec_ext in '' $ac_executable_extensions; do 7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7398 ac_cv_prog_ac_ct_RANLIB="ranlib" 7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7400 break 2 7401 fi 7402done 7403done 7404IFS=$as_save_IFS 7405 7406fi 7407fi 7408ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7409if test -n "$ac_ct_RANLIB"; then 7410 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7411echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7412else 7413 { echo "$as_me:$LINENO: result: no" >&5 7414echo "${ECHO_T}no" >&6; } 7415fi 7416 7417 if test "x$ac_ct_RANLIB" = x; then 7418 RANLIB=":" 7419 else 7420 case $cross_compiling:$ac_tool_warned in 7421yes:) 7422{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7423whose name does not start with the host triplet. If you think this 7424configuration is useful to you, please write to autoconf@gnu.org." >&5 7425echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7426whose name does not start with the host triplet. If you think this 7427configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7428ac_tool_warned=yes ;; 7429esac 7430 RANLIB=$ac_ct_RANLIB 7431 fi 7432else 7433 RANLIB="$ac_cv_prog_RANLIB" 7434fi 7435 7436if test -n "$ac_tool_prefix"; then 7437 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7438set dummy ${ac_tool_prefix}strip; ac_word=$2 7439{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7441if test "${ac_cv_prog_STRIP+set}" = set; then 7442 echo $ECHO_N "(cached) $ECHO_C" >&6 7443else 7444 if test -n "$STRIP"; then 7445 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7446else 7447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7448for as_dir in $PATH 7449do 7450 IFS=$as_save_IFS 7451 test -z "$as_dir" && as_dir=. 7452 for ac_exec_ext in '' $ac_executable_extensions; do 7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7454 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7456 break 2 7457 fi 7458done 7459done 7460IFS=$as_save_IFS 7461 7462fi 7463fi 7464STRIP=$ac_cv_prog_STRIP 7465if test -n "$STRIP"; then 7466 { echo "$as_me:$LINENO: result: $STRIP" >&5 7467echo "${ECHO_T}$STRIP" >&6; } 7468else 7469 { echo "$as_me:$LINENO: result: no" >&5 7470echo "${ECHO_T}no" >&6; } 7471fi 7472 7473 7474fi 7475if test -z "$ac_cv_prog_STRIP"; then 7476 ac_ct_STRIP=$STRIP 7477 # Extract the first word of "strip", so it can be a program name with args. 7478set dummy strip; ac_word=$2 7479{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7481if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7482 echo $ECHO_N "(cached) $ECHO_C" >&6 7483else 7484 if test -n "$ac_ct_STRIP"; then 7485 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7486else 7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7488for as_dir in $PATH 7489do 7490 IFS=$as_save_IFS 7491 test -z "$as_dir" && as_dir=. 7492 for ac_exec_ext in '' $ac_executable_extensions; do 7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7494 ac_cv_prog_ac_ct_STRIP="strip" 7495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7496 break 2 7497 fi 7498done 7499done 7500IFS=$as_save_IFS 7501 7502fi 7503fi 7504ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7505if test -n "$ac_ct_STRIP"; then 7506 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7507echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7508else 7509 { echo "$as_me:$LINENO: result: no" >&5 7510echo "${ECHO_T}no" >&6; } 7511fi 7512 7513 if test "x$ac_ct_STRIP" = x; then 7514 STRIP=":" 7515 else 7516 case $cross_compiling:$ac_tool_warned in 7517yes:) 7518{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7519whose name does not start with the host triplet. If you think this 7520configuration is useful to you, please write to autoconf@gnu.org." >&5 7521echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7522whose name does not start with the host triplet. If you think this 7523configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7524ac_tool_warned=yes ;; 7525esac 7526 STRIP=$ac_ct_STRIP 7527 fi 7528else 7529 STRIP="$ac_cv_prog_STRIP" 7530fi 7531 7532 7533old_CC="$CC" 7534old_CFLAGS="$CFLAGS" 7535 7536# Set sane defaults for various variables 7537test -z "$AR" && AR=ar 7538test -z "$AR_FLAGS" && AR_FLAGS=cru 7539test -z "$AS" && AS=as 7540test -z "$CC" && CC=cc 7541test -z "$LTCC" && LTCC=$CC 7542test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7543test -z "$DLLTOOL" && DLLTOOL=dlltool 7544test -z "$LD" && LD=ld 7545test -z "$LN_S" && LN_S="ln -s" 7546test -z "$MAGIC_CMD" && MAGIC_CMD=file 7547test -z "$NM" && NM=nm 7548test -z "$SED" && SED=sed 7549test -z "$OBJDUMP" && OBJDUMP=objdump 7550test -z "$RANLIB" && RANLIB=: 7551test -z "$STRIP" && STRIP=: 7552test -z "$ac_objext" && ac_objext=o 7553 7554# Determine commands to create old-style static archives. 7555old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7556old_postinstall_cmds='chmod 644 $oldlib' 7557old_postuninstall_cmds= 7558 7559if test -n "$RANLIB"; then 7560 case $host_os in 7561 openbsd*) 7562 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7563 ;; 7564 *) 7565 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7566 ;; 7567 esac 7568 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7569fi 7570 7571for cc_temp in $compiler""; do 7572 case $cc_temp in 7573 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7574 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7575 \-*) ;; 7576 *) break;; 7577 esac 7578done 7579cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7580 7581 7582# Only perform the check for file, if the check method requires it 7583case $deplibs_check_method in 7584file_magic*) 7585 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7586 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7587echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7588if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7589 echo $ECHO_N "(cached) $ECHO_C" >&6 7590else 7591 case $MAGIC_CMD in 7592[\\/*] | ?:[\\/]*) 7593 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7594 ;; 7595*) 7596 lt_save_MAGIC_CMD="$MAGIC_CMD" 7597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7598 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7599 for ac_dir in $ac_dummy; do 7600 IFS="$lt_save_ifs" 7601 test -z "$ac_dir" && ac_dir=. 7602 if test -f $ac_dir/${ac_tool_prefix}file; then 7603 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7604 if test -n "$file_magic_test_file"; then 7605 case $deplibs_check_method in 7606 "file_magic "*) 7607 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7610 $EGREP "$file_magic_regex" > /dev/null; then 7611 : 7612 else 7613 cat <<EOF 1>&2 7614 7615*** Warning: the command libtool uses to detect shared libraries, 7616*** $file_magic_cmd, produces output that libtool cannot recognize. 7617*** The result is that libtool may fail to recognize shared libraries 7618*** as such. This will affect the creation of libtool libraries that 7619*** depend on shared libraries, but programs linked with such libtool 7620*** libraries will work regardless of this problem. Nevertheless, you 7621*** may want to report the problem to your system manager and/or to 7622*** bug-libtool@gnu.org 7623 7624EOF 7625 fi ;; 7626 esac 7627 fi 7628 break 7629 fi 7630 done 7631 IFS="$lt_save_ifs" 7632 MAGIC_CMD="$lt_save_MAGIC_CMD" 7633 ;; 7634esac 7635fi 7636 7637MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7638if test -n "$MAGIC_CMD"; then 7639 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7640echo "${ECHO_T}$MAGIC_CMD" >&6; } 7641else 7642 { echo "$as_me:$LINENO: result: no" >&5 7643echo "${ECHO_T}no" >&6; } 7644fi 7645 7646if test -z "$lt_cv_path_MAGIC_CMD"; then 7647 if test -n "$ac_tool_prefix"; then 7648 { echo "$as_me:$LINENO: checking for file" >&5 7649echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7650if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7651 echo $ECHO_N "(cached) $ECHO_C" >&6 7652else 7653 case $MAGIC_CMD in 7654[\\/*] | ?:[\\/]*) 7655 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7656 ;; 7657*) 7658 lt_save_MAGIC_CMD="$MAGIC_CMD" 7659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7661 for ac_dir in $ac_dummy; do 7662 IFS="$lt_save_ifs" 7663 test -z "$ac_dir" && ac_dir=. 7664 if test -f $ac_dir/file; then 7665 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7666 if test -n "$file_magic_test_file"; then 7667 case $deplibs_check_method in 7668 "file_magic "*) 7669 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7672 $EGREP "$file_magic_regex" > /dev/null; then 7673 : 7674 else 7675 cat <<EOF 1>&2 7676 7677*** Warning: the command libtool uses to detect shared libraries, 7678*** $file_magic_cmd, produces output that libtool cannot recognize. 7679*** The result is that libtool may fail to recognize shared libraries 7680*** as such. This will affect the creation of libtool libraries that 7681*** depend on shared libraries, but programs linked with such libtool 7682*** libraries will work regardless of this problem. Nevertheless, you 7683*** may want to report the problem to your system manager and/or to 7684*** bug-libtool@gnu.org 7685 7686EOF 7687 fi ;; 7688 esac 7689 fi 7690 break 7691 fi 7692 done 7693 IFS="$lt_save_ifs" 7694 MAGIC_CMD="$lt_save_MAGIC_CMD" 7695 ;; 7696esac 7697fi 7698 7699MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7700if test -n "$MAGIC_CMD"; then 7701 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7702echo "${ECHO_T}$MAGIC_CMD" >&6; } 7703else 7704 { echo "$as_me:$LINENO: result: no" >&5 7705echo "${ECHO_T}no" >&6; } 7706fi 7707 7708 else 7709 MAGIC_CMD=: 7710 fi 7711fi 7712 7713 fi 7714 ;; 7715esac 7716 7717enable_dlopen=no 7718enable_win32_dll=yes 7719 7720# Check whether --enable-libtool-lock was given. 7721if test "${enable_libtool_lock+set}" = set; then 7722 enableval=$enable_libtool_lock; 7723fi 7724 7725test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7726 7727 7728# Check whether --with-pic was given. 7729if test "${with_pic+set}" = set; then 7730 withval=$with_pic; pic_mode="$withval" 7731else 7732 pic_mode=default 7733fi 7734 7735test -z "$pic_mode" && pic_mode=default 7736 7737# Use C for the default configuration in the libtool script 7738tagname= 7739lt_save_CC="$CC" 7740ac_ext=c 7741ac_cpp='$CPP $CPPFLAGS' 7742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7744ac_compiler_gnu=$ac_cv_c_compiler_gnu 7745 7746 7747# Source file extension for C test sources. 7748ac_ext=c 7749 7750# Object file extension for compiled C test sources. 7751objext=o 7752objext=$objext 7753 7754# Code to be used in simple compile tests 7755lt_simple_compile_test_code="int some_variable = 0;\n" 7756 7757# Code to be used in simple link tests 7758lt_simple_link_test_code='int main(){return(0);}\n' 7759 7760 7761# If no C compiler was specified, use CC. 7762LTCC=${LTCC-"$CC"} 7763 7764# If no C compiler flags were specified, use CFLAGS. 7765LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7766 7767# Allow CC to be a program name with arguments. 7768compiler=$CC 7769 7770 7771# save warnings/boilerplate of simple test code 7772ac_outfile=conftest.$ac_objext 7773printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7774eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7775_lt_compiler_boilerplate=`cat conftest.err` 7776$rm conftest* 7777 7778ac_outfile=conftest.$ac_objext 7779printf "$lt_simple_link_test_code" >conftest.$ac_ext 7780eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7781_lt_linker_boilerplate=`cat conftest.err` 7782$rm conftest* 7783 7784 7785 7786lt_prog_compiler_no_builtin_flag= 7787 7788if test "$GCC" = yes; then 7789 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7790 7791 7792{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7793echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7794if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7795 echo $ECHO_N "(cached) $ECHO_C" >&6 7796else 7797 lt_cv_prog_compiler_rtti_exceptions=no 7798 ac_outfile=conftest.$ac_objext 7799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7800 lt_compiler_flag="-fno-rtti -fno-exceptions" 7801 # Insert the option either (1) after the last *FLAGS variable, or 7802 # (2) before a word containing "conftest.", or (3) at the end. 7803 # Note that $ac_compile itself does not contain backslashes and begins 7804 # with a dollar sign (not a hyphen), so the echo should work correctly. 7805 # The option is referenced via a variable to avoid confusing sed. 7806 lt_compile=`echo "$ac_compile" | $SED \ 7807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7809 -e 's:$: $lt_compiler_flag:'` 7810 (eval echo "\"\$as_me:7810: $lt_compile\"" >&5) 7811 (eval "$lt_compile" 2>conftest.err) 7812 ac_status=$? 7813 cat conftest.err >&5 7814 echo "$as_me:7814: \$? = $ac_status" >&5 7815 if (exit $ac_status) && test -s "$ac_outfile"; then 7816 # The compiler can only warn and ignore the option if not recognized 7817 # So say no if there are warnings other than the usual output. 7818 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7820 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7821 lt_cv_prog_compiler_rtti_exceptions=yes 7822 fi 7823 fi 7824 $rm conftest* 7825 7826fi 7827{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7828echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7829 7830if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7831 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7832else 7833 : 7834fi 7835 7836fi 7837 7838lt_prog_compiler_wl= 7839lt_prog_compiler_pic= 7840lt_prog_compiler_static= 7841 7842{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7843echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7844 7845 if test "$GCC" = yes; then 7846 lt_prog_compiler_wl='-Wl,' 7847 lt_prog_compiler_static='-static' 7848 7849 case $host_os in 7850 aix*) 7851 # All AIX code is PIC. 7852 if test "$host_cpu" = ia64; then 7853 # AIX 5 now supports IA64 processor 7854 lt_prog_compiler_static='-Bstatic' 7855 fi 7856 ;; 7857 7858 amigaos*) 7859 # FIXME: we need at least 68020 code to build shared libraries, but 7860 # adding the `-m68020' flag to GCC prevents building anything better, 7861 # like `-m68040'. 7862 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7863 ;; 7864 7865 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7866 # PIC is the default for these OSes. 7867 ;; 7868 7869 mingw* | pw32* | os2*) 7870 # This hack is so that the source file can tell whether it is being 7871 # built for inclusion in a dll (and should export symbols for example). 7872 lt_prog_compiler_pic='-DDLL_EXPORT' 7873 ;; 7874 7875 darwin* | rhapsody*) 7876 # PIC is the default on this platform 7877 # Common symbols not allowed in MH_DYLIB files 7878 lt_prog_compiler_pic='-fno-common' 7879 ;; 7880 7881 interix3*) 7882 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7883 # Instead, we relocate shared libraries at runtime. 7884 ;; 7885 7886 msdosdjgpp*) 7887 # Just because we use GCC doesn't mean we suddenly get shared libraries 7888 # on systems that don't support them. 7889 lt_prog_compiler_can_build_shared=no 7890 enable_shared=no 7891 ;; 7892 7893 sysv4*MP*) 7894 if test -d /usr/nec; then 7895 lt_prog_compiler_pic=-Kconform_pic 7896 fi 7897 ;; 7898 7899 hpux*) 7900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7901 # not for PA HP-UX. 7902 case $host_cpu in 7903 hppa*64*|ia64*) 7904 # +Z the default 7905 ;; 7906 *) 7907 lt_prog_compiler_pic='-fPIC' 7908 ;; 7909 esac 7910 ;; 7911 7912 *) 7913 lt_prog_compiler_pic='-fPIC' 7914 ;; 7915 esac 7916 else 7917 # PORTME Check for flag to pass linker flags through the system compiler. 7918 case $host_os in 7919 aix*) 7920 lt_prog_compiler_wl='-Wl,' 7921 if test "$host_cpu" = ia64; then 7922 # AIX 5 now supports IA64 processor 7923 lt_prog_compiler_static='-Bstatic' 7924 else 7925 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7926 fi 7927 ;; 7928 darwin*) 7929 # PIC is the default on this platform 7930 # Common symbols not allowed in MH_DYLIB files 7931 case $cc_basename in 7932 xlc*) 7933 lt_prog_compiler_pic='-qnocommon' 7934 lt_prog_compiler_wl='-Wl,' 7935 ;; 7936 esac 7937 ;; 7938 7939 mingw* | pw32* | os2*) 7940 # This hack is so that the source file can tell whether it is being 7941 # built for inclusion in a dll (and should export symbols for example). 7942 lt_prog_compiler_pic='-DDLL_EXPORT' 7943 ;; 7944 7945 hpux9* | hpux10* | hpux11*) 7946 lt_prog_compiler_wl='-Wl,' 7947 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7948 # not for PA HP-UX. 7949 case $host_cpu in 7950 hppa*64*|ia64*) 7951 # +Z the default 7952 ;; 7953 *) 7954 lt_prog_compiler_pic='+Z' 7955 ;; 7956 esac 7957 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7958 lt_prog_compiler_static='${wl}-a ${wl}archive' 7959 ;; 7960 7961 irix5* | irix6* | nonstopux*) 7962 lt_prog_compiler_wl='-Wl,' 7963 # PIC (with -KPIC) is the default. 7964 lt_prog_compiler_static='-non_shared' 7965 ;; 7966 7967 newsos6) 7968 lt_prog_compiler_pic='-KPIC' 7969 lt_prog_compiler_static='-Bstatic' 7970 ;; 7971 7972 linux* | k*bsd*-gnu) 7973 case $cc_basename in 7974 icc* | ecc*) 7975 lt_prog_compiler_wl='-Wl,' 7976 lt_prog_compiler_pic='-KPIC' 7977 lt_prog_compiler_static='-static' 7978 ;; 7979 pgcc* | pgf77* | pgf90* | pgf95*) 7980 # Portland Group compilers (*not* the Pentium gcc compiler, 7981 # which looks to be a dead project) 7982 lt_prog_compiler_wl='-Wl,' 7983 lt_prog_compiler_pic='-fpic' 7984 lt_prog_compiler_static='-Bstatic' 7985 ;; 7986 ccc*) 7987 lt_prog_compiler_wl='-Wl,' 7988 # All Alpha code is PIC. 7989 lt_prog_compiler_static='-non_shared' 7990 ;; 7991 esac 7992 ;; 7993 7994 osf3* | osf4* | osf5*) 7995 lt_prog_compiler_wl='-Wl,' 7996 # All OSF/1 code is PIC. 7997 lt_prog_compiler_static='-non_shared' 7998 ;; 7999 8000 solaris*) 8001 lt_prog_compiler_pic='-KPIC' 8002 lt_prog_compiler_static='-Bstatic' 8003 case $cc_basename in 8004 f77* | f90* | f95*) 8005 lt_prog_compiler_wl='-Qoption ld ';; 8006 *) 8007 lt_prog_compiler_wl='-Wl,';; 8008 esac 8009 ;; 8010 8011 sunos4*) 8012 lt_prog_compiler_wl='-Qoption ld ' 8013 lt_prog_compiler_pic='-PIC' 8014 lt_prog_compiler_static='-Bstatic' 8015 ;; 8016 8017 sysv4 | sysv4.2uw2* | sysv4.3*) 8018 lt_prog_compiler_wl='-Wl,' 8019 lt_prog_compiler_pic='-KPIC' 8020 lt_prog_compiler_static='-Bstatic' 8021 ;; 8022 8023 sysv4*MP*) 8024 if test -d /usr/nec ;then 8025 lt_prog_compiler_pic='-Kconform_pic' 8026 lt_prog_compiler_static='-Bstatic' 8027 fi 8028 ;; 8029 8030 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8031 lt_prog_compiler_wl='-Wl,' 8032 lt_prog_compiler_pic='-KPIC' 8033 lt_prog_compiler_static='-Bstatic' 8034 ;; 8035 8036 unicos*) 8037 lt_prog_compiler_wl='-Wl,' 8038 lt_prog_compiler_can_build_shared=no 8039 ;; 8040 8041 uts4*) 8042 lt_prog_compiler_pic='-pic' 8043 lt_prog_compiler_static='-Bstatic' 8044 ;; 8045 8046 *) 8047 lt_prog_compiler_can_build_shared=no 8048 ;; 8049 esac 8050 fi 8051 8052{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8053echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 8054 8055# 8056# Check to make sure the PIC flag actually works. 8057# 8058if test -n "$lt_prog_compiler_pic"; then 8059 8060{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8061echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 8062if test "${lt_prog_compiler_pic_works+set}" = set; then 8063 echo $ECHO_N "(cached) $ECHO_C" >&6 8064else 8065 lt_prog_compiler_pic_works=no 8066 ac_outfile=conftest.$ac_objext 8067 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8068 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8069 # Insert the option either (1) after the last *FLAGS variable, or 8070 # (2) before a word containing "conftest.", or (3) at the end. 8071 # Note that $ac_compile itself does not contain backslashes and begins 8072 # with a dollar sign (not a hyphen), so the echo should work correctly. 8073 # The option is referenced via a variable to avoid confusing sed. 8074 lt_compile=`echo "$ac_compile" | $SED \ 8075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8077 -e 's:$: $lt_compiler_flag:'` 8078 (eval echo "\"\$as_me:8078: $lt_compile\"" >&5) 8079 (eval "$lt_compile" 2>conftest.err) 8080 ac_status=$? 8081 cat conftest.err >&5 8082 echo "$as_me:8082: \$? = $ac_status" >&5 8083 if (exit $ac_status) && test -s "$ac_outfile"; then 8084 # The compiler can only warn and ignore the option if not recognized 8085 # So say no if there are warnings other than the usual output. 8086 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8089 lt_prog_compiler_pic_works=yes 8090 fi 8091 fi 8092 $rm conftest* 8093 8094fi 8095{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8096echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 8097 8098if test x"$lt_prog_compiler_pic_works" = xyes; then 8099 case $lt_prog_compiler_pic in 8100 "" | " "*) ;; 8101 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8102 esac 8103else 8104 lt_prog_compiler_pic= 8105 lt_prog_compiler_can_build_shared=no 8106fi 8107 8108fi 8109case $host_os in 8110 # For platforms which do not support PIC, -DPIC is meaningless: 8111 *djgpp*) 8112 lt_prog_compiler_pic= 8113 ;; 8114 *) 8115 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8116 ;; 8117esac 8118 8119# 8120# Check to make sure the static flag actually works. 8121# 8122wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8123{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8124echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 8125if test "${lt_prog_compiler_static_works+set}" = set; then 8126 echo $ECHO_N "(cached) $ECHO_C" >&6 8127else 8128 lt_prog_compiler_static_works=no 8129 save_LDFLAGS="$LDFLAGS" 8130 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8131 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8132 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8133 # The linker can only warn and ignore the option if not recognized 8134 # So say no if there are warnings 8135 if test -s conftest.err; then 8136 # Append any errors to the config.log. 8137 cat conftest.err 1>&5 8138 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8140 if diff conftest.exp conftest.er2 >/dev/null; then 8141 lt_prog_compiler_static_works=yes 8142 fi 8143 else 8144 lt_prog_compiler_static_works=yes 8145 fi 8146 fi 8147 $rm conftest* 8148 LDFLAGS="$save_LDFLAGS" 8149 8150fi 8151{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8152echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 8153 8154if test x"$lt_prog_compiler_static_works" = xyes; then 8155 : 8156else 8157 lt_prog_compiler_static= 8158fi 8159 8160 8161{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8162echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8163if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8164 echo $ECHO_N "(cached) $ECHO_C" >&6 8165else 8166 lt_cv_prog_compiler_c_o=no 8167 $rm -r conftest 2>/dev/null 8168 mkdir conftest 8169 cd conftest 8170 mkdir out 8171 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8172 8173 lt_compiler_flag="-o out/conftest2.$ac_objext" 8174 # Insert the option either (1) after the last *FLAGS variable, or 8175 # (2) before a word containing "conftest.", or (3) at the end. 8176 # Note that $ac_compile itself does not contain backslashes and begins 8177 # with a dollar sign (not a hyphen), so the echo should work correctly. 8178 lt_compile=`echo "$ac_compile" | $SED \ 8179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8181 -e 's:$: $lt_compiler_flag:'` 8182 (eval echo "\"\$as_me:8182: $lt_compile\"" >&5) 8183 (eval "$lt_compile" 2>out/conftest.err) 8184 ac_status=$? 8185 cat out/conftest.err >&5 8186 echo "$as_me:8186: \$? = $ac_status" >&5 8187 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8188 then 8189 # The compiler can only warn and ignore the option if not recognized 8190 # So say no if there are warnings 8191 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8192 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8193 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8194 lt_cv_prog_compiler_c_o=yes 8195 fi 8196 fi 8197 chmod u+w . 2>&5 8198 $rm conftest* 8199 # SGI C++ compiler will create directory out/ii_files/ for 8200 # template instantiation 8201 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8202 $rm out/* && rmdir out 8203 cd .. 8204 rmdir conftest 8205 $rm conftest* 8206 8207fi 8208{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8209echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8210 8211 8212hard_links="nottested" 8213if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8214 # do not overwrite the value of need_locks provided by the user 8215 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8216echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 8217 hard_links=yes 8218 $rm conftest* 8219 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8220 touch conftest.a 8221 ln conftest.a conftest.b 2>&5 || hard_links=no 8222 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8223 { echo "$as_me:$LINENO: result: $hard_links" >&5 8224echo "${ECHO_T}$hard_links" >&6; } 8225 if test "$hard_links" = no; then 8226 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8227echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8228 need_locks=warn 8229 fi 8230else 8231 need_locks=no 8232fi 8233 8234{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8235echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 8236 8237 runpath_var= 8238 allow_undefined_flag= 8239 enable_shared_with_static_runtimes=no 8240 archive_cmds= 8241 archive_expsym_cmds= 8242 old_archive_From_new_cmds= 8243 old_archive_from_expsyms_cmds= 8244 export_dynamic_flag_spec= 8245 whole_archive_flag_spec= 8246 thread_safe_flag_spec= 8247 hardcode_libdir_flag_spec= 8248 hardcode_libdir_flag_spec_ld= 8249 hardcode_libdir_separator= 8250 hardcode_direct=no 8251 hardcode_minus_L=no 8252 hardcode_shlibpath_var=unsupported 8253 link_all_deplibs=unknown 8254 hardcode_automatic=no 8255 module_cmds= 8256 module_expsym_cmds= 8257 always_export_symbols=no 8258 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8259 # include_expsyms should be a list of space-separated symbols to be *always* 8260 # included in the symbol list 8261 include_expsyms= 8262 # exclude_expsyms can be an extended regexp of symbols to exclude 8263 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8264 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8265 # as well as any symbol that contains `d'. 8266 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8267 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8268 # platforms (ab)use it in PIC code, but their linkers get confused if 8269 # the symbol is explicitly referenced. Since portable code cannot 8270 # rely on this symbol name, it's probably fine to never include it in 8271 # preloaded symbol tables. 8272 extract_expsyms_cmds= 8273 # Just being paranoid about ensuring that cc_basename is set. 8274 for cc_temp in $compiler""; do 8275 case $cc_temp in 8276 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8277 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8278 \-*) ;; 8279 *) break;; 8280 esac 8281done 8282cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8283 8284 case $host_os in 8285 cygwin* | mingw* | pw32*) 8286 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8287 # When not using gcc, we currently assume that we are using 8288 # Microsoft Visual C++. 8289 if test "$GCC" != yes; then 8290 with_gnu_ld=no 8291 fi 8292 ;; 8293 interix*) 8294 # we just hope/assume this is gcc and not c89 (= MSVC++) 8295 with_gnu_ld=yes 8296 ;; 8297 openbsd*) 8298 with_gnu_ld=no 8299 ;; 8300 esac 8301 8302 ld_shlibs=yes 8303 if test "$with_gnu_ld" = yes; then 8304 # If archive_cmds runs LD, not CC, wlarc should be empty 8305 wlarc='${wl}' 8306 8307 # Set some defaults for GNU ld with shared library support. These 8308 # are reset later if shared libraries are not supported. Putting them 8309 # here allows them to be overridden if necessary. 8310 runpath_var=LD_RUN_PATH 8311 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8312 export_dynamic_flag_spec='${wl}--export-dynamic' 8313 # ancient GNU ld didn't support --whole-archive et. al. 8314 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8315 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8316 else 8317 whole_archive_flag_spec= 8318 fi 8319 supports_anon_versioning=no 8320 case `$LD -v 2>/dev/null` in 8321 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8322 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8323 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8324 *\ 2.11.*) ;; # other 2.11 versions 8325 *) supports_anon_versioning=yes ;; 8326 esac 8327 8328 # See if GNU ld supports shared libraries. 8329 case $host_os in 8330 aix3* | aix4* | aix5*) 8331 # On AIX/PPC, the GNU linker is very broken 8332 if test "$host_cpu" != ia64; then 8333 ld_shlibs=no 8334 cat <<EOF 1>&2 8335 8336*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8337*** to be unable to reliably create shared libraries on AIX. 8338*** Therefore, libtool is disabling shared libraries support. If you 8339*** really care for shared libraries, you may want to modify your PATH 8340*** so that a non-GNU linker is found, and then restart. 8341 8342EOF 8343 fi 8344 ;; 8345 8346 amigaos*) 8347 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)' 8348 hardcode_libdir_flag_spec='-L$libdir' 8349 hardcode_minus_L=yes 8350 8351 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8352 # that the semantics of dynamic libraries on AmigaOS, at least up 8353 # to version 4, is to share data among multiple programs linked 8354 # with the same dynamic library. Since this doesn't match the 8355 # behavior of shared libraries on other platforms, we can't use 8356 # them. 8357 ld_shlibs=no 8358 ;; 8359 8360 beos*) 8361 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8362 allow_undefined_flag=unsupported 8363 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8364 # support --undefined. This deserves some investigation. FIXME 8365 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8366 else 8367 ld_shlibs=no 8368 fi 8369 ;; 8370 8371 cygwin* | mingw* | pw32*) 8372 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8373 # as there is no search path for DLLs. 8374 hardcode_libdir_flag_spec='-L$libdir' 8375 allow_undefined_flag=unsupported 8376 always_export_symbols=no 8377 enable_shared_with_static_runtimes=yes 8378 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8379 8380 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8382 # If the export-symbols file already is a .def file (1st line 8383 # is EXPORTS), use it as is; otherwise, prepend... 8384 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8385 cp $export_symbols $output_objdir/$soname.def; 8386 else 8387 echo EXPORTS > $output_objdir/$soname.def; 8388 cat $export_symbols >> $output_objdir/$soname.def; 8389 fi~ 8390 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8391 else 8392 ld_shlibs=no 8393 fi 8394 ;; 8395 8396 interix3*) 8397 hardcode_direct=no 8398 hardcode_shlibpath_var=no 8399 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8400 export_dynamic_flag_spec='${wl}-E' 8401 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8402 # Instead, shared libraries are loaded at an image base (0x10000000 by 8403 # default) and relocated if they conflict, which is a slow very memory 8404 # consuming and fragmenting process. To avoid this, we pick a random, 8405 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8406 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8407 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8408 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' 8409 ;; 8410 8411 linux* | k*bsd*-gnu) 8412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8413 tmp_addflag= 8414 case $cc_basename,$host_cpu in 8415 pgcc*) # Portland Group C compiler 8416 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' 8417 tmp_addflag=' $pic_flag' 8418 ;; 8419 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8420 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' 8421 tmp_addflag=' $pic_flag -Mnomain' ;; 8422 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8423 tmp_addflag=' -i_dynamic' ;; 8424 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8425 tmp_addflag=' -i_dynamic -nofor_main' ;; 8426 ifc* | ifort*) # Intel Fortran compiler 8427 tmp_addflag=' -nofor_main' ;; 8428 esac 8429 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8430 8431 if test $supports_anon_versioning = yes; then 8432 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8433 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8434 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8435 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8436 fi 8437 link_all_deplibs=no 8438 else 8439 ld_shlibs=no 8440 fi 8441 ;; 8442 8443 netbsd* | netbsdelf*-gnu) 8444 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8445 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8446 wlarc= 8447 else 8448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8450 fi 8451 ;; 8452 8453 solaris*) 8454 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8455 ld_shlibs=no 8456 cat <<EOF 1>&2 8457 8458*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8459*** create shared libraries on Solaris systems. Therefore, libtool 8460*** is disabling shared libraries support. We urge you to upgrade GNU 8461*** binutils to release 2.9.1 or newer. Another option is to modify 8462*** your PATH or compiler configuration so that the native linker is 8463*** used, and then restart. 8464 8465EOF 8466 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8469 else 8470 ld_shlibs=no 8471 fi 8472 ;; 8473 8474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8475 case `$LD -v 2>&1` in 8476 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8477 ld_shlibs=no 8478 cat <<_LT_EOF 1>&2 8479 8480*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8481*** reliably create shared libraries on SCO systems. Therefore, libtool 8482*** is disabling shared libraries support. We urge you to upgrade GNU 8483*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8484*** your PATH or compiler configuration so that the native linker is 8485*** used, and then restart. 8486 8487_LT_EOF 8488 ;; 8489 *) 8490 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8491 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8493 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8494 else 8495 ld_shlibs=no 8496 fi 8497 ;; 8498 esac 8499 ;; 8500 8501 sunos4*) 8502 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8503 wlarc= 8504 hardcode_direct=yes 8505 hardcode_shlibpath_var=no 8506 ;; 8507 8508 *) 8509 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8512 else 8513 ld_shlibs=no 8514 fi 8515 ;; 8516 esac 8517 8518 if test "$ld_shlibs" = no; then 8519 runpath_var= 8520 hardcode_libdir_flag_spec= 8521 export_dynamic_flag_spec= 8522 whole_archive_flag_spec= 8523 fi 8524 else 8525 # PORTME fill in a description of your system's linker (not GNU ld) 8526 case $host_os in 8527 aix3*) 8528 allow_undefined_flag=unsupported 8529 always_export_symbols=yes 8530 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' 8531 # Note: this linker hardcodes the directories in LIBPATH if there 8532 # are no directories specified by -L. 8533 hardcode_minus_L=yes 8534 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8535 # Neither direct hardcoding nor static linking is supported with a 8536 # broken collect2. 8537 hardcode_direct=unsupported 8538 fi 8539 ;; 8540 8541 aix4* | aix5*) 8542 if test "$host_cpu" = ia64; then 8543 # On IA64, the linker does run time linking by default, so we don't 8544 # have to do anything special. 8545 aix_use_runtimelinking=no 8546 exp_sym_flag='-Bexport' 8547 no_entry_flag="" 8548 else 8549 # If we're using GNU nm, then we don't want the "-C" option. 8550 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8551 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8552 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' 8553 else 8554 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' 8555 fi 8556 aix_use_runtimelinking=no 8557 8558 # Test if we are trying to use run time linking or normal 8559 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8560 # need to do runtime linking. 8561 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8562 for ld_flag in $LDFLAGS; do 8563 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8564 aix_use_runtimelinking=yes 8565 break 8566 fi 8567 done 8568 ;; 8569 esac 8570 8571 exp_sym_flag='-bexport' 8572 no_entry_flag='-bnoentry' 8573 fi 8574 8575 # When large executables or shared objects are built, AIX ld can 8576 # have problems creating the table of contents. If linking a library 8577 # or program results in "error TOC overflow" add -mminimal-toc to 8578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8580 8581 archive_cmds='' 8582 hardcode_direct=yes 8583 hardcode_libdir_separator=':' 8584 link_all_deplibs=yes 8585 8586 if test "$GCC" = yes; then 8587 case $host_os in aix4.[012]|aix4.[012].*) 8588 # We only want to do this on AIX 4.2 and lower, the check 8589 # below for broken collect2 doesn't work under 4.3+ 8590 collect2name=`${CC} -print-prog-name=collect2` 8591 if test -f "$collect2name" && \ 8592 strings "$collect2name" | grep resolve_lib_name >/dev/null 8593 then 8594 # We have reworked collect2 8595 hardcode_direct=yes 8596 else 8597 # We have old collect2 8598 hardcode_direct=unsupported 8599 # It fails to find uninstalled libraries when the uninstalled 8600 # path is not listed in the libpath. Setting hardcode_minus_L 8601 # to unsupported forces relinking 8602 hardcode_minus_L=yes 8603 hardcode_libdir_flag_spec='-L$libdir' 8604 hardcode_libdir_separator= 8605 fi 8606 ;; 8607 esac 8608 shared_flag='-shared' 8609 if test "$aix_use_runtimelinking" = yes; then 8610 shared_flag="$shared_flag "'${wl}-G' 8611 fi 8612 else 8613 # not using gcc 8614 if test "$host_cpu" = ia64; then 8615 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8616 # chokes on -Wl,-G. The following line is correct: 8617 shared_flag='-G' 8618 else 8619 if test "$aix_use_runtimelinking" = yes; then 8620 shared_flag='${wl}-G' 8621 else 8622 shared_flag='${wl}-bM:SRE' 8623 fi 8624 fi 8625 fi 8626 8627 # It seems that -bexpall does not export symbols beginning with 8628 # underscore (_), so it is better to generate a list of symbols to export. 8629 always_export_symbols=yes 8630 if test "$aix_use_runtimelinking" = yes; then 8631 # Warning - without using the other runtime loading flags (-brtl), 8632 # -berok will link without error, but may produce a broken library. 8633 allow_undefined_flag='-berok' 8634 # Determine the default libpath from the value encoded in an empty executable. 8635 cat >conftest.$ac_ext <<_ACEOF 8636/* confdefs.h. */ 8637_ACEOF 8638cat confdefs.h >>conftest.$ac_ext 8639cat >>conftest.$ac_ext <<_ACEOF 8640/* end confdefs.h. */ 8641 8642int 8643main () 8644{ 8645 8646 ; 8647 return 0; 8648} 8649_ACEOF 8650rm -f conftest.$ac_objext conftest$ac_exeext 8651if { (ac_try="$ac_link" 8652case "(($ac_try" in 8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8654 *) ac_try_echo=$ac_try;; 8655esac 8656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8657 (eval "$ac_link") 2>conftest.er1 8658 ac_status=$? 8659 grep -v '^ *+' conftest.er1 >conftest.err 8660 rm -f conftest.er1 8661 cat conftest.err >&5 8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8663 (exit $ac_status); } && 8664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8665 { (case "(($ac_try" in 8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8667 *) ac_try_echo=$ac_try;; 8668esac 8669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8670 (eval "$ac_try") 2>&5 8671 ac_status=$? 8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8673 (exit $ac_status); }; } && 8674 { ac_try='test -s conftest$ac_exeext' 8675 { (case "(($ac_try" in 8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8677 *) ac_try_echo=$ac_try;; 8678esac 8679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8680 (eval "$ac_try") 2>&5 8681 ac_status=$? 8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8683 (exit $ac_status); }; }; then 8684 8685aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8686}'` 8687# Check for a 64-bit object if we didn't find anything. 8688if 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; } 8689}'`; fi 8690else 8691 echo "$as_me: failed program was:" >&5 8692sed 's/^/| /' conftest.$ac_ext >&5 8693 8694 8695fi 8696 8697rm -f core conftest.err conftest.$ac_objext \ 8698 conftest$ac_exeext conftest.$ac_ext 8699if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8700 8701 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8702 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" 8703 else 8704 if test "$host_cpu" = ia64; then 8705 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8706 allow_undefined_flag="-z nodefs" 8707 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" 8708 else 8709 # Determine the default libpath from the value encoded in an empty executable. 8710 cat >conftest.$ac_ext <<_ACEOF 8711/* confdefs.h. */ 8712_ACEOF 8713cat confdefs.h >>conftest.$ac_ext 8714cat >>conftest.$ac_ext <<_ACEOF 8715/* end confdefs.h. */ 8716 8717int 8718main () 8719{ 8720 8721 ; 8722 return 0; 8723} 8724_ACEOF 8725rm -f conftest.$ac_objext conftest$ac_exeext 8726if { (ac_try="$ac_link" 8727case "(($ac_try" in 8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8729 *) ac_try_echo=$ac_try;; 8730esac 8731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8732 (eval "$ac_link") 2>conftest.er1 8733 ac_status=$? 8734 grep -v '^ *+' conftest.er1 >conftest.err 8735 rm -f conftest.er1 8736 cat conftest.err >&5 8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8738 (exit $ac_status); } && 8739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8740 { (case "(($ac_try" in 8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8742 *) ac_try_echo=$ac_try;; 8743esac 8744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8745 (eval "$ac_try") 2>&5 8746 ac_status=$? 8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8748 (exit $ac_status); }; } && 8749 { ac_try='test -s conftest$ac_exeext' 8750 { (case "(($ac_try" in 8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8752 *) ac_try_echo=$ac_try;; 8753esac 8754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8755 (eval "$ac_try") 2>&5 8756 ac_status=$? 8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8758 (exit $ac_status); }; }; then 8759 8760aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8761}'` 8762# Check for a 64-bit object if we didn't find anything. 8763if 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; } 8764}'`; fi 8765else 8766 echo "$as_me: failed program was:" >&5 8767sed 's/^/| /' conftest.$ac_ext >&5 8768 8769 8770fi 8771 8772rm -f core conftest.err conftest.$ac_objext \ 8773 conftest$ac_exeext conftest.$ac_ext 8774if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8775 8776 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8777 # Warning - without using the other run time loading flags, 8778 # -berok will link without error, but may produce a broken library. 8779 no_undefined_flag=' ${wl}-bernotok' 8780 allow_undefined_flag=' ${wl}-berok' 8781 # Exported symbols can be pulled into shared objects from archives 8782 whole_archive_flag_spec='$convenience' 8783 archive_cmds_need_lc=yes 8784 # This is similar to how AIX traditionally builds its shared libraries. 8785 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' 8786 fi 8787 fi 8788 ;; 8789 8790 amigaos*) 8791 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)' 8792 hardcode_libdir_flag_spec='-L$libdir' 8793 hardcode_minus_L=yes 8794 # see comment about different semantics on the GNU ld section 8795 ld_shlibs=no 8796 ;; 8797 8798 bsdi[45]*) 8799 export_dynamic_flag_spec=-rdynamic 8800 ;; 8801 8802 cygwin* | mingw* | pw32*) 8803 # When not using gcc, we currently assume that we are using 8804 # Microsoft Visual C++. 8805 # hardcode_libdir_flag_spec is actually meaningless, as there is 8806 # no search path for DLLs. 8807 hardcode_libdir_flag_spec=' ' 8808 allow_undefined_flag=unsupported 8809 # Tell ltmain to make .lib files, not .a files. 8810 libext=lib 8811 # Tell ltmain to make .dll files, not .so files. 8812 shrext_cmds=".dll" 8813 # FIXME: Setting linknames here is a bad hack. 8814 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8815 # The linker will automatically build a .lib file if we build a DLL. 8816 old_archive_From_new_cmds='true' 8817 # FIXME: Should let the user specify the lib program. 8818 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8819 fix_srcfile_path='`cygpath -w "$srcfile"`' 8820 enable_shared_with_static_runtimes=yes 8821 ;; 8822 8823 darwin* | rhapsody*) 8824 case $host_os in 8825 rhapsody* | darwin1.[012]) 8826 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8827 ;; 8828 *) # Darwin 1.3 on 8829 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8830 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8831 else 8832 case ${MACOSX_DEPLOYMENT_TARGET} in 8833 10.[012]) 8834 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8835 ;; 8836 10.*) 8837 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8838 ;; 8839 esac 8840 fi 8841 ;; 8842 esac 8843 archive_cmds_need_lc=no 8844 hardcode_direct=no 8845 hardcode_automatic=yes 8846 hardcode_shlibpath_var=unsupported 8847 whole_archive_flag_spec='' 8848 link_all_deplibs=yes 8849 if test "$GCC" = yes ; then 8850 output_verbose_link_cmd='echo' 8851 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8852 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8853 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8854 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}' 8855 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}' 8856 else 8857 case $cc_basename in 8858 xlc*) 8859 output_verbose_link_cmd='echo' 8860 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8861 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8862 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8863 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}' 8864 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}' 8865 ;; 8866 *) 8867 ld_shlibs=no 8868 ;; 8869 esac 8870 fi 8871 ;; 8872 8873 dgux*) 8874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8875 hardcode_libdir_flag_spec='-L$libdir' 8876 hardcode_shlibpath_var=no 8877 ;; 8878 8879 freebsd1*) 8880 ld_shlibs=no 8881 ;; 8882 8883 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8884 # support. Future versions do this automatically, but an explicit c++rt0.o 8885 # does not break anything, and helps significantly (at the cost of a little 8886 # extra space). 8887 freebsd2.2*) 8888 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8889 hardcode_libdir_flag_spec='-R$libdir' 8890 hardcode_direct=yes 8891 hardcode_shlibpath_var=no 8892 ;; 8893 8894 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8895 freebsd2*) 8896 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8897 hardcode_direct=yes 8898 hardcode_minus_L=yes 8899 hardcode_shlibpath_var=no 8900 ;; 8901 8902 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8903 freebsd* | dragonfly*) 8904 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8905 hardcode_libdir_flag_spec='-R$libdir' 8906 hardcode_direct=yes 8907 hardcode_shlibpath_var=no 8908 ;; 8909 8910 hpux9*) 8911 if test "$GCC" = yes; then 8912 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' 8913 else 8914 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' 8915 fi 8916 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8917 hardcode_libdir_separator=: 8918 hardcode_direct=yes 8919 8920 # hardcode_minus_L: Not really in the search PATH, 8921 # but as the default location of the library. 8922 hardcode_minus_L=yes 8923 export_dynamic_flag_spec='${wl}-E' 8924 ;; 8925 8926 hpux10*) 8927 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8928 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8929 else 8930 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8931 fi 8932 if test "$with_gnu_ld" = no; then 8933 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8934 hardcode_libdir_separator=: 8935 8936 hardcode_direct=yes 8937 export_dynamic_flag_spec='${wl}-E' 8938 8939 # hardcode_minus_L: Not really in the search PATH, 8940 # but as the default location of the library. 8941 hardcode_minus_L=yes 8942 fi 8943 ;; 8944 8945 hpux11*) 8946 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8947 case $host_cpu in 8948 hppa*64*) 8949 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8950 ;; 8951 ia64*) 8952 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8953 ;; 8954 *) 8955 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8956 ;; 8957 esac 8958 else 8959 case $host_cpu in 8960 hppa*64*) 8961 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8962 ;; 8963 ia64*) 8964 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8965 ;; 8966 *) 8967 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8968 ;; 8969 esac 8970 fi 8971 if test "$with_gnu_ld" = no; then 8972 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8973 hardcode_libdir_separator=: 8974 8975 case $host_cpu in 8976 hppa*64*|ia64*) 8977 hardcode_libdir_flag_spec_ld='+b $libdir' 8978 hardcode_direct=no 8979 hardcode_shlibpath_var=no 8980 ;; 8981 *) 8982 hardcode_direct=yes 8983 export_dynamic_flag_spec='${wl}-E' 8984 8985 # hardcode_minus_L: Not really in the search PATH, 8986 # but as the default location of the library. 8987 hardcode_minus_L=yes 8988 ;; 8989 esac 8990 fi 8991 ;; 8992 8993 irix5* | irix6* | nonstopux*) 8994 if test "$GCC" = yes; then 8995 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' 8996 else 8997 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' 8998 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8999 fi 9000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9001 hardcode_libdir_separator=: 9002 link_all_deplibs=yes 9003 ;; 9004 9005 netbsd* | netbsdelf*-gnu) 9006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9008 else 9009 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9010 fi 9011 hardcode_libdir_flag_spec='-R$libdir' 9012 hardcode_direct=yes 9013 hardcode_shlibpath_var=no 9014 ;; 9015 9016 newsos6) 9017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9018 hardcode_direct=yes 9019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9020 hardcode_libdir_separator=: 9021 hardcode_shlibpath_var=no 9022 ;; 9023 9024 openbsd*) 9025 hardcode_direct=yes 9026 hardcode_shlibpath_var=no 9027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9028 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9029 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9030 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9031 export_dynamic_flag_spec='${wl}-E' 9032 else 9033 case $host_os in 9034 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9036 hardcode_libdir_flag_spec='-R$libdir' 9037 ;; 9038 *) 9039 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9040 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9041 ;; 9042 esac 9043 fi 9044 ;; 9045 9046 os2*) 9047 hardcode_libdir_flag_spec='-L$libdir' 9048 hardcode_minus_L=yes 9049 allow_undefined_flag=unsupported 9050 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' 9051 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9052 ;; 9053 9054 osf3*) 9055 if test "$GCC" = yes; then 9056 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9057 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' 9058 else 9059 allow_undefined_flag=' -expect_unresolved \*' 9060 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' 9061 fi 9062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9063 hardcode_libdir_separator=: 9064 ;; 9065 9066 osf4* | osf5*) # as osf3* with the addition of -msym flag 9067 if test "$GCC" = yes; then 9068 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9069 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' 9070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9071 else 9072 allow_undefined_flag=' -expect_unresolved \*' 9073 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' 9074 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9075 $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' 9076 9077 # Both c and cxx compiler support -rpath directly 9078 hardcode_libdir_flag_spec='-rpath $libdir' 9079 fi 9080 hardcode_libdir_separator=: 9081 ;; 9082 9083 solaris*) 9084 no_undefined_flag=' -z text' 9085 if test "$GCC" = yes; then 9086 wlarc='${wl}' 9087 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9088 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9089 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9090 else 9091 wlarc='' 9092 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9093 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9094 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9095 fi 9096 hardcode_libdir_flag_spec='-R$libdir' 9097 hardcode_shlibpath_var=no 9098 case $host_os in 9099 solaris2.[0-5] | solaris2.[0-5].*) ;; 9100 *) 9101 # The compiler driver will combine linker options so we 9102 # cannot just pass the convience library names through 9103 # without $wl, iff we do not link with $LD. 9104 # Luckily, gcc supports the same syntax we need for Sun Studio. 9105 # Supported since Solaris 2.6 (maybe 2.5.1?) 9106 case $wlarc in 9107 '') 9108 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9109 *) 9110 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' ;; 9111 esac ;; 9112 esac 9113 link_all_deplibs=yes 9114 ;; 9115 9116 sunos4*) 9117 if test "x$host_vendor" = xsequent; then 9118 # Use $CC to link under sequent, because it throws in some extra .o 9119 # files that make .init and .fini sections work. 9120 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9121 else 9122 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9123 fi 9124 hardcode_libdir_flag_spec='-L$libdir' 9125 hardcode_direct=yes 9126 hardcode_minus_L=yes 9127 hardcode_shlibpath_var=no 9128 ;; 9129 9130 sysv4) 9131 case $host_vendor in 9132 sni) 9133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9134 hardcode_direct=yes # is this really true??? 9135 ;; 9136 siemens) 9137 ## LD is ld it makes a PLAMLIB 9138 ## CC just makes a GrossModule. 9139 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9140 reload_cmds='$CC -r -o $output$reload_objs' 9141 hardcode_direct=no 9142 ;; 9143 motorola) 9144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9145 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9146 ;; 9147 esac 9148 runpath_var='LD_RUN_PATH' 9149 hardcode_shlibpath_var=no 9150 ;; 9151 9152 sysv4.3*) 9153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9154 hardcode_shlibpath_var=no 9155 export_dynamic_flag_spec='-Bexport' 9156 ;; 9157 9158 sysv4*MP*) 9159 if test -d /usr/nec; then 9160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9161 hardcode_shlibpath_var=no 9162 runpath_var=LD_RUN_PATH 9163 hardcode_runpath_var=yes 9164 ld_shlibs=yes 9165 fi 9166 ;; 9167 9168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 9169 no_undefined_flag='${wl}-z,text' 9170 archive_cmds_need_lc=no 9171 hardcode_shlibpath_var=no 9172 runpath_var='LD_RUN_PATH' 9173 9174 if test "$GCC" = yes; then 9175 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9176 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9177 else 9178 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9179 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9180 fi 9181 ;; 9182 9183 sysv5* | sco3.2v5* | sco5v6*) 9184 # Note: We can NOT use -z defs as we might desire, because we do not 9185 # link with -lc, and that would cause any symbols used from libc to 9186 # always be unresolved, which means just about no library would 9187 # ever link correctly. If we're not using GNU ld we use -z text 9188 # though, which does catch some bad symbols but isn't as heavy-handed 9189 # as -z defs. 9190 no_undefined_flag='${wl}-z,text' 9191 allow_undefined_flag='${wl}-z,nodefs' 9192 archive_cmds_need_lc=no 9193 hardcode_shlibpath_var=no 9194 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9195 hardcode_libdir_separator=':' 9196 link_all_deplibs=yes 9197 export_dynamic_flag_spec='${wl}-Bexport' 9198 runpath_var='LD_RUN_PATH' 9199 9200 if test "$GCC" = yes; then 9201 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9202 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9203 else 9204 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9205 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9206 fi 9207 ;; 9208 9209 uts4*) 9210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9211 hardcode_libdir_flag_spec='-L$libdir' 9212 hardcode_shlibpath_var=no 9213 ;; 9214 9215 *) 9216 ld_shlibs=no 9217 ;; 9218 esac 9219 fi 9220 9221{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9222echo "${ECHO_T}$ld_shlibs" >&6; } 9223test "$ld_shlibs" = no && can_build_shared=no 9224 9225# 9226# Do we need to explicitly link libc? 9227# 9228case "x$archive_cmds_need_lc" in 9229x|xyes) 9230 # Assume -lc should be added 9231 archive_cmds_need_lc=yes 9232 9233 if test "$enable_shared" = yes && test "$GCC" = yes; then 9234 case $archive_cmds in 9235 *'~'*) 9236 # FIXME: we may have to deal with multi-command sequences. 9237 ;; 9238 '$CC '*) 9239 # Test whether the compiler implicitly links with -lc since on some 9240 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9241 # to ld, don't add -lc before -lgcc. 9242 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9243echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9244 $rm conftest* 9245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9246 9247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9248 (eval $ac_compile) 2>&5 9249 ac_status=$? 9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9251 (exit $ac_status); } 2>conftest.err; then 9252 soname=conftest 9253 lib=conftest 9254 libobjs=conftest.$ac_objext 9255 deplibs= 9256 wl=$lt_prog_compiler_wl 9257 pic_flag=$lt_prog_compiler_pic 9258 compiler_flags=-v 9259 linker_flags=-v 9260 verstring= 9261 output_objdir=. 9262 libname=conftest 9263 lt_save_allow_undefined_flag=$allow_undefined_flag 9264 allow_undefined_flag= 9265 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9266 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9267 ac_status=$? 9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9269 (exit $ac_status); } 9270 then 9271 archive_cmds_need_lc=no 9272 else 9273 archive_cmds_need_lc=yes 9274 fi 9275 allow_undefined_flag=$lt_save_allow_undefined_flag 9276 else 9277 cat conftest.err 1>&5 9278 fi 9279 $rm conftest* 9280 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9281echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9282 ;; 9283 esac 9284 fi 9285 ;; 9286esac 9287 9288{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9289echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9290library_names_spec= 9291libname_spec='lib$name' 9292soname_spec= 9293shrext_cmds=".so" 9294postinstall_cmds= 9295postuninstall_cmds= 9296finish_cmds= 9297finish_eval= 9298shlibpath_var= 9299shlibpath_overrides_runpath=unknown 9300version_type=none 9301dynamic_linker="$host_os ld.so" 9302sys_lib_dlsearch_path_spec="/lib /usr/lib" 9303if test "$GCC" = yes; then 9304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9305 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9306 # if the path contains ";" then we assume it to be the separator 9307 # otherwise default to the standard path separator (i.e. ":") - it is 9308 # assumed that no part of a normal pathname contains ";" but that should 9309 # okay in the real world where ";" in dirpaths is itself problematic. 9310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9311 else 9312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9313 fi 9314else 9315 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9316fi 9317need_lib_prefix=unknown 9318hardcode_into_libs=no 9319 9320# when you set need_version to no, make sure it does not cause -set_version 9321# flags to be left without arguments 9322need_version=unknown 9323 9324case $host_os in 9325aix3*) 9326 version_type=linux 9327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9328 shlibpath_var=LIBPATH 9329 9330 # AIX 3 has no versioning support, so we append a major version to the name. 9331 soname_spec='${libname}${release}${shared_ext}$major' 9332 ;; 9333 9334aix4* | aix5*) 9335 version_type=linux 9336 need_lib_prefix=no 9337 need_version=no 9338 hardcode_into_libs=yes 9339 if test "$host_cpu" = ia64; then 9340 # AIX 5 supports IA64 9341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9342 shlibpath_var=LD_LIBRARY_PATH 9343 else 9344 # With GCC up to 2.95.x, collect2 would create an import file 9345 # for dependence libraries. The import file would start with 9346 # the line `#! .'. This would cause the generated library to 9347 # depend on `.', always an invalid library. This was fixed in 9348 # development snapshots of GCC prior to 3.0. 9349 case $host_os in 9350 aix4 | aix4.[01] | aix4.[01].*) 9351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9352 echo ' yes ' 9353 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9354 : 9355 else 9356 can_build_shared=no 9357 fi 9358 ;; 9359 esac 9360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9361 # soname into executable. Probably we can add versioning support to 9362 # collect2, so additional links can be useful in future. 9363 if test "$aix_use_runtimelinking" = yes; then 9364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9365 # instead of lib<name>.a to let people know that these are not 9366 # typical AIX shared libraries. 9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9368 else 9369 # We preserve .a as extension for shared libraries through AIX4.2 9370 # and later when we are not doing run time linking. 9371 library_names_spec='${libname}${release}.a $libname.a' 9372 soname_spec='${libname}${release}${shared_ext}$major' 9373 fi 9374 shlibpath_var=LIBPATH 9375 fi 9376 ;; 9377 9378amigaos*) 9379 library_names_spec='$libname.ixlibrary $libname.a' 9380 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9381 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' 9382 ;; 9383 9384beos*) 9385 library_names_spec='${libname}${shared_ext}' 9386 dynamic_linker="$host_os ld.so" 9387 shlibpath_var=LIBRARY_PATH 9388 ;; 9389 9390bsdi[45]*) 9391 version_type=linux 9392 need_version=no 9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9394 soname_spec='${libname}${release}${shared_ext}$major' 9395 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9396 shlibpath_var=LD_LIBRARY_PATH 9397 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9398 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9399 # the default ld.so.conf also contains /usr/contrib/lib and 9400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9401 # libtool to hard-code these into programs 9402 ;; 9403 9404cygwin* | mingw* | pw32*) 9405 version_type=windows 9406 shrext_cmds=".dll" 9407 need_version=no 9408 need_lib_prefix=no 9409 9410 case $GCC,$host_os in 9411 yes,cygwin* | yes,mingw* | yes,pw32*) 9412 library_names_spec='$libname.dll.a' 9413 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9414 postinstall_cmds='base_file=`basename \${file}`~ 9415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9416 dldir=$destdir/`dirname \$dlpath`~ 9417 test -d \$dldir || mkdir -p \$dldir~ 9418 $install_prog $dir/$dlname \$dldir/$dlname~ 9419 chmod a+x \$dldir/$dlname' 9420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9421 dlpath=$dir/\$dldll~ 9422 $rm \$dlpath' 9423 shlibpath_overrides_runpath=yes 9424 9425 case $host_os in 9426 cygwin*) 9427 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9429 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9430 ;; 9431 mingw*) 9432 # MinGW DLLs use traditional 'lib' prefix 9433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9434 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9435 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9436 # It is most probably a Windows format PATH printed by 9437 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9438 # path with ; separators, and with drive letters. We can handle the 9439 # drive letters (cygwin fileutils understands them), so leave them, 9440 # especially as we might pass files found there to a mingw objdump, 9441 # which wouldn't understand a cygwinified path. Ahh. 9442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9443 else 9444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9445 fi 9446 ;; 9447 pw32*) 9448 # pw32 DLLs use 'pw' prefix rather than 'lib' 9449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9450 ;; 9451 esac 9452 ;; 9453 9454 *) 9455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9456 ;; 9457 esac 9458 dynamic_linker='Win32 ld.exe' 9459 # FIXME: first we should search . and the directory the executable is in 9460 shlibpath_var=PATH 9461 ;; 9462 9463darwin* | rhapsody*) 9464 dynamic_linker="$host_os dyld" 9465 version_type=darwin 9466 need_lib_prefix=no 9467 need_version=no 9468 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9469 soname_spec='${libname}${release}${major}$shared_ext' 9470 shlibpath_overrides_runpath=yes 9471 shlibpath_var=DYLD_LIBRARY_PATH 9472 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9473 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9474 if test "$GCC" = yes; then 9475 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"` 9476 else 9477 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9478 fi 9479 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9480 ;; 9481 9482dgux*) 9483 version_type=linux 9484 need_lib_prefix=no 9485 need_version=no 9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9487 soname_spec='${libname}${release}${shared_ext}$major' 9488 shlibpath_var=LD_LIBRARY_PATH 9489 ;; 9490 9491freebsd1*) 9492 dynamic_linker=no 9493 ;; 9494 9495freebsd* | dragonfly*) 9496 # DragonFly does not have aout. When/if they implement a new 9497 # versioning mechanism, adjust this. 9498 if test -x /usr/bin/objformat; then 9499 objformat=`/usr/bin/objformat` 9500 else 9501 case $host_os in 9502 freebsd[123]*) objformat=aout ;; 9503 *) objformat=elf ;; 9504 esac 9505 fi 9506 version_type=freebsd-$objformat 9507 case $version_type in 9508 freebsd-elf*) 9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9510 need_version=no 9511 need_lib_prefix=no 9512 ;; 9513 freebsd-*) 9514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9515 need_version=yes 9516 ;; 9517 esac 9518 shlibpath_var=LD_LIBRARY_PATH 9519 case $host_os in 9520 freebsd2*) 9521 shlibpath_overrides_runpath=yes 9522 ;; 9523 freebsd3.[01]* | freebsdelf3.[01]*) 9524 shlibpath_overrides_runpath=yes 9525 hardcode_into_libs=yes 9526 ;; 9527 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9528 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9529 shlibpath_overrides_runpath=no 9530 hardcode_into_libs=yes 9531 ;; 9532 freebsd*) # from 4.6 on 9533 shlibpath_overrides_runpath=yes 9534 hardcode_into_libs=yes 9535 ;; 9536 esac 9537 ;; 9538 9539gnu*) 9540 version_type=linux 9541 need_lib_prefix=no 9542 need_version=no 9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9544 soname_spec='${libname}${release}${shared_ext}$major' 9545 shlibpath_var=LD_LIBRARY_PATH 9546 hardcode_into_libs=yes 9547 ;; 9548 9549hpux9* | hpux10* | hpux11*) 9550 # Give a soname corresponding to the major version so that dld.sl refuses to 9551 # link against other versions. 9552 version_type=sunos 9553 need_lib_prefix=no 9554 need_version=no 9555 case $host_cpu in 9556 ia64*) 9557 shrext_cmds='.so' 9558 hardcode_into_libs=yes 9559 dynamic_linker="$host_os dld.so" 9560 shlibpath_var=LD_LIBRARY_PATH 9561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9563 soname_spec='${libname}${release}${shared_ext}$major' 9564 if test "X$HPUX_IA64_MODE" = X32; then 9565 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9566 else 9567 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9568 fi 9569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9570 ;; 9571 hppa*64*) 9572 shrext_cmds='.sl' 9573 hardcode_into_libs=yes 9574 dynamic_linker="$host_os dld.sl" 9575 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9578 soname_spec='${libname}${release}${shared_ext}$major' 9579 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9581 ;; 9582 *) 9583 shrext_cmds='.sl' 9584 dynamic_linker="$host_os dld.sl" 9585 shlibpath_var=SHLIB_PATH 9586 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9588 soname_spec='${libname}${release}${shared_ext}$major' 9589 ;; 9590 esac 9591 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9592 postinstall_cmds='chmod 555 $lib' 9593 ;; 9594 9595interix3*) 9596 version_type=linux 9597 need_lib_prefix=no 9598 need_version=no 9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9600 soname_spec='${libname}${release}${shared_ext}$major' 9601 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9602 shlibpath_var=LD_LIBRARY_PATH 9603 shlibpath_overrides_runpath=no 9604 hardcode_into_libs=yes 9605 ;; 9606 9607irix5* | irix6* | nonstopux*) 9608 case $host_os in 9609 nonstopux*) version_type=nonstopux ;; 9610 *) 9611 if test "$lt_cv_prog_gnu_ld" = yes; then 9612 version_type=linux 9613 else 9614 version_type=irix 9615 fi ;; 9616 esac 9617 need_lib_prefix=no 9618 need_version=no 9619 soname_spec='${libname}${release}${shared_ext}$major' 9620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9621 case $host_os in 9622 irix5* | nonstopux*) 9623 libsuff= shlibsuff= 9624 ;; 9625 *) 9626 case $LD in # libtool.m4 will add one of these switches to LD 9627 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9628 libsuff= shlibsuff= libmagic=32-bit;; 9629 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9630 libsuff=32 shlibsuff=N32 libmagic=N32;; 9631 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9632 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9633 *) libsuff= shlibsuff= libmagic=never-match;; 9634 esac 9635 ;; 9636 esac 9637 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9638 shlibpath_overrides_runpath=no 9639 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9640 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9641 hardcode_into_libs=yes 9642 ;; 9643 9644# No shared lib support for Linux oldld, aout, or coff. 9645linux*oldld* | linux*aout* | linux*coff*) 9646 dynamic_linker=no 9647 ;; 9648 9649# This must be Linux ELF. 9650linux* | k*bsd*-gnu) 9651 version_type=linux 9652 need_lib_prefix=no 9653 need_version=no 9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9655 soname_spec='${libname}${release}${shared_ext}$major' 9656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9657 shlibpath_var=LD_LIBRARY_PATH 9658 shlibpath_overrides_runpath=no 9659 # This implies no fast_install, which is unacceptable. 9660 # Some rework will be needed to allow for fast_install 9661 # before this can be enabled. 9662 hardcode_into_libs=yes 9663 9664 # Append ld.so.conf contents to the search path 9665 if test -f /etc/ld.so.conf; then 9666 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' ' '` 9667 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9668 fi 9669 9670 # We used to test for /lib/ld.so.1 and disable shared libraries on 9671 # powerpc, because MkLinux only supported shared libraries with the 9672 # GNU dynamic linker. Since this was broken with cross compilers, 9673 # most powerpc-linux boxes support dynamic linking these days and 9674 # people can always --disable-shared, the test was removed, and we 9675 # assume the GNU/Linux dynamic linker is in use. 9676 dynamic_linker='GNU/Linux ld.so' 9677 ;; 9678 9679netbsdelf*-gnu) 9680 version_type=linux 9681 need_lib_prefix=no 9682 need_version=no 9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9684 soname_spec='${libname}${release}${shared_ext}$major' 9685 shlibpath_var=LD_LIBRARY_PATH 9686 shlibpath_overrides_runpath=no 9687 hardcode_into_libs=yes 9688 dynamic_linker='NetBSD ld.elf_so' 9689 ;; 9690 9691netbsd*) 9692 version_type=sunos 9693 need_lib_prefix=no 9694 need_version=no 9695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9698 dynamic_linker='NetBSD (a.out) ld.so' 9699 else 9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9701 soname_spec='${libname}${release}${shared_ext}$major' 9702 dynamic_linker='NetBSD ld.elf_so' 9703 fi 9704 shlibpath_var=LD_LIBRARY_PATH 9705 shlibpath_overrides_runpath=yes 9706 hardcode_into_libs=yes 9707 ;; 9708 9709newsos6) 9710 version_type=linux 9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9712 shlibpath_var=LD_LIBRARY_PATH 9713 shlibpath_overrides_runpath=yes 9714 ;; 9715 9716nto-qnx*) 9717 version_type=linux 9718 need_lib_prefix=no 9719 need_version=no 9720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9721 soname_spec='${libname}${release}${shared_ext}$major' 9722 shlibpath_var=LD_LIBRARY_PATH 9723 shlibpath_overrides_runpath=yes 9724 ;; 9725 9726openbsd*) 9727 version_type=sunos 9728 sys_lib_dlsearch_path_spec="/usr/lib" 9729 need_lib_prefix=no 9730 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9731 case $host_os in 9732 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9733 *) need_version=no ;; 9734 esac 9735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9737 shlibpath_var=LD_LIBRARY_PATH 9738 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9739 case $host_os in 9740 openbsd2.[89] | openbsd2.[89].*) 9741 shlibpath_overrides_runpath=no 9742 ;; 9743 *) 9744 shlibpath_overrides_runpath=yes 9745 ;; 9746 esac 9747 else 9748 shlibpath_overrides_runpath=yes 9749 fi 9750 ;; 9751 9752os2*) 9753 libname_spec='$name' 9754 shrext_cmds=".dll" 9755 need_lib_prefix=no 9756 library_names_spec='$libname${shared_ext} $libname.a' 9757 dynamic_linker='OS/2 ld.exe' 9758 shlibpath_var=LIBPATH 9759 ;; 9760 9761osf3* | osf4* | osf5*) 9762 version_type=osf 9763 need_lib_prefix=no 9764 need_version=no 9765 soname_spec='${libname}${release}${shared_ext}$major' 9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9767 shlibpath_var=LD_LIBRARY_PATH 9768 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9769 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9770 ;; 9771 9772solaris*) 9773 version_type=linux 9774 need_lib_prefix=no 9775 need_version=no 9776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9777 soname_spec='${libname}${release}${shared_ext}$major' 9778 shlibpath_var=LD_LIBRARY_PATH 9779 shlibpath_overrides_runpath=yes 9780 hardcode_into_libs=yes 9781 # ldd complains unless libraries are executable 9782 postinstall_cmds='chmod +x $lib' 9783 ;; 9784 9785sunos4*) 9786 version_type=sunos 9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9788 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9789 shlibpath_var=LD_LIBRARY_PATH 9790 shlibpath_overrides_runpath=yes 9791 if test "$with_gnu_ld" = yes; then 9792 need_lib_prefix=no 9793 fi 9794 need_version=yes 9795 ;; 9796 9797sysv4 | sysv4.3*) 9798 version_type=linux 9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9800 soname_spec='${libname}${release}${shared_ext}$major' 9801 shlibpath_var=LD_LIBRARY_PATH 9802 case $host_vendor in 9803 sni) 9804 shlibpath_overrides_runpath=no 9805 need_lib_prefix=no 9806 export_dynamic_flag_spec='${wl}-Blargedynsym' 9807 runpath_var=LD_RUN_PATH 9808 ;; 9809 siemens) 9810 need_lib_prefix=no 9811 ;; 9812 motorola) 9813 need_lib_prefix=no 9814 need_version=no 9815 shlibpath_overrides_runpath=no 9816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9817 ;; 9818 esac 9819 ;; 9820 9821sysv4*MP*) 9822 if test -d /usr/nec ;then 9823 version_type=linux 9824 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9825 soname_spec='$libname${shared_ext}.$major' 9826 shlibpath_var=LD_LIBRARY_PATH 9827 fi 9828 ;; 9829 9830sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9831 version_type=freebsd-elf 9832 need_lib_prefix=no 9833 need_version=no 9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9835 soname_spec='${libname}${release}${shared_ext}$major' 9836 shlibpath_var=LD_LIBRARY_PATH 9837 hardcode_into_libs=yes 9838 if test "$with_gnu_ld" = yes; then 9839 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9840 shlibpath_overrides_runpath=no 9841 else 9842 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9843 shlibpath_overrides_runpath=yes 9844 case $host_os in 9845 sco3.2v5*) 9846 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9847 ;; 9848 esac 9849 fi 9850 sys_lib_dlsearch_path_spec='/usr/lib' 9851 ;; 9852 9853uts4*) 9854 version_type=linux 9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9856 soname_spec='${libname}${release}${shared_ext}$major' 9857 shlibpath_var=LD_LIBRARY_PATH 9858 ;; 9859 9860*) 9861 dynamic_linker=no 9862 ;; 9863esac 9864{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9865echo "${ECHO_T}$dynamic_linker" >&6; } 9866test "$dynamic_linker" = no && can_build_shared=no 9867 9868variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9869if test "$GCC" = yes; then 9870 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9871fi 9872 9873{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9874echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9875hardcode_action= 9876if test -n "$hardcode_libdir_flag_spec" || \ 9877 test -n "$runpath_var" || \ 9878 test "X$hardcode_automatic" = "Xyes" ; then 9879 9880 # We can hardcode non-existant directories. 9881 if test "$hardcode_direct" != no && 9882 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9883 # have to relink, otherwise we might link with an installed library 9884 # when we should be linking with a yet-to-be-installed one 9885 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9886 test "$hardcode_minus_L" != no; then 9887 # Linking always hardcodes the temporary library directory. 9888 hardcode_action=relink 9889 else 9890 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9891 hardcode_action=immediate 9892 fi 9893else 9894 # We cannot hardcode anything, or else we can only hardcode existing 9895 # directories. 9896 hardcode_action=unsupported 9897fi 9898{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9899echo "${ECHO_T}$hardcode_action" >&6; } 9900 9901if test "$hardcode_action" = relink; then 9902 # Fast installation is not supported 9903 enable_fast_install=no 9904elif test "$shlibpath_overrides_runpath" = yes || 9905 test "$enable_shared" = no; then 9906 # Fast installation is not necessary 9907 enable_fast_install=needless 9908fi 9909 9910striplib= 9911old_striplib= 9912{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9913echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9914if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9915 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9916 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9917 { echo "$as_me:$LINENO: result: yes" >&5 9918echo "${ECHO_T}yes" >&6; } 9919else 9920# FIXME - insert some real tests, host_os isn't really good enough 9921 case $host_os in 9922 darwin*) 9923 if test -n "$STRIP" ; then 9924 striplib="$STRIP -x" 9925 { echo "$as_me:$LINENO: result: yes" >&5 9926echo "${ECHO_T}yes" >&6; } 9927 else 9928 { echo "$as_me:$LINENO: result: no" >&5 9929echo "${ECHO_T}no" >&6; } 9930fi 9931 ;; 9932 *) 9933 { echo "$as_me:$LINENO: result: no" >&5 9934echo "${ECHO_T}no" >&6; } 9935 ;; 9936 esac 9937fi 9938 9939if test "x$enable_dlopen" != xyes; then 9940 enable_dlopen=unknown 9941 enable_dlopen_self=unknown 9942 enable_dlopen_self_static=unknown 9943else 9944 lt_cv_dlopen=no 9945 lt_cv_dlopen_libs= 9946 9947 case $host_os in 9948 beos*) 9949 lt_cv_dlopen="load_add_on" 9950 lt_cv_dlopen_libs= 9951 lt_cv_dlopen_self=yes 9952 ;; 9953 9954 mingw* | pw32*) 9955 lt_cv_dlopen="LoadLibrary" 9956 lt_cv_dlopen_libs= 9957 ;; 9958 9959 cygwin*) 9960 lt_cv_dlopen="dlopen" 9961 lt_cv_dlopen_libs= 9962 ;; 9963 9964 darwin*) 9965 # if libdl is installed we need to link against it 9966 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9967echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9968if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9969 echo $ECHO_N "(cached) $ECHO_C" >&6 9970else 9971 ac_check_lib_save_LIBS=$LIBS 9972LIBS="-ldl $LIBS" 9973cat >conftest.$ac_ext <<_ACEOF 9974/* confdefs.h. */ 9975_ACEOF 9976cat confdefs.h >>conftest.$ac_ext 9977cat >>conftest.$ac_ext <<_ACEOF 9978/* end confdefs.h. */ 9979 9980/* Override any GCC internal prototype to avoid an error. 9981 Use char because int might match the return type of a GCC 9982 builtin and then its argument prototype would still apply. */ 9983#ifdef __cplusplus 9984extern "C" 9985#endif 9986char dlopen (); 9987int 9988main () 9989{ 9990return dlopen (); 9991 ; 9992 return 0; 9993} 9994_ACEOF 9995rm -f conftest.$ac_objext conftest$ac_exeext 9996if { (ac_try="$ac_link" 9997case "(($ac_try" in 9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9999 *) ac_try_echo=$ac_try;; 10000esac 10001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10002 (eval "$ac_link") 2>conftest.er1 10003 ac_status=$? 10004 grep -v '^ *+' conftest.er1 >conftest.err 10005 rm -f conftest.er1 10006 cat conftest.err >&5 10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10008 (exit $ac_status); } && 10009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10010 { (case "(($ac_try" in 10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10012 *) ac_try_echo=$ac_try;; 10013esac 10014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10015 (eval "$ac_try") 2>&5 10016 ac_status=$? 10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10018 (exit $ac_status); }; } && 10019 { ac_try='test -s conftest$ac_exeext' 10020 { (case "(($ac_try" in 10021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10022 *) ac_try_echo=$ac_try;; 10023esac 10024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10025 (eval "$ac_try") 2>&5 10026 ac_status=$? 10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10028 (exit $ac_status); }; }; then 10029 ac_cv_lib_dl_dlopen=yes 10030else 10031 echo "$as_me: failed program was:" >&5 10032sed 's/^/| /' conftest.$ac_ext >&5 10033 10034 ac_cv_lib_dl_dlopen=no 10035fi 10036 10037rm -f core conftest.err conftest.$ac_objext \ 10038 conftest$ac_exeext conftest.$ac_ext 10039LIBS=$ac_check_lib_save_LIBS 10040fi 10041{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10042echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10043if test $ac_cv_lib_dl_dlopen = yes; then 10044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10045else 10046 10047 lt_cv_dlopen="dyld" 10048 lt_cv_dlopen_libs= 10049 lt_cv_dlopen_self=yes 10050 10051fi 10052 10053 ;; 10054 10055 *) 10056 { echo "$as_me:$LINENO: checking for shl_load" >&5 10057echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10058if test "${ac_cv_func_shl_load+set}" = set; then 10059 echo $ECHO_N "(cached) $ECHO_C" >&6 10060else 10061 cat >conftest.$ac_ext <<_ACEOF 10062/* confdefs.h. */ 10063_ACEOF 10064cat confdefs.h >>conftest.$ac_ext 10065cat >>conftest.$ac_ext <<_ACEOF 10066/* end confdefs.h. */ 10067/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10068 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10069#define shl_load innocuous_shl_load 10070 10071/* System header to define __stub macros and hopefully few prototypes, 10072 which can conflict with char shl_load (); below. 10073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10074 <limits.h> exists even on freestanding compilers. */ 10075 10076#ifdef __STDC__ 10077# include <limits.h> 10078#else 10079# include <assert.h> 10080#endif 10081 10082#undef shl_load 10083 10084/* Override any GCC internal prototype to avoid an error. 10085 Use char because int might match the return type of a GCC 10086 builtin and then its argument prototype would still apply. */ 10087#ifdef __cplusplus 10088extern "C" 10089#endif 10090char shl_load (); 10091/* The GNU C library defines this for functions which it implements 10092 to always fail with ENOSYS. Some functions are actually named 10093 something starting with __ and the normal name is an alias. */ 10094#if defined __stub_shl_load || defined __stub___shl_load 10095choke me 10096#endif 10097 10098int 10099main () 10100{ 10101return shl_load (); 10102 ; 10103 return 0; 10104} 10105_ACEOF 10106rm -f conftest.$ac_objext conftest$ac_exeext 10107if { (ac_try="$ac_link" 10108case "(($ac_try" in 10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10110 *) ac_try_echo=$ac_try;; 10111esac 10112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10113 (eval "$ac_link") 2>conftest.er1 10114 ac_status=$? 10115 grep -v '^ *+' conftest.er1 >conftest.err 10116 rm -f conftest.er1 10117 cat conftest.err >&5 10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10119 (exit $ac_status); } && 10120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10121 { (case "(($ac_try" in 10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10123 *) ac_try_echo=$ac_try;; 10124esac 10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10126 (eval "$ac_try") 2>&5 10127 ac_status=$? 10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10129 (exit $ac_status); }; } && 10130 { ac_try='test -s conftest$ac_exeext' 10131 { (case "(($ac_try" in 10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10133 *) ac_try_echo=$ac_try;; 10134esac 10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10136 (eval "$ac_try") 2>&5 10137 ac_status=$? 10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10139 (exit $ac_status); }; }; then 10140 ac_cv_func_shl_load=yes 10141else 10142 echo "$as_me: failed program was:" >&5 10143sed 's/^/| /' conftest.$ac_ext >&5 10144 10145 ac_cv_func_shl_load=no 10146fi 10147 10148rm -f core conftest.err conftest.$ac_objext \ 10149 conftest$ac_exeext conftest.$ac_ext 10150fi 10151{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10152echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10153if test $ac_cv_func_shl_load = yes; then 10154 lt_cv_dlopen="shl_load" 10155else 10156 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10157echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10158if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10159 echo $ECHO_N "(cached) $ECHO_C" >&6 10160else 10161 ac_check_lib_save_LIBS=$LIBS 10162LIBS="-ldld $LIBS" 10163cat >conftest.$ac_ext <<_ACEOF 10164/* confdefs.h. */ 10165_ACEOF 10166cat confdefs.h >>conftest.$ac_ext 10167cat >>conftest.$ac_ext <<_ACEOF 10168/* end confdefs.h. */ 10169 10170/* Override any GCC internal prototype to avoid an error. 10171 Use char because int might match the return type of a GCC 10172 builtin and then its argument prototype would still apply. */ 10173#ifdef __cplusplus 10174extern "C" 10175#endif 10176char shl_load (); 10177int 10178main () 10179{ 10180return shl_load (); 10181 ; 10182 return 0; 10183} 10184_ACEOF 10185rm -f conftest.$ac_objext conftest$ac_exeext 10186if { (ac_try="$ac_link" 10187case "(($ac_try" in 10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10189 *) ac_try_echo=$ac_try;; 10190esac 10191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10192 (eval "$ac_link") 2>conftest.er1 10193 ac_status=$? 10194 grep -v '^ *+' conftest.er1 >conftest.err 10195 rm -f conftest.er1 10196 cat conftest.err >&5 10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10198 (exit $ac_status); } && 10199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10200 { (case "(($ac_try" in 10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10202 *) ac_try_echo=$ac_try;; 10203esac 10204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10205 (eval "$ac_try") 2>&5 10206 ac_status=$? 10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10208 (exit $ac_status); }; } && 10209 { ac_try='test -s conftest$ac_exeext' 10210 { (case "(($ac_try" in 10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10212 *) ac_try_echo=$ac_try;; 10213esac 10214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10215 (eval "$ac_try") 2>&5 10216 ac_status=$? 10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10218 (exit $ac_status); }; }; then 10219 ac_cv_lib_dld_shl_load=yes 10220else 10221 echo "$as_me: failed program was:" >&5 10222sed 's/^/| /' conftest.$ac_ext >&5 10223 10224 ac_cv_lib_dld_shl_load=no 10225fi 10226 10227rm -f core conftest.err conftest.$ac_objext \ 10228 conftest$ac_exeext conftest.$ac_ext 10229LIBS=$ac_check_lib_save_LIBS 10230fi 10231{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10232echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10233if test $ac_cv_lib_dld_shl_load = yes; then 10234 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10235else 10236 { echo "$as_me:$LINENO: checking for dlopen" >&5 10237echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 10238if test "${ac_cv_func_dlopen+set}" = set; then 10239 echo $ECHO_N "(cached) $ECHO_C" >&6 10240else 10241 cat >conftest.$ac_ext <<_ACEOF 10242/* confdefs.h. */ 10243_ACEOF 10244cat confdefs.h >>conftest.$ac_ext 10245cat >>conftest.$ac_ext <<_ACEOF 10246/* end confdefs.h. */ 10247/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10248 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10249#define dlopen innocuous_dlopen 10250 10251/* System header to define __stub macros and hopefully few prototypes, 10252 which can conflict with char dlopen (); below. 10253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10254 <limits.h> exists even on freestanding compilers. */ 10255 10256#ifdef __STDC__ 10257# include <limits.h> 10258#else 10259# include <assert.h> 10260#endif 10261 10262#undef dlopen 10263 10264/* Override any GCC internal prototype to avoid an error. 10265 Use char because int might match the return type of a GCC 10266 builtin and then its argument prototype would still apply. */ 10267#ifdef __cplusplus 10268extern "C" 10269#endif 10270char dlopen (); 10271/* The GNU C library defines this for functions which it implements 10272 to always fail with ENOSYS. Some functions are actually named 10273 something starting with __ and the normal name is an alias. */ 10274#if defined __stub_dlopen || defined __stub___dlopen 10275choke me 10276#endif 10277 10278int 10279main () 10280{ 10281return dlopen (); 10282 ; 10283 return 0; 10284} 10285_ACEOF 10286rm -f conftest.$ac_objext conftest$ac_exeext 10287if { (ac_try="$ac_link" 10288case "(($ac_try" in 10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10290 *) ac_try_echo=$ac_try;; 10291esac 10292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10293 (eval "$ac_link") 2>conftest.er1 10294 ac_status=$? 10295 grep -v '^ *+' conftest.er1 >conftest.err 10296 rm -f conftest.er1 10297 cat conftest.err >&5 10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10299 (exit $ac_status); } && 10300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10301 { (case "(($ac_try" in 10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10303 *) ac_try_echo=$ac_try;; 10304esac 10305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10306 (eval "$ac_try") 2>&5 10307 ac_status=$? 10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10309 (exit $ac_status); }; } && 10310 { ac_try='test -s conftest$ac_exeext' 10311 { (case "(($ac_try" in 10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10313 *) ac_try_echo=$ac_try;; 10314esac 10315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10316 (eval "$ac_try") 2>&5 10317 ac_status=$? 10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10319 (exit $ac_status); }; }; then 10320 ac_cv_func_dlopen=yes 10321else 10322 echo "$as_me: failed program was:" >&5 10323sed 's/^/| /' conftest.$ac_ext >&5 10324 10325 ac_cv_func_dlopen=no 10326fi 10327 10328rm -f core conftest.err conftest.$ac_objext \ 10329 conftest$ac_exeext conftest.$ac_ext 10330fi 10331{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10332echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10333if test $ac_cv_func_dlopen = yes; then 10334 lt_cv_dlopen="dlopen" 10335else 10336 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10337echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10338if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10339 echo $ECHO_N "(cached) $ECHO_C" >&6 10340else 10341 ac_check_lib_save_LIBS=$LIBS 10342LIBS="-ldl $LIBS" 10343cat >conftest.$ac_ext <<_ACEOF 10344/* confdefs.h. */ 10345_ACEOF 10346cat confdefs.h >>conftest.$ac_ext 10347cat >>conftest.$ac_ext <<_ACEOF 10348/* end confdefs.h. */ 10349 10350/* Override any GCC internal prototype to avoid an error. 10351 Use char because int might match the return type of a GCC 10352 builtin and then its argument prototype would still apply. */ 10353#ifdef __cplusplus 10354extern "C" 10355#endif 10356char dlopen (); 10357int 10358main () 10359{ 10360return dlopen (); 10361 ; 10362 return 0; 10363} 10364_ACEOF 10365rm -f conftest.$ac_objext conftest$ac_exeext 10366if { (ac_try="$ac_link" 10367case "(($ac_try" in 10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10369 *) ac_try_echo=$ac_try;; 10370esac 10371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10372 (eval "$ac_link") 2>conftest.er1 10373 ac_status=$? 10374 grep -v '^ *+' conftest.er1 >conftest.err 10375 rm -f conftest.er1 10376 cat conftest.err >&5 10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10378 (exit $ac_status); } && 10379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10380 { (case "(($ac_try" in 10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10382 *) ac_try_echo=$ac_try;; 10383esac 10384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10385 (eval "$ac_try") 2>&5 10386 ac_status=$? 10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10388 (exit $ac_status); }; } && 10389 { ac_try='test -s conftest$ac_exeext' 10390 { (case "(($ac_try" in 10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10392 *) ac_try_echo=$ac_try;; 10393esac 10394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10395 (eval "$ac_try") 2>&5 10396 ac_status=$? 10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10398 (exit $ac_status); }; }; then 10399 ac_cv_lib_dl_dlopen=yes 10400else 10401 echo "$as_me: failed program was:" >&5 10402sed 's/^/| /' conftest.$ac_ext >&5 10403 10404 ac_cv_lib_dl_dlopen=no 10405fi 10406 10407rm -f core conftest.err conftest.$ac_objext \ 10408 conftest$ac_exeext conftest.$ac_ext 10409LIBS=$ac_check_lib_save_LIBS 10410fi 10411{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10412echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10413if test $ac_cv_lib_dl_dlopen = yes; then 10414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10415else 10416 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10417echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10418if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10419 echo $ECHO_N "(cached) $ECHO_C" >&6 10420else 10421 ac_check_lib_save_LIBS=$LIBS 10422LIBS="-lsvld $LIBS" 10423cat >conftest.$ac_ext <<_ACEOF 10424/* confdefs.h. */ 10425_ACEOF 10426cat confdefs.h >>conftest.$ac_ext 10427cat >>conftest.$ac_ext <<_ACEOF 10428/* end confdefs.h. */ 10429 10430/* Override any GCC internal prototype to avoid an error. 10431 Use char because int might match the return type of a GCC 10432 builtin and then its argument prototype would still apply. */ 10433#ifdef __cplusplus 10434extern "C" 10435#endif 10436char dlopen (); 10437int 10438main () 10439{ 10440return dlopen (); 10441 ; 10442 return 0; 10443} 10444_ACEOF 10445rm -f conftest.$ac_objext conftest$ac_exeext 10446if { (ac_try="$ac_link" 10447case "(($ac_try" in 10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10449 *) ac_try_echo=$ac_try;; 10450esac 10451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10452 (eval "$ac_link") 2>conftest.er1 10453 ac_status=$? 10454 grep -v '^ *+' conftest.er1 >conftest.err 10455 rm -f conftest.er1 10456 cat conftest.err >&5 10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10458 (exit $ac_status); } && 10459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10460 { (case "(($ac_try" in 10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10462 *) ac_try_echo=$ac_try;; 10463esac 10464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10465 (eval "$ac_try") 2>&5 10466 ac_status=$? 10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10468 (exit $ac_status); }; } && 10469 { ac_try='test -s conftest$ac_exeext' 10470 { (case "(($ac_try" in 10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10472 *) ac_try_echo=$ac_try;; 10473esac 10474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10475 (eval "$ac_try") 2>&5 10476 ac_status=$? 10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10478 (exit $ac_status); }; }; then 10479 ac_cv_lib_svld_dlopen=yes 10480else 10481 echo "$as_me: failed program was:" >&5 10482sed 's/^/| /' conftest.$ac_ext >&5 10483 10484 ac_cv_lib_svld_dlopen=no 10485fi 10486 10487rm -f core conftest.err conftest.$ac_objext \ 10488 conftest$ac_exeext conftest.$ac_ext 10489LIBS=$ac_check_lib_save_LIBS 10490fi 10491{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10492echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10493if test $ac_cv_lib_svld_dlopen = yes; then 10494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10495else 10496 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10497echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10498if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10499 echo $ECHO_N "(cached) $ECHO_C" >&6 10500else 10501 ac_check_lib_save_LIBS=$LIBS 10502LIBS="-ldld $LIBS" 10503cat >conftest.$ac_ext <<_ACEOF 10504/* confdefs.h. */ 10505_ACEOF 10506cat confdefs.h >>conftest.$ac_ext 10507cat >>conftest.$ac_ext <<_ACEOF 10508/* end confdefs.h. */ 10509 10510/* Override any GCC internal prototype to avoid an error. 10511 Use char because int might match the return type of a GCC 10512 builtin and then its argument prototype would still apply. */ 10513#ifdef __cplusplus 10514extern "C" 10515#endif 10516char dld_link (); 10517int 10518main () 10519{ 10520return dld_link (); 10521 ; 10522 return 0; 10523} 10524_ACEOF 10525rm -f conftest.$ac_objext conftest$ac_exeext 10526if { (ac_try="$ac_link" 10527case "(($ac_try" in 10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10529 *) ac_try_echo=$ac_try;; 10530esac 10531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10532 (eval "$ac_link") 2>conftest.er1 10533 ac_status=$? 10534 grep -v '^ *+' conftest.er1 >conftest.err 10535 rm -f conftest.er1 10536 cat conftest.err >&5 10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10538 (exit $ac_status); } && 10539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10540 { (case "(($ac_try" in 10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10542 *) ac_try_echo=$ac_try;; 10543esac 10544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10545 (eval "$ac_try") 2>&5 10546 ac_status=$? 10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10548 (exit $ac_status); }; } && 10549 { ac_try='test -s conftest$ac_exeext' 10550 { (case "(($ac_try" in 10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10552 *) ac_try_echo=$ac_try;; 10553esac 10554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10555 (eval "$ac_try") 2>&5 10556 ac_status=$? 10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10558 (exit $ac_status); }; }; then 10559 ac_cv_lib_dld_dld_link=yes 10560else 10561 echo "$as_me: failed program was:" >&5 10562sed 's/^/| /' conftest.$ac_ext >&5 10563 10564 ac_cv_lib_dld_dld_link=no 10565fi 10566 10567rm -f core conftest.err conftest.$ac_objext \ 10568 conftest$ac_exeext conftest.$ac_ext 10569LIBS=$ac_check_lib_save_LIBS 10570fi 10571{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10572echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10573if test $ac_cv_lib_dld_dld_link = yes; then 10574 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10575fi 10576 10577 10578fi 10579 10580 10581fi 10582 10583 10584fi 10585 10586 10587fi 10588 10589 10590fi 10591 10592 ;; 10593 esac 10594 10595 if test "x$lt_cv_dlopen" != xno; then 10596 enable_dlopen=yes 10597 else 10598 enable_dlopen=no 10599 fi 10600 10601 case $lt_cv_dlopen in 10602 dlopen) 10603 save_CPPFLAGS="$CPPFLAGS" 10604 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10605 10606 save_LDFLAGS="$LDFLAGS" 10607 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10608 10609 save_LIBS="$LIBS" 10610 LIBS="$lt_cv_dlopen_libs $LIBS" 10611 10612 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10613echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10614if test "${lt_cv_dlopen_self+set}" = set; then 10615 echo $ECHO_N "(cached) $ECHO_C" >&6 10616else 10617 if test "$cross_compiling" = yes; then : 10618 lt_cv_dlopen_self=cross 10619else 10620 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10621 lt_status=$lt_dlunknown 10622 cat > conftest.$ac_ext <<EOF 10623#line 10623 "configure" 10624#include "confdefs.h" 10625 10626#if HAVE_DLFCN_H 10627#include <dlfcn.h> 10628#endif 10629 10630#include <stdio.h> 10631 10632#ifdef RTLD_GLOBAL 10633# define LT_DLGLOBAL RTLD_GLOBAL 10634#else 10635# ifdef DL_GLOBAL 10636# define LT_DLGLOBAL DL_GLOBAL 10637# else 10638# define LT_DLGLOBAL 0 10639# endif 10640#endif 10641 10642/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10643 find out it does not work in some platform. */ 10644#ifndef LT_DLLAZY_OR_NOW 10645# ifdef RTLD_LAZY 10646# define LT_DLLAZY_OR_NOW RTLD_LAZY 10647# else 10648# ifdef DL_LAZY 10649# define LT_DLLAZY_OR_NOW DL_LAZY 10650# else 10651# ifdef RTLD_NOW 10652# define LT_DLLAZY_OR_NOW RTLD_NOW 10653# else 10654# ifdef DL_NOW 10655# define LT_DLLAZY_OR_NOW DL_NOW 10656# else 10657# define LT_DLLAZY_OR_NOW 0 10658# endif 10659# endif 10660# endif 10661# endif 10662#endif 10663 10664#ifdef __cplusplus 10665extern "C" void exit (int); 10666#endif 10667 10668void fnord() { int i=42;} 10669int main () 10670{ 10671 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10672 int status = $lt_dlunknown; 10673 10674 if (self) 10675 { 10676 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10677 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10678 /* dlclose (self); */ 10679 } 10680 else 10681 puts (dlerror ()); 10682 10683 exit (status); 10684} 10685EOF 10686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10687 (eval $ac_link) 2>&5 10688 ac_status=$? 10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10690 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10691 (./conftest; exit; ) >&5 2>/dev/null 10692 lt_status=$? 10693 case x$lt_status in 10694 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10695 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10696 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10697 esac 10698 else : 10699 # compilation failed 10700 lt_cv_dlopen_self=no 10701 fi 10702fi 10703rm -fr conftest* 10704 10705 10706fi 10707{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10708echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10709 10710 if test "x$lt_cv_dlopen_self" = xyes; then 10711 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10712 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10713echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10714if test "${lt_cv_dlopen_self_static+set}" = set; then 10715 echo $ECHO_N "(cached) $ECHO_C" >&6 10716else 10717 if test "$cross_compiling" = yes; then : 10718 lt_cv_dlopen_self_static=cross 10719else 10720 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10721 lt_status=$lt_dlunknown 10722 cat > conftest.$ac_ext <<EOF 10723#line 10723 "configure" 10724#include "confdefs.h" 10725 10726#if HAVE_DLFCN_H 10727#include <dlfcn.h> 10728#endif 10729 10730#include <stdio.h> 10731 10732#ifdef RTLD_GLOBAL 10733# define LT_DLGLOBAL RTLD_GLOBAL 10734#else 10735# ifdef DL_GLOBAL 10736# define LT_DLGLOBAL DL_GLOBAL 10737# else 10738# define LT_DLGLOBAL 0 10739# endif 10740#endif 10741 10742/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10743 find out it does not work in some platform. */ 10744#ifndef LT_DLLAZY_OR_NOW 10745# ifdef RTLD_LAZY 10746# define LT_DLLAZY_OR_NOW RTLD_LAZY 10747# else 10748# ifdef DL_LAZY 10749# define LT_DLLAZY_OR_NOW DL_LAZY 10750# else 10751# ifdef RTLD_NOW 10752# define LT_DLLAZY_OR_NOW RTLD_NOW 10753# else 10754# ifdef DL_NOW 10755# define LT_DLLAZY_OR_NOW DL_NOW 10756# else 10757# define LT_DLLAZY_OR_NOW 0 10758# endif 10759# endif 10760# endif 10761# endif 10762#endif 10763 10764#ifdef __cplusplus 10765extern "C" void exit (int); 10766#endif 10767 10768void fnord() { int i=42;} 10769int main () 10770{ 10771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10772 int status = $lt_dlunknown; 10773 10774 if (self) 10775 { 10776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10777 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10778 /* dlclose (self); */ 10779 } 10780 else 10781 puts (dlerror ()); 10782 10783 exit (status); 10784} 10785EOF 10786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10787 (eval $ac_link) 2>&5 10788 ac_status=$? 10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10790 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10791 (./conftest; exit; ) >&5 2>/dev/null 10792 lt_status=$? 10793 case x$lt_status in 10794 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10795 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10796 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10797 esac 10798 else : 10799 # compilation failed 10800 lt_cv_dlopen_self_static=no 10801 fi 10802fi 10803rm -fr conftest* 10804 10805 10806fi 10807{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10808echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10809 fi 10810 10811 CPPFLAGS="$save_CPPFLAGS" 10812 LDFLAGS="$save_LDFLAGS" 10813 LIBS="$save_LIBS" 10814 ;; 10815 esac 10816 10817 case $lt_cv_dlopen_self in 10818 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10819 *) enable_dlopen_self=unknown ;; 10820 esac 10821 10822 case $lt_cv_dlopen_self_static in 10823 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10824 *) enable_dlopen_self_static=unknown ;; 10825 esac 10826fi 10827 10828 10829# Report which library types will actually be built 10830{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10831echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10832{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10833echo "${ECHO_T}$can_build_shared" >&6; } 10834 10835{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10836echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10837test "$can_build_shared" = "no" && enable_shared=no 10838 10839# On AIX, shared libraries and static libraries use the same namespace, and 10840# are all built from PIC. 10841case $host_os in 10842aix3*) 10843 test "$enable_shared" = yes && enable_static=no 10844 if test -n "$RANLIB"; then 10845 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10846 postinstall_cmds='$RANLIB $lib' 10847 fi 10848 ;; 10849 10850aix4* | aix5*) 10851 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10852 test "$enable_shared" = yes && enable_static=no 10853 fi 10854 ;; 10855esac 10856{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10857echo "${ECHO_T}$enable_shared" >&6; } 10858 10859{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10860echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10861# Make sure either enable_shared or enable_static is yes. 10862test "$enable_shared" = yes || enable_static=yes 10863{ echo "$as_me:$LINENO: result: $enable_static" >&5 10864echo "${ECHO_T}$enable_static" >&6; } 10865 10866# The else clause should only fire when bootstrapping the 10867# libtool distribution, otherwise you forgot to ship ltmain.sh 10868# with your package, and you will get complaints that there are 10869# no rules to generate ltmain.sh. 10870if test -f "$ltmain"; then 10871 # See if we are running on zsh, and set the options which allow our commands through 10872 # without removal of \ escapes. 10873 if test -n "${ZSH_VERSION+set}" ; then 10874 setopt NO_GLOB_SUBST 10875 fi 10876 # Now quote all the things that may contain metacharacters while being 10877 # careful not to overquote the AC_SUBSTed values. We take copies of the 10878 # variables and quote the copies for generation of the libtool script. 10879 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10880 SED SHELL STRIP \ 10881 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10882 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10883 deplibs_check_method reload_flag reload_cmds need_locks \ 10884 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10885 lt_cv_sys_global_symbol_to_c_name_address \ 10886 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10887 old_postinstall_cmds old_postuninstall_cmds \ 10888 compiler \ 10889 CC \ 10890 LD \ 10891 lt_prog_compiler_wl \ 10892 lt_prog_compiler_pic \ 10893 lt_prog_compiler_static \ 10894 lt_prog_compiler_no_builtin_flag \ 10895 export_dynamic_flag_spec \ 10896 thread_safe_flag_spec \ 10897 whole_archive_flag_spec \ 10898 enable_shared_with_static_runtimes \ 10899 old_archive_cmds \ 10900 old_archive_from_new_cmds \ 10901 predep_objects \ 10902 postdep_objects \ 10903 predeps \ 10904 postdeps \ 10905 compiler_lib_search_path \ 10906 archive_cmds \ 10907 archive_expsym_cmds \ 10908 postinstall_cmds \ 10909 postuninstall_cmds \ 10910 old_archive_from_expsyms_cmds \ 10911 allow_undefined_flag \ 10912 no_undefined_flag \ 10913 export_symbols_cmds \ 10914 hardcode_libdir_flag_spec \ 10915 hardcode_libdir_flag_spec_ld \ 10916 hardcode_libdir_separator \ 10917 hardcode_automatic \ 10918 module_cmds \ 10919 module_expsym_cmds \ 10920 lt_cv_prog_compiler_c_o \ 10921 exclude_expsyms \ 10922 include_expsyms; do 10923 10924 case $var in 10925 old_archive_cmds | \ 10926 old_archive_from_new_cmds | \ 10927 archive_cmds | \ 10928 archive_expsym_cmds | \ 10929 module_cmds | \ 10930 module_expsym_cmds | \ 10931 old_archive_from_expsyms_cmds | \ 10932 export_symbols_cmds | \ 10933 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10934 postinstall_cmds | postuninstall_cmds | \ 10935 old_postinstall_cmds | old_postuninstall_cmds | \ 10936 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10937 # Double-quote double-evaled strings. 10938 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10939 ;; 10940 *) 10941 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10942 ;; 10943 esac 10944 done 10945 10946 case $lt_echo in 10947 *'\$0 --fallback-echo"') 10948 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10949 ;; 10950 esac 10951 10952cfgfile="${ofile}T" 10953 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10954 $rm -f "$cfgfile" 10955 { echo "$as_me:$LINENO: creating $ofile" >&5 10956echo "$as_me: creating $ofile" >&6;} 10957 10958 cat <<__EOF__ >> "$cfgfile" 10959#! $SHELL 10960 10961# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10962# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10963# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10964# 10965# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10966# Free Software Foundation, Inc. 10967# 10968# This file is part of GNU Libtool: 10969# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10970# 10971# This program is free software; you can redistribute it and/or modify 10972# it under the terms of the GNU General Public License as published by 10973# the Free Software Foundation; either version 2 of the License, or 10974# (at your option) any later version. 10975# 10976# This program is distributed in the hope that it will be useful, but 10977# WITHOUT ANY WARRANTY; without even the implied warranty of 10978# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10979# General Public License for more details. 10980# 10981# You should have received a copy of the GNU General Public License 10982# along with this program; if not, write to the Free Software 10983# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10984# 10985# As a special exception to the GNU General Public License, if you 10986# distribute this file as part of a program that contains a 10987# configuration script generated by Autoconf, you may include it under 10988# the same distribution terms that you use for the rest of that program. 10989 10990# A sed program that does not truncate output. 10991SED=$lt_SED 10992 10993# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10994Xsed="$SED -e 1s/^X//" 10995 10996# The HP-UX ksh and POSIX shell print the target directory to stdout 10997# if CDPATH is set. 10998(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10999 11000# The names of the tagged configurations supported by this script. 11001available_tags= 11002 11003# ### BEGIN LIBTOOL CONFIG 11004 11005# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11006 11007# Shell to use when invoking shell scripts. 11008SHELL=$lt_SHELL 11009 11010# Whether or not to build shared libraries. 11011build_libtool_libs=$enable_shared 11012 11013# Whether or not to build static libraries. 11014build_old_libs=$enable_static 11015 11016# Whether or not to add -lc for building shared libraries. 11017build_libtool_need_lc=$archive_cmds_need_lc 11018 11019# Whether or not to disallow shared libs when runtime libs are static 11020allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11021 11022# Whether or not to optimize for fast installation. 11023fast_install=$enable_fast_install 11024 11025# The host system. 11026host_alias=$host_alias 11027host=$host 11028host_os=$host_os 11029 11030# The build system. 11031build_alias=$build_alias 11032build=$build 11033build_os=$build_os 11034 11035# An echo program that does not interpret backslashes. 11036echo=$lt_echo 11037 11038# The archiver. 11039AR=$lt_AR 11040AR_FLAGS=$lt_AR_FLAGS 11041 11042# A C compiler. 11043LTCC=$lt_LTCC 11044 11045# LTCC compiler flags. 11046LTCFLAGS=$lt_LTCFLAGS 11047 11048# A language-specific compiler. 11049CC=$lt_compiler 11050 11051# Is the compiler the GNU C compiler? 11052with_gcc=$GCC 11053 11054# An ERE matcher. 11055EGREP=$lt_EGREP 11056 11057# The linker used to build libraries. 11058LD=$lt_LD 11059 11060# Whether we need hard or soft links. 11061LN_S=$lt_LN_S 11062 11063# A BSD-compatible nm program. 11064NM=$lt_NM 11065 11066# A symbol stripping program 11067STRIP=$lt_STRIP 11068 11069# Used to examine libraries when file_magic_cmd begins "file" 11070MAGIC_CMD=$MAGIC_CMD 11071 11072# Used on cygwin: DLL creation program. 11073DLLTOOL="$DLLTOOL" 11074 11075# Used on cygwin: object dumper. 11076OBJDUMP="$OBJDUMP" 11077 11078# Used on cygwin: assembler. 11079AS="$AS" 11080 11081# The name of the directory that contains temporary libtool files. 11082objdir=$objdir 11083 11084# How to create reloadable object files. 11085reload_flag=$lt_reload_flag 11086reload_cmds=$lt_reload_cmds 11087 11088# How to pass a linker flag through the compiler. 11089wl=$lt_lt_prog_compiler_wl 11090 11091# Object file suffix (normally "o"). 11092objext="$ac_objext" 11093 11094# Old archive suffix (normally "a"). 11095libext="$libext" 11096 11097# Shared library suffix (normally ".so"). 11098shrext_cmds='$shrext_cmds' 11099 11100# Executable file suffix (normally ""). 11101exeext="$exeext" 11102 11103# Additional compiler flags for building library objects. 11104pic_flag=$lt_lt_prog_compiler_pic 11105pic_mode=$pic_mode 11106 11107# What is the maximum length of a command? 11108max_cmd_len=$lt_cv_sys_max_cmd_len 11109 11110# Does compiler simultaneously support -c and -o options? 11111compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11112 11113# Must we lock files when doing compilation? 11114need_locks=$lt_need_locks 11115 11116# Do we need the lib prefix for modules? 11117need_lib_prefix=$need_lib_prefix 11118 11119# Do we need a version for libraries? 11120need_version=$need_version 11121 11122# Whether dlopen is supported. 11123dlopen_support=$enable_dlopen 11124 11125# Whether dlopen of programs is supported. 11126dlopen_self=$enable_dlopen_self 11127 11128# Whether dlopen of statically linked programs is supported. 11129dlopen_self_static=$enable_dlopen_self_static 11130 11131# Compiler flag to prevent dynamic linking. 11132link_static_flag=$lt_lt_prog_compiler_static 11133 11134# Compiler flag to turn off builtin functions. 11135no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11136 11137# Compiler flag to allow reflexive dlopens. 11138export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11139 11140# Compiler flag to generate shared objects directly from archives. 11141whole_archive_flag_spec=$lt_whole_archive_flag_spec 11142 11143# Compiler flag to generate thread-safe objects. 11144thread_safe_flag_spec=$lt_thread_safe_flag_spec 11145 11146# Library versioning type. 11147version_type=$version_type 11148 11149# Format of library name prefix. 11150libname_spec=$lt_libname_spec 11151 11152# List of archive names. First name is the real one, the rest are links. 11153# The last name is the one that the linker finds with -lNAME. 11154library_names_spec=$lt_library_names_spec 11155 11156# The coded name of the library, if different from the real name. 11157soname_spec=$lt_soname_spec 11158 11159# Commands used to build and install an old-style archive. 11160RANLIB=$lt_RANLIB 11161old_archive_cmds=$lt_old_archive_cmds 11162old_postinstall_cmds=$lt_old_postinstall_cmds 11163old_postuninstall_cmds=$lt_old_postuninstall_cmds 11164 11165# Create an old-style archive from a shared archive. 11166old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11167 11168# Create a temporary old-style archive to link instead of a shared archive. 11169old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11170 11171# Commands used to build and install a shared archive. 11172archive_cmds=$lt_archive_cmds 11173archive_expsym_cmds=$lt_archive_expsym_cmds 11174postinstall_cmds=$lt_postinstall_cmds 11175postuninstall_cmds=$lt_postuninstall_cmds 11176 11177# Commands used to build a loadable module (assumed same as above if empty) 11178module_cmds=$lt_module_cmds 11179module_expsym_cmds=$lt_module_expsym_cmds 11180 11181# Commands to strip libraries. 11182old_striplib=$lt_old_striplib 11183striplib=$lt_striplib 11184 11185# Dependencies to place before the objects being linked to create a 11186# shared library. 11187predep_objects=$lt_predep_objects 11188 11189# Dependencies to place after the objects being linked to create a 11190# shared library. 11191postdep_objects=$lt_postdep_objects 11192 11193# Dependencies to place before the objects being linked to create a 11194# shared library. 11195predeps=$lt_predeps 11196 11197# Dependencies to place after the objects being linked to create a 11198# shared library. 11199postdeps=$lt_postdeps 11200 11201# The library search path used internally by the compiler when linking 11202# a shared library. 11203compiler_lib_search_path=$lt_compiler_lib_search_path 11204 11205# Method to check whether dependent libraries are shared objects. 11206deplibs_check_method=$lt_deplibs_check_method 11207 11208# Command to use when deplibs_check_method == file_magic. 11209file_magic_cmd=$lt_file_magic_cmd 11210 11211# Flag that allows shared libraries with undefined symbols to be built. 11212allow_undefined_flag=$lt_allow_undefined_flag 11213 11214# Flag that forces no undefined symbols. 11215no_undefined_flag=$lt_no_undefined_flag 11216 11217# Commands used to finish a libtool library installation in a directory. 11218finish_cmds=$lt_finish_cmds 11219 11220# Same as above, but a single script fragment to be evaled but not shown. 11221finish_eval=$lt_finish_eval 11222 11223# Take the output of nm and produce a listing of raw symbols and C names. 11224global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11225 11226# Transform the output of nm in a proper C declaration 11227global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11228 11229# Transform the output of nm in a C name address pair 11230global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11231 11232# This is the shared library runtime path variable. 11233runpath_var=$runpath_var 11234 11235# This is the shared library path variable. 11236shlibpath_var=$shlibpath_var 11237 11238# Is shlibpath searched before the hard-coded library search path? 11239shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11240 11241# How to hardcode a shared library path into an executable. 11242hardcode_action=$hardcode_action 11243 11244# Whether we should hardcode library paths into libraries. 11245hardcode_into_libs=$hardcode_into_libs 11246 11247# Flag to hardcode \$libdir into a binary during linking. 11248# This must work even if \$libdir does not exist. 11249hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11250 11251# If ld is used when linking, flag to hardcode \$libdir into 11252# a binary during linking. This must work even if \$libdir does 11253# not exist. 11254hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11255 11256# Whether we need a single -rpath flag with a separated argument. 11257hardcode_libdir_separator=$lt_hardcode_libdir_separator 11258 11259# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11260# resulting binary. 11261hardcode_direct=$hardcode_direct 11262 11263# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11264# resulting binary. 11265hardcode_minus_L=$hardcode_minus_L 11266 11267# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11268# the resulting binary. 11269hardcode_shlibpath_var=$hardcode_shlibpath_var 11270 11271# Set to yes if building a shared library automatically hardcodes DIR into the library 11272# and all subsequent libraries and executables linked against it. 11273hardcode_automatic=$hardcode_automatic 11274 11275# Variables whose values should be saved in libtool wrapper scripts and 11276# restored at relink time. 11277variables_saved_for_relink="$variables_saved_for_relink" 11278 11279# Whether libtool must link a program against all its dependency libraries. 11280link_all_deplibs=$link_all_deplibs 11281 11282# Compile-time system search path for libraries 11283sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11284 11285# Run-time system search path for libraries 11286sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11287 11288# Fix the shell variable \$srcfile for the compiler. 11289fix_srcfile_path="$fix_srcfile_path" 11290 11291# Set to yes if exported symbols are required. 11292always_export_symbols=$always_export_symbols 11293 11294# The commands to list exported symbols. 11295export_symbols_cmds=$lt_export_symbols_cmds 11296 11297# The commands to extract the exported symbol list from a shared archive. 11298extract_expsyms_cmds=$lt_extract_expsyms_cmds 11299 11300# Symbols that should not be listed in the preloaded symbols. 11301exclude_expsyms=$lt_exclude_expsyms 11302 11303# Symbols that must always be exported. 11304include_expsyms=$lt_include_expsyms 11305 11306# ### END LIBTOOL CONFIG 11307 11308__EOF__ 11309 11310 11311 case $host_os in 11312 aix3*) 11313 cat <<\EOF >> "$cfgfile" 11314 11315# AIX sometimes has problems with the GCC collect2 program. For some 11316# reason, if we set the COLLECT_NAMES environment variable, the problems 11317# vanish in a puff of smoke. 11318if test "X${COLLECT_NAMES+set}" != Xset; then 11319 COLLECT_NAMES= 11320 export COLLECT_NAMES 11321fi 11322EOF 11323 ;; 11324 esac 11325 11326 # We use sed instead of cat because bash on DJGPP gets confused if 11327 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11328 # text mode, it properly converts lines to CR/LF. This bash problem 11329 # is reportedly fixed, but why not run on old versions too? 11330 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11331 11332 mv -f "$cfgfile" "$ofile" || \ 11333 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11334 chmod +x "$ofile" 11335 11336else 11337 # If there is no Makefile yet, we rely on a make rule to execute 11338 # `config.status --recheck' to rerun these tests and create the 11339 # libtool script then. 11340 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11341 if test -f "$ltmain_in"; then 11342 test -f Makefile && make "$ltmain" 11343 fi 11344fi 11345 11346 11347ac_ext=c 11348ac_cpp='$CPP $CPPFLAGS' 11349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11351ac_compiler_gnu=$ac_cv_c_compiler_gnu 11352 11353CC="$lt_save_CC" 11354 11355 11356# Check whether --with-tags was given. 11357if test "${with_tags+set}" = set; then 11358 withval=$with_tags; tagnames="$withval" 11359fi 11360 11361 11362if test -f "$ltmain" && test -n "$tagnames"; then 11363 if test ! -f "${ofile}"; then 11364 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11365echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11366 fi 11367 11368 if test -z "$LTCC"; then 11369 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11370 if test -z "$LTCC"; then 11371 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11372echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11373 else 11374 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11375echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11376 fi 11377 fi 11378 if test -z "$LTCFLAGS"; then 11379 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11380 fi 11381 11382 # Extract list of available tagged configurations in $ofile. 11383 # Note that this assumes the entire list is on one line. 11384 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11385 11386 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11387 for tagname in $tagnames; do 11388 IFS="$lt_save_ifs" 11389 # Check whether tagname contains only valid characters 11390 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11391 "") ;; 11392 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11393echo "$as_me: error: invalid tag name: $tagname" >&2;} 11394 { (exit 1); exit 1; }; } 11395 ;; 11396 esac 11397 11398 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11399 then 11400 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11401echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11402 { (exit 1); exit 1; }; } 11403 fi 11404 11405 # Update the list of available tags. 11406 if test -n "$tagname"; then 11407 echo appending configuration tag \"$tagname\" to $ofile 11408 11409 case $tagname in 11410 CXX) 11411 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11412 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11413 (test "X$CXX" != "Xg++"))) ; then 11414 ac_ext=cpp 11415ac_cpp='$CXXCPP $CPPFLAGS' 11416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11419 11420 11421 11422 11423archive_cmds_need_lc_CXX=no 11424allow_undefined_flag_CXX= 11425always_export_symbols_CXX=no 11426archive_expsym_cmds_CXX= 11427export_dynamic_flag_spec_CXX= 11428hardcode_direct_CXX=no 11429hardcode_libdir_flag_spec_CXX= 11430hardcode_libdir_flag_spec_ld_CXX= 11431hardcode_libdir_separator_CXX= 11432hardcode_minus_L_CXX=no 11433hardcode_shlibpath_var_CXX=unsupported 11434hardcode_automatic_CXX=no 11435module_cmds_CXX= 11436module_expsym_cmds_CXX= 11437link_all_deplibs_CXX=unknown 11438old_archive_cmds_CXX=$old_archive_cmds 11439no_undefined_flag_CXX= 11440whole_archive_flag_spec_CXX= 11441enable_shared_with_static_runtimes_CXX=no 11442 11443# Dependencies to place before and after the object being linked: 11444predep_objects_CXX= 11445postdep_objects_CXX= 11446predeps_CXX= 11447postdeps_CXX= 11448compiler_lib_search_path_CXX= 11449 11450# Source file extension for C++ test sources. 11451ac_ext=cpp 11452 11453# Object file extension for compiled C++ test sources. 11454objext=o 11455objext_CXX=$objext 11456 11457# Code to be used in simple compile tests 11458lt_simple_compile_test_code="int some_variable = 0;\n" 11459 11460# Code to be used in simple link tests 11461lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11462 11463# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11464 11465# If no C compiler was specified, use CC. 11466LTCC=${LTCC-"$CC"} 11467 11468# If no C compiler flags were specified, use CFLAGS. 11469LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11470 11471# Allow CC to be a program name with arguments. 11472compiler=$CC 11473 11474 11475# save warnings/boilerplate of simple test code 11476ac_outfile=conftest.$ac_objext 11477printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11478eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11479_lt_compiler_boilerplate=`cat conftest.err` 11480$rm conftest* 11481 11482ac_outfile=conftest.$ac_objext 11483printf "$lt_simple_link_test_code" >conftest.$ac_ext 11484eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11485_lt_linker_boilerplate=`cat conftest.err` 11486$rm conftest* 11487 11488 11489# Allow CC to be a program name with arguments. 11490lt_save_CC=$CC 11491lt_save_LD=$LD 11492lt_save_GCC=$GCC 11493GCC=$GXX 11494lt_save_with_gnu_ld=$with_gnu_ld 11495lt_save_path_LD=$lt_cv_path_LD 11496if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11497 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11498else 11499 $as_unset lt_cv_prog_gnu_ld 11500fi 11501if test -n "${lt_cv_path_LDCXX+set}"; then 11502 lt_cv_path_LD=$lt_cv_path_LDCXX 11503else 11504 $as_unset lt_cv_path_LD 11505fi 11506test -z "${LDCXX+set}" || LD=$LDCXX 11507CC=${CXX-"c++"} 11508compiler=$CC 11509compiler_CXX=$CC 11510for cc_temp in $compiler""; do 11511 case $cc_temp in 11512 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11513 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11514 \-*) ;; 11515 *) break;; 11516 esac 11517done 11518cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11519 11520 11521# We don't want -fno-exception wen compiling C++ code, so set the 11522# no_builtin_flag separately 11523if test "$GXX" = yes; then 11524 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11525else 11526 lt_prog_compiler_no_builtin_flag_CXX= 11527fi 11528 11529if test "$GXX" = yes; then 11530 # Set up default GNU C++ configuration 11531 11532 11533# Check whether --with-gnu-ld was given. 11534if test "${with_gnu_ld+set}" = set; then 11535 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11536else 11537 with_gnu_ld=no 11538fi 11539 11540ac_prog=ld 11541if test "$GCC" = yes; then 11542 # Check if gcc -print-prog-name=ld gives a path. 11543 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11544echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11545 case $host in 11546 *-*-mingw*) 11547 # gcc leaves a trailing carriage return which upsets mingw 11548 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11549 *) 11550 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11551 esac 11552 case $ac_prog in 11553 # Accept absolute paths. 11554 [\\/]* | ?:[\\/]*) 11555 re_direlt='/[^/][^/]*/\.\./' 11556 # Canonicalize the pathname of ld 11557 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11558 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11559 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11560 done 11561 test -z "$LD" && LD="$ac_prog" 11562 ;; 11563 "") 11564 # If it fails, then pretend we aren't using GCC. 11565 ac_prog=ld 11566 ;; 11567 *) 11568 # If it is relative, then search for the first ld in PATH. 11569 with_gnu_ld=unknown 11570 ;; 11571 esac 11572elif test "$with_gnu_ld" = yes; then 11573 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11574echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11575else 11576 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11577echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11578fi 11579if test "${lt_cv_path_LD+set}" = set; then 11580 echo $ECHO_N "(cached) $ECHO_C" >&6 11581else 11582 if test -z "$LD"; then 11583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11584 for ac_dir in $PATH; do 11585 IFS="$lt_save_ifs" 11586 test -z "$ac_dir" && ac_dir=. 11587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11588 lt_cv_path_LD="$ac_dir/$ac_prog" 11589 # Check to see if the program is GNU ld. I'd rather use --version, 11590 # but apparently some variants of GNU ld only accept -v. 11591 # Break only if it was the GNU/non-GNU ld that we prefer. 11592 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11593 *GNU* | *'with BFD'*) 11594 test "$with_gnu_ld" != no && break 11595 ;; 11596 *) 11597 test "$with_gnu_ld" != yes && break 11598 ;; 11599 esac 11600 fi 11601 done 11602 IFS="$lt_save_ifs" 11603else 11604 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11605fi 11606fi 11607 11608LD="$lt_cv_path_LD" 11609if test -n "$LD"; then 11610 { echo "$as_me:$LINENO: result: $LD" >&5 11611echo "${ECHO_T}$LD" >&6; } 11612else 11613 { echo "$as_me:$LINENO: result: no" >&5 11614echo "${ECHO_T}no" >&6; } 11615fi 11616test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11617echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11618 { (exit 1); exit 1; }; } 11619{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11620echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11621if test "${lt_cv_prog_gnu_ld+set}" = set; then 11622 echo $ECHO_N "(cached) $ECHO_C" >&6 11623else 11624 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11625case `$LD -v 2>&1 </dev/null` in 11626*GNU* | *'with BFD'*) 11627 lt_cv_prog_gnu_ld=yes 11628 ;; 11629*) 11630 lt_cv_prog_gnu_ld=no 11631 ;; 11632esac 11633fi 11634{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11635echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11636with_gnu_ld=$lt_cv_prog_gnu_ld 11637 11638 11639 11640 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11641 # archiving commands below assume that GNU ld is being used. 11642 if test "$with_gnu_ld" = yes; then 11643 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11644 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' 11645 11646 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11647 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11648 11649 # If archive_cmds runs LD, not CC, wlarc should be empty 11650 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11651 # investigate it a little bit more. (MM) 11652 wlarc='${wl}' 11653 11654 # ancient GNU ld didn't support --whole-archive et. al. 11655 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11656 grep 'no-whole-archive' > /dev/null; then 11657 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11658 else 11659 whole_archive_flag_spec_CXX= 11660 fi 11661 else 11662 with_gnu_ld=no 11663 wlarc= 11664 11665 # A generic and very simple default shared library creation 11666 # command for GNU C++ for the case where it uses the native 11667 # linker, instead of GNU ld. If possible, this setting should 11668 # overridden to take advantage of the native linker features on 11669 # the platform it is being used on. 11670 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11671 fi 11672 11673 # Commands to make compiler produce verbose output that lists 11674 # what "hidden" libraries, object files and flags are used when 11675 # linking a shared library. 11676 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11677 11678else 11679 GXX=no 11680 with_gnu_ld=no 11681 wlarc= 11682fi 11683 11684# PORTME: fill in a description of your system's C++ link characteristics 11685{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11686echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11687ld_shlibs_CXX=yes 11688case $host_os in 11689 aix3*) 11690 # FIXME: insert proper C++ library support 11691 ld_shlibs_CXX=no 11692 ;; 11693 aix4* | aix5*) 11694 if test "$host_cpu" = ia64; then 11695 # On IA64, the linker does run time linking by default, so we don't 11696 # have to do anything special. 11697 aix_use_runtimelinking=no 11698 exp_sym_flag='-Bexport' 11699 no_entry_flag="" 11700 else 11701 aix_use_runtimelinking=no 11702 11703 # Test if we are trying to use run time linking or normal 11704 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11705 # need to do runtime linking. 11706 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11707 for ld_flag in $LDFLAGS; do 11708 case $ld_flag in 11709 *-brtl*) 11710 aix_use_runtimelinking=yes 11711 break 11712 ;; 11713 esac 11714 done 11715 ;; 11716 esac 11717 11718 exp_sym_flag='-bexport' 11719 no_entry_flag='-bnoentry' 11720 fi 11721 11722 # When large executables or shared objects are built, AIX ld can 11723 # have problems creating the table of contents. If linking a library 11724 # or program results in "error TOC overflow" add -mminimal-toc to 11725 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11726 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11727 11728 archive_cmds_CXX='' 11729 hardcode_direct_CXX=yes 11730 hardcode_libdir_separator_CXX=':' 11731 link_all_deplibs_CXX=yes 11732 11733 if test "$GXX" = yes; then 11734 case $host_os in aix4.[012]|aix4.[012].*) 11735 # We only want to do this on AIX 4.2 and lower, the check 11736 # below for broken collect2 doesn't work under 4.3+ 11737 collect2name=`${CC} -print-prog-name=collect2` 11738 if test -f "$collect2name" && \ 11739 strings "$collect2name" | grep resolve_lib_name >/dev/null 11740 then 11741 # We have reworked collect2 11742 hardcode_direct_CXX=yes 11743 else 11744 # We have old collect2 11745 hardcode_direct_CXX=unsupported 11746 # It fails to find uninstalled libraries when the uninstalled 11747 # path is not listed in the libpath. Setting hardcode_minus_L 11748 # to unsupported forces relinking 11749 hardcode_minus_L_CXX=yes 11750 hardcode_libdir_flag_spec_CXX='-L$libdir' 11751 hardcode_libdir_separator_CXX= 11752 fi 11753 ;; 11754 esac 11755 shared_flag='-shared' 11756 if test "$aix_use_runtimelinking" = yes; then 11757 shared_flag="$shared_flag "'${wl}-G' 11758 fi 11759 else 11760 # not using gcc 11761 if test "$host_cpu" = ia64; then 11762 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11763 # chokes on -Wl,-G. The following line is correct: 11764 shared_flag='-G' 11765 else 11766 if test "$aix_use_runtimelinking" = yes; then 11767 shared_flag='${wl}-G' 11768 else 11769 shared_flag='${wl}-bM:SRE' 11770 fi 11771 fi 11772 fi 11773 11774 # It seems that -bexpall does not export symbols beginning with 11775 # underscore (_), so it is better to generate a list of symbols to export. 11776 always_export_symbols_CXX=yes 11777 if test "$aix_use_runtimelinking" = yes; then 11778 # Warning - without using the other runtime loading flags (-brtl), 11779 # -berok will link without error, but may produce a broken library. 11780 allow_undefined_flag_CXX='-berok' 11781 # Determine the default libpath from the value encoded in an empty executable. 11782 cat >conftest.$ac_ext <<_ACEOF 11783/* confdefs.h. */ 11784_ACEOF 11785cat confdefs.h >>conftest.$ac_ext 11786cat >>conftest.$ac_ext <<_ACEOF 11787/* end confdefs.h. */ 11788 11789int 11790main () 11791{ 11792 11793 ; 11794 return 0; 11795} 11796_ACEOF 11797rm -f conftest.$ac_objext conftest$ac_exeext 11798if { (ac_try="$ac_link" 11799case "(($ac_try" in 11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11801 *) ac_try_echo=$ac_try;; 11802esac 11803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11804 (eval "$ac_link") 2>conftest.er1 11805 ac_status=$? 11806 grep -v '^ *+' conftest.er1 >conftest.err 11807 rm -f conftest.er1 11808 cat conftest.err >&5 11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11810 (exit $ac_status); } && 11811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11812 { (case "(($ac_try" in 11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11814 *) ac_try_echo=$ac_try;; 11815esac 11816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11817 (eval "$ac_try") 2>&5 11818 ac_status=$? 11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11820 (exit $ac_status); }; } && 11821 { ac_try='test -s conftest$ac_exeext' 11822 { (case "(($ac_try" in 11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11824 *) ac_try_echo=$ac_try;; 11825esac 11826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11827 (eval "$ac_try") 2>&5 11828 ac_status=$? 11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11830 (exit $ac_status); }; }; then 11831 11832aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11833}'` 11834# Check for a 64-bit object if we didn't find anything. 11835if 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; } 11836}'`; fi 11837else 11838 echo "$as_me: failed program was:" >&5 11839sed 's/^/| /' conftest.$ac_ext >&5 11840 11841 11842fi 11843 11844rm -f core conftest.err conftest.$ac_objext \ 11845 conftest$ac_exeext conftest.$ac_ext 11846if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11847 11848 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11849 11850 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" 11851 else 11852 if test "$host_cpu" = ia64; then 11853 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11854 allow_undefined_flag_CXX="-z nodefs" 11855 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" 11856 else 11857 # Determine the default libpath from the value encoded in an empty executable. 11858 cat >conftest.$ac_ext <<_ACEOF 11859/* confdefs.h. */ 11860_ACEOF 11861cat confdefs.h >>conftest.$ac_ext 11862cat >>conftest.$ac_ext <<_ACEOF 11863/* end confdefs.h. */ 11864 11865int 11866main () 11867{ 11868 11869 ; 11870 return 0; 11871} 11872_ACEOF 11873rm -f conftest.$ac_objext conftest$ac_exeext 11874if { (ac_try="$ac_link" 11875case "(($ac_try" in 11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11877 *) ac_try_echo=$ac_try;; 11878esac 11879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11880 (eval "$ac_link") 2>conftest.er1 11881 ac_status=$? 11882 grep -v '^ *+' conftest.er1 >conftest.err 11883 rm -f conftest.er1 11884 cat conftest.err >&5 11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11886 (exit $ac_status); } && 11887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11888 { (case "(($ac_try" in 11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11890 *) ac_try_echo=$ac_try;; 11891esac 11892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11893 (eval "$ac_try") 2>&5 11894 ac_status=$? 11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11896 (exit $ac_status); }; } && 11897 { ac_try='test -s conftest$ac_exeext' 11898 { (case "(($ac_try" in 11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11900 *) ac_try_echo=$ac_try;; 11901esac 11902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11903 (eval "$ac_try") 2>&5 11904 ac_status=$? 11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11906 (exit $ac_status); }; }; then 11907 11908aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11909}'` 11910# Check for a 64-bit object if we didn't find anything. 11911if 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; } 11912}'`; fi 11913else 11914 echo "$as_me: failed program was:" >&5 11915sed 's/^/| /' conftest.$ac_ext >&5 11916 11917 11918fi 11919 11920rm -f core conftest.err conftest.$ac_objext \ 11921 conftest$ac_exeext conftest.$ac_ext 11922if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11923 11924 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11925 # Warning - without using the other run time loading flags, 11926 # -berok will link without error, but may produce a broken library. 11927 no_undefined_flag_CXX=' ${wl}-bernotok' 11928 allow_undefined_flag_CXX=' ${wl}-berok' 11929 # Exported symbols can be pulled into shared objects from archives 11930 whole_archive_flag_spec_CXX='$convenience' 11931 archive_cmds_need_lc_CXX=yes 11932 # This is similar to how AIX traditionally builds its shared libraries. 11933 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' 11934 fi 11935 fi 11936 ;; 11937 11938 beos*) 11939 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11940 allow_undefined_flag_CXX=unsupported 11941 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11942 # support --undefined. This deserves some investigation. FIXME 11943 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11944 else 11945 ld_shlibs_CXX=no 11946 fi 11947 ;; 11948 11949 chorus*) 11950 case $cc_basename in 11951 *) 11952 # FIXME: insert proper C++ library support 11953 ld_shlibs_CXX=no 11954 ;; 11955 esac 11956 ;; 11957 11958 cygwin* | mingw* | pw32*) 11959 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11960 # as there is no search path for DLLs. 11961 hardcode_libdir_flag_spec_CXX='-L$libdir' 11962 allow_undefined_flag_CXX=unsupported 11963 always_export_symbols_CXX=no 11964 enable_shared_with_static_runtimes_CXX=yes 11965 11966 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11967 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' 11968 # If the export-symbols file already is a .def file (1st line 11969 # is EXPORTS), use it as is; otherwise, prepend... 11970 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11971 cp $export_symbols $output_objdir/$soname.def; 11972 else 11973 echo EXPORTS > $output_objdir/$soname.def; 11974 cat $export_symbols >> $output_objdir/$soname.def; 11975 fi~ 11976 $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' 11977 else 11978 ld_shlibs_CXX=no 11979 fi 11980 ;; 11981 darwin* | rhapsody*) 11982 case $host_os in 11983 rhapsody* | darwin1.[012]) 11984 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11985 ;; 11986 *) # Darwin 1.3 on 11987 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11988 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11989 else 11990 case ${MACOSX_DEPLOYMENT_TARGET} in 11991 10.[012]) 11992 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11993 ;; 11994 10.*) 11995 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11996 ;; 11997 esac 11998 fi 11999 ;; 12000 esac 12001 archive_cmds_need_lc_CXX=no 12002 hardcode_direct_CXX=no 12003 hardcode_automatic_CXX=yes 12004 hardcode_shlibpath_var_CXX=unsupported 12005 whole_archive_flag_spec_CXX='' 12006 link_all_deplibs_CXX=yes 12007 12008 if test "$GXX" = yes ; then 12009 lt_int_apple_cc_single_mod=no 12010 output_verbose_link_cmd='echo' 12011 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 12012 lt_int_apple_cc_single_mod=yes 12013 fi 12014 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12015 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12016 else 12017 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' 12018 fi 12019 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12020 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12021 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12022 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}' 12023 else 12024 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}' 12025 fi 12026 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}' 12027 else 12028 case $cc_basename in 12029 xlc*) 12030 output_verbose_link_cmd='echo' 12031 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' 12032 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12033 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12034 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}' 12035 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}' 12036 ;; 12037 *) 12038 ld_shlibs_CXX=no 12039 ;; 12040 esac 12041 fi 12042 ;; 12043 12044 dgux*) 12045 case $cc_basename in 12046 ec++*) 12047 # FIXME: insert proper C++ library support 12048 ld_shlibs_CXX=no 12049 ;; 12050 ghcx*) 12051 # Green Hills C++ Compiler 12052 # FIXME: insert proper C++ library support 12053 ld_shlibs_CXX=no 12054 ;; 12055 *) 12056 # FIXME: insert proper C++ library support 12057 ld_shlibs_CXX=no 12058 ;; 12059 esac 12060 ;; 12061 freebsd[12]*) 12062 # C++ shared libraries reported to be fairly broken before switch to ELF 12063 ld_shlibs_CXX=no 12064 ;; 12065 freebsd-elf*) 12066 archive_cmds_need_lc_CXX=no 12067 ;; 12068 freebsd* | dragonfly*) 12069 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12070 # conventions 12071 ld_shlibs_CXX=yes 12072 ;; 12073 gnu*) 12074 ;; 12075 hpux9*) 12076 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12077 hardcode_libdir_separator_CXX=: 12078 export_dynamic_flag_spec_CXX='${wl}-E' 12079 hardcode_direct_CXX=yes 12080 hardcode_minus_L_CXX=yes # Not in the search PATH, 12081 # but as the default 12082 # location of the library. 12083 12084 case $cc_basename in 12085 CC*) 12086 # FIXME: insert proper C++ library support 12087 ld_shlibs_CXX=no 12088 ;; 12089 aCC*) 12090 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' 12091 # Commands to make compiler produce verbose output that lists 12092 # what "hidden" libraries, object files and flags are used when 12093 # linking a shared library. 12094 # 12095 # There doesn't appear to be a way to prevent this compiler from 12096 # explicitly linking system object files so we need to strip them 12097 # from the output so that they don't get included in the library 12098 # dependencies. 12099 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' 12100 ;; 12101 *) 12102 if test "$GXX" = yes; then 12103 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' 12104 else 12105 # FIXME: insert proper C++ library support 12106 ld_shlibs_CXX=no 12107 fi 12108 ;; 12109 esac 12110 ;; 12111 hpux10*|hpux11*) 12112 if test $with_gnu_ld = no; then 12113 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12114 hardcode_libdir_separator_CXX=: 12115 12116 case $host_cpu in 12117 hppa*64*|ia64*) 12118 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12119 ;; 12120 *) 12121 export_dynamic_flag_spec_CXX='${wl}-E' 12122 ;; 12123 esac 12124 fi 12125 case $host_cpu in 12126 hppa*64*|ia64*) 12127 hardcode_direct_CXX=no 12128 hardcode_shlibpath_var_CXX=no 12129 ;; 12130 *) 12131 hardcode_direct_CXX=yes 12132 hardcode_minus_L_CXX=yes # Not in the search PATH, 12133 # but as the default 12134 # location of the library. 12135 ;; 12136 esac 12137 12138 case $cc_basename in 12139 CC*) 12140 # FIXME: insert proper C++ library support 12141 ld_shlibs_CXX=no 12142 ;; 12143 aCC*) 12144 case $host_cpu in 12145 hppa*64*) 12146 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12147 ;; 12148 ia64*) 12149 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12150 ;; 12151 *) 12152 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12153 ;; 12154 esac 12155 # Commands to make compiler produce verbose output that lists 12156 # what "hidden" libraries, object files and flags are used when 12157 # linking a shared library. 12158 # 12159 # There doesn't appear to be a way to prevent this compiler from 12160 # explicitly linking system object files so we need to strip them 12161 # from the output so that they don't get included in the library 12162 # dependencies. 12163 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' 12164 ;; 12165 *) 12166 if test "$GXX" = yes; then 12167 if test $with_gnu_ld = no; then 12168 case $host_cpu in 12169 hppa*64*) 12170 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12171 ;; 12172 ia64*) 12173 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12174 ;; 12175 *) 12176 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' 12177 ;; 12178 esac 12179 fi 12180 else 12181 # FIXME: insert proper C++ library support 12182 ld_shlibs_CXX=no 12183 fi 12184 ;; 12185 esac 12186 ;; 12187 interix3*) 12188 hardcode_direct_CXX=no 12189 hardcode_shlibpath_var_CXX=no 12190 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12191 export_dynamic_flag_spec_CXX='${wl}-E' 12192 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12193 # Instead, shared libraries are loaded at an image base (0x10000000 by 12194 # default) and relocated if they conflict, which is a slow very memory 12195 # consuming and fragmenting process. To avoid this, we pick a random, 12196 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12197 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12198 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' 12199 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' 12200 ;; 12201 irix5* | irix6*) 12202 case $cc_basename in 12203 CC*) 12204 # SGI C++ 12205 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' 12206 12207 # Archives containing C++ object files must be created using 12208 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12209 # necessary to make sure instantiated templates are included 12210 # in the archive. 12211 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12212 ;; 12213 *) 12214 if test "$GXX" = yes; then 12215 if test "$with_gnu_ld" = no; then 12216 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' 12217 else 12218 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' 12219 fi 12220 fi 12221 link_all_deplibs_CXX=yes 12222 ;; 12223 esac 12224 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12225 hardcode_libdir_separator_CXX=: 12226 ;; 12227 linux* | k*bsd*-gnu) 12228 case $cc_basename in 12229 KCC*) 12230 # Kuck and Associates, Inc. (KAI) C++ Compiler 12231 12232 # KCC will only create a shared library if the output file 12233 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12234 # to its proper name (with version) after linking. 12235 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' 12236 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' 12237 # Commands to make compiler produce verbose output that lists 12238 # what "hidden" libraries, object files and flags are used when 12239 # linking a shared library. 12240 # 12241 # There doesn't appear to be a way to prevent this compiler from 12242 # explicitly linking system object files so we need to strip them 12243 # from the output so that they don't get included in the library 12244 # dependencies. 12245 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' 12246 12247 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12248 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12249 12250 # Archives containing C++ object files must be created using 12251 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12252 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12253 ;; 12254 icpc*) 12255 # Intel C++ 12256 with_gnu_ld=yes 12257 # version 8.0 and above of icpc choke on multiply defined symbols 12258 # if we add $predep_objects and $postdep_objects, however 7.1 and 12259 # earlier do not add the objects themselves. 12260 case `$CC -V 2>&1` in 12261 *"Version 7."*) 12262 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12263 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' 12264 ;; 12265 *) # Version 8.0 or newer 12266 tmp_idyn= 12267 case $host_cpu in 12268 ia64*) tmp_idyn=' -i_dynamic';; 12269 esac 12270 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12271 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' 12272 ;; 12273 esac 12274 archive_cmds_need_lc_CXX=no 12275 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12276 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12277 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12278 ;; 12279 pgCC*) 12280 # Portland Group C++ compiler 12281 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12282 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' 12283 12284 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12285 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12286 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' 12287 ;; 12288 cxx*) 12289 # Compaq C++ 12290 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12291 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' 12292 12293 runpath_var=LD_RUN_PATH 12294 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12295 hardcode_libdir_separator_CXX=: 12296 12297 # Commands to make compiler produce verbose output that lists 12298 # what "hidden" libraries, object files and flags are used when 12299 # linking a shared library. 12300 # 12301 # There doesn't appear to be a way to prevent this compiler from 12302 # explicitly linking system object files so we need to strip them 12303 # from the output so that they don't get included in the library 12304 # dependencies. 12305 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' 12306 ;; 12307 esac 12308 ;; 12309 lynxos*) 12310 # FIXME: insert proper C++ library support 12311 ld_shlibs_CXX=no 12312 ;; 12313 m88k*) 12314 # FIXME: insert proper C++ library support 12315 ld_shlibs_CXX=no 12316 ;; 12317 mvs*) 12318 case $cc_basename in 12319 cxx*) 12320 # FIXME: insert proper C++ library support 12321 ld_shlibs_CXX=no 12322 ;; 12323 *) 12324 # FIXME: insert proper C++ library support 12325 ld_shlibs_CXX=no 12326 ;; 12327 esac 12328 ;; 12329 netbsd* | netbsdelf*-gnu) 12330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12331 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12332 wlarc= 12333 hardcode_libdir_flag_spec_CXX='-R$libdir' 12334 hardcode_direct_CXX=yes 12335 hardcode_shlibpath_var_CXX=no 12336 fi 12337 # Workaround some broken pre-1.5 toolchains 12338 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12339 ;; 12340 openbsd2*) 12341 # C++ shared libraries are fairly broken 12342 ld_shlibs_CXX=no 12343 ;; 12344 openbsd*) 12345 hardcode_direct_CXX=yes 12346 hardcode_shlibpath_var_CXX=no 12347 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12348 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12350 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12351 export_dynamic_flag_spec_CXX='${wl}-E' 12352 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12353 fi 12354 output_verbose_link_cmd='echo' 12355 ;; 12356 osf3*) 12357 case $cc_basename in 12358 KCC*) 12359 # Kuck and Associates, Inc. (KAI) C++ Compiler 12360 12361 # KCC will only create a shared library if the output file 12362 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12363 # to its proper name (with version) after linking. 12364 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' 12365 12366 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12367 hardcode_libdir_separator_CXX=: 12368 12369 # Archives containing C++ object files must be created using 12370 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12371 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12372 12373 ;; 12374 RCC*) 12375 # Rational C++ 2.4.1 12376 # FIXME: insert proper C++ library support 12377 ld_shlibs_CXX=no 12378 ;; 12379 cxx*) 12380 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12381 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' 12382 12383 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12384 hardcode_libdir_separator_CXX=: 12385 12386 # Commands to make compiler produce verbose output that lists 12387 # what "hidden" libraries, object files and flags are used when 12388 # linking a shared library. 12389 # 12390 # There doesn't appear to be a way to prevent this compiler from 12391 # explicitly linking system object files so we need to strip them 12392 # from the output so that they don't get included in the library 12393 # dependencies. 12394 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' 12395 ;; 12396 *) 12397 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12398 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12399 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' 12400 12401 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12402 hardcode_libdir_separator_CXX=: 12403 12404 # Commands to make compiler produce verbose output that lists 12405 # what "hidden" libraries, object files and flags are used when 12406 # linking a shared library. 12407 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12408 12409 else 12410 # FIXME: insert proper C++ library support 12411 ld_shlibs_CXX=no 12412 fi 12413 ;; 12414 esac 12415 ;; 12416 osf4* | osf5*) 12417 case $cc_basename in 12418 KCC*) 12419 # Kuck and Associates, Inc. (KAI) C++ Compiler 12420 12421 # KCC will only create a shared library if the output file 12422 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12423 # to its proper name (with version) after linking. 12424 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' 12425 12426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12427 hardcode_libdir_separator_CXX=: 12428 12429 # Archives containing C++ object files must be created using 12430 # the KAI C++ compiler. 12431 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12432 ;; 12433 RCC*) 12434 # Rational C++ 2.4.1 12435 # FIXME: insert proper C++ library support 12436 ld_shlibs_CXX=no 12437 ;; 12438 cxx*) 12439 allow_undefined_flag_CXX=' -expect_unresolved \*' 12440 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' 12441 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12442 echo "-hidden">> $lib.exp~ 12443 $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~ 12444 $rm $lib.exp' 12445 12446 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12447 hardcode_libdir_separator_CXX=: 12448 12449 # Commands to make compiler produce verbose output that lists 12450 # what "hidden" libraries, object files and flags are used when 12451 # linking a shared library. 12452 # 12453 # There doesn't appear to be a way to prevent this compiler from 12454 # explicitly linking system object files so we need to strip them 12455 # from the output so that they don't get included in the library 12456 # dependencies. 12457 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' 12458 ;; 12459 *) 12460 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12461 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12462 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' 12463 12464 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12465 hardcode_libdir_separator_CXX=: 12466 12467 # Commands to make compiler produce verbose output that lists 12468 # what "hidden" libraries, object files and flags are used when 12469 # linking a shared library. 12470 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12471 12472 else 12473 # FIXME: insert proper C++ library support 12474 ld_shlibs_CXX=no 12475 fi 12476 ;; 12477 esac 12478 ;; 12479 psos*) 12480 # FIXME: insert proper C++ library support 12481 ld_shlibs_CXX=no 12482 ;; 12483 sunos4*) 12484 case $cc_basename in 12485 CC*) 12486 # Sun C++ 4.x 12487 # FIXME: insert proper C++ library support 12488 ld_shlibs_CXX=no 12489 ;; 12490 lcc*) 12491 # Lucid 12492 # FIXME: insert proper C++ library support 12493 ld_shlibs_CXX=no 12494 ;; 12495 *) 12496 # FIXME: insert proper C++ library support 12497 ld_shlibs_CXX=no 12498 ;; 12499 esac 12500 ;; 12501 solaris*) 12502 case $cc_basename in 12503 CC*) 12504 # Sun C++ 4.2, 5.x and Centerline C++ 12505 archive_cmds_need_lc_CXX=yes 12506 no_undefined_flag_CXX=' -zdefs' 12507 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12508 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12509 $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' 12510 12511 hardcode_libdir_flag_spec_CXX='-R$libdir' 12512 hardcode_shlibpath_var_CXX=no 12513 case $host_os in 12514 solaris2.[0-5] | solaris2.[0-5].*) ;; 12515 *) 12516 # The C++ compiler is used as linker so we must use $wl 12517 # flag to pass the commands to the underlying system 12518 # linker. We must also pass each convience library through 12519 # to the system linker between allextract/defaultextract. 12520 # The C++ compiler will combine linker options so we 12521 # cannot just pass the convience library names through 12522 # without $wl. 12523 # Supported since Solaris 2.6 (maybe 2.5.1?) 12524 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' 12525 ;; 12526 esac 12527 link_all_deplibs_CXX=yes 12528 12529 output_verbose_link_cmd='echo' 12530 12531 # Archives containing C++ object files must be created using 12532 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12533 # necessary to make sure instantiated templates are included 12534 # in the archive. 12535 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12536 ;; 12537 gcx*) 12538 # Green Hills C++ Compiler 12539 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12540 12541 # The C++ compiler must be used to create the archive. 12542 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12543 ;; 12544 *) 12545 # GNU C++ compiler with Solaris linker 12546 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12547 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12548 if $CC --version | grep -v '^2\.7' > /dev/null; then 12549 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12550 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12551 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12552 12553 # Commands to make compiler produce verbose output that lists 12554 # what "hidden" libraries, object files and flags are used when 12555 # linking a shared library. 12556 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12557 else 12558 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12559 # platform. 12560 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12561 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12562 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12563 12564 # Commands to make compiler produce verbose output that lists 12565 # what "hidden" libraries, object files and flags are used when 12566 # linking a shared library. 12567 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12568 fi 12569 12570 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12571 fi 12572 ;; 12573 esac 12574 ;; 12575 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12576 no_undefined_flag_CXX='${wl}-z,text' 12577 archive_cmds_need_lc_CXX=no 12578 hardcode_shlibpath_var_CXX=no 12579 runpath_var='LD_RUN_PATH' 12580 12581 case $cc_basename in 12582 CC*) 12583 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12584 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12585 ;; 12586 *) 12587 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12588 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12589 ;; 12590 esac 12591 ;; 12592 sysv5* | sco3.2v5* | sco5v6*) 12593 # Note: We can NOT use -z defs as we might desire, because we do not 12594 # link with -lc, and that would cause any symbols used from libc to 12595 # always be unresolved, which means just about no library would 12596 # ever link correctly. If we're not using GNU ld we use -z text 12597 # though, which does catch some bad symbols but isn't as heavy-handed 12598 # as -z defs. 12599 # For security reasons, it is highly recommended that you always 12600 # use absolute paths for naming shared libraries, and exclude the 12601 # DT_RUNPATH tag from executables and libraries. But doing so 12602 # requires that you compile everything twice, which is a pain. 12603 # So that behaviour is only enabled if SCOABSPATH is set to a 12604 # non-empty value in the environment. Most likely only useful for 12605 # creating official distributions of packages. 12606 # This is a hack until libtool officially supports absolute path 12607 # names for shared libraries. 12608 no_undefined_flag_CXX='${wl}-z,text' 12609 allow_undefined_flag_CXX='${wl}-z,nodefs' 12610 archive_cmds_need_lc_CXX=no 12611 hardcode_shlibpath_var_CXX=no 12612 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12613 hardcode_libdir_separator_CXX=':' 12614 link_all_deplibs_CXX=yes 12615 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12616 runpath_var='LD_RUN_PATH' 12617 12618 case $cc_basename in 12619 CC*) 12620 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12621 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12622 ;; 12623 *) 12624 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12625 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12626 ;; 12627 esac 12628 ;; 12629 tandem*) 12630 case $cc_basename in 12631 NCC*) 12632 # NonStop-UX NCC 3.20 12633 # FIXME: insert proper C++ library support 12634 ld_shlibs_CXX=no 12635 ;; 12636 *) 12637 # FIXME: insert proper C++ library support 12638 ld_shlibs_CXX=no 12639 ;; 12640 esac 12641 ;; 12642 vxworks*) 12643 # FIXME: insert proper C++ library support 12644 ld_shlibs_CXX=no 12645 ;; 12646 *) 12647 # FIXME: insert proper C++ library support 12648 ld_shlibs_CXX=no 12649 ;; 12650esac 12651{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12652echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12653test "$ld_shlibs_CXX" = no && can_build_shared=no 12654 12655GCC_CXX="$GXX" 12656LD_CXX="$LD" 12657 12658 12659cat > conftest.$ac_ext <<EOF 12660class Foo 12661{ 12662public: 12663 Foo (void) { a = 0; } 12664private: 12665 int a; 12666}; 12667EOF 12668 12669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12670 (eval $ac_compile) 2>&5 12671 ac_status=$? 12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12673 (exit $ac_status); }; then 12674 # Parse the compiler output and extract the necessary 12675 # objects, libraries and library flags. 12676 12677 # Sentinel used to keep track of whether or not we are before 12678 # the conftest object file. 12679 pre_test_object_deps_done=no 12680 12681 # The `*' in the case matches for architectures that use `case' in 12682 # $output_verbose_cmd can trigger glob expansion during the loop 12683 # eval without this substitution. 12684 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12685 12686 for p in `eval $output_verbose_link_cmd`; do 12687 case $p in 12688 12689 -L* | -R* | -l*) 12690 # Some compilers place space between "-{L,R}" and the path. 12691 # Remove the space. 12692 if test $p = "-L" \ 12693 || test $p = "-R"; then 12694 prev=$p 12695 continue 12696 else 12697 prev= 12698 fi 12699 12700 if test "$pre_test_object_deps_done" = no; then 12701 case $p in 12702 -L* | -R*) 12703 # Internal compiler library paths should come after those 12704 # provided the user. The postdeps already come after the 12705 # user supplied libs so there is no need to process them. 12706 if test -z "$compiler_lib_search_path_CXX"; then 12707 compiler_lib_search_path_CXX="${prev}${p}" 12708 else 12709 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12710 fi 12711 ;; 12712 # The "-l" case would never come before the object being 12713 # linked, so don't bother handling this case. 12714 esac 12715 else 12716 if test -z "$postdeps_CXX"; then 12717 postdeps_CXX="${prev}${p}" 12718 else 12719 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12720 fi 12721 fi 12722 ;; 12723 12724 *.$objext) 12725 # This assumes that the test object file only shows up 12726 # once in the compiler output. 12727 if test "$p" = "conftest.$objext"; then 12728 pre_test_object_deps_done=yes 12729 continue 12730 fi 12731 12732 if test "$pre_test_object_deps_done" = no; then 12733 if test -z "$predep_objects_CXX"; then 12734 predep_objects_CXX="$p" 12735 else 12736 predep_objects_CXX="$predep_objects_CXX $p" 12737 fi 12738 else 12739 if test -z "$postdep_objects_CXX"; then 12740 postdep_objects_CXX="$p" 12741 else 12742 postdep_objects_CXX="$postdep_objects_CXX $p" 12743 fi 12744 fi 12745 ;; 12746 12747 *) ;; # Ignore the rest. 12748 12749 esac 12750 done 12751 12752 # Clean up. 12753 rm -f a.out a.exe 12754else 12755 echo "libtool.m4: error: problem compiling CXX test program" 12756fi 12757 12758$rm -f confest.$objext 12759 12760# PORTME: override above test on systems where it is broken 12761case $host_os in 12762interix3*) 12763 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12764 # hack all around it, let's just trust "g++" to DTRT. 12765 predep_objects_CXX= 12766 postdep_objects_CXX= 12767 postdeps_CXX= 12768 ;; 12769 12770solaris*) 12771 case $cc_basename in 12772 CC*) 12773 # Adding this requires a known-good setup of shared libraries for 12774 # Sun compiler versions before 5.6, else PIC objects from an old 12775 # archive will be linked into the output, leading to subtle bugs. 12776 postdeps_CXX='-lCstd -lCrun' 12777 ;; 12778 esac 12779 ;; 12780esac 12781 12782 12783case " $postdeps_CXX " in 12784*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12785esac 12786 12787lt_prog_compiler_wl_CXX= 12788lt_prog_compiler_pic_CXX= 12789lt_prog_compiler_static_CXX= 12790 12791{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12792echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12793 12794 # C++ specific cases for pic, static, wl, etc. 12795 if test "$GXX" = yes; then 12796 lt_prog_compiler_wl_CXX='-Wl,' 12797 lt_prog_compiler_static_CXX='-static' 12798 12799 case $host_os in 12800 aix*) 12801 # All AIX code is PIC. 12802 if test "$host_cpu" = ia64; then 12803 # AIX 5 now supports IA64 processor 12804 lt_prog_compiler_static_CXX='-Bstatic' 12805 fi 12806 ;; 12807 amigaos*) 12808 # FIXME: we need at least 68020 code to build shared libraries, but 12809 # adding the `-m68020' flag to GCC prevents building anything better, 12810 # like `-m68040'. 12811 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12812 ;; 12813 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12814 # PIC is the default for these OSes. 12815 ;; 12816 mingw* | os2* | pw32*) 12817 # This hack is so that the source file can tell whether it is being 12818 # built for inclusion in a dll (and should export symbols for example). 12819 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12820 ;; 12821 darwin* | rhapsody*) 12822 # PIC is the default on this platform 12823 # Common symbols not allowed in MH_DYLIB files 12824 lt_prog_compiler_pic_CXX='-fno-common' 12825 ;; 12826 *djgpp*) 12827 # DJGPP does not support shared libraries at all 12828 lt_prog_compiler_pic_CXX= 12829 ;; 12830 interix3*) 12831 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12832 # Instead, we relocate shared libraries at runtime. 12833 ;; 12834 sysv4*MP*) 12835 if test -d /usr/nec; then 12836 lt_prog_compiler_pic_CXX=-Kconform_pic 12837 fi 12838 ;; 12839 hpux*) 12840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12841 # not for PA HP-UX. 12842 case $host_cpu in 12843 hppa*64*|ia64*) 12844 ;; 12845 *) 12846 lt_prog_compiler_pic_CXX='-fPIC' 12847 ;; 12848 esac 12849 ;; 12850 *) 12851 lt_prog_compiler_pic_CXX='-fPIC' 12852 ;; 12853 esac 12854 else 12855 case $host_os in 12856 aix4* | aix5*) 12857 # All AIX code is PIC. 12858 if test "$host_cpu" = ia64; then 12859 # AIX 5 now supports IA64 processor 12860 lt_prog_compiler_static_CXX='-Bstatic' 12861 else 12862 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12863 fi 12864 ;; 12865 chorus*) 12866 case $cc_basename in 12867 cxch68*) 12868 # Green Hills C++ Compiler 12869 # _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" 12870 ;; 12871 esac 12872 ;; 12873 darwin*) 12874 # PIC is the default on this platform 12875 # Common symbols not allowed in MH_DYLIB files 12876 case $cc_basename in 12877 xlc*) 12878 lt_prog_compiler_pic_CXX='-qnocommon' 12879 lt_prog_compiler_wl_CXX='-Wl,' 12880 ;; 12881 esac 12882 ;; 12883 dgux*) 12884 case $cc_basename in 12885 ec++*) 12886 lt_prog_compiler_pic_CXX='-KPIC' 12887 ;; 12888 ghcx*) 12889 # Green Hills C++ Compiler 12890 lt_prog_compiler_pic_CXX='-pic' 12891 ;; 12892 *) 12893 ;; 12894 esac 12895 ;; 12896 freebsd* | dragonfly*) 12897 # FreeBSD uses GNU C++ 12898 ;; 12899 hpux9* | hpux10* | hpux11*) 12900 case $cc_basename in 12901 CC*) 12902 lt_prog_compiler_wl_CXX='-Wl,' 12903 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12904 if test "$host_cpu" != ia64; then 12905 lt_prog_compiler_pic_CXX='+Z' 12906 fi 12907 ;; 12908 aCC*) 12909 lt_prog_compiler_wl_CXX='-Wl,' 12910 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12911 case $host_cpu in 12912 hppa*64*|ia64*) 12913 # +Z the default 12914 ;; 12915 *) 12916 lt_prog_compiler_pic_CXX='+Z' 12917 ;; 12918 esac 12919 ;; 12920 *) 12921 ;; 12922 esac 12923 ;; 12924 interix*) 12925 # This is c89, which is MS Visual C++ (no shared libs) 12926 # Anyone wants to do a port? 12927 ;; 12928 irix5* | irix6* | nonstopux*) 12929 case $cc_basename in 12930 CC*) 12931 lt_prog_compiler_wl_CXX='-Wl,' 12932 lt_prog_compiler_static_CXX='-non_shared' 12933 # CC pic flag -KPIC is the default. 12934 ;; 12935 *) 12936 ;; 12937 esac 12938 ;; 12939 linux* | k*bsd*-gnu) 12940 case $cc_basename in 12941 KCC*) 12942 # KAI C++ Compiler 12943 lt_prog_compiler_wl_CXX='--backend -Wl,' 12944 lt_prog_compiler_pic_CXX='-fPIC' 12945 ;; 12946 icpc* | ecpc*) 12947 # Intel C++ 12948 lt_prog_compiler_wl_CXX='-Wl,' 12949 lt_prog_compiler_pic_CXX='-KPIC' 12950 lt_prog_compiler_static_CXX='-static' 12951 ;; 12952 pgCC*) 12953 # Portland Group C++ compiler. 12954 lt_prog_compiler_wl_CXX='-Wl,' 12955 lt_prog_compiler_pic_CXX='-fpic' 12956 lt_prog_compiler_static_CXX='-Bstatic' 12957 ;; 12958 cxx*) 12959 # Compaq C++ 12960 # Make sure the PIC flag is empty. It appears that all Alpha 12961 # Linux and Compaq Tru64 Unix objects are PIC. 12962 lt_prog_compiler_pic_CXX= 12963 lt_prog_compiler_static_CXX='-non_shared' 12964 ;; 12965 *) 12966 ;; 12967 esac 12968 ;; 12969 lynxos*) 12970 ;; 12971 m88k*) 12972 ;; 12973 mvs*) 12974 case $cc_basename in 12975 cxx*) 12976 lt_prog_compiler_pic_CXX='-W c,exportall' 12977 ;; 12978 *) 12979 ;; 12980 esac 12981 ;; 12982 netbsd* | netbsdelf*-gnu) 12983 ;; 12984 osf3* | osf4* | osf5*) 12985 case $cc_basename in 12986 KCC*) 12987 lt_prog_compiler_wl_CXX='--backend -Wl,' 12988 ;; 12989 RCC*) 12990 # Rational C++ 2.4.1 12991 lt_prog_compiler_pic_CXX='-pic' 12992 ;; 12993 cxx*) 12994 # Digital/Compaq C++ 12995 lt_prog_compiler_wl_CXX='-Wl,' 12996 # Make sure the PIC flag is empty. It appears that all Alpha 12997 # Linux and Compaq Tru64 Unix objects are PIC. 12998 lt_prog_compiler_pic_CXX= 12999 lt_prog_compiler_static_CXX='-non_shared' 13000 ;; 13001 *) 13002 ;; 13003 esac 13004 ;; 13005 psos*) 13006 ;; 13007 solaris*) 13008 case $cc_basename in 13009 CC*) 13010 # Sun C++ 4.2, 5.x and Centerline C++ 13011 lt_prog_compiler_pic_CXX='-KPIC' 13012 lt_prog_compiler_static_CXX='-Bstatic' 13013 lt_prog_compiler_wl_CXX='-Qoption ld ' 13014 ;; 13015 gcx*) 13016 # Green Hills C++ Compiler 13017 lt_prog_compiler_pic_CXX='-PIC' 13018 ;; 13019 *) 13020 ;; 13021 esac 13022 ;; 13023 sunos4*) 13024 case $cc_basename in 13025 CC*) 13026 # Sun C++ 4.x 13027 lt_prog_compiler_pic_CXX='-pic' 13028 lt_prog_compiler_static_CXX='-Bstatic' 13029 ;; 13030 lcc*) 13031 # Lucid 13032 lt_prog_compiler_pic_CXX='-pic' 13033 ;; 13034 *) 13035 ;; 13036 esac 13037 ;; 13038 tandem*) 13039 case $cc_basename in 13040 NCC*) 13041 # NonStop-UX NCC 3.20 13042 lt_prog_compiler_pic_CXX='-KPIC' 13043 ;; 13044 *) 13045 ;; 13046 esac 13047 ;; 13048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13049 case $cc_basename in 13050 CC*) 13051 lt_prog_compiler_wl_CXX='-Wl,' 13052 lt_prog_compiler_pic_CXX='-KPIC' 13053 lt_prog_compiler_static_CXX='-Bstatic' 13054 ;; 13055 esac 13056 ;; 13057 vxworks*) 13058 ;; 13059 *) 13060 lt_prog_compiler_can_build_shared_CXX=no 13061 ;; 13062 esac 13063 fi 13064 13065{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13066echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 13067 13068# 13069# Check to make sure the PIC flag actually works. 13070# 13071if test -n "$lt_prog_compiler_pic_CXX"; then 13072 13073{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13074echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 13075if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13076 echo $ECHO_N "(cached) $ECHO_C" >&6 13077else 13078 lt_prog_compiler_pic_works_CXX=no 13079 ac_outfile=conftest.$ac_objext 13080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13081 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13082 # Insert the option either (1) after the last *FLAGS variable, or 13083 # (2) before a word containing "conftest.", or (3) at the end. 13084 # Note that $ac_compile itself does not contain backslashes and begins 13085 # with a dollar sign (not a hyphen), so the echo should work correctly. 13086 # The option is referenced via a variable to avoid confusing sed. 13087 lt_compile=`echo "$ac_compile" | $SED \ 13088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13090 -e 's:$: $lt_compiler_flag:'` 13091 (eval echo "\"\$as_me:13091: $lt_compile\"" >&5) 13092 (eval "$lt_compile" 2>conftest.err) 13093 ac_status=$? 13094 cat conftest.err >&5 13095 echo "$as_me:13095: \$? = $ac_status" >&5 13096 if (exit $ac_status) && test -s "$ac_outfile"; then 13097 # The compiler can only warn and ignore the option if not recognized 13098 # So say no if there are warnings other than the usual output. 13099 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13101 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13102 lt_prog_compiler_pic_works_CXX=yes 13103 fi 13104 fi 13105 $rm conftest* 13106 13107fi 13108{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 13109echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 13110 13111if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 13112 case $lt_prog_compiler_pic_CXX in 13113 "" | " "*) ;; 13114 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13115 esac 13116else 13117 lt_prog_compiler_pic_CXX= 13118 lt_prog_compiler_can_build_shared_CXX=no 13119fi 13120 13121fi 13122case $host_os in 13123 # For platforms which do not support PIC, -DPIC is meaningless: 13124 *djgpp*) 13125 lt_prog_compiler_pic_CXX= 13126 ;; 13127 *) 13128 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13129 ;; 13130esac 13131 13132# 13133# Check to make sure the static flag actually works. 13134# 13135wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13136{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13137echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13138if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 13139 echo $ECHO_N "(cached) $ECHO_C" >&6 13140else 13141 lt_prog_compiler_static_works_CXX=no 13142 save_LDFLAGS="$LDFLAGS" 13143 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13144 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13145 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13146 # The linker can only warn and ignore the option if not recognized 13147 # So say no if there are warnings 13148 if test -s conftest.err; then 13149 # Append any errors to the config.log. 13150 cat conftest.err 1>&5 13151 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13153 if diff conftest.exp conftest.er2 >/dev/null; then 13154 lt_prog_compiler_static_works_CXX=yes 13155 fi 13156 else 13157 lt_prog_compiler_static_works_CXX=yes 13158 fi 13159 fi 13160 $rm conftest* 13161 LDFLAGS="$save_LDFLAGS" 13162 13163fi 13164{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 13165echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 13166 13167if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 13168 : 13169else 13170 lt_prog_compiler_static_CXX= 13171fi 13172 13173 13174{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13175echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13176if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13177 echo $ECHO_N "(cached) $ECHO_C" >&6 13178else 13179 lt_cv_prog_compiler_c_o_CXX=no 13180 $rm -r conftest 2>/dev/null 13181 mkdir conftest 13182 cd conftest 13183 mkdir out 13184 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13185 13186 lt_compiler_flag="-o out/conftest2.$ac_objext" 13187 # Insert the option either (1) after the last *FLAGS variable, or 13188 # (2) before a word containing "conftest.", or (3) at the end. 13189 # Note that $ac_compile itself does not contain backslashes and begins 13190 # with a dollar sign (not a hyphen), so the echo should work correctly. 13191 lt_compile=`echo "$ac_compile" | $SED \ 13192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13194 -e 's:$: $lt_compiler_flag:'` 13195 (eval echo "\"\$as_me:13195: $lt_compile\"" >&5) 13196 (eval "$lt_compile" 2>out/conftest.err) 13197 ac_status=$? 13198 cat out/conftest.err >&5 13199 echo "$as_me:13199: \$? = $ac_status" >&5 13200 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13201 then 13202 # The compiler can only warn and ignore the option if not recognized 13203 # So say no if there are warnings 13204 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13205 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13206 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13207 lt_cv_prog_compiler_c_o_CXX=yes 13208 fi 13209 fi 13210 chmod u+w . 2>&5 13211 $rm conftest* 13212 # SGI C++ compiler will create directory out/ii_files/ for 13213 # template instantiation 13214 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13215 $rm out/* && rmdir out 13216 cd .. 13217 rmdir conftest 13218 $rm conftest* 13219 13220fi 13221{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13222echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 13223 13224 13225hard_links="nottested" 13226if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13227 # do not overwrite the value of need_locks provided by the user 13228 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13229echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13230 hard_links=yes 13231 $rm conftest* 13232 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13233 touch conftest.a 13234 ln conftest.a conftest.b 2>&5 || hard_links=no 13235 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13236 { echo "$as_me:$LINENO: result: $hard_links" >&5 13237echo "${ECHO_T}$hard_links" >&6; } 13238 if test "$hard_links" = no; then 13239 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13240echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13241 need_locks=warn 13242 fi 13243else 13244 need_locks=no 13245fi 13246 13247{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13248echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13249 13250 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13251 case $host_os in 13252 aix4* | aix5*) 13253 # If we're using GNU nm, then we don't want the "-C" option. 13254 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13255 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13256 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' 13257 else 13258 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' 13259 fi 13260 ;; 13261 pw32*) 13262 export_symbols_cmds_CXX="$ltdll_cmds" 13263 ;; 13264 cygwin* | mingw*) 13265 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' 13266 ;; 13267 linux* | k*bsd*-gnu) 13268 link_all_deplibs_CXX=no 13269 ;; 13270 *) 13271 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13272 ;; 13273 esac 13274 13275{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13276echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13277test "$ld_shlibs_CXX" = no && can_build_shared=no 13278 13279# 13280# Do we need to explicitly link libc? 13281# 13282case "x$archive_cmds_need_lc_CXX" in 13283x|xyes) 13284 # Assume -lc should be added 13285 archive_cmds_need_lc_CXX=yes 13286 13287 if test "$enable_shared" = yes && test "$GCC" = yes; then 13288 case $archive_cmds_CXX in 13289 *'~'*) 13290 # FIXME: we may have to deal with multi-command sequences. 13291 ;; 13292 '$CC '*) 13293 # Test whether the compiler implicitly links with -lc since on some 13294 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13295 # to ld, don't add -lc before -lgcc. 13296 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13297echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 13298 $rm conftest* 13299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13300 13301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13302 (eval $ac_compile) 2>&5 13303 ac_status=$? 13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13305 (exit $ac_status); } 2>conftest.err; then 13306 soname=conftest 13307 lib=conftest 13308 libobjs=conftest.$ac_objext 13309 deplibs= 13310 wl=$lt_prog_compiler_wl_CXX 13311 pic_flag=$lt_prog_compiler_pic_CXX 13312 compiler_flags=-v 13313 linker_flags=-v 13314 verstring= 13315 output_objdir=. 13316 libname=conftest 13317 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13318 allow_undefined_flag_CXX= 13319 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13320 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13321 ac_status=$? 13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13323 (exit $ac_status); } 13324 then 13325 archive_cmds_need_lc_CXX=no 13326 else 13327 archive_cmds_need_lc_CXX=yes 13328 fi 13329 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13330 else 13331 cat conftest.err 1>&5 13332 fi 13333 $rm conftest* 13334 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13335echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 13336 ;; 13337 esac 13338 fi 13339 ;; 13340esac 13341 13342{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13343echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13344library_names_spec= 13345libname_spec='lib$name' 13346soname_spec= 13347shrext_cmds=".so" 13348postinstall_cmds= 13349postuninstall_cmds= 13350finish_cmds= 13351finish_eval= 13352shlibpath_var= 13353shlibpath_overrides_runpath=unknown 13354version_type=none 13355dynamic_linker="$host_os ld.so" 13356sys_lib_dlsearch_path_spec="/lib /usr/lib" 13357if test "$GCC" = yes; then 13358 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13359 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13360 # if the path contains ";" then we assume it to be the separator 13361 # otherwise default to the standard path separator (i.e. ":") - it is 13362 # assumed that no part of a normal pathname contains ";" but that should 13363 # okay in the real world where ";" in dirpaths is itself problematic. 13364 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13365 else 13366 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13367 fi 13368else 13369 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13370fi 13371need_lib_prefix=unknown 13372hardcode_into_libs=no 13373 13374# when you set need_version to no, make sure it does not cause -set_version 13375# flags to be left without arguments 13376need_version=unknown 13377 13378case $host_os in 13379aix3*) 13380 version_type=linux 13381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13382 shlibpath_var=LIBPATH 13383 13384 # AIX 3 has no versioning support, so we append a major version to the name. 13385 soname_spec='${libname}${release}${shared_ext}$major' 13386 ;; 13387 13388aix4* | aix5*) 13389 version_type=linux 13390 need_lib_prefix=no 13391 need_version=no 13392 hardcode_into_libs=yes 13393 if test "$host_cpu" = ia64; then 13394 # AIX 5 supports IA64 13395 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13396 shlibpath_var=LD_LIBRARY_PATH 13397 else 13398 # With GCC up to 2.95.x, collect2 would create an import file 13399 # for dependence libraries. The import file would start with 13400 # the line `#! .'. This would cause the generated library to 13401 # depend on `.', always an invalid library. This was fixed in 13402 # development snapshots of GCC prior to 3.0. 13403 case $host_os in 13404 aix4 | aix4.[01] | aix4.[01].*) 13405 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13406 echo ' yes ' 13407 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13408 : 13409 else 13410 can_build_shared=no 13411 fi 13412 ;; 13413 esac 13414 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13415 # soname into executable. Probably we can add versioning support to 13416 # collect2, so additional links can be useful in future. 13417 if test "$aix_use_runtimelinking" = yes; then 13418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13419 # instead of lib<name>.a to let people know that these are not 13420 # typical AIX shared libraries. 13421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13422 else 13423 # We preserve .a as extension for shared libraries through AIX4.2 13424 # and later when we are not doing run time linking. 13425 library_names_spec='${libname}${release}.a $libname.a' 13426 soname_spec='${libname}${release}${shared_ext}$major' 13427 fi 13428 shlibpath_var=LIBPATH 13429 fi 13430 ;; 13431 13432amigaos*) 13433 library_names_spec='$libname.ixlibrary $libname.a' 13434 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13435 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' 13436 ;; 13437 13438beos*) 13439 library_names_spec='${libname}${shared_ext}' 13440 dynamic_linker="$host_os ld.so" 13441 shlibpath_var=LIBRARY_PATH 13442 ;; 13443 13444bsdi[45]*) 13445 version_type=linux 13446 need_version=no 13447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13448 soname_spec='${libname}${release}${shared_ext}$major' 13449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13450 shlibpath_var=LD_LIBRARY_PATH 13451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13453 # the default ld.so.conf also contains /usr/contrib/lib and 13454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13455 # libtool to hard-code these into programs 13456 ;; 13457 13458cygwin* | mingw* | pw32*) 13459 version_type=windows 13460 shrext_cmds=".dll" 13461 need_version=no 13462 need_lib_prefix=no 13463 13464 case $GCC,$host_os in 13465 yes,cygwin* | yes,mingw* | yes,pw32*) 13466 library_names_spec='$libname.dll.a' 13467 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13468 postinstall_cmds='base_file=`basename \${file}`~ 13469 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13470 dldir=$destdir/`dirname \$dlpath`~ 13471 test -d \$dldir || mkdir -p \$dldir~ 13472 $install_prog $dir/$dlname \$dldir/$dlname~ 13473 chmod a+x \$dldir/$dlname' 13474 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13475 dlpath=$dir/\$dldll~ 13476 $rm \$dlpath' 13477 shlibpath_overrides_runpath=yes 13478 13479 case $host_os in 13480 cygwin*) 13481 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13482 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13483 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13484 ;; 13485 mingw*) 13486 # MinGW DLLs use traditional 'lib' prefix 13487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13488 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13489 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13490 # It is most probably a Windows format PATH printed by 13491 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13492 # path with ; separators, and with drive letters. We can handle the 13493 # drive letters (cygwin fileutils understands them), so leave them, 13494 # especially as we might pass files found there to a mingw objdump, 13495 # which wouldn't understand a cygwinified path. Ahh. 13496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13497 else 13498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13499 fi 13500 ;; 13501 pw32*) 13502 # pw32 DLLs use 'pw' prefix rather than 'lib' 13503 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13504 ;; 13505 esac 13506 ;; 13507 13508 *) 13509 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13510 ;; 13511 esac 13512 dynamic_linker='Win32 ld.exe' 13513 # FIXME: first we should search . and the directory the executable is in 13514 shlibpath_var=PATH 13515 ;; 13516 13517darwin* | rhapsody*) 13518 dynamic_linker="$host_os dyld" 13519 version_type=darwin 13520 need_lib_prefix=no 13521 need_version=no 13522 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13523 soname_spec='${libname}${release}${major}$shared_ext' 13524 shlibpath_overrides_runpath=yes 13525 shlibpath_var=DYLD_LIBRARY_PATH 13526 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13527 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13528 if test "$GCC" = yes; then 13529 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"` 13530 else 13531 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13532 fi 13533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13534 ;; 13535 13536dgux*) 13537 version_type=linux 13538 need_lib_prefix=no 13539 need_version=no 13540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13541 soname_spec='${libname}${release}${shared_ext}$major' 13542 shlibpath_var=LD_LIBRARY_PATH 13543 ;; 13544 13545freebsd1*) 13546 dynamic_linker=no 13547 ;; 13548 13549freebsd* | dragonfly*) 13550 # DragonFly does not have aout. When/if they implement a new 13551 # versioning mechanism, adjust this. 13552 if test -x /usr/bin/objformat; then 13553 objformat=`/usr/bin/objformat` 13554 else 13555 case $host_os in 13556 freebsd[123]*) objformat=aout ;; 13557 *) objformat=elf ;; 13558 esac 13559 fi 13560 version_type=freebsd-$objformat 13561 case $version_type in 13562 freebsd-elf*) 13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13564 need_version=no 13565 need_lib_prefix=no 13566 ;; 13567 freebsd-*) 13568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13569 need_version=yes 13570 ;; 13571 esac 13572 shlibpath_var=LD_LIBRARY_PATH 13573 case $host_os in 13574 freebsd2*) 13575 shlibpath_overrides_runpath=yes 13576 ;; 13577 freebsd3.[01]* | freebsdelf3.[01]*) 13578 shlibpath_overrides_runpath=yes 13579 hardcode_into_libs=yes 13580 ;; 13581 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13582 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13583 shlibpath_overrides_runpath=no 13584 hardcode_into_libs=yes 13585 ;; 13586 freebsd*) # from 4.6 on 13587 shlibpath_overrides_runpath=yes 13588 hardcode_into_libs=yes 13589 ;; 13590 esac 13591 ;; 13592 13593gnu*) 13594 version_type=linux 13595 need_lib_prefix=no 13596 need_version=no 13597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13598 soname_spec='${libname}${release}${shared_ext}$major' 13599 shlibpath_var=LD_LIBRARY_PATH 13600 hardcode_into_libs=yes 13601 ;; 13602 13603hpux9* | hpux10* | hpux11*) 13604 # Give a soname corresponding to the major version so that dld.sl refuses to 13605 # link against other versions. 13606 version_type=sunos 13607 need_lib_prefix=no 13608 need_version=no 13609 case $host_cpu in 13610 ia64*) 13611 shrext_cmds='.so' 13612 hardcode_into_libs=yes 13613 dynamic_linker="$host_os dld.so" 13614 shlibpath_var=LD_LIBRARY_PATH 13615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13617 soname_spec='${libname}${release}${shared_ext}$major' 13618 if test "X$HPUX_IA64_MODE" = X32; then 13619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13620 else 13621 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13622 fi 13623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13624 ;; 13625 hppa*64*) 13626 shrext_cmds='.sl' 13627 hardcode_into_libs=yes 13628 dynamic_linker="$host_os dld.sl" 13629 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13632 soname_spec='${libname}${release}${shared_ext}$major' 13633 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13635 ;; 13636 *) 13637 shrext_cmds='.sl' 13638 dynamic_linker="$host_os dld.sl" 13639 shlibpath_var=SHLIB_PATH 13640 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13642 soname_spec='${libname}${release}${shared_ext}$major' 13643 ;; 13644 esac 13645 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13646 postinstall_cmds='chmod 555 $lib' 13647 ;; 13648 13649interix3*) 13650 version_type=linux 13651 need_lib_prefix=no 13652 need_version=no 13653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13654 soname_spec='${libname}${release}${shared_ext}$major' 13655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13656 shlibpath_var=LD_LIBRARY_PATH 13657 shlibpath_overrides_runpath=no 13658 hardcode_into_libs=yes 13659 ;; 13660 13661irix5* | irix6* | nonstopux*) 13662 case $host_os in 13663 nonstopux*) version_type=nonstopux ;; 13664 *) 13665 if test "$lt_cv_prog_gnu_ld" = yes; then 13666 version_type=linux 13667 else 13668 version_type=irix 13669 fi ;; 13670 esac 13671 need_lib_prefix=no 13672 need_version=no 13673 soname_spec='${libname}${release}${shared_ext}$major' 13674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13675 case $host_os in 13676 irix5* | nonstopux*) 13677 libsuff= shlibsuff= 13678 ;; 13679 *) 13680 case $LD in # libtool.m4 will add one of these switches to LD 13681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13682 libsuff= shlibsuff= libmagic=32-bit;; 13683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13684 libsuff=32 shlibsuff=N32 libmagic=N32;; 13685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13686 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13687 *) libsuff= shlibsuff= libmagic=never-match;; 13688 esac 13689 ;; 13690 esac 13691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13692 shlibpath_overrides_runpath=no 13693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13695 hardcode_into_libs=yes 13696 ;; 13697 13698# No shared lib support for Linux oldld, aout, or coff. 13699linux*oldld* | linux*aout* | linux*coff*) 13700 dynamic_linker=no 13701 ;; 13702 13703# This must be Linux ELF. 13704linux* | k*bsd*-gnu) 13705 version_type=linux 13706 need_lib_prefix=no 13707 need_version=no 13708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13709 soname_spec='${libname}${release}${shared_ext}$major' 13710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13711 shlibpath_var=LD_LIBRARY_PATH 13712 shlibpath_overrides_runpath=no 13713 # This implies no fast_install, which is unacceptable. 13714 # Some rework will be needed to allow for fast_install 13715 # before this can be enabled. 13716 hardcode_into_libs=yes 13717 13718 # Append ld.so.conf contents to the search path 13719 if test -f /etc/ld.so.conf; then 13720 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' ' '` 13721 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13722 fi 13723 13724 # We used to test for /lib/ld.so.1 and disable shared libraries on 13725 # powerpc, because MkLinux only supported shared libraries with the 13726 # GNU dynamic linker. Since this was broken with cross compilers, 13727 # most powerpc-linux boxes support dynamic linking these days and 13728 # people can always --disable-shared, the test was removed, and we 13729 # assume the GNU/Linux dynamic linker is in use. 13730 dynamic_linker='GNU/Linux ld.so' 13731 ;; 13732 13733netbsdelf*-gnu) 13734 version_type=linux 13735 need_lib_prefix=no 13736 need_version=no 13737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13738 soname_spec='${libname}${release}${shared_ext}$major' 13739 shlibpath_var=LD_LIBRARY_PATH 13740 shlibpath_overrides_runpath=no 13741 hardcode_into_libs=yes 13742 dynamic_linker='NetBSD ld.elf_so' 13743 ;; 13744 13745netbsd*) 13746 version_type=sunos 13747 need_lib_prefix=no 13748 need_version=no 13749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13752 dynamic_linker='NetBSD (a.out) ld.so' 13753 else 13754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13755 soname_spec='${libname}${release}${shared_ext}$major' 13756 dynamic_linker='NetBSD ld.elf_so' 13757 fi 13758 shlibpath_var=LD_LIBRARY_PATH 13759 shlibpath_overrides_runpath=yes 13760 hardcode_into_libs=yes 13761 ;; 13762 13763newsos6) 13764 version_type=linux 13765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13766 shlibpath_var=LD_LIBRARY_PATH 13767 shlibpath_overrides_runpath=yes 13768 ;; 13769 13770nto-qnx*) 13771 version_type=linux 13772 need_lib_prefix=no 13773 need_version=no 13774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13775 soname_spec='${libname}${release}${shared_ext}$major' 13776 shlibpath_var=LD_LIBRARY_PATH 13777 shlibpath_overrides_runpath=yes 13778 ;; 13779 13780openbsd*) 13781 version_type=sunos 13782 sys_lib_dlsearch_path_spec="/usr/lib" 13783 need_lib_prefix=no 13784 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13785 case $host_os in 13786 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13787 *) need_version=no ;; 13788 esac 13789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13791 shlibpath_var=LD_LIBRARY_PATH 13792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13793 case $host_os in 13794 openbsd2.[89] | openbsd2.[89].*) 13795 shlibpath_overrides_runpath=no 13796 ;; 13797 *) 13798 shlibpath_overrides_runpath=yes 13799 ;; 13800 esac 13801 else 13802 shlibpath_overrides_runpath=yes 13803 fi 13804 ;; 13805 13806os2*) 13807 libname_spec='$name' 13808 shrext_cmds=".dll" 13809 need_lib_prefix=no 13810 library_names_spec='$libname${shared_ext} $libname.a' 13811 dynamic_linker='OS/2 ld.exe' 13812 shlibpath_var=LIBPATH 13813 ;; 13814 13815osf3* | osf4* | osf5*) 13816 version_type=osf 13817 need_lib_prefix=no 13818 need_version=no 13819 soname_spec='${libname}${release}${shared_ext}$major' 13820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13821 shlibpath_var=LD_LIBRARY_PATH 13822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13823 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13824 ;; 13825 13826solaris*) 13827 version_type=linux 13828 need_lib_prefix=no 13829 need_version=no 13830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13831 soname_spec='${libname}${release}${shared_ext}$major' 13832 shlibpath_var=LD_LIBRARY_PATH 13833 shlibpath_overrides_runpath=yes 13834 hardcode_into_libs=yes 13835 # ldd complains unless libraries are executable 13836 postinstall_cmds='chmod +x $lib' 13837 ;; 13838 13839sunos4*) 13840 version_type=sunos 13841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13842 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13843 shlibpath_var=LD_LIBRARY_PATH 13844 shlibpath_overrides_runpath=yes 13845 if test "$with_gnu_ld" = yes; then 13846 need_lib_prefix=no 13847 fi 13848 need_version=yes 13849 ;; 13850 13851sysv4 | sysv4.3*) 13852 version_type=linux 13853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13854 soname_spec='${libname}${release}${shared_ext}$major' 13855 shlibpath_var=LD_LIBRARY_PATH 13856 case $host_vendor in 13857 sni) 13858 shlibpath_overrides_runpath=no 13859 need_lib_prefix=no 13860 export_dynamic_flag_spec='${wl}-Blargedynsym' 13861 runpath_var=LD_RUN_PATH 13862 ;; 13863 siemens) 13864 need_lib_prefix=no 13865 ;; 13866 motorola) 13867 need_lib_prefix=no 13868 need_version=no 13869 shlibpath_overrides_runpath=no 13870 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13871 ;; 13872 esac 13873 ;; 13874 13875sysv4*MP*) 13876 if test -d /usr/nec ;then 13877 version_type=linux 13878 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13879 soname_spec='$libname${shared_ext}.$major' 13880 shlibpath_var=LD_LIBRARY_PATH 13881 fi 13882 ;; 13883 13884sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13885 version_type=freebsd-elf 13886 need_lib_prefix=no 13887 need_version=no 13888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13889 soname_spec='${libname}${release}${shared_ext}$major' 13890 shlibpath_var=LD_LIBRARY_PATH 13891 hardcode_into_libs=yes 13892 if test "$with_gnu_ld" = yes; then 13893 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13894 shlibpath_overrides_runpath=no 13895 else 13896 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13897 shlibpath_overrides_runpath=yes 13898 case $host_os in 13899 sco3.2v5*) 13900 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13901 ;; 13902 esac 13903 fi 13904 sys_lib_dlsearch_path_spec='/usr/lib' 13905 ;; 13906 13907uts4*) 13908 version_type=linux 13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13910 soname_spec='${libname}${release}${shared_ext}$major' 13911 shlibpath_var=LD_LIBRARY_PATH 13912 ;; 13913 13914*) 13915 dynamic_linker=no 13916 ;; 13917esac 13918{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13919echo "${ECHO_T}$dynamic_linker" >&6; } 13920test "$dynamic_linker" = no && can_build_shared=no 13921 13922variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13923if test "$GCC" = yes; then 13924 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13925fi 13926 13927{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13928echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13929hardcode_action_CXX= 13930if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13931 test -n "$runpath_var_CXX" || \ 13932 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13933 13934 # We can hardcode non-existant directories. 13935 if test "$hardcode_direct_CXX" != no && 13936 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13937 # have to relink, otherwise we might link with an installed library 13938 # when we should be linking with a yet-to-be-installed one 13939 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13940 test "$hardcode_minus_L_CXX" != no; then 13941 # Linking always hardcodes the temporary library directory. 13942 hardcode_action_CXX=relink 13943 else 13944 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13945 hardcode_action_CXX=immediate 13946 fi 13947else 13948 # We cannot hardcode anything, or else we can only hardcode existing 13949 # directories. 13950 hardcode_action_CXX=unsupported 13951fi 13952{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13953echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13954 13955if test "$hardcode_action_CXX" = relink; then 13956 # Fast installation is not supported 13957 enable_fast_install=no 13958elif test "$shlibpath_overrides_runpath" = yes || 13959 test "$enable_shared" = no; then 13960 # Fast installation is not necessary 13961 enable_fast_install=needless 13962fi 13963 13964 13965# The else clause should only fire when bootstrapping the 13966# libtool distribution, otherwise you forgot to ship ltmain.sh 13967# with your package, and you will get complaints that there are 13968# no rules to generate ltmain.sh. 13969if test -f "$ltmain"; then 13970 # See if we are running on zsh, and set the options which allow our commands through 13971 # without removal of \ escapes. 13972 if test -n "${ZSH_VERSION+set}" ; then 13973 setopt NO_GLOB_SUBST 13974 fi 13975 # Now quote all the things that may contain metacharacters while being 13976 # careful not to overquote the AC_SUBSTed values. We take copies of the 13977 # variables and quote the copies for generation of the libtool script. 13978 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13979 SED SHELL STRIP \ 13980 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13981 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13982 deplibs_check_method reload_flag reload_cmds need_locks \ 13983 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13984 lt_cv_sys_global_symbol_to_c_name_address \ 13985 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13986 old_postinstall_cmds old_postuninstall_cmds \ 13987 compiler_CXX \ 13988 CC_CXX \ 13989 LD_CXX \ 13990 lt_prog_compiler_wl_CXX \ 13991 lt_prog_compiler_pic_CXX \ 13992 lt_prog_compiler_static_CXX \ 13993 lt_prog_compiler_no_builtin_flag_CXX \ 13994 export_dynamic_flag_spec_CXX \ 13995 thread_safe_flag_spec_CXX \ 13996 whole_archive_flag_spec_CXX \ 13997 enable_shared_with_static_runtimes_CXX \ 13998 old_archive_cmds_CXX \ 13999 old_archive_from_new_cmds_CXX \ 14000 predep_objects_CXX \ 14001 postdep_objects_CXX \ 14002 predeps_CXX \ 14003 postdeps_CXX \ 14004 compiler_lib_search_path_CXX \ 14005 archive_cmds_CXX \ 14006 archive_expsym_cmds_CXX \ 14007 postinstall_cmds_CXX \ 14008 postuninstall_cmds_CXX \ 14009 old_archive_from_expsyms_cmds_CXX \ 14010 allow_undefined_flag_CXX \ 14011 no_undefined_flag_CXX \ 14012 export_symbols_cmds_CXX \ 14013 hardcode_libdir_flag_spec_CXX \ 14014 hardcode_libdir_flag_spec_ld_CXX \ 14015 hardcode_libdir_separator_CXX \ 14016 hardcode_automatic_CXX \ 14017 module_cmds_CXX \ 14018 module_expsym_cmds_CXX \ 14019 lt_cv_prog_compiler_c_o_CXX \ 14020 exclude_expsyms_CXX \ 14021 include_expsyms_CXX; do 14022 14023 case $var in 14024 old_archive_cmds_CXX | \ 14025 old_archive_from_new_cmds_CXX | \ 14026 archive_cmds_CXX | \ 14027 archive_expsym_cmds_CXX | \ 14028 module_cmds_CXX | \ 14029 module_expsym_cmds_CXX | \ 14030 old_archive_from_expsyms_cmds_CXX | \ 14031 export_symbols_cmds_CXX | \ 14032 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14033 postinstall_cmds | postuninstall_cmds | \ 14034 old_postinstall_cmds | old_postuninstall_cmds | \ 14035 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14036 # Double-quote double-evaled strings. 14037 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14038 ;; 14039 *) 14040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14041 ;; 14042 esac 14043 done 14044 14045 case $lt_echo in 14046 *'\$0 --fallback-echo"') 14047 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14048 ;; 14049 esac 14050 14051cfgfile="$ofile" 14052 14053 cat <<__EOF__ >> "$cfgfile" 14054# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14055 14056# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14057 14058# Shell to use when invoking shell scripts. 14059SHELL=$lt_SHELL 14060 14061# Whether or not to build shared libraries. 14062build_libtool_libs=$enable_shared 14063 14064# Whether or not to build static libraries. 14065build_old_libs=$enable_static 14066 14067# Whether or not to add -lc for building shared libraries. 14068build_libtool_need_lc=$archive_cmds_need_lc_CXX 14069 14070# Whether or not to disallow shared libs when runtime libs are static 14071allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14072 14073# Whether or not to optimize for fast installation. 14074fast_install=$enable_fast_install 14075 14076# The host system. 14077host_alias=$host_alias 14078host=$host 14079host_os=$host_os 14080 14081# The build system. 14082build_alias=$build_alias 14083build=$build 14084build_os=$build_os 14085 14086# An echo program that does not interpret backslashes. 14087echo=$lt_echo 14088 14089# The archiver. 14090AR=$lt_AR 14091AR_FLAGS=$lt_AR_FLAGS 14092 14093# A C compiler. 14094LTCC=$lt_LTCC 14095 14096# LTCC compiler flags. 14097LTCFLAGS=$lt_LTCFLAGS 14098 14099# A language-specific compiler. 14100CC=$lt_compiler_CXX 14101 14102# Is the compiler the GNU C compiler? 14103with_gcc=$GCC_CXX 14104 14105# An ERE matcher. 14106EGREP=$lt_EGREP 14107 14108# The linker used to build libraries. 14109LD=$lt_LD_CXX 14110 14111# Whether we need hard or soft links. 14112LN_S=$lt_LN_S 14113 14114# A BSD-compatible nm program. 14115NM=$lt_NM 14116 14117# A symbol stripping program 14118STRIP=$lt_STRIP 14119 14120# Used to examine libraries when file_magic_cmd begins "file" 14121MAGIC_CMD=$MAGIC_CMD 14122 14123# Used on cygwin: DLL creation program. 14124DLLTOOL="$DLLTOOL" 14125 14126# Used on cygwin: object dumper. 14127OBJDUMP="$OBJDUMP" 14128 14129# Used on cygwin: assembler. 14130AS="$AS" 14131 14132# The name of the directory that contains temporary libtool files. 14133objdir=$objdir 14134 14135# How to create reloadable object files. 14136reload_flag=$lt_reload_flag 14137reload_cmds=$lt_reload_cmds 14138 14139# How to pass a linker flag through the compiler. 14140wl=$lt_lt_prog_compiler_wl_CXX 14141 14142# Object file suffix (normally "o"). 14143objext="$ac_objext" 14144 14145# Old archive suffix (normally "a"). 14146libext="$libext" 14147 14148# Shared library suffix (normally ".so"). 14149shrext_cmds='$shrext_cmds' 14150 14151# Executable file suffix (normally ""). 14152exeext="$exeext" 14153 14154# Additional compiler flags for building library objects. 14155pic_flag=$lt_lt_prog_compiler_pic_CXX 14156pic_mode=$pic_mode 14157 14158# What is the maximum length of a command? 14159max_cmd_len=$lt_cv_sys_max_cmd_len 14160 14161# Does compiler simultaneously support -c and -o options? 14162compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14163 14164# Must we lock files when doing compilation? 14165need_locks=$lt_need_locks 14166 14167# Do we need the lib prefix for modules? 14168need_lib_prefix=$need_lib_prefix 14169 14170# Do we need a version for libraries? 14171need_version=$need_version 14172 14173# Whether dlopen is supported. 14174dlopen_support=$enable_dlopen 14175 14176# Whether dlopen of programs is supported. 14177dlopen_self=$enable_dlopen_self 14178 14179# Whether dlopen of statically linked programs is supported. 14180dlopen_self_static=$enable_dlopen_self_static 14181 14182# Compiler flag to prevent dynamic linking. 14183link_static_flag=$lt_lt_prog_compiler_static_CXX 14184 14185# Compiler flag to turn off builtin functions. 14186no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14187 14188# Compiler flag to allow reflexive dlopens. 14189export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14190 14191# Compiler flag to generate shared objects directly from archives. 14192whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14193 14194# Compiler flag to generate thread-safe objects. 14195thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14196 14197# Library versioning type. 14198version_type=$version_type 14199 14200# Format of library name prefix. 14201libname_spec=$lt_libname_spec 14202 14203# List of archive names. First name is the real one, the rest are links. 14204# The last name is the one that the linker finds with -lNAME. 14205library_names_spec=$lt_library_names_spec 14206 14207# The coded name of the library, if different from the real name. 14208soname_spec=$lt_soname_spec 14209 14210# Commands used to build and install an old-style archive. 14211RANLIB=$lt_RANLIB 14212old_archive_cmds=$lt_old_archive_cmds_CXX 14213old_postinstall_cmds=$lt_old_postinstall_cmds 14214old_postuninstall_cmds=$lt_old_postuninstall_cmds 14215 14216# Create an old-style archive from a shared archive. 14217old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14218 14219# Create a temporary old-style archive to link instead of a shared archive. 14220old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14221 14222# Commands used to build and install a shared archive. 14223archive_cmds=$lt_archive_cmds_CXX 14224archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14225postinstall_cmds=$lt_postinstall_cmds 14226postuninstall_cmds=$lt_postuninstall_cmds 14227 14228# Commands used to build a loadable module (assumed same as above if empty) 14229module_cmds=$lt_module_cmds_CXX 14230module_expsym_cmds=$lt_module_expsym_cmds_CXX 14231 14232# Commands to strip libraries. 14233old_striplib=$lt_old_striplib 14234striplib=$lt_striplib 14235 14236# Dependencies to place before the objects being linked to create a 14237# shared library. 14238predep_objects=$lt_predep_objects_CXX 14239 14240# Dependencies to place after the objects being linked to create a 14241# shared library. 14242postdep_objects=$lt_postdep_objects_CXX 14243 14244# Dependencies to place before the objects being linked to create a 14245# shared library. 14246predeps=$lt_predeps_CXX 14247 14248# Dependencies to place after the objects being linked to create a 14249# shared library. 14250postdeps=$lt_postdeps_CXX 14251 14252# The library search path used internally by the compiler when linking 14253# a shared library. 14254compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14255 14256# Method to check whether dependent libraries are shared objects. 14257deplibs_check_method=$lt_deplibs_check_method 14258 14259# Command to use when deplibs_check_method == file_magic. 14260file_magic_cmd=$lt_file_magic_cmd 14261 14262# Flag that allows shared libraries with undefined symbols to be built. 14263allow_undefined_flag=$lt_allow_undefined_flag_CXX 14264 14265# Flag that forces no undefined symbols. 14266no_undefined_flag=$lt_no_undefined_flag_CXX 14267 14268# Commands used to finish a libtool library installation in a directory. 14269finish_cmds=$lt_finish_cmds 14270 14271# Same as above, but a single script fragment to be evaled but not shown. 14272finish_eval=$lt_finish_eval 14273 14274# Take the output of nm and produce a listing of raw symbols and C names. 14275global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14276 14277# Transform the output of nm in a proper C declaration 14278global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14279 14280# Transform the output of nm in a C name address pair 14281global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14282 14283# This is the shared library runtime path variable. 14284runpath_var=$runpath_var 14285 14286# This is the shared library path variable. 14287shlibpath_var=$shlibpath_var 14288 14289# Is shlibpath searched before the hard-coded library search path? 14290shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14291 14292# How to hardcode a shared library path into an executable. 14293hardcode_action=$hardcode_action_CXX 14294 14295# Whether we should hardcode library paths into libraries. 14296hardcode_into_libs=$hardcode_into_libs 14297 14298# Flag to hardcode \$libdir into a binary during linking. 14299# This must work even if \$libdir does not exist. 14300hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14301 14302# If ld is used when linking, flag to hardcode \$libdir into 14303# a binary during linking. This must work even if \$libdir does 14304# not exist. 14305hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14306 14307# Whether we need a single -rpath flag with a separated argument. 14308hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14309 14310# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14311# resulting binary. 14312hardcode_direct=$hardcode_direct_CXX 14313 14314# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14315# resulting binary. 14316hardcode_minus_L=$hardcode_minus_L_CXX 14317 14318# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14319# the resulting binary. 14320hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14321 14322# Set to yes if building a shared library automatically hardcodes DIR into the library 14323# and all subsequent libraries and executables linked against it. 14324hardcode_automatic=$hardcode_automatic_CXX 14325 14326# Variables whose values should be saved in libtool wrapper scripts and 14327# restored at relink time. 14328variables_saved_for_relink="$variables_saved_for_relink" 14329 14330# Whether libtool must link a program against all its dependency libraries. 14331link_all_deplibs=$link_all_deplibs_CXX 14332 14333# Compile-time system search path for libraries 14334sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14335 14336# Run-time system search path for libraries 14337sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14338 14339# Fix the shell variable \$srcfile for the compiler. 14340fix_srcfile_path="$fix_srcfile_path_CXX" 14341 14342# Set to yes if exported symbols are required. 14343always_export_symbols=$always_export_symbols_CXX 14344 14345# The commands to list exported symbols. 14346export_symbols_cmds=$lt_export_symbols_cmds_CXX 14347 14348# The commands to extract the exported symbol list from a shared archive. 14349extract_expsyms_cmds=$lt_extract_expsyms_cmds 14350 14351# Symbols that should not be listed in the preloaded symbols. 14352exclude_expsyms=$lt_exclude_expsyms_CXX 14353 14354# Symbols that must always be exported. 14355include_expsyms=$lt_include_expsyms_CXX 14356 14357# ### END LIBTOOL TAG CONFIG: $tagname 14358 14359__EOF__ 14360 14361 14362else 14363 # If there is no Makefile yet, we rely on a make rule to execute 14364 # `config.status --recheck' to rerun these tests and create the 14365 # libtool script then. 14366 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14367 if test -f "$ltmain_in"; then 14368 test -f Makefile && make "$ltmain" 14369 fi 14370fi 14371 14372 14373ac_ext=c 14374ac_cpp='$CPP $CPPFLAGS' 14375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14377ac_compiler_gnu=$ac_cv_c_compiler_gnu 14378 14379CC=$lt_save_CC 14380LDCXX=$LD 14381LD=$lt_save_LD 14382GCC=$lt_save_GCC 14383with_gnu_ldcxx=$with_gnu_ld 14384with_gnu_ld=$lt_save_with_gnu_ld 14385lt_cv_path_LDCXX=$lt_cv_path_LD 14386lt_cv_path_LD=$lt_save_path_LD 14387lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14388lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14389 14390 else 14391 tagname="" 14392 fi 14393 ;; 14394 14395 F77) 14396 if test -n "$F77" && test "X$F77" != "Xno"; then 14397 14398ac_ext=f 14399ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14400ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14401ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14402 14403 14404archive_cmds_need_lc_F77=no 14405allow_undefined_flag_F77= 14406always_export_symbols_F77=no 14407archive_expsym_cmds_F77= 14408export_dynamic_flag_spec_F77= 14409hardcode_direct_F77=no 14410hardcode_libdir_flag_spec_F77= 14411hardcode_libdir_flag_spec_ld_F77= 14412hardcode_libdir_separator_F77= 14413hardcode_minus_L_F77=no 14414hardcode_automatic_F77=no 14415module_cmds_F77= 14416module_expsym_cmds_F77= 14417link_all_deplibs_F77=unknown 14418old_archive_cmds_F77=$old_archive_cmds 14419no_undefined_flag_F77= 14420whole_archive_flag_spec_F77= 14421enable_shared_with_static_runtimes_F77=no 14422 14423# Source file extension for f77 test sources. 14424ac_ext=f 14425 14426# Object file extension for compiled f77 test sources. 14427objext=o 14428objext_F77=$objext 14429 14430# Code to be used in simple compile tests 14431lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14432 14433# Code to be used in simple link tests 14434lt_simple_link_test_code=" program t\n end\n" 14435 14436# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14437 14438# If no C compiler was specified, use CC. 14439LTCC=${LTCC-"$CC"} 14440 14441# If no C compiler flags were specified, use CFLAGS. 14442LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14443 14444# Allow CC to be a program name with arguments. 14445compiler=$CC 14446 14447 14448# save warnings/boilerplate of simple test code 14449ac_outfile=conftest.$ac_objext 14450printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14451eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14452_lt_compiler_boilerplate=`cat conftest.err` 14453$rm conftest* 14454 14455ac_outfile=conftest.$ac_objext 14456printf "$lt_simple_link_test_code" >conftest.$ac_ext 14457eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14458_lt_linker_boilerplate=`cat conftest.err` 14459$rm conftest* 14460 14461 14462# Allow CC to be a program name with arguments. 14463lt_save_CC="$CC" 14464CC=${F77-"f77"} 14465compiler=$CC 14466compiler_F77=$CC 14467for cc_temp in $compiler""; do 14468 case $cc_temp in 14469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14471 \-*) ;; 14472 *) break;; 14473 esac 14474done 14475cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14476 14477 14478{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14479echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14480{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14481echo "${ECHO_T}$can_build_shared" >&6; } 14482 14483{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14484echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14485test "$can_build_shared" = "no" && enable_shared=no 14486 14487# On AIX, shared libraries and static libraries use the same namespace, and 14488# are all built from PIC. 14489case $host_os in 14490aix3*) 14491 test "$enable_shared" = yes && enable_static=no 14492 if test -n "$RANLIB"; then 14493 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14494 postinstall_cmds='$RANLIB $lib' 14495 fi 14496 ;; 14497aix4* | aix5*) 14498 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14499 test "$enable_shared" = yes && enable_static=no 14500 fi 14501 ;; 14502esac 14503{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14504echo "${ECHO_T}$enable_shared" >&6; } 14505 14506{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14507echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14508# Make sure either enable_shared or enable_static is yes. 14509test "$enable_shared" = yes || enable_static=yes 14510{ echo "$as_me:$LINENO: result: $enable_static" >&5 14511echo "${ECHO_T}$enable_static" >&6; } 14512 14513GCC_F77="$G77" 14514LD_F77="$LD" 14515 14516lt_prog_compiler_wl_F77= 14517lt_prog_compiler_pic_F77= 14518lt_prog_compiler_static_F77= 14519 14520{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14521echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14522 14523 if test "$GCC" = yes; then 14524 lt_prog_compiler_wl_F77='-Wl,' 14525 lt_prog_compiler_static_F77='-static' 14526 14527 case $host_os in 14528 aix*) 14529 # All AIX code is PIC. 14530 if test "$host_cpu" = ia64; then 14531 # AIX 5 now supports IA64 processor 14532 lt_prog_compiler_static_F77='-Bstatic' 14533 fi 14534 ;; 14535 14536 amigaos*) 14537 # FIXME: we need at least 68020 code to build shared libraries, but 14538 # adding the `-m68020' flag to GCC prevents building anything better, 14539 # like `-m68040'. 14540 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14541 ;; 14542 14543 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14544 # PIC is the default for these OSes. 14545 ;; 14546 14547 mingw* | pw32* | os2*) 14548 # This hack is so that the source file can tell whether it is being 14549 # built for inclusion in a dll (and should export symbols for example). 14550 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14551 ;; 14552 14553 darwin* | rhapsody*) 14554 # PIC is the default on this platform 14555 # Common symbols not allowed in MH_DYLIB files 14556 lt_prog_compiler_pic_F77='-fno-common' 14557 ;; 14558 14559 interix3*) 14560 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14561 # Instead, we relocate shared libraries at runtime. 14562 ;; 14563 14564 msdosdjgpp*) 14565 # Just because we use GCC doesn't mean we suddenly get shared libraries 14566 # on systems that don't support them. 14567 lt_prog_compiler_can_build_shared_F77=no 14568 enable_shared=no 14569 ;; 14570 14571 sysv4*MP*) 14572 if test -d /usr/nec; then 14573 lt_prog_compiler_pic_F77=-Kconform_pic 14574 fi 14575 ;; 14576 14577 hpux*) 14578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14579 # not for PA HP-UX. 14580 case $host_cpu in 14581 hppa*64*|ia64*) 14582 # +Z the default 14583 ;; 14584 *) 14585 lt_prog_compiler_pic_F77='-fPIC' 14586 ;; 14587 esac 14588 ;; 14589 14590 *) 14591 lt_prog_compiler_pic_F77='-fPIC' 14592 ;; 14593 esac 14594 else 14595 # PORTME Check for flag to pass linker flags through the system compiler. 14596 case $host_os in 14597 aix*) 14598 lt_prog_compiler_wl_F77='-Wl,' 14599 if test "$host_cpu" = ia64; then 14600 # AIX 5 now supports IA64 processor 14601 lt_prog_compiler_static_F77='-Bstatic' 14602 else 14603 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14604 fi 14605 ;; 14606 darwin*) 14607 # PIC is the default on this platform 14608 # Common symbols not allowed in MH_DYLIB files 14609 case $cc_basename in 14610 xlc*) 14611 lt_prog_compiler_pic_F77='-qnocommon' 14612 lt_prog_compiler_wl_F77='-Wl,' 14613 ;; 14614 esac 14615 ;; 14616 14617 mingw* | pw32* | os2*) 14618 # This hack is so that the source file can tell whether it is being 14619 # built for inclusion in a dll (and should export symbols for example). 14620 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14621 ;; 14622 14623 hpux9* | hpux10* | hpux11*) 14624 lt_prog_compiler_wl_F77='-Wl,' 14625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14626 # not for PA HP-UX. 14627 case $host_cpu in 14628 hppa*64*|ia64*) 14629 # +Z the default 14630 ;; 14631 *) 14632 lt_prog_compiler_pic_F77='+Z' 14633 ;; 14634 esac 14635 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14636 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14637 ;; 14638 14639 irix5* | irix6* | nonstopux*) 14640 lt_prog_compiler_wl_F77='-Wl,' 14641 # PIC (with -KPIC) is the default. 14642 lt_prog_compiler_static_F77='-non_shared' 14643 ;; 14644 14645 newsos6) 14646 lt_prog_compiler_pic_F77='-KPIC' 14647 lt_prog_compiler_static_F77='-Bstatic' 14648 ;; 14649 14650 linux* | k*bsd*-gnu) 14651 case $cc_basename in 14652 icc* | ecc*) 14653 lt_prog_compiler_wl_F77='-Wl,' 14654 lt_prog_compiler_pic_F77='-KPIC' 14655 lt_prog_compiler_static_F77='-static' 14656 ;; 14657 pgcc* | pgf77* | pgf90* | pgf95*) 14658 # Portland Group compilers (*not* the Pentium gcc compiler, 14659 # which looks to be a dead project) 14660 lt_prog_compiler_wl_F77='-Wl,' 14661 lt_prog_compiler_pic_F77='-fpic' 14662 lt_prog_compiler_static_F77='-Bstatic' 14663 ;; 14664 ccc*) 14665 lt_prog_compiler_wl_F77='-Wl,' 14666 # All Alpha code is PIC. 14667 lt_prog_compiler_static_F77='-non_shared' 14668 ;; 14669 esac 14670 ;; 14671 14672 osf3* | osf4* | osf5*) 14673 lt_prog_compiler_wl_F77='-Wl,' 14674 # All OSF/1 code is PIC. 14675 lt_prog_compiler_static_F77='-non_shared' 14676 ;; 14677 14678 solaris*) 14679 lt_prog_compiler_pic_F77='-KPIC' 14680 lt_prog_compiler_static_F77='-Bstatic' 14681 case $cc_basename in 14682 f77* | f90* | f95*) 14683 lt_prog_compiler_wl_F77='-Qoption ld ';; 14684 *) 14685 lt_prog_compiler_wl_F77='-Wl,';; 14686 esac 14687 ;; 14688 14689 sunos4*) 14690 lt_prog_compiler_wl_F77='-Qoption ld ' 14691 lt_prog_compiler_pic_F77='-PIC' 14692 lt_prog_compiler_static_F77='-Bstatic' 14693 ;; 14694 14695 sysv4 | sysv4.2uw2* | sysv4.3*) 14696 lt_prog_compiler_wl_F77='-Wl,' 14697 lt_prog_compiler_pic_F77='-KPIC' 14698 lt_prog_compiler_static_F77='-Bstatic' 14699 ;; 14700 14701 sysv4*MP*) 14702 if test -d /usr/nec ;then 14703 lt_prog_compiler_pic_F77='-Kconform_pic' 14704 lt_prog_compiler_static_F77='-Bstatic' 14705 fi 14706 ;; 14707 14708 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14709 lt_prog_compiler_wl_F77='-Wl,' 14710 lt_prog_compiler_pic_F77='-KPIC' 14711 lt_prog_compiler_static_F77='-Bstatic' 14712 ;; 14713 14714 unicos*) 14715 lt_prog_compiler_wl_F77='-Wl,' 14716 lt_prog_compiler_can_build_shared_F77=no 14717 ;; 14718 14719 uts4*) 14720 lt_prog_compiler_pic_F77='-pic' 14721 lt_prog_compiler_static_F77='-Bstatic' 14722 ;; 14723 14724 *) 14725 lt_prog_compiler_can_build_shared_F77=no 14726 ;; 14727 esac 14728 fi 14729 14730{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14731echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14732 14733# 14734# Check to make sure the PIC flag actually works. 14735# 14736if test -n "$lt_prog_compiler_pic_F77"; then 14737 14738{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14739echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14740if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14741 echo $ECHO_N "(cached) $ECHO_C" >&6 14742else 14743 lt_prog_compiler_pic_works_F77=no 14744 ac_outfile=conftest.$ac_objext 14745 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14746 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14747 # Insert the option either (1) after the last *FLAGS variable, or 14748 # (2) before a word containing "conftest.", or (3) at the end. 14749 # Note that $ac_compile itself does not contain backslashes and begins 14750 # with a dollar sign (not a hyphen), so the echo should work correctly. 14751 # The option is referenced via a variable to avoid confusing sed. 14752 lt_compile=`echo "$ac_compile" | $SED \ 14753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14755 -e 's:$: $lt_compiler_flag:'` 14756 (eval echo "\"\$as_me:14756: $lt_compile\"" >&5) 14757 (eval "$lt_compile" 2>conftest.err) 14758 ac_status=$? 14759 cat conftest.err >&5 14760 echo "$as_me:14760: \$? = $ac_status" >&5 14761 if (exit $ac_status) && test -s "$ac_outfile"; then 14762 # The compiler can only warn and ignore the option if not recognized 14763 # So say no if there are warnings other than the usual output. 14764 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14766 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14767 lt_prog_compiler_pic_works_F77=yes 14768 fi 14769 fi 14770 $rm conftest* 14771 14772fi 14773{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14774echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14775 14776if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14777 case $lt_prog_compiler_pic_F77 in 14778 "" | " "*) ;; 14779 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14780 esac 14781else 14782 lt_prog_compiler_pic_F77= 14783 lt_prog_compiler_can_build_shared_F77=no 14784fi 14785 14786fi 14787case $host_os in 14788 # For platforms which do not support PIC, -DPIC is meaningless: 14789 *djgpp*) 14790 lt_prog_compiler_pic_F77= 14791 ;; 14792 *) 14793 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14794 ;; 14795esac 14796 14797# 14798# Check to make sure the static flag actually works. 14799# 14800wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14801{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14802echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14803if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14804 echo $ECHO_N "(cached) $ECHO_C" >&6 14805else 14806 lt_prog_compiler_static_works_F77=no 14807 save_LDFLAGS="$LDFLAGS" 14808 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14809 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14811 # The linker can only warn and ignore the option if not recognized 14812 # So say no if there are warnings 14813 if test -s conftest.err; then 14814 # Append any errors to the config.log. 14815 cat conftest.err 1>&5 14816 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14818 if diff conftest.exp conftest.er2 >/dev/null; then 14819 lt_prog_compiler_static_works_F77=yes 14820 fi 14821 else 14822 lt_prog_compiler_static_works_F77=yes 14823 fi 14824 fi 14825 $rm conftest* 14826 LDFLAGS="$save_LDFLAGS" 14827 14828fi 14829{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14830echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14831 14832if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14833 : 14834else 14835 lt_prog_compiler_static_F77= 14836fi 14837 14838 14839{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14840echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14841if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14842 echo $ECHO_N "(cached) $ECHO_C" >&6 14843else 14844 lt_cv_prog_compiler_c_o_F77=no 14845 $rm -r conftest 2>/dev/null 14846 mkdir conftest 14847 cd conftest 14848 mkdir out 14849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14850 14851 lt_compiler_flag="-o out/conftest2.$ac_objext" 14852 # Insert the option either (1) after the last *FLAGS variable, or 14853 # (2) before a word containing "conftest.", or (3) at the end. 14854 # Note that $ac_compile itself does not contain backslashes and begins 14855 # with a dollar sign (not a hyphen), so the echo should work correctly. 14856 lt_compile=`echo "$ac_compile" | $SED \ 14857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14859 -e 's:$: $lt_compiler_flag:'` 14860 (eval echo "\"\$as_me:14860: $lt_compile\"" >&5) 14861 (eval "$lt_compile" 2>out/conftest.err) 14862 ac_status=$? 14863 cat out/conftest.err >&5 14864 echo "$as_me:14864: \$? = $ac_status" >&5 14865 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14866 then 14867 # The compiler can only warn and ignore the option if not recognized 14868 # So say no if there are warnings 14869 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14872 lt_cv_prog_compiler_c_o_F77=yes 14873 fi 14874 fi 14875 chmod u+w . 2>&5 14876 $rm conftest* 14877 # SGI C++ compiler will create directory out/ii_files/ for 14878 # template instantiation 14879 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14880 $rm out/* && rmdir out 14881 cd .. 14882 rmdir conftest 14883 $rm conftest* 14884 14885fi 14886{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14887echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14888 14889 14890hard_links="nottested" 14891if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14892 # do not overwrite the value of need_locks provided by the user 14893 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14894echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14895 hard_links=yes 14896 $rm conftest* 14897 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14898 touch conftest.a 14899 ln conftest.a conftest.b 2>&5 || hard_links=no 14900 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14901 { echo "$as_me:$LINENO: result: $hard_links" >&5 14902echo "${ECHO_T}$hard_links" >&6; } 14903 if test "$hard_links" = no; then 14904 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14905echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14906 need_locks=warn 14907 fi 14908else 14909 need_locks=no 14910fi 14911 14912{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14913echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14914 14915 runpath_var= 14916 allow_undefined_flag_F77= 14917 enable_shared_with_static_runtimes_F77=no 14918 archive_cmds_F77= 14919 archive_expsym_cmds_F77= 14920 old_archive_From_new_cmds_F77= 14921 old_archive_from_expsyms_cmds_F77= 14922 export_dynamic_flag_spec_F77= 14923 whole_archive_flag_spec_F77= 14924 thread_safe_flag_spec_F77= 14925 hardcode_libdir_flag_spec_F77= 14926 hardcode_libdir_flag_spec_ld_F77= 14927 hardcode_libdir_separator_F77= 14928 hardcode_direct_F77=no 14929 hardcode_minus_L_F77=no 14930 hardcode_shlibpath_var_F77=unsupported 14931 link_all_deplibs_F77=unknown 14932 hardcode_automatic_F77=no 14933 module_cmds_F77= 14934 module_expsym_cmds_F77= 14935 always_export_symbols_F77=no 14936 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14937 # include_expsyms should be a list of space-separated symbols to be *always* 14938 # included in the symbol list 14939 include_expsyms_F77= 14940 # exclude_expsyms can be an extended regexp of symbols to exclude 14941 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14943 # as well as any symbol that contains `d'. 14944 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14946 # platforms (ab)use it in PIC code, but their linkers get confused if 14947 # the symbol is explicitly referenced. Since portable code cannot 14948 # rely on this symbol name, it's probably fine to never include it in 14949 # preloaded symbol tables. 14950 extract_expsyms_cmds= 14951 # Just being paranoid about ensuring that cc_basename is set. 14952 for cc_temp in $compiler""; do 14953 case $cc_temp in 14954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14956 \-*) ;; 14957 *) break;; 14958 esac 14959done 14960cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14961 14962 case $host_os in 14963 cygwin* | mingw* | pw32*) 14964 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14965 # When not using gcc, we currently assume that we are using 14966 # Microsoft Visual C++. 14967 if test "$GCC" != yes; then 14968 with_gnu_ld=no 14969 fi 14970 ;; 14971 interix*) 14972 # we just hope/assume this is gcc and not c89 (= MSVC++) 14973 with_gnu_ld=yes 14974 ;; 14975 openbsd*) 14976 with_gnu_ld=no 14977 ;; 14978 esac 14979 14980 ld_shlibs_F77=yes 14981 if test "$with_gnu_ld" = yes; then 14982 # If archive_cmds runs LD, not CC, wlarc should be empty 14983 wlarc='${wl}' 14984 14985 # Set some defaults for GNU ld with shared library support. These 14986 # are reset later if shared libraries are not supported. Putting them 14987 # here allows them to be overridden if necessary. 14988 runpath_var=LD_RUN_PATH 14989 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14990 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14991 # ancient GNU ld didn't support --whole-archive et. al. 14992 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14993 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14994 else 14995 whole_archive_flag_spec_F77= 14996 fi 14997 supports_anon_versioning=no 14998 case `$LD -v 2>/dev/null` in 14999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15002 *\ 2.11.*) ;; # other 2.11 versions 15003 *) supports_anon_versioning=yes ;; 15004 esac 15005 15006 # See if GNU ld supports shared libraries. 15007 case $host_os in 15008 aix3* | aix4* | aix5*) 15009 # On AIX/PPC, the GNU linker is very broken 15010 if test "$host_cpu" != ia64; then 15011 ld_shlibs_F77=no 15012 cat <<EOF 1>&2 15013 15014*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15015*** to be unable to reliably create shared libraries on AIX. 15016*** Therefore, libtool is disabling shared libraries support. If you 15017*** really care for shared libraries, you may want to modify your PATH 15018*** so that a non-GNU linker is found, and then restart. 15019 15020EOF 15021 fi 15022 ;; 15023 15024 amigaos*) 15025 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)' 15026 hardcode_libdir_flag_spec_F77='-L$libdir' 15027 hardcode_minus_L_F77=yes 15028 15029 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15030 # that the semantics of dynamic libraries on AmigaOS, at least up 15031 # to version 4, is to share data among multiple programs linked 15032 # with the same dynamic library. Since this doesn't match the 15033 # behavior of shared libraries on other platforms, we can't use 15034 # them. 15035 ld_shlibs_F77=no 15036 ;; 15037 15038 beos*) 15039 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15040 allow_undefined_flag_F77=unsupported 15041 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15042 # support --undefined. This deserves some investigation. FIXME 15043 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15044 else 15045 ld_shlibs_F77=no 15046 fi 15047 ;; 15048 15049 cygwin* | mingw* | pw32*) 15050 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15051 # as there is no search path for DLLs. 15052 hardcode_libdir_flag_spec_F77='-L$libdir' 15053 allow_undefined_flag_F77=unsupported 15054 always_export_symbols_F77=no 15055 enable_shared_with_static_runtimes_F77=yes 15056 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15057 15058 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15059 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15060 # If the export-symbols file already is a .def file (1st line 15061 # is EXPORTS), use it as is; otherwise, prepend... 15062 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15063 cp $export_symbols $output_objdir/$soname.def; 15064 else 15065 echo EXPORTS > $output_objdir/$soname.def; 15066 cat $export_symbols >> $output_objdir/$soname.def; 15067 fi~ 15068 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15069 else 15070 ld_shlibs_F77=no 15071 fi 15072 ;; 15073 15074 interix3*) 15075 hardcode_direct_F77=no 15076 hardcode_shlibpath_var_F77=no 15077 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15078 export_dynamic_flag_spec_F77='${wl}-E' 15079 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15080 # Instead, shared libraries are loaded at an image base (0x10000000 by 15081 # default) and relocated if they conflict, which is a slow very memory 15082 # consuming and fragmenting process. To avoid this, we pick a random, 15083 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15084 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15085 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' 15086 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' 15087 ;; 15088 15089 linux* | k*bsd*-gnu) 15090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15091 tmp_addflag= 15092 case $cc_basename,$host_cpu in 15093 pgcc*) # Portland Group C compiler 15094 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' 15095 tmp_addflag=' $pic_flag' 15096 ;; 15097 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15098 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' 15099 tmp_addflag=' $pic_flag -Mnomain' ;; 15100 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15101 tmp_addflag=' -i_dynamic' ;; 15102 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15103 tmp_addflag=' -i_dynamic -nofor_main' ;; 15104 ifc* | ifort*) # Intel Fortran compiler 15105 tmp_addflag=' -nofor_main' ;; 15106 esac 15107 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15108 15109 if test $supports_anon_versioning = yes; then 15110 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15112 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15113 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15114 fi 15115 link_all_deplibs_F77=no 15116 else 15117 ld_shlibs_F77=no 15118 fi 15119 ;; 15120 15121 netbsd* | netbsdelf*-gnu) 15122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15123 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15124 wlarc= 15125 else 15126 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15127 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15128 fi 15129 ;; 15130 15131 solaris*) 15132 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15133 ld_shlibs_F77=no 15134 cat <<EOF 1>&2 15135 15136*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15137*** create shared libraries on Solaris systems. Therefore, libtool 15138*** is disabling shared libraries support. We urge you to upgrade GNU 15139*** binutils to release 2.9.1 or newer. Another option is to modify 15140*** your PATH or compiler configuration so that the native linker is 15141*** used, and then restart. 15142 15143EOF 15144 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15145 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15146 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15147 else 15148 ld_shlibs_F77=no 15149 fi 15150 ;; 15151 15152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15153 case `$LD -v 2>&1` in 15154 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15155 ld_shlibs_F77=no 15156 cat <<_LT_EOF 1>&2 15157 15158*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15159*** reliably create shared libraries on SCO systems. Therefore, libtool 15160*** is disabling shared libraries support. We urge you to upgrade GNU 15161*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15162*** your PATH or compiler configuration so that the native linker is 15163*** used, and then restart. 15164 15165_LT_EOF 15166 ;; 15167 *) 15168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15169 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15170 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15171 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15172 else 15173 ld_shlibs_F77=no 15174 fi 15175 ;; 15176 esac 15177 ;; 15178 15179 sunos4*) 15180 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15181 wlarc= 15182 hardcode_direct_F77=yes 15183 hardcode_shlibpath_var_F77=no 15184 ;; 15185 15186 *) 15187 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15188 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15189 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15190 else 15191 ld_shlibs_F77=no 15192 fi 15193 ;; 15194 esac 15195 15196 if test "$ld_shlibs_F77" = no; then 15197 runpath_var= 15198 hardcode_libdir_flag_spec_F77= 15199 export_dynamic_flag_spec_F77= 15200 whole_archive_flag_spec_F77= 15201 fi 15202 else 15203 # PORTME fill in a description of your system's linker (not GNU ld) 15204 case $host_os in 15205 aix3*) 15206 allow_undefined_flag_F77=unsupported 15207 always_export_symbols_F77=yes 15208 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' 15209 # Note: this linker hardcodes the directories in LIBPATH if there 15210 # are no directories specified by -L. 15211 hardcode_minus_L_F77=yes 15212 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15213 # Neither direct hardcoding nor static linking is supported with a 15214 # broken collect2. 15215 hardcode_direct_F77=unsupported 15216 fi 15217 ;; 15218 15219 aix4* | aix5*) 15220 if test "$host_cpu" = ia64; then 15221 # On IA64, the linker does run time linking by default, so we don't 15222 # have to do anything special. 15223 aix_use_runtimelinking=no 15224 exp_sym_flag='-Bexport' 15225 no_entry_flag="" 15226 else 15227 # If we're using GNU nm, then we don't want the "-C" option. 15228 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15229 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15230 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' 15231 else 15232 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' 15233 fi 15234 aix_use_runtimelinking=no 15235 15236 # Test if we are trying to use run time linking or normal 15237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15238 # need to do runtime linking. 15239 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15240 for ld_flag in $LDFLAGS; do 15241 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15242 aix_use_runtimelinking=yes 15243 break 15244 fi 15245 done 15246 ;; 15247 esac 15248 15249 exp_sym_flag='-bexport' 15250 no_entry_flag='-bnoentry' 15251 fi 15252 15253 # When large executables or shared objects are built, AIX ld can 15254 # have problems creating the table of contents. If linking a library 15255 # or program results in "error TOC overflow" add -mminimal-toc to 15256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15258 15259 archive_cmds_F77='' 15260 hardcode_direct_F77=yes 15261 hardcode_libdir_separator_F77=':' 15262 link_all_deplibs_F77=yes 15263 15264 if test "$GCC" = yes; then 15265 case $host_os in aix4.[012]|aix4.[012].*) 15266 # We only want to do this on AIX 4.2 and lower, the check 15267 # below for broken collect2 doesn't work under 4.3+ 15268 collect2name=`${CC} -print-prog-name=collect2` 15269 if test -f "$collect2name" && \ 15270 strings "$collect2name" | grep resolve_lib_name >/dev/null 15271 then 15272 # We have reworked collect2 15273 hardcode_direct_F77=yes 15274 else 15275 # We have old collect2 15276 hardcode_direct_F77=unsupported 15277 # It fails to find uninstalled libraries when the uninstalled 15278 # path is not listed in the libpath. Setting hardcode_minus_L 15279 # to unsupported forces relinking 15280 hardcode_minus_L_F77=yes 15281 hardcode_libdir_flag_spec_F77='-L$libdir' 15282 hardcode_libdir_separator_F77= 15283 fi 15284 ;; 15285 esac 15286 shared_flag='-shared' 15287 if test "$aix_use_runtimelinking" = yes; then 15288 shared_flag="$shared_flag "'${wl}-G' 15289 fi 15290 else 15291 # not using gcc 15292 if test "$host_cpu" = ia64; then 15293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15294 # chokes on -Wl,-G. The following line is correct: 15295 shared_flag='-G' 15296 else 15297 if test "$aix_use_runtimelinking" = yes; then 15298 shared_flag='${wl}-G' 15299 else 15300 shared_flag='${wl}-bM:SRE' 15301 fi 15302 fi 15303 fi 15304 15305 # It seems that -bexpall does not export symbols beginning with 15306 # underscore (_), so it is better to generate a list of symbols to export. 15307 always_export_symbols_F77=yes 15308 if test "$aix_use_runtimelinking" = yes; then 15309 # Warning - without using the other runtime loading flags (-brtl), 15310 # -berok will link without error, but may produce a broken library. 15311 allow_undefined_flag_F77='-berok' 15312 # Determine the default libpath from the value encoded in an empty executable. 15313 cat >conftest.$ac_ext <<_ACEOF 15314 program main 15315 15316 end 15317_ACEOF 15318rm -f conftest.$ac_objext conftest$ac_exeext 15319if { (ac_try="$ac_link" 15320case "(($ac_try" in 15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15322 *) ac_try_echo=$ac_try;; 15323esac 15324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15325 (eval "$ac_link") 2>conftest.er1 15326 ac_status=$? 15327 grep -v '^ *+' conftest.er1 >conftest.err 15328 rm -f conftest.er1 15329 cat conftest.err >&5 15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15331 (exit $ac_status); } && 15332 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15333 { (case "(($ac_try" in 15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15335 *) ac_try_echo=$ac_try;; 15336esac 15337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15338 (eval "$ac_try") 2>&5 15339 ac_status=$? 15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15341 (exit $ac_status); }; } && 15342 { ac_try='test -s conftest$ac_exeext' 15343 { (case "(($ac_try" in 15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15345 *) ac_try_echo=$ac_try;; 15346esac 15347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15348 (eval "$ac_try") 2>&5 15349 ac_status=$? 15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15351 (exit $ac_status); }; }; then 15352 15353aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15354}'` 15355# Check for a 64-bit object if we didn't find anything. 15356if 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; } 15357}'`; fi 15358else 15359 echo "$as_me: failed program was:" >&5 15360sed 's/^/| /' conftest.$ac_ext >&5 15361 15362 15363fi 15364 15365rm -f core conftest.err conftest.$ac_objext \ 15366 conftest$ac_exeext conftest.$ac_ext 15367if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15368 15369 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15370 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" 15371 else 15372 if test "$host_cpu" = ia64; then 15373 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15374 allow_undefined_flag_F77="-z nodefs" 15375 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" 15376 else 15377 # Determine the default libpath from the value encoded in an empty executable. 15378 cat >conftest.$ac_ext <<_ACEOF 15379 program main 15380 15381 end 15382_ACEOF 15383rm -f conftest.$ac_objext conftest$ac_exeext 15384if { (ac_try="$ac_link" 15385case "(($ac_try" in 15386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15387 *) ac_try_echo=$ac_try;; 15388esac 15389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15390 (eval "$ac_link") 2>conftest.er1 15391 ac_status=$? 15392 grep -v '^ *+' conftest.er1 >conftest.err 15393 rm -f conftest.er1 15394 cat conftest.err >&5 15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15396 (exit $ac_status); } && 15397 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15398 { (case "(($ac_try" in 15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15400 *) ac_try_echo=$ac_try;; 15401esac 15402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15403 (eval "$ac_try") 2>&5 15404 ac_status=$? 15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15406 (exit $ac_status); }; } && 15407 { ac_try='test -s conftest$ac_exeext' 15408 { (case "(($ac_try" in 15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15410 *) ac_try_echo=$ac_try;; 15411esac 15412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15413 (eval "$ac_try") 2>&5 15414 ac_status=$? 15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15416 (exit $ac_status); }; }; then 15417 15418aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15419}'` 15420# Check for a 64-bit object if we didn't find anything. 15421if 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; } 15422}'`; fi 15423else 15424 echo "$as_me: failed program was:" >&5 15425sed 's/^/| /' conftest.$ac_ext >&5 15426 15427 15428fi 15429 15430rm -f core conftest.err conftest.$ac_objext \ 15431 conftest$ac_exeext conftest.$ac_ext 15432if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15433 15434 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15435 # Warning - without using the other run time loading flags, 15436 # -berok will link without error, but may produce a broken library. 15437 no_undefined_flag_F77=' ${wl}-bernotok' 15438 allow_undefined_flag_F77=' ${wl}-berok' 15439 # Exported symbols can be pulled into shared objects from archives 15440 whole_archive_flag_spec_F77='$convenience' 15441 archive_cmds_need_lc_F77=yes 15442 # This is similar to how AIX traditionally builds its shared libraries. 15443 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' 15444 fi 15445 fi 15446 ;; 15447 15448 amigaos*) 15449 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)' 15450 hardcode_libdir_flag_spec_F77='-L$libdir' 15451 hardcode_minus_L_F77=yes 15452 # see comment about different semantics on the GNU ld section 15453 ld_shlibs_F77=no 15454 ;; 15455 15456 bsdi[45]*) 15457 export_dynamic_flag_spec_F77=-rdynamic 15458 ;; 15459 15460 cygwin* | mingw* | pw32*) 15461 # When not using gcc, we currently assume that we are using 15462 # Microsoft Visual C++. 15463 # hardcode_libdir_flag_spec is actually meaningless, as there is 15464 # no search path for DLLs. 15465 hardcode_libdir_flag_spec_F77=' ' 15466 allow_undefined_flag_F77=unsupported 15467 # Tell ltmain to make .lib files, not .a files. 15468 libext=lib 15469 # Tell ltmain to make .dll files, not .so files. 15470 shrext_cmds=".dll" 15471 # FIXME: Setting linknames here is a bad hack. 15472 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15473 # The linker will automatically build a .lib file if we build a DLL. 15474 old_archive_From_new_cmds_F77='true' 15475 # FIXME: Should let the user specify the lib program. 15476 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15477 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15478 enable_shared_with_static_runtimes_F77=yes 15479 ;; 15480 15481 darwin* | rhapsody*) 15482 case $host_os in 15483 rhapsody* | darwin1.[012]) 15484 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15485 ;; 15486 *) # Darwin 1.3 on 15487 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15488 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15489 else 15490 case ${MACOSX_DEPLOYMENT_TARGET} in 15491 10.[012]) 15492 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15493 ;; 15494 10.*) 15495 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15496 ;; 15497 esac 15498 fi 15499 ;; 15500 esac 15501 archive_cmds_need_lc_F77=no 15502 hardcode_direct_F77=no 15503 hardcode_automatic_F77=yes 15504 hardcode_shlibpath_var_F77=unsupported 15505 whole_archive_flag_spec_F77='' 15506 link_all_deplibs_F77=yes 15507 if test "$GCC" = yes ; then 15508 output_verbose_link_cmd='echo' 15509 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15510 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15511 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15512 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}' 15513 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}' 15514 else 15515 case $cc_basename in 15516 xlc*) 15517 output_verbose_link_cmd='echo' 15518 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15519 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15520 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15521 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}' 15522 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}' 15523 ;; 15524 *) 15525 ld_shlibs_F77=no 15526 ;; 15527 esac 15528 fi 15529 ;; 15530 15531 dgux*) 15532 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15533 hardcode_libdir_flag_spec_F77='-L$libdir' 15534 hardcode_shlibpath_var_F77=no 15535 ;; 15536 15537 freebsd1*) 15538 ld_shlibs_F77=no 15539 ;; 15540 15541 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15542 # support. Future versions do this automatically, but an explicit c++rt0.o 15543 # does not break anything, and helps significantly (at the cost of a little 15544 # extra space). 15545 freebsd2.2*) 15546 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15547 hardcode_libdir_flag_spec_F77='-R$libdir' 15548 hardcode_direct_F77=yes 15549 hardcode_shlibpath_var_F77=no 15550 ;; 15551 15552 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15553 freebsd2*) 15554 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15555 hardcode_direct_F77=yes 15556 hardcode_minus_L_F77=yes 15557 hardcode_shlibpath_var_F77=no 15558 ;; 15559 15560 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15561 freebsd* | dragonfly*) 15562 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15563 hardcode_libdir_flag_spec_F77='-R$libdir' 15564 hardcode_direct_F77=yes 15565 hardcode_shlibpath_var_F77=no 15566 ;; 15567 15568 hpux9*) 15569 if test "$GCC" = yes; then 15570 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' 15571 else 15572 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' 15573 fi 15574 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15575 hardcode_libdir_separator_F77=: 15576 hardcode_direct_F77=yes 15577 15578 # hardcode_minus_L: Not really in the search PATH, 15579 # but as the default location of the library. 15580 hardcode_minus_L_F77=yes 15581 export_dynamic_flag_spec_F77='${wl}-E' 15582 ;; 15583 15584 hpux10*) 15585 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15586 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15587 else 15588 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15589 fi 15590 if test "$with_gnu_ld" = no; then 15591 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15592 hardcode_libdir_separator_F77=: 15593 15594 hardcode_direct_F77=yes 15595 export_dynamic_flag_spec_F77='${wl}-E' 15596 15597 # hardcode_minus_L: Not really in the search PATH, 15598 # but as the default location of the library. 15599 hardcode_minus_L_F77=yes 15600 fi 15601 ;; 15602 15603 hpux11*) 15604 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15605 case $host_cpu in 15606 hppa*64*) 15607 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15608 ;; 15609 ia64*) 15610 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15611 ;; 15612 *) 15613 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15614 ;; 15615 esac 15616 else 15617 case $host_cpu in 15618 hppa*64*) 15619 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15620 ;; 15621 ia64*) 15622 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15623 ;; 15624 *) 15625 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15626 ;; 15627 esac 15628 fi 15629 if test "$with_gnu_ld" = no; then 15630 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15631 hardcode_libdir_separator_F77=: 15632 15633 case $host_cpu in 15634 hppa*64*|ia64*) 15635 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15636 hardcode_direct_F77=no 15637 hardcode_shlibpath_var_F77=no 15638 ;; 15639 *) 15640 hardcode_direct_F77=yes 15641 export_dynamic_flag_spec_F77='${wl}-E' 15642 15643 # hardcode_minus_L: Not really in the search PATH, 15644 # but as the default location of the library. 15645 hardcode_minus_L_F77=yes 15646 ;; 15647 esac 15648 fi 15649 ;; 15650 15651 irix5* | irix6* | nonstopux*) 15652 if test "$GCC" = yes; then 15653 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' 15654 else 15655 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' 15656 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15657 fi 15658 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15659 hardcode_libdir_separator_F77=: 15660 link_all_deplibs_F77=yes 15661 ;; 15662 15663 netbsd* | netbsdelf*-gnu) 15664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15665 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15666 else 15667 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15668 fi 15669 hardcode_libdir_flag_spec_F77='-R$libdir' 15670 hardcode_direct_F77=yes 15671 hardcode_shlibpath_var_F77=no 15672 ;; 15673 15674 newsos6) 15675 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15676 hardcode_direct_F77=yes 15677 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15678 hardcode_libdir_separator_F77=: 15679 hardcode_shlibpath_var_F77=no 15680 ;; 15681 15682 openbsd*) 15683 hardcode_direct_F77=yes 15684 hardcode_shlibpath_var_F77=no 15685 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15686 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15687 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15688 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15689 export_dynamic_flag_spec_F77='${wl}-E' 15690 else 15691 case $host_os in 15692 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15693 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15694 hardcode_libdir_flag_spec_F77='-R$libdir' 15695 ;; 15696 *) 15697 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15698 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15699 ;; 15700 esac 15701 fi 15702 ;; 15703 15704 os2*) 15705 hardcode_libdir_flag_spec_F77='-L$libdir' 15706 hardcode_minus_L_F77=yes 15707 allow_undefined_flag_F77=unsupported 15708 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' 15709 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15710 ;; 15711 15712 osf3*) 15713 if test "$GCC" = yes; then 15714 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15715 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' 15716 else 15717 allow_undefined_flag_F77=' -expect_unresolved \*' 15718 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' 15719 fi 15720 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15721 hardcode_libdir_separator_F77=: 15722 ;; 15723 15724 osf4* | osf5*) # as osf3* with the addition of -msym flag 15725 if test "$GCC" = yes; then 15726 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15727 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' 15728 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15729 else 15730 allow_undefined_flag_F77=' -expect_unresolved \*' 15731 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' 15732 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~ 15733 $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' 15734 15735 # Both c and cxx compiler support -rpath directly 15736 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15737 fi 15738 hardcode_libdir_separator_F77=: 15739 ;; 15740 15741 solaris*) 15742 no_undefined_flag_F77=' -z text' 15743 if test "$GCC" = yes; then 15744 wlarc='${wl}' 15745 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15746 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15747 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15748 else 15749 wlarc='' 15750 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15751 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15752 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15753 fi 15754 hardcode_libdir_flag_spec_F77='-R$libdir' 15755 hardcode_shlibpath_var_F77=no 15756 case $host_os in 15757 solaris2.[0-5] | solaris2.[0-5].*) ;; 15758 *) 15759 # The compiler driver will combine linker options so we 15760 # cannot just pass the convience library names through 15761 # without $wl, iff we do not link with $LD. 15762 # Luckily, gcc supports the same syntax we need for Sun Studio. 15763 # Supported since Solaris 2.6 (maybe 2.5.1?) 15764 case $wlarc in 15765 '') 15766 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15767 *) 15768 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' ;; 15769 esac ;; 15770 esac 15771 link_all_deplibs_F77=yes 15772 ;; 15773 15774 sunos4*) 15775 if test "x$host_vendor" = xsequent; then 15776 # Use $CC to link under sequent, because it throws in some extra .o 15777 # files that make .init and .fini sections work. 15778 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15779 else 15780 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15781 fi 15782 hardcode_libdir_flag_spec_F77='-L$libdir' 15783 hardcode_direct_F77=yes 15784 hardcode_minus_L_F77=yes 15785 hardcode_shlibpath_var_F77=no 15786 ;; 15787 15788 sysv4) 15789 case $host_vendor in 15790 sni) 15791 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15792 hardcode_direct_F77=yes # is this really true??? 15793 ;; 15794 siemens) 15795 ## LD is ld it makes a PLAMLIB 15796 ## CC just makes a GrossModule. 15797 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15798 reload_cmds_F77='$CC -r -o $output$reload_objs' 15799 hardcode_direct_F77=no 15800 ;; 15801 motorola) 15802 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15803 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15804 ;; 15805 esac 15806 runpath_var='LD_RUN_PATH' 15807 hardcode_shlibpath_var_F77=no 15808 ;; 15809 15810 sysv4.3*) 15811 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15812 hardcode_shlibpath_var_F77=no 15813 export_dynamic_flag_spec_F77='-Bexport' 15814 ;; 15815 15816 sysv4*MP*) 15817 if test -d /usr/nec; then 15818 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15819 hardcode_shlibpath_var_F77=no 15820 runpath_var=LD_RUN_PATH 15821 hardcode_runpath_var=yes 15822 ld_shlibs_F77=yes 15823 fi 15824 ;; 15825 15826 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15827 no_undefined_flag_F77='${wl}-z,text' 15828 archive_cmds_need_lc_F77=no 15829 hardcode_shlibpath_var_F77=no 15830 runpath_var='LD_RUN_PATH' 15831 15832 if test "$GCC" = yes; then 15833 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15834 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15835 else 15836 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15837 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15838 fi 15839 ;; 15840 15841 sysv5* | sco3.2v5* | sco5v6*) 15842 # Note: We can NOT use -z defs as we might desire, because we do not 15843 # link with -lc, and that would cause any symbols used from libc to 15844 # always be unresolved, which means just about no library would 15845 # ever link correctly. If we're not using GNU ld we use -z text 15846 # though, which does catch some bad symbols but isn't as heavy-handed 15847 # as -z defs. 15848 no_undefined_flag_F77='${wl}-z,text' 15849 allow_undefined_flag_F77='${wl}-z,nodefs' 15850 archive_cmds_need_lc_F77=no 15851 hardcode_shlibpath_var_F77=no 15852 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15853 hardcode_libdir_separator_F77=':' 15854 link_all_deplibs_F77=yes 15855 export_dynamic_flag_spec_F77='${wl}-Bexport' 15856 runpath_var='LD_RUN_PATH' 15857 15858 if test "$GCC" = yes; then 15859 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15860 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15861 else 15862 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15863 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15864 fi 15865 ;; 15866 15867 uts4*) 15868 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15869 hardcode_libdir_flag_spec_F77='-L$libdir' 15870 hardcode_shlibpath_var_F77=no 15871 ;; 15872 15873 *) 15874 ld_shlibs_F77=no 15875 ;; 15876 esac 15877 fi 15878 15879{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15880echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15881test "$ld_shlibs_F77" = no && can_build_shared=no 15882 15883# 15884# Do we need to explicitly link libc? 15885# 15886case "x$archive_cmds_need_lc_F77" in 15887x|xyes) 15888 # Assume -lc should be added 15889 archive_cmds_need_lc_F77=yes 15890 15891 if test "$enable_shared" = yes && test "$GCC" = yes; then 15892 case $archive_cmds_F77 in 15893 *'~'*) 15894 # FIXME: we may have to deal with multi-command sequences. 15895 ;; 15896 '$CC '*) 15897 # Test whether the compiler implicitly links with -lc since on some 15898 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15899 # to ld, don't add -lc before -lgcc. 15900 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15901echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15902 $rm conftest* 15903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15904 15905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15906 (eval $ac_compile) 2>&5 15907 ac_status=$? 15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15909 (exit $ac_status); } 2>conftest.err; then 15910 soname=conftest 15911 lib=conftest 15912 libobjs=conftest.$ac_objext 15913 deplibs= 15914 wl=$lt_prog_compiler_wl_F77 15915 pic_flag=$lt_prog_compiler_pic_F77 15916 compiler_flags=-v 15917 linker_flags=-v 15918 verstring= 15919 output_objdir=. 15920 libname=conftest 15921 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15922 allow_undefined_flag_F77= 15923 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15924 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15925 ac_status=$? 15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15927 (exit $ac_status); } 15928 then 15929 archive_cmds_need_lc_F77=no 15930 else 15931 archive_cmds_need_lc_F77=yes 15932 fi 15933 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15934 else 15935 cat conftest.err 1>&5 15936 fi 15937 $rm conftest* 15938 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15939echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15940 ;; 15941 esac 15942 fi 15943 ;; 15944esac 15945 15946{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15947echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15948library_names_spec= 15949libname_spec='lib$name' 15950soname_spec= 15951shrext_cmds=".so" 15952postinstall_cmds= 15953postuninstall_cmds= 15954finish_cmds= 15955finish_eval= 15956shlibpath_var= 15957shlibpath_overrides_runpath=unknown 15958version_type=none 15959dynamic_linker="$host_os ld.so" 15960sys_lib_dlsearch_path_spec="/lib /usr/lib" 15961if test "$GCC" = yes; then 15962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15963 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15964 # if the path contains ";" then we assume it to be the separator 15965 # otherwise default to the standard path separator (i.e. ":") - it is 15966 # assumed that no part of a normal pathname contains ";" but that should 15967 # okay in the real world where ";" in dirpaths is itself problematic. 15968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15969 else 15970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15971 fi 15972else 15973 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15974fi 15975need_lib_prefix=unknown 15976hardcode_into_libs=no 15977 15978# when you set need_version to no, make sure it does not cause -set_version 15979# flags to be left without arguments 15980need_version=unknown 15981 15982case $host_os in 15983aix3*) 15984 version_type=linux 15985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15986 shlibpath_var=LIBPATH 15987 15988 # AIX 3 has no versioning support, so we append a major version to the name. 15989 soname_spec='${libname}${release}${shared_ext}$major' 15990 ;; 15991 15992aix4* | aix5*) 15993 version_type=linux 15994 need_lib_prefix=no 15995 need_version=no 15996 hardcode_into_libs=yes 15997 if test "$host_cpu" = ia64; then 15998 # AIX 5 supports IA64 15999 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16000 shlibpath_var=LD_LIBRARY_PATH 16001 else 16002 # With GCC up to 2.95.x, collect2 would create an import file 16003 # for dependence libraries. The import file would start with 16004 # the line `#! .'. This would cause the generated library to 16005 # depend on `.', always an invalid library. This was fixed in 16006 # development snapshots of GCC prior to 3.0. 16007 case $host_os in 16008 aix4 | aix4.[01] | aix4.[01].*) 16009 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16010 echo ' yes ' 16011 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16012 : 16013 else 16014 can_build_shared=no 16015 fi 16016 ;; 16017 esac 16018 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16019 # soname into executable. Probably we can add versioning support to 16020 # collect2, so additional links can be useful in future. 16021 if test "$aix_use_runtimelinking" = yes; then 16022 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16023 # instead of lib<name>.a to let people know that these are not 16024 # typical AIX shared libraries. 16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16026 else 16027 # We preserve .a as extension for shared libraries through AIX4.2 16028 # and later when we are not doing run time linking. 16029 library_names_spec='${libname}${release}.a $libname.a' 16030 soname_spec='${libname}${release}${shared_ext}$major' 16031 fi 16032 shlibpath_var=LIBPATH 16033 fi 16034 ;; 16035 16036amigaos*) 16037 library_names_spec='$libname.ixlibrary $libname.a' 16038 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16039 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' 16040 ;; 16041 16042beos*) 16043 library_names_spec='${libname}${shared_ext}' 16044 dynamic_linker="$host_os ld.so" 16045 shlibpath_var=LIBRARY_PATH 16046 ;; 16047 16048bsdi[45]*) 16049 version_type=linux 16050 need_version=no 16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16052 soname_spec='${libname}${release}${shared_ext}$major' 16053 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16054 shlibpath_var=LD_LIBRARY_PATH 16055 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16056 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16057 # the default ld.so.conf also contains /usr/contrib/lib and 16058 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16059 # libtool to hard-code these into programs 16060 ;; 16061 16062cygwin* | mingw* | pw32*) 16063 version_type=windows 16064 shrext_cmds=".dll" 16065 need_version=no 16066 need_lib_prefix=no 16067 16068 case $GCC,$host_os in 16069 yes,cygwin* | yes,mingw* | yes,pw32*) 16070 library_names_spec='$libname.dll.a' 16071 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16072 postinstall_cmds='base_file=`basename \${file}`~ 16073 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16074 dldir=$destdir/`dirname \$dlpath`~ 16075 test -d \$dldir || mkdir -p \$dldir~ 16076 $install_prog $dir/$dlname \$dldir/$dlname~ 16077 chmod a+x \$dldir/$dlname' 16078 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16079 dlpath=$dir/\$dldll~ 16080 $rm \$dlpath' 16081 shlibpath_overrides_runpath=yes 16082 16083 case $host_os in 16084 cygwin*) 16085 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16086 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16087 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16088 ;; 16089 mingw*) 16090 # MinGW DLLs use traditional 'lib' prefix 16091 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16092 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16093 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16094 # It is most probably a Windows format PATH printed by 16095 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16096 # path with ; separators, and with drive letters. We can handle the 16097 # drive letters (cygwin fileutils understands them), so leave them, 16098 # especially as we might pass files found there to a mingw objdump, 16099 # which wouldn't understand a cygwinified path. Ahh. 16100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16101 else 16102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16103 fi 16104 ;; 16105 pw32*) 16106 # pw32 DLLs use 'pw' prefix rather than 'lib' 16107 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16108 ;; 16109 esac 16110 ;; 16111 16112 *) 16113 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16114 ;; 16115 esac 16116 dynamic_linker='Win32 ld.exe' 16117 # FIXME: first we should search . and the directory the executable is in 16118 shlibpath_var=PATH 16119 ;; 16120 16121darwin* | rhapsody*) 16122 dynamic_linker="$host_os dyld" 16123 version_type=darwin 16124 need_lib_prefix=no 16125 need_version=no 16126 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16127 soname_spec='${libname}${release}${major}$shared_ext' 16128 shlibpath_overrides_runpath=yes 16129 shlibpath_var=DYLD_LIBRARY_PATH 16130 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16131 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16132 if test "$GCC" = yes; then 16133 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"` 16134 else 16135 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16136 fi 16137 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16138 ;; 16139 16140dgux*) 16141 version_type=linux 16142 need_lib_prefix=no 16143 need_version=no 16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16145 soname_spec='${libname}${release}${shared_ext}$major' 16146 shlibpath_var=LD_LIBRARY_PATH 16147 ;; 16148 16149freebsd1*) 16150 dynamic_linker=no 16151 ;; 16152 16153freebsd* | dragonfly*) 16154 # DragonFly does not have aout. When/if they implement a new 16155 # versioning mechanism, adjust this. 16156 if test -x /usr/bin/objformat; then 16157 objformat=`/usr/bin/objformat` 16158 else 16159 case $host_os in 16160 freebsd[123]*) objformat=aout ;; 16161 *) objformat=elf ;; 16162 esac 16163 fi 16164 version_type=freebsd-$objformat 16165 case $version_type in 16166 freebsd-elf*) 16167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16168 need_version=no 16169 need_lib_prefix=no 16170 ;; 16171 freebsd-*) 16172 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16173 need_version=yes 16174 ;; 16175 esac 16176 shlibpath_var=LD_LIBRARY_PATH 16177 case $host_os in 16178 freebsd2*) 16179 shlibpath_overrides_runpath=yes 16180 ;; 16181 freebsd3.[01]* | freebsdelf3.[01]*) 16182 shlibpath_overrides_runpath=yes 16183 hardcode_into_libs=yes 16184 ;; 16185 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16186 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16187 shlibpath_overrides_runpath=no 16188 hardcode_into_libs=yes 16189 ;; 16190 freebsd*) # from 4.6 on 16191 shlibpath_overrides_runpath=yes 16192 hardcode_into_libs=yes 16193 ;; 16194 esac 16195 ;; 16196 16197gnu*) 16198 version_type=linux 16199 need_lib_prefix=no 16200 need_version=no 16201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16202 soname_spec='${libname}${release}${shared_ext}$major' 16203 shlibpath_var=LD_LIBRARY_PATH 16204 hardcode_into_libs=yes 16205 ;; 16206 16207hpux9* | hpux10* | hpux11*) 16208 # Give a soname corresponding to the major version so that dld.sl refuses to 16209 # link against other versions. 16210 version_type=sunos 16211 need_lib_prefix=no 16212 need_version=no 16213 case $host_cpu in 16214 ia64*) 16215 shrext_cmds='.so' 16216 hardcode_into_libs=yes 16217 dynamic_linker="$host_os dld.so" 16218 shlibpath_var=LD_LIBRARY_PATH 16219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16221 soname_spec='${libname}${release}${shared_ext}$major' 16222 if test "X$HPUX_IA64_MODE" = X32; then 16223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16224 else 16225 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16226 fi 16227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16228 ;; 16229 hppa*64*) 16230 shrext_cmds='.sl' 16231 hardcode_into_libs=yes 16232 dynamic_linker="$host_os dld.sl" 16233 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16236 soname_spec='${libname}${release}${shared_ext}$major' 16237 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16239 ;; 16240 *) 16241 shrext_cmds='.sl' 16242 dynamic_linker="$host_os dld.sl" 16243 shlibpath_var=SHLIB_PATH 16244 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16246 soname_spec='${libname}${release}${shared_ext}$major' 16247 ;; 16248 esac 16249 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16250 postinstall_cmds='chmod 555 $lib' 16251 ;; 16252 16253interix3*) 16254 version_type=linux 16255 need_lib_prefix=no 16256 need_version=no 16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16258 soname_spec='${libname}${release}${shared_ext}$major' 16259 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16260 shlibpath_var=LD_LIBRARY_PATH 16261 shlibpath_overrides_runpath=no 16262 hardcode_into_libs=yes 16263 ;; 16264 16265irix5* | irix6* | nonstopux*) 16266 case $host_os in 16267 nonstopux*) version_type=nonstopux ;; 16268 *) 16269 if test "$lt_cv_prog_gnu_ld" = yes; then 16270 version_type=linux 16271 else 16272 version_type=irix 16273 fi ;; 16274 esac 16275 need_lib_prefix=no 16276 need_version=no 16277 soname_spec='${libname}${release}${shared_ext}$major' 16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16279 case $host_os in 16280 irix5* | nonstopux*) 16281 libsuff= shlibsuff= 16282 ;; 16283 *) 16284 case $LD in # libtool.m4 will add one of these switches to LD 16285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16286 libsuff= shlibsuff= libmagic=32-bit;; 16287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16288 libsuff=32 shlibsuff=N32 libmagic=N32;; 16289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16290 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16291 *) libsuff= shlibsuff= libmagic=never-match;; 16292 esac 16293 ;; 16294 esac 16295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16296 shlibpath_overrides_runpath=no 16297 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16298 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16299 hardcode_into_libs=yes 16300 ;; 16301 16302# No shared lib support for Linux oldld, aout, or coff. 16303linux*oldld* | linux*aout* | linux*coff*) 16304 dynamic_linker=no 16305 ;; 16306 16307# This must be Linux ELF. 16308linux* | k*bsd*-gnu) 16309 version_type=linux 16310 need_lib_prefix=no 16311 need_version=no 16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16313 soname_spec='${libname}${release}${shared_ext}$major' 16314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16315 shlibpath_var=LD_LIBRARY_PATH 16316 shlibpath_overrides_runpath=no 16317 # This implies no fast_install, which is unacceptable. 16318 # Some rework will be needed to allow for fast_install 16319 # before this can be enabled. 16320 hardcode_into_libs=yes 16321 16322 # Append ld.so.conf contents to the search path 16323 if test -f /etc/ld.so.conf; then 16324 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' ' '` 16325 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16326 fi 16327 16328 # We used to test for /lib/ld.so.1 and disable shared libraries on 16329 # powerpc, because MkLinux only supported shared libraries with the 16330 # GNU dynamic linker. Since this was broken with cross compilers, 16331 # most powerpc-linux boxes support dynamic linking these days and 16332 # people can always --disable-shared, the test was removed, and we 16333 # assume the GNU/Linux dynamic linker is in use. 16334 dynamic_linker='GNU/Linux ld.so' 16335 ;; 16336 16337netbsdelf*-gnu) 16338 version_type=linux 16339 need_lib_prefix=no 16340 need_version=no 16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16342 soname_spec='${libname}${release}${shared_ext}$major' 16343 shlibpath_var=LD_LIBRARY_PATH 16344 shlibpath_overrides_runpath=no 16345 hardcode_into_libs=yes 16346 dynamic_linker='NetBSD ld.elf_so' 16347 ;; 16348 16349netbsd*) 16350 version_type=sunos 16351 need_lib_prefix=no 16352 need_version=no 16353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16356 dynamic_linker='NetBSD (a.out) ld.so' 16357 else 16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16359 soname_spec='${libname}${release}${shared_ext}$major' 16360 dynamic_linker='NetBSD ld.elf_so' 16361 fi 16362 shlibpath_var=LD_LIBRARY_PATH 16363 shlibpath_overrides_runpath=yes 16364 hardcode_into_libs=yes 16365 ;; 16366 16367newsos6) 16368 version_type=linux 16369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16370 shlibpath_var=LD_LIBRARY_PATH 16371 shlibpath_overrides_runpath=yes 16372 ;; 16373 16374nto-qnx*) 16375 version_type=linux 16376 need_lib_prefix=no 16377 need_version=no 16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16379 soname_spec='${libname}${release}${shared_ext}$major' 16380 shlibpath_var=LD_LIBRARY_PATH 16381 shlibpath_overrides_runpath=yes 16382 ;; 16383 16384openbsd*) 16385 version_type=sunos 16386 sys_lib_dlsearch_path_spec="/usr/lib" 16387 need_lib_prefix=no 16388 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16389 case $host_os in 16390 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16391 *) need_version=no ;; 16392 esac 16393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16395 shlibpath_var=LD_LIBRARY_PATH 16396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16397 case $host_os in 16398 openbsd2.[89] | openbsd2.[89].*) 16399 shlibpath_overrides_runpath=no 16400 ;; 16401 *) 16402 shlibpath_overrides_runpath=yes 16403 ;; 16404 esac 16405 else 16406 shlibpath_overrides_runpath=yes 16407 fi 16408 ;; 16409 16410os2*) 16411 libname_spec='$name' 16412 shrext_cmds=".dll" 16413 need_lib_prefix=no 16414 library_names_spec='$libname${shared_ext} $libname.a' 16415 dynamic_linker='OS/2 ld.exe' 16416 shlibpath_var=LIBPATH 16417 ;; 16418 16419osf3* | osf4* | osf5*) 16420 version_type=osf 16421 need_lib_prefix=no 16422 need_version=no 16423 soname_spec='${libname}${release}${shared_ext}$major' 16424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16425 shlibpath_var=LD_LIBRARY_PATH 16426 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16427 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16428 ;; 16429 16430solaris*) 16431 version_type=linux 16432 need_lib_prefix=no 16433 need_version=no 16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16435 soname_spec='${libname}${release}${shared_ext}$major' 16436 shlibpath_var=LD_LIBRARY_PATH 16437 shlibpath_overrides_runpath=yes 16438 hardcode_into_libs=yes 16439 # ldd complains unless libraries are executable 16440 postinstall_cmds='chmod +x $lib' 16441 ;; 16442 16443sunos4*) 16444 version_type=sunos 16445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16446 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16447 shlibpath_var=LD_LIBRARY_PATH 16448 shlibpath_overrides_runpath=yes 16449 if test "$with_gnu_ld" = yes; then 16450 need_lib_prefix=no 16451 fi 16452 need_version=yes 16453 ;; 16454 16455sysv4 | sysv4.3*) 16456 version_type=linux 16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16458 soname_spec='${libname}${release}${shared_ext}$major' 16459 shlibpath_var=LD_LIBRARY_PATH 16460 case $host_vendor in 16461 sni) 16462 shlibpath_overrides_runpath=no 16463 need_lib_prefix=no 16464 export_dynamic_flag_spec='${wl}-Blargedynsym' 16465 runpath_var=LD_RUN_PATH 16466 ;; 16467 siemens) 16468 need_lib_prefix=no 16469 ;; 16470 motorola) 16471 need_lib_prefix=no 16472 need_version=no 16473 shlibpath_overrides_runpath=no 16474 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16475 ;; 16476 esac 16477 ;; 16478 16479sysv4*MP*) 16480 if test -d /usr/nec ;then 16481 version_type=linux 16482 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16483 soname_spec='$libname${shared_ext}.$major' 16484 shlibpath_var=LD_LIBRARY_PATH 16485 fi 16486 ;; 16487 16488sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16489 version_type=freebsd-elf 16490 need_lib_prefix=no 16491 need_version=no 16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16493 soname_spec='${libname}${release}${shared_ext}$major' 16494 shlibpath_var=LD_LIBRARY_PATH 16495 hardcode_into_libs=yes 16496 if test "$with_gnu_ld" = yes; then 16497 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16498 shlibpath_overrides_runpath=no 16499 else 16500 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16501 shlibpath_overrides_runpath=yes 16502 case $host_os in 16503 sco3.2v5*) 16504 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16505 ;; 16506 esac 16507 fi 16508 sys_lib_dlsearch_path_spec='/usr/lib' 16509 ;; 16510 16511uts4*) 16512 version_type=linux 16513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16514 soname_spec='${libname}${release}${shared_ext}$major' 16515 shlibpath_var=LD_LIBRARY_PATH 16516 ;; 16517 16518*) 16519 dynamic_linker=no 16520 ;; 16521esac 16522{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16523echo "${ECHO_T}$dynamic_linker" >&6; } 16524test "$dynamic_linker" = no && can_build_shared=no 16525 16526variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16527if test "$GCC" = yes; then 16528 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16529fi 16530 16531{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16532echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16533hardcode_action_F77= 16534if test -n "$hardcode_libdir_flag_spec_F77" || \ 16535 test -n "$runpath_var_F77" || \ 16536 test "X$hardcode_automatic_F77" = "Xyes" ; then 16537 16538 # We can hardcode non-existant directories. 16539 if test "$hardcode_direct_F77" != no && 16540 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16541 # have to relink, otherwise we might link with an installed library 16542 # when we should be linking with a yet-to-be-installed one 16543 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16544 test "$hardcode_minus_L_F77" != no; then 16545 # Linking always hardcodes the temporary library directory. 16546 hardcode_action_F77=relink 16547 else 16548 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16549 hardcode_action_F77=immediate 16550 fi 16551else 16552 # We cannot hardcode anything, or else we can only hardcode existing 16553 # directories. 16554 hardcode_action_F77=unsupported 16555fi 16556{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16557echo "${ECHO_T}$hardcode_action_F77" >&6; } 16558 16559if test "$hardcode_action_F77" = relink; then 16560 # Fast installation is not supported 16561 enable_fast_install=no 16562elif test "$shlibpath_overrides_runpath" = yes || 16563 test "$enable_shared" = no; then 16564 # Fast installation is not necessary 16565 enable_fast_install=needless 16566fi 16567 16568 16569# The else clause should only fire when bootstrapping the 16570# libtool distribution, otherwise you forgot to ship ltmain.sh 16571# with your package, and you will get complaints that there are 16572# no rules to generate ltmain.sh. 16573if test -f "$ltmain"; then 16574 # See if we are running on zsh, and set the options which allow our commands through 16575 # without removal of \ escapes. 16576 if test -n "${ZSH_VERSION+set}" ; then 16577 setopt NO_GLOB_SUBST 16578 fi 16579 # Now quote all the things that may contain metacharacters while being 16580 # careful not to overquote the AC_SUBSTed values. We take copies of the 16581 # variables and quote the copies for generation of the libtool script. 16582 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16583 SED SHELL STRIP \ 16584 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16585 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16586 deplibs_check_method reload_flag reload_cmds need_locks \ 16587 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16588 lt_cv_sys_global_symbol_to_c_name_address \ 16589 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16590 old_postinstall_cmds old_postuninstall_cmds \ 16591 compiler_F77 \ 16592 CC_F77 \ 16593 LD_F77 \ 16594 lt_prog_compiler_wl_F77 \ 16595 lt_prog_compiler_pic_F77 \ 16596 lt_prog_compiler_static_F77 \ 16597 lt_prog_compiler_no_builtin_flag_F77 \ 16598 export_dynamic_flag_spec_F77 \ 16599 thread_safe_flag_spec_F77 \ 16600 whole_archive_flag_spec_F77 \ 16601 enable_shared_with_static_runtimes_F77 \ 16602 old_archive_cmds_F77 \ 16603 old_archive_from_new_cmds_F77 \ 16604 predep_objects_F77 \ 16605 postdep_objects_F77 \ 16606 predeps_F77 \ 16607 postdeps_F77 \ 16608 compiler_lib_search_path_F77 \ 16609 archive_cmds_F77 \ 16610 archive_expsym_cmds_F77 \ 16611 postinstall_cmds_F77 \ 16612 postuninstall_cmds_F77 \ 16613 old_archive_from_expsyms_cmds_F77 \ 16614 allow_undefined_flag_F77 \ 16615 no_undefined_flag_F77 \ 16616 export_symbols_cmds_F77 \ 16617 hardcode_libdir_flag_spec_F77 \ 16618 hardcode_libdir_flag_spec_ld_F77 \ 16619 hardcode_libdir_separator_F77 \ 16620 hardcode_automatic_F77 \ 16621 module_cmds_F77 \ 16622 module_expsym_cmds_F77 \ 16623 lt_cv_prog_compiler_c_o_F77 \ 16624 exclude_expsyms_F77 \ 16625 include_expsyms_F77; do 16626 16627 case $var in 16628 old_archive_cmds_F77 | \ 16629 old_archive_from_new_cmds_F77 | \ 16630 archive_cmds_F77 | \ 16631 archive_expsym_cmds_F77 | \ 16632 module_cmds_F77 | \ 16633 module_expsym_cmds_F77 | \ 16634 old_archive_from_expsyms_cmds_F77 | \ 16635 export_symbols_cmds_F77 | \ 16636 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16637 postinstall_cmds | postuninstall_cmds | \ 16638 old_postinstall_cmds | old_postuninstall_cmds | \ 16639 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16640 # Double-quote double-evaled strings. 16641 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16642 ;; 16643 *) 16644 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16645 ;; 16646 esac 16647 done 16648 16649 case $lt_echo in 16650 *'\$0 --fallback-echo"') 16651 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16652 ;; 16653 esac 16654 16655cfgfile="$ofile" 16656 16657 cat <<__EOF__ >> "$cfgfile" 16658# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16659 16660# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16661 16662# Shell to use when invoking shell scripts. 16663SHELL=$lt_SHELL 16664 16665# Whether or not to build shared libraries. 16666build_libtool_libs=$enable_shared 16667 16668# Whether or not to build static libraries. 16669build_old_libs=$enable_static 16670 16671# Whether or not to add -lc for building shared libraries. 16672build_libtool_need_lc=$archive_cmds_need_lc_F77 16673 16674# Whether or not to disallow shared libs when runtime libs are static 16675allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16676 16677# Whether or not to optimize for fast installation. 16678fast_install=$enable_fast_install 16679 16680# The host system. 16681host_alias=$host_alias 16682host=$host 16683host_os=$host_os 16684 16685# The build system. 16686build_alias=$build_alias 16687build=$build 16688build_os=$build_os 16689 16690# An echo program that does not interpret backslashes. 16691echo=$lt_echo 16692 16693# The archiver. 16694AR=$lt_AR 16695AR_FLAGS=$lt_AR_FLAGS 16696 16697# A C compiler. 16698LTCC=$lt_LTCC 16699 16700# LTCC compiler flags. 16701LTCFLAGS=$lt_LTCFLAGS 16702 16703# A language-specific compiler. 16704CC=$lt_compiler_F77 16705 16706# Is the compiler the GNU C compiler? 16707with_gcc=$GCC_F77 16708 16709# An ERE matcher. 16710EGREP=$lt_EGREP 16711 16712# The linker used to build libraries. 16713LD=$lt_LD_F77 16714 16715# Whether we need hard or soft links. 16716LN_S=$lt_LN_S 16717 16718# A BSD-compatible nm program. 16719NM=$lt_NM 16720 16721# A symbol stripping program 16722STRIP=$lt_STRIP 16723 16724# Used to examine libraries when file_magic_cmd begins "file" 16725MAGIC_CMD=$MAGIC_CMD 16726 16727# Used on cygwin: DLL creation program. 16728DLLTOOL="$DLLTOOL" 16729 16730# Used on cygwin: object dumper. 16731OBJDUMP="$OBJDUMP" 16732 16733# Used on cygwin: assembler. 16734AS="$AS" 16735 16736# The name of the directory that contains temporary libtool files. 16737objdir=$objdir 16738 16739# How to create reloadable object files. 16740reload_flag=$lt_reload_flag 16741reload_cmds=$lt_reload_cmds 16742 16743# How to pass a linker flag through the compiler. 16744wl=$lt_lt_prog_compiler_wl_F77 16745 16746# Object file suffix (normally "o"). 16747objext="$ac_objext" 16748 16749# Old archive suffix (normally "a"). 16750libext="$libext" 16751 16752# Shared library suffix (normally ".so"). 16753shrext_cmds='$shrext_cmds' 16754 16755# Executable file suffix (normally ""). 16756exeext="$exeext" 16757 16758# Additional compiler flags for building library objects. 16759pic_flag=$lt_lt_prog_compiler_pic_F77 16760pic_mode=$pic_mode 16761 16762# What is the maximum length of a command? 16763max_cmd_len=$lt_cv_sys_max_cmd_len 16764 16765# Does compiler simultaneously support -c and -o options? 16766compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16767 16768# Must we lock files when doing compilation? 16769need_locks=$lt_need_locks 16770 16771# Do we need the lib prefix for modules? 16772need_lib_prefix=$need_lib_prefix 16773 16774# Do we need a version for libraries? 16775need_version=$need_version 16776 16777# Whether dlopen is supported. 16778dlopen_support=$enable_dlopen 16779 16780# Whether dlopen of programs is supported. 16781dlopen_self=$enable_dlopen_self 16782 16783# Whether dlopen of statically linked programs is supported. 16784dlopen_self_static=$enable_dlopen_self_static 16785 16786# Compiler flag to prevent dynamic linking. 16787link_static_flag=$lt_lt_prog_compiler_static_F77 16788 16789# Compiler flag to turn off builtin functions. 16790no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16791 16792# Compiler flag to allow reflexive dlopens. 16793export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16794 16795# Compiler flag to generate shared objects directly from archives. 16796whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16797 16798# Compiler flag to generate thread-safe objects. 16799thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16800 16801# Library versioning type. 16802version_type=$version_type 16803 16804# Format of library name prefix. 16805libname_spec=$lt_libname_spec 16806 16807# List of archive names. First name is the real one, the rest are links. 16808# The last name is the one that the linker finds with -lNAME. 16809library_names_spec=$lt_library_names_spec 16810 16811# The coded name of the library, if different from the real name. 16812soname_spec=$lt_soname_spec 16813 16814# Commands used to build and install an old-style archive. 16815RANLIB=$lt_RANLIB 16816old_archive_cmds=$lt_old_archive_cmds_F77 16817old_postinstall_cmds=$lt_old_postinstall_cmds 16818old_postuninstall_cmds=$lt_old_postuninstall_cmds 16819 16820# Create an old-style archive from a shared archive. 16821old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16822 16823# Create a temporary old-style archive to link instead of a shared archive. 16824old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16825 16826# Commands used to build and install a shared archive. 16827archive_cmds=$lt_archive_cmds_F77 16828archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16829postinstall_cmds=$lt_postinstall_cmds 16830postuninstall_cmds=$lt_postuninstall_cmds 16831 16832# Commands used to build a loadable module (assumed same as above if empty) 16833module_cmds=$lt_module_cmds_F77 16834module_expsym_cmds=$lt_module_expsym_cmds_F77 16835 16836# Commands to strip libraries. 16837old_striplib=$lt_old_striplib 16838striplib=$lt_striplib 16839 16840# Dependencies to place before the objects being linked to create a 16841# shared library. 16842predep_objects=$lt_predep_objects_F77 16843 16844# Dependencies to place after the objects being linked to create a 16845# shared library. 16846postdep_objects=$lt_postdep_objects_F77 16847 16848# Dependencies to place before the objects being linked to create a 16849# shared library. 16850predeps=$lt_predeps_F77 16851 16852# Dependencies to place after the objects being linked to create a 16853# shared library. 16854postdeps=$lt_postdeps_F77 16855 16856# The library search path used internally by the compiler when linking 16857# a shared library. 16858compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16859 16860# Method to check whether dependent libraries are shared objects. 16861deplibs_check_method=$lt_deplibs_check_method 16862 16863# Command to use when deplibs_check_method == file_magic. 16864file_magic_cmd=$lt_file_magic_cmd 16865 16866# Flag that allows shared libraries with undefined symbols to be built. 16867allow_undefined_flag=$lt_allow_undefined_flag_F77 16868 16869# Flag that forces no undefined symbols. 16870no_undefined_flag=$lt_no_undefined_flag_F77 16871 16872# Commands used to finish a libtool library installation in a directory. 16873finish_cmds=$lt_finish_cmds 16874 16875# Same as above, but a single script fragment to be evaled but not shown. 16876finish_eval=$lt_finish_eval 16877 16878# Take the output of nm and produce a listing of raw symbols and C names. 16879global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16880 16881# Transform the output of nm in a proper C declaration 16882global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16883 16884# Transform the output of nm in a C name address pair 16885global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16886 16887# This is the shared library runtime path variable. 16888runpath_var=$runpath_var 16889 16890# This is the shared library path variable. 16891shlibpath_var=$shlibpath_var 16892 16893# Is shlibpath searched before the hard-coded library search path? 16894shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16895 16896# How to hardcode a shared library path into an executable. 16897hardcode_action=$hardcode_action_F77 16898 16899# Whether we should hardcode library paths into libraries. 16900hardcode_into_libs=$hardcode_into_libs 16901 16902# Flag to hardcode \$libdir into a binary during linking. 16903# This must work even if \$libdir does not exist. 16904hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16905 16906# If ld is used when linking, flag to hardcode \$libdir into 16907# a binary during linking. This must work even if \$libdir does 16908# not exist. 16909hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16910 16911# Whether we need a single -rpath flag with a separated argument. 16912hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16913 16914# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16915# resulting binary. 16916hardcode_direct=$hardcode_direct_F77 16917 16918# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16919# resulting binary. 16920hardcode_minus_L=$hardcode_minus_L_F77 16921 16922# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16923# the resulting binary. 16924hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16925 16926# Set to yes if building a shared library automatically hardcodes DIR into the library 16927# and all subsequent libraries and executables linked against it. 16928hardcode_automatic=$hardcode_automatic_F77 16929 16930# Variables whose values should be saved in libtool wrapper scripts and 16931# restored at relink time. 16932variables_saved_for_relink="$variables_saved_for_relink" 16933 16934# Whether libtool must link a program against all its dependency libraries. 16935link_all_deplibs=$link_all_deplibs_F77 16936 16937# Compile-time system search path for libraries 16938sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16939 16940# Run-time system search path for libraries 16941sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16942 16943# Fix the shell variable \$srcfile for the compiler. 16944fix_srcfile_path="$fix_srcfile_path_F77" 16945 16946# Set to yes if exported symbols are required. 16947always_export_symbols=$always_export_symbols_F77 16948 16949# The commands to list exported symbols. 16950export_symbols_cmds=$lt_export_symbols_cmds_F77 16951 16952# The commands to extract the exported symbol list from a shared archive. 16953extract_expsyms_cmds=$lt_extract_expsyms_cmds 16954 16955# Symbols that should not be listed in the preloaded symbols. 16956exclude_expsyms=$lt_exclude_expsyms_F77 16957 16958# Symbols that must always be exported. 16959include_expsyms=$lt_include_expsyms_F77 16960 16961# ### END LIBTOOL TAG CONFIG: $tagname 16962 16963__EOF__ 16964 16965 16966else 16967 # If there is no Makefile yet, we rely on a make rule to execute 16968 # `config.status --recheck' to rerun these tests and create the 16969 # libtool script then. 16970 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16971 if test -f "$ltmain_in"; then 16972 test -f Makefile && make "$ltmain" 16973 fi 16974fi 16975 16976 16977ac_ext=c 16978ac_cpp='$CPP $CPPFLAGS' 16979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16981ac_compiler_gnu=$ac_cv_c_compiler_gnu 16982 16983CC="$lt_save_CC" 16984 16985 else 16986 tagname="" 16987 fi 16988 ;; 16989 16990 GCJ) 16991 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16992 16993 16994# Source file extension for Java test sources. 16995ac_ext=java 16996 16997# Object file extension for compiled Java test sources. 16998objext=o 16999objext_GCJ=$objext 17000 17001# Code to be used in simple compile tests 17002lt_simple_compile_test_code="class foo {}\n" 17003 17004# Code to be used in simple link tests 17005lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 17006 17007# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17008 17009# If no C compiler was specified, use CC. 17010LTCC=${LTCC-"$CC"} 17011 17012# If no C compiler flags were specified, use CFLAGS. 17013LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17014 17015# Allow CC to be a program name with arguments. 17016compiler=$CC 17017 17018 17019# save warnings/boilerplate of simple test code 17020ac_outfile=conftest.$ac_objext 17021printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17022eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17023_lt_compiler_boilerplate=`cat conftest.err` 17024$rm conftest* 17025 17026ac_outfile=conftest.$ac_objext 17027printf "$lt_simple_link_test_code" >conftest.$ac_ext 17028eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17029_lt_linker_boilerplate=`cat conftest.err` 17030$rm conftest* 17031 17032 17033# Allow CC to be a program name with arguments. 17034lt_save_CC="$CC" 17035CC=${GCJ-"gcj"} 17036compiler=$CC 17037compiler_GCJ=$CC 17038for cc_temp in $compiler""; do 17039 case $cc_temp in 17040 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17041 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17042 \-*) ;; 17043 *) break;; 17044 esac 17045done 17046cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17047 17048 17049# GCJ did not exist at the time GCC didn't implicitly link libc in. 17050archive_cmds_need_lc_GCJ=no 17051 17052old_archive_cmds_GCJ=$old_archive_cmds 17053 17054 17055lt_prog_compiler_no_builtin_flag_GCJ= 17056 17057if test "$GCC" = yes; then 17058 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17059 17060 17061{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17062echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 17063if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17064 echo $ECHO_N "(cached) $ECHO_C" >&6 17065else 17066 lt_cv_prog_compiler_rtti_exceptions=no 17067 ac_outfile=conftest.$ac_objext 17068 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17069 lt_compiler_flag="-fno-rtti -fno-exceptions" 17070 # Insert the option either (1) after the last *FLAGS variable, or 17071 # (2) before a word containing "conftest.", or (3) at the end. 17072 # Note that $ac_compile itself does not contain backslashes and begins 17073 # with a dollar sign (not a hyphen), so the echo should work correctly. 17074 # The option is referenced via a variable to avoid confusing sed. 17075 lt_compile=`echo "$ac_compile" | $SED \ 17076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17078 -e 's:$: $lt_compiler_flag:'` 17079 (eval echo "\"\$as_me:17079: $lt_compile\"" >&5) 17080 (eval "$lt_compile" 2>conftest.err) 17081 ac_status=$? 17082 cat conftest.err >&5 17083 echo "$as_me:17083: \$? = $ac_status" >&5 17084 if (exit $ac_status) && test -s "$ac_outfile"; then 17085 # The compiler can only warn and ignore the option if not recognized 17086 # So say no if there are warnings other than the usual output. 17087 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17090 lt_cv_prog_compiler_rtti_exceptions=yes 17091 fi 17092 fi 17093 $rm conftest* 17094 17095fi 17096{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17097echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17098 17099if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17100 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17101else 17102 : 17103fi 17104 17105fi 17106 17107lt_prog_compiler_wl_GCJ= 17108lt_prog_compiler_pic_GCJ= 17109lt_prog_compiler_static_GCJ= 17110 17111{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17112echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 17113 17114 if test "$GCC" = yes; then 17115 lt_prog_compiler_wl_GCJ='-Wl,' 17116 lt_prog_compiler_static_GCJ='-static' 17117 17118 case $host_os in 17119 aix*) 17120 # All AIX code is PIC. 17121 if test "$host_cpu" = ia64; then 17122 # AIX 5 now supports IA64 processor 17123 lt_prog_compiler_static_GCJ='-Bstatic' 17124 fi 17125 ;; 17126 17127 amigaos*) 17128 # FIXME: we need at least 68020 code to build shared libraries, but 17129 # adding the `-m68020' flag to GCC prevents building anything better, 17130 # like `-m68040'. 17131 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17132 ;; 17133 17134 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17135 # PIC is the default for these OSes. 17136 ;; 17137 17138 mingw* | pw32* | os2*) 17139 # This hack is so that the source file can tell whether it is being 17140 # built for inclusion in a dll (and should export symbols for example). 17141 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17142 ;; 17143 17144 darwin* | rhapsody*) 17145 # PIC is the default on this platform 17146 # Common symbols not allowed in MH_DYLIB files 17147 lt_prog_compiler_pic_GCJ='-fno-common' 17148 ;; 17149 17150 interix3*) 17151 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17152 # Instead, we relocate shared libraries at runtime. 17153 ;; 17154 17155 msdosdjgpp*) 17156 # Just because we use GCC doesn't mean we suddenly get shared libraries 17157 # on systems that don't support them. 17158 lt_prog_compiler_can_build_shared_GCJ=no 17159 enable_shared=no 17160 ;; 17161 17162 sysv4*MP*) 17163 if test -d /usr/nec; then 17164 lt_prog_compiler_pic_GCJ=-Kconform_pic 17165 fi 17166 ;; 17167 17168 hpux*) 17169 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17170 # not for PA HP-UX. 17171 case $host_cpu in 17172 hppa*64*|ia64*) 17173 # +Z the default 17174 ;; 17175 *) 17176 lt_prog_compiler_pic_GCJ='-fPIC' 17177 ;; 17178 esac 17179 ;; 17180 17181 *) 17182 lt_prog_compiler_pic_GCJ='-fPIC' 17183 ;; 17184 esac 17185 else 17186 # PORTME Check for flag to pass linker flags through the system compiler. 17187 case $host_os in 17188 aix*) 17189 lt_prog_compiler_wl_GCJ='-Wl,' 17190 if test "$host_cpu" = ia64; then 17191 # AIX 5 now supports IA64 processor 17192 lt_prog_compiler_static_GCJ='-Bstatic' 17193 else 17194 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17195 fi 17196 ;; 17197 darwin*) 17198 # PIC is the default on this platform 17199 # Common symbols not allowed in MH_DYLIB files 17200 case $cc_basename in 17201 xlc*) 17202 lt_prog_compiler_pic_GCJ='-qnocommon' 17203 lt_prog_compiler_wl_GCJ='-Wl,' 17204 ;; 17205 esac 17206 ;; 17207 17208 mingw* | pw32* | os2*) 17209 # This hack is so that the source file can tell whether it is being 17210 # built for inclusion in a dll (and should export symbols for example). 17211 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17212 ;; 17213 17214 hpux9* | hpux10* | hpux11*) 17215 lt_prog_compiler_wl_GCJ='-Wl,' 17216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17217 # not for PA HP-UX. 17218 case $host_cpu in 17219 hppa*64*|ia64*) 17220 # +Z the default 17221 ;; 17222 *) 17223 lt_prog_compiler_pic_GCJ='+Z' 17224 ;; 17225 esac 17226 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17227 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17228 ;; 17229 17230 irix5* | irix6* | nonstopux*) 17231 lt_prog_compiler_wl_GCJ='-Wl,' 17232 # PIC (with -KPIC) is the default. 17233 lt_prog_compiler_static_GCJ='-non_shared' 17234 ;; 17235 17236 newsos6) 17237 lt_prog_compiler_pic_GCJ='-KPIC' 17238 lt_prog_compiler_static_GCJ='-Bstatic' 17239 ;; 17240 17241 linux* | k*bsd*-gnu) 17242 case $cc_basename in 17243 icc* | ecc*) 17244 lt_prog_compiler_wl_GCJ='-Wl,' 17245 lt_prog_compiler_pic_GCJ='-KPIC' 17246 lt_prog_compiler_static_GCJ='-static' 17247 ;; 17248 pgcc* | pgf77* | pgf90* | pgf95*) 17249 # Portland Group compilers (*not* the Pentium gcc compiler, 17250 # which looks to be a dead project) 17251 lt_prog_compiler_wl_GCJ='-Wl,' 17252 lt_prog_compiler_pic_GCJ='-fpic' 17253 lt_prog_compiler_static_GCJ='-Bstatic' 17254 ;; 17255 ccc*) 17256 lt_prog_compiler_wl_GCJ='-Wl,' 17257 # All Alpha code is PIC. 17258 lt_prog_compiler_static_GCJ='-non_shared' 17259 ;; 17260 esac 17261 ;; 17262 17263 osf3* | osf4* | osf5*) 17264 lt_prog_compiler_wl_GCJ='-Wl,' 17265 # All OSF/1 code is PIC. 17266 lt_prog_compiler_static_GCJ='-non_shared' 17267 ;; 17268 17269 solaris*) 17270 lt_prog_compiler_pic_GCJ='-KPIC' 17271 lt_prog_compiler_static_GCJ='-Bstatic' 17272 case $cc_basename in 17273 f77* | f90* | f95*) 17274 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17275 *) 17276 lt_prog_compiler_wl_GCJ='-Wl,';; 17277 esac 17278 ;; 17279 17280 sunos4*) 17281 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17282 lt_prog_compiler_pic_GCJ='-PIC' 17283 lt_prog_compiler_static_GCJ='-Bstatic' 17284 ;; 17285 17286 sysv4 | sysv4.2uw2* | sysv4.3*) 17287 lt_prog_compiler_wl_GCJ='-Wl,' 17288 lt_prog_compiler_pic_GCJ='-KPIC' 17289 lt_prog_compiler_static_GCJ='-Bstatic' 17290 ;; 17291 17292 sysv4*MP*) 17293 if test -d /usr/nec ;then 17294 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17295 lt_prog_compiler_static_GCJ='-Bstatic' 17296 fi 17297 ;; 17298 17299 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17300 lt_prog_compiler_wl_GCJ='-Wl,' 17301 lt_prog_compiler_pic_GCJ='-KPIC' 17302 lt_prog_compiler_static_GCJ='-Bstatic' 17303 ;; 17304 17305 unicos*) 17306 lt_prog_compiler_wl_GCJ='-Wl,' 17307 lt_prog_compiler_can_build_shared_GCJ=no 17308 ;; 17309 17310 uts4*) 17311 lt_prog_compiler_pic_GCJ='-pic' 17312 lt_prog_compiler_static_GCJ='-Bstatic' 17313 ;; 17314 17315 *) 17316 lt_prog_compiler_can_build_shared_GCJ=no 17317 ;; 17318 esac 17319 fi 17320 17321{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17322echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 17323 17324# 17325# Check to make sure the PIC flag actually works. 17326# 17327if test -n "$lt_prog_compiler_pic_GCJ"; then 17328 17329{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17330echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17331if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17332 echo $ECHO_N "(cached) $ECHO_C" >&6 17333else 17334 lt_prog_compiler_pic_works_GCJ=no 17335 ac_outfile=conftest.$ac_objext 17336 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17337 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17338 # Insert the option either (1) after the last *FLAGS variable, or 17339 # (2) before a word containing "conftest.", or (3) at the end. 17340 # Note that $ac_compile itself does not contain backslashes and begins 17341 # with a dollar sign (not a hyphen), so the echo should work correctly. 17342 # The option is referenced via a variable to avoid confusing sed. 17343 lt_compile=`echo "$ac_compile" | $SED \ 17344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17346 -e 's:$: $lt_compiler_flag:'` 17347 (eval echo "\"\$as_me:17347: $lt_compile\"" >&5) 17348 (eval "$lt_compile" 2>conftest.err) 17349 ac_status=$? 17350 cat conftest.err >&5 17351 echo "$as_me:17351: \$? = $ac_status" >&5 17352 if (exit $ac_status) && test -s "$ac_outfile"; then 17353 # The compiler can only warn and ignore the option if not recognized 17354 # So say no if there are warnings other than the usual output. 17355 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17357 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17358 lt_prog_compiler_pic_works_GCJ=yes 17359 fi 17360 fi 17361 $rm conftest* 17362 17363fi 17364{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17365echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 17366 17367if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17368 case $lt_prog_compiler_pic_GCJ in 17369 "" | " "*) ;; 17370 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17371 esac 17372else 17373 lt_prog_compiler_pic_GCJ= 17374 lt_prog_compiler_can_build_shared_GCJ=no 17375fi 17376 17377fi 17378case $host_os in 17379 # For platforms which do not support PIC, -DPIC is meaningless: 17380 *djgpp*) 17381 lt_prog_compiler_pic_GCJ= 17382 ;; 17383 *) 17384 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17385 ;; 17386esac 17387 17388# 17389# Check to make sure the static flag actually works. 17390# 17391wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17392{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17393echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17394if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17395 echo $ECHO_N "(cached) $ECHO_C" >&6 17396else 17397 lt_prog_compiler_static_works_GCJ=no 17398 save_LDFLAGS="$LDFLAGS" 17399 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17400 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17401 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17402 # The linker can only warn and ignore the option if not recognized 17403 # So say no if there are warnings 17404 if test -s conftest.err; then 17405 # Append any errors to the config.log. 17406 cat conftest.err 1>&5 17407 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17409 if diff conftest.exp conftest.er2 >/dev/null; then 17410 lt_prog_compiler_static_works_GCJ=yes 17411 fi 17412 else 17413 lt_prog_compiler_static_works_GCJ=yes 17414 fi 17415 fi 17416 $rm conftest* 17417 LDFLAGS="$save_LDFLAGS" 17418 17419fi 17420{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17421echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17422 17423if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17424 : 17425else 17426 lt_prog_compiler_static_GCJ= 17427fi 17428 17429 17430{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17431echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17432if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17433 echo $ECHO_N "(cached) $ECHO_C" >&6 17434else 17435 lt_cv_prog_compiler_c_o_GCJ=no 17436 $rm -r conftest 2>/dev/null 17437 mkdir conftest 17438 cd conftest 17439 mkdir out 17440 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17441 17442 lt_compiler_flag="-o out/conftest2.$ac_objext" 17443 # Insert the option either (1) after the last *FLAGS variable, or 17444 # (2) before a word containing "conftest.", or (3) at the end. 17445 # Note that $ac_compile itself does not contain backslashes and begins 17446 # with a dollar sign (not a hyphen), so the echo should work correctly. 17447 lt_compile=`echo "$ac_compile" | $SED \ 17448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17450 -e 's:$: $lt_compiler_flag:'` 17451 (eval echo "\"\$as_me:17451: $lt_compile\"" >&5) 17452 (eval "$lt_compile" 2>out/conftest.err) 17453 ac_status=$? 17454 cat out/conftest.err >&5 17455 echo "$as_me:17455: \$? = $ac_status" >&5 17456 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17457 then 17458 # The compiler can only warn and ignore the option if not recognized 17459 # So say no if there are warnings 17460 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17461 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17462 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17463 lt_cv_prog_compiler_c_o_GCJ=yes 17464 fi 17465 fi 17466 chmod u+w . 2>&5 17467 $rm conftest* 17468 # SGI C++ compiler will create directory out/ii_files/ for 17469 # template instantiation 17470 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17471 $rm out/* && rmdir out 17472 cd .. 17473 rmdir conftest 17474 $rm conftest* 17475 17476fi 17477{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17478echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17479 17480 17481hard_links="nottested" 17482if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17483 # do not overwrite the value of need_locks provided by the user 17484 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17485echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17486 hard_links=yes 17487 $rm conftest* 17488 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17489 touch conftest.a 17490 ln conftest.a conftest.b 2>&5 || hard_links=no 17491 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17492 { echo "$as_me:$LINENO: result: $hard_links" >&5 17493echo "${ECHO_T}$hard_links" >&6; } 17494 if test "$hard_links" = no; then 17495 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17496echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17497 need_locks=warn 17498 fi 17499else 17500 need_locks=no 17501fi 17502 17503{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17504echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17505 17506 runpath_var= 17507 allow_undefined_flag_GCJ= 17508 enable_shared_with_static_runtimes_GCJ=no 17509 archive_cmds_GCJ= 17510 archive_expsym_cmds_GCJ= 17511 old_archive_From_new_cmds_GCJ= 17512 old_archive_from_expsyms_cmds_GCJ= 17513 export_dynamic_flag_spec_GCJ= 17514 whole_archive_flag_spec_GCJ= 17515 thread_safe_flag_spec_GCJ= 17516 hardcode_libdir_flag_spec_GCJ= 17517 hardcode_libdir_flag_spec_ld_GCJ= 17518 hardcode_libdir_separator_GCJ= 17519 hardcode_direct_GCJ=no 17520 hardcode_minus_L_GCJ=no 17521 hardcode_shlibpath_var_GCJ=unsupported 17522 link_all_deplibs_GCJ=unknown 17523 hardcode_automatic_GCJ=no 17524 module_cmds_GCJ= 17525 module_expsym_cmds_GCJ= 17526 always_export_symbols_GCJ=no 17527 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17528 # include_expsyms should be a list of space-separated symbols to be *always* 17529 # included in the symbol list 17530 include_expsyms_GCJ= 17531 # exclude_expsyms can be an extended regexp of symbols to exclude 17532 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17533 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17534 # as well as any symbol that contains `d'. 17535 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17536 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17537 # platforms (ab)use it in PIC code, but their linkers get confused if 17538 # the symbol is explicitly referenced. Since portable code cannot 17539 # rely on this symbol name, it's probably fine to never include it in 17540 # preloaded symbol tables. 17541 extract_expsyms_cmds= 17542 # Just being paranoid about ensuring that cc_basename is set. 17543 for cc_temp in $compiler""; do 17544 case $cc_temp in 17545 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17546 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17547 \-*) ;; 17548 *) break;; 17549 esac 17550done 17551cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17552 17553 case $host_os in 17554 cygwin* | mingw* | pw32*) 17555 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17556 # When not using gcc, we currently assume that we are using 17557 # Microsoft Visual C++. 17558 if test "$GCC" != yes; then 17559 with_gnu_ld=no 17560 fi 17561 ;; 17562 interix*) 17563 # we just hope/assume this is gcc and not c89 (= MSVC++) 17564 with_gnu_ld=yes 17565 ;; 17566 openbsd*) 17567 with_gnu_ld=no 17568 ;; 17569 esac 17570 17571 ld_shlibs_GCJ=yes 17572 if test "$with_gnu_ld" = yes; then 17573 # If archive_cmds runs LD, not CC, wlarc should be empty 17574 wlarc='${wl}' 17575 17576 # Set some defaults for GNU ld with shared library support. These 17577 # are reset later if shared libraries are not supported. Putting them 17578 # here allows them to be overridden if necessary. 17579 runpath_var=LD_RUN_PATH 17580 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17581 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17582 # ancient GNU ld didn't support --whole-archive et. al. 17583 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17584 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17585 else 17586 whole_archive_flag_spec_GCJ= 17587 fi 17588 supports_anon_versioning=no 17589 case `$LD -v 2>/dev/null` in 17590 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17591 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17592 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17593 *\ 2.11.*) ;; # other 2.11 versions 17594 *) supports_anon_versioning=yes ;; 17595 esac 17596 17597 # See if GNU ld supports shared libraries. 17598 case $host_os in 17599 aix3* | aix4* | aix5*) 17600 # On AIX/PPC, the GNU linker is very broken 17601 if test "$host_cpu" != ia64; then 17602 ld_shlibs_GCJ=no 17603 cat <<EOF 1>&2 17604 17605*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17606*** to be unable to reliably create shared libraries on AIX. 17607*** Therefore, libtool is disabling shared libraries support. If you 17608*** really care for shared libraries, you may want to modify your PATH 17609*** so that a non-GNU linker is found, and then restart. 17610 17611EOF 17612 fi 17613 ;; 17614 17615 amigaos*) 17616 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)' 17617 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17618 hardcode_minus_L_GCJ=yes 17619 17620 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17621 # that the semantics of dynamic libraries on AmigaOS, at least up 17622 # to version 4, is to share data among multiple programs linked 17623 # with the same dynamic library. Since this doesn't match the 17624 # behavior of shared libraries on other platforms, we can't use 17625 # them. 17626 ld_shlibs_GCJ=no 17627 ;; 17628 17629 beos*) 17630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17631 allow_undefined_flag_GCJ=unsupported 17632 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17633 # support --undefined. This deserves some investigation. FIXME 17634 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17635 else 17636 ld_shlibs_GCJ=no 17637 fi 17638 ;; 17639 17640 cygwin* | mingw* | pw32*) 17641 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17642 # as there is no search path for DLLs. 17643 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17644 allow_undefined_flag_GCJ=unsupported 17645 always_export_symbols_GCJ=no 17646 enable_shared_with_static_runtimes_GCJ=yes 17647 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17648 17649 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17650 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17651 # If the export-symbols file already is a .def file (1st line 17652 # is EXPORTS), use it as is; otherwise, prepend... 17653 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17654 cp $export_symbols $output_objdir/$soname.def; 17655 else 17656 echo EXPORTS > $output_objdir/$soname.def; 17657 cat $export_symbols >> $output_objdir/$soname.def; 17658 fi~ 17659 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17660 else 17661 ld_shlibs_GCJ=no 17662 fi 17663 ;; 17664 17665 interix3*) 17666 hardcode_direct_GCJ=no 17667 hardcode_shlibpath_var_GCJ=no 17668 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17669 export_dynamic_flag_spec_GCJ='${wl}-E' 17670 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17671 # Instead, shared libraries are loaded at an image base (0x10000000 by 17672 # default) and relocated if they conflict, which is a slow very memory 17673 # consuming and fragmenting process. To avoid this, we pick a random, 17674 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17675 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17676 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' 17677 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' 17678 ;; 17679 17680 linux* | k*bsd*-gnu) 17681 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17682 tmp_addflag= 17683 case $cc_basename,$host_cpu in 17684 pgcc*) # Portland Group C compiler 17685 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' 17686 tmp_addflag=' $pic_flag' 17687 ;; 17688 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17689 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' 17690 tmp_addflag=' $pic_flag -Mnomain' ;; 17691 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17692 tmp_addflag=' -i_dynamic' ;; 17693 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17694 tmp_addflag=' -i_dynamic -nofor_main' ;; 17695 ifc* | ifort*) # Intel Fortran compiler 17696 tmp_addflag=' -nofor_main' ;; 17697 esac 17698 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17699 17700 if test $supports_anon_versioning = yes; then 17701 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17702 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17703 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17704 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17705 fi 17706 link_all_deplibs_GCJ=no 17707 else 17708 ld_shlibs_GCJ=no 17709 fi 17710 ;; 17711 17712 netbsd* | netbsdelf*-gnu) 17713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17714 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17715 wlarc= 17716 else 17717 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17718 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17719 fi 17720 ;; 17721 17722 solaris*) 17723 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17724 ld_shlibs_GCJ=no 17725 cat <<EOF 1>&2 17726 17727*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17728*** create shared libraries on Solaris systems. Therefore, libtool 17729*** is disabling shared libraries support. We urge you to upgrade GNU 17730*** binutils to release 2.9.1 or newer. Another option is to modify 17731*** your PATH or compiler configuration so that the native linker is 17732*** used, and then restart. 17733 17734EOF 17735 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17736 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17737 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17738 else 17739 ld_shlibs_GCJ=no 17740 fi 17741 ;; 17742 17743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17744 case `$LD -v 2>&1` in 17745 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17746 ld_shlibs_GCJ=no 17747 cat <<_LT_EOF 1>&2 17748 17749*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17750*** reliably create shared libraries on SCO systems. Therefore, libtool 17751*** is disabling shared libraries support. We urge you to upgrade GNU 17752*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17753*** your PATH or compiler configuration so that the native linker is 17754*** used, and then restart. 17755 17756_LT_EOF 17757 ;; 17758 *) 17759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17760 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17761 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17762 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17763 else 17764 ld_shlibs_GCJ=no 17765 fi 17766 ;; 17767 esac 17768 ;; 17769 17770 sunos4*) 17771 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17772 wlarc= 17773 hardcode_direct_GCJ=yes 17774 hardcode_shlibpath_var_GCJ=no 17775 ;; 17776 17777 *) 17778 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17779 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17780 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17781 else 17782 ld_shlibs_GCJ=no 17783 fi 17784 ;; 17785 esac 17786 17787 if test "$ld_shlibs_GCJ" = no; then 17788 runpath_var= 17789 hardcode_libdir_flag_spec_GCJ= 17790 export_dynamic_flag_spec_GCJ= 17791 whole_archive_flag_spec_GCJ= 17792 fi 17793 else 17794 # PORTME fill in a description of your system's linker (not GNU ld) 17795 case $host_os in 17796 aix3*) 17797 allow_undefined_flag_GCJ=unsupported 17798 always_export_symbols_GCJ=yes 17799 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' 17800 # Note: this linker hardcodes the directories in LIBPATH if there 17801 # are no directories specified by -L. 17802 hardcode_minus_L_GCJ=yes 17803 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17804 # Neither direct hardcoding nor static linking is supported with a 17805 # broken collect2. 17806 hardcode_direct_GCJ=unsupported 17807 fi 17808 ;; 17809 17810 aix4* | aix5*) 17811 if test "$host_cpu" = ia64; then 17812 # On IA64, the linker does run time linking by default, so we don't 17813 # have to do anything special. 17814 aix_use_runtimelinking=no 17815 exp_sym_flag='-Bexport' 17816 no_entry_flag="" 17817 else 17818 # If we're using GNU nm, then we don't want the "-C" option. 17819 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17820 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17821 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' 17822 else 17823 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' 17824 fi 17825 aix_use_runtimelinking=no 17826 17827 # Test if we are trying to use run time linking or normal 17828 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17829 # need to do runtime linking. 17830 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17831 for ld_flag in $LDFLAGS; do 17832 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17833 aix_use_runtimelinking=yes 17834 break 17835 fi 17836 done 17837 ;; 17838 esac 17839 17840 exp_sym_flag='-bexport' 17841 no_entry_flag='-bnoentry' 17842 fi 17843 17844 # When large executables or shared objects are built, AIX ld can 17845 # have problems creating the table of contents. If linking a library 17846 # or program results in "error TOC overflow" add -mminimal-toc to 17847 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17848 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17849 17850 archive_cmds_GCJ='' 17851 hardcode_direct_GCJ=yes 17852 hardcode_libdir_separator_GCJ=':' 17853 link_all_deplibs_GCJ=yes 17854 17855 if test "$GCC" = yes; then 17856 case $host_os in aix4.[012]|aix4.[012].*) 17857 # We only want to do this on AIX 4.2 and lower, the check 17858 # below for broken collect2 doesn't work under 4.3+ 17859 collect2name=`${CC} -print-prog-name=collect2` 17860 if test -f "$collect2name" && \ 17861 strings "$collect2name" | grep resolve_lib_name >/dev/null 17862 then 17863 # We have reworked collect2 17864 hardcode_direct_GCJ=yes 17865 else 17866 # We have old collect2 17867 hardcode_direct_GCJ=unsupported 17868 # It fails to find uninstalled libraries when the uninstalled 17869 # path is not listed in the libpath. Setting hardcode_minus_L 17870 # to unsupported forces relinking 17871 hardcode_minus_L_GCJ=yes 17872 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17873 hardcode_libdir_separator_GCJ= 17874 fi 17875 ;; 17876 esac 17877 shared_flag='-shared' 17878 if test "$aix_use_runtimelinking" = yes; then 17879 shared_flag="$shared_flag "'${wl}-G' 17880 fi 17881 else 17882 # not using gcc 17883 if test "$host_cpu" = ia64; then 17884 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17885 # chokes on -Wl,-G. The following line is correct: 17886 shared_flag='-G' 17887 else 17888 if test "$aix_use_runtimelinking" = yes; then 17889 shared_flag='${wl}-G' 17890 else 17891 shared_flag='${wl}-bM:SRE' 17892 fi 17893 fi 17894 fi 17895 17896 # It seems that -bexpall does not export symbols beginning with 17897 # underscore (_), so it is better to generate a list of symbols to export. 17898 always_export_symbols_GCJ=yes 17899 if test "$aix_use_runtimelinking" = yes; then 17900 # Warning - without using the other runtime loading flags (-brtl), 17901 # -berok will link without error, but may produce a broken library. 17902 allow_undefined_flag_GCJ='-berok' 17903 # Determine the default libpath from the value encoded in an empty executable. 17904 cat >conftest.$ac_ext <<_ACEOF 17905/* confdefs.h. */ 17906_ACEOF 17907cat confdefs.h >>conftest.$ac_ext 17908cat >>conftest.$ac_ext <<_ACEOF 17909/* end confdefs.h. */ 17910 17911int 17912main () 17913{ 17914 17915 ; 17916 return 0; 17917} 17918_ACEOF 17919rm -f conftest.$ac_objext conftest$ac_exeext 17920if { (ac_try="$ac_link" 17921case "(($ac_try" in 17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17923 *) ac_try_echo=$ac_try;; 17924esac 17925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17926 (eval "$ac_link") 2>conftest.er1 17927 ac_status=$? 17928 grep -v '^ *+' conftest.er1 >conftest.err 17929 rm -f conftest.er1 17930 cat conftest.err >&5 17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17932 (exit $ac_status); } && 17933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17934 { (case "(($ac_try" in 17935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17936 *) ac_try_echo=$ac_try;; 17937esac 17938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17939 (eval "$ac_try") 2>&5 17940 ac_status=$? 17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17942 (exit $ac_status); }; } && 17943 { ac_try='test -s conftest$ac_exeext' 17944 { (case "(($ac_try" in 17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17946 *) ac_try_echo=$ac_try;; 17947esac 17948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17949 (eval "$ac_try") 2>&5 17950 ac_status=$? 17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17952 (exit $ac_status); }; }; then 17953 17954aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17955}'` 17956# Check for a 64-bit object if we didn't find anything. 17957if 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; } 17958}'`; fi 17959else 17960 echo "$as_me: failed program was:" >&5 17961sed 's/^/| /' conftest.$ac_ext >&5 17962 17963 17964fi 17965 17966rm -f core conftest.err conftest.$ac_objext \ 17967 conftest$ac_exeext conftest.$ac_ext 17968if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17969 17970 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17971 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" 17972 else 17973 if test "$host_cpu" = ia64; then 17974 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17975 allow_undefined_flag_GCJ="-z nodefs" 17976 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" 17977 else 17978 # Determine the default libpath from the value encoded in an empty executable. 17979 cat >conftest.$ac_ext <<_ACEOF 17980/* confdefs.h. */ 17981_ACEOF 17982cat confdefs.h >>conftest.$ac_ext 17983cat >>conftest.$ac_ext <<_ACEOF 17984/* end confdefs.h. */ 17985 17986int 17987main () 17988{ 17989 17990 ; 17991 return 0; 17992} 17993_ACEOF 17994rm -f conftest.$ac_objext conftest$ac_exeext 17995if { (ac_try="$ac_link" 17996case "(($ac_try" in 17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17998 *) ac_try_echo=$ac_try;; 17999esac 18000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18001 (eval "$ac_link") 2>conftest.er1 18002 ac_status=$? 18003 grep -v '^ *+' conftest.er1 >conftest.err 18004 rm -f conftest.er1 18005 cat conftest.err >&5 18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18007 (exit $ac_status); } && 18008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18009 { (case "(($ac_try" in 18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18011 *) ac_try_echo=$ac_try;; 18012esac 18013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18014 (eval "$ac_try") 2>&5 18015 ac_status=$? 18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18017 (exit $ac_status); }; } && 18018 { ac_try='test -s conftest$ac_exeext' 18019 { (case "(($ac_try" in 18020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18021 *) ac_try_echo=$ac_try;; 18022esac 18023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18024 (eval "$ac_try") 2>&5 18025 ac_status=$? 18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18027 (exit $ac_status); }; }; then 18028 18029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18030}'` 18031# Check for a 64-bit object if we didn't find anything. 18032if 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; } 18033}'`; fi 18034else 18035 echo "$as_me: failed program was:" >&5 18036sed 's/^/| /' conftest.$ac_ext >&5 18037 18038 18039fi 18040 18041rm -f core conftest.err conftest.$ac_objext \ 18042 conftest$ac_exeext conftest.$ac_ext 18043if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18044 18045 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18046 # Warning - without using the other run time loading flags, 18047 # -berok will link without error, but may produce a broken library. 18048 no_undefined_flag_GCJ=' ${wl}-bernotok' 18049 allow_undefined_flag_GCJ=' ${wl}-berok' 18050 # Exported symbols can be pulled into shared objects from archives 18051 whole_archive_flag_spec_GCJ='$convenience' 18052 archive_cmds_need_lc_GCJ=yes 18053 # This is similar to how AIX traditionally builds its shared libraries. 18054 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' 18055 fi 18056 fi 18057 ;; 18058 18059 amigaos*) 18060 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)' 18061 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18062 hardcode_minus_L_GCJ=yes 18063 # see comment about different semantics on the GNU ld section 18064 ld_shlibs_GCJ=no 18065 ;; 18066 18067 bsdi[45]*) 18068 export_dynamic_flag_spec_GCJ=-rdynamic 18069 ;; 18070 18071 cygwin* | mingw* | pw32*) 18072 # When not using gcc, we currently assume that we are using 18073 # Microsoft Visual C++. 18074 # hardcode_libdir_flag_spec is actually meaningless, as there is 18075 # no search path for DLLs. 18076 hardcode_libdir_flag_spec_GCJ=' ' 18077 allow_undefined_flag_GCJ=unsupported 18078 # Tell ltmain to make .lib files, not .a files. 18079 libext=lib 18080 # Tell ltmain to make .dll files, not .so files. 18081 shrext_cmds=".dll" 18082 # FIXME: Setting linknames here is a bad hack. 18083 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18084 # The linker will automatically build a .lib file if we build a DLL. 18085 old_archive_From_new_cmds_GCJ='true' 18086 # FIXME: Should let the user specify the lib program. 18087 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18088 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18089 enable_shared_with_static_runtimes_GCJ=yes 18090 ;; 18091 18092 darwin* | rhapsody*) 18093 case $host_os in 18094 rhapsody* | darwin1.[012]) 18095 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18096 ;; 18097 *) # Darwin 1.3 on 18098 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18099 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18100 else 18101 case ${MACOSX_DEPLOYMENT_TARGET} in 18102 10.[012]) 18103 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18104 ;; 18105 10.*) 18106 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18107 ;; 18108 esac 18109 fi 18110 ;; 18111 esac 18112 archive_cmds_need_lc_GCJ=no 18113 hardcode_direct_GCJ=no 18114 hardcode_automatic_GCJ=yes 18115 hardcode_shlibpath_var_GCJ=unsupported 18116 whole_archive_flag_spec_GCJ='' 18117 link_all_deplibs_GCJ=yes 18118 if test "$GCC" = yes ; then 18119 output_verbose_link_cmd='echo' 18120 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 18121 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18122 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18123 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}' 18124 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}' 18125 else 18126 case $cc_basename in 18127 xlc*) 18128 output_verbose_link_cmd='echo' 18129 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 18130 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18132 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}' 18133 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}' 18134 ;; 18135 *) 18136 ld_shlibs_GCJ=no 18137 ;; 18138 esac 18139 fi 18140 ;; 18141 18142 dgux*) 18143 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18144 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18145 hardcode_shlibpath_var_GCJ=no 18146 ;; 18147 18148 freebsd1*) 18149 ld_shlibs_GCJ=no 18150 ;; 18151 18152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18153 # support. Future versions do this automatically, but an explicit c++rt0.o 18154 # does not break anything, and helps significantly (at the cost of a little 18155 # extra space). 18156 freebsd2.2*) 18157 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18158 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18159 hardcode_direct_GCJ=yes 18160 hardcode_shlibpath_var_GCJ=no 18161 ;; 18162 18163 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18164 freebsd2*) 18165 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18166 hardcode_direct_GCJ=yes 18167 hardcode_minus_L_GCJ=yes 18168 hardcode_shlibpath_var_GCJ=no 18169 ;; 18170 18171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18172 freebsd* | dragonfly*) 18173 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18174 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18175 hardcode_direct_GCJ=yes 18176 hardcode_shlibpath_var_GCJ=no 18177 ;; 18178 18179 hpux9*) 18180 if test "$GCC" = yes; then 18181 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' 18182 else 18183 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' 18184 fi 18185 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18186 hardcode_libdir_separator_GCJ=: 18187 hardcode_direct_GCJ=yes 18188 18189 # hardcode_minus_L: Not really in the search PATH, 18190 # but as the default location of the library. 18191 hardcode_minus_L_GCJ=yes 18192 export_dynamic_flag_spec_GCJ='${wl}-E' 18193 ;; 18194 18195 hpux10*) 18196 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18197 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18198 else 18199 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18200 fi 18201 if test "$with_gnu_ld" = no; then 18202 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18203 hardcode_libdir_separator_GCJ=: 18204 18205 hardcode_direct_GCJ=yes 18206 export_dynamic_flag_spec_GCJ='${wl}-E' 18207 18208 # hardcode_minus_L: Not really in the search PATH, 18209 # but as the default location of the library. 18210 hardcode_minus_L_GCJ=yes 18211 fi 18212 ;; 18213 18214 hpux11*) 18215 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18216 case $host_cpu in 18217 hppa*64*) 18218 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18219 ;; 18220 ia64*) 18221 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18222 ;; 18223 *) 18224 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18225 ;; 18226 esac 18227 else 18228 case $host_cpu in 18229 hppa*64*) 18230 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18231 ;; 18232 ia64*) 18233 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18234 ;; 18235 *) 18236 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18237 ;; 18238 esac 18239 fi 18240 if test "$with_gnu_ld" = no; then 18241 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18242 hardcode_libdir_separator_GCJ=: 18243 18244 case $host_cpu in 18245 hppa*64*|ia64*) 18246 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18247 hardcode_direct_GCJ=no 18248 hardcode_shlibpath_var_GCJ=no 18249 ;; 18250 *) 18251 hardcode_direct_GCJ=yes 18252 export_dynamic_flag_spec_GCJ='${wl}-E' 18253 18254 # hardcode_minus_L: Not really in the search PATH, 18255 # but as the default location of the library. 18256 hardcode_minus_L_GCJ=yes 18257 ;; 18258 esac 18259 fi 18260 ;; 18261 18262 irix5* | irix6* | nonstopux*) 18263 if test "$GCC" = yes; then 18264 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' 18265 else 18266 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' 18267 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18268 fi 18269 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18270 hardcode_libdir_separator_GCJ=: 18271 link_all_deplibs_GCJ=yes 18272 ;; 18273 18274 netbsd* | netbsdelf*-gnu) 18275 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18276 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18277 else 18278 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18279 fi 18280 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18281 hardcode_direct_GCJ=yes 18282 hardcode_shlibpath_var_GCJ=no 18283 ;; 18284 18285 newsos6) 18286 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18287 hardcode_direct_GCJ=yes 18288 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18289 hardcode_libdir_separator_GCJ=: 18290 hardcode_shlibpath_var_GCJ=no 18291 ;; 18292 18293 openbsd*) 18294 hardcode_direct_GCJ=yes 18295 hardcode_shlibpath_var_GCJ=no 18296 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18297 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18298 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18299 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18300 export_dynamic_flag_spec_GCJ='${wl}-E' 18301 else 18302 case $host_os in 18303 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18304 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18305 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18306 ;; 18307 *) 18308 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18309 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18310 ;; 18311 esac 18312 fi 18313 ;; 18314 18315 os2*) 18316 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18317 hardcode_minus_L_GCJ=yes 18318 allow_undefined_flag_GCJ=unsupported 18319 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' 18320 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18321 ;; 18322 18323 osf3*) 18324 if test "$GCC" = yes; then 18325 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18326 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' 18327 else 18328 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18329 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' 18330 fi 18331 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18332 hardcode_libdir_separator_GCJ=: 18333 ;; 18334 18335 osf4* | osf5*) # as osf3* with the addition of -msym flag 18336 if test "$GCC" = yes; then 18337 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18338 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' 18339 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18340 else 18341 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18342 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' 18343 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~ 18344 $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' 18345 18346 # Both c and cxx compiler support -rpath directly 18347 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18348 fi 18349 hardcode_libdir_separator_GCJ=: 18350 ;; 18351 18352 solaris*) 18353 no_undefined_flag_GCJ=' -z text' 18354 if test "$GCC" = yes; then 18355 wlarc='${wl}' 18356 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18357 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18358 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18359 else 18360 wlarc='' 18361 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18362 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18363 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18364 fi 18365 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18366 hardcode_shlibpath_var_GCJ=no 18367 case $host_os in 18368 solaris2.[0-5] | solaris2.[0-5].*) ;; 18369 *) 18370 # The compiler driver will combine linker options so we 18371 # cannot just pass the convience library names through 18372 # without $wl, iff we do not link with $LD. 18373 # Luckily, gcc supports the same syntax we need for Sun Studio. 18374 # Supported since Solaris 2.6 (maybe 2.5.1?) 18375 case $wlarc in 18376 '') 18377 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18378 *) 18379 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' ;; 18380 esac ;; 18381 esac 18382 link_all_deplibs_GCJ=yes 18383 ;; 18384 18385 sunos4*) 18386 if test "x$host_vendor" = xsequent; then 18387 # Use $CC to link under sequent, because it throws in some extra .o 18388 # files that make .init and .fini sections work. 18389 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18390 else 18391 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18392 fi 18393 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18394 hardcode_direct_GCJ=yes 18395 hardcode_minus_L_GCJ=yes 18396 hardcode_shlibpath_var_GCJ=no 18397 ;; 18398 18399 sysv4) 18400 case $host_vendor in 18401 sni) 18402 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18403 hardcode_direct_GCJ=yes # is this really true??? 18404 ;; 18405 siemens) 18406 ## LD is ld it makes a PLAMLIB 18407 ## CC just makes a GrossModule. 18408 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18409 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18410 hardcode_direct_GCJ=no 18411 ;; 18412 motorola) 18413 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18414 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18415 ;; 18416 esac 18417 runpath_var='LD_RUN_PATH' 18418 hardcode_shlibpath_var_GCJ=no 18419 ;; 18420 18421 sysv4.3*) 18422 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18423 hardcode_shlibpath_var_GCJ=no 18424 export_dynamic_flag_spec_GCJ='-Bexport' 18425 ;; 18426 18427 sysv4*MP*) 18428 if test -d /usr/nec; then 18429 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18430 hardcode_shlibpath_var_GCJ=no 18431 runpath_var=LD_RUN_PATH 18432 hardcode_runpath_var=yes 18433 ld_shlibs_GCJ=yes 18434 fi 18435 ;; 18436 18437 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18438 no_undefined_flag_GCJ='${wl}-z,text' 18439 archive_cmds_need_lc_GCJ=no 18440 hardcode_shlibpath_var_GCJ=no 18441 runpath_var='LD_RUN_PATH' 18442 18443 if test "$GCC" = yes; then 18444 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18445 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18446 else 18447 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18448 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18449 fi 18450 ;; 18451 18452 sysv5* | sco3.2v5* | sco5v6*) 18453 # Note: We can NOT use -z defs as we might desire, because we do not 18454 # link with -lc, and that would cause any symbols used from libc to 18455 # always be unresolved, which means just about no library would 18456 # ever link correctly. If we're not using GNU ld we use -z text 18457 # though, which does catch some bad symbols but isn't as heavy-handed 18458 # as -z defs. 18459 no_undefined_flag_GCJ='${wl}-z,text' 18460 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18461 archive_cmds_need_lc_GCJ=no 18462 hardcode_shlibpath_var_GCJ=no 18463 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18464 hardcode_libdir_separator_GCJ=':' 18465 link_all_deplibs_GCJ=yes 18466 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18467 runpath_var='LD_RUN_PATH' 18468 18469 if test "$GCC" = yes; then 18470 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18471 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18472 else 18473 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18474 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18475 fi 18476 ;; 18477 18478 uts4*) 18479 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18480 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18481 hardcode_shlibpath_var_GCJ=no 18482 ;; 18483 18484 *) 18485 ld_shlibs_GCJ=no 18486 ;; 18487 esac 18488 fi 18489 18490{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18491echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18492test "$ld_shlibs_GCJ" = no && can_build_shared=no 18493 18494# 18495# Do we need to explicitly link libc? 18496# 18497case "x$archive_cmds_need_lc_GCJ" in 18498x|xyes) 18499 # Assume -lc should be added 18500 archive_cmds_need_lc_GCJ=yes 18501 18502 if test "$enable_shared" = yes && test "$GCC" = yes; then 18503 case $archive_cmds_GCJ in 18504 *'~'*) 18505 # FIXME: we may have to deal with multi-command sequences. 18506 ;; 18507 '$CC '*) 18508 # Test whether the compiler implicitly links with -lc since on some 18509 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18510 # to ld, don't add -lc before -lgcc. 18511 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18512echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18513 $rm conftest* 18514 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18515 18516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18517 (eval $ac_compile) 2>&5 18518 ac_status=$? 18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18520 (exit $ac_status); } 2>conftest.err; then 18521 soname=conftest 18522 lib=conftest 18523 libobjs=conftest.$ac_objext 18524 deplibs= 18525 wl=$lt_prog_compiler_wl_GCJ 18526 pic_flag=$lt_prog_compiler_pic_GCJ 18527 compiler_flags=-v 18528 linker_flags=-v 18529 verstring= 18530 output_objdir=. 18531 libname=conftest 18532 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18533 allow_undefined_flag_GCJ= 18534 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18535 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18536 ac_status=$? 18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18538 (exit $ac_status); } 18539 then 18540 archive_cmds_need_lc_GCJ=no 18541 else 18542 archive_cmds_need_lc_GCJ=yes 18543 fi 18544 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18545 else 18546 cat conftest.err 1>&5 18547 fi 18548 $rm conftest* 18549 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18550echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18551 ;; 18552 esac 18553 fi 18554 ;; 18555esac 18556 18557{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18558echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18559library_names_spec= 18560libname_spec='lib$name' 18561soname_spec= 18562shrext_cmds=".so" 18563postinstall_cmds= 18564postuninstall_cmds= 18565finish_cmds= 18566finish_eval= 18567shlibpath_var= 18568shlibpath_overrides_runpath=unknown 18569version_type=none 18570dynamic_linker="$host_os ld.so" 18571sys_lib_dlsearch_path_spec="/lib /usr/lib" 18572if test "$GCC" = yes; then 18573 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18574 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18575 # if the path contains ";" then we assume it to be the separator 18576 # otherwise default to the standard path separator (i.e. ":") - it is 18577 # assumed that no part of a normal pathname contains ";" but that should 18578 # okay in the real world where ";" in dirpaths is itself problematic. 18579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18580 else 18581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18582 fi 18583else 18584 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18585fi 18586need_lib_prefix=unknown 18587hardcode_into_libs=no 18588 18589# when you set need_version to no, make sure it does not cause -set_version 18590# flags to be left without arguments 18591need_version=unknown 18592 18593case $host_os in 18594aix3*) 18595 version_type=linux 18596 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18597 shlibpath_var=LIBPATH 18598 18599 # AIX 3 has no versioning support, so we append a major version to the name. 18600 soname_spec='${libname}${release}${shared_ext}$major' 18601 ;; 18602 18603aix4* | aix5*) 18604 version_type=linux 18605 need_lib_prefix=no 18606 need_version=no 18607 hardcode_into_libs=yes 18608 if test "$host_cpu" = ia64; then 18609 # AIX 5 supports IA64 18610 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18611 shlibpath_var=LD_LIBRARY_PATH 18612 else 18613 # With GCC up to 2.95.x, collect2 would create an import file 18614 # for dependence libraries. The import file would start with 18615 # the line `#! .'. This would cause the generated library to 18616 # depend on `.', always an invalid library. This was fixed in 18617 # development snapshots of GCC prior to 3.0. 18618 case $host_os in 18619 aix4 | aix4.[01] | aix4.[01].*) 18620 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18621 echo ' yes ' 18622 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18623 : 18624 else 18625 can_build_shared=no 18626 fi 18627 ;; 18628 esac 18629 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18630 # soname into executable. Probably we can add versioning support to 18631 # collect2, so additional links can be useful in future. 18632 if test "$aix_use_runtimelinking" = yes; then 18633 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18634 # instead of lib<name>.a to let people know that these are not 18635 # typical AIX shared libraries. 18636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18637 else 18638 # We preserve .a as extension for shared libraries through AIX4.2 18639 # and later when we are not doing run time linking. 18640 library_names_spec='${libname}${release}.a $libname.a' 18641 soname_spec='${libname}${release}${shared_ext}$major' 18642 fi 18643 shlibpath_var=LIBPATH 18644 fi 18645 ;; 18646 18647amigaos*) 18648 library_names_spec='$libname.ixlibrary $libname.a' 18649 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18650 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' 18651 ;; 18652 18653beos*) 18654 library_names_spec='${libname}${shared_ext}' 18655 dynamic_linker="$host_os ld.so" 18656 shlibpath_var=LIBRARY_PATH 18657 ;; 18658 18659bsdi[45]*) 18660 version_type=linux 18661 need_version=no 18662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18663 soname_spec='${libname}${release}${shared_ext}$major' 18664 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18665 shlibpath_var=LD_LIBRARY_PATH 18666 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18667 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18668 # the default ld.so.conf also contains /usr/contrib/lib and 18669 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18670 # libtool to hard-code these into programs 18671 ;; 18672 18673cygwin* | mingw* | pw32*) 18674 version_type=windows 18675 shrext_cmds=".dll" 18676 need_version=no 18677 need_lib_prefix=no 18678 18679 case $GCC,$host_os in 18680 yes,cygwin* | yes,mingw* | yes,pw32*) 18681 library_names_spec='$libname.dll.a' 18682 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18683 postinstall_cmds='base_file=`basename \${file}`~ 18684 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18685 dldir=$destdir/`dirname \$dlpath`~ 18686 test -d \$dldir || mkdir -p \$dldir~ 18687 $install_prog $dir/$dlname \$dldir/$dlname~ 18688 chmod a+x \$dldir/$dlname' 18689 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18690 dlpath=$dir/\$dldll~ 18691 $rm \$dlpath' 18692 shlibpath_overrides_runpath=yes 18693 18694 case $host_os in 18695 cygwin*) 18696 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18697 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18698 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18699 ;; 18700 mingw*) 18701 # MinGW DLLs use traditional 'lib' prefix 18702 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18703 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18704 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18705 # It is most probably a Windows format PATH printed by 18706 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18707 # path with ; separators, and with drive letters. We can handle the 18708 # drive letters (cygwin fileutils understands them), so leave them, 18709 # especially as we might pass files found there to a mingw objdump, 18710 # which wouldn't understand a cygwinified path. Ahh. 18711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18712 else 18713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18714 fi 18715 ;; 18716 pw32*) 18717 # pw32 DLLs use 'pw' prefix rather than 'lib' 18718 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18719 ;; 18720 esac 18721 ;; 18722 18723 *) 18724 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18725 ;; 18726 esac 18727 dynamic_linker='Win32 ld.exe' 18728 # FIXME: first we should search . and the directory the executable is in 18729 shlibpath_var=PATH 18730 ;; 18731 18732darwin* | rhapsody*) 18733 dynamic_linker="$host_os dyld" 18734 version_type=darwin 18735 need_lib_prefix=no 18736 need_version=no 18737 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18738 soname_spec='${libname}${release}${major}$shared_ext' 18739 shlibpath_overrides_runpath=yes 18740 shlibpath_var=DYLD_LIBRARY_PATH 18741 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18742 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18743 if test "$GCC" = yes; then 18744 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"` 18745 else 18746 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18747 fi 18748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18749 ;; 18750 18751dgux*) 18752 version_type=linux 18753 need_lib_prefix=no 18754 need_version=no 18755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18756 soname_spec='${libname}${release}${shared_ext}$major' 18757 shlibpath_var=LD_LIBRARY_PATH 18758 ;; 18759 18760freebsd1*) 18761 dynamic_linker=no 18762 ;; 18763 18764freebsd* | dragonfly*) 18765 # DragonFly does not have aout. When/if they implement a new 18766 # versioning mechanism, adjust this. 18767 if test -x /usr/bin/objformat; then 18768 objformat=`/usr/bin/objformat` 18769 else 18770 case $host_os in 18771 freebsd[123]*) objformat=aout ;; 18772 *) objformat=elf ;; 18773 esac 18774 fi 18775 version_type=freebsd-$objformat 18776 case $version_type in 18777 freebsd-elf*) 18778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18779 need_version=no 18780 need_lib_prefix=no 18781 ;; 18782 freebsd-*) 18783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18784 need_version=yes 18785 ;; 18786 esac 18787 shlibpath_var=LD_LIBRARY_PATH 18788 case $host_os in 18789 freebsd2*) 18790 shlibpath_overrides_runpath=yes 18791 ;; 18792 freebsd3.[01]* | freebsdelf3.[01]*) 18793 shlibpath_overrides_runpath=yes 18794 hardcode_into_libs=yes 18795 ;; 18796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18798 shlibpath_overrides_runpath=no 18799 hardcode_into_libs=yes 18800 ;; 18801 freebsd*) # from 4.6 on 18802 shlibpath_overrides_runpath=yes 18803 hardcode_into_libs=yes 18804 ;; 18805 esac 18806 ;; 18807 18808gnu*) 18809 version_type=linux 18810 need_lib_prefix=no 18811 need_version=no 18812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18813 soname_spec='${libname}${release}${shared_ext}$major' 18814 shlibpath_var=LD_LIBRARY_PATH 18815 hardcode_into_libs=yes 18816 ;; 18817 18818hpux9* | hpux10* | hpux11*) 18819 # Give a soname corresponding to the major version so that dld.sl refuses to 18820 # link against other versions. 18821 version_type=sunos 18822 need_lib_prefix=no 18823 need_version=no 18824 case $host_cpu in 18825 ia64*) 18826 shrext_cmds='.so' 18827 hardcode_into_libs=yes 18828 dynamic_linker="$host_os dld.so" 18829 shlibpath_var=LD_LIBRARY_PATH 18830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18832 soname_spec='${libname}${release}${shared_ext}$major' 18833 if test "X$HPUX_IA64_MODE" = X32; then 18834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18835 else 18836 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18837 fi 18838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18839 ;; 18840 hppa*64*) 18841 shrext_cmds='.sl' 18842 hardcode_into_libs=yes 18843 dynamic_linker="$host_os dld.sl" 18844 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18847 soname_spec='${libname}${release}${shared_ext}$major' 18848 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18850 ;; 18851 *) 18852 shrext_cmds='.sl' 18853 dynamic_linker="$host_os dld.sl" 18854 shlibpath_var=SHLIB_PATH 18855 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18857 soname_spec='${libname}${release}${shared_ext}$major' 18858 ;; 18859 esac 18860 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18861 postinstall_cmds='chmod 555 $lib' 18862 ;; 18863 18864interix3*) 18865 version_type=linux 18866 need_lib_prefix=no 18867 need_version=no 18868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18869 soname_spec='${libname}${release}${shared_ext}$major' 18870 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18871 shlibpath_var=LD_LIBRARY_PATH 18872 shlibpath_overrides_runpath=no 18873 hardcode_into_libs=yes 18874 ;; 18875 18876irix5* | irix6* | nonstopux*) 18877 case $host_os in 18878 nonstopux*) version_type=nonstopux ;; 18879 *) 18880 if test "$lt_cv_prog_gnu_ld" = yes; then 18881 version_type=linux 18882 else 18883 version_type=irix 18884 fi ;; 18885 esac 18886 need_lib_prefix=no 18887 need_version=no 18888 soname_spec='${libname}${release}${shared_ext}$major' 18889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18890 case $host_os in 18891 irix5* | nonstopux*) 18892 libsuff= shlibsuff= 18893 ;; 18894 *) 18895 case $LD in # libtool.m4 will add one of these switches to LD 18896 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18897 libsuff= shlibsuff= libmagic=32-bit;; 18898 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18899 libsuff=32 shlibsuff=N32 libmagic=N32;; 18900 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18901 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18902 *) libsuff= shlibsuff= libmagic=never-match;; 18903 esac 18904 ;; 18905 esac 18906 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18907 shlibpath_overrides_runpath=no 18908 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18909 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18910 hardcode_into_libs=yes 18911 ;; 18912 18913# No shared lib support for Linux oldld, aout, or coff. 18914linux*oldld* | linux*aout* | linux*coff*) 18915 dynamic_linker=no 18916 ;; 18917 18918# This must be Linux ELF. 18919linux* | k*bsd*-gnu) 18920 version_type=linux 18921 need_lib_prefix=no 18922 need_version=no 18923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18924 soname_spec='${libname}${release}${shared_ext}$major' 18925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18926 shlibpath_var=LD_LIBRARY_PATH 18927 shlibpath_overrides_runpath=no 18928 # This implies no fast_install, which is unacceptable. 18929 # Some rework will be needed to allow for fast_install 18930 # before this can be enabled. 18931 hardcode_into_libs=yes 18932 18933 # Append ld.so.conf contents to the search path 18934 if test -f /etc/ld.so.conf; then 18935 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' ' '` 18936 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18937 fi 18938 18939 # We used to test for /lib/ld.so.1 and disable shared libraries on 18940 # powerpc, because MkLinux only supported shared libraries with the 18941 # GNU dynamic linker. Since this was broken with cross compilers, 18942 # most powerpc-linux boxes support dynamic linking these days and 18943 # people can always --disable-shared, the test was removed, and we 18944 # assume the GNU/Linux dynamic linker is in use. 18945 dynamic_linker='GNU/Linux ld.so' 18946 ;; 18947 18948netbsdelf*-gnu) 18949 version_type=linux 18950 need_lib_prefix=no 18951 need_version=no 18952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18953 soname_spec='${libname}${release}${shared_ext}$major' 18954 shlibpath_var=LD_LIBRARY_PATH 18955 shlibpath_overrides_runpath=no 18956 hardcode_into_libs=yes 18957 dynamic_linker='NetBSD ld.elf_so' 18958 ;; 18959 18960netbsd*) 18961 version_type=sunos 18962 need_lib_prefix=no 18963 need_version=no 18964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18967 dynamic_linker='NetBSD (a.out) ld.so' 18968 else 18969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18970 soname_spec='${libname}${release}${shared_ext}$major' 18971 dynamic_linker='NetBSD ld.elf_so' 18972 fi 18973 shlibpath_var=LD_LIBRARY_PATH 18974 shlibpath_overrides_runpath=yes 18975 hardcode_into_libs=yes 18976 ;; 18977 18978newsos6) 18979 version_type=linux 18980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18981 shlibpath_var=LD_LIBRARY_PATH 18982 shlibpath_overrides_runpath=yes 18983 ;; 18984 18985nto-qnx*) 18986 version_type=linux 18987 need_lib_prefix=no 18988 need_version=no 18989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18990 soname_spec='${libname}${release}${shared_ext}$major' 18991 shlibpath_var=LD_LIBRARY_PATH 18992 shlibpath_overrides_runpath=yes 18993 ;; 18994 18995openbsd*) 18996 version_type=sunos 18997 sys_lib_dlsearch_path_spec="/usr/lib" 18998 need_lib_prefix=no 18999 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19000 case $host_os in 19001 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19002 *) need_version=no ;; 19003 esac 19004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19006 shlibpath_var=LD_LIBRARY_PATH 19007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19008 case $host_os in 19009 openbsd2.[89] | openbsd2.[89].*) 19010 shlibpath_overrides_runpath=no 19011 ;; 19012 *) 19013 shlibpath_overrides_runpath=yes 19014 ;; 19015 esac 19016 else 19017 shlibpath_overrides_runpath=yes 19018 fi 19019 ;; 19020 19021os2*) 19022 libname_spec='$name' 19023 shrext_cmds=".dll" 19024 need_lib_prefix=no 19025 library_names_spec='$libname${shared_ext} $libname.a' 19026 dynamic_linker='OS/2 ld.exe' 19027 shlibpath_var=LIBPATH 19028 ;; 19029 19030osf3* | osf4* | osf5*) 19031 version_type=osf 19032 need_lib_prefix=no 19033 need_version=no 19034 soname_spec='${libname}${release}${shared_ext}$major' 19035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19036 shlibpath_var=LD_LIBRARY_PATH 19037 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19038 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19039 ;; 19040 19041solaris*) 19042 version_type=linux 19043 need_lib_prefix=no 19044 need_version=no 19045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19046 soname_spec='${libname}${release}${shared_ext}$major' 19047 shlibpath_var=LD_LIBRARY_PATH 19048 shlibpath_overrides_runpath=yes 19049 hardcode_into_libs=yes 19050 # ldd complains unless libraries are executable 19051 postinstall_cmds='chmod +x $lib' 19052 ;; 19053 19054sunos4*) 19055 version_type=sunos 19056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19057 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19058 shlibpath_var=LD_LIBRARY_PATH 19059 shlibpath_overrides_runpath=yes 19060 if test "$with_gnu_ld" = yes; then 19061 need_lib_prefix=no 19062 fi 19063 need_version=yes 19064 ;; 19065 19066sysv4 | sysv4.3*) 19067 version_type=linux 19068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19069 soname_spec='${libname}${release}${shared_ext}$major' 19070 shlibpath_var=LD_LIBRARY_PATH 19071 case $host_vendor in 19072 sni) 19073 shlibpath_overrides_runpath=no 19074 need_lib_prefix=no 19075 export_dynamic_flag_spec='${wl}-Blargedynsym' 19076 runpath_var=LD_RUN_PATH 19077 ;; 19078 siemens) 19079 need_lib_prefix=no 19080 ;; 19081 motorola) 19082 need_lib_prefix=no 19083 need_version=no 19084 shlibpath_overrides_runpath=no 19085 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19086 ;; 19087 esac 19088 ;; 19089 19090sysv4*MP*) 19091 if test -d /usr/nec ;then 19092 version_type=linux 19093 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19094 soname_spec='$libname${shared_ext}.$major' 19095 shlibpath_var=LD_LIBRARY_PATH 19096 fi 19097 ;; 19098 19099sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19100 version_type=freebsd-elf 19101 need_lib_prefix=no 19102 need_version=no 19103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19104 soname_spec='${libname}${release}${shared_ext}$major' 19105 shlibpath_var=LD_LIBRARY_PATH 19106 hardcode_into_libs=yes 19107 if test "$with_gnu_ld" = yes; then 19108 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19109 shlibpath_overrides_runpath=no 19110 else 19111 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19112 shlibpath_overrides_runpath=yes 19113 case $host_os in 19114 sco3.2v5*) 19115 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19116 ;; 19117 esac 19118 fi 19119 sys_lib_dlsearch_path_spec='/usr/lib' 19120 ;; 19121 19122uts4*) 19123 version_type=linux 19124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19125 soname_spec='${libname}${release}${shared_ext}$major' 19126 shlibpath_var=LD_LIBRARY_PATH 19127 ;; 19128 19129*) 19130 dynamic_linker=no 19131 ;; 19132esac 19133{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19134echo "${ECHO_T}$dynamic_linker" >&6; } 19135test "$dynamic_linker" = no && can_build_shared=no 19136 19137variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19138if test "$GCC" = yes; then 19139 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19140fi 19141 19142{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19143echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 19144hardcode_action_GCJ= 19145if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19146 test -n "$runpath_var_GCJ" || \ 19147 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19148 19149 # We can hardcode non-existant directories. 19150 if test "$hardcode_direct_GCJ" != no && 19151 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19152 # have to relink, otherwise we might link with an installed library 19153 # when we should be linking with a yet-to-be-installed one 19154 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19155 test "$hardcode_minus_L_GCJ" != no; then 19156 # Linking always hardcodes the temporary library directory. 19157 hardcode_action_GCJ=relink 19158 else 19159 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19160 hardcode_action_GCJ=immediate 19161 fi 19162else 19163 # We cannot hardcode anything, or else we can only hardcode existing 19164 # directories. 19165 hardcode_action_GCJ=unsupported 19166fi 19167{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19168echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 19169 19170if test "$hardcode_action_GCJ" = relink; then 19171 # Fast installation is not supported 19172 enable_fast_install=no 19173elif test "$shlibpath_overrides_runpath" = yes || 19174 test "$enable_shared" = no; then 19175 # Fast installation is not necessary 19176 enable_fast_install=needless 19177fi 19178 19179 19180# The else clause should only fire when bootstrapping the 19181# libtool distribution, otherwise you forgot to ship ltmain.sh 19182# with your package, and you will get complaints that there are 19183# no rules to generate ltmain.sh. 19184if test -f "$ltmain"; then 19185 # See if we are running on zsh, and set the options which allow our commands through 19186 # without removal of \ escapes. 19187 if test -n "${ZSH_VERSION+set}" ; then 19188 setopt NO_GLOB_SUBST 19189 fi 19190 # Now quote all the things that may contain metacharacters while being 19191 # careful not to overquote the AC_SUBSTed values. We take copies of the 19192 # variables and quote the copies for generation of the libtool script. 19193 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19194 SED SHELL STRIP \ 19195 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19196 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19197 deplibs_check_method reload_flag reload_cmds need_locks \ 19198 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19199 lt_cv_sys_global_symbol_to_c_name_address \ 19200 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19201 old_postinstall_cmds old_postuninstall_cmds \ 19202 compiler_GCJ \ 19203 CC_GCJ \ 19204 LD_GCJ \ 19205 lt_prog_compiler_wl_GCJ \ 19206 lt_prog_compiler_pic_GCJ \ 19207 lt_prog_compiler_static_GCJ \ 19208 lt_prog_compiler_no_builtin_flag_GCJ \ 19209 export_dynamic_flag_spec_GCJ \ 19210 thread_safe_flag_spec_GCJ \ 19211 whole_archive_flag_spec_GCJ \ 19212 enable_shared_with_static_runtimes_GCJ \ 19213 old_archive_cmds_GCJ \ 19214 old_archive_from_new_cmds_GCJ \ 19215 predep_objects_GCJ \ 19216 postdep_objects_GCJ \ 19217 predeps_GCJ \ 19218 postdeps_GCJ \ 19219 compiler_lib_search_path_GCJ \ 19220 archive_cmds_GCJ \ 19221 archive_expsym_cmds_GCJ \ 19222 postinstall_cmds_GCJ \ 19223 postuninstall_cmds_GCJ \ 19224 old_archive_from_expsyms_cmds_GCJ \ 19225 allow_undefined_flag_GCJ \ 19226 no_undefined_flag_GCJ \ 19227 export_symbols_cmds_GCJ \ 19228 hardcode_libdir_flag_spec_GCJ \ 19229 hardcode_libdir_flag_spec_ld_GCJ \ 19230 hardcode_libdir_separator_GCJ \ 19231 hardcode_automatic_GCJ \ 19232 module_cmds_GCJ \ 19233 module_expsym_cmds_GCJ \ 19234 lt_cv_prog_compiler_c_o_GCJ \ 19235 exclude_expsyms_GCJ \ 19236 include_expsyms_GCJ; do 19237 19238 case $var in 19239 old_archive_cmds_GCJ | \ 19240 old_archive_from_new_cmds_GCJ | \ 19241 archive_cmds_GCJ | \ 19242 archive_expsym_cmds_GCJ | \ 19243 module_cmds_GCJ | \ 19244 module_expsym_cmds_GCJ | \ 19245 old_archive_from_expsyms_cmds_GCJ | \ 19246 export_symbols_cmds_GCJ | \ 19247 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19248 postinstall_cmds | postuninstall_cmds | \ 19249 old_postinstall_cmds | old_postuninstall_cmds | \ 19250 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19251 # Double-quote double-evaled strings. 19252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19253 ;; 19254 *) 19255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19256 ;; 19257 esac 19258 done 19259 19260 case $lt_echo in 19261 *'\$0 --fallback-echo"') 19262 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19263 ;; 19264 esac 19265 19266cfgfile="$ofile" 19267 19268 cat <<__EOF__ >> "$cfgfile" 19269# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19270 19271# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19272 19273# Shell to use when invoking shell scripts. 19274SHELL=$lt_SHELL 19275 19276# Whether or not to build shared libraries. 19277build_libtool_libs=$enable_shared 19278 19279# Whether or not to build static libraries. 19280build_old_libs=$enable_static 19281 19282# Whether or not to add -lc for building shared libraries. 19283build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19284 19285# Whether or not to disallow shared libs when runtime libs are static 19286allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19287 19288# Whether or not to optimize for fast installation. 19289fast_install=$enable_fast_install 19290 19291# The host system. 19292host_alias=$host_alias 19293host=$host 19294host_os=$host_os 19295 19296# The build system. 19297build_alias=$build_alias 19298build=$build 19299build_os=$build_os 19300 19301# An echo program that does not interpret backslashes. 19302echo=$lt_echo 19303 19304# The archiver. 19305AR=$lt_AR 19306AR_FLAGS=$lt_AR_FLAGS 19307 19308# A C compiler. 19309LTCC=$lt_LTCC 19310 19311# LTCC compiler flags. 19312LTCFLAGS=$lt_LTCFLAGS 19313 19314# A language-specific compiler. 19315CC=$lt_compiler_GCJ 19316 19317# Is the compiler the GNU C compiler? 19318with_gcc=$GCC_GCJ 19319 19320# An ERE matcher. 19321EGREP=$lt_EGREP 19322 19323# The linker used to build libraries. 19324LD=$lt_LD_GCJ 19325 19326# Whether we need hard or soft links. 19327LN_S=$lt_LN_S 19328 19329# A BSD-compatible nm program. 19330NM=$lt_NM 19331 19332# A symbol stripping program 19333STRIP=$lt_STRIP 19334 19335# Used to examine libraries when file_magic_cmd begins "file" 19336MAGIC_CMD=$MAGIC_CMD 19337 19338# Used on cygwin: DLL creation program. 19339DLLTOOL="$DLLTOOL" 19340 19341# Used on cygwin: object dumper. 19342OBJDUMP="$OBJDUMP" 19343 19344# Used on cygwin: assembler. 19345AS="$AS" 19346 19347# The name of the directory that contains temporary libtool files. 19348objdir=$objdir 19349 19350# How to create reloadable object files. 19351reload_flag=$lt_reload_flag 19352reload_cmds=$lt_reload_cmds 19353 19354# How to pass a linker flag through the compiler. 19355wl=$lt_lt_prog_compiler_wl_GCJ 19356 19357# Object file suffix (normally "o"). 19358objext="$ac_objext" 19359 19360# Old archive suffix (normally "a"). 19361libext="$libext" 19362 19363# Shared library suffix (normally ".so"). 19364shrext_cmds='$shrext_cmds' 19365 19366# Executable file suffix (normally ""). 19367exeext="$exeext" 19368 19369# Additional compiler flags for building library objects. 19370pic_flag=$lt_lt_prog_compiler_pic_GCJ 19371pic_mode=$pic_mode 19372 19373# What is the maximum length of a command? 19374max_cmd_len=$lt_cv_sys_max_cmd_len 19375 19376# Does compiler simultaneously support -c and -o options? 19377compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19378 19379# Must we lock files when doing compilation? 19380need_locks=$lt_need_locks 19381 19382# Do we need the lib prefix for modules? 19383need_lib_prefix=$need_lib_prefix 19384 19385# Do we need a version for libraries? 19386need_version=$need_version 19387 19388# Whether dlopen is supported. 19389dlopen_support=$enable_dlopen 19390 19391# Whether dlopen of programs is supported. 19392dlopen_self=$enable_dlopen_self 19393 19394# Whether dlopen of statically linked programs is supported. 19395dlopen_self_static=$enable_dlopen_self_static 19396 19397# Compiler flag to prevent dynamic linking. 19398link_static_flag=$lt_lt_prog_compiler_static_GCJ 19399 19400# Compiler flag to turn off builtin functions. 19401no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19402 19403# Compiler flag to allow reflexive dlopens. 19404export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19405 19406# Compiler flag to generate shared objects directly from archives. 19407whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19408 19409# Compiler flag to generate thread-safe objects. 19410thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19411 19412# Library versioning type. 19413version_type=$version_type 19414 19415# Format of library name prefix. 19416libname_spec=$lt_libname_spec 19417 19418# List of archive names. First name is the real one, the rest are links. 19419# The last name is the one that the linker finds with -lNAME. 19420library_names_spec=$lt_library_names_spec 19421 19422# The coded name of the library, if different from the real name. 19423soname_spec=$lt_soname_spec 19424 19425# Commands used to build and install an old-style archive. 19426RANLIB=$lt_RANLIB 19427old_archive_cmds=$lt_old_archive_cmds_GCJ 19428old_postinstall_cmds=$lt_old_postinstall_cmds 19429old_postuninstall_cmds=$lt_old_postuninstall_cmds 19430 19431# Create an old-style archive from a shared archive. 19432old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19433 19434# Create a temporary old-style archive to link instead of a shared archive. 19435old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19436 19437# Commands used to build and install a shared archive. 19438archive_cmds=$lt_archive_cmds_GCJ 19439archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19440postinstall_cmds=$lt_postinstall_cmds 19441postuninstall_cmds=$lt_postuninstall_cmds 19442 19443# Commands used to build a loadable module (assumed same as above if empty) 19444module_cmds=$lt_module_cmds_GCJ 19445module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19446 19447# Commands to strip libraries. 19448old_striplib=$lt_old_striplib 19449striplib=$lt_striplib 19450 19451# Dependencies to place before the objects being linked to create a 19452# shared library. 19453predep_objects=$lt_predep_objects_GCJ 19454 19455# Dependencies to place after the objects being linked to create a 19456# shared library. 19457postdep_objects=$lt_postdep_objects_GCJ 19458 19459# Dependencies to place before the objects being linked to create a 19460# shared library. 19461predeps=$lt_predeps_GCJ 19462 19463# Dependencies to place after the objects being linked to create a 19464# shared library. 19465postdeps=$lt_postdeps_GCJ 19466 19467# The library search path used internally by the compiler when linking 19468# a shared library. 19469compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19470 19471# Method to check whether dependent libraries are shared objects. 19472deplibs_check_method=$lt_deplibs_check_method 19473 19474# Command to use when deplibs_check_method == file_magic. 19475file_magic_cmd=$lt_file_magic_cmd 19476 19477# Flag that allows shared libraries with undefined symbols to be built. 19478allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19479 19480# Flag that forces no undefined symbols. 19481no_undefined_flag=$lt_no_undefined_flag_GCJ 19482 19483# Commands used to finish a libtool library installation in a directory. 19484finish_cmds=$lt_finish_cmds 19485 19486# Same as above, but a single script fragment to be evaled but not shown. 19487finish_eval=$lt_finish_eval 19488 19489# Take the output of nm and produce a listing of raw symbols and C names. 19490global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19491 19492# Transform the output of nm in a proper C declaration 19493global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19494 19495# Transform the output of nm in a C name address pair 19496global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19497 19498# This is the shared library runtime path variable. 19499runpath_var=$runpath_var 19500 19501# This is the shared library path variable. 19502shlibpath_var=$shlibpath_var 19503 19504# Is shlibpath searched before the hard-coded library search path? 19505shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19506 19507# How to hardcode a shared library path into an executable. 19508hardcode_action=$hardcode_action_GCJ 19509 19510# Whether we should hardcode library paths into libraries. 19511hardcode_into_libs=$hardcode_into_libs 19512 19513# Flag to hardcode \$libdir into a binary during linking. 19514# This must work even if \$libdir does not exist. 19515hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19516 19517# If ld is used when linking, flag to hardcode \$libdir into 19518# a binary during linking. This must work even if \$libdir does 19519# not exist. 19520hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19521 19522# Whether we need a single -rpath flag with a separated argument. 19523hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19524 19525# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19526# resulting binary. 19527hardcode_direct=$hardcode_direct_GCJ 19528 19529# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19530# resulting binary. 19531hardcode_minus_L=$hardcode_minus_L_GCJ 19532 19533# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19534# the resulting binary. 19535hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19536 19537# Set to yes if building a shared library automatically hardcodes DIR into the library 19538# and all subsequent libraries and executables linked against it. 19539hardcode_automatic=$hardcode_automatic_GCJ 19540 19541# Variables whose values should be saved in libtool wrapper scripts and 19542# restored at relink time. 19543variables_saved_for_relink="$variables_saved_for_relink" 19544 19545# Whether libtool must link a program against all its dependency libraries. 19546link_all_deplibs=$link_all_deplibs_GCJ 19547 19548# Compile-time system search path for libraries 19549sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19550 19551# Run-time system search path for libraries 19552sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19553 19554# Fix the shell variable \$srcfile for the compiler. 19555fix_srcfile_path="$fix_srcfile_path_GCJ" 19556 19557# Set to yes if exported symbols are required. 19558always_export_symbols=$always_export_symbols_GCJ 19559 19560# The commands to list exported symbols. 19561export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19562 19563# The commands to extract the exported symbol list from a shared archive. 19564extract_expsyms_cmds=$lt_extract_expsyms_cmds 19565 19566# Symbols that should not be listed in the preloaded symbols. 19567exclude_expsyms=$lt_exclude_expsyms_GCJ 19568 19569# Symbols that must always be exported. 19570include_expsyms=$lt_include_expsyms_GCJ 19571 19572# ### END LIBTOOL TAG CONFIG: $tagname 19573 19574__EOF__ 19575 19576 19577else 19578 # If there is no Makefile yet, we rely on a make rule to execute 19579 # `config.status --recheck' to rerun these tests and create the 19580 # libtool script then. 19581 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19582 if test -f "$ltmain_in"; then 19583 test -f Makefile && make "$ltmain" 19584 fi 19585fi 19586 19587 19588ac_ext=c 19589ac_cpp='$CPP $CPPFLAGS' 19590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19592ac_compiler_gnu=$ac_cv_c_compiler_gnu 19593 19594CC="$lt_save_CC" 19595 19596 else 19597 tagname="" 19598 fi 19599 ;; 19600 19601 RC) 19602 19603 19604# Source file extension for RC test sources. 19605ac_ext=rc 19606 19607# Object file extension for compiled RC test sources. 19608objext=o 19609objext_RC=$objext 19610 19611# Code to be used in simple compile tests 19612lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19613 19614# Code to be used in simple link tests 19615lt_simple_link_test_code="$lt_simple_compile_test_code" 19616 19617# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19618 19619# If no C compiler was specified, use CC. 19620LTCC=${LTCC-"$CC"} 19621 19622# If no C compiler flags were specified, use CFLAGS. 19623LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19624 19625# Allow CC to be a program name with arguments. 19626compiler=$CC 19627 19628 19629# save warnings/boilerplate of simple test code 19630ac_outfile=conftest.$ac_objext 19631printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19632eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19633_lt_compiler_boilerplate=`cat conftest.err` 19634$rm conftest* 19635 19636ac_outfile=conftest.$ac_objext 19637printf "$lt_simple_link_test_code" >conftest.$ac_ext 19638eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19639_lt_linker_boilerplate=`cat conftest.err` 19640$rm conftest* 19641 19642 19643# Allow CC to be a program name with arguments. 19644lt_save_CC="$CC" 19645CC=${RC-"windres"} 19646compiler=$CC 19647compiler_RC=$CC 19648for cc_temp in $compiler""; do 19649 case $cc_temp in 19650 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19651 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19652 \-*) ;; 19653 *) break;; 19654 esac 19655done 19656cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19657 19658lt_cv_prog_compiler_c_o_RC=yes 19659 19660# The else clause should only fire when bootstrapping the 19661# libtool distribution, otherwise you forgot to ship ltmain.sh 19662# with your package, and you will get complaints that there are 19663# no rules to generate ltmain.sh. 19664if test -f "$ltmain"; then 19665 # See if we are running on zsh, and set the options which allow our commands through 19666 # without removal of \ escapes. 19667 if test -n "${ZSH_VERSION+set}" ; then 19668 setopt NO_GLOB_SUBST 19669 fi 19670 # Now quote all the things that may contain metacharacters while being 19671 # careful not to overquote the AC_SUBSTed values. We take copies of the 19672 # variables and quote the copies for generation of the libtool script. 19673 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19674 SED SHELL STRIP \ 19675 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19676 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19677 deplibs_check_method reload_flag reload_cmds need_locks \ 19678 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19679 lt_cv_sys_global_symbol_to_c_name_address \ 19680 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19681 old_postinstall_cmds old_postuninstall_cmds \ 19682 compiler_RC \ 19683 CC_RC \ 19684 LD_RC \ 19685 lt_prog_compiler_wl_RC \ 19686 lt_prog_compiler_pic_RC \ 19687 lt_prog_compiler_static_RC \ 19688 lt_prog_compiler_no_builtin_flag_RC \ 19689 export_dynamic_flag_spec_RC \ 19690 thread_safe_flag_spec_RC \ 19691 whole_archive_flag_spec_RC \ 19692 enable_shared_with_static_runtimes_RC \ 19693 old_archive_cmds_RC \ 19694 old_archive_from_new_cmds_RC \ 19695 predep_objects_RC \ 19696 postdep_objects_RC \ 19697 predeps_RC \ 19698 postdeps_RC \ 19699 compiler_lib_search_path_RC \ 19700 archive_cmds_RC \ 19701 archive_expsym_cmds_RC \ 19702 postinstall_cmds_RC \ 19703 postuninstall_cmds_RC \ 19704 old_archive_from_expsyms_cmds_RC \ 19705 allow_undefined_flag_RC \ 19706 no_undefined_flag_RC \ 19707 export_symbols_cmds_RC \ 19708 hardcode_libdir_flag_spec_RC \ 19709 hardcode_libdir_flag_spec_ld_RC \ 19710 hardcode_libdir_separator_RC \ 19711 hardcode_automatic_RC \ 19712 module_cmds_RC \ 19713 module_expsym_cmds_RC \ 19714 lt_cv_prog_compiler_c_o_RC \ 19715 exclude_expsyms_RC \ 19716 include_expsyms_RC; do 19717 19718 case $var in 19719 old_archive_cmds_RC | \ 19720 old_archive_from_new_cmds_RC | \ 19721 archive_cmds_RC | \ 19722 archive_expsym_cmds_RC | \ 19723 module_cmds_RC | \ 19724 module_expsym_cmds_RC | \ 19725 old_archive_from_expsyms_cmds_RC | \ 19726 export_symbols_cmds_RC | \ 19727 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19728 postinstall_cmds | postuninstall_cmds | \ 19729 old_postinstall_cmds | old_postuninstall_cmds | \ 19730 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19731 # Double-quote double-evaled strings. 19732 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19733 ;; 19734 *) 19735 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19736 ;; 19737 esac 19738 done 19739 19740 case $lt_echo in 19741 *'\$0 --fallback-echo"') 19742 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19743 ;; 19744 esac 19745 19746cfgfile="$ofile" 19747 19748 cat <<__EOF__ >> "$cfgfile" 19749# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19750 19751# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19752 19753# Shell to use when invoking shell scripts. 19754SHELL=$lt_SHELL 19755 19756# Whether or not to build shared libraries. 19757build_libtool_libs=$enable_shared 19758 19759# Whether or not to build static libraries. 19760build_old_libs=$enable_static 19761 19762# Whether or not to add -lc for building shared libraries. 19763build_libtool_need_lc=$archive_cmds_need_lc_RC 19764 19765# Whether or not to disallow shared libs when runtime libs are static 19766allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19767 19768# Whether or not to optimize for fast installation. 19769fast_install=$enable_fast_install 19770 19771# The host system. 19772host_alias=$host_alias 19773host=$host 19774host_os=$host_os 19775 19776# The build system. 19777build_alias=$build_alias 19778build=$build 19779build_os=$build_os 19780 19781# An echo program that does not interpret backslashes. 19782echo=$lt_echo 19783 19784# The archiver. 19785AR=$lt_AR 19786AR_FLAGS=$lt_AR_FLAGS 19787 19788# A C compiler. 19789LTCC=$lt_LTCC 19790 19791# LTCC compiler flags. 19792LTCFLAGS=$lt_LTCFLAGS 19793 19794# A language-specific compiler. 19795CC=$lt_compiler_RC 19796 19797# Is the compiler the GNU C compiler? 19798with_gcc=$GCC_RC 19799 19800# An ERE matcher. 19801EGREP=$lt_EGREP 19802 19803# The linker used to build libraries. 19804LD=$lt_LD_RC 19805 19806# Whether we need hard or soft links. 19807LN_S=$lt_LN_S 19808 19809# A BSD-compatible nm program. 19810NM=$lt_NM 19811 19812# A symbol stripping program 19813STRIP=$lt_STRIP 19814 19815# Used to examine libraries when file_magic_cmd begins "file" 19816MAGIC_CMD=$MAGIC_CMD 19817 19818# Used on cygwin: DLL creation program. 19819DLLTOOL="$DLLTOOL" 19820 19821# Used on cygwin: object dumper. 19822OBJDUMP="$OBJDUMP" 19823 19824# Used on cygwin: assembler. 19825AS="$AS" 19826 19827# The name of the directory that contains temporary libtool files. 19828objdir=$objdir 19829 19830# How to create reloadable object files. 19831reload_flag=$lt_reload_flag 19832reload_cmds=$lt_reload_cmds 19833 19834# How to pass a linker flag through the compiler. 19835wl=$lt_lt_prog_compiler_wl_RC 19836 19837# Object file suffix (normally "o"). 19838objext="$ac_objext" 19839 19840# Old archive suffix (normally "a"). 19841libext="$libext" 19842 19843# Shared library suffix (normally ".so"). 19844shrext_cmds='$shrext_cmds' 19845 19846# Executable file suffix (normally ""). 19847exeext="$exeext" 19848 19849# Additional compiler flags for building library objects. 19850pic_flag=$lt_lt_prog_compiler_pic_RC 19851pic_mode=$pic_mode 19852 19853# What is the maximum length of a command? 19854max_cmd_len=$lt_cv_sys_max_cmd_len 19855 19856# Does compiler simultaneously support -c and -o options? 19857compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19858 19859# Must we lock files when doing compilation? 19860need_locks=$lt_need_locks 19861 19862# Do we need the lib prefix for modules? 19863need_lib_prefix=$need_lib_prefix 19864 19865# Do we need a version for libraries? 19866need_version=$need_version 19867 19868# Whether dlopen is supported. 19869dlopen_support=$enable_dlopen 19870 19871# Whether dlopen of programs is supported. 19872dlopen_self=$enable_dlopen_self 19873 19874# Whether dlopen of statically linked programs is supported. 19875dlopen_self_static=$enable_dlopen_self_static 19876 19877# Compiler flag to prevent dynamic linking. 19878link_static_flag=$lt_lt_prog_compiler_static_RC 19879 19880# Compiler flag to turn off builtin functions. 19881no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19882 19883# Compiler flag to allow reflexive dlopens. 19884export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19885 19886# Compiler flag to generate shared objects directly from archives. 19887whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19888 19889# Compiler flag to generate thread-safe objects. 19890thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19891 19892# Library versioning type. 19893version_type=$version_type 19894 19895# Format of library name prefix. 19896libname_spec=$lt_libname_spec 19897 19898# List of archive names. First name is the real one, the rest are links. 19899# The last name is the one that the linker finds with -lNAME. 19900library_names_spec=$lt_library_names_spec 19901 19902# The coded name of the library, if different from the real name. 19903soname_spec=$lt_soname_spec 19904 19905# Commands used to build and install an old-style archive. 19906RANLIB=$lt_RANLIB 19907old_archive_cmds=$lt_old_archive_cmds_RC 19908old_postinstall_cmds=$lt_old_postinstall_cmds 19909old_postuninstall_cmds=$lt_old_postuninstall_cmds 19910 19911# Create an old-style archive from a shared archive. 19912old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19913 19914# Create a temporary old-style archive to link instead of a shared archive. 19915old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19916 19917# Commands used to build and install a shared archive. 19918archive_cmds=$lt_archive_cmds_RC 19919archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19920postinstall_cmds=$lt_postinstall_cmds 19921postuninstall_cmds=$lt_postuninstall_cmds 19922 19923# Commands used to build a loadable module (assumed same as above if empty) 19924module_cmds=$lt_module_cmds_RC 19925module_expsym_cmds=$lt_module_expsym_cmds_RC 19926 19927# Commands to strip libraries. 19928old_striplib=$lt_old_striplib 19929striplib=$lt_striplib 19930 19931# Dependencies to place before the objects being linked to create a 19932# shared library. 19933predep_objects=$lt_predep_objects_RC 19934 19935# Dependencies to place after the objects being linked to create a 19936# shared library. 19937postdep_objects=$lt_postdep_objects_RC 19938 19939# Dependencies to place before the objects being linked to create a 19940# shared library. 19941predeps=$lt_predeps_RC 19942 19943# Dependencies to place after the objects being linked to create a 19944# shared library. 19945postdeps=$lt_postdeps_RC 19946 19947# The library search path used internally by the compiler when linking 19948# a shared library. 19949compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19950 19951# Method to check whether dependent libraries are shared objects. 19952deplibs_check_method=$lt_deplibs_check_method 19953 19954# Command to use when deplibs_check_method == file_magic. 19955file_magic_cmd=$lt_file_magic_cmd 19956 19957# Flag that allows shared libraries with undefined symbols to be built. 19958allow_undefined_flag=$lt_allow_undefined_flag_RC 19959 19960# Flag that forces no undefined symbols. 19961no_undefined_flag=$lt_no_undefined_flag_RC 19962 19963# Commands used to finish a libtool library installation in a directory. 19964finish_cmds=$lt_finish_cmds 19965 19966# Same as above, but a single script fragment to be evaled but not shown. 19967finish_eval=$lt_finish_eval 19968 19969# Take the output of nm and produce a listing of raw symbols and C names. 19970global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19971 19972# Transform the output of nm in a proper C declaration 19973global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19974 19975# Transform the output of nm in a C name address pair 19976global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19977 19978# This is the shared library runtime path variable. 19979runpath_var=$runpath_var 19980 19981# This is the shared library path variable. 19982shlibpath_var=$shlibpath_var 19983 19984# Is shlibpath searched before the hard-coded library search path? 19985shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19986 19987# How to hardcode a shared library path into an executable. 19988hardcode_action=$hardcode_action_RC 19989 19990# Whether we should hardcode library paths into libraries. 19991hardcode_into_libs=$hardcode_into_libs 19992 19993# Flag to hardcode \$libdir into a binary during linking. 19994# This must work even if \$libdir does not exist. 19995hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19996 19997# If ld is used when linking, flag to hardcode \$libdir into 19998# a binary during linking. This must work even if \$libdir does 19999# not exist. 20000hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20001 20002# Whether we need a single -rpath flag with a separated argument. 20003hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20004 20005# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20006# resulting binary. 20007hardcode_direct=$hardcode_direct_RC 20008 20009# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20010# resulting binary. 20011hardcode_minus_L=$hardcode_minus_L_RC 20012 20013# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20014# the resulting binary. 20015hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20016 20017# Set to yes if building a shared library automatically hardcodes DIR into the library 20018# and all subsequent libraries and executables linked against it. 20019hardcode_automatic=$hardcode_automatic_RC 20020 20021# Variables whose values should be saved in libtool wrapper scripts and 20022# restored at relink time. 20023variables_saved_for_relink="$variables_saved_for_relink" 20024 20025# Whether libtool must link a program against all its dependency libraries. 20026link_all_deplibs=$link_all_deplibs_RC 20027 20028# Compile-time system search path for libraries 20029sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20030 20031# Run-time system search path for libraries 20032sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20033 20034# Fix the shell variable \$srcfile for the compiler. 20035fix_srcfile_path="$fix_srcfile_path_RC" 20036 20037# Set to yes if exported symbols are required. 20038always_export_symbols=$always_export_symbols_RC 20039 20040# The commands to list exported symbols. 20041export_symbols_cmds=$lt_export_symbols_cmds_RC 20042 20043# The commands to extract the exported symbol list from a shared archive. 20044extract_expsyms_cmds=$lt_extract_expsyms_cmds 20045 20046# Symbols that should not be listed in the preloaded symbols. 20047exclude_expsyms=$lt_exclude_expsyms_RC 20048 20049# Symbols that must always be exported. 20050include_expsyms=$lt_include_expsyms_RC 20051 20052# ### END LIBTOOL TAG CONFIG: $tagname 20053 20054__EOF__ 20055 20056 20057else 20058 # If there is no Makefile yet, we rely on a make rule to execute 20059 # `config.status --recheck' to rerun these tests and create the 20060 # libtool script then. 20061 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20062 if test -f "$ltmain_in"; then 20063 test -f Makefile && make "$ltmain" 20064 fi 20065fi 20066 20067 20068ac_ext=c 20069ac_cpp='$CPP $CPPFLAGS' 20070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20072ac_compiler_gnu=$ac_cv_c_compiler_gnu 20073 20074CC="$lt_save_CC" 20075 20076 ;; 20077 20078 *) 20079 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20080echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20081 { (exit 1); exit 1; }; } 20082 ;; 20083 esac 20084 20085 # Append the new tag name to the list of available tags. 20086 if test -n "$tagname" ; then 20087 available_tags="$available_tags $tagname" 20088 fi 20089 fi 20090 done 20091 IFS="$lt_save_ifs" 20092 20093 # Now substitute the updated list of available tags. 20094 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20095 mv "${ofile}T" "$ofile" 20096 chmod +x "$ofile" 20097 else 20098 rm -f "${ofile}T" 20099 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20100echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20101 { (exit 1); exit 1; }; } 20102 fi 20103fi 20104 20105 20106 20107# This can be used to rebuild libtool when needed 20108LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20109 20110# Always use our own libtool. 20111LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20112 20113# Prevent multiple expansion 20114 20115 20116 20117 20118 20119 20120 20121 20122 20123 20124 20125 20126 20127 20128 20129 20130 20131 20132 20133 20134{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 20135echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 20136set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 20137if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 20138 echo $ECHO_N "(cached) $ECHO_C" >&6 20139else 20140 cat >conftest.make <<\_ACEOF 20141SHELL = /bin/sh 20142all: 20143 @echo '@@@%%%=$(MAKE)=@@@%%%' 20144_ACEOF 20145# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 20146case `${MAKE-make} -f conftest.make 2>/dev/null` in 20147 *@@@%%%=?*=@@@%%%*) 20148 eval ac_cv_prog_make_${ac_make}_set=yes;; 20149 *) 20150 eval ac_cv_prog_make_${ac_make}_set=no;; 20151esac 20152rm -f conftest.make 20153fi 20154if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 20155 { echo "$as_me:$LINENO: result: yes" >&5 20156echo "${ECHO_T}yes" >&6; } 20157 SET_MAKE= 20158else 20159 { echo "$as_me:$LINENO: result: no" >&5 20160echo "${ECHO_T}no" >&6; } 20161 SET_MAKE="MAKE=${MAKE-make}" 20162fi 20163 20164 20165 20166 20167if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20168 if test -n "$ac_tool_prefix"; then 20169 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20170set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20171{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20173if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20174 echo $ECHO_N "(cached) $ECHO_C" >&6 20175else 20176 case $PKG_CONFIG in 20177 [\\/]* | ?:[\\/]*) 20178 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20179 ;; 20180 *) 20181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20182for as_dir in $PATH 20183do 20184 IFS=$as_save_IFS 20185 test -z "$as_dir" && as_dir=. 20186 for ac_exec_ext in '' $ac_executable_extensions; do 20187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20188 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20190 break 2 20191 fi 20192done 20193done 20194IFS=$as_save_IFS 20195 20196 ;; 20197esac 20198fi 20199PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20200if test -n "$PKG_CONFIG"; then 20201 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20202echo "${ECHO_T}$PKG_CONFIG" >&6; } 20203else 20204 { echo "$as_me:$LINENO: result: no" >&5 20205echo "${ECHO_T}no" >&6; } 20206fi 20207 20208 20209fi 20210if test -z "$ac_cv_path_PKG_CONFIG"; then 20211 ac_pt_PKG_CONFIG=$PKG_CONFIG 20212 # Extract the first word of "pkg-config", so it can be a program name with args. 20213set dummy pkg-config; ac_word=$2 20214{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20216if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20217 echo $ECHO_N "(cached) $ECHO_C" >&6 20218else 20219 case $ac_pt_PKG_CONFIG in 20220 [\\/]* | ?:[\\/]*) 20221 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20222 ;; 20223 *) 20224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20225for as_dir in $PATH 20226do 20227 IFS=$as_save_IFS 20228 test -z "$as_dir" && as_dir=. 20229 for ac_exec_ext in '' $ac_executable_extensions; do 20230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20231 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20233 break 2 20234 fi 20235done 20236done 20237IFS=$as_save_IFS 20238 20239 ;; 20240esac 20241fi 20242ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20243if test -n "$ac_pt_PKG_CONFIG"; then 20244 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20245echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 20246else 20247 { echo "$as_me:$LINENO: result: no" >&5 20248echo "${ECHO_T}no" >&6; } 20249fi 20250 20251 if test "x$ac_pt_PKG_CONFIG" = x; then 20252 PKG_CONFIG="" 20253 else 20254 case $cross_compiling:$ac_tool_warned in 20255yes:) 20256{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20257whose name does not start with the host triplet. If you think this 20258configuration is useful to you, please write to autoconf@gnu.org." >&5 20259echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20260whose name does not start with the host triplet. If you think this 20261configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20262ac_tool_warned=yes ;; 20263esac 20264 PKG_CONFIG=$ac_pt_PKG_CONFIG 20265 fi 20266else 20267 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20268fi 20269 20270fi 20271if test -n "$PKG_CONFIG"; then 20272 _pkg_min_version=0.9.0 20273 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20274echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 20275 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20276 { echo "$as_me:$LINENO: result: yes" >&5 20277echo "${ECHO_T}yes" >&6; } 20278 else 20279 { echo "$as_me:$LINENO: result: no" >&5 20280echo "${ECHO_T}no" >&6; } 20281 PKG_CONFIG="" 20282 fi 20283 20284fi 20285 20286pkg_failed=no 20287{ echo "$as_me:$LINENO: checking for XAU" >&5 20288echo $ECHO_N "checking for XAU... $ECHO_C" >&6; } 20289 20290if test -n "$PKG_CONFIG"; then 20291 if test -n "$XAU_CFLAGS"; then 20292 pkg_cv_XAU_CFLAGS="$XAU_CFLAGS" 20293 else 20294 if test -n "$PKG_CONFIG" && \ 20295 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5 20296 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 20297 ac_status=$? 20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20299 (exit $ac_status); }; then 20300 pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 20301else 20302 pkg_failed=yes 20303fi 20304 fi 20305else 20306 pkg_failed=untried 20307fi 20308if test -n "$PKG_CONFIG"; then 20309 if test -n "$XAU_LIBS"; then 20310 pkg_cv_XAU_LIBS="$XAU_LIBS" 20311 else 20312 if test -n "$PKG_CONFIG" && \ 20313 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5 20314 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 20315 ac_status=$? 20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20317 (exit $ac_status); }; then 20318 pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 20319else 20320 pkg_failed=yes 20321fi 20322 fi 20323else 20324 pkg_failed=untried 20325fi 20326 20327 20328 20329if test $pkg_failed = yes; then 20330 20331if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20332 _pkg_short_errors_supported=yes 20333else 20334 _pkg_short_errors_supported=no 20335fi 20336 if test $_pkg_short_errors_supported = yes; then 20337 XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto"` 20338 else 20339 XAU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto"` 20340 fi 20341 # Put the nasty error message in config.log where it belongs 20342 echo "$XAU_PKG_ERRORS" >&5 20343 20344 { { echo "$as_me:$LINENO: error: Package requirements (xproto) were not met: 20345 20346$XAU_PKG_ERRORS 20347 20348Consider adjusting the PKG_CONFIG_PATH environment variable if you 20349installed software in a non-standard prefix. 20350 20351Alternatively, you may set the environment variables XAU_CFLAGS 20352and XAU_LIBS to avoid the need to call pkg-config. 20353See the pkg-config man page for more details. 20354" >&5 20355echo "$as_me: error: Package requirements (xproto) were not met: 20356 20357$XAU_PKG_ERRORS 20358 20359Consider adjusting the PKG_CONFIG_PATH environment variable if you 20360installed software in a non-standard prefix. 20361 20362Alternatively, you may set the environment variables XAU_CFLAGS 20363and XAU_LIBS to avoid the need to call pkg-config. 20364See the pkg-config man page for more details. 20365" >&2;} 20366 { (exit 1); exit 1; }; } 20367elif test $pkg_failed = untried; then 20368 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20369is in your PATH or set the PKG_CONFIG environment variable to the full 20370path to pkg-config. 20371 20372Alternatively, you may set the environment variables XAU_CFLAGS 20373and XAU_LIBS to avoid the need to call pkg-config. 20374See the pkg-config man page for more details. 20375 20376To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20377See \`config.log' for more details." >&5 20378echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20379is in your PATH or set the PKG_CONFIG environment variable to the full 20380path to pkg-config. 20381 20382Alternatively, you may set the environment variables XAU_CFLAGS 20383and XAU_LIBS to avoid the need to call pkg-config. 20384See the pkg-config man page for more details. 20385 20386To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20387See \`config.log' for more details." >&2;} 20388 { (exit 1); exit 1; }; } 20389else 20390 XAU_CFLAGS=$pkg_cv_XAU_CFLAGS 20391 XAU_LIBS=$pkg_cv_XAU_LIBS 20392 { echo "$as_me:$LINENO: result: yes" >&5 20393echo "${ECHO_T}yes" >&6; } 20394 : 20395fi 20396 20397 20398 20399kerberos=false 20400 20401 20402if test x$kerberos = xtrue; then 20403 KERBEROS_TRUE= 20404 KERBEROS_FALSE='#' 20405else 20406 KERBEROS_TRUE='#' 20407 KERBEROS_FALSE= 20408fi 20409 20410 20411# Check whether --enable-xthreads was given. 20412if test "${enable_xthreads+set}" = set; then 20413 enableval=$enable_xthreads; xthreads=$enableval 20414else 20415 xthreads=yes 20416fi 20417 20418 20419if test "x$xthreads" = "xyes" ; then 20420 20421cat >>confdefs.h <<\_ACEOF 20422#define XTHREADS 1 20423_ACEOF 20424 20425 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lc" >&5 20426echo $ECHO_N "checking for gethostbyname_r in -lc... $ECHO_C" >&6; } 20427if test "${ac_cv_lib_c_gethostbyname_r+set}" = set; then 20428 echo $ECHO_N "(cached) $ECHO_C" >&6 20429else 20430 ac_check_lib_save_LIBS=$LIBS 20431LIBS="-lc $LIBS" 20432cat >conftest.$ac_ext <<_ACEOF 20433/* confdefs.h. */ 20434_ACEOF 20435cat confdefs.h >>conftest.$ac_ext 20436cat >>conftest.$ac_ext <<_ACEOF 20437/* end confdefs.h. */ 20438 20439/* Override any GCC internal prototype to avoid an error. 20440 Use char because int might match the return type of a GCC 20441 builtin and then its argument prototype would still apply. */ 20442#ifdef __cplusplus 20443extern "C" 20444#endif 20445char gethostbyname_r (); 20446int 20447main () 20448{ 20449return gethostbyname_r (); 20450 ; 20451 return 0; 20452} 20453_ACEOF 20454rm -f conftest.$ac_objext conftest$ac_exeext 20455if { (ac_try="$ac_link" 20456case "(($ac_try" in 20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20458 *) ac_try_echo=$ac_try;; 20459esac 20460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20461 (eval "$ac_link") 2>conftest.er1 20462 ac_status=$? 20463 grep -v '^ *+' conftest.er1 >conftest.err 20464 rm -f conftest.er1 20465 cat conftest.err >&5 20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20467 (exit $ac_status); } && 20468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20469 { (case "(($ac_try" in 20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20471 *) ac_try_echo=$ac_try;; 20472esac 20473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20474 (eval "$ac_try") 2>&5 20475 ac_status=$? 20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20477 (exit $ac_status); }; } && 20478 { ac_try='test -s conftest$ac_exeext' 20479 { (case "(($ac_try" in 20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20481 *) ac_try_echo=$ac_try;; 20482esac 20483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20484 (eval "$ac_try") 2>&5 20485 ac_status=$? 20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20487 (exit $ac_status); }; }; then 20488 ac_cv_lib_c_gethostbyname_r=yes 20489else 20490 echo "$as_me: failed program was:" >&5 20491sed 's/^/| /' conftest.$ac_ext >&5 20492 20493 ac_cv_lib_c_gethostbyname_r=no 20494fi 20495 20496rm -f core conftest.err conftest.$ac_objext \ 20497 conftest$ac_exeext conftest.$ac_ext 20498LIBS=$ac_check_lib_save_LIBS 20499fi 20500{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_gethostbyname_r" >&5 20501echo "${ECHO_T}$ac_cv_lib_c_gethostbyname_r" >&6; } 20502if test $ac_cv_lib_c_gethostbyname_r = yes; then 20503 20504cat >>confdefs.h <<\_ACEOF 20505#define XUSE_MTSAFE_API 1 20506_ACEOF 20507 20508fi 20509 20510 20511 case $host_os in 20512 solaris*) 20513 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 20514 esac 20515 XAU_CFLAGS="$XAU_CFLAGS $XTHREAD_CFLAGS" 20516fi 20517 20518 20519 20520# Allow checking code with lint, sparse, etc. 20521 20522# Check whether --with-lint was given. 20523if test "${with_lint+set}" = set; then 20524 withval=$with_lint; use_lint=$withval 20525else 20526 use_lint=no 20527fi 20528 20529if test "x$use_lint" = "xyes" ; then 20530 LINT="lint" 20531else 20532 LINT="$use_lint" 20533fi 20534if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 20535 case $LINT in 20536 lint|*/lint) 20537 case $host_os in 20538 solaris*) 20539 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20540 ;; 20541 esac 20542 ;; 20543 esac 20544fi 20545 20546 20547 20548 20549 20550if test x$LINT != xno; then 20551 LINT_TRUE= 20552 LINT_FALSE='#' 20553else 20554 LINT_TRUE='#' 20555 LINT_FALSE= 20556fi 20557 20558 20559 20560 20561 20562# Build lint "library" for more indepth checks of programs calling this library 20563# Check whether --enable-lint-library was given. 20564if test "${enable_lint_library+set}" = set; then 20565 enableval=$enable_lint_library; make_lint_lib=$enableval 20566else 20567 make_lint_lib=no 20568fi 20569 20570if test "x$make_lint_lib" != "xno" ; then 20571 if test "x$LINT" = "xno" ; then 20572 { { echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5 20573echo "$as_me: error: Cannot make lint library without --with-lint" >&2;} 20574 { (exit 1); exit 1; }; } 20575 fi 20576 if test "x$make_lint_lib" = "xyes" ; then 20577 LINTLIB=llib-lXau.ln 20578 else 20579 LINTLIB=$make_lint_lib 20580 fi 20581fi 20582 20583 20584 20585if test x$make_lint_lib != xno; then 20586 MAKE_LINT_LIB_TRUE= 20587 MAKE_LINT_LIB_FALSE='#' 20588else 20589 MAKE_LINT_LIB_TRUE='#' 20590 MAKE_LINT_LIB_FALSE= 20591fi 20592 20593 20594 20595LINT_FLAGS="${LINT_FLAGS} ${XAU_CFLAGS}" 20596 20597if test "x$GCC" = "xyes"; then 20598 GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \ 20599 -Wmissing-prototypes -Wmissing-declarations \ 20600 -Wnested-externs -fno-strict-aliasing" 20601 XAU_CFLAGS="$GCC_WARNINGS $XAU_CFLAGS" 20602fi 20603 20604 20605 20606 20607if test x$APP_MAN_SUFFIX = x ; then 20608 APP_MAN_SUFFIX=1 20609fi 20610if test x$APP_MAN_DIR = x ; then 20611 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20612fi 20613 20614if test x$LIB_MAN_SUFFIX = x ; then 20615 LIB_MAN_SUFFIX=3 20616fi 20617if test x$LIB_MAN_DIR = x ; then 20618 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20619fi 20620 20621if test x$FILE_MAN_SUFFIX = x ; then 20622 case $host_os in 20623 solaris*) FILE_MAN_SUFFIX=4 ;; 20624 *) FILE_MAN_SUFFIX=5 ;; 20625 esac 20626fi 20627if test x$FILE_MAN_DIR = x ; then 20628 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20629fi 20630 20631if test x$MISC_MAN_SUFFIX = x ; then 20632 case $host_os in 20633 solaris*) MISC_MAN_SUFFIX=5 ;; 20634 *) MISC_MAN_SUFFIX=7 ;; 20635 esac 20636fi 20637if test x$MISC_MAN_DIR = x ; then 20638 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20639fi 20640 20641if test x$DRIVER_MAN_SUFFIX = x ; then 20642 case $host_os in 20643 solaris*) DRIVER_MAN_SUFFIX=7 ;; 20644 *) DRIVER_MAN_SUFFIX=4 ;; 20645 esac 20646fi 20647if test x$DRIVER_MAN_DIR = x ; then 20648 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20649fi 20650 20651if test x$ADMIN_MAN_SUFFIX = x ; then 20652 case $host_os in 20653 solaris*) ADMIN_MAN_SUFFIX=1m ;; 20654 *) ADMIN_MAN_SUFFIX=8 ;; 20655 esac 20656fi 20657if test x$ADMIN_MAN_DIR = x ; then 20658 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20659fi 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 20671 20672 20673 20674 20675 20676 20677# Check whether --with-release-version was given. 20678if test "${with_release_version+set}" = set; then 20679 withval=$with_release_version; RELEASE_VERSION="$withval" 20680else 20681 RELEASE_VERSION="" 20682fi 20683 20684 if test "x$RELEASE_VERSION" != "x"; then 20685 PACKAGE="$PACKAGE-$RELEASE_VERSION" 20686 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 20687 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 20688echo "$as_me: Building with package name set to $PACKAGE" >&6;} 20689 fi 20690 20691cat >>confdefs.h <<_ACEOF 20692#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\).*/\1/p'` 20693_ACEOF 20694 20695 PVM=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\).*/\2/p'` 20696 if test "x$PVM" = "x"; then 20697 PVM="0" 20698 fi 20699 20700cat >>confdefs.h <<_ACEOF 20701#define PACKAGE_VERSION_MINOR $PVM 20702_ACEOF 20703 20704 PVP=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\)\.\([^\.]\+\).*/\3/p'` 20705 if test "x$PVP" = "x"; then 20706 PVP="0" 20707 fi 20708 20709cat >>confdefs.h <<_ACEOF 20710#define PACKAGE_VERSION_PATCHLEVEL $PVP 20711_ACEOF 20712 20713 20714 20715ac_config_files="$ac_config_files Makefile xau.pc" 20716 20717cat >confcache <<\_ACEOF 20718# This file is a shell script that caches the results of configure 20719# tests run on this system so they can be shared between configure 20720# scripts and configure runs, see configure's option --config-cache. 20721# It is not useful on other systems. If it contains results you don't 20722# want to keep, you may remove or edit it. 20723# 20724# config.status only pays attention to the cache file if you give it 20725# the --recheck option to rerun configure. 20726# 20727# `ac_cv_env_foo' variables (set or unset) will be overridden when 20728# loading this file, other *unset* `ac_cv_foo' will be assigned the 20729# following values. 20730 20731_ACEOF 20732 20733# The following way of writing the cache mishandles newlines in values, 20734# but we know of no workaround that is simple, portable, and efficient. 20735# So, we kill variables containing newlines. 20736# Ultrix sh set writes to stderr and can't be redirected directly, 20737# and sets the high bit in the cache file unless we assign to the vars. 20738( 20739 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20740 eval ac_val=\$$ac_var 20741 case $ac_val in #( 20742 *${as_nl}*) 20743 case $ac_var in #( 20744 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20745echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20746 esac 20747 case $ac_var in #( 20748 _ | IFS | as_nl) ;; #( 20749 *) $as_unset $ac_var ;; 20750 esac ;; 20751 esac 20752 done 20753 20754 (set) 2>&1 | 20755 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20756 *${as_nl}ac_space=\ *) 20757 # `set' does not quote correctly, so add quotes (double-quote 20758 # substitution turns \\\\ into \\, and sed turns \\ into \). 20759 sed -n \ 20760 "s/'/'\\\\''/g; 20761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20762 ;; #( 20763 *) 20764 # `set' quotes correctly as required by POSIX, so do not add quotes. 20765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20766 ;; 20767 esac | 20768 sort 20769) | 20770 sed ' 20771 /^ac_cv_env_/b end 20772 t clear 20773 :clear 20774 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20775 t end 20776 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20777 :end' >>confcache 20778if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20779 if test -w "$cache_file"; then 20780 test "x$cache_file" != "x/dev/null" && 20781 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 20782echo "$as_me: updating cache $cache_file" >&6;} 20783 cat confcache >$cache_file 20784 else 20785 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20786echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20787 fi 20788fi 20789rm -f confcache 20790 20791test "x$prefix" = xNONE && prefix=$ac_default_prefix 20792# Let make expand exec_prefix. 20793test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20794 20795DEFS=-DHAVE_CONFIG_H 20796 20797ac_libobjs= 20798ac_ltlibobjs= 20799for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20800 # 1. Remove the extension, and $U if already installed. 20801 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20802 ac_i=`echo "$ac_i" | sed "$ac_script"` 20803 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20804 # will be set to the directory where LIBOBJS objects are built. 20805 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20806 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20807done 20808LIBOBJS=$ac_libobjs 20809 20810LTLIBOBJS=$ac_ltlibobjs 20811 20812 20813if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20814 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 20815Usually this means the macro was only invoked conditionally." >&5 20816echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 20817Usually this means the macro was only invoked conditionally." >&2;} 20818 { (exit 1); exit 1; }; } 20819fi 20820if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20821 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20822Usually this means the macro was only invoked conditionally." >&5 20823echo "$as_me: error: conditional \"AMDEP\" was never defined. 20824Usually this means the macro was only invoked conditionally." >&2;} 20825 { (exit 1); exit 1; }; } 20826fi 20827if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20828 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20829Usually this means the macro was only invoked conditionally." >&5 20830echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20831Usually this means the macro was only invoked conditionally." >&2;} 20832 { (exit 1); exit 1; }; } 20833fi 20834if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20835 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20836Usually this means the macro was only invoked conditionally." >&5 20837echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20838Usually this means the macro was only invoked conditionally." >&2;} 20839 { (exit 1); exit 1; }; } 20840fi 20841if test -z "${KERBEROS_TRUE}" && test -z "${KERBEROS_FALSE}"; then 20842 { { echo "$as_me:$LINENO: error: conditional \"KERBEROS\" was never defined. 20843Usually this means the macro was only invoked conditionally." >&5 20844echo "$as_me: error: conditional \"KERBEROS\" was never defined. 20845Usually this means the macro was only invoked conditionally." >&2;} 20846 { (exit 1); exit 1; }; } 20847fi 20848if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 20849 { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined. 20850Usually this means the macro was only invoked conditionally." >&5 20851echo "$as_me: error: conditional \"LINT\" was never defined. 20852Usually this means the macro was only invoked conditionally." >&2;} 20853 { (exit 1); exit 1; }; } 20854fi 20855if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 20856 { { echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined. 20857Usually this means the macro was only invoked conditionally." >&5 20858echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined. 20859Usually this means the macro was only invoked conditionally." >&2;} 20860 { (exit 1); exit 1; }; } 20861fi 20862 20863: ${CONFIG_STATUS=./config.status} 20864ac_clean_files_save=$ac_clean_files 20865ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20866{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20867echo "$as_me: creating $CONFIG_STATUS" >&6;} 20868cat >$CONFIG_STATUS <<_ACEOF 20869#! $SHELL 20870# Generated by $as_me. 20871# Run this file to recreate the current configuration. 20872# Compiler output produced by configure, useful for debugging 20873# configure, is in config.log if it exists. 20874 20875debug=false 20876ac_cs_recheck=false 20877ac_cs_silent=false 20878SHELL=\${CONFIG_SHELL-$SHELL} 20879_ACEOF 20880 20881cat >>$CONFIG_STATUS <<\_ACEOF 20882## --------------------- ## 20883## M4sh Initialization. ## 20884## --------------------- ## 20885 20886# Be Bourne compatible 20887if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20888 emulate sh 20889 NULLCMD=: 20890 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20891 # is contrary to our usage. Disable this feature. 20892 alias -g '${1+"$@"}'='"$@"' 20893 setopt NO_GLOB_SUBST 20894else 20895 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 20896fi 20897BIN_SH=xpg4; export BIN_SH # for Tru64 20898DUALCASE=1; export DUALCASE # for MKS sh 20899 20900 20901# PATH needs CR 20902# Avoid depending upon Character Ranges. 20903as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20904as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20905as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20906as_cr_digits='0123456789' 20907as_cr_alnum=$as_cr_Letters$as_cr_digits 20908 20909# The user is always right. 20910if test "${PATH_SEPARATOR+set}" != set; then 20911 echo "#! /bin/sh" >conf$$.sh 20912 echo "exit 0" >>conf$$.sh 20913 chmod +x conf$$.sh 20914 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20915 PATH_SEPARATOR=';' 20916 else 20917 PATH_SEPARATOR=: 20918 fi 20919 rm -f conf$$.sh 20920fi 20921 20922# Support unset when possible. 20923if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20924 as_unset=unset 20925else 20926 as_unset=false 20927fi 20928 20929 20930# IFS 20931# We need space, tab and new line, in precisely that order. Quoting is 20932# there to prevent editors from complaining about space-tab. 20933# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20934# splitting by setting IFS to empty value.) 20935as_nl=' 20936' 20937IFS=" "" $as_nl" 20938 20939# Find who we are. Look in the path if we contain no directory separator. 20940case $0 in 20941 *[\\/]* ) as_myself=$0 ;; 20942 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20943for as_dir in $PATH 20944do 20945 IFS=$as_save_IFS 20946 test -z "$as_dir" && as_dir=. 20947 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20948done 20949IFS=$as_save_IFS 20950 20951 ;; 20952esac 20953# We did not find ourselves, most probably we were run as `sh COMMAND' 20954# in which case we are not to be found in the path. 20955if test "x$as_myself" = x; then 20956 as_myself=$0 20957fi 20958if test ! -f "$as_myself"; then 20959 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20960 { (exit 1); exit 1; } 20961fi 20962 20963# Work around bugs in pre-3.0 UWIN ksh. 20964for as_var in ENV MAIL MAILPATH 20965do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20966done 20967PS1='$ ' 20968PS2='> ' 20969PS4='+ ' 20970 20971# NLS nuisances. 20972for as_var in \ 20973 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20974 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20975 LC_TELEPHONE LC_TIME 20976do 20977 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20978 eval $as_var=C; export $as_var 20979 else 20980 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20981 fi 20982done 20983 20984# Required to use basename. 20985if expr a : '\(a\)' >/dev/null 2>&1 && 20986 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20987 as_expr=expr 20988else 20989 as_expr=false 20990fi 20991 20992if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20993 as_basename=basename 20994else 20995 as_basename=false 20996fi 20997 20998 20999# Name of the executable. 21000as_me=`$as_basename -- "$0" || 21001$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21002 X"$0" : 'X\(//\)$' \| \ 21003 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21004echo X/"$0" | 21005 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21006 s//\1/ 21007 q 21008 } 21009 /^X\/\(\/\/\)$/{ 21010 s//\1/ 21011 q 21012 } 21013 /^X\/\(\/\).*/{ 21014 s//\1/ 21015 q 21016 } 21017 s/.*/./; q'` 21018 21019# CDPATH. 21020$as_unset CDPATH 21021 21022 21023 21024 as_lineno_1=$LINENO 21025 as_lineno_2=$LINENO 21026 test "x$as_lineno_1" != "x$as_lineno_2" && 21027 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21028 21029 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21030 # uniformly replaced by the line number. The first 'sed' inserts a 21031 # line-number line after each line using $LINENO; the second 'sed' 21032 # does the real work. The second script uses 'N' to pair each 21033 # line-number line with the line containing $LINENO, and appends 21034 # trailing '-' during substitution so that $LINENO is not a special 21035 # case at line end. 21036 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21037 # scripts with optimization help from Paolo Bonzini. Blame Lee 21038 # E. McMahon (1931-1989) for sed's syntax. :-) 21039 sed -n ' 21040 p 21041 /[$]LINENO/= 21042 ' <$as_myself | 21043 sed ' 21044 s/[$]LINENO.*/&-/ 21045 t lineno 21046 b 21047 :lineno 21048 N 21049 :loop 21050 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21051 t loop 21052 s/-\n.*// 21053 ' >$as_me.lineno && 21054 chmod +x "$as_me.lineno" || 21055 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21056 { (exit 1); exit 1; }; } 21057 21058 # Don't try to exec as it changes $[0], causing all sort of problems 21059 # (the dirname of $[0] is not the place where we might find the 21060 # original and so on. Autoconf is especially sensitive to this). 21061 . "./$as_me.lineno" 21062 # Exit status is that of the last command. 21063 exit 21064} 21065 21066 21067if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21068 as_dirname=dirname 21069else 21070 as_dirname=false 21071fi 21072 21073ECHO_C= ECHO_N= ECHO_T= 21074case `echo -n x` in 21075-n*) 21076 case `echo 'x\c'` in 21077 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21078 *) ECHO_C='\c';; 21079 esac;; 21080*) 21081 ECHO_N='-n';; 21082esac 21083 21084if expr a : '\(a\)' >/dev/null 2>&1 && 21085 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21086 as_expr=expr 21087else 21088 as_expr=false 21089fi 21090 21091rm -f conf$$ conf$$.exe conf$$.file 21092if test -d conf$$.dir; then 21093 rm -f conf$$.dir/conf$$.file 21094else 21095 rm -f conf$$.dir 21096 mkdir conf$$.dir 21097fi 21098echo >conf$$.file 21099if ln -s conf$$.file conf$$ 2>/dev/null; then 21100 as_ln_s='ln -s' 21101 # ... but there are two gotchas: 21102 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21103 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21104 # In both cases, we have to default to `cp -p'. 21105 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21106 as_ln_s='cp -p' 21107elif ln conf$$.file conf$$ 2>/dev/null; then 21108 as_ln_s=ln 21109else 21110 as_ln_s='cp -p' 21111fi 21112rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21113rmdir conf$$.dir 2>/dev/null 21114 21115if mkdir -p . 2>/dev/null; then 21116 as_mkdir_p=: 21117else 21118 test -d ./-p && rmdir ./-p 21119 as_mkdir_p=false 21120fi 21121 21122# Find out whether ``test -x'' works. Don't use a zero-byte file, as 21123# systems may use methods other than mode bits to determine executability. 21124cat >conf$$.file <<_ASEOF 21125#! /bin/sh 21126exit 0 21127_ASEOF 21128chmod +x conf$$.file 21129if test -x conf$$.file >/dev/null 2>&1; then 21130 as_executable_p="test -x" 21131else 21132 as_executable_p=: 21133fi 21134rm -f conf$$.file 21135 21136# Sed expression to map a string onto a valid CPP name. 21137as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21138 21139# Sed expression to map a string onto a valid variable name. 21140as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21141 21142 21143exec 6>&1 21144 21145# Save the log message, to keep $[0] and so on meaningful, and to 21146# report actual input values of CONFIG_FILES etc. instead of their 21147# values after options handling. 21148ac_log=" 21149This file was extended by libXau $as_me 1.0.3, which was 21150generated by GNU Autoconf 2.60. Invocation command line was 21151 21152 CONFIG_FILES = $CONFIG_FILES 21153 CONFIG_HEADERS = $CONFIG_HEADERS 21154 CONFIG_LINKS = $CONFIG_LINKS 21155 CONFIG_COMMANDS = $CONFIG_COMMANDS 21156 $ $0 $@ 21157 21158on `(hostname || uname -n) 2>/dev/null | sed 1q` 21159" 21160 21161_ACEOF 21162 21163cat >>$CONFIG_STATUS <<_ACEOF 21164# Files that config.status was made for. 21165config_files="$ac_config_files" 21166config_headers="$ac_config_headers" 21167config_commands="$ac_config_commands" 21168 21169_ACEOF 21170 21171cat >>$CONFIG_STATUS <<\_ACEOF 21172ac_cs_usage="\ 21173\`$as_me' instantiates files from templates according to the 21174current configuration. 21175 21176Usage: $0 [OPTIONS] [FILE]... 21177 21178 -h, --help print this help, then exit 21179 -V, --version print version number, then exit 21180 -q, --quiet do not print progress messages 21181 -d, --debug don't remove temporary files 21182 --recheck update $as_me by reconfiguring in the same conditions 21183 --file=FILE[:TEMPLATE] 21184 instantiate the configuration file FILE 21185 --header=FILE[:TEMPLATE] 21186 instantiate the configuration header FILE 21187 21188Configuration files: 21189$config_files 21190 21191Configuration headers: 21192$config_headers 21193 21194Configuration commands: 21195$config_commands 21196 21197Report bugs to <bug-autoconf@gnu.org>." 21198 21199_ACEOF 21200cat >>$CONFIG_STATUS <<_ACEOF 21201ac_cs_version="\\ 21202libXau config.status 1.0.3 21203configured by $0, generated by GNU Autoconf 2.60, 21204 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21205 21206Copyright (C) 2006 Free Software Foundation, Inc. 21207This config.status script is free software; the Free Software Foundation 21208gives unlimited permission to copy, distribute and modify it." 21209 21210ac_pwd='$ac_pwd' 21211srcdir='$srcdir' 21212INSTALL='$INSTALL' 21213_ACEOF 21214 21215cat >>$CONFIG_STATUS <<\_ACEOF 21216# If no file are specified by the user, then we need to provide default 21217# value. By we need to know if files were specified by the user. 21218ac_need_defaults=: 21219while test $# != 0 21220do 21221 case $1 in 21222 --*=*) 21223 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21224 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21225 ac_shift=: 21226 ;; 21227 *) 21228 ac_option=$1 21229 ac_optarg=$2 21230 ac_shift=shift 21231 ;; 21232 esac 21233 21234 case $ac_option in 21235 # Handling of the options. 21236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21237 ac_cs_recheck=: ;; 21238 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21239 echo "$ac_cs_version"; exit ;; 21240 --debug | --debu | --deb | --de | --d | -d ) 21241 debug=: ;; 21242 --file | --fil | --fi | --f ) 21243 $ac_shift 21244 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21245 ac_need_defaults=false;; 21246 --header | --heade | --head | --hea ) 21247 $ac_shift 21248 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21249 ac_need_defaults=false;; 21250 --he | --h) 21251 # Conflict between --help and --header 21252 { echo "$as_me: error: ambiguous option: $1 21253Try \`$0 --help' for more information." >&2 21254 { (exit 1); exit 1; }; };; 21255 --help | --hel | -h ) 21256 echo "$ac_cs_usage"; exit ;; 21257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21258 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21259 ac_cs_silent=: ;; 21260 21261 # This is an error. 21262 -*) { echo "$as_me: error: unrecognized option: $1 21263Try \`$0 --help' for more information." >&2 21264 { (exit 1); exit 1; }; } ;; 21265 21266 *) ac_config_targets="$ac_config_targets $1" 21267 ac_need_defaults=false ;; 21268 21269 esac 21270 shift 21271done 21272 21273ac_configure_extra_args= 21274 21275if $ac_cs_silent; then 21276 exec 6>/dev/null 21277 ac_configure_extra_args="$ac_configure_extra_args --silent" 21278fi 21279 21280_ACEOF 21281cat >>$CONFIG_STATUS <<_ACEOF 21282if \$ac_cs_recheck; then 21283 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21284 CONFIG_SHELL=$SHELL 21285 export CONFIG_SHELL 21286 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21287fi 21288 21289_ACEOF 21290cat >>$CONFIG_STATUS <<\_ACEOF 21291exec 5>>config.log 21292{ 21293 echo 21294 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21295## Running $as_me. ## 21296_ASBOX 21297 echo "$ac_log" 21298} >&5 21299 21300_ACEOF 21301cat >>$CONFIG_STATUS <<_ACEOF 21302# 21303# INIT-COMMANDS 21304# 21305AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21306 21307_ACEOF 21308 21309cat >>$CONFIG_STATUS <<\_ACEOF 21310 21311# Handling of arguments. 21312for ac_config_target in $ac_config_targets 21313do 21314 case $ac_config_target in 21315 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21316 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21317 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21318 "xau.pc") CONFIG_FILES="$CONFIG_FILES xau.pc" ;; 21319 21320 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21321echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21322 { (exit 1); exit 1; }; };; 21323 esac 21324done 21325 21326 21327# If the user did not use the arguments to specify the items to instantiate, 21328# then the envvar interface is used. Set only those that are not. 21329# We use the long form for the default assignment because of an extremely 21330# bizarre bug on SunOS 4.1.3. 21331if $ac_need_defaults; then 21332 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21333 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21334 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21335fi 21336 21337# Have a temporary directory for convenience. Make it in the build tree 21338# simply because there is no reason against having it here, and in addition, 21339# creating and moving files from /tmp can sometimes cause problems. 21340# Hook for its removal unless debugging. 21341# Note that there is a small window in which the directory will not be cleaned: 21342# after its creation but before its name has been assigned to `$tmp'. 21343$debug || 21344{ 21345 tmp= 21346 trap 'exit_status=$? 21347 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21348' 0 21349 trap '{ (exit 1); exit 1; }' 1 2 13 15 21350} 21351# Create a (secure) tmp directory for tmp files. 21352 21353{ 21354 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21355 test -n "$tmp" && test -d "$tmp" 21356} || 21357{ 21358 tmp=./conf$$-$RANDOM 21359 (umask 077 && mkdir "$tmp") 21360} || 21361{ 21362 echo "$me: cannot create a temporary directory in ." >&2 21363 { (exit 1); exit 1; } 21364} 21365 21366# 21367# Set up the sed scripts for CONFIG_FILES section. 21368# 21369 21370# No need to generate the scripts if there are no CONFIG_FILES. 21371# This happens for instance when ./config.status config.h 21372if test -n "$CONFIG_FILES"; then 21373 21374_ACEOF 21375 21376 21377 21378ac_delim='%!_!# ' 21379for ac_last_try in false false false false false :; do 21380 cat >conf$$subs.sed <<_ACEOF 21381SHELL!$SHELL$ac_delim 21382PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21383PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21384PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21385PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21386PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21387PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21388exec_prefix!$exec_prefix$ac_delim 21389prefix!$prefix$ac_delim 21390program_transform_name!$program_transform_name$ac_delim 21391bindir!$bindir$ac_delim 21392sbindir!$sbindir$ac_delim 21393libexecdir!$libexecdir$ac_delim 21394datarootdir!$datarootdir$ac_delim 21395datadir!$datadir$ac_delim 21396sysconfdir!$sysconfdir$ac_delim 21397sharedstatedir!$sharedstatedir$ac_delim 21398localstatedir!$localstatedir$ac_delim 21399includedir!$includedir$ac_delim 21400oldincludedir!$oldincludedir$ac_delim 21401docdir!$docdir$ac_delim 21402infodir!$infodir$ac_delim 21403htmldir!$htmldir$ac_delim 21404dvidir!$dvidir$ac_delim 21405pdfdir!$pdfdir$ac_delim 21406psdir!$psdir$ac_delim 21407libdir!$libdir$ac_delim 21408localedir!$localedir$ac_delim 21409mandir!$mandir$ac_delim 21410DEFS!$DEFS$ac_delim 21411ECHO_C!$ECHO_C$ac_delim 21412ECHO_N!$ECHO_N$ac_delim 21413ECHO_T!$ECHO_T$ac_delim 21414LIBS!$LIBS$ac_delim 21415build_alias!$build_alias$ac_delim 21416host_alias!$host_alias$ac_delim 21417target_alias!$target_alias$ac_delim 21418INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21419INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21420INSTALL_DATA!$INSTALL_DATA$ac_delim 21421CYGPATH_W!$CYGPATH_W$ac_delim 21422PACKAGE!$PACKAGE$ac_delim 21423VERSION!$VERSION$ac_delim 21424ACLOCAL!$ACLOCAL$ac_delim 21425AUTOCONF!$AUTOCONF$ac_delim 21426AUTOMAKE!$AUTOMAKE$ac_delim 21427AUTOHEADER!$AUTOHEADER$ac_delim 21428MAKEINFO!$MAKEINFO$ac_delim 21429install_sh!$install_sh$ac_delim 21430STRIP!$STRIP$ac_delim 21431INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21432mkdir_p!$mkdir_p$ac_delim 21433AWK!$AWK$ac_delim 21434SET_MAKE!$SET_MAKE$ac_delim 21435am__leading_dot!$am__leading_dot$ac_delim 21436AMTAR!$AMTAR$ac_delim 21437am__tar!$am__tar$ac_delim 21438am__untar!$am__untar$ac_delim 21439AMSHOWCMDSAT!$AMSHOWCMDSAT$ac_delim 21440AMDEPSHOWCMDSAT!$AMDEPSHOWCMDSAT$ac_delim 21441AMPRETTYECHO!$AMPRETTYECHO$ac_delim 21442AMCMDECHO!$AMCMDECHO$ac_delim 21443LT_QUIET!$LT_QUIET$ac_delim 21444MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 21445MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 21446MAINT!$MAINT$ac_delim 21447CC!$CC$ac_delim 21448CFLAGS!$CFLAGS$ac_delim 21449LDFLAGS!$LDFLAGS$ac_delim 21450CPPFLAGS!$CPPFLAGS$ac_delim 21451ac_ct_CC!$ac_ct_CC$ac_delim 21452EXEEXT!$EXEEXT$ac_delim 21453OBJEXT!$OBJEXT$ac_delim 21454DEPDIR!$DEPDIR$ac_delim 21455am__include!$am__include$ac_delim 21456am__quote!$am__quote$ac_delim 21457AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21458AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21459AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21460CCDEPMODE!$CCDEPMODE$ac_delim 21461am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21462am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21463LN_S!$LN_S$ac_delim 21464build!$build$ac_delim 21465build_cpu!$build_cpu$ac_delim 21466build_vendor!$build_vendor$ac_delim 21467build_os!$build_os$ac_delim 21468host!$host$ac_delim 21469host_cpu!$host_cpu$ac_delim 21470host_vendor!$host_vendor$ac_delim 21471host_os!$host_os$ac_delim 21472GREP!$GREP$ac_delim 21473EGREP!$EGREP$ac_delim 21474ECHO!$ECHO$ac_delim 21475AR!$AR$ac_delim 21476RANLIB!$RANLIB$ac_delim 21477DLLTOOL!$DLLTOOL$ac_delim 21478_ACEOF 21479 21480 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21481 break 21482 elif $ac_last_try; then 21483 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21484echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21485 { (exit 1); exit 1; }; } 21486 else 21487 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21488 fi 21489done 21490 21491ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21492if test -n "$ac_eof"; then 21493 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21494 ac_eof=`expr $ac_eof + 1` 21495fi 21496 21497cat >>$CONFIG_STATUS <<_ACEOF 21498cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21499/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21500_ACEOF 21501sed ' 21502s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21503s/^/s,@/; s/!/@,|#_!!_#|/ 21504:n 21505t n 21506s/'"$ac_delim"'$/,g/; t 21507s/$/\\/; p 21508N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21509' >>$CONFIG_STATUS <conf$$subs.sed 21510rm -f conf$$subs.sed 21511cat >>$CONFIG_STATUS <<_ACEOF 21512CEOF$ac_eof 21513_ACEOF 21514 21515 21516ac_delim='%!_!# ' 21517for ac_last_try in false false false false false :; do 21518 cat >conf$$subs.sed <<_ACEOF 21519AS!$AS$ac_delim 21520OBJDUMP!$OBJDUMP$ac_delim 21521CPP!$CPP$ac_delim 21522CXX!$CXX$ac_delim 21523CXXFLAGS!$CXXFLAGS$ac_delim 21524ac_ct_CXX!$ac_ct_CXX$ac_delim 21525CXXDEPMODE!$CXXDEPMODE$ac_delim 21526am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21527am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21528CXXCPP!$CXXCPP$ac_delim 21529F77!$F77$ac_delim 21530FFLAGS!$FFLAGS$ac_delim 21531ac_ct_F77!$ac_ct_F77$ac_delim 21532LIBTOOL!$LIBTOOL$ac_delim 21533PKG_CONFIG!$PKG_CONFIG$ac_delim 21534XAU_CFLAGS!$XAU_CFLAGS$ac_delim 21535XAU_LIBS!$XAU_LIBS$ac_delim 21536KERBEROS_TRUE!$KERBEROS_TRUE$ac_delim 21537KERBEROS_FALSE!$KERBEROS_FALSE$ac_delim 21538LINT!$LINT$ac_delim 21539LINT_FLAGS!$LINT_FLAGS$ac_delim 21540LINT_TRUE!$LINT_TRUE$ac_delim 21541LINT_FALSE!$LINT_FALSE$ac_delim 21542LINTLIB!$LINTLIB$ac_delim 21543MAKE_LINT_LIB_TRUE!$MAKE_LINT_LIB_TRUE$ac_delim 21544MAKE_LINT_LIB_FALSE!$MAKE_LINT_LIB_FALSE$ac_delim 21545APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim 21546LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim 21547FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim 21548MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim 21549DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim 21550ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim 21551APP_MAN_DIR!$APP_MAN_DIR$ac_delim 21552LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim 21553FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim 21554MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim 21555DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim 21556ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim 21557LIBOBJS!$LIBOBJS$ac_delim 21558LTLIBOBJS!$LTLIBOBJS$ac_delim 21559_ACEOF 21560 21561 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then 21562 break 21563 elif $ac_last_try; then 21564 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21565echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21566 { (exit 1); exit 1; }; } 21567 else 21568 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21569 fi 21570done 21571 21572ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21573if test -n "$ac_eof"; then 21574 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21575 ac_eof=`expr $ac_eof + 1` 21576fi 21577 21578cat >>$CONFIG_STATUS <<_ACEOF 21579cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21580/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21581_ACEOF 21582sed ' 21583s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21584s/^/s,@/; s/!/@,|#_!!_#|/ 21585:n 21586t n 21587s/'"$ac_delim"'$/,g/; t 21588s/$/\\/; p 21589N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21590' >>$CONFIG_STATUS <conf$$subs.sed 21591rm -f conf$$subs.sed 21592cat >>$CONFIG_STATUS <<_ACEOF 21593:end 21594s/|#_!!_#|//g 21595CEOF$ac_eof 21596_ACEOF 21597 21598 21599# VPATH may cause trouble with some makes, so we remove $(srcdir), 21600# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21601# trailing colons and then remove the whole line if VPATH becomes empty 21602# (actually we leave an empty line to preserve line numbers). 21603if test "x$srcdir" = x.; then 21604 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21605s/:*\$(srcdir):*/:/ 21606s/:*\${srcdir}:*/:/ 21607s/:*@srcdir@:*/:/ 21608s/^\([^=]*=[ ]*\):*/\1/ 21609s/:*$// 21610s/^[^=]*=[ ]*$// 21611}' 21612fi 21613 21614cat >>$CONFIG_STATUS <<\_ACEOF 21615fi # test -n "$CONFIG_FILES" 21616 21617 21618for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 21619do 21620 case $ac_tag in 21621 :[FHLC]) ac_mode=$ac_tag; continue;; 21622 esac 21623 case $ac_mode$ac_tag in 21624 :[FHL]*:*);; 21625 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21626echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21627 { (exit 1); exit 1; }; };; 21628 :[FH]-) ac_tag=-:-;; 21629 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21630 esac 21631 ac_save_IFS=$IFS 21632 IFS=: 21633 set x $ac_tag 21634 IFS=$ac_save_IFS 21635 shift 21636 ac_file=$1 21637 shift 21638 21639 case $ac_mode in 21640 :L) ac_source=$1;; 21641 :[FH]) 21642 ac_file_inputs= 21643 for ac_f 21644 do 21645 case $ac_f in 21646 -) ac_f="$tmp/stdin";; 21647 *) # Look for the file first in the build tree, then in the source tree 21648 # (if the path is not absolute). The absolute path cannot be DOS-style, 21649 # because $ac_f cannot contain `:'. 21650 test -f "$ac_f" || 21651 case $ac_f in 21652 [\\/$]*) false;; 21653 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21654 esac || 21655 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21656echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21657 { (exit 1); exit 1; }; };; 21658 esac 21659 ac_file_inputs="$ac_file_inputs $ac_f" 21660 done 21661 21662 # Let's still pretend it is `configure' which instantiates (i.e., don't 21663 # use $as_me), people would be surprised to read: 21664 # /* config.h. Generated by config.status. */ 21665 configure_input="Generated from "`IFS=: 21666 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21667 if test x"$ac_file" != x-; then 21668 configure_input="$ac_file. $configure_input" 21669 { echo "$as_me:$LINENO: creating $ac_file" >&5 21670echo "$as_me: creating $ac_file" >&6;} 21671 fi 21672 21673 case $ac_tag in 21674 *:-:* | *:-) cat >"$tmp/stdin";; 21675 esac 21676 ;; 21677 esac 21678 21679 ac_dir=`$as_dirname -- "$ac_file" || 21680$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21681 X"$ac_file" : 'X\(//\)[^/]' \| \ 21682 X"$ac_file" : 'X\(//\)$' \| \ 21683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21684echo X"$ac_file" | 21685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21686 s//\1/ 21687 q 21688 } 21689 /^X\(\/\/\)[^/].*/{ 21690 s//\1/ 21691 q 21692 } 21693 /^X\(\/\/\)$/{ 21694 s//\1/ 21695 q 21696 } 21697 /^X\(\/\).*/{ 21698 s//\1/ 21699 q 21700 } 21701 s/.*/./; q'` 21702 { as_dir="$ac_dir" 21703 case $as_dir in #( 21704 -*) as_dir=./$as_dir;; 21705 esac 21706 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21707 as_dirs= 21708 while :; do 21709 case $as_dir in #( 21710 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21711 *) as_qdir=$as_dir;; 21712 esac 21713 as_dirs="'$as_qdir' $as_dirs" 21714 as_dir=`$as_dirname -- "$as_dir" || 21715$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21716 X"$as_dir" : 'X\(//\)[^/]' \| \ 21717 X"$as_dir" : 'X\(//\)$' \| \ 21718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21719echo X"$as_dir" | 21720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21721 s//\1/ 21722 q 21723 } 21724 /^X\(\/\/\)[^/].*/{ 21725 s//\1/ 21726 q 21727 } 21728 /^X\(\/\/\)$/{ 21729 s//\1/ 21730 q 21731 } 21732 /^X\(\/\).*/{ 21733 s//\1/ 21734 q 21735 } 21736 s/.*/./; q'` 21737 test -d "$as_dir" && break 21738 done 21739 test -z "$as_dirs" || eval "mkdir $as_dirs" 21740 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21741echo "$as_me: error: cannot create directory $as_dir" >&2;} 21742 { (exit 1); exit 1; }; }; } 21743 ac_builddir=. 21744 21745case "$ac_dir" in 21746.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21747*) 21748 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21749 # A ".." for each directory in $ac_dir_suffix. 21750 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21751 case $ac_top_builddir_sub in 21752 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21753 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21754 esac ;; 21755esac 21756ac_abs_top_builddir=$ac_pwd 21757ac_abs_builddir=$ac_pwd$ac_dir_suffix 21758# for backward compatibility: 21759ac_top_builddir=$ac_top_build_prefix 21760 21761case $srcdir in 21762 .) # We are building in place. 21763 ac_srcdir=. 21764 ac_top_srcdir=$ac_top_builddir_sub 21765 ac_abs_top_srcdir=$ac_pwd ;; 21766 [\\/]* | ?:[\\/]* ) # Absolute name. 21767 ac_srcdir=$srcdir$ac_dir_suffix; 21768 ac_top_srcdir=$srcdir 21769 ac_abs_top_srcdir=$srcdir ;; 21770 *) # Relative name. 21771 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21772 ac_top_srcdir=$ac_top_build_prefix$srcdir 21773 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21774esac 21775ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21776 21777 21778 case $ac_mode in 21779 :F) 21780 # 21781 # CONFIG_FILE 21782 # 21783 21784 case $INSTALL in 21785 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21786 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21787 esac 21788_ACEOF 21789 21790cat >>$CONFIG_STATUS <<\_ACEOF 21791# If the template does not know about datarootdir, expand it. 21792# FIXME: This hack should be removed a few years after 2.60. 21793ac_datarootdir_hack=; ac_datarootdir_seen= 21794 21795case `sed -n '/datarootdir/ { 21796 p 21797 q 21798} 21799/@datadir@/p 21800/@docdir@/p 21801/@infodir@/p 21802/@localedir@/p 21803/@mandir@/p 21804' $ac_file_inputs` in 21805*datarootdir*) ac_datarootdir_seen=yes;; 21806*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21807 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21808echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21809_ACEOF 21810cat >>$CONFIG_STATUS <<_ACEOF 21811 ac_datarootdir_hack=' 21812 s&@datadir@&$datadir&g 21813 s&@docdir@&$docdir&g 21814 s&@infodir@&$infodir&g 21815 s&@localedir@&$localedir&g 21816 s&@mandir@&$mandir&g 21817 s&\\\${datarootdir}&$datarootdir&g' ;; 21818esac 21819_ACEOF 21820 21821# Neutralize VPATH when `$srcdir' = `.'. 21822# Shell code in configure.ac might set extrasub. 21823# FIXME: do we really want to maintain this feature? 21824cat >>$CONFIG_STATUS <<_ACEOF 21825 sed "$ac_vpsub 21826$extrasub 21827_ACEOF 21828cat >>$CONFIG_STATUS <<\_ACEOF 21829:t 21830/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21831s&@configure_input@&$configure_input&;t t 21832s&@top_builddir@&$ac_top_builddir_sub&;t t 21833s&@srcdir@&$ac_srcdir&;t t 21834s&@abs_srcdir@&$ac_abs_srcdir&;t t 21835s&@top_srcdir@&$ac_top_srcdir&;t t 21836s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21837s&@builddir@&$ac_builddir&;t t 21838s&@abs_builddir@&$ac_abs_builddir&;t t 21839s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21840s&@INSTALL@&$ac_INSTALL&;t t 21841$ac_datarootdir_hack 21842" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 21843 21844test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21845 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21846 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21847 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21848which seems to be undefined. Please make sure it is defined." >&5 21849echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21850which seems to be undefined. Please make sure it is defined." >&2;} 21851 21852 rm -f "$tmp/stdin" 21853 case $ac_file in 21854 -) cat "$tmp/out"; rm -f "$tmp/out";; 21855 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 21856 esac 21857 ;; 21858 :H) 21859 # 21860 # CONFIG_HEADER 21861 # 21862_ACEOF 21863 21864# Transform confdefs.h into a sed script `conftest.defines', that 21865# substitutes the proper values into config.h.in to produce config.h. 21866rm -f conftest.defines conftest.tail 21867# First, append a space to every undef/define line, to ease matching. 21868echo 's/$/ /' >conftest.defines 21869# Then, protect against being on the right side of a sed subst, or in 21870# an unquoted here document, in config.status. If some macros were 21871# called several times there might be several #defines for the same 21872# symbol, which is useless. But do not sort them, since the last 21873# AC_DEFINE must be honored. 21874ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21875# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 21876# NAME is the cpp macro being defined, VALUE is the value it is being given. 21877# PARAMS is the parameter list in the macro definition--in most cases, it's 21878# just an empty string. 21879ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 21880ac_dB='\\)[ (].*,\\1define\\2' 21881ac_dC=' ' 21882ac_dD=' ,' 21883 21884uniq confdefs.h | 21885 sed -n ' 21886 t rset 21887 :rset 21888 s/^[ ]*#[ ]*define[ ][ ]*// 21889 t ok 21890 d 21891 :ok 21892 s/[\\&,]/\\&/g 21893 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 21894 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 21895 ' >>conftest.defines 21896 21897# Remove the space that was appended to ease matching. 21898# Then replace #undef with comments. This is necessary, for 21899# example, in the case of _POSIX_SOURCE, which is predefined and required 21900# on some systems where configure will not decide to define it. 21901# (The regexp can be short, since the line contains either #define or #undef.) 21902echo 's/ $// 21903s,^[ #]*u.*,/* & */,' >>conftest.defines 21904 21905# Break up conftest.defines: 21906ac_max_sed_lines=50 21907 21908# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 21909# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 21910# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 21911# et cetera. 21912ac_in='$ac_file_inputs' 21913ac_out='"$tmp/out1"' 21914ac_nxt='"$tmp/out2"' 21915 21916while : 21917do 21918 # Write a here document: 21919 cat >>$CONFIG_STATUS <<_ACEOF 21920 # First, check the format of the line: 21921 cat >"\$tmp/defines.sed" <<\\CEOF 21922/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 21923/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 21924b 21925:def 21926_ACEOF 21927 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 21928 echo 'CEOF 21929 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 21930 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 21931 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 21932 grep . conftest.tail >/dev/null || break 21933 rm -f conftest.defines 21934 mv conftest.tail conftest.defines 21935done 21936rm -f conftest.defines conftest.tail 21937 21938echo "ac_result=$ac_in" >>$CONFIG_STATUS 21939cat >>$CONFIG_STATUS <<\_ACEOF 21940 if test x"$ac_file" != x-; then 21941 echo "/* $configure_input */" >"$tmp/config.h" 21942 cat "$ac_result" >>"$tmp/config.h" 21943 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 21944 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21945echo "$as_me: $ac_file is unchanged" >&6;} 21946 else 21947 rm -f $ac_file 21948 mv "$tmp/config.h" $ac_file 21949 fi 21950 else 21951 echo "/* $configure_input */" 21952 cat "$ac_result" 21953 fi 21954 rm -f "$tmp/out12" 21955# Compute $ac_file's index in $config_headers. 21956_am_stamp_count=1 21957for _am_header in $config_headers :; do 21958 case $_am_header in 21959 $ac_file | $ac_file:* ) 21960 break ;; 21961 * ) 21962 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21963 esac 21964done 21965echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 21966$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21967 X$ac_file : 'X\(//\)[^/]' \| \ 21968 X$ac_file : 'X\(//\)$' \| \ 21969 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 21970echo X$ac_file | 21971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21972 s//\1/ 21973 q 21974 } 21975 /^X\(\/\/\)[^/].*/{ 21976 s//\1/ 21977 q 21978 } 21979 /^X\(\/\/\)$/{ 21980 s//\1/ 21981 q 21982 } 21983 /^X\(\/\).*/{ 21984 s//\1/ 21985 q 21986 } 21987 s/.*/./; q'`/stamp-h$_am_stamp_count 21988 ;; 21989 21990 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 21991echo "$as_me: executing $ac_file commands" >&6;} 21992 ;; 21993 esac 21994 21995 21996 case $ac_file$ac_mode in 21997 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21998 # Strip MF so we end up with the name of the file. 21999 mf=`echo "$mf" | sed -e 's/:.*$//'` 22000 # Check whether this is an Automake generated Makefile or not. 22001 # We used to match only the files named `Makefile.in', but 22002 # some people rename them; so instead we look at the file content. 22003 # Grep'ing the first line is not enough: some people post-process 22004 # each Makefile.in and add a new line on top of each file to say so. 22005 # So let's grep whole file. 22006 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 22007 dirpart=`$as_dirname -- "$mf" || 22008$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22009 X"$mf" : 'X\(//\)[^/]' \| \ 22010 X"$mf" : 'X\(//\)$' \| \ 22011 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22012echo X"$mf" | 22013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22014 s//\1/ 22015 q 22016 } 22017 /^X\(\/\/\)[^/].*/{ 22018 s//\1/ 22019 q 22020 } 22021 /^X\(\/\/\)$/{ 22022 s//\1/ 22023 q 22024 } 22025 /^X\(\/\).*/{ 22026 s//\1/ 22027 q 22028 } 22029 s/.*/./; q'` 22030 else 22031 continue 22032 fi 22033 # Extract the definition of DEPDIR, am__include, and am__quote 22034 # from the Makefile without running `make'. 22035 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22036 test -z "$DEPDIR" && continue 22037 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22038 test -z "am__include" && continue 22039 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22040 # When using ansi2knr, U may be empty or an underscore; expand it 22041 U=`sed -n 's/^U = //p' < "$mf"` 22042 # Find all dependency output files, they are included files with 22043 # $(DEPDIR) in their names. We invoke sed twice because it is the 22044 # simplest approach to changing $(DEPDIR) to its actual value in the 22045 # expansion. 22046 for file in `sed -n " 22047 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22048 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22049 # Make sure the directory exists. 22050 test -f "$dirpart/$file" && continue 22051 fdir=`$as_dirname -- "$file" || 22052$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22053 X"$file" : 'X\(//\)[^/]' \| \ 22054 X"$file" : 'X\(//\)$' \| \ 22055 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22056echo X"$file" | 22057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22058 s//\1/ 22059 q 22060 } 22061 /^X\(\/\/\)[^/].*/{ 22062 s//\1/ 22063 q 22064 } 22065 /^X\(\/\/\)$/{ 22066 s//\1/ 22067 q 22068 } 22069 /^X\(\/\).*/{ 22070 s//\1/ 22071 q 22072 } 22073 s/.*/./; q'` 22074 { as_dir=$dirpart/$fdir 22075 case $as_dir in #( 22076 -*) as_dir=./$as_dir;; 22077 esac 22078 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22079 as_dirs= 22080 while :; do 22081 case $as_dir in #( 22082 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22083 *) as_qdir=$as_dir;; 22084 esac 22085 as_dirs="'$as_qdir' $as_dirs" 22086 as_dir=`$as_dirname -- "$as_dir" || 22087$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22088 X"$as_dir" : 'X\(//\)[^/]' \| \ 22089 X"$as_dir" : 'X\(//\)$' \| \ 22090 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22091echo X"$as_dir" | 22092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22093 s//\1/ 22094 q 22095 } 22096 /^X\(\/\/\)[^/].*/{ 22097 s//\1/ 22098 q 22099 } 22100 /^X\(\/\/\)$/{ 22101 s//\1/ 22102 q 22103 } 22104 /^X\(\/\).*/{ 22105 s//\1/ 22106 q 22107 } 22108 s/.*/./; q'` 22109 test -d "$as_dir" && break 22110 done 22111 test -z "$as_dirs" || eval "mkdir $as_dirs" 22112 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22113echo "$as_me: error: cannot create directory $as_dir" >&2;} 22114 { (exit 1); exit 1; }; }; } 22115 # echo "creating $dirpart/$file" 22116 echo '# dummy' > "$dirpart/$file" 22117 done 22118done 22119 ;; 22120 22121 esac 22122done # for ac_tag 22123 22124 22125{ (exit 0); exit 0; } 22126_ACEOF 22127chmod +x $CONFIG_STATUS 22128ac_clean_files=$ac_clean_files_save 22129 22130 22131# configure is writing to config.log, and then calls config.status. 22132# config.status does its own redirection, appending to config.log. 22133# Unfortunately, on DOS this fails, as config.log is still kept open 22134# by configure, so config.status won't be able to write to it; its 22135# output is simply discarded. So we exec the FD to /dev/null, 22136# effectively closing config.log, so it can be properly (re)opened and 22137# appended to by config.status. When coming back to configure, we 22138# need to make the FD available again. 22139if test "$no_create" != yes; then 22140 ac_cs_success=: 22141 ac_config_status_args= 22142 test "$silent" = yes && 22143 ac_config_status_args="$ac_config_status_args --quiet" 22144 exec 5>/dev/null 22145 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22146 exec 5>>config.log 22147 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22148 # would make configure fail if this is the last instruction. 22149 $ac_cs_success || { (exit 1); exit 1; } 22150fi 22151 22152