1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.62 for gtkimageview 1.6.4. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81# Support unset when possible. 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 83 as_unset=unset 84else 85 as_unset=false 86fi 87 88 89# IFS 90# We need space, tab and new line, in precisely that order. Quoting is 91# there to prevent editors from complaining about space-tab. 92# (If _AS_PATH_WALK were called with IFS unset, it would disable word 93# splitting by setting IFS to empty value.) 94IFS=" "" $as_nl" 95 96# Find who we are. Look in the path if we contain no directory separator. 97case $0 in 98 *[\\/]* ) as_myself=$0 ;; 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 100for as_dir in $PATH 101do 102 IFS=$as_save_IFS 103 test -z "$as_dir" && as_dir=. 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 105done 106IFS=$as_save_IFS 107 108 ;; 109esac 110# We did not find ourselves, most probably we were run as `sh COMMAND' 111# in which case we are not to be found in the path. 112if test "x$as_myself" = x; then 113 as_myself=$0 114fi 115if test ! -f "$as_myself"; then 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 117 { (exit 1); exit 1; } 118fi 119 120# Work around bugs in pre-3.0 UWIN ksh. 121for as_var in ENV MAIL MAILPATH 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# Required to use basename. 135if expr a : '\(a\)' >/dev/null 2>&1 && 136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 137 as_expr=expr 138else 139 as_expr=false 140fi 141 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 143 as_basename=basename 144else 145 as_basename=false 146fi 147 148 149# Name of the executable. 150as_me=`$as_basename -- "$0" || 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 152 X"$0" : 'X\(//\)$' \| \ 153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 154$as_echo X/"$0" | 155 sed '/^.*\/\([^/][^/]*\)\/*$/{ 156 s//\1/ 157 q 158 } 159 /^X\/\(\/\/\)$/{ 160 s//\1/ 161 q 162 } 163 /^X\/\(\/\).*/{ 164 s//\1/ 165 q 166 } 167 s/.*/./; q'` 168 169# CDPATH. 170$as_unset CDPATH 171 172 173if test "x$CONFIG_SHELL" = x; then 174 if (eval ":") 2>/dev/null; then 175 as_have_required=yes 176else 177 as_have_required=no 178fi 179 180 if test $as_have_required = yes && (eval ": 181(as_func_return () { 182 (exit \$1) 183} 184as_func_success () { 185 as_func_return 0 186} 187as_func_failure () { 188 as_func_return 1 189} 190as_func_ret_success () { 191 return 0 192} 193as_func_ret_failure () { 194 return 1 195} 196 197exitcode=0 198if as_func_success; then 199 : 200else 201 exitcode=1 202 echo as_func_success failed. 203fi 204 205if as_func_failure; then 206 exitcode=1 207 echo as_func_failure succeeded. 208fi 209 210if as_func_ret_success; then 211 : 212else 213 exitcode=1 214 echo as_func_ret_success failed. 215fi 216 217if as_func_ret_failure; then 218 exitcode=1 219 echo as_func_ret_failure succeeded. 220fi 221 222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 223 : 224else 225 exitcode=1 226 echo positional parameters were not saved. 227fi 228 229test \$exitcode = 0) || { (exit 1); exit 1; } 230 231( 232 as_lineno_1=\$LINENO 233 as_lineno_2=\$LINENO 234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 236") 2> /dev/null; then 237 : 238else 239 as_candidate_shells= 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 242do 243 IFS=$as_save_IFS 244 test -z "$as_dir" && as_dir=. 245 case $as_dir in 246 /*) 247 for as_base in sh bash ksh sh5; do 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 249 done;; 250 esac 251done 252IFS=$as_save_IFS 253 254 255 for as_shell in $as_candidate_shells $SHELL; do 256 # Try only shells that exist, to save several forks. 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 258 { ("$as_shell") 2> /dev/null <<\_ASEOF 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Pre-4.2 versions of Zsh do 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 268 *posix*) set -o posix ;; 269esac 270 271fi 272 273 274: 275_ASEOF 276}; then 277 CONFIG_SHELL=$as_shell 278 as_have_required=yes 279 if { "$as_shell" 2> /dev/null <<\_ASEOF 280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 281 emulate sh 282 NULLCMD=: 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 284 # is contrary to our usage. Disable this feature. 285 alias -g '${1+"$@"}'='"$@"' 286 setopt NO_GLOB_SUBST 287else 288 case `(set -o) 2>/dev/null` in 289 *posix*) set -o posix ;; 290esac 291 292fi 293 294 295: 296(as_func_return () { 297 (exit $1) 298} 299as_func_success () { 300 as_func_return 0 301} 302as_func_failure () { 303 as_func_return 1 304} 305as_func_ret_success () { 306 return 0 307} 308as_func_ret_failure () { 309 return 1 310} 311 312exitcode=0 313if as_func_success; then 314 : 315else 316 exitcode=1 317 echo as_func_success failed. 318fi 319 320if as_func_failure; then 321 exitcode=1 322 echo as_func_failure succeeded. 323fi 324 325if as_func_ret_success; then 326 : 327else 328 exitcode=1 329 echo as_func_ret_success failed. 330fi 331 332if as_func_ret_failure; then 333 exitcode=1 334 echo as_func_ret_failure succeeded. 335fi 336 337if ( set x; as_func_ret_success y && test x = "$1" ); then 338 : 339else 340 exitcode=1 341 echo positional parameters were not saved. 342fi 343 344test $exitcode = 0) || { (exit 1); exit 1; } 345 346( 347 as_lineno_1=$LINENO 348 as_lineno_2=$LINENO 349 test "x$as_lineno_1" != "x$as_lineno_2" && 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 351 352_ASEOF 353}; then 354 break 355fi 356 357fi 358 359 done 360 361 if test "x$CONFIG_SHELL" != x; then 362 for as_var in BASH_ENV ENV 363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 364 done 365 export CONFIG_SHELL 366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 367fi 368 369 370 if test $as_have_required = no; then 371 echo This script requires a shell more modern than all the 372 echo shells that I found on your system. Please install a 373 echo modern shell, or manually run the script under such a 374 echo shell if you do have one. 375 { (exit 1); exit 1; } 376fi 377 378 379fi 380 381fi 382 383 384 385(eval "as_func_return () { 386 (exit \$1) 387} 388as_func_success () { 389 as_func_return 0 390} 391as_func_failure () { 392 as_func_return 1 393} 394as_func_ret_success () { 395 return 0 396} 397as_func_ret_failure () { 398 return 1 399} 400 401exitcode=0 402if as_func_success; then 403 : 404else 405 exitcode=1 406 echo as_func_success failed. 407fi 408 409if as_func_failure; then 410 exitcode=1 411 echo as_func_failure succeeded. 412fi 413 414if as_func_ret_success; then 415 : 416else 417 exitcode=1 418 echo as_func_ret_success failed. 419fi 420 421if as_func_ret_failure; then 422 exitcode=1 423 echo as_func_ret_failure succeeded. 424fi 425 426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 427 : 428else 429 exitcode=1 430 echo positional parameters were not saved. 431fi 432 433test \$exitcode = 0") || { 434 echo No shell found that supports shell functions. 435 echo Please tell bug-autoconf@gnu.org about your system, 436 echo including any error possibly output before this message. 437 echo This can help us improve future autoconf versions. 438 echo Configuration will now proceed without shell functions. 439} 440 441 442 443 as_lineno_1=$LINENO 444 as_lineno_2=$LINENO 445 test "x$as_lineno_1" != "x$as_lineno_2" && 446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 447 448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 449 # uniformly replaced by the line number. The first 'sed' inserts a 450 # line-number line after each line using $LINENO; the second 'sed' 451 # does the real work. The second script uses 'N' to pair each 452 # line-number line with the line containing $LINENO, and appends 453 # trailing '-' during substitution so that $LINENO is not a special 454 # case at line end. 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 456 # scripts with optimization help from Paolo Bonzini. Blame Lee 457 # E. McMahon (1931-1989) for sed's syntax. :-) 458 sed -n ' 459 p 460 /[$]LINENO/= 461 ' <$as_myself | 462 sed ' 463 s/[$]LINENO.*/&-/ 464 t lineno 465 b 466 :lineno 467 N 468 :loop 469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 470 t loop 471 s/-\n.*// 472 ' >$as_me.lineno && 473 chmod +x "$as_me.lineno" || 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 475 { (exit 1); exit 1; }; } 476 477 # Don't try to exec as it changes $[0], causing all sort of problems 478 # (the dirname of $[0] is not the place where we might find the 479 # original and so on. Autoconf is especially sensitive to this). 480 . "./$as_me.lineno" 481 # Exit status is that of the last command. 482 exit 483} 484 485 486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 487 as_dirname=dirname 488else 489 as_dirname=false 490fi 491 492ECHO_C= ECHO_N= ECHO_T= 493case `echo -n x` in 494-n*) 495 case `echo 'x\c'` in 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 497 *) ECHO_C='\c';; 498 esac;; 499*) 500 ECHO_N='-n';; 501esac 502if expr a : '\(a\)' >/dev/null 2>&1 && 503 test "X`expr 00001 : '.*\(...\)'`" = X001; then 504 as_expr=expr 505else 506 as_expr=false 507fi 508 509rm -f conf$$ conf$$.exe conf$$.file 510if test -d conf$$.dir; then 511 rm -f conf$$.dir/conf$$.file 512else 513 rm -f conf$$.dir 514 mkdir conf$$.dir 2>/dev/null 515fi 516if (echo >conf$$.file) 2>/dev/null; then 517 if ln -s conf$$.file conf$$ 2>/dev/null; then 518 as_ln_s='ln -s' 519 # ... but there are two gotchas: 520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 522 # In both cases, we have to default to `cp -p'. 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 524 as_ln_s='cp -p' 525 elif ln conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s=ln 527 else 528 as_ln_s='cp -p' 529 fi 530else 531 as_ln_s='cp -p' 532fi 533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 534rmdir conf$$.dir 2>/dev/null 535 536if mkdir -p . 2>/dev/null; then 537 as_mkdir_p=: 538else 539 test -d ./-p && rmdir ./-p 540 as_mkdir_p=false 541fi 542 543if test -x / >/dev/null 2>&1; then 544 as_test_x='test -x' 545else 546 if ls -dL / >/dev/null 2>&1; then 547 as_ls_L_option=L 548 else 549 as_ls_L_option= 550 fi 551 as_test_x=' 552 eval sh -c '\'' 553 if test -d "$1"; then 554 test -d "$1/."; 555 else 556 case $1 in 557 -*)set "./$1";; 558 esac; 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 560 ???[sx]*):;;*)false;;esac;fi 561 '\'' sh 562 ' 563fi 564as_executable_p=$as_test_x 565 566# Sed expression to map a string onto a valid CPP name. 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 568 569# Sed expression to map a string onto a valid variable name. 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 571 572 573 574 575# Check that we are running under the correct shell. 576SHELL=${CONFIG_SHELL-/bin/sh} 577 578case X$ECHO in 579X*--fallback-echo) 580 # Remove one level of quotation (which was required for Make). 581 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 582 ;; 583esac 584 585echo=${ECHO-echo} 586if test "X$1" = X--no-reexec; then 587 # Discard the --no-reexec flag, and continue. 588 shift 589elif test "X$1" = X--fallback-echo; then 590 # Avoid inline document here, it may be left over 591 : 592elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 593 # Yippee, $echo works! 594 : 595else 596 # Restart under the correct shell. 597 exec $SHELL "$0" --no-reexec ${1+"$@"} 598fi 599 600if test "X$1" = X--fallback-echo; then 601 # used as fallback echo 602 shift 603 cat <<EOF 604$* 605EOF 606 exit 0 607fi 608 609# The HP-UX ksh and POSIX shell print the target directory to stdout 610# if CDPATH is set. 611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 612 613if test -z "$ECHO"; then 614if test "X${echo_test_string+set}" != Xset; then 615# find a string as large as possible, as long as the shell can cope with it 616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 618 if (echo_test_string=`eval $cmd`) 2>/dev/null && 619 echo_test_string=`eval $cmd` && 620 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 621 then 622 break 623 fi 624 done 625fi 626 627if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 629 test "X$echo_testing_string" = "X$echo_test_string"; then 630 : 631else 632 # The Solaris, AIX, and Digital Unix default echo programs unquote 633 # backslashes. This makes it impossible to quote backslashes using 634 # echo "$something" | sed 's/\\/\\\\/g' 635 # 636 # So, first we look for a working echo in the user's PATH. 637 638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 639 for dir in $PATH /usr/ucb; do 640 IFS="$lt_save_ifs" 641 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 642 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 643 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 644 test "X$echo_testing_string" = "X$echo_test_string"; then 645 echo="$dir/echo" 646 break 647 fi 648 done 649 IFS="$lt_save_ifs" 650 651 if test "X$echo" = Xecho; then 652 # We didn't find a better echo, so look for alternatives. 653 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 654 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 # This shell has a builtin print -r that does the trick. 657 echo='print -r' 658 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 659 test "X$CONFIG_SHELL" != X/bin/ksh; then 660 # If we have ksh, try running configure again with it. 661 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 662 export ORIGINAL_CONFIG_SHELL 663 CONFIG_SHELL=/bin/ksh 664 export CONFIG_SHELL 665 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 666 else 667 # Try using printf. 668 echo='printf %s\n' 669 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 670 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 671 test "X$echo_testing_string" = "X$echo_test_string"; then 672 # Cool, printf works 673 : 674 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 675 test "X$echo_testing_string" = 'X\t' && 676 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 677 test "X$echo_testing_string" = "X$echo_test_string"; then 678 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 679 export CONFIG_SHELL 680 SHELL="$CONFIG_SHELL" 681 export SHELL 682 echo="$CONFIG_SHELL $0 --fallback-echo" 683 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 684 test "X$echo_testing_string" = 'X\t' && 685 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 686 test "X$echo_testing_string" = "X$echo_test_string"; then 687 echo="$CONFIG_SHELL $0 --fallback-echo" 688 else 689 # maybe with a smaller string... 690 prev=: 691 692 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 693 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 694 then 695 break 696 fi 697 prev="$cmd" 698 done 699 700 if test "$prev" != 'sed 50q "$0"'; then 701 echo_test_string=`eval $prev` 702 export echo_test_string 703 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 704 else 705 # Oops. We lost completely, so just stick with echo. 706 echo=echo 707 fi 708 fi 709 fi 710 fi 711fi 712fi 713 714# Copy echo and quote the copy suitably for passing to libtool from 715# the Makefile, instead of quoting the original, which is used later. 716ECHO=$echo 717if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 718 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 719fi 720 721 722 723 724tagnames=${tagnames+${tagnames},}CXX 725 726tagnames=${tagnames+${tagnames},}F77 727 728exec 7<&0 </dev/null 6>&1 729 730# Name of the host. 731# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 732# so uname gets run too. 733ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 734 735# 736# Initializations. 737# 738ac_default_prefix=/usr/local 739ac_clean_files= 740ac_config_libobj_dir=. 741LIBOBJS= 742cross_compiling=no 743subdirs= 744MFLAGS= 745MAKEFLAGS= 746SHELL=${CONFIG_SHELL-/bin/sh} 747 748# Identity of this package. 749PACKAGE_NAME='gtkimageview' 750PACKAGE_TARNAME='gtkimageview' 751PACKAGE_VERSION='1.6.4' 752PACKAGE_STRING='gtkimageview 1.6.4' 753PACKAGE_BUGREPORT='' 754 755ac_unique_file="src/gtkimageview.h" 756# Factoring default headers for most tests. 757ac_includes_default="\ 758#include <stdio.h> 759#ifdef HAVE_SYS_TYPES_H 760# include <sys/types.h> 761#endif 762#ifdef HAVE_SYS_STAT_H 763# include <sys/stat.h> 764#endif 765#ifdef STDC_HEADERS 766# include <stdlib.h> 767# include <stddef.h> 768#else 769# ifdef HAVE_STDLIB_H 770# include <stdlib.h> 771# endif 772#endif 773#ifdef HAVE_STRING_H 774# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 775# include <memory.h> 776# endif 777# include <string.h> 778#endif 779#ifdef HAVE_STRINGS_H 780# include <strings.h> 781#endif 782#ifdef HAVE_INTTYPES_H 783# include <inttypes.h> 784#endif 785#ifdef HAVE_STDINT_H 786# include <stdint.h> 787#endif 788#ifdef HAVE_UNISTD_H 789# include <unistd.h> 790#endif" 791 792ac_subst_vars='SHELL 793PATH_SEPARATOR 794PACKAGE_NAME 795PACKAGE_TARNAME 796PACKAGE_VERSION 797PACKAGE_STRING 798PACKAGE_BUGREPORT 799exec_prefix 800prefix 801program_transform_name 802bindir 803sbindir 804libexecdir 805datarootdir 806datadir 807sysconfdir 808sharedstatedir 809localstatedir 810includedir 811oldincludedir 812docdir 813infodir 814htmldir 815dvidir 816pdfdir 817psdir 818libdir 819localedir 820mandir 821DEFS 822ECHO_C 823ECHO_N 824ECHO_T 825LIBS 826build_alias 827host_alias 828target_alias 829INSTALL_PROGRAM 830INSTALL_SCRIPT 831INSTALL_DATA 832am__isrc 833CYGPATH_W 834PACKAGE 835VERSION 836ACLOCAL 837AUTOCONF 838AUTOMAKE 839AUTOHEADER 840MAKEINFO 841install_sh 842STRIP 843INSTALL_STRIP_PROGRAM 844MKDIR_P 845mkdir_p 846AWK 847SET_MAKE 848am__leading_dot 849AMTAR 850am__tar 851am__untar 852CC 853CFLAGS 854LDFLAGS 855CPPFLAGS 856ac_ct_CC 857EXEEXT 858OBJEXT 859DEPDIR 860am__include 861am__quote 862AMDEP_TRUE 863AMDEP_FALSE 864AMDEPBACKSLASH 865CCDEPMODE 866am__fastdepCC_TRUE 867am__fastdepCC_FALSE 868build 869build_cpu 870build_vendor 871build_os 872host 873host_cpu 874host_vendor 875host_os 876SED 877GREP 878EGREP 879LN_S 880ECHO 881AR 882RANLIB 883DSYMUTIL 884NMEDIT 885CPP 886CXX 887CXXFLAGS 888ac_ct_CXX 889CXXDEPMODE 890am__fastdepCXX_TRUE 891am__fastdepCXX_FALSE 892CXXCPP 893F77 894FFLAGS 895ac_ct_F77 896LIBTOOL 897ACLOCAL_AMFLAGS 898WARN_CFLAGS 899DEPRECATED_FLAGS 900PKG_CONFIG 901DEP_CFLAGS 902DEP_LIBS 903GLIB_GENMARSHAL 904GLIB_MKENUMS 905GTKDOC_CHECK 906GTKDOC_REBASE 907GTKDOC_MKPDF 908HTML_DIR 909ENABLE_GTK_DOC_TRUE 910ENABLE_GTK_DOC_FALSE 911GTK_DOC_BUILD_HTML_TRUE 912GTK_DOC_BUILD_HTML_FALSE 913GTK_DOC_BUILD_PDF_TRUE 914GTK_DOC_BUILD_PDF_FALSE 915GTK_DOC_USE_LIBTOOL_TRUE 916GTK_DOC_USE_LIBTOOL_FALSE 917GTK_DOC_USE_REBASE_TRUE 918GTK_DOC_USE_REBASE_FALSE 919LIBOBJS 920LTLIBOBJS' 921ac_subst_files='' 922ac_user_opts=' 923enable_option_checking 924enable_dependency_tracking 925enable_shared 926enable_static 927enable_fast_install 928with_gnu_ld 929enable_libtool_lock 930with_pic 931with_tags 932enable_compile_warnings 933enable_iso_c 934with_html_dir 935enable_gtk_doc 936enable_gtk_doc_html 937enable_gtk_doc_pdf 938' 939 ac_precious_vars='build_alias 940host_alias 941target_alias 942CC 943CFLAGS 944LDFLAGS 945LIBS 946CPPFLAGS 947CPP 948CXX 949CXXFLAGS 950CCC 951CXXCPP 952F77 953FFLAGS 954PKG_CONFIG 955DEP_CFLAGS 956DEP_LIBS' 957 958 959# Initialize some variables set by options. 960ac_init_help= 961ac_init_version=false 962ac_unrecognized_opts= 963ac_unrecognized_sep= 964# The variables have the same names as the options, with 965# dashes changed to underlines. 966cache_file=/dev/null 967exec_prefix=NONE 968no_create= 969no_recursion= 970prefix=NONE 971program_prefix=NONE 972program_suffix=NONE 973program_transform_name=s,x,x, 974silent= 975site= 976srcdir= 977verbose= 978x_includes=NONE 979x_libraries=NONE 980 981# Installation directory options. 982# These are left unexpanded so users can "make install exec_prefix=/foo" 983# and all the variables that are supposed to be based on exec_prefix 984# by default will actually change. 985# Use braces instead of parens because sh, perl, etc. also accept them. 986# (The list follows the same order as the GNU Coding Standards.) 987bindir='${exec_prefix}/bin' 988sbindir='${exec_prefix}/sbin' 989libexecdir='${exec_prefix}/libexec' 990datarootdir='${prefix}/share' 991datadir='${datarootdir}' 992sysconfdir='${prefix}/etc' 993sharedstatedir='${prefix}/com' 994localstatedir='${prefix}/var' 995includedir='${prefix}/include' 996oldincludedir='/usr/include' 997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 998infodir='${datarootdir}/info' 999htmldir='${docdir}' 1000dvidir='${docdir}' 1001pdfdir='${docdir}' 1002psdir='${docdir}' 1003libdir='${exec_prefix}/lib' 1004localedir='${datarootdir}/locale' 1005mandir='${datarootdir}/man' 1006 1007ac_prev= 1008ac_dashdash= 1009for ac_option 1010do 1011 # If the previous option needs an argument, assign it. 1012 if test -n "$ac_prev"; then 1013 eval $ac_prev=\$ac_option 1014 ac_prev= 1015 continue 1016 fi 1017 1018 case $ac_option in 1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1020 *) ac_optarg=yes ;; 1021 esac 1022 1023 # Accept the important Cygnus configure options, so we can diagnose typos. 1024 1025 case $ac_dashdash$ac_option in 1026 --) 1027 ac_dashdash=yes ;; 1028 1029 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1030 ac_prev=bindir ;; 1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1032 bindir=$ac_optarg ;; 1033 1034 -build | --build | --buil | --bui | --bu) 1035 ac_prev=build_alias ;; 1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1037 build_alias=$ac_optarg ;; 1038 1039 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1041 ac_prev=cache_file ;; 1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1044 cache_file=$ac_optarg ;; 1045 1046 --config-cache | -C) 1047 cache_file=config.cache ;; 1048 1049 -datadir | --datadir | --datadi | --datad) 1050 ac_prev=datadir ;; 1051 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1052 datadir=$ac_optarg ;; 1053 1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1055 | --dataroo | --dataro | --datar) 1056 ac_prev=datarootdir ;; 1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1059 datarootdir=$ac_optarg ;; 1060 1061 -disable-* | --disable-*) 1062 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1065 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1066 { (exit 1); exit 1; }; } 1067 ac_useropt_orig=$ac_useropt 1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1069 case $ac_user_opts in 1070 *" 1071"enable_$ac_useropt" 1072"*) ;; 1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1074 ac_unrecognized_sep=', ';; 1075 esac 1076 eval enable_$ac_useropt=no ;; 1077 1078 -docdir | --docdir | --docdi | --doc | --do) 1079 ac_prev=docdir ;; 1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1081 docdir=$ac_optarg ;; 1082 1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1084 ac_prev=dvidir ;; 1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1086 dvidir=$ac_optarg ;; 1087 1088 -enable-* | --enable-*) 1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1090 # Reject names that are not valid shell variable names. 1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1092 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1093 { (exit 1); exit 1; }; } 1094 ac_useropt_orig=$ac_useropt 1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1096 case $ac_user_opts in 1097 *" 1098"enable_$ac_useropt" 1099"*) ;; 1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1101 ac_unrecognized_sep=', ';; 1102 esac 1103 eval enable_$ac_useropt=\$ac_optarg ;; 1104 1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1107 | --exec | --exe | --ex) 1108 ac_prev=exec_prefix ;; 1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1111 | --exec=* | --exe=* | --ex=*) 1112 exec_prefix=$ac_optarg ;; 1113 1114 -gas | --gas | --ga | --g) 1115 # Obsolete; use --with-gas. 1116 with_gas=yes ;; 1117 1118 -help | --help | --hel | --he | -h) 1119 ac_init_help=long ;; 1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1121 ac_init_help=recursive ;; 1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1123 ac_init_help=short ;; 1124 1125 -host | --host | --hos | --ho) 1126 ac_prev=host_alias ;; 1127 -host=* | --host=* | --hos=* | --ho=*) 1128 host_alias=$ac_optarg ;; 1129 1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1131 ac_prev=htmldir ;; 1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1133 | --ht=*) 1134 htmldir=$ac_optarg ;; 1135 1136 -includedir | --includedir | --includedi | --included | --include \ 1137 | --includ | --inclu | --incl | --inc) 1138 ac_prev=includedir ;; 1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1140 | --includ=* | --inclu=* | --incl=* | --inc=*) 1141 includedir=$ac_optarg ;; 1142 1143 -infodir | --infodir | --infodi | --infod | --info | --inf) 1144 ac_prev=infodir ;; 1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1146 infodir=$ac_optarg ;; 1147 1148 -libdir | --libdir | --libdi | --libd) 1149 ac_prev=libdir ;; 1150 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1151 libdir=$ac_optarg ;; 1152 1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1154 | --libexe | --libex | --libe) 1155 ac_prev=libexecdir ;; 1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1157 | --libexe=* | --libex=* | --libe=*) 1158 libexecdir=$ac_optarg ;; 1159 1160 -localedir | --localedir | --localedi | --localed | --locale) 1161 ac_prev=localedir ;; 1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1163 localedir=$ac_optarg ;; 1164 1165 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1166 | --localstate | --localstat | --localsta | --localst | --locals) 1167 ac_prev=localstatedir ;; 1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1170 localstatedir=$ac_optarg ;; 1171 1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1173 ac_prev=mandir ;; 1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1175 mandir=$ac_optarg ;; 1176 1177 -nfp | --nfp | --nf) 1178 # Obsolete; use --without-fp. 1179 with_fp=no ;; 1180 1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1182 | --no-cr | --no-c | -n) 1183 no_create=yes ;; 1184 1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1187 no_recursion=yes ;; 1188 1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1191 | --oldin | --oldi | --old | --ol | --o) 1192 ac_prev=oldincludedir ;; 1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1196 oldincludedir=$ac_optarg ;; 1197 1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1199 ac_prev=prefix ;; 1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1201 prefix=$ac_optarg ;; 1202 1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1204 | --program-pre | --program-pr | --program-p) 1205 ac_prev=program_prefix ;; 1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1208 program_prefix=$ac_optarg ;; 1209 1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1211 | --program-suf | --program-su | --program-s) 1212 ac_prev=program_suffix ;; 1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1215 program_suffix=$ac_optarg ;; 1216 1217 -program-transform-name | --program-transform-name \ 1218 | --program-transform-nam | --program-transform-na \ 1219 | --program-transform-n | --program-transform- \ 1220 | --program-transform | --program-transfor \ 1221 | --program-transfo | --program-transf \ 1222 | --program-trans | --program-tran \ 1223 | --progr-tra | --program-tr | --program-t) 1224 ac_prev=program_transform_name ;; 1225 -program-transform-name=* | --program-transform-name=* \ 1226 | --program-transform-nam=* | --program-transform-na=* \ 1227 | --program-transform-n=* | --program-transform-=* \ 1228 | --program-transform=* | --program-transfor=* \ 1229 | --program-transfo=* | --program-transf=* \ 1230 | --program-trans=* | --program-tran=* \ 1231 | --progr-tra=* | --program-tr=* | --program-t=*) 1232 program_transform_name=$ac_optarg ;; 1233 1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1235 ac_prev=pdfdir ;; 1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1237 pdfdir=$ac_optarg ;; 1238 1239 -psdir | --psdir | --psdi | --psd | --ps) 1240 ac_prev=psdir ;; 1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1242 psdir=$ac_optarg ;; 1243 1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1245 | -silent | --silent | --silen | --sile | --sil) 1246 silent=yes ;; 1247 1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1249 ac_prev=sbindir ;; 1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1251 | --sbi=* | --sb=*) 1252 sbindir=$ac_optarg ;; 1253 1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1256 | --sharedst | --shareds | --shared | --share | --shar \ 1257 | --sha | --sh) 1258 ac_prev=sharedstatedir ;; 1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1262 | --sha=* | --sh=*) 1263 sharedstatedir=$ac_optarg ;; 1264 1265 -site | --site | --sit) 1266 ac_prev=site ;; 1267 -site=* | --site=* | --sit=*) 1268 site=$ac_optarg ;; 1269 1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1271 ac_prev=srcdir ;; 1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1273 srcdir=$ac_optarg ;; 1274 1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1276 | --syscon | --sysco | --sysc | --sys | --sy) 1277 ac_prev=sysconfdir ;; 1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1280 sysconfdir=$ac_optarg ;; 1281 1282 -target | --target | --targe | --targ | --tar | --ta | --t) 1283 ac_prev=target_alias ;; 1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1285 target_alias=$ac_optarg ;; 1286 1287 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1288 verbose=yes ;; 1289 1290 -version | --version | --versio | --versi | --vers | -V) 1291 ac_init_version=: ;; 1292 1293 -with-* | --with-*) 1294 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1295 # Reject names that are not valid shell variable names. 1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1297 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1298 { (exit 1); exit 1; }; } 1299 ac_useropt_orig=$ac_useropt 1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1301 case $ac_user_opts in 1302 *" 1303"with_$ac_useropt" 1304"*) ;; 1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1306 ac_unrecognized_sep=', ';; 1307 esac 1308 eval with_$ac_useropt=\$ac_optarg ;; 1309 1310 -without-* | --without-*) 1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1312 # Reject names that are not valid shell variable names. 1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1314 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1315 { (exit 1); exit 1; }; } 1316 ac_useropt_orig=$ac_useropt 1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1318 case $ac_user_opts in 1319 *" 1320"with_$ac_useropt" 1321"*) ;; 1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1323 ac_unrecognized_sep=', ';; 1324 esac 1325 eval with_$ac_useropt=no ;; 1326 1327 --x) 1328 # Obsolete; use --with-x. 1329 with_x=yes ;; 1330 1331 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1332 | --x-incl | --x-inc | --x-in | --x-i) 1333 ac_prev=x_includes ;; 1334 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1335 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1336 x_includes=$ac_optarg ;; 1337 1338 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1339 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1340 ac_prev=x_libraries ;; 1341 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1342 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1343 x_libraries=$ac_optarg ;; 1344 1345 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1346Try \`$0 --help' for more information." >&2 1347 { (exit 1); exit 1; }; } 1348 ;; 1349 1350 *=*) 1351 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1352 # Reject names that are not valid shell variable names. 1353 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1354 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1355 { (exit 1); exit 1; }; } 1356 eval $ac_envvar=\$ac_optarg 1357 export $ac_envvar ;; 1358 1359 *) 1360 # FIXME: should be removed in autoconf 3.0. 1361 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1363 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1364 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1365 ;; 1366 1367 esac 1368done 1369 1370if test -n "$ac_prev"; then 1371 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1372 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1373 { (exit 1); exit 1; }; } 1374fi 1375 1376if test -n "$ac_unrecognized_opts"; then 1377 case $enable_option_checking in 1378 no) ;; 1379 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1380 { (exit 1); exit 1; }; } ;; 1381 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 1382 esac 1383fi 1384 1385# Check all directory arguments for consistency. 1386for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1387 datadir sysconfdir sharedstatedir localstatedir includedir \ 1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1389 libdir localedir mandir 1390do 1391 eval ac_val=\$$ac_var 1392 # Remove trailing slashes. 1393 case $ac_val in 1394 */ ) 1395 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1396 eval $ac_var=\$ac_val;; 1397 esac 1398 # Be sure to have absolute directory names. 1399 case $ac_val in 1400 [\\/$]* | ?:[\\/]* ) continue;; 1401 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1402 esac 1403 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1404 { (exit 1); exit 1; }; } 1405done 1406 1407# There might be people who depend on the old broken behavior: `$host' 1408# used to hold the argument of --host etc. 1409# FIXME: To remove some day. 1410build=$build_alias 1411host=$host_alias 1412target=$target_alias 1413 1414# FIXME: To remove some day. 1415if test "x$host_alias" != x; then 1416 if test "x$build_alias" = x; then 1417 cross_compiling=maybe 1418 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1419 If a cross compiler is detected then cross compile mode will be used." >&2 1420 elif test "x$build_alias" != "x$host_alias"; then 1421 cross_compiling=yes 1422 fi 1423fi 1424 1425ac_tool_prefix= 1426test -n "$host_alias" && ac_tool_prefix=$host_alias- 1427 1428test "$silent" = yes && exec 6>/dev/null 1429 1430 1431ac_pwd=`pwd` && test -n "$ac_pwd" && 1432ac_ls_di=`ls -di .` && 1433ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1434 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1435 { (exit 1); exit 1; }; } 1436test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1437 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1438 { (exit 1); exit 1; }; } 1439 1440 1441# Find the source files, if location was not specified. 1442if test -z "$srcdir"; then 1443 ac_srcdir_defaulted=yes 1444 # Try the directory containing this script, then the parent directory. 1445 ac_confdir=`$as_dirname -- "$as_myself" || 1446$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1447 X"$as_myself" : 'X\(//\)[^/]' \| \ 1448 X"$as_myself" : 'X\(//\)$' \| \ 1449 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1450$as_echo X"$as_myself" | 1451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1452 s//\1/ 1453 q 1454 } 1455 /^X\(\/\/\)[^/].*/{ 1456 s//\1/ 1457 q 1458 } 1459 /^X\(\/\/\)$/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\).*/{ 1464 s//\1/ 1465 q 1466 } 1467 s/.*/./; q'` 1468 srcdir=$ac_confdir 1469 if test ! -r "$srcdir/$ac_unique_file"; then 1470 srcdir=.. 1471 fi 1472else 1473 ac_srcdir_defaulted=no 1474fi 1475if test ! -r "$srcdir/$ac_unique_file"; then 1476 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1477 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1478 { (exit 1); exit 1; }; } 1479fi 1480ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1481ac_abs_confdir=`( 1482 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1483 { (exit 1); exit 1; }; } 1484 pwd)` 1485# When building in place, set srcdir=. 1486if test "$ac_abs_confdir" = "$ac_pwd"; then 1487 srcdir=. 1488fi 1489# Remove unnecessary trailing slashes from srcdir. 1490# Double slashes in file names in object file debugging info 1491# mess up M-x gdb in Emacs. 1492case $srcdir in 1493*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1494esac 1495for ac_var in $ac_precious_vars; do 1496 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1497 eval ac_env_${ac_var}_value=\$${ac_var} 1498 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1499 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1500done 1501 1502# 1503# Report the --help message. 1504# 1505if test "$ac_init_help" = "long"; then 1506 # Omit some internal or obsolete options to make the list less imposing. 1507 # This message is too long to be a string in the A/UX 3.1 sh. 1508 cat <<_ACEOF 1509\`configure' configures gtkimageview 1.6.4 to adapt to many kinds of systems. 1510 1511Usage: $0 [OPTION]... [VAR=VALUE]... 1512 1513To assign environment variables (e.g., CC, CFLAGS...), specify them as 1514VAR=VALUE. See below for descriptions of some of the useful variables. 1515 1516Defaults for the options are specified in brackets. 1517 1518Configuration: 1519 -h, --help display this help and exit 1520 --help=short display options specific to this package 1521 --help=recursive display the short help of all the included packages 1522 -V, --version display version information and exit 1523 -q, --quiet, --silent do not print \`checking...' messages 1524 --cache-file=FILE cache test results in FILE [disabled] 1525 -C, --config-cache alias for \`--cache-file=config.cache' 1526 -n, --no-create do not create output files 1527 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1528 1529Installation directories: 1530 --prefix=PREFIX install architecture-independent files in PREFIX 1531 [$ac_default_prefix] 1532 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1533 [PREFIX] 1534 1535By default, \`make install' will install all the files in 1536\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1537an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1538for instance \`--prefix=\$HOME'. 1539 1540For better control, use the options below. 1541 1542Fine tuning of the installation directories: 1543 --bindir=DIR user executables [EPREFIX/bin] 1544 --sbindir=DIR system admin executables [EPREFIX/sbin] 1545 --libexecdir=DIR program executables [EPREFIX/libexec] 1546 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1547 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1548 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1549 --libdir=DIR object code libraries [EPREFIX/lib] 1550 --includedir=DIR C header files [PREFIX/include] 1551 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1552 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1553 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1554 --infodir=DIR info documentation [DATAROOTDIR/info] 1555 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1556 --mandir=DIR man documentation [DATAROOTDIR/man] 1557 --docdir=DIR documentation root [DATAROOTDIR/doc/gtkimageview] 1558 --htmldir=DIR html documentation [DOCDIR] 1559 --dvidir=DIR dvi documentation [DOCDIR] 1560 --pdfdir=DIR pdf documentation [DOCDIR] 1561 --psdir=DIR ps documentation [DOCDIR] 1562_ACEOF 1563 1564 cat <<\_ACEOF 1565 1566Program names: 1567 --program-prefix=PREFIX prepend PREFIX to installed program names 1568 --program-suffix=SUFFIX append SUFFIX to installed program names 1569 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1570 1571System types: 1572 --build=BUILD configure for building on BUILD [guessed] 1573 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1574_ACEOF 1575fi 1576 1577if test -n "$ac_init_help"; then 1578 case $ac_init_help in 1579 short | recursive ) echo "Configuration of gtkimageview 1.6.4:";; 1580 esac 1581 cat <<\_ACEOF 1582 1583Optional Features: 1584 --disable-option-checking ignore unrecognized --enable/--with options 1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1587 --disable-dependency-tracking speeds up one-time build 1588 --enable-dependency-tracking do not reject slow dependency extractors 1589 --enable-shared[=PKGS] build shared libraries [default=yes] 1590 --enable-static[=PKGS] build static libraries [default=yes] 1591 --enable-fast-install[=PKGS] 1592 optimize for fast installation [default=yes] 1593 --disable-libtool-lock avoid locking (might break parallel builds) 1594 --enable-compile-warnings=[no/minimum/yes/maximum/error] 1595 Turn on compiler warnings 1596 --enable-iso-c Try to warn if code is not ISO C 1597 --enable-gtk-doc use gtk-doc to build documentation [default=no] 1598 --enable-gtk-doc-html build documentation in html format [default=yes] 1599 --enable-gtk-doc-pdf build documentation in pdf format [default=no] 1600 1601Optional Packages: 1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1605 --with-pic try to use only PIC/non-PIC objects [default=use 1606 both] 1607 --with-tags[=TAGS] include additional configurations [automatic] 1608 --with-html-dir=PATH path to installed docs 1609 1610Some influential environment variables: 1611 CC C compiler command 1612 CFLAGS C compiler flags 1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1614 nonstandard directory <lib dir> 1615 LIBS libraries to pass to the linker, e.g. -l<library> 1616 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1617 you have headers in a nonstandard directory <include dir> 1618 CPP C preprocessor 1619 CXX C++ compiler command 1620 CXXFLAGS C++ compiler flags 1621 CXXCPP C++ preprocessor 1622 F77 Fortran 77 compiler command 1623 FFLAGS Fortran 77 compiler flags 1624 PKG_CONFIG path to pkg-config utility 1625 DEP_CFLAGS C compiler flags for DEP, overriding pkg-config 1626 DEP_LIBS linker flags for DEP, overriding pkg-config 1627 1628Use these variables to override the choices made by `configure' or to help 1629it to find libraries and programs with nonstandard names/locations. 1630 1631_ACEOF 1632ac_status=$? 1633fi 1634 1635if test "$ac_init_help" = "recursive"; then 1636 # If there are subdirs, report their specific --help. 1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1638 test -d "$ac_dir" || 1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1640 continue 1641 ac_builddir=. 1642 1643case "$ac_dir" in 1644.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1645*) 1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1647 # A ".." for each directory in $ac_dir_suffix. 1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1649 case $ac_top_builddir_sub in 1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1652 esac ;; 1653esac 1654ac_abs_top_builddir=$ac_pwd 1655ac_abs_builddir=$ac_pwd$ac_dir_suffix 1656# for backward compatibility: 1657ac_top_builddir=$ac_top_build_prefix 1658 1659case $srcdir in 1660 .) # We are building in place. 1661 ac_srcdir=. 1662 ac_top_srcdir=$ac_top_builddir_sub 1663 ac_abs_top_srcdir=$ac_pwd ;; 1664 [\\/]* | ?:[\\/]* ) # Absolute name. 1665 ac_srcdir=$srcdir$ac_dir_suffix; 1666 ac_top_srcdir=$srcdir 1667 ac_abs_top_srcdir=$srcdir ;; 1668 *) # Relative name. 1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1670 ac_top_srcdir=$ac_top_build_prefix$srcdir 1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1672esac 1673ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1674 1675 cd "$ac_dir" || { ac_status=$?; continue; } 1676 # Check for guested configure. 1677 if test -f "$ac_srcdir/configure.gnu"; then 1678 echo && 1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1680 elif test -f "$ac_srcdir/configure"; then 1681 echo && 1682 $SHELL "$ac_srcdir/configure" --help=recursive 1683 else 1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1685 fi || ac_status=$? 1686 cd "$ac_pwd" || { ac_status=$?; break; } 1687 done 1688fi 1689 1690test -n "$ac_init_help" && exit $ac_status 1691if $ac_init_version; then 1692 cat <<\_ACEOF 1693gtkimageview configure 1.6.4 1694generated by GNU Autoconf 2.62 1695 1696Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16972002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1698This configure script is free software; the Free Software Foundation 1699gives unlimited permission to copy, distribute and modify it. 1700_ACEOF 1701 exit 1702fi 1703cat >config.log <<_ACEOF 1704This file contains any messages produced by compilers while 1705running configure, to aid debugging if configure makes a mistake. 1706 1707It was created by gtkimageview $as_me 1.6.4, which was 1708generated by GNU Autoconf 2.62. Invocation command line was 1709 1710 $ $0 $@ 1711 1712_ACEOF 1713exec 5>>config.log 1714{ 1715cat <<_ASUNAME 1716## --------- ## 1717## Platform. ## 1718## --------- ## 1719 1720hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1721uname -m = `(uname -m) 2>/dev/null || echo unknown` 1722uname -r = `(uname -r) 2>/dev/null || echo unknown` 1723uname -s = `(uname -s) 2>/dev/null || echo unknown` 1724uname -v = `(uname -v) 2>/dev/null || echo unknown` 1725 1726/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1727/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1728 1729/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1730/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1731/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1732/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1733/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1734/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1735/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1736 1737_ASUNAME 1738 1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1740for as_dir in $PATH 1741do 1742 IFS=$as_save_IFS 1743 test -z "$as_dir" && as_dir=. 1744 $as_echo "PATH: $as_dir" 1745done 1746IFS=$as_save_IFS 1747 1748} >&5 1749 1750cat >&5 <<_ACEOF 1751 1752 1753## ----------- ## 1754## Core tests. ## 1755## ----------- ## 1756 1757_ACEOF 1758 1759 1760# Keep a trace of the command line. 1761# Strip out --no-create and --no-recursion so they do not pile up. 1762# Strip out --silent because we don't want to record it for future runs. 1763# Also quote any args containing shell meta-characters. 1764# Make two passes to allow for proper duplicate-argument suppression. 1765ac_configure_args= 1766ac_configure_args0= 1767ac_configure_args1= 1768ac_must_keep_next=false 1769for ac_pass in 1 2 1770do 1771 for ac_arg 1772 do 1773 case $ac_arg in 1774 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1776 | -silent | --silent | --silen | --sile | --sil) 1777 continue ;; 1778 *\'*) 1779 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1780 esac 1781 case $ac_pass in 1782 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1783 2) 1784 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1785 if test $ac_must_keep_next = true; then 1786 ac_must_keep_next=false # Got value, back to normal. 1787 else 1788 case $ac_arg in 1789 *=* | --config-cache | -C | -disable-* | --disable-* \ 1790 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1791 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1792 | -with-* | --with-* | -without-* | --without-* | --x) 1793 case "$ac_configure_args0 " in 1794 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1795 esac 1796 ;; 1797 -* ) ac_must_keep_next=true ;; 1798 esac 1799 fi 1800 ac_configure_args="$ac_configure_args '$ac_arg'" 1801 ;; 1802 esac 1803 done 1804done 1805$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1806$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1807 1808# When interrupted or exit'd, cleanup temporary files, and complete 1809# config.log. We remove comments because anyway the quotes in there 1810# would cause problems or look ugly. 1811# WARNING: Use '\'' to represent an apostrophe within the trap. 1812# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1813trap 'exit_status=$? 1814 # Save into config.log some information that might help in debugging. 1815 { 1816 echo 1817 1818 cat <<\_ASBOX 1819## ---------------- ## 1820## Cache variables. ## 1821## ---------------- ## 1822_ASBOX 1823 echo 1824 # The following way of writing the cache mishandles newlines in values, 1825( 1826 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1827 eval ac_val=\$$ac_var 1828 case $ac_val in #( 1829 *${as_nl}*) 1830 case $ac_var in #( 1831 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1832$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1833 esac 1834 case $ac_var in #( 1835 _ | IFS | as_nl) ;; #( 1836 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1837 *) $as_unset $ac_var ;; 1838 esac ;; 1839 esac 1840 done 1841 (set) 2>&1 | 1842 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1843 *${as_nl}ac_space=\ *) 1844 sed -n \ 1845 "s/'\''/'\''\\\\'\'''\''/g; 1846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1847 ;; #( 1848 *) 1849 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1850 ;; 1851 esac | 1852 sort 1853) 1854 echo 1855 1856 cat <<\_ASBOX 1857## ----------------- ## 1858## Output variables. ## 1859## ----------------- ## 1860_ASBOX 1861 echo 1862 for ac_var in $ac_subst_vars 1863 do 1864 eval ac_val=\$$ac_var 1865 case $ac_val in 1866 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1867 esac 1868 $as_echo "$ac_var='\''$ac_val'\''" 1869 done | sort 1870 echo 1871 1872 if test -n "$ac_subst_files"; then 1873 cat <<\_ASBOX 1874## ------------------- ## 1875## File substitutions. ## 1876## ------------------- ## 1877_ASBOX 1878 echo 1879 for ac_var in $ac_subst_files 1880 do 1881 eval ac_val=\$$ac_var 1882 case $ac_val in 1883 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1884 esac 1885 $as_echo "$ac_var='\''$ac_val'\''" 1886 done | sort 1887 echo 1888 fi 1889 1890 if test -s confdefs.h; then 1891 cat <<\_ASBOX 1892## ----------- ## 1893## confdefs.h. ## 1894## ----------- ## 1895_ASBOX 1896 echo 1897 cat confdefs.h 1898 echo 1899 fi 1900 test "$ac_signal" != 0 && 1901 $as_echo "$as_me: caught signal $ac_signal" 1902 $as_echo "$as_me: exit $exit_status" 1903 } >&5 1904 rm -f core *.core core.conftest.* && 1905 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1906 exit $exit_status 1907' 0 1908for ac_signal in 1 2 13 15; do 1909 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1910done 1911ac_signal=0 1912 1913# confdefs.h avoids OS command line length limits that DEFS can exceed. 1914rm -f -r conftest* confdefs.h 1915 1916# Predefined preprocessor variables. 1917 1918cat >>confdefs.h <<_ACEOF 1919#define PACKAGE_NAME "$PACKAGE_NAME" 1920_ACEOF 1921 1922 1923cat >>confdefs.h <<_ACEOF 1924#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1925_ACEOF 1926 1927 1928cat >>confdefs.h <<_ACEOF 1929#define PACKAGE_VERSION "$PACKAGE_VERSION" 1930_ACEOF 1931 1932 1933cat >>confdefs.h <<_ACEOF 1934#define PACKAGE_STRING "$PACKAGE_STRING" 1935_ACEOF 1936 1937 1938cat >>confdefs.h <<_ACEOF 1939#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1940_ACEOF 1941 1942 1943# Let the site file select an alternate cache file if it wants to. 1944# Prefer an explicitly selected file to automatically selected ones. 1945ac_site_file1=NONE 1946ac_site_file2=NONE 1947if test -n "$CONFIG_SITE"; then 1948 ac_site_file1=$CONFIG_SITE 1949elif test "x$prefix" != xNONE; then 1950 ac_site_file1=$prefix/share/config.site 1951 ac_site_file2=$prefix/etc/config.site 1952else 1953 ac_site_file1=$ac_default_prefix/share/config.site 1954 ac_site_file2=$ac_default_prefix/etc/config.site 1955fi 1956for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1957do 1958 test "x$ac_site_file" = xNONE && continue 1959 if test -r "$ac_site_file"; then 1960 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1961$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1962 sed 's/^/| /' "$ac_site_file" >&5 1963 . "$ac_site_file" 1964 fi 1965done 1966 1967if test -r "$cache_file"; then 1968 # Some versions of bash will fail to source /dev/null (special 1969 # files actually), so we avoid doing that. 1970 if test -f "$cache_file"; then 1971 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1972$as_echo "$as_me: loading cache $cache_file" >&6;} 1973 case $cache_file in 1974 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1975 *) . "./$cache_file";; 1976 esac 1977 fi 1978else 1979 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1980$as_echo "$as_me: creating cache $cache_file" >&6;} 1981 >$cache_file 1982fi 1983 1984# Check that the precious variables saved in the cache have kept the same 1985# value. 1986ac_cache_corrupted=false 1987for ac_var in $ac_precious_vars; do 1988 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1989 eval ac_new_set=\$ac_env_${ac_var}_set 1990 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1991 eval ac_new_val=\$ac_env_${ac_var}_value 1992 case $ac_old_set,$ac_new_set in 1993 set,) 1994 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1995$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1996 ac_cache_corrupted=: ;; 1997 ,set) 1998 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1999$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2000 ac_cache_corrupted=: ;; 2001 ,);; 2002 *) 2003 if test "x$ac_old_val" != "x$ac_new_val"; then 2004 # differences in whitespace do not lead to failure. 2005 ac_old_val_w=`echo x $ac_old_val` 2006 ac_new_val_w=`echo x $ac_new_val` 2007 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2008 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2009$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2010 ac_cache_corrupted=: 2011 else 2012 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2013$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2014 eval $ac_var=\$ac_old_val 2015 fi 2016 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2017$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2018 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2019$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2020 fi;; 2021 esac 2022 # Pass precious variables to config.status. 2023 if test "$ac_new_set" = set; then 2024 case $ac_new_val in 2025 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2026 *) ac_arg=$ac_var=$ac_new_val ;; 2027 esac 2028 case " $ac_configure_args " in 2029 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2030 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2031 esac 2032 fi 2033done 2034if $ac_cache_corrupted; then 2035 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2036$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2037 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2038$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2039 { (exit 1); exit 1; }; } 2040fi 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066ac_ext=c 2067ac_cpp='$CPP $CPPFLAGS' 2068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2070ac_compiler_gnu=$ac_cv_c_compiler_gnu 2071 2072 2073 2074 2075# foreign makes it so I don't need stupid NEWS, INSTALL, etc files. 2076am__api_version='1.10' 2077 2078ac_aux_dir= 2079for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2080 if test -f "$ac_dir/install-sh"; then 2081 ac_aux_dir=$ac_dir 2082 ac_install_sh="$ac_aux_dir/install-sh -c" 2083 break 2084 elif test -f "$ac_dir/install.sh"; then 2085 ac_aux_dir=$ac_dir 2086 ac_install_sh="$ac_aux_dir/install.sh -c" 2087 break 2088 elif test -f "$ac_dir/shtool"; then 2089 ac_aux_dir=$ac_dir 2090 ac_install_sh="$ac_aux_dir/shtool install -c" 2091 break 2092 fi 2093done 2094if test -z "$ac_aux_dir"; then 2095 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2096$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2097 { (exit 1); exit 1; }; } 2098fi 2099 2100# These three variables are undocumented and unsupported, 2101# and are intended to be withdrawn in a future Autoconf release. 2102# They can cause serious problems if a builder's source tree is in a directory 2103# whose full name contains unusual characters. 2104ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2105ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2106ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2107 2108 2109# Find a good install program. We prefer a C program (faster), 2110# so one script is as good as another. But avoid the broken or 2111# incompatible versions: 2112# SysV /etc/install, /usr/sbin/install 2113# SunOS /usr/etc/install 2114# IRIX /sbin/install 2115# AIX /bin/install 2116# AmigaOS /C/install, which installs bootblocks on floppy discs 2117# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2118# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2119# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2120# OS/2's system install, which has a completely different semantic 2121# ./install, which can be erroneously created by make from ./install.sh. 2122# Reject install programs that cannot install multiple files. 2123{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2124$as_echo_n "checking for a BSD-compatible install... " >&6; } 2125if test -z "$INSTALL"; then 2126if test "${ac_cv_path_install+set}" = set; then 2127 $as_echo_n "(cached) " >&6 2128else 2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2130for as_dir in $PATH 2131do 2132 IFS=$as_save_IFS 2133 test -z "$as_dir" && as_dir=. 2134 # Account for people who put trailing slashes in PATH elements. 2135case $as_dir/ in 2136 ./ | .// | /cC/* | \ 2137 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2138 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2139 /usr/ucb/* ) ;; 2140 *) 2141 # OSF1 and SCO ODT 3.0 have their own names for install. 2142 # Don't use installbsd from OSF since it installs stuff as root 2143 # by default. 2144 for ac_prog in ginstall scoinst install; do 2145 for ac_exec_ext in '' $ac_executable_extensions; do 2146 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2147 if test $ac_prog = install && 2148 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2149 # AIX install. It has an incompatible calling convention. 2150 : 2151 elif test $ac_prog = install && 2152 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2153 # program-specific install script used by HP pwplus--don't use. 2154 : 2155 else 2156 rm -rf conftest.one conftest.two conftest.dir 2157 echo one > conftest.one 2158 echo two > conftest.two 2159 mkdir conftest.dir 2160 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2161 test -s conftest.one && test -s conftest.two && 2162 test -s conftest.dir/conftest.one && 2163 test -s conftest.dir/conftest.two 2164 then 2165 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2166 break 3 2167 fi 2168 fi 2169 fi 2170 done 2171 done 2172 ;; 2173esac 2174 2175done 2176IFS=$as_save_IFS 2177 2178rm -rf conftest.one conftest.two conftest.dir 2179 2180fi 2181 if test "${ac_cv_path_install+set}" = set; then 2182 INSTALL=$ac_cv_path_install 2183 else 2184 # As a last resort, use the slow shell script. Don't cache a 2185 # value for INSTALL within a source directory, because that will 2186 # break other packages using the cache if that directory is 2187 # removed, or if the value is a relative name. 2188 INSTALL=$ac_install_sh 2189 fi 2190fi 2191{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2192$as_echo "$INSTALL" >&6; } 2193 2194# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2195# It thinks the first close brace ends the variable substitution. 2196test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2197 2198test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2199 2200test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2201 2202{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2203$as_echo_n "checking whether build environment is sane... " >&6; } 2204# Just in case 2205sleep 1 2206echo timestamp > conftest.file 2207# Do `set' in a subshell so we don't clobber the current shell's 2208# arguments. Must try -L first in case configure is actually a 2209# symlink; some systems play weird games with the mod time of symlinks 2210# (eg FreeBSD returns the mod time of the symlink's containing 2211# directory). 2212if ( 2213 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2214 if test "$*" = "X"; then 2215 # -L didn't work. 2216 set X `ls -t $srcdir/configure conftest.file` 2217 fi 2218 rm -f conftest.file 2219 if test "$*" != "X $srcdir/configure conftest.file" \ 2220 && test "$*" != "X conftest.file $srcdir/configure"; then 2221 2222 # If neither matched, then we have a broken ls. This can happen 2223 # if, for instance, CONFIG_SHELL is bash and it inherits a 2224 # broken ls alias from the environment. This has actually 2225 # happened. Such a system could not be considered "sane". 2226 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2227alias in your environment" >&5 2228$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2229alias in your environment" >&2;} 2230 { (exit 1); exit 1; }; } 2231 fi 2232 2233 test "$2" = conftest.file 2234 ) 2235then 2236 # Ok. 2237 : 2238else 2239 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2240Check your system clock" >&5 2241$as_echo "$as_me: error: newly created file is older than distributed files! 2242Check your system clock" >&2;} 2243 { (exit 1); exit 1; }; } 2244fi 2245{ $as_echo "$as_me:$LINENO: result: yes" >&5 2246$as_echo "yes" >&6; } 2247test "$program_prefix" != NONE && 2248 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2249# Use a double $ so make ignores it. 2250test "$program_suffix" != NONE && 2251 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2252# Double any \ or $. 2253# By default was `s,x,x', remove it if useless. 2254ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2255program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2256 2257# expand $ac_aux_dir to an absolute path 2258am_aux_dir=`cd $ac_aux_dir && pwd` 2259 2260test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2261# Use eval to expand $SHELL 2262if eval "$MISSING --run true"; then 2263 am_missing_run="$MISSING --run " 2264else 2265 am_missing_run= 2266 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2267$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2268fi 2269 2270{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2271$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2272if test -z "$MKDIR_P"; then 2273 if test "${ac_cv_path_mkdir+set}" = set; then 2274 $as_echo_n "(cached) " >&6 2275else 2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2277for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2278do 2279 IFS=$as_save_IFS 2280 test -z "$as_dir" && as_dir=. 2281 for ac_prog in mkdir gmkdir; do 2282 for ac_exec_ext in '' $ac_executable_extensions; do 2283 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2284 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2285 'mkdir (GNU coreutils) '* | \ 2286 'mkdir (coreutils) '* | \ 2287 'mkdir (fileutils) '4.1*) 2288 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2289 break 3;; 2290 esac 2291 done 2292 done 2293done 2294IFS=$as_save_IFS 2295 2296fi 2297 2298 if test "${ac_cv_path_mkdir+set}" = set; then 2299 MKDIR_P="$ac_cv_path_mkdir -p" 2300 else 2301 # As a last resort, use the slow shell script. Don't cache a 2302 # value for MKDIR_P within a source directory, because that will 2303 # break other packages using the cache if that directory is 2304 # removed, or if the value is a relative name. 2305 test -d ./--version && rmdir ./--version 2306 MKDIR_P="$ac_install_sh -d" 2307 fi 2308fi 2309{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2310$as_echo "$MKDIR_P" >&6; } 2311 2312mkdir_p="$MKDIR_P" 2313case $mkdir_p in 2314 [\\/$]* | ?:[\\/]*) ;; 2315 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2316esac 2317 2318for ac_prog in gawk mawk nawk awk 2319do 2320 # Extract the first word of "$ac_prog", so it can be a program name with args. 2321set dummy $ac_prog; ac_word=$2 2322{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2323$as_echo_n "checking for $ac_word... " >&6; } 2324if test "${ac_cv_prog_AWK+set}" = set; then 2325 $as_echo_n "(cached) " >&6 2326else 2327 if test -n "$AWK"; then 2328 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2329else 2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2331for as_dir in $PATH 2332do 2333 IFS=$as_save_IFS 2334 test -z "$as_dir" && as_dir=. 2335 for ac_exec_ext in '' $ac_executable_extensions; do 2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2337 ac_cv_prog_AWK="$ac_prog" 2338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2339 break 2 2340 fi 2341done 2342done 2343IFS=$as_save_IFS 2344 2345fi 2346fi 2347AWK=$ac_cv_prog_AWK 2348if test -n "$AWK"; then 2349 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2350$as_echo "$AWK" >&6; } 2351else 2352 { $as_echo "$as_me:$LINENO: result: no" >&5 2353$as_echo "no" >&6; } 2354fi 2355 2356 2357 test -n "$AWK" && break 2358done 2359 2360{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2361$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2362set x ${MAKE-make} 2363ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2364if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2365 $as_echo_n "(cached) " >&6 2366else 2367 cat >conftest.make <<\_ACEOF 2368SHELL = /bin/sh 2369all: 2370 @echo '@@@%%%=$(MAKE)=@@@%%%' 2371_ACEOF 2372# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2373case `${MAKE-make} -f conftest.make 2>/dev/null` in 2374 *@@@%%%=?*=@@@%%%*) 2375 eval ac_cv_prog_make_${ac_make}_set=yes;; 2376 *) 2377 eval ac_cv_prog_make_${ac_make}_set=no;; 2378esac 2379rm -f conftest.make 2380fi 2381if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2382 { $as_echo "$as_me:$LINENO: result: yes" >&5 2383$as_echo "yes" >&6; } 2384 SET_MAKE= 2385else 2386 { $as_echo "$as_me:$LINENO: result: no" >&5 2387$as_echo "no" >&6; } 2388 SET_MAKE="MAKE=${MAKE-make}" 2389fi 2390 2391rm -rf .tst 2>/dev/null 2392mkdir .tst 2>/dev/null 2393if test -d .tst; then 2394 am__leading_dot=. 2395else 2396 am__leading_dot=_ 2397fi 2398rmdir .tst 2>/dev/null 2399 2400if test "`cd $srcdir && pwd`" != "`pwd`"; then 2401 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2402 # is not polluted with repeated "-I." 2403 am__isrc=' -I$(srcdir)' 2404 # test to see if srcdir already configured 2405 if test -f $srcdir/config.status; then 2406 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2407$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2408 { (exit 1); exit 1; }; } 2409 fi 2410fi 2411 2412# test whether we have cygpath 2413if test -z "$CYGPATH_W"; then 2414 if (cygpath --version) >/dev/null 2>/dev/null; then 2415 CYGPATH_W='cygpath -w' 2416 else 2417 CYGPATH_W=echo 2418 fi 2419fi 2420 2421 2422# Define the identity of the package. 2423 PACKAGE='gtkimageview' 2424 VERSION='1.6.4' 2425 2426 2427cat >>confdefs.h <<_ACEOF 2428#define PACKAGE "$PACKAGE" 2429_ACEOF 2430 2431 2432cat >>confdefs.h <<_ACEOF 2433#define VERSION "$VERSION" 2434_ACEOF 2435 2436# Some tools Automake needs. 2437 2438ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2439 2440 2441AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2442 2443 2444AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2445 2446 2447AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2448 2449 2450MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2451 2452install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2453 2454# Installed binaries are usually stripped using `strip' when the user 2455# run `make install-strip'. However `strip' might not be the right 2456# tool to use in cross-compilation environments, therefore Automake 2457# will honor the `STRIP' environment variable to overrule this program. 2458if test "$cross_compiling" != no; then 2459 if test -n "$ac_tool_prefix"; then 2460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2461set dummy ${ac_tool_prefix}strip; ac_word=$2 2462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2463$as_echo_n "checking for $ac_word... " >&6; } 2464if test "${ac_cv_prog_STRIP+set}" = set; then 2465 $as_echo_n "(cached) " >&6 2466else 2467 if test -n "$STRIP"; then 2468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2469else 2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2471for as_dir in $PATH 2472do 2473 IFS=$as_save_IFS 2474 test -z "$as_dir" && as_dir=. 2475 for ac_exec_ext in '' $ac_executable_extensions; do 2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2477 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2479 break 2 2480 fi 2481done 2482done 2483IFS=$as_save_IFS 2484 2485fi 2486fi 2487STRIP=$ac_cv_prog_STRIP 2488if test -n "$STRIP"; then 2489 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2490$as_echo "$STRIP" >&6; } 2491else 2492 { $as_echo "$as_me:$LINENO: result: no" >&5 2493$as_echo "no" >&6; } 2494fi 2495 2496 2497fi 2498if test -z "$ac_cv_prog_STRIP"; then 2499 ac_ct_STRIP=$STRIP 2500 # Extract the first word of "strip", so it can be a program name with args. 2501set dummy strip; ac_word=$2 2502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2503$as_echo_n "checking for $ac_word... " >&6; } 2504if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2505 $as_echo_n "(cached) " >&6 2506else 2507 if test -n "$ac_ct_STRIP"; then 2508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2509else 2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2511for as_dir in $PATH 2512do 2513 IFS=$as_save_IFS 2514 test -z "$as_dir" && as_dir=. 2515 for ac_exec_ext in '' $ac_executable_extensions; do 2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2517 ac_cv_prog_ac_ct_STRIP="strip" 2518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2519 break 2 2520 fi 2521done 2522done 2523IFS=$as_save_IFS 2524 2525fi 2526fi 2527ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2528if test -n "$ac_ct_STRIP"; then 2529 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2530$as_echo "$ac_ct_STRIP" >&6; } 2531else 2532 { $as_echo "$as_me:$LINENO: result: no" >&5 2533$as_echo "no" >&6; } 2534fi 2535 2536 if test "x$ac_ct_STRIP" = x; then 2537 STRIP=":" 2538 else 2539 case $cross_compiling:$ac_tool_warned in 2540yes:) 2541{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2542whose name does not start with the host triplet. If you think this 2543configuration is useful to you, please write to autoconf@gnu.org." >&5 2544$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2545whose name does not start with the host triplet. If you think this 2546configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2547ac_tool_warned=yes ;; 2548esac 2549 STRIP=$ac_ct_STRIP 2550 fi 2551else 2552 STRIP="$ac_cv_prog_STRIP" 2553fi 2554 2555fi 2556INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2557 2558# We need awk for the "check" target. The system "awk" is bad on 2559# some platforms. 2560# Always define AMTAR for backward compatibility. 2561 2562AMTAR=${AMTAR-"${am_missing_run}tar"} 2563 2564am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2565 2566 2567 2568 2569 2570 2571###################################################################### 2572##### Check for different programs ################################### 2573###################################################################### 2574 2575ac_ext=c 2576ac_cpp='$CPP $CPPFLAGS' 2577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2579ac_compiler_gnu=$ac_cv_c_compiler_gnu 2580if test -n "$ac_tool_prefix"; then 2581 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2582set dummy ${ac_tool_prefix}gcc; ac_word=$2 2583{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2584$as_echo_n "checking for $ac_word... " >&6; } 2585if test "${ac_cv_prog_CC+set}" = set; then 2586 $as_echo_n "(cached) " >&6 2587else 2588 if test -n "$CC"; then 2589 ac_cv_prog_CC="$CC" # Let the user override the test. 2590else 2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2592for as_dir in $PATH 2593do 2594 IFS=$as_save_IFS 2595 test -z "$as_dir" && as_dir=. 2596 for ac_exec_ext in '' $ac_executable_extensions; do 2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2598 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2600 break 2 2601 fi 2602done 2603done 2604IFS=$as_save_IFS 2605 2606fi 2607fi 2608CC=$ac_cv_prog_CC 2609if test -n "$CC"; then 2610 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2611$as_echo "$CC" >&6; } 2612else 2613 { $as_echo "$as_me:$LINENO: result: no" >&5 2614$as_echo "no" >&6; } 2615fi 2616 2617 2618fi 2619if test -z "$ac_cv_prog_CC"; then 2620 ac_ct_CC=$CC 2621 # Extract the first word of "gcc", so it can be a program name with args. 2622set dummy gcc; ac_word=$2 2623{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2624$as_echo_n "checking for $ac_word... " >&6; } 2625if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2626 $as_echo_n "(cached) " >&6 2627else 2628 if test -n "$ac_ct_CC"; then 2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2630else 2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2632for as_dir in $PATH 2633do 2634 IFS=$as_save_IFS 2635 test -z "$as_dir" && as_dir=. 2636 for ac_exec_ext in '' $ac_executable_extensions; do 2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2638 ac_cv_prog_ac_ct_CC="gcc" 2639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2640 break 2 2641 fi 2642done 2643done 2644IFS=$as_save_IFS 2645 2646fi 2647fi 2648ac_ct_CC=$ac_cv_prog_ac_ct_CC 2649if test -n "$ac_ct_CC"; then 2650 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2651$as_echo "$ac_ct_CC" >&6; } 2652else 2653 { $as_echo "$as_me:$LINENO: result: no" >&5 2654$as_echo "no" >&6; } 2655fi 2656 2657 if test "x$ac_ct_CC" = x; then 2658 CC="" 2659 else 2660 case $cross_compiling:$ac_tool_warned in 2661yes:) 2662{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2663whose name does not start with the host triplet. If you think this 2664configuration is useful to you, please write to autoconf@gnu.org." >&5 2665$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2666whose name does not start with the host triplet. If you think this 2667configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2668ac_tool_warned=yes ;; 2669esac 2670 CC=$ac_ct_CC 2671 fi 2672else 2673 CC="$ac_cv_prog_CC" 2674fi 2675 2676if test -z "$CC"; then 2677 if test -n "$ac_tool_prefix"; then 2678 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2679set dummy ${ac_tool_prefix}cc; ac_word=$2 2680{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2681$as_echo_n "checking for $ac_word... " >&6; } 2682if test "${ac_cv_prog_CC+set}" = set; then 2683 $as_echo_n "(cached) " >&6 2684else 2685 if test -n "$CC"; then 2686 ac_cv_prog_CC="$CC" # Let the user override the test. 2687else 2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2689for as_dir in $PATH 2690do 2691 IFS=$as_save_IFS 2692 test -z "$as_dir" && as_dir=. 2693 for ac_exec_ext in '' $ac_executable_extensions; do 2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2695 ac_cv_prog_CC="${ac_tool_prefix}cc" 2696 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2697 break 2 2698 fi 2699done 2700done 2701IFS=$as_save_IFS 2702 2703fi 2704fi 2705CC=$ac_cv_prog_CC 2706if test -n "$CC"; then 2707 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2708$as_echo "$CC" >&6; } 2709else 2710 { $as_echo "$as_me:$LINENO: result: no" >&5 2711$as_echo "no" >&6; } 2712fi 2713 2714 2715 fi 2716fi 2717if test -z "$CC"; then 2718 # Extract the first word of "cc", so it can be a program name with args. 2719set dummy cc; ac_word=$2 2720{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2721$as_echo_n "checking for $ac_word... " >&6; } 2722if test "${ac_cv_prog_CC+set}" = set; then 2723 $as_echo_n "(cached) " >&6 2724else 2725 if test -n "$CC"; then 2726 ac_cv_prog_CC="$CC" # Let the user override the test. 2727else 2728 ac_prog_rejected=no 2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2730for as_dir in $PATH 2731do 2732 IFS=$as_save_IFS 2733 test -z "$as_dir" && as_dir=. 2734 for ac_exec_ext in '' $ac_executable_extensions; do 2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2736 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2737 ac_prog_rejected=yes 2738 continue 2739 fi 2740 ac_cv_prog_CC="cc" 2741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2742 break 2 2743 fi 2744done 2745done 2746IFS=$as_save_IFS 2747 2748if test $ac_prog_rejected = yes; then 2749 # We found a bogon in the path, so make sure we never use it. 2750 set dummy $ac_cv_prog_CC 2751 shift 2752 if test $# != 0; then 2753 # We chose a different compiler from the bogus one. 2754 # However, it has the same basename, so the bogon will be chosen 2755 # first if we set CC to just the basename; use the full file name. 2756 shift 2757 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2758 fi 2759fi 2760fi 2761fi 2762CC=$ac_cv_prog_CC 2763if test -n "$CC"; then 2764 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2765$as_echo "$CC" >&6; } 2766else 2767 { $as_echo "$as_me:$LINENO: result: no" >&5 2768$as_echo "no" >&6; } 2769fi 2770 2771 2772fi 2773if test -z "$CC"; then 2774 if test -n "$ac_tool_prefix"; then 2775 for ac_prog in cl.exe 2776 do 2777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2778set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2779{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2780$as_echo_n "checking for $ac_word... " >&6; } 2781if test "${ac_cv_prog_CC+set}" = set; then 2782 $as_echo_n "(cached) " >&6 2783else 2784 if test -n "$CC"; then 2785 ac_cv_prog_CC="$CC" # Let the user override the test. 2786else 2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2788for as_dir in $PATH 2789do 2790 IFS=$as_save_IFS 2791 test -z "$as_dir" && as_dir=. 2792 for ac_exec_ext in '' $ac_executable_extensions; do 2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2794 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2796 break 2 2797 fi 2798done 2799done 2800IFS=$as_save_IFS 2801 2802fi 2803fi 2804CC=$ac_cv_prog_CC 2805if test -n "$CC"; then 2806 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2807$as_echo "$CC" >&6; } 2808else 2809 { $as_echo "$as_me:$LINENO: result: no" >&5 2810$as_echo "no" >&6; } 2811fi 2812 2813 2814 test -n "$CC" && break 2815 done 2816fi 2817if test -z "$CC"; then 2818 ac_ct_CC=$CC 2819 for ac_prog in cl.exe 2820do 2821 # Extract the first word of "$ac_prog", so it can be a program name with args. 2822set dummy $ac_prog; ac_word=$2 2823{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2824$as_echo_n "checking for $ac_word... " >&6; } 2825if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2826 $as_echo_n "(cached) " >&6 2827else 2828 if test -n "$ac_ct_CC"; then 2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2830else 2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2832for as_dir in $PATH 2833do 2834 IFS=$as_save_IFS 2835 test -z "$as_dir" && as_dir=. 2836 for ac_exec_ext in '' $ac_executable_extensions; do 2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2838 ac_cv_prog_ac_ct_CC="$ac_prog" 2839 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2840 break 2 2841 fi 2842done 2843done 2844IFS=$as_save_IFS 2845 2846fi 2847fi 2848ac_ct_CC=$ac_cv_prog_ac_ct_CC 2849if test -n "$ac_ct_CC"; then 2850 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2851$as_echo "$ac_ct_CC" >&6; } 2852else 2853 { $as_echo "$as_me:$LINENO: result: no" >&5 2854$as_echo "no" >&6; } 2855fi 2856 2857 2858 test -n "$ac_ct_CC" && break 2859done 2860 2861 if test "x$ac_ct_CC" = x; then 2862 CC="" 2863 else 2864 case $cross_compiling:$ac_tool_warned in 2865yes:) 2866{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2867whose name does not start with the host triplet. If you think this 2868configuration is useful to you, please write to autoconf@gnu.org." >&5 2869$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2870whose name does not start with the host triplet. If you think this 2871configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2872ac_tool_warned=yes ;; 2873esac 2874 CC=$ac_ct_CC 2875 fi 2876fi 2877 2878fi 2879 2880 2881test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2882See \`config.log' for more details." >&5 2883$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2884See \`config.log' for more details." >&2;} 2885 { (exit 1); exit 1; }; } 2886 2887# Provide some information about the compiler. 2888$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2889set X $ac_compile 2890ac_compiler=$2 2891{ (ac_try="$ac_compiler --version >&5" 2892case "(($ac_try" in 2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2894 *) ac_try_echo=$ac_try;; 2895esac 2896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2897$as_echo "$ac_try_echo") >&5 2898 (eval "$ac_compiler --version >&5") 2>&5 2899 ac_status=$? 2900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2901 (exit $ac_status); } 2902{ (ac_try="$ac_compiler -v >&5" 2903case "(($ac_try" in 2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2905 *) ac_try_echo=$ac_try;; 2906esac 2907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2908$as_echo "$ac_try_echo") >&5 2909 (eval "$ac_compiler -v >&5") 2>&5 2910 ac_status=$? 2911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2912 (exit $ac_status); } 2913{ (ac_try="$ac_compiler -V >&5" 2914case "(($ac_try" in 2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2916 *) ac_try_echo=$ac_try;; 2917esac 2918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2919$as_echo "$ac_try_echo") >&5 2920 (eval "$ac_compiler -V >&5") 2>&5 2921 ac_status=$? 2922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2923 (exit $ac_status); } 2924 2925cat >conftest.$ac_ext <<_ACEOF 2926/* confdefs.h. */ 2927_ACEOF 2928cat confdefs.h >>conftest.$ac_ext 2929cat >>conftest.$ac_ext <<_ACEOF 2930/* end confdefs.h. */ 2931 2932int 2933main () 2934{ 2935 2936 ; 2937 return 0; 2938} 2939_ACEOF 2940ac_clean_files_save=$ac_clean_files 2941ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2942# Try to create an executable without -o first, disregard a.out. 2943# It will help us diagnose broken compilers, and finding out an intuition 2944# of exeext. 2945{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2946$as_echo_n "checking for C compiler default output file name... " >&6; } 2947ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2948 2949# The possible output files: 2950ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2951 2952ac_rmfiles= 2953for ac_file in $ac_files 2954do 2955 case $ac_file in 2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2957 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2958 esac 2959done 2960rm -f $ac_rmfiles 2961 2962if { (ac_try="$ac_link_default" 2963case "(($ac_try" in 2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2965 *) ac_try_echo=$ac_try;; 2966esac 2967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2968$as_echo "$ac_try_echo") >&5 2969 (eval "$ac_link_default") 2>&5 2970 ac_status=$? 2971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2972 (exit $ac_status); }; then 2973 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2974# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2975# in a Makefile. We should not override ac_cv_exeext if it was cached, 2976# so that the user can short-circuit this test for compilers unknown to 2977# Autoconf. 2978for ac_file in $ac_files '' 2979do 2980 test -f "$ac_file" || continue 2981 case $ac_file in 2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2983 ;; 2984 [ab].out ) 2985 # We found the default executable, but exeext='' is most 2986 # certainly right. 2987 break;; 2988 *.* ) 2989 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2990 then :; else 2991 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2992 fi 2993 # We set ac_cv_exeext here because the later test for it is not 2994 # safe: cross compilers may not add the suffix if given an `-o' 2995 # argument, so we may need to know it at that point already. 2996 # Even if this section looks crufty: it has the advantage of 2997 # actually working. 2998 break;; 2999 * ) 3000 break;; 3001 esac 3002done 3003test "$ac_cv_exeext" = no && ac_cv_exeext= 3004 3005else 3006 ac_file='' 3007fi 3008 3009{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3010$as_echo "$ac_file" >&6; } 3011if test -z "$ac_file"; then 3012 $as_echo "$as_me: failed program was:" >&5 3013sed 's/^/| /' conftest.$ac_ext >&5 3014 3015{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3016See \`config.log' for more details." >&5 3017$as_echo "$as_me: error: C compiler cannot create executables 3018See \`config.log' for more details." >&2;} 3019 { (exit 77); exit 77; }; } 3020fi 3021 3022ac_exeext=$ac_cv_exeext 3023 3024# Check that the compiler produces executables we can run. If not, either 3025# the compiler is broken, or we cross compile. 3026{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3027$as_echo_n "checking whether the C compiler works... " >&6; } 3028# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3029# If not cross compiling, check that we can run a simple program. 3030if test "$cross_compiling" != yes; then 3031 if { ac_try='./$ac_file' 3032 { (case "(($ac_try" in 3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3034 *) ac_try_echo=$ac_try;; 3035esac 3036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3037$as_echo "$ac_try_echo") >&5 3038 (eval "$ac_try") 2>&5 3039 ac_status=$? 3040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3041 (exit $ac_status); }; }; then 3042 cross_compiling=no 3043 else 3044 if test "$cross_compiling" = maybe; then 3045 cross_compiling=yes 3046 else 3047 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3048If you meant to cross compile, use \`--host'. 3049See \`config.log' for more details." >&5 3050$as_echo "$as_me: error: cannot run C compiled programs. 3051If you meant to cross compile, use \`--host'. 3052See \`config.log' for more details." >&2;} 3053 { (exit 1); exit 1; }; } 3054 fi 3055 fi 3056fi 3057{ $as_echo "$as_me:$LINENO: result: yes" >&5 3058$as_echo "yes" >&6; } 3059 3060rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3061ac_clean_files=$ac_clean_files_save 3062# Check that the compiler produces executables we can run. If not, either 3063# the compiler is broken, or we cross compile. 3064{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3065$as_echo_n "checking whether we are cross compiling... " >&6; } 3066{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3067$as_echo "$cross_compiling" >&6; } 3068 3069{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3070$as_echo_n "checking for suffix of executables... " >&6; } 3071if { (ac_try="$ac_link" 3072case "(($ac_try" in 3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3074 *) ac_try_echo=$ac_try;; 3075esac 3076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3077$as_echo "$ac_try_echo") >&5 3078 (eval "$ac_link") 2>&5 3079 ac_status=$? 3080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3081 (exit $ac_status); }; then 3082 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3083# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3084# work properly (i.e., refer to `conftest.exe'), while it won't with 3085# `rm'. 3086for ac_file in conftest.exe conftest conftest.*; do 3087 test -f "$ac_file" || continue 3088 case $ac_file in 3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3091 break;; 3092 * ) break;; 3093 esac 3094done 3095else 3096 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3097See \`config.log' for more details." >&5 3098$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3099See \`config.log' for more details." >&2;} 3100 { (exit 1); exit 1; }; } 3101fi 3102 3103rm -f conftest$ac_cv_exeext 3104{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3105$as_echo "$ac_cv_exeext" >&6; } 3106 3107rm -f conftest.$ac_ext 3108EXEEXT=$ac_cv_exeext 3109ac_exeext=$EXEEXT 3110{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3111$as_echo_n "checking for suffix of object files... " >&6; } 3112if test "${ac_cv_objext+set}" = set; then 3113 $as_echo_n "(cached) " >&6 3114else 3115 cat >conftest.$ac_ext <<_ACEOF 3116/* confdefs.h. */ 3117_ACEOF 3118cat confdefs.h >>conftest.$ac_ext 3119cat >>conftest.$ac_ext <<_ACEOF 3120/* end confdefs.h. */ 3121 3122int 3123main () 3124{ 3125 3126 ; 3127 return 0; 3128} 3129_ACEOF 3130rm -f conftest.o conftest.obj 3131if { (ac_try="$ac_compile" 3132case "(($ac_try" in 3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3134 *) ac_try_echo=$ac_try;; 3135esac 3136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3137$as_echo "$ac_try_echo") >&5 3138 (eval "$ac_compile") 2>&5 3139 ac_status=$? 3140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3141 (exit $ac_status); }; then 3142 for ac_file in conftest.o conftest.obj conftest.*; do 3143 test -f "$ac_file" || continue; 3144 case $ac_file in 3145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3146 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3147 break;; 3148 esac 3149done 3150else 3151 $as_echo "$as_me: failed program was:" >&5 3152sed 's/^/| /' conftest.$ac_ext >&5 3153 3154{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3155See \`config.log' for more details." >&5 3156$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3157See \`config.log' for more details." >&2;} 3158 { (exit 1); exit 1; }; } 3159fi 3160 3161rm -f conftest.$ac_cv_objext conftest.$ac_ext 3162fi 3163{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3164$as_echo "$ac_cv_objext" >&6; } 3165OBJEXT=$ac_cv_objext 3166ac_objext=$OBJEXT 3167{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3168$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3169if test "${ac_cv_c_compiler_gnu+set}" = set; then 3170 $as_echo_n "(cached) " >&6 3171else 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#ifndef __GNUC__ 3183 choke me 3184#endif 3185 3186 ; 3187 return 0; 3188} 3189_ACEOF 3190rm -f conftest.$ac_objext 3191if { (ac_try="$ac_compile" 3192case "(($ac_try" in 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3194 *) ac_try_echo=$ac_try;; 3195esac 3196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3197$as_echo "$ac_try_echo") >&5 3198 (eval "$ac_compile") 2>conftest.er1 3199 ac_status=$? 3200 grep -v '^ *+' conftest.er1 >conftest.err 3201 rm -f conftest.er1 3202 cat conftest.err >&5 3203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3204 (exit $ac_status); } && { 3205 test -z "$ac_c_werror_flag" || 3206 test ! -s conftest.err 3207 } && test -s conftest.$ac_objext; then 3208 ac_compiler_gnu=yes 3209else 3210 $as_echo "$as_me: failed program was:" >&5 3211sed 's/^/| /' conftest.$ac_ext >&5 3212 3213 ac_compiler_gnu=no 3214fi 3215 3216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3217ac_cv_c_compiler_gnu=$ac_compiler_gnu 3218 3219fi 3220{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3221$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3222if test $ac_compiler_gnu = yes; then 3223 GCC=yes 3224else 3225 GCC= 3226fi 3227ac_test_CFLAGS=${CFLAGS+set} 3228ac_save_CFLAGS=$CFLAGS 3229{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3230$as_echo_n "checking whether $CC accepts -g... " >&6; } 3231if test "${ac_cv_prog_cc_g+set}" = set; then 3232 $as_echo_n "(cached) " >&6 3233else 3234 ac_save_c_werror_flag=$ac_c_werror_flag 3235 ac_c_werror_flag=yes 3236 ac_cv_prog_cc_g=no 3237 CFLAGS="-g" 3238 cat >conftest.$ac_ext <<_ACEOF 3239/* confdefs.h. */ 3240_ACEOF 3241cat confdefs.h >>conftest.$ac_ext 3242cat >>conftest.$ac_ext <<_ACEOF 3243/* end confdefs.h. */ 3244 3245int 3246main () 3247{ 3248 3249 ; 3250 return 0; 3251} 3252_ACEOF 3253rm -f conftest.$ac_objext 3254if { (ac_try="$ac_compile" 3255case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258esac 3259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3260$as_echo "$ac_try_echo") >&5 3261 (eval "$ac_compile") 2>conftest.er1 3262 ac_status=$? 3263 grep -v '^ *+' conftest.er1 >conftest.err 3264 rm -f conftest.er1 3265 cat conftest.err >&5 3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3267 (exit $ac_status); } && { 3268 test -z "$ac_c_werror_flag" || 3269 test ! -s conftest.err 3270 } && test -s conftest.$ac_objext; then 3271 ac_cv_prog_cc_g=yes 3272else 3273 $as_echo "$as_me: failed program was:" >&5 3274sed 's/^/| /' conftest.$ac_ext >&5 3275 3276 CFLAGS="" 3277 cat >conftest.$ac_ext <<_ACEOF 3278/* confdefs.h. */ 3279_ACEOF 3280cat confdefs.h >>conftest.$ac_ext 3281cat >>conftest.$ac_ext <<_ACEOF 3282/* end confdefs.h. */ 3283 3284int 3285main () 3286{ 3287 3288 ; 3289 return 0; 3290} 3291_ACEOF 3292rm -f conftest.$ac_objext 3293if { (ac_try="$ac_compile" 3294case "(($ac_try" in 3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3296 *) ac_try_echo=$ac_try;; 3297esac 3298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3299$as_echo "$ac_try_echo") >&5 3300 (eval "$ac_compile") 2>conftest.er1 3301 ac_status=$? 3302 grep -v '^ *+' conftest.er1 >conftest.err 3303 rm -f conftest.er1 3304 cat conftest.err >&5 3305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3306 (exit $ac_status); } && { 3307 test -z "$ac_c_werror_flag" || 3308 test ! -s conftest.err 3309 } && test -s conftest.$ac_objext; then 3310 : 3311else 3312 $as_echo "$as_me: failed program was:" >&5 3313sed 's/^/| /' conftest.$ac_ext >&5 3314 3315 ac_c_werror_flag=$ac_save_c_werror_flag 3316 CFLAGS="-g" 3317 cat >conftest.$ac_ext <<_ACEOF 3318/* confdefs.h. */ 3319_ACEOF 3320cat confdefs.h >>conftest.$ac_ext 3321cat >>conftest.$ac_ext <<_ACEOF 3322/* end confdefs.h. */ 3323 3324int 3325main () 3326{ 3327 3328 ; 3329 return 0; 3330} 3331_ACEOF 3332rm -f conftest.$ac_objext 3333if { (ac_try="$ac_compile" 3334case "(($ac_try" in 3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3336 *) ac_try_echo=$ac_try;; 3337esac 3338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3339$as_echo "$ac_try_echo") >&5 3340 (eval "$ac_compile") 2>conftest.er1 3341 ac_status=$? 3342 grep -v '^ *+' conftest.er1 >conftest.err 3343 rm -f conftest.er1 3344 cat conftest.err >&5 3345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3346 (exit $ac_status); } && { 3347 test -z "$ac_c_werror_flag" || 3348 test ! -s conftest.err 3349 } && test -s conftest.$ac_objext; then 3350 ac_cv_prog_cc_g=yes 3351else 3352 $as_echo "$as_me: failed program was:" >&5 3353sed 's/^/| /' conftest.$ac_ext >&5 3354 3355 3356fi 3357 3358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3359fi 3360 3361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3362fi 3363 3364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3365 ac_c_werror_flag=$ac_save_c_werror_flag 3366fi 3367{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3368$as_echo "$ac_cv_prog_cc_g" >&6; } 3369if test "$ac_test_CFLAGS" = set; then 3370 CFLAGS=$ac_save_CFLAGS 3371elif test $ac_cv_prog_cc_g = yes; then 3372 if test "$GCC" = yes; then 3373 CFLAGS="-g -O2" 3374 else 3375 CFLAGS="-g" 3376 fi 3377else 3378 if test "$GCC" = yes; then 3379 CFLAGS="-O2" 3380 else 3381 CFLAGS= 3382 fi 3383fi 3384{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3385$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3386if test "${ac_cv_prog_cc_c89+set}" = set; then 3387 $as_echo_n "(cached) " >&6 3388else 3389 ac_cv_prog_cc_c89=no 3390ac_save_CC=$CC 3391cat >conftest.$ac_ext <<_ACEOF 3392/* confdefs.h. */ 3393_ACEOF 3394cat confdefs.h >>conftest.$ac_ext 3395cat >>conftest.$ac_ext <<_ACEOF 3396/* end confdefs.h. */ 3397#include <stdarg.h> 3398#include <stdio.h> 3399#include <sys/types.h> 3400#include <sys/stat.h> 3401/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3402struct buf { int x; }; 3403FILE * (*rcsopen) (struct buf *, struct stat *, int); 3404static char *e (p, i) 3405 char **p; 3406 int i; 3407{ 3408 return p[i]; 3409} 3410static char *f (char * (*g) (char **, int), char **p, ...) 3411{ 3412 char *s; 3413 va_list v; 3414 va_start (v,p); 3415 s = g (p, va_arg (v,int)); 3416 va_end (v); 3417 return s; 3418} 3419 3420/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3421 function prototypes and stuff, but not '\xHH' hex character constants. 3422 These don't provoke an error unfortunately, instead are silently treated 3423 as 'x'. The following induces an error, until -std is added to get 3424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3425 array size at least. It's necessary to write '\x00'==0 to get something 3426 that's true only with -std. */ 3427int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3428 3429/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3430 inside strings and character constants. */ 3431#define FOO(x) 'x' 3432int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3433 3434int test (int i, double x); 3435struct s1 {int (*f) (int a);}; 3436struct s2 {int (*f) (double a);}; 3437int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3438int argc; 3439char **argv; 3440int 3441main () 3442{ 3443return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3444 ; 3445 return 0; 3446} 3447_ACEOF 3448for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3449 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3450do 3451 CC="$ac_save_CC $ac_arg" 3452 rm -f conftest.$ac_objext 3453if { (ac_try="$ac_compile" 3454case "(($ac_try" in 3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3456 *) ac_try_echo=$ac_try;; 3457esac 3458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3459$as_echo "$ac_try_echo") >&5 3460 (eval "$ac_compile") 2>conftest.er1 3461 ac_status=$? 3462 grep -v '^ *+' conftest.er1 >conftest.err 3463 rm -f conftest.er1 3464 cat conftest.err >&5 3465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3466 (exit $ac_status); } && { 3467 test -z "$ac_c_werror_flag" || 3468 test ! -s conftest.err 3469 } && test -s conftest.$ac_objext; then 3470 ac_cv_prog_cc_c89=$ac_arg 3471else 3472 $as_echo "$as_me: failed program was:" >&5 3473sed 's/^/| /' conftest.$ac_ext >&5 3474 3475 3476fi 3477 3478rm -f core conftest.err conftest.$ac_objext 3479 test "x$ac_cv_prog_cc_c89" != "xno" && break 3480done 3481rm -f conftest.$ac_ext 3482CC=$ac_save_CC 3483 3484fi 3485# AC_CACHE_VAL 3486case "x$ac_cv_prog_cc_c89" in 3487 x) 3488 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3489$as_echo "none needed" >&6; } ;; 3490 xno) 3491 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3492$as_echo "unsupported" >&6; } ;; 3493 *) 3494 CC="$CC $ac_cv_prog_cc_c89" 3495 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3496$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3497esac 3498 3499 3500ac_ext=c 3501ac_cpp='$CPP $CPPFLAGS' 3502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3504ac_compiler_gnu=$ac_cv_c_compiler_gnu 3505DEPDIR="${am__leading_dot}deps" 3506 3507ac_config_commands="$ac_config_commands depfiles" 3508 3509 3510am_make=${MAKE-make} 3511cat > confinc << 'END' 3512am__doit: 3513 @echo done 3514.PHONY: am__doit 3515END 3516# If we don't find an include directive, just comment out the code. 3517{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3518$as_echo_n "checking for style of include used by $am_make... " >&6; } 3519am__include="#" 3520am__quote= 3521_am_result=none 3522# First try GNU make style include. 3523echo "include confinc" > confmf 3524# We grep out `Entering directory' and `Leaving directory' 3525# messages which can occur if `w' ends up in MAKEFLAGS. 3526# In particular we don't look at `^make:' because GNU make might 3527# be invoked under some other name (usually "gmake"), in which 3528# case it prints its new name instead of `make'. 3529if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3530 am__include=include 3531 am__quote= 3532 _am_result=GNU 3533fi 3534# Now try BSD make style include. 3535if test "$am__include" = "#"; then 3536 echo '.include "confinc"' > confmf 3537 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3538 am__include=.include 3539 am__quote="\"" 3540 _am_result=BSD 3541 fi 3542fi 3543 3544 3545{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3546$as_echo "$_am_result" >&6; } 3547rm -f confinc confmf 3548 3549# Check whether --enable-dependency-tracking was given. 3550if test "${enable_dependency_tracking+set}" = set; then 3551 enableval=$enable_dependency_tracking; 3552fi 3553 3554if test "x$enable_dependency_tracking" != xno; then 3555 am_depcomp="$ac_aux_dir/depcomp" 3556 AMDEPBACKSLASH='\' 3557fi 3558 if test "x$enable_dependency_tracking" != xno; then 3559 AMDEP_TRUE= 3560 AMDEP_FALSE='#' 3561else 3562 AMDEP_TRUE='#' 3563 AMDEP_FALSE= 3564fi 3565 3566 3567 3568depcc="$CC" am_compiler_list= 3569 3570{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3571$as_echo_n "checking dependency style of $depcc... " >&6; } 3572if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3573 $as_echo_n "(cached) " >&6 3574else 3575 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3576 # We make a subdir and do the tests there. Otherwise we can end up 3577 # making bogus files that we don't know about and never remove. For 3578 # instance it was reported that on HP-UX the gcc test will end up 3579 # making a dummy file named `D' -- because `-MD' means `put the output 3580 # in D'. 3581 mkdir conftest.dir 3582 # Copy depcomp to subdir because otherwise we won't find it if we're 3583 # using a relative directory. 3584 cp "$am_depcomp" conftest.dir 3585 cd conftest.dir 3586 # We will build objects and dependencies in a subdirectory because 3587 # it helps to detect inapplicable dependency modes. For instance 3588 # both Tru64's cc and ICC support -MD to output dependencies as a 3589 # side effect of compilation, but ICC will put the dependencies in 3590 # the current directory while Tru64 will put them in the object 3591 # directory. 3592 mkdir sub 3593 3594 am_cv_CC_dependencies_compiler_type=none 3595 if test "$am_compiler_list" = ""; then 3596 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3597 fi 3598 for depmode in $am_compiler_list; do 3599 # Setup a source with many dependencies, because some compilers 3600 # like to wrap large dependency lists on column 80 (with \), and 3601 # we should not choose a depcomp mode which is confused by this. 3602 # 3603 # We need to recreate these files for each test, as the compiler may 3604 # overwrite some of them when testing with obscure command lines. 3605 # This happens at least with the AIX C compiler. 3606 : > sub/conftest.c 3607 for i in 1 2 3 4 5 6; do 3608 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3609 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3610 # Solaris 8's {/usr,}/bin/sh. 3611 touch sub/conftst$i.h 3612 done 3613 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3614 3615 case $depmode in 3616 nosideeffect) 3617 # after this tag, mechanisms are not by side-effect, so they'll 3618 # only be used when explicitly requested 3619 if test "x$enable_dependency_tracking" = xyes; then 3620 continue 3621 else 3622 break 3623 fi 3624 ;; 3625 none) break ;; 3626 esac 3627 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3628 # mode. It turns out that the SunPro C++ compiler does not properly 3629 # handle `-M -o', and we need to detect this. 3630 if depmode=$depmode \ 3631 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3632 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3633 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3634 >/dev/null 2>conftest.err && 3635 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 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{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3662$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3663CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3664 3665 if 3666 test "x$enable_dependency_tracking" != xno \ 3667 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3668 am__fastdepCC_TRUE= 3669 am__fastdepCC_FALSE='#' 3670else 3671 am__fastdepCC_TRUE='#' 3672 am__fastdepCC_FALSE= 3673fi 3674 3675 3676# Find a good install program. We prefer a C program (faster), 3677# so one script is as good as another. But avoid the broken or 3678# incompatible versions: 3679# SysV /etc/install, /usr/sbin/install 3680# SunOS /usr/etc/install 3681# IRIX /sbin/install 3682# AIX /bin/install 3683# AmigaOS /C/install, which installs bootblocks on floppy discs 3684# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3685# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3686# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3687# OS/2's system install, which has a completely different semantic 3688# ./install, which can be erroneously created by make from ./install.sh. 3689# Reject install programs that cannot install multiple files. 3690{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3691$as_echo_n "checking for a BSD-compatible install... " >&6; } 3692if test -z "$INSTALL"; then 3693if test "${ac_cv_path_install+set}" = set; then 3694 $as_echo_n "(cached) " >&6 3695else 3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3697for as_dir in $PATH 3698do 3699 IFS=$as_save_IFS 3700 test -z "$as_dir" && as_dir=. 3701 # Account for people who put trailing slashes in PATH elements. 3702case $as_dir/ in 3703 ./ | .// | /cC/* | \ 3704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3705 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3706 /usr/ucb/* ) ;; 3707 *) 3708 # OSF1 and SCO ODT 3.0 have their own names for install. 3709 # Don't use installbsd from OSF since it installs stuff as root 3710 # by default. 3711 for ac_prog in ginstall scoinst install; do 3712 for ac_exec_ext in '' $ac_executable_extensions; do 3713 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3714 if test $ac_prog = install && 3715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3716 # AIX install. It has an incompatible calling convention. 3717 : 3718 elif test $ac_prog = install && 3719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3720 # program-specific install script used by HP pwplus--don't use. 3721 : 3722 else 3723 rm -rf conftest.one conftest.two conftest.dir 3724 echo one > conftest.one 3725 echo two > conftest.two 3726 mkdir conftest.dir 3727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3728 test -s conftest.one && test -s conftest.two && 3729 test -s conftest.dir/conftest.one && 3730 test -s conftest.dir/conftest.two 3731 then 3732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3733 break 3 3734 fi 3735 fi 3736 fi 3737 done 3738 done 3739 ;; 3740esac 3741 3742done 3743IFS=$as_save_IFS 3744 3745rm -rf conftest.one conftest.two conftest.dir 3746 3747fi 3748 if test "${ac_cv_path_install+set}" = set; then 3749 INSTALL=$ac_cv_path_install 3750 else 3751 # As a last resort, use the slow shell script. Don't cache a 3752 # value for INSTALL within a source directory, because that will 3753 # break other packages using the cache if that directory is 3754 # removed, or if the value is a relative name. 3755 INSTALL=$ac_install_sh 3756 fi 3757fi 3758{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 3759$as_echo "$INSTALL" >&6; } 3760 3761# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3762# It thinks the first close brace ends the variable substitution. 3763test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3764 3765test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3766 3767test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3768 3769# Check whether --enable-shared was given. 3770if test "${enable_shared+set}" = set; then 3771 enableval=$enable_shared; p=${PACKAGE-default} 3772 case $enableval in 3773 yes) enable_shared=yes ;; 3774 no) enable_shared=no ;; 3775 *) 3776 enable_shared=no 3777 # Look at the argument we got. We use all the common list separators. 3778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3779 for pkg in $enableval; do 3780 IFS="$lt_save_ifs" 3781 if test "X$pkg" = "X$p"; then 3782 enable_shared=yes 3783 fi 3784 done 3785 IFS="$lt_save_ifs" 3786 ;; 3787 esac 3788else 3789 enable_shared=yes 3790fi 3791 3792 3793# Check whether --enable-static was given. 3794if test "${enable_static+set}" = set; then 3795 enableval=$enable_static; p=${PACKAGE-default} 3796 case $enableval in 3797 yes) enable_static=yes ;; 3798 no) enable_static=no ;; 3799 *) 3800 enable_static=no 3801 # Look at the argument we got. We use all the common list separators. 3802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3803 for pkg in $enableval; do 3804 IFS="$lt_save_ifs" 3805 if test "X$pkg" = "X$p"; then 3806 enable_static=yes 3807 fi 3808 done 3809 IFS="$lt_save_ifs" 3810 ;; 3811 esac 3812else 3813 enable_static=yes 3814fi 3815 3816 3817# Check whether --enable-fast-install was given. 3818if test "${enable_fast_install+set}" = set; then 3819 enableval=$enable_fast_install; p=${PACKAGE-default} 3820 case $enableval in 3821 yes) enable_fast_install=yes ;; 3822 no) enable_fast_install=no ;; 3823 *) 3824 enable_fast_install=no 3825 # Look at the argument we got. We use all the common list separators. 3826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3827 for pkg in $enableval; do 3828 IFS="$lt_save_ifs" 3829 if test "X$pkg" = "X$p"; then 3830 enable_fast_install=yes 3831 fi 3832 done 3833 IFS="$lt_save_ifs" 3834 ;; 3835 esac 3836else 3837 enable_fast_install=yes 3838fi 3839 3840 3841# Make sure we can run config.sub. 3842$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3843 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3844$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3845 { (exit 1); exit 1; }; } 3846 3847{ $as_echo "$as_me:$LINENO: checking build system type" >&5 3848$as_echo_n "checking build system type... " >&6; } 3849if test "${ac_cv_build+set}" = set; then 3850 $as_echo_n "(cached) " >&6 3851else 3852 ac_build_alias=$build_alias 3853test "x$ac_build_alias" = x && 3854 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3855test "x$ac_build_alias" = x && 3856 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3857$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3858 { (exit 1); exit 1; }; } 3859ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3860 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3861$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3862 { (exit 1); exit 1; }; } 3863 3864fi 3865{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3866$as_echo "$ac_cv_build" >&6; } 3867case $ac_cv_build in 3868*-*-*) ;; 3869*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3870$as_echo "$as_me: error: invalid value of canonical build" >&2;} 3871 { (exit 1); exit 1; }; };; 3872esac 3873build=$ac_cv_build 3874ac_save_IFS=$IFS; IFS='-' 3875set x $ac_cv_build 3876shift 3877build_cpu=$1 3878build_vendor=$2 3879shift; shift 3880# Remember, the first character of IFS is used to create $*, 3881# except with old shells: 3882build_os=$* 3883IFS=$ac_save_IFS 3884case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3885 3886 3887{ $as_echo "$as_me:$LINENO: checking host system type" >&5 3888$as_echo_n "checking host system type... " >&6; } 3889if test "${ac_cv_host+set}" = set; then 3890 $as_echo_n "(cached) " >&6 3891else 3892 if test "x$host_alias" = x; then 3893 ac_cv_host=$ac_cv_build 3894else 3895 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3896 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3897$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3898 { (exit 1); exit 1; }; } 3899fi 3900 3901fi 3902{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3903$as_echo "$ac_cv_host" >&6; } 3904case $ac_cv_host in 3905*-*-*) ;; 3906*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3907$as_echo "$as_me: error: invalid value of canonical host" >&2;} 3908 { (exit 1); exit 1; }; };; 3909esac 3910host=$ac_cv_host 3911ac_save_IFS=$IFS; IFS='-' 3912set x $ac_cv_host 3913shift 3914host_cpu=$1 3915host_vendor=$2 3916shift; shift 3917# Remember, the first character of IFS is used to create $*, 3918# except with old shells: 3919host_os=$* 3920IFS=$ac_save_IFS 3921case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3922 3923 3924{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3925$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3926if test "${lt_cv_path_SED+set}" = set; then 3927 $as_echo_n "(cached) " >&6 3928else 3929 # Loop through the user's path and test for sed and gsed. 3930# Then use that list of sed's as ones to test for truncation. 3931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3932for as_dir in $PATH 3933do 3934 IFS=$as_save_IFS 3935 test -z "$as_dir" && as_dir=. 3936 for lt_ac_prog in sed gsed; do 3937 for ac_exec_ext in '' $ac_executable_extensions; do 3938 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3939 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3940 fi 3941 done 3942 done 3943done 3944IFS=$as_save_IFS 3945lt_ac_max=0 3946lt_ac_count=0 3947# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3948# along with /bin/sed that truncates output. 3949for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3950 test ! -f $lt_ac_sed && continue 3951 cat /dev/null > conftest.in 3952 lt_ac_count=0 3953 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3954 # Check for GNU sed and select it if it is found. 3955 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3956 lt_cv_path_SED=$lt_ac_sed 3957 break 3958 fi 3959 while true; do 3960 cat conftest.in conftest.in >conftest.tmp 3961 mv conftest.tmp conftest.in 3962 cp conftest.in conftest.nl 3963 echo >>conftest.nl 3964 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3965 cmp -s conftest.out conftest.nl || break 3966 # 10000 chars as input seems more than enough 3967 test $lt_ac_count -gt 10 && break 3968 lt_ac_count=`expr $lt_ac_count + 1` 3969 if test $lt_ac_count -gt $lt_ac_max; then 3970 lt_ac_max=$lt_ac_count 3971 lt_cv_path_SED=$lt_ac_sed 3972 fi 3973 done 3974done 3975 3976fi 3977 3978SED=$lt_cv_path_SED 3979 3980{ $as_echo "$as_me:$LINENO: result: $SED" >&5 3981$as_echo "$SED" >&6; } 3982 3983{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3984$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3985if test "${ac_cv_path_GREP+set}" = set; then 3986 $as_echo_n "(cached) " >&6 3987else 3988 if test -z "$GREP"; then 3989 ac_path_GREP_found=false 3990 # Loop through the user's path and test for each of PROGNAME-LIST 3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3992for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3993do 3994 IFS=$as_save_IFS 3995 test -z "$as_dir" && as_dir=. 3996 for ac_prog in grep ggrep; do 3997 for ac_exec_ext in '' $ac_executable_extensions; do 3998 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3999 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4000# Check for GNU ac_path_GREP and select it if it is found. 4001 # Check for GNU $ac_path_GREP 4002case `"$ac_path_GREP" --version 2>&1` in 4003*GNU*) 4004 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4005*) 4006 ac_count=0 4007 $as_echo_n 0123456789 >"conftest.in" 4008 while : 4009 do 4010 cat "conftest.in" "conftest.in" >"conftest.tmp" 4011 mv "conftest.tmp" "conftest.in" 4012 cp "conftest.in" "conftest.nl" 4013 $as_echo 'GREP' >> "conftest.nl" 4014 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4016 ac_count=`expr $ac_count + 1` 4017 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4018 # Best one so far, save it but keep looking for a better one 4019 ac_cv_path_GREP="$ac_path_GREP" 4020 ac_path_GREP_max=$ac_count 4021 fi 4022 # 10*(2^10) chars as input seems more than enough 4023 test $ac_count -gt 10 && break 4024 done 4025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4026esac 4027 4028 $ac_path_GREP_found && break 3 4029 done 4030 done 4031done 4032IFS=$as_save_IFS 4033 if test -z "$ac_cv_path_GREP"; then 4034 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4035$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4036 { (exit 1); exit 1; }; } 4037 fi 4038else 4039 ac_cv_path_GREP=$GREP 4040fi 4041 4042fi 4043{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4044$as_echo "$ac_cv_path_GREP" >&6; } 4045 GREP="$ac_cv_path_GREP" 4046 4047 4048{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4049$as_echo_n "checking for egrep... " >&6; } 4050if test "${ac_cv_path_EGREP+set}" = set; then 4051 $as_echo_n "(cached) " >&6 4052else 4053 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4054 then ac_cv_path_EGREP="$GREP -E" 4055 else 4056 if test -z "$EGREP"; then 4057 ac_path_EGREP_found=false 4058 # Loop through the user's path and test for each of PROGNAME-LIST 4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4060for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4061do 4062 IFS=$as_save_IFS 4063 test -z "$as_dir" && as_dir=. 4064 for ac_prog in egrep; do 4065 for ac_exec_ext in '' $ac_executable_extensions; do 4066 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4067 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4068# Check for GNU ac_path_EGREP and select it if it is found. 4069 # Check for GNU $ac_path_EGREP 4070case `"$ac_path_EGREP" --version 2>&1` in 4071*GNU*) 4072 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4073*) 4074 ac_count=0 4075 $as_echo_n 0123456789 >"conftest.in" 4076 while : 4077 do 4078 cat "conftest.in" "conftest.in" >"conftest.tmp" 4079 mv "conftest.tmp" "conftest.in" 4080 cp "conftest.in" "conftest.nl" 4081 $as_echo 'EGREP' >> "conftest.nl" 4082 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4084 ac_count=`expr $ac_count + 1` 4085 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4086 # Best one so far, save it but keep looking for a better one 4087 ac_cv_path_EGREP="$ac_path_EGREP" 4088 ac_path_EGREP_max=$ac_count 4089 fi 4090 # 10*(2^10) chars as input seems more than enough 4091 test $ac_count -gt 10 && break 4092 done 4093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4094esac 4095 4096 $ac_path_EGREP_found && break 3 4097 done 4098 done 4099done 4100IFS=$as_save_IFS 4101 if test -z "$ac_cv_path_EGREP"; then 4102 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4103$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4104 { (exit 1); exit 1; }; } 4105 fi 4106else 4107 ac_cv_path_EGREP=$EGREP 4108fi 4109 4110 fi 4111fi 4112{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4113$as_echo "$ac_cv_path_EGREP" >&6; } 4114 EGREP="$ac_cv_path_EGREP" 4115 4116 4117 4118# Check whether --with-gnu-ld was given. 4119if test "${with_gnu_ld+set}" = set; then 4120 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4121else 4122 with_gnu_ld=no 4123fi 4124 4125ac_prog=ld 4126if test "$GCC" = yes; then 4127 # Check if gcc -print-prog-name=ld gives a path. 4128 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4129$as_echo_n "checking for ld used by $CC... " >&6; } 4130 case $host in 4131 *-*-mingw*) 4132 # gcc leaves a trailing carriage return which upsets mingw 4133 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4134 *) 4135 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4136 esac 4137 case $ac_prog in 4138 # Accept absolute paths. 4139 [\\/]* | ?:[\\/]*) 4140 re_direlt='/[^/][^/]*/\.\./' 4141 # Canonicalize the pathname of ld 4142 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4143 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4144 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4145 done 4146 test -z "$LD" && LD="$ac_prog" 4147 ;; 4148 "") 4149 # If it fails, then pretend we aren't using GCC. 4150 ac_prog=ld 4151 ;; 4152 *) 4153 # If it is relative, then search for the first ld in PATH. 4154 with_gnu_ld=unknown 4155 ;; 4156 esac 4157elif test "$with_gnu_ld" = yes; then 4158 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4159$as_echo_n "checking for GNU ld... " >&6; } 4160else 4161 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4162$as_echo_n "checking for non-GNU ld... " >&6; } 4163fi 4164if test "${lt_cv_path_LD+set}" = set; then 4165 $as_echo_n "(cached) " >&6 4166else 4167 if test -z "$LD"; then 4168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4169 for ac_dir in $PATH; do 4170 IFS="$lt_save_ifs" 4171 test -z "$ac_dir" && ac_dir=. 4172 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4173 lt_cv_path_LD="$ac_dir/$ac_prog" 4174 # Check to see if the program is GNU ld. I'd rather use --version, 4175 # but apparently some variants of GNU ld only accept -v. 4176 # Break only if it was the GNU/non-GNU ld that we prefer. 4177 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4178 *GNU* | *'with BFD'*) 4179 test "$with_gnu_ld" != no && break 4180 ;; 4181 *) 4182 test "$with_gnu_ld" != yes && break 4183 ;; 4184 esac 4185 fi 4186 done 4187 IFS="$lt_save_ifs" 4188else 4189 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4190fi 4191fi 4192 4193LD="$lt_cv_path_LD" 4194if test -n "$LD"; then 4195 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4196$as_echo "$LD" >&6; } 4197else 4198 { $as_echo "$as_me:$LINENO: result: no" >&5 4199$as_echo "no" >&6; } 4200fi 4201test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4202$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4203 { (exit 1); exit 1; }; } 4204{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4205$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4206if test "${lt_cv_prog_gnu_ld+set}" = set; then 4207 $as_echo_n "(cached) " >&6 4208else 4209 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4210case `$LD -v 2>&1 </dev/null` in 4211*GNU* | *'with BFD'*) 4212 lt_cv_prog_gnu_ld=yes 4213 ;; 4214*) 4215 lt_cv_prog_gnu_ld=no 4216 ;; 4217esac 4218fi 4219{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4220$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4221with_gnu_ld=$lt_cv_prog_gnu_ld 4222 4223 4224{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4225$as_echo_n "checking for $LD option to reload object files... " >&6; } 4226if test "${lt_cv_ld_reload_flag+set}" = set; then 4227 $as_echo_n "(cached) " >&6 4228else 4229 lt_cv_ld_reload_flag='-r' 4230fi 4231{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4232$as_echo "$lt_cv_ld_reload_flag" >&6; } 4233reload_flag=$lt_cv_ld_reload_flag 4234case $reload_flag in 4235"" | " "*) ;; 4236*) reload_flag=" $reload_flag" ;; 4237esac 4238reload_cmds='$LD$reload_flag -o $output$reload_objs' 4239case $host_os in 4240 darwin*) 4241 if test "$GCC" = yes; then 4242 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4243 else 4244 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4245 fi 4246 ;; 4247esac 4248 4249{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4250$as_echo_n "checking for BSD-compatible nm... " >&6; } 4251if test "${lt_cv_path_NM+set}" = set; then 4252 $as_echo_n "(cached) " >&6 4253else 4254 if test -n "$NM"; then 4255 # Let the user override the test. 4256 lt_cv_path_NM="$NM" 4257else 4258 lt_nm_to_check="${ac_tool_prefix}nm" 4259 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4260 lt_nm_to_check="$lt_nm_to_check nm" 4261 fi 4262 for lt_tmp_nm in $lt_nm_to_check; do 4263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4264 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4265 IFS="$lt_save_ifs" 4266 test -z "$ac_dir" && ac_dir=. 4267 tmp_nm="$ac_dir/$lt_tmp_nm" 4268 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4269 # Check to see if the nm accepts a BSD-compat flag. 4270 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4271 # nm: unknown option "B" ignored 4272 # Tru64's nm complains that /dev/null is an invalid object file 4273 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4274 */dev/null* | *'Invalid file or object type'*) 4275 lt_cv_path_NM="$tmp_nm -B" 4276 break 4277 ;; 4278 *) 4279 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4280 */dev/null*) 4281 lt_cv_path_NM="$tmp_nm -p" 4282 break 4283 ;; 4284 *) 4285 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4286 continue # so that we can try to find one that supports BSD flags 4287 ;; 4288 esac 4289 ;; 4290 esac 4291 fi 4292 done 4293 IFS="$lt_save_ifs" 4294 done 4295 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4296fi 4297fi 4298{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4299$as_echo "$lt_cv_path_NM" >&6; } 4300NM="$lt_cv_path_NM" 4301 4302{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4303$as_echo_n "checking whether ln -s works... " >&6; } 4304LN_S=$as_ln_s 4305if test "$LN_S" = "ln -s"; then 4306 { $as_echo "$as_me:$LINENO: result: yes" >&5 4307$as_echo "yes" >&6; } 4308else 4309 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4310$as_echo "no, using $LN_S" >&6; } 4311fi 4312 4313{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4314$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4315if test "${lt_cv_deplibs_check_method+set}" = set; then 4316 $as_echo_n "(cached) " >&6 4317else 4318 lt_cv_file_magic_cmd='$MAGIC_CMD' 4319lt_cv_file_magic_test_file= 4320lt_cv_deplibs_check_method='unknown' 4321# Need to set the preceding variable on all platforms that support 4322# interlibrary dependencies. 4323# 'none' -- dependencies not supported. 4324# `unknown' -- same as none, but documents that we really don't know. 4325# 'pass_all' -- all dependencies passed with no checks. 4326# 'test_compile' -- check by making test program. 4327# 'file_magic [[regex]]' -- check by looking for files in library path 4328# which responds to the $file_magic_cmd with a given extended regex. 4329# If you have `file' or equivalent on your system and you're not sure 4330# whether `pass_all' will *always* work, you probably want this one. 4331 4332case $host_os in 4333aix[4-9]*) 4334 lt_cv_deplibs_check_method=pass_all 4335 ;; 4336 4337beos*) 4338 lt_cv_deplibs_check_method=pass_all 4339 ;; 4340 4341bsdi[45]*) 4342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4343 lt_cv_file_magic_cmd='/usr/bin/file -L' 4344 lt_cv_file_magic_test_file=/shlib/libc.so 4345 ;; 4346 4347cygwin*) 4348 # func_win32_libid is a shell function defined in ltmain.sh 4349 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4350 lt_cv_file_magic_cmd='func_win32_libid' 4351 ;; 4352 4353mingw* | pw32*) 4354 # Base MSYS/MinGW do not provide the 'file' command needed by 4355 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4356 # unless we find 'file', for example because we are cross-compiling. 4357 if ( file / ) >/dev/null 2>&1; then 4358 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4359 lt_cv_file_magic_cmd='func_win32_libid' 4360 else 4361 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4362 lt_cv_file_magic_cmd='$OBJDUMP -f' 4363 fi 4364 ;; 4365 4366darwin* | rhapsody*) 4367 lt_cv_deplibs_check_method=pass_all 4368 ;; 4369 4370freebsd* | dragonfly*) 4371 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4372 case $host_cpu in 4373 i*86 ) 4374 # Not sure whether the presence of OpenBSD here was a mistake. 4375 # Let's accept both of them until this is cleared up. 4376 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4377 lt_cv_file_magic_cmd=/usr/bin/file 4378 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4379 ;; 4380 esac 4381 else 4382 lt_cv_deplibs_check_method=pass_all 4383 fi 4384 ;; 4385 4386gnu*) 4387 lt_cv_deplibs_check_method=pass_all 4388 ;; 4389 4390hpux10.20* | hpux11*) 4391 lt_cv_file_magic_cmd=/usr/bin/file 4392 case $host_cpu in 4393 ia64*) 4394 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4395 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4396 ;; 4397 hppa*64*) 4398 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]' 4399 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4400 ;; 4401 *) 4402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4403 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4404 ;; 4405 esac 4406 ;; 4407 4408interix[3-9]*) 4409 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4411 ;; 4412 4413irix5* | irix6* | nonstopux*) 4414 case $LD in 4415 *-32|*"-32 ") libmagic=32-bit;; 4416 *-n32|*"-n32 ") libmagic=N32;; 4417 *-64|*"-64 ") libmagic=64-bit;; 4418 *) libmagic=never-match;; 4419 esac 4420 lt_cv_deplibs_check_method=pass_all 4421 ;; 4422 4423# This must be Linux ELF. 4424linux* | k*bsd*-gnu) 4425 lt_cv_deplibs_check_method=pass_all 4426 ;; 4427 4428netbsd*) 4429 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4431 else 4432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4433 fi 4434 ;; 4435 4436newos6*) 4437 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4438 lt_cv_file_magic_cmd=/usr/bin/file 4439 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4440 ;; 4441 4442nto-qnx*) 4443 lt_cv_deplibs_check_method=unknown 4444 ;; 4445 4446openbsd*) 4447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4449 else 4450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4451 fi 4452 ;; 4453 4454osf3* | osf4* | osf5*) 4455 lt_cv_deplibs_check_method=pass_all 4456 ;; 4457 4458rdos*) 4459 lt_cv_deplibs_check_method=pass_all 4460 ;; 4461 4462solaris*) 4463 lt_cv_deplibs_check_method=pass_all 4464 ;; 4465 4466sysv4 | sysv4.3*) 4467 case $host_vendor in 4468 motorola) 4469 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]' 4470 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4471 ;; 4472 ncr) 4473 lt_cv_deplibs_check_method=pass_all 4474 ;; 4475 sequent) 4476 lt_cv_file_magic_cmd='/bin/file' 4477 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4478 ;; 4479 sni) 4480 lt_cv_file_magic_cmd='/bin/file' 4481 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4482 lt_cv_file_magic_test_file=/lib/libc.so 4483 ;; 4484 siemens) 4485 lt_cv_deplibs_check_method=pass_all 4486 ;; 4487 pc) 4488 lt_cv_deplibs_check_method=pass_all 4489 ;; 4490 esac 4491 ;; 4492 4493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4494 lt_cv_deplibs_check_method=pass_all 4495 ;; 4496esac 4497 4498fi 4499{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4500$as_echo "$lt_cv_deplibs_check_method" >&6; } 4501file_magic_cmd=$lt_cv_file_magic_cmd 4502deplibs_check_method=$lt_cv_deplibs_check_method 4503test -z "$deplibs_check_method" && deplibs_check_method=unknown 4504 4505 4506 4507 4508# If no C compiler was specified, use CC. 4509LTCC=${LTCC-"$CC"} 4510 4511# If no C compiler flags were specified, use CFLAGS. 4512LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4513 4514# Allow CC to be a program name with arguments. 4515compiler=$CC 4516 4517 4518# Check whether --enable-libtool-lock was given. 4519if test "${enable_libtool_lock+set}" = set; then 4520 enableval=$enable_libtool_lock; 4521fi 4522 4523test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4524 4525# Some flags need to be propagated to the compiler or linker for good 4526# libtool support. 4527case $host in 4528ia64-*-hpux*) 4529 # Find out which ABI we are using. 4530 echo 'int i;' > conftest.$ac_ext 4531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4532 (eval $ac_compile) 2>&5 4533 ac_status=$? 4534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4535 (exit $ac_status); }; then 4536 case `/usr/bin/file conftest.$ac_objext` in 4537 *ELF-32*) 4538 HPUX_IA64_MODE="32" 4539 ;; 4540 *ELF-64*) 4541 HPUX_IA64_MODE="64" 4542 ;; 4543 esac 4544 fi 4545 rm -rf conftest* 4546 ;; 4547*-*-irix6*) 4548 # Find out which ABI we are using. 4549 echo '#line 4549 "configure"' > conftest.$ac_ext 4550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4551 (eval $ac_compile) 2>&5 4552 ac_status=$? 4553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4554 (exit $ac_status); }; then 4555 if test "$lt_cv_prog_gnu_ld" = yes; then 4556 case `/usr/bin/file conftest.$ac_objext` in 4557 *32-bit*) 4558 LD="${LD-ld} -melf32bsmip" 4559 ;; 4560 *N32*) 4561 LD="${LD-ld} -melf32bmipn32" 4562 ;; 4563 *64-bit*) 4564 LD="${LD-ld} -melf64bmip" 4565 ;; 4566 esac 4567 else 4568 case `/usr/bin/file conftest.$ac_objext` in 4569 *32-bit*) 4570 LD="${LD-ld} -32" 4571 ;; 4572 *N32*) 4573 LD="${LD-ld} -n32" 4574 ;; 4575 *64-bit*) 4576 LD="${LD-ld} -64" 4577 ;; 4578 esac 4579 fi 4580 fi 4581 rm -rf conftest* 4582 ;; 4583 4584x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4585s390*-*linux*|sparc*-*linux*) 4586 # Find out which ABI we are using. 4587 echo 'int i;' > conftest.$ac_ext 4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4589 (eval $ac_compile) 2>&5 4590 ac_status=$? 4591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4592 (exit $ac_status); }; then 4593 case `/usr/bin/file conftest.o` in 4594 *32-bit*) 4595 case $host in 4596 x86_64-*kfreebsd*-gnu) 4597 LD="${LD-ld} -m elf_i386_fbsd" 4598 ;; 4599 x86_64-*linux*) 4600 LD="${LD-ld} -m elf_i386" 4601 ;; 4602 ppc64-*linux*|powerpc64-*linux*) 4603 LD="${LD-ld} -m elf32ppclinux" 4604 ;; 4605 s390x-*linux*) 4606 LD="${LD-ld} -m elf_s390" 4607 ;; 4608 sparc64-*linux*) 4609 LD="${LD-ld} -m elf32_sparc" 4610 ;; 4611 esac 4612 ;; 4613 *64-bit*) 4614 libsuff=64 4615 case $host in 4616 x86_64-*kfreebsd*-gnu) 4617 LD="${LD-ld} -m elf_x86_64_fbsd" 4618 ;; 4619 x86_64-*linux*) 4620 LD="${LD-ld} -m elf_x86_64" 4621 ;; 4622 ppc*-*linux*|powerpc*-*linux*) 4623 LD="${LD-ld} -m elf64ppc" 4624 ;; 4625 s390*-*linux*) 4626 LD="${LD-ld} -m elf64_s390" 4627 ;; 4628 sparc*-*linux*) 4629 LD="${LD-ld} -m elf64_sparc" 4630 ;; 4631 esac 4632 ;; 4633 esac 4634 fi 4635 rm -rf conftest* 4636 ;; 4637 4638*-*-sco3.2v5*) 4639 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4640 SAVE_CFLAGS="$CFLAGS" 4641 CFLAGS="$CFLAGS -belf" 4642 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4643$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4644if test "${lt_cv_cc_needs_belf+set}" = set; then 4645 $as_echo_n "(cached) " >&6 4646else 4647 ac_ext=c 4648ac_cpp='$CPP $CPPFLAGS' 4649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4651ac_compiler_gnu=$ac_cv_c_compiler_gnu 4652 4653 cat >conftest.$ac_ext <<_ACEOF 4654/* confdefs.h. */ 4655_ACEOF 4656cat confdefs.h >>conftest.$ac_ext 4657cat >>conftest.$ac_ext <<_ACEOF 4658/* end confdefs.h. */ 4659 4660int 4661main () 4662{ 4663 4664 ; 4665 return 0; 4666} 4667_ACEOF 4668rm -f conftest.$ac_objext conftest$ac_exeext 4669if { (ac_try="$ac_link" 4670case "(($ac_try" in 4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4672 *) ac_try_echo=$ac_try;; 4673esac 4674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4675$as_echo "$ac_try_echo") >&5 4676 (eval "$ac_link") 2>conftest.er1 4677 ac_status=$? 4678 grep -v '^ *+' conftest.er1 >conftest.err 4679 rm -f conftest.er1 4680 cat conftest.err >&5 4681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4682 (exit $ac_status); } && { 4683 test -z "$ac_c_werror_flag" || 4684 test ! -s conftest.err 4685 } && test -s conftest$ac_exeext && { 4686 test "$cross_compiling" = yes || 4687 $as_test_x conftest$ac_exeext 4688 }; then 4689 lt_cv_cc_needs_belf=yes 4690else 4691 $as_echo "$as_me: failed program was:" >&5 4692sed 's/^/| /' conftest.$ac_ext >&5 4693 4694 lt_cv_cc_needs_belf=no 4695fi 4696 4697rm -rf conftest.dSYM 4698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4699 conftest$ac_exeext conftest.$ac_ext 4700 ac_ext=c 4701ac_cpp='$CPP $CPPFLAGS' 4702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4704ac_compiler_gnu=$ac_cv_c_compiler_gnu 4705 4706fi 4707{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4708$as_echo "$lt_cv_cc_needs_belf" >&6; } 4709 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4710 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4711 CFLAGS="$SAVE_CFLAGS" 4712 fi 4713 ;; 4714sparc*-*solaris*) 4715 # Find out which ABI we are using. 4716 echo 'int i;' > conftest.$ac_ext 4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4718 (eval $ac_compile) 2>&5 4719 ac_status=$? 4720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4721 (exit $ac_status); }; then 4722 case `/usr/bin/file conftest.o` in 4723 *64-bit*) 4724 case $lt_cv_prog_gnu_ld in 4725 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4726 *) 4727 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4728 LD="${LD-ld} -64" 4729 fi 4730 ;; 4731 esac 4732 ;; 4733 esac 4734 fi 4735 rm -rf conftest* 4736 ;; 4737 4738 4739esac 4740 4741need_locks="$enable_libtool_lock" 4742 4743 4744ac_ext=c 4745ac_cpp='$CPP $CPPFLAGS' 4746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4748ac_compiler_gnu=$ac_cv_c_compiler_gnu 4749{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4750$as_echo_n "checking how to run the C preprocessor... " >&6; } 4751# On Suns, sometimes $CPP names a directory. 4752if test -n "$CPP" && test -d "$CPP"; then 4753 CPP= 4754fi 4755if test -z "$CPP"; then 4756 if test "${ac_cv_prog_CPP+set}" = set; then 4757 $as_echo_n "(cached) " >&6 4758else 4759 # Double quotes because CPP needs to be expanded 4760 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4761 do 4762 ac_preproc_ok=false 4763for ac_c_preproc_warn_flag in '' yes 4764do 4765 # Use a header file that comes with gcc, so configuring glibc 4766 # with a fresh cross-compiler works. 4767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4768 # <limits.h> exists even on freestanding compilers. 4769 # On the NeXT, cc -E runs the code through the compiler's parser, 4770 # not just through cpp. "Syntax error" is here to catch this case. 4771 cat >conftest.$ac_ext <<_ACEOF 4772/* confdefs.h. */ 4773_ACEOF 4774cat confdefs.h >>conftest.$ac_ext 4775cat >>conftest.$ac_ext <<_ACEOF 4776/* end confdefs.h. */ 4777#ifdef __STDC__ 4778# include <limits.h> 4779#else 4780# include <assert.h> 4781#endif 4782 Syntax error 4783_ACEOF 4784if { (ac_try="$ac_cpp conftest.$ac_ext" 4785case "(($ac_try" in 4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4787 *) ac_try_echo=$ac_try;; 4788esac 4789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4790$as_echo "$ac_try_echo") >&5 4791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4792 ac_status=$? 4793 grep -v '^ *+' conftest.er1 >conftest.err 4794 rm -f conftest.er1 4795 cat conftest.err >&5 4796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4797 (exit $ac_status); } >/dev/null && { 4798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4799 test ! -s conftest.err 4800 }; then 4801 : 4802else 4803 $as_echo "$as_me: failed program was:" >&5 4804sed 's/^/| /' conftest.$ac_ext >&5 4805 4806 # Broken: fails on valid input. 4807continue 4808fi 4809 4810rm -f conftest.err conftest.$ac_ext 4811 4812 # OK, works on sane cases. Now check whether nonexistent headers 4813 # can be detected and how. 4814 cat >conftest.$ac_ext <<_ACEOF 4815/* confdefs.h. */ 4816_ACEOF 4817cat confdefs.h >>conftest.$ac_ext 4818cat >>conftest.$ac_ext <<_ACEOF 4819/* end confdefs.h. */ 4820#include <ac_nonexistent.h> 4821_ACEOF 4822if { (ac_try="$ac_cpp conftest.$ac_ext" 4823case "(($ac_try" in 4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4825 *) ac_try_echo=$ac_try;; 4826esac 4827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4828$as_echo "$ac_try_echo") >&5 4829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4830 ac_status=$? 4831 grep -v '^ *+' conftest.er1 >conftest.err 4832 rm -f conftest.er1 4833 cat conftest.err >&5 4834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4835 (exit $ac_status); } >/dev/null && { 4836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4837 test ! -s conftest.err 4838 }; then 4839 # Broken: success on invalid input. 4840continue 4841else 4842 $as_echo "$as_me: failed program was:" >&5 4843sed 's/^/| /' conftest.$ac_ext >&5 4844 4845 # Passes both tests. 4846ac_preproc_ok=: 4847break 4848fi 4849 4850rm -f conftest.err conftest.$ac_ext 4851 4852done 4853# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4854rm -f conftest.err conftest.$ac_ext 4855if $ac_preproc_ok; then 4856 break 4857fi 4858 4859 done 4860 ac_cv_prog_CPP=$CPP 4861 4862fi 4863 CPP=$ac_cv_prog_CPP 4864else 4865 ac_cv_prog_CPP=$CPP 4866fi 4867{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4868$as_echo "$CPP" >&6; } 4869ac_preproc_ok=false 4870for ac_c_preproc_warn_flag in '' yes 4871do 4872 # Use a header file that comes with gcc, so configuring glibc 4873 # with a fresh cross-compiler works. 4874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4875 # <limits.h> exists even on freestanding compilers. 4876 # On the NeXT, cc -E runs the code through the compiler's parser, 4877 # not just through cpp. "Syntax error" is here to catch this case. 4878 cat >conftest.$ac_ext <<_ACEOF 4879/* confdefs.h. */ 4880_ACEOF 4881cat confdefs.h >>conftest.$ac_ext 4882cat >>conftest.$ac_ext <<_ACEOF 4883/* end confdefs.h. */ 4884#ifdef __STDC__ 4885# include <limits.h> 4886#else 4887# include <assert.h> 4888#endif 4889 Syntax error 4890_ACEOF 4891if { (ac_try="$ac_cpp conftest.$ac_ext" 4892case "(($ac_try" in 4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4894 *) ac_try_echo=$ac_try;; 4895esac 4896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4897$as_echo "$ac_try_echo") >&5 4898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4899 ac_status=$? 4900 grep -v '^ *+' conftest.er1 >conftest.err 4901 rm -f conftest.er1 4902 cat conftest.err >&5 4903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4904 (exit $ac_status); } >/dev/null && { 4905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4906 test ! -s conftest.err 4907 }; then 4908 : 4909else 4910 $as_echo "$as_me: failed program was:" >&5 4911sed 's/^/| /' conftest.$ac_ext >&5 4912 4913 # Broken: fails on valid input. 4914continue 4915fi 4916 4917rm -f conftest.err conftest.$ac_ext 4918 4919 # OK, works on sane cases. Now check whether nonexistent headers 4920 # can be detected and how. 4921 cat >conftest.$ac_ext <<_ACEOF 4922/* confdefs.h. */ 4923_ACEOF 4924cat confdefs.h >>conftest.$ac_ext 4925cat >>conftest.$ac_ext <<_ACEOF 4926/* end confdefs.h. */ 4927#include <ac_nonexistent.h> 4928_ACEOF 4929if { (ac_try="$ac_cpp conftest.$ac_ext" 4930case "(($ac_try" in 4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4932 *) ac_try_echo=$ac_try;; 4933esac 4934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4935$as_echo "$ac_try_echo") >&5 4936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4937 ac_status=$? 4938 grep -v '^ *+' conftest.er1 >conftest.err 4939 rm -f conftest.er1 4940 cat conftest.err >&5 4941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4942 (exit $ac_status); } >/dev/null && { 4943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4944 test ! -s conftest.err 4945 }; then 4946 # Broken: success on invalid input. 4947continue 4948else 4949 $as_echo "$as_me: failed program was:" >&5 4950sed 's/^/| /' conftest.$ac_ext >&5 4951 4952 # Passes both tests. 4953ac_preproc_ok=: 4954break 4955fi 4956 4957rm -f conftest.err conftest.$ac_ext 4958 4959done 4960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4961rm -f conftest.err conftest.$ac_ext 4962if $ac_preproc_ok; then 4963 : 4964else 4965 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4966See \`config.log' for more details." >&5 4967$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4968See \`config.log' for more details." >&2;} 4969 { (exit 1); exit 1; }; } 4970fi 4971 4972ac_ext=c 4973ac_cpp='$CPP $CPPFLAGS' 4974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4976ac_compiler_gnu=$ac_cv_c_compiler_gnu 4977 4978 4979{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4980$as_echo_n "checking for ANSI C header files... " >&6; } 4981if test "${ac_cv_header_stdc+set}" = set; then 4982 $as_echo_n "(cached) " >&6 4983else 4984 cat >conftest.$ac_ext <<_ACEOF 4985/* confdefs.h. */ 4986_ACEOF 4987cat confdefs.h >>conftest.$ac_ext 4988cat >>conftest.$ac_ext <<_ACEOF 4989/* end confdefs.h. */ 4990#include <stdlib.h> 4991#include <stdarg.h> 4992#include <string.h> 4993#include <float.h> 4994 4995int 4996main () 4997{ 4998 4999 ; 5000 return 0; 5001} 5002_ACEOF 5003rm -f conftest.$ac_objext 5004if { (ac_try="$ac_compile" 5005case "(($ac_try" in 5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5007 *) ac_try_echo=$ac_try;; 5008esac 5009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5010$as_echo "$ac_try_echo") >&5 5011 (eval "$ac_compile") 2>conftest.er1 5012 ac_status=$? 5013 grep -v '^ *+' conftest.er1 >conftest.err 5014 rm -f conftest.er1 5015 cat conftest.err >&5 5016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5017 (exit $ac_status); } && { 5018 test -z "$ac_c_werror_flag" || 5019 test ! -s conftest.err 5020 } && test -s conftest.$ac_objext; then 5021 ac_cv_header_stdc=yes 5022else 5023 $as_echo "$as_me: failed program was:" >&5 5024sed 's/^/| /' conftest.$ac_ext >&5 5025 5026 ac_cv_header_stdc=no 5027fi 5028 5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5030 5031if test $ac_cv_header_stdc = yes; then 5032 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5033 cat >conftest.$ac_ext <<_ACEOF 5034/* confdefs.h. */ 5035_ACEOF 5036cat confdefs.h >>conftest.$ac_ext 5037cat >>conftest.$ac_ext <<_ACEOF 5038/* end confdefs.h. */ 5039#include <string.h> 5040 5041_ACEOF 5042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5043 $EGREP "memchr" >/dev/null 2>&1; then 5044 : 5045else 5046 ac_cv_header_stdc=no 5047fi 5048rm -f conftest* 5049 5050fi 5051 5052if test $ac_cv_header_stdc = yes; then 5053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5054 cat >conftest.$ac_ext <<_ACEOF 5055/* confdefs.h. */ 5056_ACEOF 5057cat confdefs.h >>conftest.$ac_ext 5058cat >>conftest.$ac_ext <<_ACEOF 5059/* end confdefs.h. */ 5060#include <stdlib.h> 5061 5062_ACEOF 5063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5064 $EGREP "free" >/dev/null 2>&1; then 5065 : 5066else 5067 ac_cv_header_stdc=no 5068fi 5069rm -f conftest* 5070 5071fi 5072 5073if test $ac_cv_header_stdc = yes; then 5074 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5075 if test "$cross_compiling" = yes; then 5076 : 5077else 5078 cat >conftest.$ac_ext <<_ACEOF 5079/* confdefs.h. */ 5080_ACEOF 5081cat confdefs.h >>conftest.$ac_ext 5082cat >>conftest.$ac_ext <<_ACEOF 5083/* end confdefs.h. */ 5084#include <ctype.h> 5085#include <stdlib.h> 5086#if ((' ' & 0x0FF) == 0x020) 5087# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5088# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5089#else 5090# define ISLOWER(c) \ 5091 (('a' <= (c) && (c) <= 'i') \ 5092 || ('j' <= (c) && (c) <= 'r') \ 5093 || ('s' <= (c) && (c) <= 'z')) 5094# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5095#endif 5096 5097#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5098int 5099main () 5100{ 5101 int i; 5102 for (i = 0; i < 256; i++) 5103 if (XOR (islower (i), ISLOWER (i)) 5104 || toupper (i) != TOUPPER (i)) 5105 return 2; 5106 return 0; 5107} 5108_ACEOF 5109rm -f conftest$ac_exeext 5110if { (ac_try="$ac_link" 5111case "(($ac_try" in 5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5113 *) ac_try_echo=$ac_try;; 5114esac 5115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5116$as_echo "$ac_try_echo") >&5 5117 (eval "$ac_link") 2>&5 5118 ac_status=$? 5119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5121 { (case "(($ac_try" in 5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5123 *) ac_try_echo=$ac_try;; 5124esac 5125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5126$as_echo "$ac_try_echo") >&5 5127 (eval "$ac_try") 2>&5 5128 ac_status=$? 5129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5130 (exit $ac_status); }; }; then 5131 : 5132else 5133 $as_echo "$as_me: program exited with status $ac_status" >&5 5134$as_echo "$as_me: failed program was:" >&5 5135sed 's/^/| /' conftest.$ac_ext >&5 5136 5137( exit $ac_status ) 5138ac_cv_header_stdc=no 5139fi 5140rm -rf conftest.dSYM 5141rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5142fi 5143 5144 5145fi 5146fi 5147{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5148$as_echo "$ac_cv_header_stdc" >&6; } 5149if test $ac_cv_header_stdc = yes; then 5150 5151cat >>confdefs.h <<\_ACEOF 5152#define STDC_HEADERS 1 5153_ACEOF 5154 5155fi 5156 5157# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5168 inttypes.h stdint.h unistd.h 5169do 5170as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5171{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5172$as_echo_n "checking for $ac_header... " >&6; } 5173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5174 $as_echo_n "(cached) " >&6 5175else 5176 cat >conftest.$ac_ext <<_ACEOF 5177/* confdefs.h. */ 5178_ACEOF 5179cat confdefs.h >>conftest.$ac_ext 5180cat >>conftest.$ac_ext <<_ACEOF 5181/* end confdefs.h. */ 5182$ac_includes_default 5183 5184#include <$ac_header> 5185_ACEOF 5186rm -f conftest.$ac_objext 5187if { (ac_try="$ac_compile" 5188case "(($ac_try" in 5189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5190 *) ac_try_echo=$ac_try;; 5191esac 5192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5193$as_echo "$ac_try_echo") >&5 5194 (eval "$ac_compile") 2>conftest.er1 5195 ac_status=$? 5196 grep -v '^ *+' conftest.er1 >conftest.err 5197 rm -f conftest.er1 5198 cat conftest.err >&5 5199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5200 (exit $ac_status); } && { 5201 test -z "$ac_c_werror_flag" || 5202 test ! -s conftest.err 5203 } && test -s conftest.$ac_objext; then 5204 eval "$as_ac_Header=yes" 5205else 5206 $as_echo "$as_me: failed program was:" >&5 5207sed 's/^/| /' conftest.$ac_ext >&5 5208 5209 eval "$as_ac_Header=no" 5210fi 5211 5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5213fi 5214ac_res=`eval 'as_val=${'$as_ac_Header'} 5215 $as_echo "$as_val"'` 5216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5217$as_echo "$ac_res" >&6; } 5218if test `eval 'as_val=${'$as_ac_Header'} 5219 $as_echo "$as_val"'` = yes; then 5220 cat >>confdefs.h <<_ACEOF 5221#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5222_ACEOF 5223 5224fi 5225 5226done 5227 5228 5229 5230for ac_header in dlfcn.h 5231do 5232as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5234 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5235$as_echo_n "checking for $ac_header... " >&6; } 5236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5237 $as_echo_n "(cached) " >&6 5238fi 5239ac_res=`eval 'as_val=${'$as_ac_Header'} 5240 $as_echo "$as_val"'` 5241 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5242$as_echo "$ac_res" >&6; } 5243else 5244 # Is the header compilable? 5245{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5246$as_echo_n "checking $ac_header usability... " >&6; } 5247cat >conftest.$ac_ext <<_ACEOF 5248/* confdefs.h. */ 5249_ACEOF 5250cat confdefs.h >>conftest.$ac_ext 5251cat >>conftest.$ac_ext <<_ACEOF 5252/* end confdefs.h. */ 5253$ac_includes_default 5254#include <$ac_header> 5255_ACEOF 5256rm -f conftest.$ac_objext 5257if { (ac_try="$ac_compile" 5258case "(($ac_try" in 5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5260 *) ac_try_echo=$ac_try;; 5261esac 5262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5263$as_echo "$ac_try_echo") >&5 5264 (eval "$ac_compile") 2>conftest.er1 5265 ac_status=$? 5266 grep -v '^ *+' conftest.er1 >conftest.err 5267 rm -f conftest.er1 5268 cat conftest.err >&5 5269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5270 (exit $ac_status); } && { 5271 test -z "$ac_c_werror_flag" || 5272 test ! -s conftest.err 5273 } && test -s conftest.$ac_objext; then 5274 ac_header_compiler=yes 5275else 5276 $as_echo "$as_me: failed program was:" >&5 5277sed 's/^/| /' conftest.$ac_ext >&5 5278 5279 ac_header_compiler=no 5280fi 5281 5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5283{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5284$as_echo "$ac_header_compiler" >&6; } 5285 5286# Is the header present? 5287{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5288$as_echo_n "checking $ac_header presence... " >&6; } 5289cat >conftest.$ac_ext <<_ACEOF 5290/* confdefs.h. */ 5291_ACEOF 5292cat confdefs.h >>conftest.$ac_ext 5293cat >>conftest.$ac_ext <<_ACEOF 5294/* end confdefs.h. */ 5295#include <$ac_header> 5296_ACEOF 5297if { (ac_try="$ac_cpp conftest.$ac_ext" 5298case "(($ac_try" in 5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5300 *) ac_try_echo=$ac_try;; 5301esac 5302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5303$as_echo "$ac_try_echo") >&5 5304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5305 ac_status=$? 5306 grep -v '^ *+' conftest.er1 >conftest.err 5307 rm -f conftest.er1 5308 cat conftest.err >&5 5309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5310 (exit $ac_status); } >/dev/null && { 5311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5312 test ! -s conftest.err 5313 }; then 5314 ac_header_preproc=yes 5315else 5316 $as_echo "$as_me: failed program was:" >&5 5317sed 's/^/| /' conftest.$ac_ext >&5 5318 5319 ac_header_preproc=no 5320fi 5321 5322rm -f conftest.err conftest.$ac_ext 5323{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5324$as_echo "$ac_header_preproc" >&6; } 5325 5326# So? What about this header? 5327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5328 yes:no: ) 5329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5330$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5332$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5333 ac_header_preproc=yes 5334 ;; 5335 no:yes:* ) 5336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5337$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5339$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5341$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5343$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5345$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5347$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5348 5349 ;; 5350esac 5351{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5352$as_echo_n "checking for $ac_header... " >&6; } 5353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5354 $as_echo_n "(cached) " >&6 5355else 5356 eval "$as_ac_Header=\$ac_header_preproc" 5357fi 5358ac_res=`eval 'as_val=${'$as_ac_Header'} 5359 $as_echo "$as_val"'` 5360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5361$as_echo "$ac_res" >&6; } 5362 5363fi 5364if test `eval 'as_val=${'$as_ac_Header'} 5365 $as_echo "$as_val"'` = yes; then 5366 cat >>confdefs.h <<_ACEOF 5367#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5368_ACEOF 5369 5370fi 5371 5372done 5373 5374ac_ext=cpp 5375ac_cpp='$CXXCPP $CPPFLAGS' 5376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5379if test -z "$CXX"; then 5380 if test -n "$CCC"; then 5381 CXX=$CCC 5382 else 5383 if test -n "$ac_tool_prefix"; then 5384 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5385 do 5386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5387set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5388{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5389$as_echo_n "checking for $ac_word... " >&6; } 5390if test "${ac_cv_prog_CXX+set}" = set; then 5391 $as_echo_n "(cached) " >&6 5392else 5393 if test -n "$CXX"; then 5394 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5395else 5396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5397for as_dir in $PATH 5398do 5399 IFS=$as_save_IFS 5400 test -z "$as_dir" && as_dir=. 5401 for ac_exec_ext in '' $ac_executable_extensions; do 5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5403 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5405 break 2 5406 fi 5407done 5408done 5409IFS=$as_save_IFS 5410 5411fi 5412fi 5413CXX=$ac_cv_prog_CXX 5414if test -n "$CXX"; then 5415 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5416$as_echo "$CXX" >&6; } 5417else 5418 { $as_echo "$as_me:$LINENO: result: no" >&5 5419$as_echo "no" >&6; } 5420fi 5421 5422 5423 test -n "$CXX" && break 5424 done 5425fi 5426if test -z "$CXX"; then 5427 ac_ct_CXX=$CXX 5428 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5429do 5430 # Extract the first word of "$ac_prog", so it can be a program name with args. 5431set dummy $ac_prog; ac_word=$2 5432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5433$as_echo_n "checking for $ac_word... " >&6; } 5434if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5435 $as_echo_n "(cached) " >&6 5436else 5437 if test -n "$ac_ct_CXX"; then 5438 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5439else 5440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5441for as_dir in $PATH 5442do 5443 IFS=$as_save_IFS 5444 test -z "$as_dir" && as_dir=. 5445 for ac_exec_ext in '' $ac_executable_extensions; do 5446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5447 ac_cv_prog_ac_ct_CXX="$ac_prog" 5448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5449 break 2 5450 fi 5451done 5452done 5453IFS=$as_save_IFS 5454 5455fi 5456fi 5457ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5458if test -n "$ac_ct_CXX"; then 5459 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5460$as_echo "$ac_ct_CXX" >&6; } 5461else 5462 { $as_echo "$as_me:$LINENO: result: no" >&5 5463$as_echo "no" >&6; } 5464fi 5465 5466 5467 test -n "$ac_ct_CXX" && break 5468done 5469 5470 if test "x$ac_ct_CXX" = x; then 5471 CXX="g++" 5472 else 5473 case $cross_compiling:$ac_tool_warned in 5474yes:) 5475{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5476whose name does not start with the host triplet. If you think this 5477configuration is useful to you, please write to autoconf@gnu.org." >&5 5478$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5479whose name does not start with the host triplet. If you think this 5480configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5481ac_tool_warned=yes ;; 5482esac 5483 CXX=$ac_ct_CXX 5484 fi 5485fi 5486 5487 fi 5488fi 5489# Provide some information about the compiler. 5490$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5491set X $ac_compile 5492ac_compiler=$2 5493{ (ac_try="$ac_compiler --version >&5" 5494case "(($ac_try" in 5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5496 *) ac_try_echo=$ac_try;; 5497esac 5498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5499$as_echo "$ac_try_echo") >&5 5500 (eval "$ac_compiler --version >&5") 2>&5 5501 ac_status=$? 5502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5503 (exit $ac_status); } 5504{ (ac_try="$ac_compiler -v >&5" 5505case "(($ac_try" in 5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5507 *) ac_try_echo=$ac_try;; 5508esac 5509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5510$as_echo "$ac_try_echo") >&5 5511 (eval "$ac_compiler -v >&5") 2>&5 5512 ac_status=$? 5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5514 (exit $ac_status); } 5515{ (ac_try="$ac_compiler -V >&5" 5516case "(($ac_try" in 5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5518 *) ac_try_echo=$ac_try;; 5519esac 5520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5521$as_echo "$ac_try_echo") >&5 5522 (eval "$ac_compiler -V >&5") 2>&5 5523 ac_status=$? 5524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5525 (exit $ac_status); } 5526 5527{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5528$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5529if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5530 $as_echo_n "(cached) " >&6 5531else 5532 cat >conftest.$ac_ext <<_ACEOF 5533/* confdefs.h. */ 5534_ACEOF 5535cat confdefs.h >>conftest.$ac_ext 5536cat >>conftest.$ac_ext <<_ACEOF 5537/* end confdefs.h. */ 5538 5539int 5540main () 5541{ 5542#ifndef __GNUC__ 5543 choke me 5544#endif 5545 5546 ; 5547 return 0; 5548} 5549_ACEOF 5550rm -f conftest.$ac_objext 5551if { (ac_try="$ac_compile" 5552case "(($ac_try" in 5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5554 *) ac_try_echo=$ac_try;; 5555esac 5556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5557$as_echo "$ac_try_echo") >&5 5558 (eval "$ac_compile") 2>conftest.er1 5559 ac_status=$? 5560 grep -v '^ *+' conftest.er1 >conftest.err 5561 rm -f conftest.er1 5562 cat conftest.err >&5 5563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5564 (exit $ac_status); } && { 5565 test -z "$ac_cxx_werror_flag" || 5566 test ! -s conftest.err 5567 } && test -s conftest.$ac_objext; then 5568 ac_compiler_gnu=yes 5569else 5570 $as_echo "$as_me: failed program was:" >&5 5571sed 's/^/| /' conftest.$ac_ext >&5 5572 5573 ac_compiler_gnu=no 5574fi 5575 5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5577ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5578 5579fi 5580{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5581$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5582if test $ac_compiler_gnu = yes; then 5583 GXX=yes 5584else 5585 GXX= 5586fi 5587ac_test_CXXFLAGS=${CXXFLAGS+set} 5588ac_save_CXXFLAGS=$CXXFLAGS 5589{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5590$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5591if test "${ac_cv_prog_cxx_g+set}" = set; then 5592 $as_echo_n "(cached) " >&6 5593else 5594 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5595 ac_cxx_werror_flag=yes 5596 ac_cv_prog_cxx_g=no 5597 CXXFLAGS="-g" 5598 cat >conftest.$ac_ext <<_ACEOF 5599/* confdefs.h. */ 5600_ACEOF 5601cat confdefs.h >>conftest.$ac_ext 5602cat >>conftest.$ac_ext <<_ACEOF 5603/* end confdefs.h. */ 5604 5605int 5606main () 5607{ 5608 5609 ; 5610 return 0; 5611} 5612_ACEOF 5613rm -f conftest.$ac_objext 5614if { (ac_try="$ac_compile" 5615case "(($ac_try" in 5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5617 *) ac_try_echo=$ac_try;; 5618esac 5619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5620$as_echo "$ac_try_echo") >&5 5621 (eval "$ac_compile") 2>conftest.er1 5622 ac_status=$? 5623 grep -v '^ *+' conftest.er1 >conftest.err 5624 rm -f conftest.er1 5625 cat conftest.err >&5 5626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5627 (exit $ac_status); } && { 5628 test -z "$ac_cxx_werror_flag" || 5629 test ! -s conftest.err 5630 } && test -s conftest.$ac_objext; then 5631 ac_cv_prog_cxx_g=yes 5632else 5633 $as_echo "$as_me: failed program was:" >&5 5634sed 's/^/| /' conftest.$ac_ext >&5 5635 5636 CXXFLAGS="" 5637 cat >conftest.$ac_ext <<_ACEOF 5638/* confdefs.h. */ 5639_ACEOF 5640cat confdefs.h >>conftest.$ac_ext 5641cat >>conftest.$ac_ext <<_ACEOF 5642/* end confdefs.h. */ 5643 5644int 5645main () 5646{ 5647 5648 ; 5649 return 0; 5650} 5651_ACEOF 5652rm -f conftest.$ac_objext 5653if { (ac_try="$ac_compile" 5654case "(($ac_try" in 5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5656 *) ac_try_echo=$ac_try;; 5657esac 5658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5659$as_echo "$ac_try_echo") >&5 5660 (eval "$ac_compile") 2>conftest.er1 5661 ac_status=$? 5662 grep -v '^ *+' conftest.er1 >conftest.err 5663 rm -f conftest.er1 5664 cat conftest.err >&5 5665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5666 (exit $ac_status); } && { 5667 test -z "$ac_cxx_werror_flag" || 5668 test ! -s conftest.err 5669 } && test -s conftest.$ac_objext; then 5670 : 5671else 5672 $as_echo "$as_me: failed program was:" >&5 5673sed 's/^/| /' conftest.$ac_ext >&5 5674 5675 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5676 CXXFLAGS="-g" 5677 cat >conftest.$ac_ext <<_ACEOF 5678/* confdefs.h. */ 5679_ACEOF 5680cat confdefs.h >>conftest.$ac_ext 5681cat >>conftest.$ac_ext <<_ACEOF 5682/* end confdefs.h. */ 5683 5684int 5685main () 5686{ 5687 5688 ; 5689 return 0; 5690} 5691_ACEOF 5692rm -f conftest.$ac_objext 5693if { (ac_try="$ac_compile" 5694case "(($ac_try" in 5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5696 *) ac_try_echo=$ac_try;; 5697esac 5698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5699$as_echo "$ac_try_echo") >&5 5700 (eval "$ac_compile") 2>conftest.er1 5701 ac_status=$? 5702 grep -v '^ *+' conftest.er1 >conftest.err 5703 rm -f conftest.er1 5704 cat conftest.err >&5 5705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5706 (exit $ac_status); } && { 5707 test -z "$ac_cxx_werror_flag" || 5708 test ! -s conftest.err 5709 } && test -s conftest.$ac_objext; then 5710 ac_cv_prog_cxx_g=yes 5711else 5712 $as_echo "$as_me: failed program was:" >&5 5713sed 's/^/| /' conftest.$ac_ext >&5 5714 5715 5716fi 5717 5718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5719fi 5720 5721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5722fi 5723 5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5725 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5726fi 5727{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5728$as_echo "$ac_cv_prog_cxx_g" >&6; } 5729if test "$ac_test_CXXFLAGS" = set; then 5730 CXXFLAGS=$ac_save_CXXFLAGS 5731elif test $ac_cv_prog_cxx_g = yes; then 5732 if test "$GXX" = yes; then 5733 CXXFLAGS="-g -O2" 5734 else 5735 CXXFLAGS="-g" 5736 fi 5737else 5738 if test "$GXX" = yes; then 5739 CXXFLAGS="-O2" 5740 else 5741 CXXFLAGS= 5742 fi 5743fi 5744ac_ext=cpp 5745ac_cpp='$CXXCPP $CPPFLAGS' 5746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5749 5750depcc="$CXX" am_compiler_list= 5751 5752{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5753$as_echo_n "checking dependency style of $depcc... " >&6; } 5754if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5755 $as_echo_n "(cached) " >&6 5756else 5757 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5758 # We make a subdir and do the tests there. Otherwise we can end up 5759 # making bogus files that we don't know about and never remove. For 5760 # instance it was reported that on HP-UX the gcc test will end up 5761 # making a dummy file named `D' -- because `-MD' means `put the output 5762 # in D'. 5763 mkdir conftest.dir 5764 # Copy depcomp to subdir because otherwise we won't find it if we're 5765 # using a relative directory. 5766 cp "$am_depcomp" conftest.dir 5767 cd conftest.dir 5768 # We will build objects and dependencies in a subdirectory because 5769 # it helps to detect inapplicable dependency modes. For instance 5770 # both Tru64's cc and ICC support -MD to output dependencies as a 5771 # side effect of compilation, but ICC will put the dependencies in 5772 # the current directory while Tru64 will put them in the object 5773 # directory. 5774 mkdir sub 5775 5776 am_cv_CXX_dependencies_compiler_type=none 5777 if test "$am_compiler_list" = ""; then 5778 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5779 fi 5780 for depmode in $am_compiler_list; do 5781 # Setup a source with many dependencies, because some compilers 5782 # like to wrap large dependency lists on column 80 (with \), and 5783 # we should not choose a depcomp mode which is confused by this. 5784 # 5785 # We need to recreate these files for each test, as the compiler may 5786 # overwrite some of them when testing with obscure command lines. 5787 # This happens at least with the AIX C compiler. 5788 : > sub/conftest.c 5789 for i in 1 2 3 4 5 6; do 5790 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5791 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5792 # Solaris 8's {/usr,}/bin/sh. 5793 touch sub/conftst$i.h 5794 done 5795 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5796 5797 case $depmode in 5798 nosideeffect) 5799 # after this tag, mechanisms are not by side-effect, so they'll 5800 # only be used when explicitly requested 5801 if test "x$enable_dependency_tracking" = xyes; then 5802 continue 5803 else 5804 break 5805 fi 5806 ;; 5807 none) break ;; 5808 esac 5809 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5810 # mode. It turns out that the SunPro C++ compiler does not properly 5811 # handle `-M -o', and we need to detect this. 5812 if depmode=$depmode \ 5813 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5814 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5815 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5816 >/dev/null 2>conftest.err && 5817 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5818 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5819 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5820 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5821 # icc doesn't choke on unknown options, it will just issue warnings 5822 # or remarks (even with -Werror). So we grep stderr for any message 5823 # that says an option was ignored or not supported. 5824 # When given -MP, icc 7.0 and 7.1 complain thusly: 5825 # icc: Command line warning: ignoring option '-M'; no argument required 5826 # The diagnosis changed in icc 8.0: 5827 # icc: Command line remark: option '-MP' not supported 5828 if (grep 'ignoring option' conftest.err || 5829 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5830 am_cv_CXX_dependencies_compiler_type=$depmode 5831 break 5832 fi 5833 fi 5834 done 5835 5836 cd .. 5837 rm -rf conftest.dir 5838else 5839 am_cv_CXX_dependencies_compiler_type=none 5840fi 5841 5842fi 5843{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5844$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5845CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5846 5847 if 5848 test "x$enable_dependency_tracking" != xno \ 5849 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5850 am__fastdepCXX_TRUE= 5851 am__fastdepCXX_FALSE='#' 5852else 5853 am__fastdepCXX_TRUE='#' 5854 am__fastdepCXX_FALSE= 5855fi 5856 5857 5858 5859 5860if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5861 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5862 (test "X$CXX" != "Xg++"))) ; then 5863 ac_ext=cpp 5864ac_cpp='$CXXCPP $CPPFLAGS' 5865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5868{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5869$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5870if test -z "$CXXCPP"; then 5871 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5872 $as_echo_n "(cached) " >&6 5873else 5874 # Double quotes because CXXCPP needs to be expanded 5875 for CXXCPP in "$CXX -E" "/lib/cpp" 5876 do 5877 ac_preproc_ok=false 5878for ac_cxx_preproc_warn_flag in '' yes 5879do 5880 # Use a header file that comes with gcc, so configuring glibc 5881 # with a fresh cross-compiler works. 5882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5883 # <limits.h> exists even on freestanding compilers. 5884 # On the NeXT, cc -E runs the code through the compiler's parser, 5885 # not just through cpp. "Syntax error" is here to catch this case. 5886 cat >conftest.$ac_ext <<_ACEOF 5887/* confdefs.h. */ 5888_ACEOF 5889cat confdefs.h >>conftest.$ac_ext 5890cat >>conftest.$ac_ext <<_ACEOF 5891/* end confdefs.h. */ 5892#ifdef __STDC__ 5893# include <limits.h> 5894#else 5895# include <assert.h> 5896#endif 5897 Syntax error 5898_ACEOF 5899if { (ac_try="$ac_cpp conftest.$ac_ext" 5900case "(($ac_try" in 5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5902 *) ac_try_echo=$ac_try;; 5903esac 5904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5905$as_echo "$ac_try_echo") >&5 5906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5907 ac_status=$? 5908 grep -v '^ *+' conftest.er1 >conftest.err 5909 rm -f conftest.er1 5910 cat conftest.err >&5 5911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5912 (exit $ac_status); } >/dev/null && { 5913 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5914 test ! -s conftest.err 5915 }; then 5916 : 5917else 5918 $as_echo "$as_me: failed program was:" >&5 5919sed 's/^/| /' conftest.$ac_ext >&5 5920 5921 # Broken: fails on valid input. 5922continue 5923fi 5924 5925rm -f conftest.err conftest.$ac_ext 5926 5927 # OK, works on sane cases. Now check whether nonexistent headers 5928 # can be detected and how. 5929 cat >conftest.$ac_ext <<_ACEOF 5930/* confdefs.h. */ 5931_ACEOF 5932cat confdefs.h >>conftest.$ac_ext 5933cat >>conftest.$ac_ext <<_ACEOF 5934/* end confdefs.h. */ 5935#include <ac_nonexistent.h> 5936_ACEOF 5937if { (ac_try="$ac_cpp conftest.$ac_ext" 5938case "(($ac_try" in 5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5940 *) ac_try_echo=$ac_try;; 5941esac 5942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5943$as_echo "$ac_try_echo") >&5 5944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5945 ac_status=$? 5946 grep -v '^ *+' conftest.er1 >conftest.err 5947 rm -f conftest.er1 5948 cat conftest.err >&5 5949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5950 (exit $ac_status); } >/dev/null && { 5951 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5952 test ! -s conftest.err 5953 }; then 5954 # Broken: success on invalid input. 5955continue 5956else 5957 $as_echo "$as_me: failed program was:" >&5 5958sed 's/^/| /' conftest.$ac_ext >&5 5959 5960 # Passes both tests. 5961ac_preproc_ok=: 5962break 5963fi 5964 5965rm -f conftest.err conftest.$ac_ext 5966 5967done 5968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5969rm -f conftest.err conftest.$ac_ext 5970if $ac_preproc_ok; then 5971 break 5972fi 5973 5974 done 5975 ac_cv_prog_CXXCPP=$CXXCPP 5976 5977fi 5978 CXXCPP=$ac_cv_prog_CXXCPP 5979else 5980 ac_cv_prog_CXXCPP=$CXXCPP 5981fi 5982{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 5983$as_echo "$CXXCPP" >&6; } 5984ac_preproc_ok=false 5985for ac_cxx_preproc_warn_flag in '' yes 5986do 5987 # Use a header file that comes with gcc, so configuring glibc 5988 # with a fresh cross-compiler works. 5989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5990 # <limits.h> exists even on freestanding compilers. 5991 # On the NeXT, cc -E runs the code through the compiler's parser, 5992 # not just through cpp. "Syntax error" is here to catch this case. 5993 cat >conftest.$ac_ext <<_ACEOF 5994/* confdefs.h. */ 5995_ACEOF 5996cat confdefs.h >>conftest.$ac_ext 5997cat >>conftest.$ac_ext <<_ACEOF 5998/* end confdefs.h. */ 5999#ifdef __STDC__ 6000# include <limits.h> 6001#else 6002# include <assert.h> 6003#endif 6004 Syntax error 6005_ACEOF 6006if { (ac_try="$ac_cpp conftest.$ac_ext" 6007case "(($ac_try" in 6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6009 *) ac_try_echo=$ac_try;; 6010esac 6011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6012$as_echo "$ac_try_echo") >&5 6013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6014 ac_status=$? 6015 grep -v '^ *+' conftest.er1 >conftest.err 6016 rm -f conftest.er1 6017 cat conftest.err >&5 6018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6019 (exit $ac_status); } >/dev/null && { 6020 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6021 test ! -s conftest.err 6022 }; then 6023 : 6024else 6025 $as_echo "$as_me: failed program was:" >&5 6026sed 's/^/| /' conftest.$ac_ext >&5 6027 6028 # Broken: fails on valid input. 6029continue 6030fi 6031 6032rm -f conftest.err conftest.$ac_ext 6033 6034 # OK, works on sane cases. Now check whether nonexistent headers 6035 # can be detected and how. 6036 cat >conftest.$ac_ext <<_ACEOF 6037/* confdefs.h. */ 6038_ACEOF 6039cat confdefs.h >>conftest.$ac_ext 6040cat >>conftest.$ac_ext <<_ACEOF 6041/* end confdefs.h. */ 6042#include <ac_nonexistent.h> 6043_ACEOF 6044if { (ac_try="$ac_cpp conftest.$ac_ext" 6045case "(($ac_try" in 6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6047 *) ac_try_echo=$ac_try;; 6048esac 6049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6050$as_echo "$ac_try_echo") >&5 6051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6052 ac_status=$? 6053 grep -v '^ *+' conftest.er1 >conftest.err 6054 rm -f conftest.er1 6055 cat conftest.err >&5 6056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6057 (exit $ac_status); } >/dev/null && { 6058 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6059 test ! -s conftest.err 6060 }; then 6061 # Broken: success on invalid input. 6062continue 6063else 6064 $as_echo "$as_me: failed program was:" >&5 6065sed 's/^/| /' conftest.$ac_ext >&5 6066 6067 # Passes both tests. 6068ac_preproc_ok=: 6069break 6070fi 6071 6072rm -f conftest.err conftest.$ac_ext 6073 6074done 6075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6076rm -f conftest.err conftest.$ac_ext 6077if $ac_preproc_ok; then 6078 : 6079else 6080 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6081See \`config.log' for more details." >&5 6082$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6083See \`config.log' for more details." >&2;} 6084 { (exit 1); exit 1; }; } 6085fi 6086 6087ac_ext=cpp 6088ac_cpp='$CXXCPP $CPPFLAGS' 6089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6092 6093fi 6094 6095 6096ac_ext=f 6097ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6098ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6099ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6100if test -n "$ac_tool_prefix"; then 6101 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6102 do 6103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6104set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6105{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6106$as_echo_n "checking for $ac_word... " >&6; } 6107if test "${ac_cv_prog_F77+set}" = set; then 6108 $as_echo_n "(cached) " >&6 6109else 6110 if test -n "$F77"; then 6111 ac_cv_prog_F77="$F77" # Let the user override the test. 6112else 6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6114for as_dir in $PATH 6115do 6116 IFS=$as_save_IFS 6117 test -z "$as_dir" && as_dir=. 6118 for ac_exec_ext in '' $ac_executable_extensions; do 6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6120 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6122 break 2 6123 fi 6124done 6125done 6126IFS=$as_save_IFS 6127 6128fi 6129fi 6130F77=$ac_cv_prog_F77 6131if test -n "$F77"; then 6132 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6133$as_echo "$F77" >&6; } 6134else 6135 { $as_echo "$as_me:$LINENO: result: no" >&5 6136$as_echo "no" >&6; } 6137fi 6138 6139 6140 test -n "$F77" && break 6141 done 6142fi 6143if test -z "$F77"; then 6144 ac_ct_F77=$F77 6145 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6146do 6147 # Extract the first word of "$ac_prog", so it can be a program name with args. 6148set dummy $ac_prog; ac_word=$2 6149{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6150$as_echo_n "checking for $ac_word... " >&6; } 6151if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6152 $as_echo_n "(cached) " >&6 6153else 6154 if test -n "$ac_ct_F77"; then 6155 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6156else 6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6158for as_dir in $PATH 6159do 6160 IFS=$as_save_IFS 6161 test -z "$as_dir" && as_dir=. 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6164 ac_cv_prog_ac_ct_F77="$ac_prog" 6165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6166 break 2 6167 fi 6168done 6169done 6170IFS=$as_save_IFS 6171 6172fi 6173fi 6174ac_ct_F77=$ac_cv_prog_ac_ct_F77 6175if test -n "$ac_ct_F77"; then 6176 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6177$as_echo "$ac_ct_F77" >&6; } 6178else 6179 { $as_echo "$as_me:$LINENO: result: no" >&5 6180$as_echo "no" >&6; } 6181fi 6182 6183 6184 test -n "$ac_ct_F77" && break 6185done 6186 6187 if test "x$ac_ct_F77" = x; then 6188 F77="" 6189 else 6190 case $cross_compiling:$ac_tool_warned in 6191yes:) 6192{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6193whose name does not start with the host triplet. If you think this 6194configuration is useful to you, please write to autoconf@gnu.org." >&5 6195$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6196whose name does not start with the host triplet. If you think this 6197configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6198ac_tool_warned=yes ;; 6199esac 6200 F77=$ac_ct_F77 6201 fi 6202fi 6203 6204 6205# Provide some information about the compiler. 6206$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6207set X $ac_compile 6208ac_compiler=$2 6209{ (ac_try="$ac_compiler --version >&5" 6210case "(($ac_try" in 6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6212 *) ac_try_echo=$ac_try;; 6213esac 6214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6215$as_echo "$ac_try_echo") >&5 6216 (eval "$ac_compiler --version >&5") 2>&5 6217 ac_status=$? 6218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6219 (exit $ac_status); } 6220{ (ac_try="$ac_compiler -v >&5" 6221case "(($ac_try" in 6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6223 *) ac_try_echo=$ac_try;; 6224esac 6225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6226$as_echo "$ac_try_echo") >&5 6227 (eval "$ac_compiler -v >&5") 2>&5 6228 ac_status=$? 6229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6230 (exit $ac_status); } 6231{ (ac_try="$ac_compiler -V >&5" 6232case "(($ac_try" in 6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6234 *) ac_try_echo=$ac_try;; 6235esac 6236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6237$as_echo "$ac_try_echo") >&5 6238 (eval "$ac_compiler -V >&5") 2>&5 6239 ac_status=$? 6240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6241 (exit $ac_status); } 6242rm -f a.out 6243 6244# If we don't use `.F' as extension, the preprocessor is not run on the 6245# input file. (Note that this only needs to work for GNU compilers.) 6246ac_save_ext=$ac_ext 6247ac_ext=F 6248{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6249$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6250if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6251 $as_echo_n "(cached) " >&6 6252else 6253 cat >conftest.$ac_ext <<_ACEOF 6254 program main 6255#ifndef __GNUC__ 6256 choke me 6257#endif 6258 6259 end 6260_ACEOF 6261rm -f conftest.$ac_objext 6262if { (ac_try="$ac_compile" 6263case "(($ac_try" in 6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6265 *) ac_try_echo=$ac_try;; 6266esac 6267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6268$as_echo "$ac_try_echo") >&5 6269 (eval "$ac_compile") 2>conftest.er1 6270 ac_status=$? 6271 grep -v '^ *+' conftest.er1 >conftest.err 6272 rm -f conftest.er1 6273 cat conftest.err >&5 6274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6275 (exit $ac_status); } && { 6276 test -z "$ac_f77_werror_flag" || 6277 test ! -s conftest.err 6278 } && test -s conftest.$ac_objext; then 6279 ac_compiler_gnu=yes 6280else 6281 $as_echo "$as_me: failed program was:" >&5 6282sed 's/^/| /' conftest.$ac_ext >&5 6283 6284 ac_compiler_gnu=no 6285fi 6286 6287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6288ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6289 6290fi 6291{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6292$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6293ac_ext=$ac_save_ext 6294ac_test_FFLAGS=${FFLAGS+set} 6295ac_save_FFLAGS=$FFLAGS 6296FFLAGS= 6297{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6298$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6299if test "${ac_cv_prog_f77_g+set}" = set; then 6300 $as_echo_n "(cached) " >&6 6301else 6302 FFLAGS=-g 6303cat >conftest.$ac_ext <<_ACEOF 6304 program main 6305 6306 end 6307_ACEOF 6308rm -f conftest.$ac_objext 6309if { (ac_try="$ac_compile" 6310case "(($ac_try" in 6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6312 *) ac_try_echo=$ac_try;; 6313esac 6314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6315$as_echo "$ac_try_echo") >&5 6316 (eval "$ac_compile") 2>conftest.er1 6317 ac_status=$? 6318 grep -v '^ *+' conftest.er1 >conftest.err 6319 rm -f conftest.er1 6320 cat conftest.err >&5 6321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6322 (exit $ac_status); } && { 6323 test -z "$ac_f77_werror_flag" || 6324 test ! -s conftest.err 6325 } && test -s conftest.$ac_objext; then 6326 ac_cv_prog_f77_g=yes 6327else 6328 $as_echo "$as_me: failed program was:" >&5 6329sed 's/^/| /' conftest.$ac_ext >&5 6330 6331 ac_cv_prog_f77_g=no 6332fi 6333 6334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6335 6336fi 6337{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6338$as_echo "$ac_cv_prog_f77_g" >&6; } 6339if test "$ac_test_FFLAGS" = set; then 6340 FFLAGS=$ac_save_FFLAGS 6341elif test $ac_cv_prog_f77_g = yes; then 6342 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6343 FFLAGS="-g -O2" 6344 else 6345 FFLAGS="-g" 6346 fi 6347else 6348 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6349 FFLAGS="-O2" 6350 else 6351 FFLAGS= 6352 fi 6353fi 6354 6355if test $ac_compiler_gnu = yes; then 6356 G77=yes 6357else 6358 G77= 6359fi 6360ac_ext=c 6361ac_cpp='$CPP $CPPFLAGS' 6362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6364ac_compiler_gnu=$ac_cv_c_compiler_gnu 6365 6366 6367 6368# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6369# find the maximum length of command line arguments 6370{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6371$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6372if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6373 $as_echo_n "(cached) " >&6 6374else 6375 i=0 6376 teststring="ABCD" 6377 6378 case $build_os in 6379 msdosdjgpp*) 6380 # On DJGPP, this test can blow up pretty badly due to problems in libc 6381 # (any single argument exceeding 2000 bytes causes a buffer overrun 6382 # during glob expansion). Even if it were fixed, the result of this 6383 # check would be larger than it should be. 6384 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6385 ;; 6386 6387 gnu*) 6388 # Under GNU Hurd, this test is not required because there is 6389 # no limit to the length of command line arguments. 6390 # Libtool will interpret -1 as no limit whatsoever 6391 lt_cv_sys_max_cmd_len=-1; 6392 ;; 6393 6394 cygwin* | mingw*) 6395 # On Win9x/ME, this test blows up -- it succeeds, but takes 6396 # about 5 minutes as the teststring grows exponentially. 6397 # Worse, since 9x/ME are not pre-emptively multitasking, 6398 # you end up with a "frozen" computer, even though with patience 6399 # the test eventually succeeds (with a max line length of 256k). 6400 # Instead, let's just punt: use the minimum linelength reported by 6401 # all of the supported platforms: 8192 (on NT/2K/XP). 6402 lt_cv_sys_max_cmd_len=8192; 6403 ;; 6404 6405 amigaos*) 6406 # On AmigaOS with pdksh, this test takes hours, literally. 6407 # So we just punt and use a minimum line length of 8192. 6408 lt_cv_sys_max_cmd_len=8192; 6409 ;; 6410 6411 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6412 # This has been around since 386BSD, at least. Likely further. 6413 if test -x /sbin/sysctl; then 6414 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6415 elif test -x /usr/sbin/sysctl; then 6416 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6417 else 6418 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6419 fi 6420 # And add a safety zone 6421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6423 ;; 6424 6425 interix*) 6426 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6427 lt_cv_sys_max_cmd_len=196608 6428 ;; 6429 6430 osf*) 6431 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6432 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6433 # nice to cause kernel panics so lets avoid the loop below. 6434 # First set a reasonable default. 6435 lt_cv_sys_max_cmd_len=16384 6436 # 6437 if test -x /sbin/sysconfig; then 6438 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6439 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6440 esac 6441 fi 6442 ;; 6443 sco3.2v5*) 6444 lt_cv_sys_max_cmd_len=102400 6445 ;; 6446 sysv5* | sco5v6* | sysv4.2uw2*) 6447 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6448 if test -n "$kargmax"; then 6449 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6450 else 6451 lt_cv_sys_max_cmd_len=32768 6452 fi 6453 ;; 6454 *) 6455 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6456 if test -n "$lt_cv_sys_max_cmd_len"; then 6457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6459 else 6460 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6461 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6462 = "XX$teststring") >/dev/null 2>&1 && 6463 new_result=`expr "X$teststring" : ".*" 2>&1` && 6464 lt_cv_sys_max_cmd_len=$new_result && 6465 test $i != 17 # 1/2 MB should be enough 6466 do 6467 i=`expr $i + 1` 6468 teststring=$teststring$teststring 6469 done 6470 teststring= 6471 # Add a significant safety factor because C++ compilers can tack on massive 6472 # amounts of additional arguments before passing them to the linker. 6473 # It appears as though 1/2 is a usable value. 6474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6475 fi 6476 ;; 6477 esac 6478 6479fi 6480 6481if test -n $lt_cv_sys_max_cmd_len ; then 6482 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6483$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6484else 6485 { $as_echo "$as_me:$LINENO: result: none" >&5 6486$as_echo "none" >&6; } 6487fi 6488 6489 6490 6491 6492 6493# Check for command to grab the raw symbol name followed by C symbol from nm. 6494{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6495$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6496if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6497 $as_echo_n "(cached) " >&6 6498else 6499 6500# These are sane defaults that work on at least a few old systems. 6501# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6502 6503# Character class describing NM global symbol codes. 6504symcode='[BCDEGRST]' 6505 6506# Regexp to match symbols that can be accessed directly from C. 6507sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6508 6509# Transform an extracted symbol line into a proper C declaration 6510lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6511 6512# Transform an extracted symbol line into symbol name and symbol address 6513lt_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'" 6514 6515# Define system-specific variables. 6516case $host_os in 6517aix*) 6518 symcode='[BCDT]' 6519 ;; 6520cygwin* | mingw* | pw32*) 6521 symcode='[ABCDGISTW]' 6522 ;; 6523hpux*) # Its linker distinguishes data from code symbols 6524 if test "$host_cpu" = ia64; then 6525 symcode='[ABCDEGRST]' 6526 fi 6527 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6528 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'" 6529 ;; 6530linux* | k*bsd*-gnu) 6531 if test "$host_cpu" = ia64; then 6532 symcode='[ABCDGIRSTW]' 6533 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6534 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'" 6535 fi 6536 ;; 6537irix* | nonstopux*) 6538 symcode='[BCDEGRST]' 6539 ;; 6540osf*) 6541 symcode='[BCDEGQRST]' 6542 ;; 6543solaris*) 6544 symcode='[BDRT]' 6545 ;; 6546sco3.2v5*) 6547 symcode='[DT]' 6548 ;; 6549sysv4.2uw2*) 6550 symcode='[DT]' 6551 ;; 6552sysv5* | sco5v6* | unixware* | OpenUNIX*) 6553 symcode='[ABDT]' 6554 ;; 6555sysv4) 6556 symcode='[DFNSTU]' 6557 ;; 6558esac 6559 6560# Handle CRLF in mingw tool chain 6561opt_cr= 6562case $build_os in 6563mingw*) 6564 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6565 ;; 6566esac 6567 6568# If we're using GNU nm, then use its standard symbol codes. 6569case `$NM -V 2>&1` in 6570*GNU* | *'with BFD'*) 6571 symcode='[ABCDGIRSTW]' ;; 6572esac 6573 6574# Try without a prefix undercore, then with it. 6575for ac_symprfx in "" "_"; do 6576 6577 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6578 symxfrm="\\1 $ac_symprfx\\2 \\2" 6579 6580 # Write the raw and C identifiers. 6581 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6582 6583 # Check to see that the pipe works correctly. 6584 pipe_works=no 6585 6586 rm -f conftest* 6587 cat > conftest.$ac_ext <<EOF 6588#ifdef __cplusplus 6589extern "C" { 6590#endif 6591char nm_test_var; 6592void nm_test_func(){} 6593#ifdef __cplusplus 6594} 6595#endif 6596int main(){nm_test_var='a';nm_test_func();return(0);} 6597EOF 6598 6599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6600 (eval $ac_compile) 2>&5 6601 ac_status=$? 6602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6603 (exit $ac_status); }; then 6604 # Now try to grab the symbols. 6605 nlist=conftest.nm 6606 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6607 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6608 ac_status=$? 6609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6610 (exit $ac_status); } && test -s "$nlist"; then 6611 # Try sorting and uniquifying the output. 6612 if sort "$nlist" | uniq > "$nlist"T; then 6613 mv -f "$nlist"T "$nlist" 6614 else 6615 rm -f "$nlist"T 6616 fi 6617 6618 # Make sure that we snagged all the symbols we need. 6619 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6620 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6621 cat <<EOF > conftest.$ac_ext 6622#ifdef __cplusplus 6623extern "C" { 6624#endif 6625 6626EOF 6627 # Now generate the symbol file. 6628 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6629 6630 cat <<EOF >> conftest.$ac_ext 6631#if defined (__STDC__) && __STDC__ 6632# define lt_ptr_t void * 6633#else 6634# define lt_ptr_t char * 6635# define const 6636#endif 6637 6638/* The mapping between symbol names and symbols. */ 6639const struct { 6640 const char *name; 6641 lt_ptr_t address; 6642} 6643lt_preloaded_symbols[] = 6644{ 6645EOF 6646 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6647 cat <<\EOF >> conftest.$ac_ext 6648 {0, (lt_ptr_t) 0} 6649}; 6650 6651#ifdef __cplusplus 6652} 6653#endif 6654EOF 6655 # Now try linking the two files. 6656 mv conftest.$ac_objext conftstm.$ac_objext 6657 lt_save_LIBS="$LIBS" 6658 lt_save_CFLAGS="$CFLAGS" 6659 LIBS="conftstm.$ac_objext" 6660 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6662 (eval $ac_link) 2>&5 6663 ac_status=$? 6664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6665 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6666 pipe_works=yes 6667 fi 6668 LIBS="$lt_save_LIBS" 6669 CFLAGS="$lt_save_CFLAGS" 6670 else 6671 echo "cannot find nm_test_func in $nlist" >&5 6672 fi 6673 else 6674 echo "cannot find nm_test_var in $nlist" >&5 6675 fi 6676 else 6677 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6678 fi 6679 else 6680 echo "$progname: failed program was:" >&5 6681 cat conftest.$ac_ext >&5 6682 fi 6683 rm -rf conftest* conftst* 6684 6685 # Do not use the global_symbol_pipe unless it works. 6686 if test "$pipe_works" = yes; then 6687 break 6688 else 6689 lt_cv_sys_global_symbol_pipe= 6690 fi 6691done 6692 6693fi 6694 6695if test -z "$lt_cv_sys_global_symbol_pipe"; then 6696 lt_cv_sys_global_symbol_to_cdecl= 6697fi 6698if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6699 { $as_echo "$as_me:$LINENO: result: failed" >&5 6700$as_echo "failed" >&6; } 6701else 6702 { $as_echo "$as_me:$LINENO: result: ok" >&5 6703$as_echo "ok" >&6; } 6704fi 6705 6706{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6707$as_echo_n "checking for objdir... " >&6; } 6708if test "${lt_cv_objdir+set}" = set; then 6709 $as_echo_n "(cached) " >&6 6710else 6711 rm -f .libs 2>/dev/null 6712mkdir .libs 2>/dev/null 6713if test -d .libs; then 6714 lt_cv_objdir=.libs 6715else 6716 # MS-DOS does not allow filenames that begin with a dot. 6717 lt_cv_objdir=_libs 6718fi 6719rmdir .libs 2>/dev/null 6720fi 6721{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6722$as_echo "$lt_cv_objdir" >&6; } 6723objdir=$lt_cv_objdir 6724 6725 6726 6727 6728 6729case $host_os in 6730aix3*) 6731 # AIX sometimes has problems with the GCC collect2 program. For some 6732 # reason, if we set the COLLECT_NAMES environment variable, the problems 6733 # vanish in a puff of smoke. 6734 if test "X${COLLECT_NAMES+set}" != Xset; then 6735 COLLECT_NAMES= 6736 export COLLECT_NAMES 6737 fi 6738 ;; 6739esac 6740 6741# Sed substitution that helps us do robust quoting. It backslashifies 6742# metacharacters that are still active within double-quoted strings. 6743Xsed='sed -e 1s/^X//' 6744sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6745 6746# Same as above, but do not quote variable references. 6747double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6748 6749# Sed substitution to delay expansion of an escaped shell variable in a 6750# double_quote_subst'ed string. 6751delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6752 6753# Sed substitution to avoid accidental globbing in evaled expressions 6754no_glob_subst='s/\*/\\\*/g' 6755 6756# Constants: 6757rm="rm -f" 6758 6759# Global variables: 6760default_ofile=libtool 6761can_build_shared=yes 6762 6763# All known linkers require a `.a' archive for static linking (except MSVC, 6764# which needs '.lib'). 6765libext=a 6766ltmain="$ac_aux_dir/ltmain.sh" 6767ofile="$default_ofile" 6768with_gnu_ld="$lt_cv_prog_gnu_ld" 6769 6770if test -n "$ac_tool_prefix"; then 6771 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6772set dummy ${ac_tool_prefix}ar; ac_word=$2 6773{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6774$as_echo_n "checking for $ac_word... " >&6; } 6775if test "${ac_cv_prog_AR+set}" = set; then 6776 $as_echo_n "(cached) " >&6 6777else 6778 if test -n "$AR"; then 6779 ac_cv_prog_AR="$AR" # Let the user override the test. 6780else 6781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6782for as_dir in $PATH 6783do 6784 IFS=$as_save_IFS 6785 test -z "$as_dir" && as_dir=. 6786 for ac_exec_ext in '' $ac_executable_extensions; do 6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6788 ac_cv_prog_AR="${ac_tool_prefix}ar" 6789 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6790 break 2 6791 fi 6792done 6793done 6794IFS=$as_save_IFS 6795 6796fi 6797fi 6798AR=$ac_cv_prog_AR 6799if test -n "$AR"; then 6800 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6801$as_echo "$AR" >&6; } 6802else 6803 { $as_echo "$as_me:$LINENO: result: no" >&5 6804$as_echo "no" >&6; } 6805fi 6806 6807 6808fi 6809if test -z "$ac_cv_prog_AR"; then 6810 ac_ct_AR=$AR 6811 # Extract the first word of "ar", so it can be a program name with args. 6812set dummy ar; ac_word=$2 6813{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6814$as_echo_n "checking for $ac_word... " >&6; } 6815if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6816 $as_echo_n "(cached) " >&6 6817else 6818 if test -n "$ac_ct_AR"; then 6819 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6820else 6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6822for as_dir in $PATH 6823do 6824 IFS=$as_save_IFS 6825 test -z "$as_dir" && as_dir=. 6826 for ac_exec_ext in '' $ac_executable_extensions; do 6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6828 ac_cv_prog_ac_ct_AR="ar" 6829 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6830 break 2 6831 fi 6832done 6833done 6834IFS=$as_save_IFS 6835 6836fi 6837fi 6838ac_ct_AR=$ac_cv_prog_ac_ct_AR 6839if test -n "$ac_ct_AR"; then 6840 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6841$as_echo "$ac_ct_AR" >&6; } 6842else 6843 { $as_echo "$as_me:$LINENO: result: no" >&5 6844$as_echo "no" >&6; } 6845fi 6846 6847 if test "x$ac_ct_AR" = x; then 6848 AR="false" 6849 else 6850 case $cross_compiling:$ac_tool_warned in 6851yes:) 6852{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6853whose name does not start with the host triplet. If you think this 6854configuration is useful to you, please write to autoconf@gnu.org." >&5 6855$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6856whose name does not start with the host triplet. If you think this 6857configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6858ac_tool_warned=yes ;; 6859esac 6860 AR=$ac_ct_AR 6861 fi 6862else 6863 AR="$ac_cv_prog_AR" 6864fi 6865 6866if test -n "$ac_tool_prefix"; then 6867 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6868set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6869{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6870$as_echo_n "checking for $ac_word... " >&6; } 6871if test "${ac_cv_prog_RANLIB+set}" = set; then 6872 $as_echo_n "(cached) " >&6 6873else 6874 if test -n "$RANLIB"; then 6875 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6876else 6877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6878for as_dir in $PATH 6879do 6880 IFS=$as_save_IFS 6881 test -z "$as_dir" && as_dir=. 6882 for ac_exec_ext in '' $ac_executable_extensions; do 6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6884 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6885 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6886 break 2 6887 fi 6888done 6889done 6890IFS=$as_save_IFS 6891 6892fi 6893fi 6894RANLIB=$ac_cv_prog_RANLIB 6895if test -n "$RANLIB"; then 6896 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6897$as_echo "$RANLIB" >&6; } 6898else 6899 { $as_echo "$as_me:$LINENO: result: no" >&5 6900$as_echo "no" >&6; } 6901fi 6902 6903 6904fi 6905if test -z "$ac_cv_prog_RANLIB"; then 6906 ac_ct_RANLIB=$RANLIB 6907 # Extract the first word of "ranlib", so it can be a program name with args. 6908set dummy ranlib; ac_word=$2 6909{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6910$as_echo_n "checking for $ac_word... " >&6; } 6911if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6912 $as_echo_n "(cached) " >&6 6913else 6914 if test -n "$ac_ct_RANLIB"; then 6915 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6916else 6917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6918for as_dir in $PATH 6919do 6920 IFS=$as_save_IFS 6921 test -z "$as_dir" && as_dir=. 6922 for ac_exec_ext in '' $ac_executable_extensions; do 6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6924 ac_cv_prog_ac_ct_RANLIB="ranlib" 6925 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6926 break 2 6927 fi 6928done 6929done 6930IFS=$as_save_IFS 6931 6932fi 6933fi 6934ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6935if test -n "$ac_ct_RANLIB"; then 6936 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6937$as_echo "$ac_ct_RANLIB" >&6; } 6938else 6939 { $as_echo "$as_me:$LINENO: result: no" >&5 6940$as_echo "no" >&6; } 6941fi 6942 6943 if test "x$ac_ct_RANLIB" = x; then 6944 RANLIB=":" 6945 else 6946 case $cross_compiling:$ac_tool_warned in 6947yes:) 6948{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6949whose name does not start with the host triplet. If you think this 6950configuration is useful to you, please write to autoconf@gnu.org." >&5 6951$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6952whose name does not start with the host triplet. If you think this 6953configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6954ac_tool_warned=yes ;; 6955esac 6956 RANLIB=$ac_ct_RANLIB 6957 fi 6958else 6959 RANLIB="$ac_cv_prog_RANLIB" 6960fi 6961 6962if test -n "$ac_tool_prefix"; then 6963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6964set dummy ${ac_tool_prefix}strip; ac_word=$2 6965{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6966$as_echo_n "checking for $ac_word... " >&6; } 6967if test "${ac_cv_prog_STRIP+set}" = set; then 6968 $as_echo_n "(cached) " >&6 6969else 6970 if test -n "$STRIP"; then 6971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6972else 6973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6974for as_dir in $PATH 6975do 6976 IFS=$as_save_IFS 6977 test -z "$as_dir" && as_dir=. 6978 for ac_exec_ext in '' $ac_executable_extensions; do 6979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6980 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6981 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6982 break 2 6983 fi 6984done 6985done 6986IFS=$as_save_IFS 6987 6988fi 6989fi 6990STRIP=$ac_cv_prog_STRIP 6991if test -n "$STRIP"; then 6992 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6993$as_echo "$STRIP" >&6; } 6994else 6995 { $as_echo "$as_me:$LINENO: result: no" >&5 6996$as_echo "no" >&6; } 6997fi 6998 6999 7000fi 7001if test -z "$ac_cv_prog_STRIP"; then 7002 ac_ct_STRIP=$STRIP 7003 # Extract the first word of "strip", so it can be a program name with args. 7004set dummy strip; ac_word=$2 7005{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7006$as_echo_n "checking for $ac_word... " >&6; } 7007if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7008 $as_echo_n "(cached) " >&6 7009else 7010 if test -n "$ac_ct_STRIP"; then 7011 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7012else 7013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7014for as_dir in $PATH 7015do 7016 IFS=$as_save_IFS 7017 test -z "$as_dir" && as_dir=. 7018 for ac_exec_ext in '' $ac_executable_extensions; do 7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7020 ac_cv_prog_ac_ct_STRIP="strip" 7021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7022 break 2 7023 fi 7024done 7025done 7026IFS=$as_save_IFS 7027 7028fi 7029fi 7030ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7031if test -n "$ac_ct_STRIP"; then 7032 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7033$as_echo "$ac_ct_STRIP" >&6; } 7034else 7035 { $as_echo "$as_me:$LINENO: result: no" >&5 7036$as_echo "no" >&6; } 7037fi 7038 7039 if test "x$ac_ct_STRIP" = x; then 7040 STRIP=":" 7041 else 7042 case $cross_compiling:$ac_tool_warned in 7043yes:) 7044{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7045whose name does not start with the host triplet. If you think this 7046configuration is useful to you, please write to autoconf@gnu.org." >&5 7047$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7048whose name does not start with the host triplet. If you think this 7049configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7050ac_tool_warned=yes ;; 7051esac 7052 STRIP=$ac_ct_STRIP 7053 fi 7054else 7055 STRIP="$ac_cv_prog_STRIP" 7056fi 7057 7058 7059old_CC="$CC" 7060old_CFLAGS="$CFLAGS" 7061 7062# Set sane defaults for various variables 7063test -z "$AR" && AR=ar 7064test -z "$AR_FLAGS" && AR_FLAGS=cru 7065test -z "$AS" && AS=as 7066test -z "$CC" && CC=cc 7067test -z "$LTCC" && LTCC=$CC 7068test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7069test -z "$DLLTOOL" && DLLTOOL=dlltool 7070test -z "$LD" && LD=ld 7071test -z "$LN_S" && LN_S="ln -s" 7072test -z "$MAGIC_CMD" && MAGIC_CMD=file 7073test -z "$NM" && NM=nm 7074test -z "$SED" && SED=sed 7075test -z "$OBJDUMP" && OBJDUMP=objdump 7076test -z "$RANLIB" && RANLIB=: 7077test -z "$STRIP" && STRIP=: 7078test -z "$ac_objext" && ac_objext=o 7079 7080# Determine commands to create old-style static archives. 7081old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7082old_postinstall_cmds='chmod 644 $oldlib' 7083old_postuninstall_cmds= 7084 7085if test -n "$RANLIB"; then 7086 case $host_os in 7087 openbsd*) 7088 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7089 ;; 7090 *) 7091 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7092 ;; 7093 esac 7094 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7095fi 7096 7097for cc_temp in $compiler""; do 7098 case $cc_temp in 7099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7101 \-*) ;; 7102 *) break;; 7103 esac 7104done 7105cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7106 7107 7108# Only perform the check for file, if the check method requires it 7109case $deplibs_check_method in 7110file_magic*) 7111 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7112 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7113$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7114if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7115 $as_echo_n "(cached) " >&6 7116else 7117 case $MAGIC_CMD in 7118[\\/*] | ?:[\\/]*) 7119 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7120 ;; 7121*) 7122 lt_save_MAGIC_CMD="$MAGIC_CMD" 7123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7124 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7125 for ac_dir in $ac_dummy; do 7126 IFS="$lt_save_ifs" 7127 test -z "$ac_dir" && ac_dir=. 7128 if test -f $ac_dir/${ac_tool_prefix}file; then 7129 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7130 if test -n "$file_magic_test_file"; then 7131 case $deplibs_check_method in 7132 "file_magic "*) 7133 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7135 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7136 $EGREP "$file_magic_regex" > /dev/null; then 7137 : 7138 else 7139 cat <<EOF 1>&2 7140 7141*** Warning: the command libtool uses to detect shared libraries, 7142*** $file_magic_cmd, produces output that libtool cannot recognize. 7143*** The result is that libtool may fail to recognize shared libraries 7144*** as such. This will affect the creation of libtool libraries that 7145*** depend on shared libraries, but programs linked with such libtool 7146*** libraries will work regardless of this problem. Nevertheless, you 7147*** may want to report the problem to your system manager and/or to 7148*** bug-libtool@gnu.org 7149 7150EOF 7151 fi ;; 7152 esac 7153 fi 7154 break 7155 fi 7156 done 7157 IFS="$lt_save_ifs" 7158 MAGIC_CMD="$lt_save_MAGIC_CMD" 7159 ;; 7160esac 7161fi 7162 7163MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7164if test -n "$MAGIC_CMD"; then 7165 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7166$as_echo "$MAGIC_CMD" >&6; } 7167else 7168 { $as_echo "$as_me:$LINENO: result: no" >&5 7169$as_echo "no" >&6; } 7170fi 7171 7172if test -z "$lt_cv_path_MAGIC_CMD"; then 7173 if test -n "$ac_tool_prefix"; then 7174 { $as_echo "$as_me:$LINENO: checking for file" >&5 7175$as_echo_n "checking for file... " >&6; } 7176if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7177 $as_echo_n "(cached) " >&6 7178else 7179 case $MAGIC_CMD in 7180[\\/*] | ?:[\\/]*) 7181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7182 ;; 7183*) 7184 lt_save_MAGIC_CMD="$MAGIC_CMD" 7185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7186 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7187 for ac_dir in $ac_dummy; do 7188 IFS="$lt_save_ifs" 7189 test -z "$ac_dir" && ac_dir=. 7190 if test -f $ac_dir/file; then 7191 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7192 if test -n "$file_magic_test_file"; then 7193 case $deplibs_check_method in 7194 "file_magic "*) 7195 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7198 $EGREP "$file_magic_regex" > /dev/null; then 7199 : 7200 else 7201 cat <<EOF 1>&2 7202 7203*** Warning: the command libtool uses to detect shared libraries, 7204*** $file_magic_cmd, produces output that libtool cannot recognize. 7205*** The result is that libtool may fail to recognize shared libraries 7206*** as such. This will affect the creation of libtool libraries that 7207*** depend on shared libraries, but programs linked with such libtool 7208*** libraries will work regardless of this problem. Nevertheless, you 7209*** may want to report the problem to your system manager and/or to 7210*** bug-libtool@gnu.org 7211 7212EOF 7213 fi ;; 7214 esac 7215 fi 7216 break 7217 fi 7218 done 7219 IFS="$lt_save_ifs" 7220 MAGIC_CMD="$lt_save_MAGIC_CMD" 7221 ;; 7222esac 7223fi 7224 7225MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7226if test -n "$MAGIC_CMD"; then 7227 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7228$as_echo "$MAGIC_CMD" >&6; } 7229else 7230 { $as_echo "$as_me:$LINENO: result: no" >&5 7231$as_echo "no" >&6; } 7232fi 7233 7234 else 7235 MAGIC_CMD=: 7236 fi 7237fi 7238 7239 fi 7240 ;; 7241esac 7242 7243 7244 case $host_os in 7245 rhapsody* | darwin*) 7246 if test -n "$ac_tool_prefix"; then 7247 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7248set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7249{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7250$as_echo_n "checking for $ac_word... " >&6; } 7251if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7252 $as_echo_n "(cached) " >&6 7253else 7254 if test -n "$DSYMUTIL"; then 7255 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7256else 7257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7258for as_dir in $PATH 7259do 7260 IFS=$as_save_IFS 7261 test -z "$as_dir" && as_dir=. 7262 for ac_exec_ext in '' $ac_executable_extensions; do 7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7264 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7266 break 2 7267 fi 7268done 7269done 7270IFS=$as_save_IFS 7271 7272fi 7273fi 7274DSYMUTIL=$ac_cv_prog_DSYMUTIL 7275if test -n "$DSYMUTIL"; then 7276 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7277$as_echo "$DSYMUTIL" >&6; } 7278else 7279 { $as_echo "$as_me:$LINENO: result: no" >&5 7280$as_echo "no" >&6; } 7281fi 7282 7283 7284fi 7285if test -z "$ac_cv_prog_DSYMUTIL"; then 7286 ac_ct_DSYMUTIL=$DSYMUTIL 7287 # Extract the first word of "dsymutil", so it can be a program name with args. 7288set dummy dsymutil; ac_word=$2 7289{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7290$as_echo_n "checking for $ac_word... " >&6; } 7291if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7292 $as_echo_n "(cached) " >&6 7293else 7294 if test -n "$ac_ct_DSYMUTIL"; then 7295 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7296else 7297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7298for as_dir in $PATH 7299do 7300 IFS=$as_save_IFS 7301 test -z "$as_dir" && as_dir=. 7302 for ac_exec_ext in '' $ac_executable_extensions; do 7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7304 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7306 break 2 7307 fi 7308done 7309done 7310IFS=$as_save_IFS 7311 7312fi 7313fi 7314ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7315if test -n "$ac_ct_DSYMUTIL"; then 7316 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7317$as_echo "$ac_ct_DSYMUTIL" >&6; } 7318else 7319 { $as_echo "$as_me:$LINENO: result: no" >&5 7320$as_echo "no" >&6; } 7321fi 7322 7323 if test "x$ac_ct_DSYMUTIL" = x; then 7324 DSYMUTIL=":" 7325 else 7326 case $cross_compiling:$ac_tool_warned in 7327yes:) 7328{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7329whose name does not start with the host triplet. If you think this 7330configuration is useful to you, please write to autoconf@gnu.org." >&5 7331$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7332whose name does not start with the host triplet. If you think this 7333configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7334ac_tool_warned=yes ;; 7335esac 7336 DSYMUTIL=$ac_ct_DSYMUTIL 7337 fi 7338else 7339 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7340fi 7341 7342 if test -n "$ac_tool_prefix"; then 7343 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7344set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7345{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7346$as_echo_n "checking for $ac_word... " >&6; } 7347if test "${ac_cv_prog_NMEDIT+set}" = set; then 7348 $as_echo_n "(cached) " >&6 7349else 7350 if test -n "$NMEDIT"; then 7351 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7352else 7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7354for as_dir in $PATH 7355do 7356 IFS=$as_save_IFS 7357 test -z "$as_dir" && as_dir=. 7358 for ac_exec_ext in '' $ac_executable_extensions; do 7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7360 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7362 break 2 7363 fi 7364done 7365done 7366IFS=$as_save_IFS 7367 7368fi 7369fi 7370NMEDIT=$ac_cv_prog_NMEDIT 7371if test -n "$NMEDIT"; then 7372 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7373$as_echo "$NMEDIT" >&6; } 7374else 7375 { $as_echo "$as_me:$LINENO: result: no" >&5 7376$as_echo "no" >&6; } 7377fi 7378 7379 7380fi 7381if test -z "$ac_cv_prog_NMEDIT"; then 7382 ac_ct_NMEDIT=$NMEDIT 7383 # Extract the first word of "nmedit", so it can be a program name with args. 7384set dummy nmedit; ac_word=$2 7385{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7386$as_echo_n "checking for $ac_word... " >&6; } 7387if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7388 $as_echo_n "(cached) " >&6 7389else 7390 if test -n "$ac_ct_NMEDIT"; then 7391 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7392else 7393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7394for as_dir in $PATH 7395do 7396 IFS=$as_save_IFS 7397 test -z "$as_dir" && as_dir=. 7398 for ac_exec_ext in '' $ac_executable_extensions; do 7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7400 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7402 break 2 7403 fi 7404done 7405done 7406IFS=$as_save_IFS 7407 7408fi 7409fi 7410ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7411if test -n "$ac_ct_NMEDIT"; then 7412 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7413$as_echo "$ac_ct_NMEDIT" >&6; } 7414else 7415 { $as_echo "$as_me:$LINENO: result: no" >&5 7416$as_echo "no" >&6; } 7417fi 7418 7419 if test "x$ac_ct_NMEDIT" = x; then 7420 NMEDIT=":" 7421 else 7422 case $cross_compiling:$ac_tool_warned in 7423yes:) 7424{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7425whose name does not start with the host triplet. If you think this 7426configuration is useful to you, please write to autoconf@gnu.org." >&5 7427$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7428whose name does not start with the host triplet. If you think this 7429configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7430ac_tool_warned=yes ;; 7431esac 7432 NMEDIT=$ac_ct_NMEDIT 7433 fi 7434else 7435 NMEDIT="$ac_cv_prog_NMEDIT" 7436fi 7437 7438 7439 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7440$as_echo_n "checking for -single_module linker flag... " >&6; } 7441if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7442 $as_echo_n "(cached) " >&6 7443else 7444 lt_cv_apple_cc_single_mod=no 7445 if test -z "${LT_MULTI_MODULE}"; then 7446 # By default we will add the -single_module flag. You can override 7447 # by either setting the environment variable LT_MULTI_MODULE 7448 # non-empty at configure time, or by adding -multi_module to the 7449 # link flags. 7450 echo "int foo(void){return 1;}" > conftest.c 7451 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7452 -dynamiclib ${wl}-single_module conftest.c 7453 if test -f libconftest.dylib; then 7454 lt_cv_apple_cc_single_mod=yes 7455 rm -rf libconftest.dylib* 7456 fi 7457 rm conftest.c 7458 fi 7459fi 7460{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7461$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7462 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7463$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7464if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7465 $as_echo_n "(cached) " >&6 7466else 7467 lt_cv_ld_exported_symbols_list=no 7468 save_LDFLAGS=$LDFLAGS 7469 echo "_main" > conftest.sym 7470 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7471 cat >conftest.$ac_ext <<_ACEOF 7472/* confdefs.h. */ 7473_ACEOF 7474cat confdefs.h >>conftest.$ac_ext 7475cat >>conftest.$ac_ext <<_ACEOF 7476/* end confdefs.h. */ 7477 7478int 7479main () 7480{ 7481 7482 ; 7483 return 0; 7484} 7485_ACEOF 7486rm -f conftest.$ac_objext conftest$ac_exeext 7487if { (ac_try="$ac_link" 7488case "(($ac_try" in 7489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7490 *) ac_try_echo=$ac_try;; 7491esac 7492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7493$as_echo "$ac_try_echo") >&5 7494 (eval "$ac_link") 2>conftest.er1 7495 ac_status=$? 7496 grep -v '^ *+' conftest.er1 >conftest.err 7497 rm -f conftest.er1 7498 cat conftest.err >&5 7499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7500 (exit $ac_status); } && { 7501 test -z "$ac_c_werror_flag" || 7502 test ! -s conftest.err 7503 } && test -s conftest$ac_exeext && { 7504 test "$cross_compiling" = yes || 7505 $as_test_x conftest$ac_exeext 7506 }; then 7507 lt_cv_ld_exported_symbols_list=yes 7508else 7509 $as_echo "$as_me: failed program was:" >&5 7510sed 's/^/| /' conftest.$ac_ext >&5 7511 7512 lt_cv_ld_exported_symbols_list=no 7513fi 7514 7515rm -rf conftest.dSYM 7516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7517 conftest$ac_exeext conftest.$ac_ext 7518 LDFLAGS="$save_LDFLAGS" 7519 7520fi 7521{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7522$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7523 case $host_os in 7524 rhapsody* | darwin1.[0123]) 7525 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7526 darwin1.*) 7527 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7528 darwin*) 7529 # if running on 10.5 or later, the deployment target defaults 7530 # to the OS version, if on x86, and 10.4, the deployment 7531 # target defaults to 10.4. Don't you love it? 7532 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7533 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7534 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7535 10.[012]*) 7536 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7537 10.*) 7538 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7539 esac 7540 ;; 7541 esac 7542 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7543 _lt_dar_single_mod='$single_module' 7544 fi 7545 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7546 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7547 else 7548 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7549 fi 7550 if test "$DSYMUTIL" != ":"; then 7551 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7552 else 7553 _lt_dsymutil= 7554 fi 7555 ;; 7556 esac 7557 7558 7559enable_dlopen=no 7560enable_win32_dll=no 7561 7562# Check whether --enable-libtool-lock was given. 7563if test "${enable_libtool_lock+set}" = set; then 7564 enableval=$enable_libtool_lock; 7565fi 7566 7567test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7568 7569 7570# Check whether --with-pic was given. 7571if test "${with_pic+set}" = set; then 7572 withval=$with_pic; pic_mode="$withval" 7573else 7574 pic_mode=default 7575fi 7576 7577test -z "$pic_mode" && pic_mode=default 7578 7579# Use C for the default configuration in the libtool script 7580tagname= 7581lt_save_CC="$CC" 7582ac_ext=c 7583ac_cpp='$CPP $CPPFLAGS' 7584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7586ac_compiler_gnu=$ac_cv_c_compiler_gnu 7587 7588 7589# Source file extension for C test sources. 7590ac_ext=c 7591 7592# Object file extension for compiled C test sources. 7593objext=o 7594objext=$objext 7595 7596# Code to be used in simple compile tests 7597lt_simple_compile_test_code="int some_variable = 0;" 7598 7599# Code to be used in simple link tests 7600lt_simple_link_test_code='int main(){return(0);}' 7601 7602 7603# If no C compiler was specified, use CC. 7604LTCC=${LTCC-"$CC"} 7605 7606# If no C compiler flags were specified, use CFLAGS. 7607LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7608 7609# Allow CC to be a program name with arguments. 7610compiler=$CC 7611 7612 7613# save warnings/boilerplate of simple test code 7614ac_outfile=conftest.$ac_objext 7615echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7616eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7617_lt_compiler_boilerplate=`cat conftest.err` 7618$rm conftest* 7619 7620ac_outfile=conftest.$ac_objext 7621echo "$lt_simple_link_test_code" >conftest.$ac_ext 7622eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7623_lt_linker_boilerplate=`cat conftest.err` 7624$rm -r conftest* 7625 7626 7627 7628lt_prog_compiler_no_builtin_flag= 7629 7630if test "$GCC" = yes; then 7631 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7632 7633 7634{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7635$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7636if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7637 $as_echo_n "(cached) " >&6 7638else 7639 lt_cv_prog_compiler_rtti_exceptions=no 7640 ac_outfile=conftest.$ac_objext 7641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7642 lt_compiler_flag="-fno-rtti -fno-exceptions" 7643 # Insert the option either (1) after the last *FLAGS variable, or 7644 # (2) before a word containing "conftest.", or (3) at the end. 7645 # Note that $ac_compile itself does not contain backslashes and begins 7646 # with a dollar sign (not a hyphen), so the echo should work correctly. 7647 # The option is referenced via a variable to avoid confusing sed. 7648 lt_compile=`echo "$ac_compile" | $SED \ 7649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7651 -e 's:$: $lt_compiler_flag:'` 7652 (eval echo "\"\$as_me:7652: $lt_compile\"" >&5) 7653 (eval "$lt_compile" 2>conftest.err) 7654 ac_status=$? 7655 cat conftest.err >&5 7656 echo "$as_me:7656: \$? = $ac_status" >&5 7657 if (exit $ac_status) && test -s "$ac_outfile"; then 7658 # The compiler can only warn and ignore the option if not recognized 7659 # So say no if there are warnings other than the usual output. 7660 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7662 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7663 lt_cv_prog_compiler_rtti_exceptions=yes 7664 fi 7665 fi 7666 $rm conftest* 7667 7668fi 7669{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7670$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7671 7672if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7673 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7674else 7675 : 7676fi 7677 7678fi 7679 7680lt_prog_compiler_wl= 7681lt_prog_compiler_pic= 7682lt_prog_compiler_static= 7683 7684{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7685$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7686 7687 if test "$GCC" = yes; then 7688 lt_prog_compiler_wl='-Wl,' 7689 lt_prog_compiler_static='-static' 7690 7691 case $host_os in 7692 aix*) 7693 # All AIX code is PIC. 7694 if test "$host_cpu" = ia64; then 7695 # AIX 5 now supports IA64 processor 7696 lt_prog_compiler_static='-Bstatic' 7697 fi 7698 ;; 7699 7700 amigaos*) 7701 # FIXME: we need at least 68020 code to build shared libraries, but 7702 # adding the `-m68020' flag to GCC prevents building anything better, 7703 # like `-m68040'. 7704 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7705 ;; 7706 7707 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7708 # PIC is the default for these OSes. 7709 ;; 7710 7711 mingw* | cygwin* | pw32* | os2*) 7712 # This hack is so that the source file can tell whether it is being 7713 # built for inclusion in a dll (and should export symbols for example). 7714 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7715 # (--disable-auto-import) libraries 7716 lt_prog_compiler_pic='-DDLL_EXPORT' 7717 ;; 7718 7719 darwin* | rhapsody*) 7720 # PIC is the default on this platform 7721 # Common symbols not allowed in MH_DYLIB files 7722 lt_prog_compiler_pic='-fno-common' 7723 ;; 7724 7725 interix[3-9]*) 7726 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7727 # Instead, we relocate shared libraries at runtime. 7728 ;; 7729 7730 msdosdjgpp*) 7731 # Just because we use GCC doesn't mean we suddenly get shared libraries 7732 # on systems that don't support them. 7733 lt_prog_compiler_can_build_shared=no 7734 enable_shared=no 7735 ;; 7736 7737 sysv4*MP*) 7738 if test -d /usr/nec; then 7739 lt_prog_compiler_pic=-Kconform_pic 7740 fi 7741 ;; 7742 7743 hpux*) 7744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7745 # not for PA HP-UX. 7746 case $host_cpu in 7747 hppa*64*|ia64*) 7748 # +Z the default 7749 ;; 7750 *) 7751 lt_prog_compiler_pic='-fPIC' 7752 ;; 7753 esac 7754 ;; 7755 7756 *) 7757 lt_prog_compiler_pic='-fPIC' 7758 ;; 7759 esac 7760 else 7761 # PORTME Check for flag to pass linker flags through the system compiler. 7762 case $host_os in 7763 aix*) 7764 lt_prog_compiler_wl='-Wl,' 7765 if test "$host_cpu" = ia64; then 7766 # AIX 5 now supports IA64 processor 7767 lt_prog_compiler_static='-Bstatic' 7768 else 7769 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7770 fi 7771 ;; 7772 darwin*) 7773 # PIC is the default on this platform 7774 # Common symbols not allowed in MH_DYLIB files 7775 case $cc_basename in 7776 xlc*) 7777 lt_prog_compiler_pic='-qnocommon' 7778 lt_prog_compiler_wl='-Wl,' 7779 ;; 7780 esac 7781 ;; 7782 7783 mingw* | cygwin* | pw32* | os2*) 7784 # This hack is so that the source file can tell whether it is being 7785 # built for inclusion in a dll (and should export symbols for example). 7786 lt_prog_compiler_pic='-DDLL_EXPORT' 7787 ;; 7788 7789 hpux9* | hpux10* | hpux11*) 7790 lt_prog_compiler_wl='-Wl,' 7791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7792 # not for PA HP-UX. 7793 case $host_cpu in 7794 hppa*64*|ia64*) 7795 # +Z the default 7796 ;; 7797 *) 7798 lt_prog_compiler_pic='+Z' 7799 ;; 7800 esac 7801 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7802 lt_prog_compiler_static='${wl}-a ${wl}archive' 7803 ;; 7804 7805 irix5* | irix6* | nonstopux*) 7806 lt_prog_compiler_wl='-Wl,' 7807 # PIC (with -KPIC) is the default. 7808 lt_prog_compiler_static='-non_shared' 7809 ;; 7810 7811 newsos6) 7812 lt_prog_compiler_pic='-KPIC' 7813 lt_prog_compiler_static='-Bstatic' 7814 ;; 7815 7816 linux* | k*bsd*-gnu) 7817 case $cc_basename in 7818 icc* | ecc*) 7819 lt_prog_compiler_wl='-Wl,' 7820 lt_prog_compiler_pic='-KPIC' 7821 lt_prog_compiler_static='-static' 7822 ;; 7823 pgcc* | pgf77* | pgf90* | pgf95*) 7824 # Portland Group compilers (*not* the Pentium gcc compiler, 7825 # which looks to be a dead project) 7826 lt_prog_compiler_wl='-Wl,' 7827 lt_prog_compiler_pic='-fpic' 7828 lt_prog_compiler_static='-Bstatic' 7829 ;; 7830 ccc*) 7831 lt_prog_compiler_wl='-Wl,' 7832 # All Alpha code is PIC. 7833 lt_prog_compiler_static='-non_shared' 7834 ;; 7835 *) 7836 case `$CC -V 2>&1 | sed 5q` in 7837 *Sun\ C*) 7838 # Sun C 5.9 7839 lt_prog_compiler_pic='-KPIC' 7840 lt_prog_compiler_static='-Bstatic' 7841 lt_prog_compiler_wl='-Wl,' 7842 ;; 7843 *Sun\ F*) 7844 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7845 lt_prog_compiler_pic='-KPIC' 7846 lt_prog_compiler_static='-Bstatic' 7847 lt_prog_compiler_wl='' 7848 ;; 7849 esac 7850 ;; 7851 esac 7852 ;; 7853 7854 osf3* | osf4* | osf5*) 7855 lt_prog_compiler_wl='-Wl,' 7856 # All OSF/1 code is PIC. 7857 lt_prog_compiler_static='-non_shared' 7858 ;; 7859 7860 rdos*) 7861 lt_prog_compiler_static='-non_shared' 7862 ;; 7863 7864 solaris*) 7865 lt_prog_compiler_pic='-KPIC' 7866 lt_prog_compiler_static='-Bstatic' 7867 case $cc_basename in 7868 f77* | f90* | f95*) 7869 lt_prog_compiler_wl='-Qoption ld ';; 7870 *) 7871 lt_prog_compiler_wl='-Wl,';; 7872 esac 7873 ;; 7874 7875 sunos4*) 7876 lt_prog_compiler_wl='-Qoption ld ' 7877 lt_prog_compiler_pic='-PIC' 7878 lt_prog_compiler_static='-Bstatic' 7879 ;; 7880 7881 sysv4 | sysv4.2uw2* | sysv4.3*) 7882 lt_prog_compiler_wl='-Wl,' 7883 lt_prog_compiler_pic='-KPIC' 7884 lt_prog_compiler_static='-Bstatic' 7885 ;; 7886 7887 sysv4*MP*) 7888 if test -d /usr/nec ;then 7889 lt_prog_compiler_pic='-Kconform_pic' 7890 lt_prog_compiler_static='-Bstatic' 7891 fi 7892 ;; 7893 7894 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7895 lt_prog_compiler_wl='-Wl,' 7896 lt_prog_compiler_pic='-KPIC' 7897 lt_prog_compiler_static='-Bstatic' 7898 ;; 7899 7900 unicos*) 7901 lt_prog_compiler_wl='-Wl,' 7902 lt_prog_compiler_can_build_shared=no 7903 ;; 7904 7905 uts4*) 7906 lt_prog_compiler_pic='-pic' 7907 lt_prog_compiler_static='-Bstatic' 7908 ;; 7909 7910 *) 7911 lt_prog_compiler_can_build_shared=no 7912 ;; 7913 esac 7914 fi 7915 7916{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7917$as_echo "$lt_prog_compiler_pic" >&6; } 7918 7919# 7920# Check to make sure the PIC flag actually works. 7921# 7922if test -n "$lt_prog_compiler_pic"; then 7923 7924{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7925$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7926if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7927 $as_echo_n "(cached) " >&6 7928else 7929 lt_cv_prog_compiler_pic_works=no 7930 ac_outfile=conftest.$ac_objext 7931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7932 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7933 # Insert the option either (1) after the last *FLAGS variable, or 7934 # (2) before a word containing "conftest.", or (3) at the end. 7935 # Note that $ac_compile itself does not contain backslashes and begins 7936 # with a dollar sign (not a hyphen), so the echo should work correctly. 7937 # The option is referenced via a variable to avoid confusing sed. 7938 lt_compile=`echo "$ac_compile" | $SED \ 7939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7941 -e 's:$: $lt_compiler_flag:'` 7942 (eval echo "\"\$as_me:7942: $lt_compile\"" >&5) 7943 (eval "$lt_compile" 2>conftest.err) 7944 ac_status=$? 7945 cat conftest.err >&5 7946 echo "$as_me:7946: \$? = $ac_status" >&5 7947 if (exit $ac_status) && test -s "$ac_outfile"; then 7948 # The compiler can only warn and ignore the option if not recognized 7949 # So say no if there are warnings other than the usual output. 7950 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7952 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7953 lt_cv_prog_compiler_pic_works=yes 7954 fi 7955 fi 7956 $rm conftest* 7957 7958fi 7959{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7960$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7961 7962if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7963 case $lt_prog_compiler_pic in 7964 "" | " "*) ;; 7965 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7966 esac 7967else 7968 lt_prog_compiler_pic= 7969 lt_prog_compiler_can_build_shared=no 7970fi 7971 7972fi 7973case $host_os in 7974 # For platforms which do not support PIC, -DPIC is meaningless: 7975 *djgpp*) 7976 lt_prog_compiler_pic= 7977 ;; 7978 *) 7979 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7980 ;; 7981esac 7982 7983# 7984# Check to make sure the static flag actually works. 7985# 7986wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7987{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7988$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7989if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7990 $as_echo_n "(cached) " >&6 7991else 7992 lt_cv_prog_compiler_static_works=no 7993 save_LDFLAGS="$LDFLAGS" 7994 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7995 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7997 # The linker can only warn and ignore the option if not recognized 7998 # So say no if there are warnings 7999 if test -s conftest.err; then 8000 # Append any errors to the config.log. 8001 cat conftest.err 1>&5 8002 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8004 if diff conftest.exp conftest.er2 >/dev/null; then 8005 lt_cv_prog_compiler_static_works=yes 8006 fi 8007 else 8008 lt_cv_prog_compiler_static_works=yes 8009 fi 8010 fi 8011 $rm -r conftest* 8012 LDFLAGS="$save_LDFLAGS" 8013 8014fi 8015{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8016$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8017 8018if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8019 : 8020else 8021 lt_prog_compiler_static= 8022fi 8023 8024 8025{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8026$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8027if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8028 $as_echo_n "(cached) " >&6 8029else 8030 lt_cv_prog_compiler_c_o=no 8031 $rm -r conftest 2>/dev/null 8032 mkdir conftest 8033 cd conftest 8034 mkdir out 8035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8036 8037 lt_compiler_flag="-o out/conftest2.$ac_objext" 8038 # Insert the option either (1) after the last *FLAGS variable, or 8039 # (2) before a word containing "conftest.", or (3) at the end. 8040 # Note that $ac_compile itself does not contain backslashes and begins 8041 # with a dollar sign (not a hyphen), so the echo should work correctly. 8042 lt_compile=`echo "$ac_compile" | $SED \ 8043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8045 -e 's:$: $lt_compiler_flag:'` 8046 (eval echo "\"\$as_me:8046: $lt_compile\"" >&5) 8047 (eval "$lt_compile" 2>out/conftest.err) 8048 ac_status=$? 8049 cat out/conftest.err >&5 8050 echo "$as_me:8050: \$? = $ac_status" >&5 8051 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8052 then 8053 # The compiler can only warn and ignore the option if not recognized 8054 # So say no if there are warnings 8055 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8056 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8057 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8058 lt_cv_prog_compiler_c_o=yes 8059 fi 8060 fi 8061 chmod u+w . 2>&5 8062 $rm conftest* 8063 # SGI C++ compiler will create directory out/ii_files/ for 8064 # template instantiation 8065 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8066 $rm out/* && rmdir out 8067 cd .. 8068 rmdir conftest 8069 $rm conftest* 8070 8071fi 8072{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8073$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8074 8075 8076hard_links="nottested" 8077if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8078 # do not overwrite the value of need_locks provided by the user 8079 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8080$as_echo_n "checking if we can lock with hard links... " >&6; } 8081 hard_links=yes 8082 $rm conftest* 8083 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8084 touch conftest.a 8085 ln conftest.a conftest.b 2>&5 || hard_links=no 8086 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8087 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8088$as_echo "$hard_links" >&6; } 8089 if test "$hard_links" = no; then 8090 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8091$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8092 need_locks=warn 8093 fi 8094else 8095 need_locks=no 8096fi 8097 8098{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8099$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8100 8101 runpath_var= 8102 allow_undefined_flag= 8103 enable_shared_with_static_runtimes=no 8104 archive_cmds= 8105 archive_expsym_cmds= 8106 old_archive_From_new_cmds= 8107 old_archive_from_expsyms_cmds= 8108 export_dynamic_flag_spec= 8109 whole_archive_flag_spec= 8110 thread_safe_flag_spec= 8111 hardcode_libdir_flag_spec= 8112 hardcode_libdir_flag_spec_ld= 8113 hardcode_libdir_separator= 8114 hardcode_direct=no 8115 hardcode_minus_L=no 8116 hardcode_shlibpath_var=unsupported 8117 link_all_deplibs=unknown 8118 hardcode_automatic=no 8119 module_cmds= 8120 module_expsym_cmds= 8121 always_export_symbols=no 8122 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8123 # include_expsyms should be a list of space-separated symbols to be *always* 8124 # included in the symbol list 8125 include_expsyms= 8126 # exclude_expsyms can be an extended regexp of symbols to exclude 8127 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8128 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8129 # as well as any symbol that contains `d'. 8130 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8131 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8132 # platforms (ab)use it in PIC code, but their linkers get confused if 8133 # the symbol is explicitly referenced. Since portable code cannot 8134 # rely on this symbol name, it's probably fine to never include it in 8135 # preloaded symbol tables. 8136 # Exclude shared library initialization/finalization symbols. 8137 extract_expsyms_cmds= 8138 # Just being paranoid about ensuring that cc_basename is set. 8139 for cc_temp in $compiler""; do 8140 case $cc_temp in 8141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8143 \-*) ;; 8144 *) break;; 8145 esac 8146done 8147cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8148 8149 case $host_os in 8150 cygwin* | mingw* | pw32*) 8151 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8152 # When not using gcc, we currently assume that we are using 8153 # Microsoft Visual C++. 8154 if test "$GCC" != yes; then 8155 with_gnu_ld=no 8156 fi 8157 ;; 8158 interix*) 8159 # we just hope/assume this is gcc and not c89 (= MSVC++) 8160 with_gnu_ld=yes 8161 ;; 8162 openbsd*) 8163 with_gnu_ld=no 8164 ;; 8165 esac 8166 8167 ld_shlibs=yes 8168 if test "$with_gnu_ld" = yes; then 8169 # If archive_cmds runs LD, not CC, wlarc should be empty 8170 wlarc='${wl}' 8171 8172 # Set some defaults for GNU ld with shared library support. These 8173 # are reset later if shared libraries are not supported. Putting them 8174 # here allows them to be overridden if necessary. 8175 runpath_var=LD_RUN_PATH 8176 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8177 export_dynamic_flag_spec='${wl}--export-dynamic' 8178 # ancient GNU ld didn't support --whole-archive et. al. 8179 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8180 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8181 else 8182 whole_archive_flag_spec= 8183 fi 8184 supports_anon_versioning=no 8185 case `$LD -v 2>/dev/null` in 8186 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8187 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8188 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8189 *\ 2.11.*) ;; # other 2.11 versions 8190 *) supports_anon_versioning=yes ;; 8191 esac 8192 8193 # See if GNU ld supports shared libraries. 8194 case $host_os in 8195 aix[3-9]*) 8196 # On AIX/PPC, the GNU linker is very broken 8197 if test "$host_cpu" != ia64; then 8198 ld_shlibs=no 8199 cat <<EOF 1>&2 8200 8201*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8202*** to be unable to reliably create shared libraries on AIX. 8203*** Therefore, libtool is disabling shared libraries support. If you 8204*** really care for shared libraries, you may want to modify your PATH 8205*** so that a non-GNU linker is found, and then restart. 8206 8207EOF 8208 fi 8209 ;; 8210 8211 amigaos*) 8212 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)' 8213 hardcode_libdir_flag_spec='-L$libdir' 8214 hardcode_minus_L=yes 8215 8216 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8217 # that the semantics of dynamic libraries on AmigaOS, at least up 8218 # to version 4, is to share data among multiple programs linked 8219 # with the same dynamic library. Since this doesn't match the 8220 # behavior of shared libraries on other platforms, we can't use 8221 # them. 8222 ld_shlibs=no 8223 ;; 8224 8225 beos*) 8226 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8227 allow_undefined_flag=unsupported 8228 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8229 # support --undefined. This deserves some investigation. FIXME 8230 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8231 else 8232 ld_shlibs=no 8233 fi 8234 ;; 8235 8236 cygwin* | mingw* | pw32*) 8237 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8238 # as there is no search path for DLLs. 8239 hardcode_libdir_flag_spec='-L$libdir' 8240 allow_undefined_flag=unsupported 8241 always_export_symbols=no 8242 enable_shared_with_static_runtimes=yes 8243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8244 8245 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8247 # If the export-symbols file already is a .def file (1st line 8248 # is EXPORTS), use it as is; otherwise, prepend... 8249 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8250 cp $export_symbols $output_objdir/$soname.def; 8251 else 8252 echo EXPORTS > $output_objdir/$soname.def; 8253 cat $export_symbols >> $output_objdir/$soname.def; 8254 fi~ 8255 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8256 else 8257 ld_shlibs=no 8258 fi 8259 ;; 8260 8261 interix[3-9]*) 8262 hardcode_direct=no 8263 hardcode_shlibpath_var=no 8264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8265 export_dynamic_flag_spec='${wl}-E' 8266 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8267 # Instead, shared libraries are loaded at an image base (0x10000000 by 8268 # default) and relocated if they conflict, which is a slow very memory 8269 # consuming and fragmenting process. To avoid this, we pick a random, 8270 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8271 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8272 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8273 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' 8274 ;; 8275 8276 gnu* | linux* | k*bsd*-gnu) 8277 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8278 tmp_addflag= 8279 case $cc_basename,$host_cpu in 8280 pgcc*) # Portland Group C compiler 8281 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' 8282 tmp_addflag=' $pic_flag' 8283 ;; 8284 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8285 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' 8286 tmp_addflag=' $pic_flag -Mnomain' ;; 8287 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8288 tmp_addflag=' -i_dynamic' ;; 8289 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8290 tmp_addflag=' -i_dynamic -nofor_main' ;; 8291 ifc* | ifort*) # Intel Fortran compiler 8292 tmp_addflag=' -nofor_main' ;; 8293 esac 8294 case `$CC -V 2>&1 | sed 5q` in 8295 *Sun\ C*) # Sun C 5.9 8296 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 8297 tmp_sharedflag='-G' ;; 8298 *Sun\ F*) # Sun Fortran 8.3 8299 tmp_sharedflag='-G' ;; 8300 *) 8301 tmp_sharedflag='-shared' ;; 8302 esac 8303 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8304 8305 if test $supports_anon_versioning = yes; then 8306 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8307 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8308 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8309 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8310 fi 8311 else 8312 ld_shlibs=no 8313 fi 8314 ;; 8315 8316 netbsd*) 8317 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8318 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8319 wlarc= 8320 else 8321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8323 fi 8324 ;; 8325 8326 solaris*) 8327 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8328 ld_shlibs=no 8329 cat <<EOF 1>&2 8330 8331*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8332*** create shared libraries on Solaris systems. Therefore, libtool 8333*** is disabling shared libraries support. We urge you to upgrade GNU 8334*** binutils to release 2.9.1 or newer. Another option is to modify 8335*** your PATH or compiler configuration so that the native linker is 8336*** used, and then restart. 8337 8338EOF 8339 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8342 else 8343 ld_shlibs=no 8344 fi 8345 ;; 8346 8347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8348 case `$LD -v 2>&1` in 8349 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8350 ld_shlibs=no 8351 cat <<_LT_EOF 1>&2 8352 8353*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8354*** reliably create shared libraries on SCO systems. Therefore, libtool 8355*** is disabling shared libraries support. We urge you to upgrade GNU 8356*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8357*** your PATH or compiler configuration so that the native linker is 8358*** used, and then restart. 8359 8360_LT_EOF 8361 ;; 8362 *) 8363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8364 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8367 else 8368 ld_shlibs=no 8369 fi 8370 ;; 8371 esac 8372 ;; 8373 8374 sunos4*) 8375 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8376 wlarc= 8377 hardcode_direct=yes 8378 hardcode_shlibpath_var=no 8379 ;; 8380 8381 *) 8382 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8385 else 8386 ld_shlibs=no 8387 fi 8388 ;; 8389 esac 8390 8391 if test "$ld_shlibs" = no; then 8392 runpath_var= 8393 hardcode_libdir_flag_spec= 8394 export_dynamic_flag_spec= 8395 whole_archive_flag_spec= 8396 fi 8397 else 8398 # PORTME fill in a description of your system's linker (not GNU ld) 8399 case $host_os in 8400 aix3*) 8401 allow_undefined_flag=unsupported 8402 always_export_symbols=yes 8403 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' 8404 # Note: this linker hardcodes the directories in LIBPATH if there 8405 # are no directories specified by -L. 8406 hardcode_minus_L=yes 8407 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8408 # Neither direct hardcoding nor static linking is supported with a 8409 # broken collect2. 8410 hardcode_direct=unsupported 8411 fi 8412 ;; 8413 8414 aix[4-9]*) 8415 if test "$host_cpu" = ia64; then 8416 # On IA64, the linker does run time linking by default, so we don't 8417 # have to do anything special. 8418 aix_use_runtimelinking=no 8419 exp_sym_flag='-Bexport' 8420 no_entry_flag="" 8421 else 8422 # If we're using GNU nm, then we don't want the "-C" option. 8423 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8424 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8425 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' 8426 else 8427 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' 8428 fi 8429 aix_use_runtimelinking=no 8430 8431 # Test if we are trying to use run time linking or normal 8432 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8433 # need to do runtime linking. 8434 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8435 for ld_flag in $LDFLAGS; do 8436 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8437 aix_use_runtimelinking=yes 8438 break 8439 fi 8440 done 8441 ;; 8442 esac 8443 8444 exp_sym_flag='-bexport' 8445 no_entry_flag='-bnoentry' 8446 fi 8447 8448 # When large executables or shared objects are built, AIX ld can 8449 # have problems creating the table of contents. If linking a library 8450 # or program results in "error TOC overflow" add -mminimal-toc to 8451 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8452 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8453 8454 archive_cmds='' 8455 hardcode_direct=yes 8456 hardcode_libdir_separator=':' 8457 link_all_deplibs=yes 8458 8459 if test "$GCC" = yes; then 8460 case $host_os in aix4.[012]|aix4.[012].*) 8461 # We only want to do this on AIX 4.2 and lower, the check 8462 # below for broken collect2 doesn't work under 4.3+ 8463 collect2name=`${CC} -print-prog-name=collect2` 8464 if test -f "$collect2name" && \ 8465 strings "$collect2name" | grep resolve_lib_name >/dev/null 8466 then 8467 # We have reworked collect2 8468 : 8469 else 8470 # We have old collect2 8471 hardcode_direct=unsupported 8472 # It fails to find uninstalled libraries when the uninstalled 8473 # path is not listed in the libpath. Setting hardcode_minus_L 8474 # to unsupported forces relinking 8475 hardcode_minus_L=yes 8476 hardcode_libdir_flag_spec='-L$libdir' 8477 hardcode_libdir_separator= 8478 fi 8479 ;; 8480 esac 8481 shared_flag='-shared' 8482 if test "$aix_use_runtimelinking" = yes; then 8483 shared_flag="$shared_flag "'${wl}-G' 8484 fi 8485 else 8486 # not using gcc 8487 if test "$host_cpu" = ia64; then 8488 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8489 # chokes on -Wl,-G. The following line is correct: 8490 shared_flag='-G' 8491 else 8492 if test "$aix_use_runtimelinking" = yes; then 8493 shared_flag='${wl}-G' 8494 else 8495 shared_flag='${wl}-bM:SRE' 8496 fi 8497 fi 8498 fi 8499 8500 # It seems that -bexpall does not export symbols beginning with 8501 # underscore (_), so it is better to generate a list of symbols to export. 8502 always_export_symbols=yes 8503 if test "$aix_use_runtimelinking" = yes; then 8504 # Warning - without using the other runtime loading flags (-brtl), 8505 # -berok will link without error, but may produce a broken library. 8506 allow_undefined_flag='-berok' 8507 # Determine the default libpath from the value encoded in an empty executable. 8508 cat >conftest.$ac_ext <<_ACEOF 8509/* confdefs.h. */ 8510_ACEOF 8511cat confdefs.h >>conftest.$ac_ext 8512cat >>conftest.$ac_ext <<_ACEOF 8513/* end confdefs.h. */ 8514 8515int 8516main () 8517{ 8518 8519 ; 8520 return 0; 8521} 8522_ACEOF 8523rm -f conftest.$ac_objext conftest$ac_exeext 8524if { (ac_try="$ac_link" 8525case "(($ac_try" in 8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8527 *) ac_try_echo=$ac_try;; 8528esac 8529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8530$as_echo "$ac_try_echo") >&5 8531 (eval "$ac_link") 2>conftest.er1 8532 ac_status=$? 8533 grep -v '^ *+' conftest.er1 >conftest.err 8534 rm -f conftest.er1 8535 cat conftest.err >&5 8536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8537 (exit $ac_status); } && { 8538 test -z "$ac_c_werror_flag" || 8539 test ! -s conftest.err 8540 } && test -s conftest$ac_exeext && { 8541 test "$cross_compiling" = yes || 8542 $as_test_x conftest$ac_exeext 8543 }; then 8544 8545lt_aix_libpath_sed=' 8546 /Import File Strings/,/^$/ { 8547 /^0/ { 8548 s/^0 *\(.*\)$/\1/ 8549 p 8550 } 8551 }' 8552aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8553# Check for a 64-bit object if we didn't find anything. 8554if test -z "$aix_libpath"; then 8555 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8556fi 8557else 8558 $as_echo "$as_me: failed program was:" >&5 8559sed 's/^/| /' conftest.$ac_ext >&5 8560 8561 8562fi 8563 8564rm -rf conftest.dSYM 8565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8566 conftest$ac_exeext conftest.$ac_ext 8567if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8568 8569 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8570 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" 8571 else 8572 if test "$host_cpu" = ia64; then 8573 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8574 allow_undefined_flag="-z nodefs" 8575 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" 8576 else 8577 # Determine the default libpath from the value encoded in an empty executable. 8578 cat >conftest.$ac_ext <<_ACEOF 8579/* confdefs.h. */ 8580_ACEOF 8581cat confdefs.h >>conftest.$ac_ext 8582cat >>conftest.$ac_ext <<_ACEOF 8583/* end confdefs.h. */ 8584 8585int 8586main () 8587{ 8588 8589 ; 8590 return 0; 8591} 8592_ACEOF 8593rm -f conftest.$ac_objext conftest$ac_exeext 8594if { (ac_try="$ac_link" 8595case "(($ac_try" in 8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8597 *) ac_try_echo=$ac_try;; 8598esac 8599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8600$as_echo "$ac_try_echo") >&5 8601 (eval "$ac_link") 2>conftest.er1 8602 ac_status=$? 8603 grep -v '^ *+' conftest.er1 >conftest.err 8604 rm -f conftest.er1 8605 cat conftest.err >&5 8606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8607 (exit $ac_status); } && { 8608 test -z "$ac_c_werror_flag" || 8609 test ! -s conftest.err 8610 } && test -s conftest$ac_exeext && { 8611 test "$cross_compiling" = yes || 8612 $as_test_x conftest$ac_exeext 8613 }; then 8614 8615lt_aix_libpath_sed=' 8616 /Import File Strings/,/^$/ { 8617 /^0/ { 8618 s/^0 *\(.*\)$/\1/ 8619 p 8620 } 8621 }' 8622aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8623# Check for a 64-bit object if we didn't find anything. 8624if test -z "$aix_libpath"; then 8625 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8626fi 8627else 8628 $as_echo "$as_me: failed program was:" >&5 8629sed 's/^/| /' conftest.$ac_ext >&5 8630 8631 8632fi 8633 8634rm -rf conftest.dSYM 8635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8636 conftest$ac_exeext conftest.$ac_ext 8637if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8638 8639 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8640 # Warning - without using the other run time loading flags, 8641 # -berok will link without error, but may produce a broken library. 8642 no_undefined_flag=' ${wl}-bernotok' 8643 allow_undefined_flag=' ${wl}-berok' 8644 # Exported symbols can be pulled into shared objects from archives 8645 whole_archive_flag_spec='$convenience' 8646 archive_cmds_need_lc=yes 8647 # This is similar to how AIX traditionally builds its shared libraries. 8648 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' 8649 fi 8650 fi 8651 ;; 8652 8653 amigaos*) 8654 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)' 8655 hardcode_libdir_flag_spec='-L$libdir' 8656 hardcode_minus_L=yes 8657 # see comment about different semantics on the GNU ld section 8658 ld_shlibs=no 8659 ;; 8660 8661 bsdi[45]*) 8662 export_dynamic_flag_spec=-rdynamic 8663 ;; 8664 8665 cygwin* | mingw* | pw32*) 8666 # When not using gcc, we currently assume that we are using 8667 # Microsoft Visual C++. 8668 # hardcode_libdir_flag_spec is actually meaningless, as there is 8669 # no search path for DLLs. 8670 hardcode_libdir_flag_spec=' ' 8671 allow_undefined_flag=unsupported 8672 # Tell ltmain to make .lib files, not .a files. 8673 libext=lib 8674 # Tell ltmain to make .dll files, not .so files. 8675 shrext_cmds=".dll" 8676 # FIXME: Setting linknames here is a bad hack. 8677 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8678 # The linker will automatically build a .lib file if we build a DLL. 8679 old_archive_From_new_cmds='true' 8680 # FIXME: Should let the user specify the lib program. 8681 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8682 fix_srcfile_path='`cygpath -w "$srcfile"`' 8683 enable_shared_with_static_runtimes=yes 8684 ;; 8685 8686 darwin* | rhapsody*) 8687 case $host_os in 8688 rhapsody* | darwin1.[012]) 8689 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8690 ;; 8691 *) # Darwin 1.3 on 8692 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8693 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8694 else 8695 case ${MACOSX_DEPLOYMENT_TARGET} in 8696 10.[012]) 8697 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8698 ;; 8699 10.*) 8700 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8701 ;; 8702 esac 8703 fi 8704 ;; 8705 esac 8706 archive_cmds_need_lc=no 8707 hardcode_direct=no 8708 hardcode_automatic=yes 8709 hardcode_shlibpath_var=unsupported 8710 whole_archive_flag_spec='' 8711 link_all_deplibs=yes 8712 if test "$GCC" = yes ; then 8713 output_verbose_link_cmd='echo' 8714 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8715 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8716 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 8717 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 8718 else 8719 case $cc_basename in 8720 xlc*) 8721 output_verbose_link_cmd='echo' 8722 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8723 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8724 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8725 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8726 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}' 8727 ;; 8728 *) 8729 ld_shlibs=no 8730 ;; 8731 esac 8732 fi 8733 ;; 8734 8735 dgux*) 8736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8737 hardcode_libdir_flag_spec='-L$libdir' 8738 hardcode_shlibpath_var=no 8739 ;; 8740 8741 freebsd1*) 8742 ld_shlibs=no 8743 ;; 8744 8745 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8746 # support. Future versions do this automatically, but an explicit c++rt0.o 8747 # does not break anything, and helps significantly (at the cost of a little 8748 # extra space). 8749 freebsd2.2*) 8750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8751 hardcode_libdir_flag_spec='-R$libdir' 8752 hardcode_direct=yes 8753 hardcode_shlibpath_var=no 8754 ;; 8755 8756 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8757 freebsd2*) 8758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8759 hardcode_direct=yes 8760 hardcode_minus_L=yes 8761 hardcode_shlibpath_var=no 8762 ;; 8763 8764 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8765 freebsd* | dragonfly*) 8766 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8767 hardcode_libdir_flag_spec='-R$libdir' 8768 hardcode_direct=yes 8769 hardcode_shlibpath_var=no 8770 ;; 8771 8772 hpux9*) 8773 if test "$GCC" = yes; then 8774 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' 8775 else 8776 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' 8777 fi 8778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8779 hardcode_libdir_separator=: 8780 hardcode_direct=yes 8781 8782 # hardcode_minus_L: Not really in the search PATH, 8783 # but as the default location of the library. 8784 hardcode_minus_L=yes 8785 export_dynamic_flag_spec='${wl}-E' 8786 ;; 8787 8788 hpux10*) 8789 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8791 else 8792 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8793 fi 8794 if test "$with_gnu_ld" = no; then 8795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8796 hardcode_libdir_separator=: 8797 8798 hardcode_direct=yes 8799 export_dynamic_flag_spec='${wl}-E' 8800 8801 # hardcode_minus_L: Not really in the search PATH, 8802 # but as the default location of the library. 8803 hardcode_minus_L=yes 8804 fi 8805 ;; 8806 8807 hpux11*) 8808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8809 case $host_cpu in 8810 hppa*64*) 8811 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8812 ;; 8813 ia64*) 8814 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8815 ;; 8816 *) 8817 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8818 ;; 8819 esac 8820 else 8821 case $host_cpu in 8822 hppa*64*) 8823 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8824 ;; 8825 ia64*) 8826 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8827 ;; 8828 *) 8829 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8830 ;; 8831 esac 8832 fi 8833 if test "$with_gnu_ld" = no; then 8834 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8835 hardcode_libdir_separator=: 8836 8837 case $host_cpu in 8838 hppa*64*|ia64*) 8839 hardcode_libdir_flag_spec_ld='+b $libdir' 8840 hardcode_direct=no 8841 hardcode_shlibpath_var=no 8842 ;; 8843 *) 8844 hardcode_direct=yes 8845 export_dynamic_flag_spec='${wl}-E' 8846 8847 # hardcode_minus_L: Not really in the search PATH, 8848 # but as the default location of the library. 8849 hardcode_minus_L=yes 8850 ;; 8851 esac 8852 fi 8853 ;; 8854 8855 irix5* | irix6* | nonstopux*) 8856 if test "$GCC" = yes; then 8857 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' 8858 else 8859 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' 8860 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8861 fi 8862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8863 hardcode_libdir_separator=: 8864 link_all_deplibs=yes 8865 ;; 8866 8867 netbsd*) 8868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8870 else 8871 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8872 fi 8873 hardcode_libdir_flag_spec='-R$libdir' 8874 hardcode_direct=yes 8875 hardcode_shlibpath_var=no 8876 ;; 8877 8878 newsos6) 8879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8880 hardcode_direct=yes 8881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8882 hardcode_libdir_separator=: 8883 hardcode_shlibpath_var=no 8884 ;; 8885 8886 openbsd*) 8887 if test -f /usr/libexec/ld.so; then 8888 hardcode_direct=yes 8889 hardcode_shlibpath_var=no 8890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8892 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8894 export_dynamic_flag_spec='${wl}-E' 8895 else 8896 case $host_os in 8897 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8899 hardcode_libdir_flag_spec='-R$libdir' 8900 ;; 8901 *) 8902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8904 ;; 8905 esac 8906 fi 8907 else 8908 ld_shlibs=no 8909 fi 8910 ;; 8911 8912 os2*) 8913 hardcode_libdir_flag_spec='-L$libdir' 8914 hardcode_minus_L=yes 8915 allow_undefined_flag=unsupported 8916 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' 8917 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8918 ;; 8919 8920 osf3*) 8921 if test "$GCC" = yes; then 8922 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8923 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' 8924 else 8925 allow_undefined_flag=' -expect_unresolved \*' 8926 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' 8927 fi 8928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8929 hardcode_libdir_separator=: 8930 ;; 8931 8932 osf4* | osf5*) # as osf3* with the addition of -msym flag 8933 if test "$GCC" = yes; then 8934 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8935 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' 8936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8937 else 8938 allow_undefined_flag=' -expect_unresolved \*' 8939 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' 8940 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8941 $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' 8942 8943 # Both c and cxx compiler support -rpath directly 8944 hardcode_libdir_flag_spec='-rpath $libdir' 8945 fi 8946 hardcode_libdir_separator=: 8947 ;; 8948 8949 solaris*) 8950 no_undefined_flag=' -z text' 8951 if test "$GCC" = yes; then 8952 wlarc='${wl}' 8953 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8954 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8955 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8956 else 8957 wlarc='' 8958 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8959 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8960 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8961 fi 8962 hardcode_libdir_flag_spec='-R$libdir' 8963 hardcode_shlibpath_var=no 8964 case $host_os in 8965 solaris2.[0-5] | solaris2.[0-5].*) ;; 8966 *) 8967 # The compiler driver will combine and reorder linker options, 8968 # but understands `-z linker_flag'. GCC discards it without `$wl', 8969 # but is careful enough not to reorder. 8970 # Supported since Solaris 2.6 (maybe 2.5.1?) 8971 if test "$GCC" = yes; then 8972 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8973 else 8974 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8975 fi 8976 ;; 8977 esac 8978 link_all_deplibs=yes 8979 ;; 8980 8981 sunos4*) 8982 if test "x$host_vendor" = xsequent; then 8983 # Use $CC to link under sequent, because it throws in some extra .o 8984 # files that make .init and .fini sections work. 8985 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8986 else 8987 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8988 fi 8989 hardcode_libdir_flag_spec='-L$libdir' 8990 hardcode_direct=yes 8991 hardcode_minus_L=yes 8992 hardcode_shlibpath_var=no 8993 ;; 8994 8995 sysv4) 8996 case $host_vendor in 8997 sni) 8998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8999 hardcode_direct=yes # is this really true??? 9000 ;; 9001 siemens) 9002 ## LD is ld it makes a PLAMLIB 9003 ## CC just makes a GrossModule. 9004 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9005 reload_cmds='$CC -r -o $output$reload_objs' 9006 hardcode_direct=no 9007 ;; 9008 motorola) 9009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9010 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9011 ;; 9012 esac 9013 runpath_var='LD_RUN_PATH' 9014 hardcode_shlibpath_var=no 9015 ;; 9016 9017 sysv4.3*) 9018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9019 hardcode_shlibpath_var=no 9020 export_dynamic_flag_spec='-Bexport' 9021 ;; 9022 9023 sysv4*MP*) 9024 if test -d /usr/nec; then 9025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9026 hardcode_shlibpath_var=no 9027 runpath_var=LD_RUN_PATH 9028 hardcode_runpath_var=yes 9029 ld_shlibs=yes 9030 fi 9031 ;; 9032 9033 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9034 no_undefined_flag='${wl}-z,text' 9035 archive_cmds_need_lc=no 9036 hardcode_shlibpath_var=no 9037 runpath_var='LD_RUN_PATH' 9038 9039 if test "$GCC" = yes; then 9040 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9041 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9042 else 9043 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9044 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9045 fi 9046 ;; 9047 9048 sysv5* | sco3.2v5* | sco5v6*) 9049 # Note: We can NOT use -z defs as we might desire, because we do not 9050 # link with -lc, and that would cause any symbols used from libc to 9051 # always be unresolved, which means just about no library would 9052 # ever link correctly. If we're not using GNU ld we use -z text 9053 # though, which does catch some bad symbols but isn't as heavy-handed 9054 # as -z defs. 9055 no_undefined_flag='${wl}-z,text' 9056 allow_undefined_flag='${wl}-z,nodefs' 9057 archive_cmds_need_lc=no 9058 hardcode_shlibpath_var=no 9059 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9060 hardcode_libdir_separator=':' 9061 link_all_deplibs=yes 9062 export_dynamic_flag_spec='${wl}-Bexport' 9063 runpath_var='LD_RUN_PATH' 9064 9065 if test "$GCC" = yes; then 9066 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9067 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9068 else 9069 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9070 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9071 fi 9072 ;; 9073 9074 uts4*) 9075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9076 hardcode_libdir_flag_spec='-L$libdir' 9077 hardcode_shlibpath_var=no 9078 ;; 9079 9080 *) 9081 ld_shlibs=no 9082 ;; 9083 esac 9084 fi 9085 9086{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9087$as_echo "$ld_shlibs" >&6; } 9088test "$ld_shlibs" = no && can_build_shared=no 9089 9090# 9091# Do we need to explicitly link libc? 9092# 9093case "x$archive_cmds_need_lc" in 9094x|xyes) 9095 # Assume -lc should be added 9096 archive_cmds_need_lc=yes 9097 9098 if test "$enable_shared" = yes && test "$GCC" = yes; then 9099 case $archive_cmds in 9100 *'~'*) 9101 # FIXME: we may have to deal with multi-command sequences. 9102 ;; 9103 '$CC '*) 9104 # Test whether the compiler implicitly links with -lc since on some 9105 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9106 # to ld, don't add -lc before -lgcc. 9107 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9108$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9109 $rm conftest* 9110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9111 9112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9113 (eval $ac_compile) 2>&5 9114 ac_status=$? 9115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9116 (exit $ac_status); } 2>conftest.err; then 9117 soname=conftest 9118 lib=conftest 9119 libobjs=conftest.$ac_objext 9120 deplibs= 9121 wl=$lt_prog_compiler_wl 9122 pic_flag=$lt_prog_compiler_pic 9123 compiler_flags=-v 9124 linker_flags=-v 9125 verstring= 9126 output_objdir=. 9127 libname=conftest 9128 lt_save_allow_undefined_flag=$allow_undefined_flag 9129 allow_undefined_flag= 9130 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9131 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9132 ac_status=$? 9133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9134 (exit $ac_status); } 9135 then 9136 archive_cmds_need_lc=no 9137 else 9138 archive_cmds_need_lc=yes 9139 fi 9140 allow_undefined_flag=$lt_save_allow_undefined_flag 9141 else 9142 cat conftest.err 1>&5 9143 fi 9144 $rm conftest* 9145 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9146$as_echo "$archive_cmds_need_lc" >&6; } 9147 ;; 9148 esac 9149 fi 9150 ;; 9151esac 9152 9153{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9154$as_echo_n "checking dynamic linker characteristics... " >&6; } 9155library_names_spec= 9156libname_spec='lib$name' 9157soname_spec= 9158shrext_cmds=".so" 9159postinstall_cmds= 9160postuninstall_cmds= 9161finish_cmds= 9162finish_eval= 9163shlibpath_var= 9164shlibpath_overrides_runpath=unknown 9165version_type=none 9166dynamic_linker="$host_os ld.so" 9167sys_lib_dlsearch_path_spec="/lib /usr/lib" 9168 9169if test "$GCC" = yes; then 9170 case $host_os in 9171 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9172 *) lt_awk_arg="/^libraries:/" ;; 9173 esac 9174 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9175 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9176 # if the path contains ";" then we assume it to be the separator 9177 # otherwise default to the standard path separator (i.e. ":") - it is 9178 # assumed that no part of a normal pathname contains ";" but that should 9179 # okay in the real world where ";" in dirpaths is itself problematic. 9180 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9181 else 9182 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9183 fi 9184 # Ok, now we have the path, separated by spaces, we can step through it 9185 # and add multilib dir if necessary. 9186 lt_tmp_lt_search_path_spec= 9187 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9188 for lt_sys_path in $lt_search_path_spec; do 9189 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9190 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9191 else 9192 test -d "$lt_sys_path" && \ 9193 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9194 fi 9195 done 9196 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9197BEGIN {RS=" "; FS="/|\n";} { 9198 lt_foo=""; 9199 lt_count=0; 9200 for (lt_i = NF; lt_i > 0; lt_i--) { 9201 if ($lt_i != "" && $lt_i != ".") { 9202 if ($lt_i == "..") { 9203 lt_count++; 9204 } else { 9205 if (lt_count == 0) { 9206 lt_foo="/" $lt_i lt_foo; 9207 } else { 9208 lt_count--; 9209 } 9210 } 9211 } 9212 } 9213 if (lt_foo != "") { lt_freq[lt_foo]++; } 9214 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9215}'` 9216 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9217else 9218 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9219fi 9220need_lib_prefix=unknown 9221hardcode_into_libs=no 9222 9223# when you set need_version to no, make sure it does not cause -set_version 9224# flags to be left without arguments 9225need_version=unknown 9226 9227case $host_os in 9228aix3*) 9229 version_type=linux 9230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9231 shlibpath_var=LIBPATH 9232 9233 # AIX 3 has no versioning support, so we append a major version to the name. 9234 soname_spec='${libname}${release}${shared_ext}$major' 9235 ;; 9236 9237aix[4-9]*) 9238 version_type=linux 9239 need_lib_prefix=no 9240 need_version=no 9241 hardcode_into_libs=yes 9242 if test "$host_cpu" = ia64; then 9243 # AIX 5 supports IA64 9244 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9245 shlibpath_var=LD_LIBRARY_PATH 9246 else 9247 # With GCC up to 2.95.x, collect2 would create an import file 9248 # for dependence libraries. The import file would start with 9249 # the line `#! .'. This would cause the generated library to 9250 # depend on `.', always an invalid library. This was fixed in 9251 # development snapshots of GCC prior to 3.0. 9252 case $host_os in 9253 aix4 | aix4.[01] | aix4.[01].*) 9254 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9255 echo ' yes ' 9256 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9257 : 9258 else 9259 can_build_shared=no 9260 fi 9261 ;; 9262 esac 9263 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9264 # soname into executable. Probably we can add versioning support to 9265 # collect2, so additional links can be useful in future. 9266 if test "$aix_use_runtimelinking" = yes; then 9267 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9268 # instead of lib<name>.a to let people know that these are not 9269 # typical AIX shared libraries. 9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9271 else 9272 # We preserve .a as extension for shared libraries through AIX4.2 9273 # and later when we are not doing run time linking. 9274 library_names_spec='${libname}${release}.a $libname.a' 9275 soname_spec='${libname}${release}${shared_ext}$major' 9276 fi 9277 shlibpath_var=LIBPATH 9278 fi 9279 ;; 9280 9281amigaos*) 9282 library_names_spec='$libname.ixlibrary $libname.a' 9283 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9284 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' 9285 ;; 9286 9287beos*) 9288 library_names_spec='${libname}${shared_ext}' 9289 dynamic_linker="$host_os ld.so" 9290 shlibpath_var=LIBRARY_PATH 9291 ;; 9292 9293bsdi[45]*) 9294 version_type=linux 9295 need_version=no 9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9297 soname_spec='${libname}${release}${shared_ext}$major' 9298 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9299 shlibpath_var=LD_LIBRARY_PATH 9300 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9301 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9302 # the default ld.so.conf also contains /usr/contrib/lib and 9303 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9304 # libtool to hard-code these into programs 9305 ;; 9306 9307cygwin* | mingw* | pw32*) 9308 version_type=windows 9309 shrext_cmds=".dll" 9310 need_version=no 9311 need_lib_prefix=no 9312 9313 case $GCC,$host_os in 9314 yes,cygwin* | yes,mingw* | yes,pw32*) 9315 library_names_spec='$libname.dll.a' 9316 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9317 postinstall_cmds='base_file=`basename \${file}`~ 9318 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9319 dldir=$destdir/`dirname \$dlpath`~ 9320 test -d \$dldir || mkdir -p \$dldir~ 9321 $install_prog $dir/$dlname \$dldir/$dlname~ 9322 chmod a+x \$dldir/$dlname' 9323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9324 dlpath=$dir/\$dldll~ 9325 $rm \$dlpath' 9326 shlibpath_overrides_runpath=yes 9327 9328 case $host_os in 9329 cygwin*) 9330 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9331 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9332 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9333 ;; 9334 mingw*) 9335 # MinGW DLLs use traditional 'lib' prefix 9336 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9337 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9338 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9339 # It is most probably a Windows format PATH printed by 9340 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9341 # path with ; separators, and with drive letters. We can handle the 9342 # drive letters (cygwin fileutils understands them), so leave them, 9343 # especially as we might pass files found there to a mingw objdump, 9344 # which wouldn't understand a cygwinified path. Ahh. 9345 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9346 else 9347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9348 fi 9349 ;; 9350 pw32*) 9351 # pw32 DLLs use 'pw' prefix rather than 'lib' 9352 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9353 ;; 9354 esac 9355 ;; 9356 9357 *) 9358 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9359 ;; 9360 esac 9361 dynamic_linker='Win32 ld.exe' 9362 # FIXME: first we should search . and the directory the executable is in 9363 shlibpath_var=PATH 9364 ;; 9365 9366darwin* | rhapsody*) 9367 dynamic_linker="$host_os dyld" 9368 version_type=darwin 9369 need_lib_prefix=no 9370 need_version=no 9371 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9372 soname_spec='${libname}${release}${major}$shared_ext' 9373 shlibpath_overrides_runpath=yes 9374 shlibpath_var=DYLD_LIBRARY_PATH 9375 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9376 9377 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9378 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9379 ;; 9380 9381dgux*) 9382 version_type=linux 9383 need_lib_prefix=no 9384 need_version=no 9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9386 soname_spec='${libname}${release}${shared_ext}$major' 9387 shlibpath_var=LD_LIBRARY_PATH 9388 ;; 9389 9390freebsd1*) 9391 dynamic_linker=no 9392 ;; 9393 9394freebsd* | dragonfly*) 9395 # DragonFly does not have aout. When/if they implement a new 9396 # versioning mechanism, adjust this. 9397 if test -x /usr/bin/objformat; then 9398 objformat=`/usr/bin/objformat` 9399 else 9400 case $host_os in 9401 freebsd[123]*) objformat=aout ;; 9402 *) objformat=elf ;; 9403 esac 9404 fi 9405 version_type=freebsd-$objformat 9406 case $version_type in 9407 freebsd-elf*) 9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9409 need_version=no 9410 need_lib_prefix=no 9411 ;; 9412 freebsd-*) 9413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9414 need_version=yes 9415 ;; 9416 esac 9417 shlibpath_var=LD_LIBRARY_PATH 9418 case $host_os in 9419 freebsd2*) 9420 shlibpath_overrides_runpath=yes 9421 ;; 9422 freebsd3.[01]* | freebsdelf3.[01]*) 9423 shlibpath_overrides_runpath=yes 9424 hardcode_into_libs=yes 9425 ;; 9426 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9427 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9428 shlibpath_overrides_runpath=no 9429 hardcode_into_libs=yes 9430 ;; 9431 *) # from 4.6 on, and DragonFly 9432 shlibpath_overrides_runpath=yes 9433 hardcode_into_libs=yes 9434 ;; 9435 esac 9436 ;; 9437 9438gnu*) 9439 version_type=linux 9440 need_lib_prefix=no 9441 need_version=no 9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9443 soname_spec='${libname}${release}${shared_ext}$major' 9444 shlibpath_var=LD_LIBRARY_PATH 9445 hardcode_into_libs=yes 9446 ;; 9447 9448hpux9* | hpux10* | hpux11*) 9449 # Give a soname corresponding to the major version so that dld.sl refuses to 9450 # link against other versions. 9451 version_type=sunos 9452 need_lib_prefix=no 9453 need_version=no 9454 case $host_cpu in 9455 ia64*) 9456 shrext_cmds='.so' 9457 hardcode_into_libs=yes 9458 dynamic_linker="$host_os dld.so" 9459 shlibpath_var=LD_LIBRARY_PATH 9460 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9462 soname_spec='${libname}${release}${shared_ext}$major' 9463 if test "X$HPUX_IA64_MODE" = X32; then 9464 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9465 else 9466 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9467 fi 9468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9469 ;; 9470 hppa*64*) 9471 shrext_cmds='.sl' 9472 hardcode_into_libs=yes 9473 dynamic_linker="$host_os dld.sl" 9474 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9477 soname_spec='${libname}${release}${shared_ext}$major' 9478 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9480 ;; 9481 *) 9482 shrext_cmds='.sl' 9483 dynamic_linker="$host_os dld.sl" 9484 shlibpath_var=SHLIB_PATH 9485 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 9489 esac 9490 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9491 postinstall_cmds='chmod 555 $lib' 9492 ;; 9493 9494interix[3-9]*) 9495 version_type=linux 9496 need_lib_prefix=no 9497 need_version=no 9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9499 soname_spec='${libname}${release}${shared_ext}$major' 9500 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9501 shlibpath_var=LD_LIBRARY_PATH 9502 shlibpath_overrides_runpath=no 9503 hardcode_into_libs=yes 9504 ;; 9505 9506irix5* | irix6* | nonstopux*) 9507 case $host_os in 9508 nonstopux*) version_type=nonstopux ;; 9509 *) 9510 if test "$lt_cv_prog_gnu_ld" = yes; then 9511 version_type=linux 9512 else 9513 version_type=irix 9514 fi ;; 9515 esac 9516 need_lib_prefix=no 9517 need_version=no 9518 soname_spec='${libname}${release}${shared_ext}$major' 9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9520 case $host_os in 9521 irix5* | nonstopux*) 9522 libsuff= shlibsuff= 9523 ;; 9524 *) 9525 case $LD in # libtool.m4 will add one of these switches to LD 9526 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9527 libsuff= shlibsuff= libmagic=32-bit;; 9528 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9529 libsuff=32 shlibsuff=N32 libmagic=N32;; 9530 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9531 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9532 *) libsuff= shlibsuff= libmagic=never-match;; 9533 esac 9534 ;; 9535 esac 9536 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9537 shlibpath_overrides_runpath=no 9538 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9539 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9540 hardcode_into_libs=yes 9541 ;; 9542 9543# No shared lib support for Linux oldld, aout, or coff. 9544linux*oldld* | linux*aout* | linux*coff*) 9545 dynamic_linker=no 9546 ;; 9547 9548# This must be Linux ELF. 9549linux* | k*bsd*-gnu) 9550 version_type=linux 9551 need_lib_prefix=no 9552 need_version=no 9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9554 soname_spec='${libname}${release}${shared_ext}$major' 9555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9556 shlibpath_var=LD_LIBRARY_PATH 9557 shlibpath_overrides_runpath=no 9558 # This implies no fast_install, which is unacceptable. 9559 # Some rework will be needed to allow for fast_install 9560 # before this can be enabled. 9561 hardcode_into_libs=yes 9562 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9563 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9564 9565 # Append ld.so.conf contents to the search path 9566 if test -f /etc/ld.so.conf; then 9567 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9568 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9569 fi 9570 9571 # We used to test for /lib/ld.so.1 and disable shared libraries on 9572 # powerpc, because MkLinux only supported shared libraries with the 9573 # GNU dynamic linker. Since this was broken with cross compilers, 9574 # most powerpc-linux boxes support dynamic linking these days and 9575 # people can always --disable-shared, the test was removed, and we 9576 # assume the GNU/Linux dynamic linker is in use. 9577 dynamic_linker='GNU/Linux ld.so' 9578 ;; 9579 9580netbsd*) 9581 version_type=sunos 9582 need_lib_prefix=no 9583 need_version=no 9584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9587 dynamic_linker='NetBSD (a.out) ld.so' 9588 else 9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9590 soname_spec='${libname}${release}${shared_ext}$major' 9591 dynamic_linker='NetBSD ld.elf_so' 9592 fi 9593 shlibpath_var=LD_LIBRARY_PATH 9594 shlibpath_overrides_runpath=yes 9595 hardcode_into_libs=yes 9596 ;; 9597 9598newsos6) 9599 version_type=linux 9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9601 shlibpath_var=LD_LIBRARY_PATH 9602 shlibpath_overrides_runpath=yes 9603 ;; 9604 9605nto-qnx*) 9606 version_type=linux 9607 need_lib_prefix=no 9608 need_version=no 9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9610 soname_spec='${libname}${release}${shared_ext}$major' 9611 shlibpath_var=LD_LIBRARY_PATH 9612 shlibpath_overrides_runpath=yes 9613 ;; 9614 9615openbsd*) 9616 version_type=sunos 9617 sys_lib_dlsearch_path_spec="/usr/lib" 9618 need_lib_prefix=no 9619 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9620 case $host_os in 9621 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9622 *) need_version=no ;; 9623 esac 9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9626 shlibpath_var=LD_LIBRARY_PATH 9627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9628 case $host_os in 9629 openbsd2.[89] | openbsd2.[89].*) 9630 shlibpath_overrides_runpath=no 9631 ;; 9632 *) 9633 shlibpath_overrides_runpath=yes 9634 ;; 9635 esac 9636 else 9637 shlibpath_overrides_runpath=yes 9638 fi 9639 ;; 9640 9641os2*) 9642 libname_spec='$name' 9643 shrext_cmds=".dll" 9644 need_lib_prefix=no 9645 library_names_spec='$libname${shared_ext} $libname.a' 9646 dynamic_linker='OS/2 ld.exe' 9647 shlibpath_var=LIBPATH 9648 ;; 9649 9650osf3* | osf4* | osf5*) 9651 version_type=osf 9652 need_lib_prefix=no 9653 need_version=no 9654 soname_spec='${libname}${release}${shared_ext}$major' 9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9656 shlibpath_var=LD_LIBRARY_PATH 9657 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9658 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9659 ;; 9660 9661rdos*) 9662 dynamic_linker=no 9663 ;; 9664 9665solaris*) 9666 version_type=linux 9667 need_lib_prefix=no 9668 need_version=no 9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9670 soname_spec='${libname}${release}${shared_ext}$major' 9671 shlibpath_var=LD_LIBRARY_PATH 9672 shlibpath_overrides_runpath=yes 9673 hardcode_into_libs=yes 9674 # ldd complains unless libraries are executable 9675 postinstall_cmds='chmod +x $lib' 9676 ;; 9677 9678sunos4*) 9679 version_type=sunos 9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9681 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9682 shlibpath_var=LD_LIBRARY_PATH 9683 shlibpath_overrides_runpath=yes 9684 if test "$with_gnu_ld" = yes; then 9685 need_lib_prefix=no 9686 fi 9687 need_version=yes 9688 ;; 9689 9690sysv4 | sysv4.3*) 9691 version_type=linux 9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9693 soname_spec='${libname}${release}${shared_ext}$major' 9694 shlibpath_var=LD_LIBRARY_PATH 9695 case $host_vendor in 9696 sni) 9697 shlibpath_overrides_runpath=no 9698 need_lib_prefix=no 9699 export_dynamic_flag_spec='${wl}-Blargedynsym' 9700 runpath_var=LD_RUN_PATH 9701 ;; 9702 siemens) 9703 need_lib_prefix=no 9704 ;; 9705 motorola) 9706 need_lib_prefix=no 9707 need_version=no 9708 shlibpath_overrides_runpath=no 9709 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9710 ;; 9711 esac 9712 ;; 9713 9714sysv4*MP*) 9715 if test -d /usr/nec ;then 9716 version_type=linux 9717 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9718 soname_spec='$libname${shared_ext}.$major' 9719 shlibpath_var=LD_LIBRARY_PATH 9720 fi 9721 ;; 9722 9723sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9724 version_type=freebsd-elf 9725 need_lib_prefix=no 9726 need_version=no 9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9728 soname_spec='${libname}${release}${shared_ext}$major' 9729 shlibpath_var=LD_LIBRARY_PATH 9730 hardcode_into_libs=yes 9731 if test "$with_gnu_ld" = yes; then 9732 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9733 shlibpath_overrides_runpath=no 9734 else 9735 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9736 shlibpath_overrides_runpath=yes 9737 case $host_os in 9738 sco3.2v5*) 9739 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9740 ;; 9741 esac 9742 fi 9743 sys_lib_dlsearch_path_spec='/usr/lib' 9744 ;; 9745 9746uts4*) 9747 version_type=linux 9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9749 soname_spec='${libname}${release}${shared_ext}$major' 9750 shlibpath_var=LD_LIBRARY_PATH 9751 ;; 9752 9753*) 9754 dynamic_linker=no 9755 ;; 9756esac 9757{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9758$as_echo "$dynamic_linker" >&6; } 9759test "$dynamic_linker" = no && can_build_shared=no 9760 9761if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9762 $as_echo_n "(cached) " >&6 9763else 9764 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9765fi 9766 9767sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9768if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9769 $as_echo_n "(cached) " >&6 9770else 9771 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9772fi 9773 9774sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9775 9776variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9777if test "$GCC" = yes; then 9778 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9779fi 9780 9781{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9782$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9783hardcode_action= 9784if test -n "$hardcode_libdir_flag_spec" || \ 9785 test -n "$runpath_var" || \ 9786 test "X$hardcode_automatic" = "Xyes" ; then 9787 9788 # We can hardcode non-existant directories. 9789 if test "$hardcode_direct" != no && 9790 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9791 # have to relink, otherwise we might link with an installed library 9792 # when we should be linking with a yet-to-be-installed one 9793 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9794 test "$hardcode_minus_L" != no; then 9795 # Linking always hardcodes the temporary library directory. 9796 hardcode_action=relink 9797 else 9798 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9799 hardcode_action=immediate 9800 fi 9801else 9802 # We cannot hardcode anything, or else we can only hardcode existing 9803 # directories. 9804 hardcode_action=unsupported 9805fi 9806{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9807$as_echo "$hardcode_action" >&6; } 9808 9809if test "$hardcode_action" = relink; then 9810 # Fast installation is not supported 9811 enable_fast_install=no 9812elif test "$shlibpath_overrides_runpath" = yes || 9813 test "$enable_shared" = no; then 9814 # Fast installation is not necessary 9815 enable_fast_install=needless 9816fi 9817 9818striplib= 9819old_striplib= 9820{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9821$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9822if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9823 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9824 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9825 { $as_echo "$as_me:$LINENO: result: yes" >&5 9826$as_echo "yes" >&6; } 9827else 9828# FIXME - insert some real tests, host_os isn't really good enough 9829 case $host_os in 9830 darwin*) 9831 if test -n "$STRIP" ; then 9832 striplib="$STRIP -x" 9833 old_striplib="$STRIP -S" 9834 { $as_echo "$as_me:$LINENO: result: yes" >&5 9835$as_echo "yes" >&6; } 9836 else 9837 { $as_echo "$as_me:$LINENO: result: no" >&5 9838$as_echo "no" >&6; } 9839fi 9840 ;; 9841 *) 9842 { $as_echo "$as_me:$LINENO: result: no" >&5 9843$as_echo "no" >&6; } 9844 ;; 9845 esac 9846fi 9847 9848if test "x$enable_dlopen" != xyes; then 9849 enable_dlopen=unknown 9850 enable_dlopen_self=unknown 9851 enable_dlopen_self_static=unknown 9852else 9853 lt_cv_dlopen=no 9854 lt_cv_dlopen_libs= 9855 9856 case $host_os in 9857 beos*) 9858 lt_cv_dlopen="load_add_on" 9859 lt_cv_dlopen_libs= 9860 lt_cv_dlopen_self=yes 9861 ;; 9862 9863 mingw* | pw32*) 9864 lt_cv_dlopen="LoadLibrary" 9865 lt_cv_dlopen_libs= 9866 ;; 9867 9868 cygwin*) 9869 lt_cv_dlopen="dlopen" 9870 lt_cv_dlopen_libs= 9871 ;; 9872 9873 darwin*) 9874 # if libdl is installed we need to link against it 9875 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9876$as_echo_n "checking for dlopen in -ldl... " >&6; } 9877if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9878 $as_echo_n "(cached) " >&6 9879else 9880 ac_check_lib_save_LIBS=$LIBS 9881LIBS="-ldl $LIBS" 9882cat >conftest.$ac_ext <<_ACEOF 9883/* confdefs.h. */ 9884_ACEOF 9885cat confdefs.h >>conftest.$ac_ext 9886cat >>conftest.$ac_ext <<_ACEOF 9887/* end confdefs.h. */ 9888 9889/* Override any GCC internal prototype to avoid an error. 9890 Use char because int might match the return type of a GCC 9891 builtin and then its argument prototype would still apply. */ 9892#ifdef __cplusplus 9893extern "C" 9894#endif 9895char dlopen (); 9896int 9897main () 9898{ 9899return dlopen (); 9900 ; 9901 return 0; 9902} 9903_ACEOF 9904rm -f conftest.$ac_objext conftest$ac_exeext 9905if { (ac_try="$ac_link" 9906case "(($ac_try" in 9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9908 *) ac_try_echo=$ac_try;; 9909esac 9910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9911$as_echo "$ac_try_echo") >&5 9912 (eval "$ac_link") 2>conftest.er1 9913 ac_status=$? 9914 grep -v '^ *+' conftest.er1 >conftest.err 9915 rm -f conftest.er1 9916 cat conftest.err >&5 9917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9918 (exit $ac_status); } && { 9919 test -z "$ac_c_werror_flag" || 9920 test ! -s conftest.err 9921 } && test -s conftest$ac_exeext && { 9922 test "$cross_compiling" = yes || 9923 $as_test_x conftest$ac_exeext 9924 }; then 9925 ac_cv_lib_dl_dlopen=yes 9926else 9927 $as_echo "$as_me: failed program was:" >&5 9928sed 's/^/| /' conftest.$ac_ext >&5 9929 9930 ac_cv_lib_dl_dlopen=no 9931fi 9932 9933rm -rf conftest.dSYM 9934rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9935 conftest$ac_exeext conftest.$ac_ext 9936LIBS=$ac_check_lib_save_LIBS 9937fi 9938{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9939$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9940if test $ac_cv_lib_dl_dlopen = yes; then 9941 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9942else 9943 9944 lt_cv_dlopen="dyld" 9945 lt_cv_dlopen_libs= 9946 lt_cv_dlopen_self=yes 9947 9948fi 9949 9950 ;; 9951 9952 *) 9953 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9954$as_echo_n "checking for shl_load... " >&6; } 9955if test "${ac_cv_func_shl_load+set}" = set; then 9956 $as_echo_n "(cached) " >&6 9957else 9958 cat >conftest.$ac_ext <<_ACEOF 9959/* confdefs.h. */ 9960_ACEOF 9961cat confdefs.h >>conftest.$ac_ext 9962cat >>conftest.$ac_ext <<_ACEOF 9963/* end confdefs.h. */ 9964/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9965 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9966#define shl_load innocuous_shl_load 9967 9968/* System header to define __stub macros and hopefully few prototypes, 9969 which can conflict with char shl_load (); below. 9970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9971 <limits.h> exists even on freestanding compilers. */ 9972 9973#ifdef __STDC__ 9974# include <limits.h> 9975#else 9976# include <assert.h> 9977#endif 9978 9979#undef shl_load 9980 9981/* Override any GCC internal prototype to avoid an error. 9982 Use char because int might match the return type of a GCC 9983 builtin and then its argument prototype would still apply. */ 9984#ifdef __cplusplus 9985extern "C" 9986#endif 9987char shl_load (); 9988/* The GNU C library defines this for functions which it implements 9989 to always fail with ENOSYS. Some functions are actually named 9990 something starting with __ and the normal name is an alias. */ 9991#if defined __stub_shl_load || defined __stub___shl_load 9992choke me 9993#endif 9994 9995int 9996main () 9997{ 9998return shl_load (); 9999 ; 10000 return 0; 10001} 10002_ACEOF 10003rm -f conftest.$ac_objext conftest$ac_exeext 10004if { (ac_try="$ac_link" 10005case "(($ac_try" in 10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10007 *) ac_try_echo=$ac_try;; 10008esac 10009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10010$as_echo "$ac_try_echo") >&5 10011 (eval "$ac_link") 2>conftest.er1 10012 ac_status=$? 10013 grep -v '^ *+' conftest.er1 >conftest.err 10014 rm -f conftest.er1 10015 cat conftest.err >&5 10016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10017 (exit $ac_status); } && { 10018 test -z "$ac_c_werror_flag" || 10019 test ! -s conftest.err 10020 } && test -s conftest$ac_exeext && { 10021 test "$cross_compiling" = yes || 10022 $as_test_x conftest$ac_exeext 10023 }; then 10024 ac_cv_func_shl_load=yes 10025else 10026 $as_echo "$as_me: failed program was:" >&5 10027sed 's/^/| /' conftest.$ac_ext >&5 10028 10029 ac_cv_func_shl_load=no 10030fi 10031 10032rm -rf conftest.dSYM 10033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10034 conftest$ac_exeext conftest.$ac_ext 10035fi 10036{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10037$as_echo "$ac_cv_func_shl_load" >&6; } 10038if test $ac_cv_func_shl_load = yes; then 10039 lt_cv_dlopen="shl_load" 10040else 10041 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10042$as_echo_n "checking for shl_load in -ldld... " >&6; } 10043if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10044 $as_echo_n "(cached) " >&6 10045else 10046 ac_check_lib_save_LIBS=$LIBS 10047LIBS="-ldld $LIBS" 10048cat >conftest.$ac_ext <<_ACEOF 10049/* confdefs.h. */ 10050_ACEOF 10051cat confdefs.h >>conftest.$ac_ext 10052cat >>conftest.$ac_ext <<_ACEOF 10053/* end confdefs.h. */ 10054 10055/* Override any GCC internal prototype to avoid an error. 10056 Use char because int might match the return type of a GCC 10057 builtin and then its argument prototype would still apply. */ 10058#ifdef __cplusplus 10059extern "C" 10060#endif 10061char shl_load (); 10062int 10063main () 10064{ 10065return shl_load (); 10066 ; 10067 return 0; 10068} 10069_ACEOF 10070rm -f conftest.$ac_objext conftest$ac_exeext 10071if { (ac_try="$ac_link" 10072case "(($ac_try" in 10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10074 *) ac_try_echo=$ac_try;; 10075esac 10076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10077$as_echo "$ac_try_echo") >&5 10078 (eval "$ac_link") 2>conftest.er1 10079 ac_status=$? 10080 grep -v '^ *+' conftest.er1 >conftest.err 10081 rm -f conftest.er1 10082 cat conftest.err >&5 10083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10084 (exit $ac_status); } && { 10085 test -z "$ac_c_werror_flag" || 10086 test ! -s conftest.err 10087 } && test -s conftest$ac_exeext && { 10088 test "$cross_compiling" = yes || 10089 $as_test_x conftest$ac_exeext 10090 }; then 10091 ac_cv_lib_dld_shl_load=yes 10092else 10093 $as_echo "$as_me: failed program was:" >&5 10094sed 's/^/| /' conftest.$ac_ext >&5 10095 10096 ac_cv_lib_dld_shl_load=no 10097fi 10098 10099rm -rf conftest.dSYM 10100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10101 conftest$ac_exeext conftest.$ac_ext 10102LIBS=$ac_check_lib_save_LIBS 10103fi 10104{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10105$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10106if test $ac_cv_lib_dld_shl_load = yes; then 10107 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10108else 10109 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10110$as_echo_n "checking for dlopen... " >&6; } 10111if test "${ac_cv_func_dlopen+set}" = set; then 10112 $as_echo_n "(cached) " >&6 10113else 10114 cat >conftest.$ac_ext <<_ACEOF 10115/* confdefs.h. */ 10116_ACEOF 10117cat confdefs.h >>conftest.$ac_ext 10118cat >>conftest.$ac_ext <<_ACEOF 10119/* end confdefs.h. */ 10120/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10121 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10122#define dlopen innocuous_dlopen 10123 10124/* System header to define __stub macros and hopefully few prototypes, 10125 which can conflict with char dlopen (); below. 10126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10127 <limits.h> exists even on freestanding compilers. */ 10128 10129#ifdef __STDC__ 10130# include <limits.h> 10131#else 10132# include <assert.h> 10133#endif 10134 10135#undef dlopen 10136 10137/* Override any GCC internal prototype to avoid an error. 10138 Use char because int might match the return type of a GCC 10139 builtin and then its argument prototype would still apply. */ 10140#ifdef __cplusplus 10141extern "C" 10142#endif 10143char dlopen (); 10144/* The GNU C library defines this for functions which it implements 10145 to always fail with ENOSYS. Some functions are actually named 10146 something starting with __ and the normal name is an alias. */ 10147#if defined __stub_dlopen || defined __stub___dlopen 10148choke me 10149#endif 10150 10151int 10152main () 10153{ 10154return dlopen (); 10155 ; 10156 return 0; 10157} 10158_ACEOF 10159rm -f conftest.$ac_objext conftest$ac_exeext 10160if { (ac_try="$ac_link" 10161case "(($ac_try" in 10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10163 *) ac_try_echo=$ac_try;; 10164esac 10165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10166$as_echo "$ac_try_echo") >&5 10167 (eval "$ac_link") 2>conftest.er1 10168 ac_status=$? 10169 grep -v '^ *+' conftest.er1 >conftest.err 10170 rm -f conftest.er1 10171 cat conftest.err >&5 10172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10173 (exit $ac_status); } && { 10174 test -z "$ac_c_werror_flag" || 10175 test ! -s conftest.err 10176 } && test -s conftest$ac_exeext && { 10177 test "$cross_compiling" = yes || 10178 $as_test_x conftest$ac_exeext 10179 }; then 10180 ac_cv_func_dlopen=yes 10181else 10182 $as_echo "$as_me: failed program was:" >&5 10183sed 's/^/| /' conftest.$ac_ext >&5 10184 10185 ac_cv_func_dlopen=no 10186fi 10187 10188rm -rf conftest.dSYM 10189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10190 conftest$ac_exeext conftest.$ac_ext 10191fi 10192{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10193$as_echo "$ac_cv_func_dlopen" >&6; } 10194if test $ac_cv_func_dlopen = yes; then 10195 lt_cv_dlopen="dlopen" 10196else 10197 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10198$as_echo_n "checking for dlopen in -ldl... " >&6; } 10199if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10200 $as_echo_n "(cached) " >&6 10201else 10202 ac_check_lib_save_LIBS=$LIBS 10203LIBS="-ldl $LIBS" 10204cat >conftest.$ac_ext <<_ACEOF 10205/* confdefs.h. */ 10206_ACEOF 10207cat confdefs.h >>conftest.$ac_ext 10208cat >>conftest.$ac_ext <<_ACEOF 10209/* end confdefs.h. */ 10210 10211/* Override any GCC internal prototype to avoid an error. 10212 Use char because int might match the return type of a GCC 10213 builtin and then its argument prototype would still apply. */ 10214#ifdef __cplusplus 10215extern "C" 10216#endif 10217char dlopen (); 10218int 10219main () 10220{ 10221return dlopen (); 10222 ; 10223 return 0; 10224} 10225_ACEOF 10226rm -f conftest.$ac_objext conftest$ac_exeext 10227if { (ac_try="$ac_link" 10228case "(($ac_try" in 10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10230 *) ac_try_echo=$ac_try;; 10231esac 10232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10233$as_echo "$ac_try_echo") >&5 10234 (eval "$ac_link") 2>conftest.er1 10235 ac_status=$? 10236 grep -v '^ *+' conftest.er1 >conftest.err 10237 rm -f conftest.er1 10238 cat conftest.err >&5 10239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10240 (exit $ac_status); } && { 10241 test -z "$ac_c_werror_flag" || 10242 test ! -s conftest.err 10243 } && test -s conftest$ac_exeext && { 10244 test "$cross_compiling" = yes || 10245 $as_test_x conftest$ac_exeext 10246 }; then 10247 ac_cv_lib_dl_dlopen=yes 10248else 10249 $as_echo "$as_me: failed program was:" >&5 10250sed 's/^/| /' conftest.$ac_ext >&5 10251 10252 ac_cv_lib_dl_dlopen=no 10253fi 10254 10255rm -rf conftest.dSYM 10256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10257 conftest$ac_exeext conftest.$ac_ext 10258LIBS=$ac_check_lib_save_LIBS 10259fi 10260{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10261$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10262if test $ac_cv_lib_dl_dlopen = yes; then 10263 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10264else 10265 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10266$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10267if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10268 $as_echo_n "(cached) " >&6 10269else 10270 ac_check_lib_save_LIBS=$LIBS 10271LIBS="-lsvld $LIBS" 10272cat >conftest.$ac_ext <<_ACEOF 10273/* confdefs.h. */ 10274_ACEOF 10275cat confdefs.h >>conftest.$ac_ext 10276cat >>conftest.$ac_ext <<_ACEOF 10277/* end confdefs.h. */ 10278 10279/* Override any GCC internal prototype to avoid an error. 10280 Use char because int might match the return type of a GCC 10281 builtin and then its argument prototype would still apply. */ 10282#ifdef __cplusplus 10283extern "C" 10284#endif 10285char dlopen (); 10286int 10287main () 10288{ 10289return dlopen (); 10290 ; 10291 return 0; 10292} 10293_ACEOF 10294rm -f conftest.$ac_objext conftest$ac_exeext 10295if { (ac_try="$ac_link" 10296case "(($ac_try" in 10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10298 *) ac_try_echo=$ac_try;; 10299esac 10300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10301$as_echo "$ac_try_echo") >&5 10302 (eval "$ac_link") 2>conftest.er1 10303 ac_status=$? 10304 grep -v '^ *+' conftest.er1 >conftest.err 10305 rm -f conftest.er1 10306 cat conftest.err >&5 10307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10308 (exit $ac_status); } && { 10309 test -z "$ac_c_werror_flag" || 10310 test ! -s conftest.err 10311 } && test -s conftest$ac_exeext && { 10312 test "$cross_compiling" = yes || 10313 $as_test_x conftest$ac_exeext 10314 }; then 10315 ac_cv_lib_svld_dlopen=yes 10316else 10317 $as_echo "$as_me: failed program was:" >&5 10318sed 's/^/| /' conftest.$ac_ext >&5 10319 10320 ac_cv_lib_svld_dlopen=no 10321fi 10322 10323rm -rf conftest.dSYM 10324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10325 conftest$ac_exeext conftest.$ac_ext 10326LIBS=$ac_check_lib_save_LIBS 10327fi 10328{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10329$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10330if test $ac_cv_lib_svld_dlopen = yes; then 10331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10332else 10333 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10334$as_echo_n "checking for dld_link in -ldld... " >&6; } 10335if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10336 $as_echo_n "(cached) " >&6 10337else 10338 ac_check_lib_save_LIBS=$LIBS 10339LIBS="-ldld $LIBS" 10340cat >conftest.$ac_ext <<_ACEOF 10341/* confdefs.h. */ 10342_ACEOF 10343cat confdefs.h >>conftest.$ac_ext 10344cat >>conftest.$ac_ext <<_ACEOF 10345/* end confdefs.h. */ 10346 10347/* Override any GCC internal prototype to avoid an error. 10348 Use char because int might match the return type of a GCC 10349 builtin and then its argument prototype would still apply. */ 10350#ifdef __cplusplus 10351extern "C" 10352#endif 10353char dld_link (); 10354int 10355main () 10356{ 10357return dld_link (); 10358 ; 10359 return 0; 10360} 10361_ACEOF 10362rm -f conftest.$ac_objext conftest$ac_exeext 10363if { (ac_try="$ac_link" 10364case "(($ac_try" in 10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10366 *) ac_try_echo=$ac_try;; 10367esac 10368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10369$as_echo "$ac_try_echo") >&5 10370 (eval "$ac_link") 2>conftest.er1 10371 ac_status=$? 10372 grep -v '^ *+' conftest.er1 >conftest.err 10373 rm -f conftest.er1 10374 cat conftest.err >&5 10375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10376 (exit $ac_status); } && { 10377 test -z "$ac_c_werror_flag" || 10378 test ! -s conftest.err 10379 } && test -s conftest$ac_exeext && { 10380 test "$cross_compiling" = yes || 10381 $as_test_x conftest$ac_exeext 10382 }; then 10383 ac_cv_lib_dld_dld_link=yes 10384else 10385 $as_echo "$as_me: failed program was:" >&5 10386sed 's/^/| /' conftest.$ac_ext >&5 10387 10388 ac_cv_lib_dld_dld_link=no 10389fi 10390 10391rm -rf conftest.dSYM 10392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10393 conftest$ac_exeext conftest.$ac_ext 10394LIBS=$ac_check_lib_save_LIBS 10395fi 10396{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10397$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10398if test $ac_cv_lib_dld_dld_link = yes; then 10399 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10400fi 10401 10402 10403fi 10404 10405 10406fi 10407 10408 10409fi 10410 10411 10412fi 10413 10414 10415fi 10416 10417 ;; 10418 esac 10419 10420 if test "x$lt_cv_dlopen" != xno; then 10421 enable_dlopen=yes 10422 else 10423 enable_dlopen=no 10424 fi 10425 10426 case $lt_cv_dlopen in 10427 dlopen) 10428 save_CPPFLAGS="$CPPFLAGS" 10429 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10430 10431 save_LDFLAGS="$LDFLAGS" 10432 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10433 10434 save_LIBS="$LIBS" 10435 LIBS="$lt_cv_dlopen_libs $LIBS" 10436 10437 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10438$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10439if test "${lt_cv_dlopen_self+set}" = set; then 10440 $as_echo_n "(cached) " >&6 10441else 10442 if test "$cross_compiling" = yes; then : 10443 lt_cv_dlopen_self=cross 10444else 10445 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10446 lt_status=$lt_dlunknown 10447 cat > conftest.$ac_ext <<EOF 10448#line 10448 "configure" 10449#include "confdefs.h" 10450 10451#if HAVE_DLFCN_H 10452#include <dlfcn.h> 10453#endif 10454 10455#include <stdio.h> 10456 10457#ifdef RTLD_GLOBAL 10458# define LT_DLGLOBAL RTLD_GLOBAL 10459#else 10460# ifdef DL_GLOBAL 10461# define LT_DLGLOBAL DL_GLOBAL 10462# else 10463# define LT_DLGLOBAL 0 10464# endif 10465#endif 10466 10467/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10468 find out it does not work in some platform. */ 10469#ifndef LT_DLLAZY_OR_NOW 10470# ifdef RTLD_LAZY 10471# define LT_DLLAZY_OR_NOW RTLD_LAZY 10472# else 10473# ifdef DL_LAZY 10474# define LT_DLLAZY_OR_NOW DL_LAZY 10475# else 10476# ifdef RTLD_NOW 10477# define LT_DLLAZY_OR_NOW RTLD_NOW 10478# else 10479# ifdef DL_NOW 10480# define LT_DLLAZY_OR_NOW DL_NOW 10481# else 10482# define LT_DLLAZY_OR_NOW 0 10483# endif 10484# endif 10485# endif 10486# endif 10487#endif 10488 10489#ifdef __cplusplus 10490extern "C" void exit (int); 10491#endif 10492 10493void fnord() { int i=42;} 10494int main () 10495{ 10496 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10497 int status = $lt_dlunknown; 10498 10499 if (self) 10500 { 10501 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10502 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10503 /* dlclose (self); */ 10504 } 10505 else 10506 puts (dlerror ()); 10507 10508 exit (status); 10509} 10510EOF 10511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10512 (eval $ac_link) 2>&5 10513 ac_status=$? 10514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10515 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10516 (./conftest; exit; ) >&5 2>/dev/null 10517 lt_status=$? 10518 case x$lt_status in 10519 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10520 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10521 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10522 esac 10523 else : 10524 # compilation failed 10525 lt_cv_dlopen_self=no 10526 fi 10527fi 10528rm -fr conftest* 10529 10530 10531fi 10532{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10533$as_echo "$lt_cv_dlopen_self" >&6; } 10534 10535 if test "x$lt_cv_dlopen_self" = xyes; then 10536 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10537 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10538$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10539if test "${lt_cv_dlopen_self_static+set}" = set; then 10540 $as_echo_n "(cached) " >&6 10541else 10542 if test "$cross_compiling" = yes; then : 10543 lt_cv_dlopen_self_static=cross 10544else 10545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10546 lt_status=$lt_dlunknown 10547 cat > conftest.$ac_ext <<EOF 10548#line 10548 "configure" 10549#include "confdefs.h" 10550 10551#if HAVE_DLFCN_H 10552#include <dlfcn.h> 10553#endif 10554 10555#include <stdio.h> 10556 10557#ifdef RTLD_GLOBAL 10558# define LT_DLGLOBAL RTLD_GLOBAL 10559#else 10560# ifdef DL_GLOBAL 10561# define LT_DLGLOBAL DL_GLOBAL 10562# else 10563# define LT_DLGLOBAL 0 10564# endif 10565#endif 10566 10567/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10568 find out it does not work in some platform. */ 10569#ifndef LT_DLLAZY_OR_NOW 10570# ifdef RTLD_LAZY 10571# define LT_DLLAZY_OR_NOW RTLD_LAZY 10572# else 10573# ifdef DL_LAZY 10574# define LT_DLLAZY_OR_NOW DL_LAZY 10575# else 10576# ifdef RTLD_NOW 10577# define LT_DLLAZY_OR_NOW RTLD_NOW 10578# else 10579# ifdef DL_NOW 10580# define LT_DLLAZY_OR_NOW DL_NOW 10581# else 10582# define LT_DLLAZY_OR_NOW 0 10583# endif 10584# endif 10585# endif 10586# endif 10587#endif 10588 10589#ifdef __cplusplus 10590extern "C" void exit (int); 10591#endif 10592 10593void fnord() { int i=42;} 10594int main () 10595{ 10596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10597 int status = $lt_dlunknown; 10598 10599 if (self) 10600 { 10601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10602 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10603 /* dlclose (self); */ 10604 } 10605 else 10606 puts (dlerror ()); 10607 10608 exit (status); 10609} 10610EOF 10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10612 (eval $ac_link) 2>&5 10613 ac_status=$? 10614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10615 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10616 (./conftest; exit; ) >&5 2>/dev/null 10617 lt_status=$? 10618 case x$lt_status in 10619 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10620 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10621 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10622 esac 10623 else : 10624 # compilation failed 10625 lt_cv_dlopen_self_static=no 10626 fi 10627fi 10628rm -fr conftest* 10629 10630 10631fi 10632{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10633$as_echo "$lt_cv_dlopen_self_static" >&6; } 10634 fi 10635 10636 CPPFLAGS="$save_CPPFLAGS" 10637 LDFLAGS="$save_LDFLAGS" 10638 LIBS="$save_LIBS" 10639 ;; 10640 esac 10641 10642 case $lt_cv_dlopen_self in 10643 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10644 *) enable_dlopen_self=unknown ;; 10645 esac 10646 10647 case $lt_cv_dlopen_self_static in 10648 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10649 *) enable_dlopen_self_static=unknown ;; 10650 esac 10651fi 10652 10653 10654# Report which library types will actually be built 10655{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10656$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10657{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10658$as_echo "$can_build_shared" >&6; } 10659 10660{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10661$as_echo_n "checking whether to build shared libraries... " >&6; } 10662test "$can_build_shared" = "no" && enable_shared=no 10663 10664# On AIX, shared libraries and static libraries use the same namespace, and 10665# are all built from PIC. 10666case $host_os in 10667aix3*) 10668 test "$enable_shared" = yes && enable_static=no 10669 if test -n "$RANLIB"; then 10670 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10671 postinstall_cmds='$RANLIB $lib' 10672 fi 10673 ;; 10674 10675aix[4-9]*) 10676 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10677 test "$enable_shared" = yes && enable_static=no 10678 fi 10679 ;; 10680esac 10681{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10682$as_echo "$enable_shared" >&6; } 10683 10684{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10685$as_echo_n "checking whether to build static libraries... " >&6; } 10686# Make sure either enable_shared or enable_static is yes. 10687test "$enable_shared" = yes || enable_static=yes 10688{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10689$as_echo "$enable_static" >&6; } 10690 10691# The else clause should only fire when bootstrapping the 10692# libtool distribution, otherwise you forgot to ship ltmain.sh 10693# with your package, and you will get complaints that there are 10694# no rules to generate ltmain.sh. 10695if test -f "$ltmain"; then 10696 # See if we are running on zsh, and set the options which allow our commands through 10697 # without removal of \ escapes. 10698 if test -n "${ZSH_VERSION+set}" ; then 10699 setopt NO_GLOB_SUBST 10700 fi 10701 # Now quote all the things that may contain metacharacters while being 10702 # careful not to overquote the AC_SUBSTed values. We take copies of the 10703 # variables and quote the copies for generation of the libtool script. 10704 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10705 SED SHELL STRIP \ 10706 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10707 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10708 deplibs_check_method reload_flag reload_cmds need_locks \ 10709 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10710 lt_cv_sys_global_symbol_to_c_name_address \ 10711 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10712 old_postinstall_cmds old_postuninstall_cmds \ 10713 compiler \ 10714 CC \ 10715 LD \ 10716 lt_prog_compiler_wl \ 10717 lt_prog_compiler_pic \ 10718 lt_prog_compiler_static \ 10719 lt_prog_compiler_no_builtin_flag \ 10720 export_dynamic_flag_spec \ 10721 thread_safe_flag_spec \ 10722 whole_archive_flag_spec \ 10723 enable_shared_with_static_runtimes \ 10724 old_archive_cmds \ 10725 old_archive_from_new_cmds \ 10726 predep_objects \ 10727 postdep_objects \ 10728 predeps \ 10729 postdeps \ 10730 compiler_lib_search_path \ 10731 compiler_lib_search_dirs \ 10732 archive_cmds \ 10733 archive_expsym_cmds \ 10734 postinstall_cmds \ 10735 postuninstall_cmds \ 10736 old_archive_from_expsyms_cmds \ 10737 allow_undefined_flag \ 10738 no_undefined_flag \ 10739 export_symbols_cmds \ 10740 hardcode_libdir_flag_spec \ 10741 hardcode_libdir_flag_spec_ld \ 10742 hardcode_libdir_separator \ 10743 hardcode_automatic \ 10744 module_cmds \ 10745 module_expsym_cmds \ 10746 lt_cv_prog_compiler_c_o \ 10747 fix_srcfile_path \ 10748 exclude_expsyms \ 10749 include_expsyms; do 10750 10751 case $var in 10752 old_archive_cmds | \ 10753 old_archive_from_new_cmds | \ 10754 archive_cmds | \ 10755 archive_expsym_cmds | \ 10756 module_cmds | \ 10757 module_expsym_cmds | \ 10758 old_archive_from_expsyms_cmds | \ 10759 export_symbols_cmds | \ 10760 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10761 postinstall_cmds | postuninstall_cmds | \ 10762 old_postinstall_cmds | old_postuninstall_cmds | \ 10763 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10764 # Double-quote double-evaled strings. 10765 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10766 ;; 10767 *) 10768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10769 ;; 10770 esac 10771 done 10772 10773 case $lt_echo in 10774 *'\$0 --fallback-echo"') 10775 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10776 ;; 10777 esac 10778 10779cfgfile="${ofile}T" 10780 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10781 $rm -f "$cfgfile" 10782 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10783$as_echo "$as_me: creating $ofile" >&6;} 10784 10785 cat <<__EOF__ >> "$cfgfile" 10786#! $SHELL 10787 10788# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10789# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10790# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10791# 10792# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10793# Free Software Foundation, Inc. 10794# 10795# This file is part of GNU Libtool: 10796# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10797# 10798# This program is free software; you can redistribute it and/or modify 10799# it under the terms of the GNU General Public License as published by 10800# the Free Software Foundation; either version 2 of the License, or 10801# (at your option) any later version. 10802# 10803# This program is distributed in the hope that it will be useful, but 10804# WITHOUT ANY WARRANTY; without even the implied warranty of 10805# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10806# General Public License for more details. 10807# 10808# You should have received a copy of the GNU General Public License 10809# along with this program; if not, write to the Free Software 10810# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10811# 10812# As a special exception to the GNU General Public License, if you 10813# distribute this file as part of a program that contains a 10814# configuration script generated by Autoconf, you may include it under 10815# the same distribution terms that you use for the rest of that program. 10816 10817# A sed program that does not truncate output. 10818SED=$lt_SED 10819 10820# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10821Xsed="$SED -e 1s/^X//" 10822 10823# The HP-UX ksh and POSIX shell print the target directory to stdout 10824# if CDPATH is set. 10825(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10826 10827# The names of the tagged configurations supported by this script. 10828available_tags= 10829 10830# ### BEGIN LIBTOOL CONFIG 10831 10832# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10833 10834# Shell to use when invoking shell scripts. 10835SHELL=$lt_SHELL 10836 10837# Whether or not to build shared libraries. 10838build_libtool_libs=$enable_shared 10839 10840# Whether or not to build static libraries. 10841build_old_libs=$enable_static 10842 10843# Whether or not to add -lc for building shared libraries. 10844build_libtool_need_lc=$archive_cmds_need_lc 10845 10846# Whether or not to disallow shared libs when runtime libs are static 10847allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10848 10849# Whether or not to optimize for fast installation. 10850fast_install=$enable_fast_install 10851 10852# The host system. 10853host_alias=$host_alias 10854host=$host 10855host_os=$host_os 10856 10857# The build system. 10858build_alias=$build_alias 10859build=$build 10860build_os=$build_os 10861 10862# An echo program that does not interpret backslashes. 10863echo=$lt_echo 10864 10865# The archiver. 10866AR=$lt_AR 10867AR_FLAGS=$lt_AR_FLAGS 10868 10869# A C compiler. 10870LTCC=$lt_LTCC 10871 10872# LTCC compiler flags. 10873LTCFLAGS=$lt_LTCFLAGS 10874 10875# A language-specific compiler. 10876CC=$lt_compiler 10877 10878# Is the compiler the GNU C compiler? 10879with_gcc=$GCC 10880 10881# An ERE matcher. 10882EGREP=$lt_EGREP 10883 10884# The linker used to build libraries. 10885LD=$lt_LD 10886 10887# Whether we need hard or soft links. 10888LN_S=$lt_LN_S 10889 10890# A BSD-compatible nm program. 10891NM=$lt_NM 10892 10893# A symbol stripping program 10894STRIP=$lt_STRIP 10895 10896# Used to examine libraries when file_magic_cmd begins "file" 10897MAGIC_CMD=$MAGIC_CMD 10898 10899# Used on cygwin: DLL creation program. 10900DLLTOOL="$DLLTOOL" 10901 10902# Used on cygwin: object dumper. 10903OBJDUMP="$OBJDUMP" 10904 10905# Used on cygwin: assembler. 10906AS="$AS" 10907 10908# The name of the directory that contains temporary libtool files. 10909objdir=$objdir 10910 10911# How to create reloadable object files. 10912reload_flag=$lt_reload_flag 10913reload_cmds=$lt_reload_cmds 10914 10915# How to pass a linker flag through the compiler. 10916wl=$lt_lt_prog_compiler_wl 10917 10918# Object file suffix (normally "o"). 10919objext="$ac_objext" 10920 10921# Old archive suffix (normally "a"). 10922libext="$libext" 10923 10924# Shared library suffix (normally ".so"). 10925shrext_cmds='$shrext_cmds' 10926 10927# Executable file suffix (normally ""). 10928exeext="$exeext" 10929 10930# Additional compiler flags for building library objects. 10931pic_flag=$lt_lt_prog_compiler_pic 10932pic_mode=$pic_mode 10933 10934# What is the maximum length of a command? 10935max_cmd_len=$lt_cv_sys_max_cmd_len 10936 10937# Does compiler simultaneously support -c and -o options? 10938compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10939 10940# Must we lock files when doing compilation? 10941need_locks=$lt_need_locks 10942 10943# Do we need the lib prefix for modules? 10944need_lib_prefix=$need_lib_prefix 10945 10946# Do we need a version for libraries? 10947need_version=$need_version 10948 10949# Whether dlopen is supported. 10950dlopen_support=$enable_dlopen 10951 10952# Whether dlopen of programs is supported. 10953dlopen_self=$enable_dlopen_self 10954 10955# Whether dlopen of statically linked programs is supported. 10956dlopen_self_static=$enable_dlopen_self_static 10957 10958# Compiler flag to prevent dynamic linking. 10959link_static_flag=$lt_lt_prog_compiler_static 10960 10961# Compiler flag to turn off builtin functions. 10962no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10963 10964# Compiler flag to allow reflexive dlopens. 10965export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10966 10967# Compiler flag to generate shared objects directly from archives. 10968whole_archive_flag_spec=$lt_whole_archive_flag_spec 10969 10970# Compiler flag to generate thread-safe objects. 10971thread_safe_flag_spec=$lt_thread_safe_flag_spec 10972 10973# Library versioning type. 10974version_type=$version_type 10975 10976# Format of library name prefix. 10977libname_spec=$lt_libname_spec 10978 10979# List of archive names. First name is the real one, the rest are links. 10980# The last name is the one that the linker finds with -lNAME. 10981library_names_spec=$lt_library_names_spec 10982 10983# The coded name of the library, if different from the real name. 10984soname_spec=$lt_soname_spec 10985 10986# Commands used to build and install an old-style archive. 10987RANLIB=$lt_RANLIB 10988old_archive_cmds=$lt_old_archive_cmds 10989old_postinstall_cmds=$lt_old_postinstall_cmds 10990old_postuninstall_cmds=$lt_old_postuninstall_cmds 10991 10992# Create an old-style archive from a shared archive. 10993old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10994 10995# Create a temporary old-style archive to link instead of a shared archive. 10996old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10997 10998# Commands used to build and install a shared archive. 10999archive_cmds=$lt_archive_cmds 11000archive_expsym_cmds=$lt_archive_expsym_cmds 11001postinstall_cmds=$lt_postinstall_cmds 11002postuninstall_cmds=$lt_postuninstall_cmds 11003 11004# Commands used to build a loadable module (assumed same as above if empty) 11005module_cmds=$lt_module_cmds 11006module_expsym_cmds=$lt_module_expsym_cmds 11007 11008# Commands to strip libraries. 11009old_striplib=$lt_old_striplib 11010striplib=$lt_striplib 11011 11012# Dependencies to place before the objects being linked to create a 11013# shared library. 11014predep_objects=$lt_predep_objects 11015 11016# Dependencies to place after the objects being linked to create a 11017# shared library. 11018postdep_objects=$lt_postdep_objects 11019 11020# Dependencies to place before the objects being linked to create a 11021# shared library. 11022predeps=$lt_predeps 11023 11024# Dependencies to place after the objects being linked to create a 11025# shared library. 11026postdeps=$lt_postdeps 11027 11028# The directories searched by this compiler when creating a shared 11029# library 11030compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 11031 11032# The library search path used internally by the compiler when linking 11033# a shared library. 11034compiler_lib_search_path=$lt_compiler_lib_search_path 11035 11036# Method to check whether dependent libraries are shared objects. 11037deplibs_check_method=$lt_deplibs_check_method 11038 11039# Command to use when deplibs_check_method == file_magic. 11040file_magic_cmd=$lt_file_magic_cmd 11041 11042# Flag that allows shared libraries with undefined symbols to be built. 11043allow_undefined_flag=$lt_allow_undefined_flag 11044 11045# Flag that forces no undefined symbols. 11046no_undefined_flag=$lt_no_undefined_flag 11047 11048# Commands used to finish a libtool library installation in a directory. 11049finish_cmds=$lt_finish_cmds 11050 11051# Same as above, but a single script fragment to be evaled but not shown. 11052finish_eval=$lt_finish_eval 11053 11054# Take the output of nm and produce a listing of raw symbols and C names. 11055global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11056 11057# Transform the output of nm in a proper C declaration 11058global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11059 11060# Transform the output of nm in a C name address pair 11061global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11062 11063# This is the shared library runtime path variable. 11064runpath_var=$runpath_var 11065 11066# This is the shared library path variable. 11067shlibpath_var=$shlibpath_var 11068 11069# Is shlibpath searched before the hard-coded library search path? 11070shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11071 11072# How to hardcode a shared library path into an executable. 11073hardcode_action=$hardcode_action 11074 11075# Whether we should hardcode library paths into libraries. 11076hardcode_into_libs=$hardcode_into_libs 11077 11078# Flag to hardcode \$libdir into a binary during linking. 11079# This must work even if \$libdir does not exist. 11080hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11081 11082# If ld is used when linking, flag to hardcode \$libdir into 11083# a binary during linking. This must work even if \$libdir does 11084# not exist. 11085hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11086 11087# Whether we need a single -rpath flag with a separated argument. 11088hardcode_libdir_separator=$lt_hardcode_libdir_separator 11089 11090# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11091# resulting binary. 11092hardcode_direct=$hardcode_direct 11093 11094# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11095# resulting binary. 11096hardcode_minus_L=$hardcode_minus_L 11097 11098# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11099# the resulting binary. 11100hardcode_shlibpath_var=$hardcode_shlibpath_var 11101 11102# Set to yes if building a shared library automatically hardcodes DIR into the library 11103# and all subsequent libraries and executables linked against it. 11104hardcode_automatic=$hardcode_automatic 11105 11106# Variables whose values should be saved in libtool wrapper scripts and 11107# restored at relink time. 11108variables_saved_for_relink="$variables_saved_for_relink" 11109 11110# Whether libtool must link a program against all its dependency libraries. 11111link_all_deplibs=$link_all_deplibs 11112 11113# Compile-time system search path for libraries 11114sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11115 11116# Run-time system search path for libraries 11117sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11118 11119# Fix the shell variable \$srcfile for the compiler. 11120fix_srcfile_path=$lt_fix_srcfile_path 11121 11122# Set to yes if exported symbols are required. 11123always_export_symbols=$always_export_symbols 11124 11125# The commands to list exported symbols. 11126export_symbols_cmds=$lt_export_symbols_cmds 11127 11128# The commands to extract the exported symbol list from a shared archive. 11129extract_expsyms_cmds=$lt_extract_expsyms_cmds 11130 11131# Symbols that should not be listed in the preloaded symbols. 11132exclude_expsyms=$lt_exclude_expsyms 11133 11134# Symbols that must always be exported. 11135include_expsyms=$lt_include_expsyms 11136 11137# ### END LIBTOOL CONFIG 11138 11139__EOF__ 11140 11141 11142 case $host_os in 11143 aix3*) 11144 cat <<\EOF >> "$cfgfile" 11145 11146# AIX sometimes has problems with the GCC collect2 program. For some 11147# reason, if we set the COLLECT_NAMES environment variable, the problems 11148# vanish in a puff of smoke. 11149if test "X${COLLECT_NAMES+set}" != Xset; then 11150 COLLECT_NAMES= 11151 export COLLECT_NAMES 11152fi 11153EOF 11154 ;; 11155 esac 11156 11157 # We use sed instead of cat because bash on DJGPP gets confused if 11158 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11159 # text mode, it properly converts lines to CR/LF. This bash problem 11160 # is reportedly fixed, but why not run on old versions too? 11161 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11162 11163 mv -f "$cfgfile" "$ofile" || \ 11164 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11165 chmod +x "$ofile" 11166 11167else 11168 # If there is no Makefile yet, we rely on a make rule to execute 11169 # `config.status --recheck' to rerun these tests and create the 11170 # libtool script then. 11171 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11172 if test -f "$ltmain_in"; then 11173 test -f Makefile && make "$ltmain" 11174 fi 11175fi 11176 11177 11178ac_ext=c 11179ac_cpp='$CPP $CPPFLAGS' 11180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11182ac_compiler_gnu=$ac_cv_c_compiler_gnu 11183 11184CC="$lt_save_CC" 11185 11186 11187# Check whether --with-tags was given. 11188if test "${with_tags+set}" = set; then 11189 withval=$with_tags; tagnames="$withval" 11190fi 11191 11192 11193if test -f "$ltmain" && test -n "$tagnames"; then 11194 if test ! -f "${ofile}"; then 11195 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11196$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11197 fi 11198 11199 if test -z "$LTCC"; then 11200 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11201 if test -z "$LTCC"; then 11202 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11203$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11204 else 11205 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11206$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11207 fi 11208 fi 11209 if test -z "$LTCFLAGS"; then 11210 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11211 fi 11212 11213 # Extract list of available tagged configurations in $ofile. 11214 # Note that this assumes the entire list is on one line. 11215 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11216 11217 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11218 for tagname in $tagnames; do 11219 IFS="$lt_save_ifs" 11220 # Check whether tagname contains only valid characters 11221 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11222 "") ;; 11223 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11224$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11225 { (exit 1); exit 1; }; } 11226 ;; 11227 esac 11228 11229 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11230 then 11231 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11232$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11233 { (exit 1); exit 1; }; } 11234 fi 11235 11236 # Update the list of available tags. 11237 if test -n "$tagname"; then 11238 echo appending configuration tag \"$tagname\" to $ofile 11239 11240 case $tagname in 11241 CXX) 11242 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11243 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11244 (test "X$CXX" != "Xg++"))) ; then 11245 ac_ext=cpp 11246ac_cpp='$CXXCPP $CPPFLAGS' 11247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11250 11251 11252 11253 11254archive_cmds_need_lc_CXX=no 11255allow_undefined_flag_CXX= 11256always_export_symbols_CXX=no 11257archive_expsym_cmds_CXX= 11258export_dynamic_flag_spec_CXX= 11259hardcode_direct_CXX=no 11260hardcode_libdir_flag_spec_CXX= 11261hardcode_libdir_flag_spec_ld_CXX= 11262hardcode_libdir_separator_CXX= 11263hardcode_minus_L_CXX=no 11264hardcode_shlibpath_var_CXX=unsupported 11265hardcode_automatic_CXX=no 11266module_cmds_CXX= 11267module_expsym_cmds_CXX= 11268link_all_deplibs_CXX=unknown 11269old_archive_cmds_CXX=$old_archive_cmds 11270no_undefined_flag_CXX= 11271whole_archive_flag_spec_CXX= 11272enable_shared_with_static_runtimes_CXX=no 11273 11274# Dependencies to place before and after the object being linked: 11275predep_objects_CXX= 11276postdep_objects_CXX= 11277predeps_CXX= 11278postdeps_CXX= 11279compiler_lib_search_path_CXX= 11280compiler_lib_search_dirs_CXX= 11281 11282# Source file extension for C++ test sources. 11283ac_ext=cpp 11284 11285# Object file extension for compiled C++ test sources. 11286objext=o 11287objext_CXX=$objext 11288 11289# Code to be used in simple compile tests 11290lt_simple_compile_test_code="int some_variable = 0;" 11291 11292# Code to be used in simple link tests 11293lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11294 11295# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11296 11297# If no C compiler was specified, use CC. 11298LTCC=${LTCC-"$CC"} 11299 11300# If no C compiler flags were specified, use CFLAGS. 11301LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11302 11303# Allow CC to be a program name with arguments. 11304compiler=$CC 11305 11306 11307# save warnings/boilerplate of simple test code 11308ac_outfile=conftest.$ac_objext 11309echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11310eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11311_lt_compiler_boilerplate=`cat conftest.err` 11312$rm conftest* 11313 11314ac_outfile=conftest.$ac_objext 11315echo "$lt_simple_link_test_code" >conftest.$ac_ext 11316eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11317_lt_linker_boilerplate=`cat conftest.err` 11318$rm -r conftest* 11319 11320 11321# Allow CC to be a program name with arguments. 11322lt_save_CC=$CC 11323lt_save_LD=$LD 11324lt_save_GCC=$GCC 11325GCC=$GXX 11326lt_save_with_gnu_ld=$with_gnu_ld 11327lt_save_path_LD=$lt_cv_path_LD 11328if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11329 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11330else 11331 $as_unset lt_cv_prog_gnu_ld 11332fi 11333if test -n "${lt_cv_path_LDCXX+set}"; then 11334 lt_cv_path_LD=$lt_cv_path_LDCXX 11335else 11336 $as_unset lt_cv_path_LD 11337fi 11338test -z "${LDCXX+set}" || LD=$LDCXX 11339CC=${CXX-"c++"} 11340compiler=$CC 11341compiler_CXX=$CC 11342for cc_temp in $compiler""; do 11343 case $cc_temp in 11344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11346 \-*) ;; 11347 *) break;; 11348 esac 11349done 11350cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11351 11352 11353# We don't want -fno-exception wen compiling C++ code, so set the 11354# no_builtin_flag separately 11355if test "$GXX" = yes; then 11356 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11357else 11358 lt_prog_compiler_no_builtin_flag_CXX= 11359fi 11360 11361if test "$GXX" = yes; then 11362 # Set up default GNU C++ configuration 11363 11364 11365# Check whether --with-gnu-ld was given. 11366if test "${with_gnu_ld+set}" = set; then 11367 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11368else 11369 with_gnu_ld=no 11370fi 11371 11372ac_prog=ld 11373if test "$GCC" = yes; then 11374 # Check if gcc -print-prog-name=ld gives a path. 11375 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11376$as_echo_n "checking for ld used by $CC... " >&6; } 11377 case $host in 11378 *-*-mingw*) 11379 # gcc leaves a trailing carriage return which upsets mingw 11380 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11381 *) 11382 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11383 esac 11384 case $ac_prog in 11385 # Accept absolute paths. 11386 [\\/]* | ?:[\\/]*) 11387 re_direlt='/[^/][^/]*/\.\./' 11388 # Canonicalize the pathname of ld 11389 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11390 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11391 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11392 done 11393 test -z "$LD" && LD="$ac_prog" 11394 ;; 11395 "") 11396 # If it fails, then pretend we aren't using GCC. 11397 ac_prog=ld 11398 ;; 11399 *) 11400 # If it is relative, then search for the first ld in PATH. 11401 with_gnu_ld=unknown 11402 ;; 11403 esac 11404elif test "$with_gnu_ld" = yes; then 11405 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11406$as_echo_n "checking for GNU ld... " >&6; } 11407else 11408 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11409$as_echo_n "checking for non-GNU ld... " >&6; } 11410fi 11411if test "${lt_cv_path_LD+set}" = set; then 11412 $as_echo_n "(cached) " >&6 11413else 11414 if test -z "$LD"; then 11415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11416 for ac_dir in $PATH; do 11417 IFS="$lt_save_ifs" 11418 test -z "$ac_dir" && ac_dir=. 11419 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11420 lt_cv_path_LD="$ac_dir/$ac_prog" 11421 # Check to see if the program is GNU ld. I'd rather use --version, 11422 # but apparently some variants of GNU ld only accept -v. 11423 # Break only if it was the GNU/non-GNU ld that we prefer. 11424 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11425 *GNU* | *'with BFD'*) 11426 test "$with_gnu_ld" != no && break 11427 ;; 11428 *) 11429 test "$with_gnu_ld" != yes && break 11430 ;; 11431 esac 11432 fi 11433 done 11434 IFS="$lt_save_ifs" 11435else 11436 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11437fi 11438fi 11439 11440LD="$lt_cv_path_LD" 11441if test -n "$LD"; then 11442 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11443$as_echo "$LD" >&6; } 11444else 11445 { $as_echo "$as_me:$LINENO: result: no" >&5 11446$as_echo "no" >&6; } 11447fi 11448test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11449$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11450 { (exit 1); exit 1; }; } 11451{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11452$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11453if test "${lt_cv_prog_gnu_ld+set}" = set; then 11454 $as_echo_n "(cached) " >&6 11455else 11456 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11457case `$LD -v 2>&1 </dev/null` in 11458*GNU* | *'with BFD'*) 11459 lt_cv_prog_gnu_ld=yes 11460 ;; 11461*) 11462 lt_cv_prog_gnu_ld=no 11463 ;; 11464esac 11465fi 11466{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11467$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11468with_gnu_ld=$lt_cv_prog_gnu_ld 11469 11470 11471 11472 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11473 # archiving commands below assume that GNU ld is being used. 11474 if test "$with_gnu_ld" = yes; then 11475 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11476 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' 11477 11478 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11479 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11480 11481 # If archive_cmds runs LD, not CC, wlarc should be empty 11482 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11483 # investigate it a little bit more. (MM) 11484 wlarc='${wl}' 11485 11486 # ancient GNU ld didn't support --whole-archive et. al. 11487 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11488 grep 'no-whole-archive' > /dev/null; then 11489 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11490 else 11491 whole_archive_flag_spec_CXX= 11492 fi 11493 else 11494 with_gnu_ld=no 11495 wlarc= 11496 11497 # A generic and very simple default shared library creation 11498 # command for GNU C++ for the case where it uses the native 11499 # linker, instead of GNU ld. If possible, this setting should 11500 # overridden to take advantage of the native linker features on 11501 # the platform it is being used on. 11502 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11503 fi 11504 11505 # Commands to make compiler produce verbose output that lists 11506 # what "hidden" libraries, object files and flags are used when 11507 # linking a shared library. 11508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11509 11510else 11511 GXX=no 11512 with_gnu_ld=no 11513 wlarc= 11514fi 11515 11516# PORTME: fill in a description of your system's C++ link characteristics 11517{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11518$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11519ld_shlibs_CXX=yes 11520case $host_os in 11521 aix3*) 11522 # FIXME: insert proper C++ library support 11523 ld_shlibs_CXX=no 11524 ;; 11525 aix[4-9]*) 11526 if test "$host_cpu" = ia64; then 11527 # On IA64, the linker does run time linking by default, so we don't 11528 # have to do anything special. 11529 aix_use_runtimelinking=no 11530 exp_sym_flag='-Bexport' 11531 no_entry_flag="" 11532 else 11533 aix_use_runtimelinking=no 11534 11535 # Test if we are trying to use run time linking or normal 11536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11537 # need to do runtime linking. 11538 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11539 for ld_flag in $LDFLAGS; do 11540 case $ld_flag in 11541 *-brtl*) 11542 aix_use_runtimelinking=yes 11543 break 11544 ;; 11545 esac 11546 done 11547 ;; 11548 esac 11549 11550 exp_sym_flag='-bexport' 11551 no_entry_flag='-bnoentry' 11552 fi 11553 11554 # When large executables or shared objects are built, AIX ld can 11555 # have problems creating the table of contents. If linking a library 11556 # or program results in "error TOC overflow" add -mminimal-toc to 11557 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11558 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11559 11560 archive_cmds_CXX='' 11561 hardcode_direct_CXX=yes 11562 hardcode_libdir_separator_CXX=':' 11563 link_all_deplibs_CXX=yes 11564 11565 if test "$GXX" = yes; then 11566 case $host_os in aix4.[012]|aix4.[012].*) 11567 # We only want to do this on AIX 4.2 and lower, the check 11568 # below for broken collect2 doesn't work under 4.3+ 11569 collect2name=`${CC} -print-prog-name=collect2` 11570 if test -f "$collect2name" && \ 11571 strings "$collect2name" | grep resolve_lib_name >/dev/null 11572 then 11573 # We have reworked collect2 11574 : 11575 else 11576 # We have old collect2 11577 hardcode_direct_CXX=unsupported 11578 # It fails to find uninstalled libraries when the uninstalled 11579 # path is not listed in the libpath. Setting hardcode_minus_L 11580 # to unsupported forces relinking 11581 hardcode_minus_L_CXX=yes 11582 hardcode_libdir_flag_spec_CXX='-L$libdir' 11583 hardcode_libdir_separator_CXX= 11584 fi 11585 ;; 11586 esac 11587 shared_flag='-shared' 11588 if test "$aix_use_runtimelinking" = yes; then 11589 shared_flag="$shared_flag "'${wl}-G' 11590 fi 11591 else 11592 # not using gcc 11593 if test "$host_cpu" = ia64; then 11594 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11595 # chokes on -Wl,-G. The following line is correct: 11596 shared_flag='-G' 11597 else 11598 if test "$aix_use_runtimelinking" = yes; then 11599 shared_flag='${wl}-G' 11600 else 11601 shared_flag='${wl}-bM:SRE' 11602 fi 11603 fi 11604 fi 11605 11606 # It seems that -bexpall does not export symbols beginning with 11607 # underscore (_), so it is better to generate a list of symbols to export. 11608 always_export_symbols_CXX=yes 11609 if test "$aix_use_runtimelinking" = yes; then 11610 # Warning - without using the other runtime loading flags (-brtl), 11611 # -berok will link without error, but may produce a broken library. 11612 allow_undefined_flag_CXX='-berok' 11613 # Determine the default libpath from the value encoded in an empty executable. 11614 cat >conftest.$ac_ext <<_ACEOF 11615/* confdefs.h. */ 11616_ACEOF 11617cat confdefs.h >>conftest.$ac_ext 11618cat >>conftest.$ac_ext <<_ACEOF 11619/* end confdefs.h. */ 11620 11621int 11622main () 11623{ 11624 11625 ; 11626 return 0; 11627} 11628_ACEOF 11629rm -f conftest.$ac_objext conftest$ac_exeext 11630if { (ac_try="$ac_link" 11631case "(($ac_try" in 11632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11633 *) ac_try_echo=$ac_try;; 11634esac 11635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11636$as_echo "$ac_try_echo") >&5 11637 (eval "$ac_link") 2>conftest.er1 11638 ac_status=$? 11639 grep -v '^ *+' conftest.er1 >conftest.err 11640 rm -f conftest.er1 11641 cat conftest.err >&5 11642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11643 (exit $ac_status); } && { 11644 test -z "$ac_cxx_werror_flag" || 11645 test ! -s conftest.err 11646 } && test -s conftest$ac_exeext && { 11647 test "$cross_compiling" = yes || 11648 $as_test_x conftest$ac_exeext 11649 }; then 11650 11651lt_aix_libpath_sed=' 11652 /Import File Strings/,/^$/ { 11653 /^0/ { 11654 s/^0 *\(.*\)$/\1/ 11655 p 11656 } 11657 }' 11658aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11659# Check for a 64-bit object if we didn't find anything. 11660if test -z "$aix_libpath"; then 11661 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11662fi 11663else 11664 $as_echo "$as_me: failed program was:" >&5 11665sed 's/^/| /' conftest.$ac_ext >&5 11666 11667 11668fi 11669 11670rm -rf conftest.dSYM 11671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11672 conftest$ac_exeext conftest.$ac_ext 11673if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11674 11675 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11676 11677 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" 11678 else 11679 if test "$host_cpu" = ia64; then 11680 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11681 allow_undefined_flag_CXX="-z nodefs" 11682 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" 11683 else 11684 # Determine the default libpath from the value encoded in an empty executable. 11685 cat >conftest.$ac_ext <<_ACEOF 11686/* confdefs.h. */ 11687_ACEOF 11688cat confdefs.h >>conftest.$ac_ext 11689cat >>conftest.$ac_ext <<_ACEOF 11690/* end confdefs.h. */ 11691 11692int 11693main () 11694{ 11695 11696 ; 11697 return 0; 11698} 11699_ACEOF 11700rm -f conftest.$ac_objext conftest$ac_exeext 11701if { (ac_try="$ac_link" 11702case "(($ac_try" in 11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11704 *) ac_try_echo=$ac_try;; 11705esac 11706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11707$as_echo "$ac_try_echo") >&5 11708 (eval "$ac_link") 2>conftest.er1 11709 ac_status=$? 11710 grep -v '^ *+' conftest.er1 >conftest.err 11711 rm -f conftest.er1 11712 cat conftest.err >&5 11713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11714 (exit $ac_status); } && { 11715 test -z "$ac_cxx_werror_flag" || 11716 test ! -s conftest.err 11717 } && test -s conftest$ac_exeext && { 11718 test "$cross_compiling" = yes || 11719 $as_test_x conftest$ac_exeext 11720 }; then 11721 11722lt_aix_libpath_sed=' 11723 /Import File Strings/,/^$/ { 11724 /^0/ { 11725 s/^0 *\(.*\)$/\1/ 11726 p 11727 } 11728 }' 11729aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11730# Check for a 64-bit object if we didn't find anything. 11731if test -z "$aix_libpath"; then 11732 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11733fi 11734else 11735 $as_echo "$as_me: failed program was:" >&5 11736sed 's/^/| /' conftest.$ac_ext >&5 11737 11738 11739fi 11740 11741rm -rf conftest.dSYM 11742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11743 conftest$ac_exeext conftest.$ac_ext 11744if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11745 11746 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11747 # Warning - without using the other run time loading flags, 11748 # -berok will link without error, but may produce a broken library. 11749 no_undefined_flag_CXX=' ${wl}-bernotok' 11750 allow_undefined_flag_CXX=' ${wl}-berok' 11751 # Exported symbols can be pulled into shared objects from archives 11752 whole_archive_flag_spec_CXX='$convenience' 11753 archive_cmds_need_lc_CXX=yes 11754 # This is similar to how AIX traditionally builds its shared libraries. 11755 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' 11756 fi 11757 fi 11758 ;; 11759 11760 beos*) 11761 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11762 allow_undefined_flag_CXX=unsupported 11763 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11764 # support --undefined. This deserves some investigation. FIXME 11765 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11766 else 11767 ld_shlibs_CXX=no 11768 fi 11769 ;; 11770 11771 chorus*) 11772 case $cc_basename in 11773 *) 11774 # FIXME: insert proper C++ library support 11775 ld_shlibs_CXX=no 11776 ;; 11777 esac 11778 ;; 11779 11780 cygwin* | mingw* | pw32*) 11781 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11782 # as there is no search path for DLLs. 11783 hardcode_libdir_flag_spec_CXX='-L$libdir' 11784 allow_undefined_flag_CXX=unsupported 11785 always_export_symbols_CXX=no 11786 enable_shared_with_static_runtimes_CXX=yes 11787 11788 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11789 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' 11790 # If the export-symbols file already is a .def file (1st line 11791 # is EXPORTS), use it as is; otherwise, prepend... 11792 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11793 cp $export_symbols $output_objdir/$soname.def; 11794 else 11795 echo EXPORTS > $output_objdir/$soname.def; 11796 cat $export_symbols >> $output_objdir/$soname.def; 11797 fi~ 11798 $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' 11799 else 11800 ld_shlibs_CXX=no 11801 fi 11802 ;; 11803 darwin* | rhapsody*) 11804 archive_cmds_need_lc_CXX=no 11805 hardcode_direct_CXX=no 11806 hardcode_automatic_CXX=yes 11807 hardcode_shlibpath_var_CXX=unsupported 11808 whole_archive_flag_spec_CXX='' 11809 link_all_deplibs_CXX=yes 11810 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11811 if test "$GXX" = yes ; then 11812 output_verbose_link_cmd='echo' 11813 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11814 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11815 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 11816 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 11817 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11818 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${_lt_dsymutil}" 11819 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" 11820 fi 11821 else 11822 case $cc_basename in 11823 xlc*) 11824 output_verbose_link_cmd='echo' 11825 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11826 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11827 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11828 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11829 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}' 11830 ;; 11831 *) 11832 ld_shlibs_CXX=no 11833 ;; 11834 esac 11835 fi 11836 ;; 11837 11838 dgux*) 11839 case $cc_basename in 11840 ec++*) 11841 # FIXME: insert proper C++ library support 11842 ld_shlibs_CXX=no 11843 ;; 11844 ghcx*) 11845 # Green Hills C++ Compiler 11846 # FIXME: insert proper C++ library support 11847 ld_shlibs_CXX=no 11848 ;; 11849 *) 11850 # FIXME: insert proper C++ library support 11851 ld_shlibs_CXX=no 11852 ;; 11853 esac 11854 ;; 11855 freebsd[12]*) 11856 # C++ shared libraries reported to be fairly broken before switch to ELF 11857 ld_shlibs_CXX=no 11858 ;; 11859 freebsd-elf*) 11860 archive_cmds_need_lc_CXX=no 11861 ;; 11862 freebsd* | dragonfly*) 11863 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11864 # conventions 11865 ld_shlibs_CXX=yes 11866 ;; 11867 gnu*) 11868 ;; 11869 hpux9*) 11870 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11871 hardcode_libdir_separator_CXX=: 11872 export_dynamic_flag_spec_CXX='${wl}-E' 11873 hardcode_direct_CXX=yes 11874 hardcode_minus_L_CXX=yes # Not in the search PATH, 11875 # but as the default 11876 # location of the library. 11877 11878 case $cc_basename in 11879 CC*) 11880 # FIXME: insert proper C++ library support 11881 ld_shlibs_CXX=no 11882 ;; 11883 aCC*) 11884 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' 11885 # Commands to make compiler produce verbose output that lists 11886 # what "hidden" libraries, object files and flags are used when 11887 # linking a shared library. 11888 # 11889 # There doesn't appear to be a way to prevent this compiler from 11890 # explicitly linking system object files so we need to strip them 11891 # from the output so that they don't get included in the library 11892 # dependencies. 11893 output_verbose_link_cmd='templist=`($CC -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' 11894 ;; 11895 *) 11896 if test "$GXX" = yes; then 11897 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' 11898 else 11899 # FIXME: insert proper C++ library support 11900 ld_shlibs_CXX=no 11901 fi 11902 ;; 11903 esac 11904 ;; 11905 hpux10*|hpux11*) 11906 if test $with_gnu_ld = no; then 11907 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11908 hardcode_libdir_separator_CXX=: 11909 11910 case $host_cpu in 11911 hppa*64*|ia64*) ;; 11912 *) 11913 export_dynamic_flag_spec_CXX='${wl}-E' 11914 ;; 11915 esac 11916 fi 11917 case $host_cpu in 11918 hppa*64*|ia64*) 11919 hardcode_direct_CXX=no 11920 hardcode_shlibpath_var_CXX=no 11921 ;; 11922 *) 11923 hardcode_direct_CXX=yes 11924 hardcode_minus_L_CXX=yes # Not in the search PATH, 11925 # but as the default 11926 # location of the library. 11927 ;; 11928 esac 11929 11930 case $cc_basename in 11931 CC*) 11932 # FIXME: insert proper C++ library support 11933 ld_shlibs_CXX=no 11934 ;; 11935 aCC*) 11936 case $host_cpu in 11937 hppa*64*) 11938 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11939 ;; 11940 ia64*) 11941 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11942 ;; 11943 *) 11944 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11945 ;; 11946 esac 11947 # Commands to make compiler produce verbose output that lists 11948 # what "hidden" libraries, object files and flags are used when 11949 # linking a shared library. 11950 # 11951 # There doesn't appear to be a way to prevent this compiler from 11952 # explicitly linking system object files so we need to strip them 11953 # from the output so that they don't get included in the library 11954 # dependencies. 11955 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' 11956 ;; 11957 *) 11958 if test "$GXX" = yes; then 11959 if test $with_gnu_ld = no; then 11960 case $host_cpu in 11961 hppa*64*) 11962 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11963 ;; 11964 ia64*) 11965 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11966 ;; 11967 *) 11968 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' 11969 ;; 11970 esac 11971 fi 11972 else 11973 # FIXME: insert proper C++ library support 11974 ld_shlibs_CXX=no 11975 fi 11976 ;; 11977 esac 11978 ;; 11979 interix[3-9]*) 11980 hardcode_direct_CXX=no 11981 hardcode_shlibpath_var_CXX=no 11982 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11983 export_dynamic_flag_spec_CXX='${wl}-E' 11984 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11985 # Instead, shared libraries are loaded at an image base (0x10000000 by 11986 # default) and relocated if they conflict, which is a slow very memory 11987 # consuming and fragmenting process. To avoid this, we pick a random, 11988 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11989 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11990 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' 11991 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' 11992 ;; 11993 irix5* | irix6*) 11994 case $cc_basename in 11995 CC*) 11996 # SGI C++ 11997 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' 11998 11999 # Archives containing C++ object files must be created using 12000 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12001 # necessary to make sure instantiated templates are included 12002 # in the archive. 12003 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12004 ;; 12005 *) 12006 if test "$GXX" = yes; then 12007 if test "$with_gnu_ld" = no; then 12008 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' 12009 else 12010 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' 12011 fi 12012 fi 12013 link_all_deplibs_CXX=yes 12014 ;; 12015 esac 12016 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12017 hardcode_libdir_separator_CXX=: 12018 ;; 12019 linux* | k*bsd*-gnu) 12020 case $cc_basename in 12021 KCC*) 12022 # Kuck and Associates, Inc. (KAI) C++ Compiler 12023 12024 # KCC will only create a shared library if the output file 12025 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12026 # to its proper name (with version) after linking. 12027 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' 12028 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' 12029 # Commands to make compiler produce verbose output that lists 12030 # what "hidden" libraries, object files and flags are used when 12031 # linking a shared library. 12032 # 12033 # There doesn't appear to be a way to prevent this compiler from 12034 # explicitly linking system object files so we need to strip them 12035 # from the output so that they don't get included in the library 12036 # dependencies. 12037 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' 12038 12039 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12040 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12041 12042 # Archives containing C++ object files must be created using 12043 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12044 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12045 ;; 12046 icpc*) 12047 # Intel C++ 12048 with_gnu_ld=yes 12049 # version 8.0 and above of icpc choke on multiply defined symbols 12050 # if we add $predep_objects and $postdep_objects, however 7.1 and 12051 # earlier do not add the objects themselves. 12052 case `$CC -V 2>&1` in 12053 *"Version 7."*) 12054 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12055 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' 12056 ;; 12057 *) # Version 8.0 or newer 12058 tmp_idyn= 12059 case $host_cpu in 12060 ia64*) tmp_idyn=' -i_dynamic';; 12061 esac 12062 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12063 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' 12064 ;; 12065 esac 12066 archive_cmds_need_lc_CXX=no 12067 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12068 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12069 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12070 ;; 12071 pgCC* | pgcpp*) 12072 # Portland Group C++ compiler 12073 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12074 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' 12075 12076 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12077 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12078 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' 12079 ;; 12080 cxx*) 12081 # Compaq C++ 12082 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12083 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' 12084 12085 runpath_var=LD_RUN_PATH 12086 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12087 hardcode_libdir_separator_CXX=: 12088 12089 # Commands to make compiler produce verbose output that lists 12090 # what "hidden" libraries, object files and flags are used when 12091 # linking a shared library. 12092 # 12093 # There doesn't appear to be a way to prevent this compiler from 12094 # explicitly linking system object files so we need to strip them 12095 # from the output so that they don't get included in the library 12096 # dependencies. 12097 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' 12098 ;; 12099 *) 12100 case `$CC -V 2>&1 | sed 5q` in 12101 *Sun\ C*) 12102 # Sun C++ 5.9 12103 no_undefined_flag_CXX=' -zdefs' 12104 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12105 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 12106 hardcode_libdir_flag_spec_CXX='-R$libdir' 12107 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 12108 12109 # Not sure whether something based on 12110 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12111 # would be better. 12112 output_verbose_link_cmd='echo' 12113 12114 # Archives containing C++ object files must be created using 12115 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12116 # necessary to make sure instantiated templates are included 12117 # in the archive. 12118 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12119 ;; 12120 esac 12121 ;; 12122 esac 12123 ;; 12124 lynxos*) 12125 # FIXME: insert proper C++ library support 12126 ld_shlibs_CXX=no 12127 ;; 12128 m88k*) 12129 # FIXME: insert proper C++ library support 12130 ld_shlibs_CXX=no 12131 ;; 12132 mvs*) 12133 case $cc_basename in 12134 cxx*) 12135 # FIXME: insert proper C++ library support 12136 ld_shlibs_CXX=no 12137 ;; 12138 *) 12139 # FIXME: insert proper C++ library support 12140 ld_shlibs_CXX=no 12141 ;; 12142 esac 12143 ;; 12144 netbsd*) 12145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12146 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12147 wlarc= 12148 hardcode_libdir_flag_spec_CXX='-R$libdir' 12149 hardcode_direct_CXX=yes 12150 hardcode_shlibpath_var_CXX=no 12151 fi 12152 # Workaround some broken pre-1.5 toolchains 12153 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12154 ;; 12155 openbsd2*) 12156 # C++ shared libraries are fairly broken 12157 ld_shlibs_CXX=no 12158 ;; 12159 openbsd*) 12160 if test -f /usr/libexec/ld.so; then 12161 hardcode_direct_CXX=yes 12162 hardcode_shlibpath_var_CXX=no 12163 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12166 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12167 export_dynamic_flag_spec_CXX='${wl}-E' 12168 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12169 fi 12170 output_verbose_link_cmd='echo' 12171 else 12172 ld_shlibs_CXX=no 12173 fi 12174 ;; 12175 osf3*) 12176 case $cc_basename in 12177 KCC*) 12178 # Kuck and Associates, Inc. (KAI) C++ Compiler 12179 12180 # KCC will only create a shared library if the output file 12181 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12182 # to its proper name (with version) after linking. 12183 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' 12184 12185 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12186 hardcode_libdir_separator_CXX=: 12187 12188 # Archives containing C++ object files must be created using 12189 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12190 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12191 12192 ;; 12193 RCC*) 12194 # Rational C++ 2.4.1 12195 # FIXME: insert proper C++ library support 12196 ld_shlibs_CXX=no 12197 ;; 12198 cxx*) 12199 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12200 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' 12201 12202 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12203 hardcode_libdir_separator_CXX=: 12204 12205 # Commands to make compiler produce verbose output that lists 12206 # what "hidden" libraries, object files and flags are used when 12207 # linking a shared library. 12208 # 12209 # There doesn't appear to be a way to prevent this compiler from 12210 # explicitly linking system object files so we need to strip them 12211 # from the output so that they don't get included in the library 12212 # dependencies. 12213 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' 12214 ;; 12215 *) 12216 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12217 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12218 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' 12219 12220 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12221 hardcode_libdir_separator_CXX=: 12222 12223 # Commands to make compiler produce verbose output that lists 12224 # what "hidden" libraries, object files and flags are used when 12225 # linking a shared library. 12226 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12227 12228 else 12229 # FIXME: insert proper C++ library support 12230 ld_shlibs_CXX=no 12231 fi 12232 ;; 12233 esac 12234 ;; 12235 osf4* | osf5*) 12236 case $cc_basename in 12237 KCC*) 12238 # Kuck and Associates, Inc. (KAI) C++ Compiler 12239 12240 # KCC will only create a shared library if the output file 12241 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12242 # to its proper name (with version) after linking. 12243 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' 12244 12245 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12246 hardcode_libdir_separator_CXX=: 12247 12248 # Archives containing C++ object files must be created using 12249 # the KAI C++ compiler. 12250 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12251 ;; 12252 RCC*) 12253 # Rational C++ 2.4.1 12254 # FIXME: insert proper C++ library support 12255 ld_shlibs_CXX=no 12256 ;; 12257 cxx*) 12258 allow_undefined_flag_CXX=' -expect_unresolved \*' 12259 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' 12260 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12261 echo "-hidden">> $lib.exp~ 12262 $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~ 12263 $rm $lib.exp' 12264 12265 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12266 hardcode_libdir_separator_CXX=: 12267 12268 # Commands to make compiler produce verbose output that lists 12269 # what "hidden" libraries, object files and flags are used when 12270 # linking a shared library. 12271 # 12272 # There doesn't appear to be a way to prevent this compiler from 12273 # explicitly linking system object files so we need to strip them 12274 # from the output so that they don't get included in the library 12275 # dependencies. 12276 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' 12277 ;; 12278 *) 12279 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12280 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12281 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' 12282 12283 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12284 hardcode_libdir_separator_CXX=: 12285 12286 # Commands to make compiler produce verbose output that lists 12287 # what "hidden" libraries, object files and flags are used when 12288 # linking a shared library. 12289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12290 12291 else 12292 # FIXME: insert proper C++ library support 12293 ld_shlibs_CXX=no 12294 fi 12295 ;; 12296 esac 12297 ;; 12298 psos*) 12299 # FIXME: insert proper C++ library support 12300 ld_shlibs_CXX=no 12301 ;; 12302 sunos4*) 12303 case $cc_basename in 12304 CC*) 12305 # Sun C++ 4.x 12306 # FIXME: insert proper C++ library support 12307 ld_shlibs_CXX=no 12308 ;; 12309 lcc*) 12310 # Lucid 12311 # FIXME: insert proper C++ library support 12312 ld_shlibs_CXX=no 12313 ;; 12314 *) 12315 # FIXME: insert proper C++ library support 12316 ld_shlibs_CXX=no 12317 ;; 12318 esac 12319 ;; 12320 solaris*) 12321 case $cc_basename in 12322 CC*) 12323 # Sun C++ 4.2, 5.x and Centerline C++ 12324 archive_cmds_need_lc_CXX=yes 12325 no_undefined_flag_CXX=' -zdefs' 12326 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12327 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12328 $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' 12329 12330 hardcode_libdir_flag_spec_CXX='-R$libdir' 12331 hardcode_shlibpath_var_CXX=no 12332 case $host_os in 12333 solaris2.[0-5] | solaris2.[0-5].*) ;; 12334 *) 12335 # The compiler driver will combine and reorder linker options, 12336 # but understands `-z linker_flag'. 12337 # Supported since Solaris 2.6 (maybe 2.5.1?) 12338 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12339 ;; 12340 esac 12341 link_all_deplibs_CXX=yes 12342 12343 output_verbose_link_cmd='echo' 12344 12345 # Archives containing C++ object files must be created using 12346 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12347 # necessary to make sure instantiated templates are included 12348 # in the archive. 12349 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12350 ;; 12351 gcx*) 12352 # Green Hills C++ Compiler 12353 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12354 12355 # The C++ compiler must be used to create the archive. 12356 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12357 ;; 12358 *) 12359 # GNU C++ compiler with Solaris linker 12360 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12361 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12362 if $CC --version | grep -v '^2\.7' > /dev/null; then 12363 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12364 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12365 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12366 12367 # Commands to make compiler produce verbose output that lists 12368 # what "hidden" libraries, object files and flags are used when 12369 # linking a shared library. 12370 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12371 else 12372 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12373 # platform. 12374 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12375 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12376 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12377 12378 # Commands to make compiler produce verbose output that lists 12379 # what "hidden" libraries, object files and flags are used when 12380 # linking a shared library. 12381 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12382 fi 12383 12384 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12385 case $host_os in 12386 solaris2.[0-5] | solaris2.[0-5].*) ;; 12387 *) 12388 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12389 ;; 12390 esac 12391 fi 12392 ;; 12393 esac 12394 ;; 12395 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12396 no_undefined_flag_CXX='${wl}-z,text' 12397 archive_cmds_need_lc_CXX=no 12398 hardcode_shlibpath_var_CXX=no 12399 runpath_var='LD_RUN_PATH' 12400 12401 case $cc_basename in 12402 CC*) 12403 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12404 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12405 ;; 12406 *) 12407 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12408 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12409 ;; 12410 esac 12411 ;; 12412 sysv5* | sco3.2v5* | sco5v6*) 12413 # Note: We can NOT use -z defs as we might desire, because we do not 12414 # link with -lc, and that would cause any symbols used from libc to 12415 # always be unresolved, which means just about no library would 12416 # ever link correctly. If we're not using GNU ld we use -z text 12417 # though, which does catch some bad symbols but isn't as heavy-handed 12418 # as -z defs. 12419 # For security reasons, it is highly recommended that you always 12420 # use absolute paths for naming shared libraries, and exclude the 12421 # DT_RUNPATH tag from executables and libraries. But doing so 12422 # requires that you compile everything twice, which is a pain. 12423 # So that behaviour is only enabled if SCOABSPATH is set to a 12424 # non-empty value in the environment. Most likely only useful for 12425 # creating official distributions of packages. 12426 # This is a hack until libtool officially supports absolute path 12427 # names for shared libraries. 12428 no_undefined_flag_CXX='${wl}-z,text' 12429 allow_undefined_flag_CXX='${wl}-z,nodefs' 12430 archive_cmds_need_lc_CXX=no 12431 hardcode_shlibpath_var_CXX=no 12432 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12433 hardcode_libdir_separator_CXX=':' 12434 link_all_deplibs_CXX=yes 12435 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12436 runpath_var='LD_RUN_PATH' 12437 12438 case $cc_basename in 12439 CC*) 12440 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12441 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12442 ;; 12443 *) 12444 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12445 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12446 ;; 12447 esac 12448 ;; 12449 tandem*) 12450 case $cc_basename in 12451 NCC*) 12452 # NonStop-UX NCC 3.20 12453 # FIXME: insert proper C++ library support 12454 ld_shlibs_CXX=no 12455 ;; 12456 *) 12457 # FIXME: insert proper C++ library support 12458 ld_shlibs_CXX=no 12459 ;; 12460 esac 12461 ;; 12462 vxworks*) 12463 # FIXME: insert proper C++ library support 12464 ld_shlibs_CXX=no 12465 ;; 12466 *) 12467 # FIXME: insert proper C++ library support 12468 ld_shlibs_CXX=no 12469 ;; 12470esac 12471{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12472$as_echo "$ld_shlibs_CXX" >&6; } 12473test "$ld_shlibs_CXX" = no && can_build_shared=no 12474 12475GCC_CXX="$GXX" 12476LD_CXX="$LD" 12477 12478cat > conftest.$ac_ext <<EOF 12479class Foo 12480{ 12481public: 12482 Foo (void) { a = 0; } 12483private: 12484 int a; 12485}; 12486EOF 12487 12488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12489 (eval $ac_compile) 2>&5 12490 ac_status=$? 12491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12492 (exit $ac_status); }; then 12493 # Parse the compiler output and extract the necessary 12494 # objects, libraries and library flags. 12495 12496 # Sentinel used to keep track of whether or not we are before 12497 # the conftest object file. 12498 pre_test_object_deps_done=no 12499 12500 # The `*' in the case matches for architectures that use `case' in 12501 # $output_verbose_cmd can trigger glob expansion during the loop 12502 # eval without this substitution. 12503 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12504 12505 for p in `eval $output_verbose_link_cmd`; do 12506 case $p in 12507 12508 -L* | -R* | -l*) 12509 # Some compilers place space between "-{L,R}" and the path. 12510 # Remove the space. 12511 if test $p = "-L" \ 12512 || test $p = "-R"; then 12513 prev=$p 12514 continue 12515 else 12516 prev= 12517 fi 12518 12519 if test "$pre_test_object_deps_done" = no; then 12520 case $p in 12521 -L* | -R*) 12522 # Internal compiler library paths should come after those 12523 # provided the user. The postdeps already come after the 12524 # user supplied libs so there is no need to process them. 12525 if test -z "$compiler_lib_search_path_CXX"; then 12526 compiler_lib_search_path_CXX="${prev}${p}" 12527 else 12528 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12529 fi 12530 ;; 12531 # The "-l" case would never come before the object being 12532 # linked, so don't bother handling this case. 12533 esac 12534 else 12535 if test -z "$postdeps_CXX"; then 12536 postdeps_CXX="${prev}${p}" 12537 else 12538 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12539 fi 12540 fi 12541 ;; 12542 12543 *.$objext) 12544 # This assumes that the test object file only shows up 12545 # once in the compiler output. 12546 if test "$p" = "conftest.$objext"; then 12547 pre_test_object_deps_done=yes 12548 continue 12549 fi 12550 12551 if test "$pre_test_object_deps_done" = no; then 12552 if test -z "$predep_objects_CXX"; then 12553 predep_objects_CXX="$p" 12554 else 12555 predep_objects_CXX="$predep_objects_CXX $p" 12556 fi 12557 else 12558 if test -z "$postdep_objects_CXX"; then 12559 postdep_objects_CXX="$p" 12560 else 12561 postdep_objects_CXX="$postdep_objects_CXX $p" 12562 fi 12563 fi 12564 ;; 12565 12566 *) ;; # Ignore the rest. 12567 12568 esac 12569 done 12570 12571 # Clean up. 12572 rm -f a.out a.exe 12573else 12574 echo "libtool.m4: error: problem compiling CXX test program" 12575fi 12576 12577$rm -f confest.$objext 12578 12579compiler_lib_search_dirs_CXX= 12580if test -n "$compiler_lib_search_path_CXX"; then 12581 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12582fi 12583 12584# PORTME: override above test on systems where it is broken 12585case $host_os in 12586interix[3-9]*) 12587 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12588 # hack all around it, let's just trust "g++" to DTRT. 12589 predep_objects_CXX= 12590 postdep_objects_CXX= 12591 postdeps_CXX= 12592 ;; 12593 12594linux*) 12595 case `$CC -V 2>&1 | sed 5q` in 12596 *Sun\ C*) 12597 # Sun C++ 5.9 12598 # 12599 # The more standards-conforming stlport4 library is 12600 # incompatible with the Cstd library. Avoid specifying 12601 # it if it's in CXXFLAGS. Ignore libCrun as 12602 # -library=stlport4 depends on it. 12603 case " $CXX $CXXFLAGS " in 12604 *" -library=stlport4 "*) 12605 solaris_use_stlport4=yes 12606 ;; 12607 esac 12608 if test "$solaris_use_stlport4" != yes; then 12609 postdeps_CXX='-library=Cstd -library=Crun' 12610 fi 12611 ;; 12612 esac 12613 ;; 12614 12615solaris*) 12616 case $cc_basename in 12617 CC*) 12618 # The more standards-conforming stlport4 library is 12619 # incompatible with the Cstd library. Avoid specifying 12620 # it if it's in CXXFLAGS. Ignore libCrun as 12621 # -library=stlport4 depends on it. 12622 case " $CXX $CXXFLAGS " in 12623 *" -library=stlport4 "*) 12624 solaris_use_stlport4=yes 12625 ;; 12626 esac 12627 12628 # Adding this requires a known-good setup of shared libraries for 12629 # Sun compiler versions before 5.6, else PIC objects from an old 12630 # archive will be linked into the output, leading to subtle bugs. 12631 if test "$solaris_use_stlport4" != yes; then 12632 postdeps_CXX='-library=Cstd -library=Crun' 12633 fi 12634 ;; 12635 esac 12636 ;; 12637esac 12638 12639case " $postdeps_CXX " in 12640*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12641esac 12642 12643lt_prog_compiler_wl_CXX= 12644lt_prog_compiler_pic_CXX= 12645lt_prog_compiler_static_CXX= 12646 12647{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12648$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12649 12650 # C++ specific cases for pic, static, wl, etc. 12651 if test "$GXX" = yes; then 12652 lt_prog_compiler_wl_CXX='-Wl,' 12653 lt_prog_compiler_static_CXX='-static' 12654 12655 case $host_os in 12656 aix*) 12657 # All AIX code is PIC. 12658 if test "$host_cpu" = ia64; then 12659 # AIX 5 now supports IA64 processor 12660 lt_prog_compiler_static_CXX='-Bstatic' 12661 fi 12662 ;; 12663 amigaos*) 12664 # FIXME: we need at least 68020 code to build shared libraries, but 12665 # adding the `-m68020' flag to GCC prevents building anything better, 12666 # like `-m68040'. 12667 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12668 ;; 12669 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12670 # PIC is the default for these OSes. 12671 ;; 12672 mingw* | cygwin* | os2* | pw32*) 12673 # This hack is so that the source file can tell whether it is being 12674 # built for inclusion in a dll (and should export symbols for example). 12675 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12676 # (--disable-auto-import) libraries 12677 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12678 ;; 12679 darwin* | rhapsody*) 12680 # PIC is the default on this platform 12681 # Common symbols not allowed in MH_DYLIB files 12682 lt_prog_compiler_pic_CXX='-fno-common' 12683 ;; 12684 *djgpp*) 12685 # DJGPP does not support shared libraries at all 12686 lt_prog_compiler_pic_CXX= 12687 ;; 12688 interix[3-9]*) 12689 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12690 # Instead, we relocate shared libraries at runtime. 12691 ;; 12692 sysv4*MP*) 12693 if test -d /usr/nec; then 12694 lt_prog_compiler_pic_CXX=-Kconform_pic 12695 fi 12696 ;; 12697 hpux*) 12698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12699 # not for PA HP-UX. 12700 case $host_cpu in 12701 hppa*64*|ia64*) 12702 ;; 12703 *) 12704 lt_prog_compiler_pic_CXX='-fPIC' 12705 ;; 12706 esac 12707 ;; 12708 *) 12709 lt_prog_compiler_pic_CXX='-fPIC' 12710 ;; 12711 esac 12712 else 12713 case $host_os in 12714 aix[4-9]*) 12715 # All AIX code is PIC. 12716 if test "$host_cpu" = ia64; then 12717 # AIX 5 now supports IA64 processor 12718 lt_prog_compiler_static_CXX='-Bstatic' 12719 else 12720 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12721 fi 12722 ;; 12723 chorus*) 12724 case $cc_basename in 12725 cxch68*) 12726 # Green Hills C++ Compiler 12727 # _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" 12728 ;; 12729 esac 12730 ;; 12731 darwin*) 12732 # PIC is the default on this platform 12733 # Common symbols not allowed in MH_DYLIB files 12734 case $cc_basename in 12735 xlc*) 12736 lt_prog_compiler_pic_CXX='-qnocommon' 12737 lt_prog_compiler_wl_CXX='-Wl,' 12738 ;; 12739 esac 12740 ;; 12741 dgux*) 12742 case $cc_basename in 12743 ec++*) 12744 lt_prog_compiler_pic_CXX='-KPIC' 12745 ;; 12746 ghcx*) 12747 # Green Hills C++ Compiler 12748 lt_prog_compiler_pic_CXX='-pic' 12749 ;; 12750 *) 12751 ;; 12752 esac 12753 ;; 12754 freebsd* | dragonfly*) 12755 # FreeBSD uses GNU C++ 12756 ;; 12757 hpux9* | hpux10* | hpux11*) 12758 case $cc_basename in 12759 CC*) 12760 lt_prog_compiler_wl_CXX='-Wl,' 12761 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12762 if test "$host_cpu" != ia64; then 12763 lt_prog_compiler_pic_CXX='+Z' 12764 fi 12765 ;; 12766 aCC*) 12767 lt_prog_compiler_wl_CXX='-Wl,' 12768 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12769 case $host_cpu in 12770 hppa*64*|ia64*) 12771 # +Z the default 12772 ;; 12773 *) 12774 lt_prog_compiler_pic_CXX='+Z' 12775 ;; 12776 esac 12777 ;; 12778 *) 12779 ;; 12780 esac 12781 ;; 12782 interix*) 12783 # This is c89, which is MS Visual C++ (no shared libs) 12784 # Anyone wants to do a port? 12785 ;; 12786 irix5* | irix6* | nonstopux*) 12787 case $cc_basename in 12788 CC*) 12789 lt_prog_compiler_wl_CXX='-Wl,' 12790 lt_prog_compiler_static_CXX='-non_shared' 12791 # CC pic flag -KPIC is the default. 12792 ;; 12793 *) 12794 ;; 12795 esac 12796 ;; 12797 linux* | k*bsd*-gnu) 12798 case $cc_basename in 12799 KCC*) 12800 # KAI C++ Compiler 12801 lt_prog_compiler_wl_CXX='--backend -Wl,' 12802 lt_prog_compiler_pic_CXX='-fPIC' 12803 ;; 12804 icpc* | ecpc*) 12805 # Intel C++ 12806 lt_prog_compiler_wl_CXX='-Wl,' 12807 lt_prog_compiler_pic_CXX='-KPIC' 12808 lt_prog_compiler_static_CXX='-static' 12809 ;; 12810 pgCC* | pgcpp*) 12811 # Portland Group C++ compiler. 12812 lt_prog_compiler_wl_CXX='-Wl,' 12813 lt_prog_compiler_pic_CXX='-fpic' 12814 lt_prog_compiler_static_CXX='-Bstatic' 12815 ;; 12816 cxx*) 12817 # Compaq C++ 12818 # Make sure the PIC flag is empty. It appears that all Alpha 12819 # Linux and Compaq Tru64 Unix objects are PIC. 12820 lt_prog_compiler_pic_CXX= 12821 lt_prog_compiler_static_CXX='-non_shared' 12822 ;; 12823 *) 12824 case `$CC -V 2>&1 | sed 5q` in 12825 *Sun\ C*) 12826 # Sun C++ 5.9 12827 lt_prog_compiler_pic_CXX='-KPIC' 12828 lt_prog_compiler_static_CXX='-Bstatic' 12829 lt_prog_compiler_wl_CXX='-Qoption ld ' 12830 ;; 12831 esac 12832 ;; 12833 esac 12834 ;; 12835 lynxos*) 12836 ;; 12837 m88k*) 12838 ;; 12839 mvs*) 12840 case $cc_basename in 12841 cxx*) 12842 lt_prog_compiler_pic_CXX='-W c,exportall' 12843 ;; 12844 *) 12845 ;; 12846 esac 12847 ;; 12848 netbsd*) 12849 ;; 12850 osf3* | osf4* | osf5*) 12851 case $cc_basename in 12852 KCC*) 12853 lt_prog_compiler_wl_CXX='--backend -Wl,' 12854 ;; 12855 RCC*) 12856 # Rational C++ 2.4.1 12857 lt_prog_compiler_pic_CXX='-pic' 12858 ;; 12859 cxx*) 12860 # Digital/Compaq C++ 12861 lt_prog_compiler_wl_CXX='-Wl,' 12862 # Make sure the PIC flag is empty. It appears that all Alpha 12863 # Linux and Compaq Tru64 Unix objects are PIC. 12864 lt_prog_compiler_pic_CXX= 12865 lt_prog_compiler_static_CXX='-non_shared' 12866 ;; 12867 *) 12868 ;; 12869 esac 12870 ;; 12871 psos*) 12872 ;; 12873 solaris*) 12874 case $cc_basename in 12875 CC*) 12876 # Sun C++ 4.2, 5.x and Centerline C++ 12877 lt_prog_compiler_pic_CXX='-KPIC' 12878 lt_prog_compiler_static_CXX='-Bstatic' 12879 lt_prog_compiler_wl_CXX='-Qoption ld ' 12880 ;; 12881 gcx*) 12882 # Green Hills C++ Compiler 12883 lt_prog_compiler_pic_CXX='-PIC' 12884 ;; 12885 *) 12886 ;; 12887 esac 12888 ;; 12889 sunos4*) 12890 case $cc_basename in 12891 CC*) 12892 # Sun C++ 4.x 12893 lt_prog_compiler_pic_CXX='-pic' 12894 lt_prog_compiler_static_CXX='-Bstatic' 12895 ;; 12896 lcc*) 12897 # Lucid 12898 lt_prog_compiler_pic_CXX='-pic' 12899 ;; 12900 *) 12901 ;; 12902 esac 12903 ;; 12904 tandem*) 12905 case $cc_basename in 12906 NCC*) 12907 # NonStop-UX NCC 3.20 12908 lt_prog_compiler_pic_CXX='-KPIC' 12909 ;; 12910 *) 12911 ;; 12912 esac 12913 ;; 12914 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12915 case $cc_basename in 12916 CC*) 12917 lt_prog_compiler_wl_CXX='-Wl,' 12918 lt_prog_compiler_pic_CXX='-KPIC' 12919 lt_prog_compiler_static_CXX='-Bstatic' 12920 ;; 12921 esac 12922 ;; 12923 vxworks*) 12924 ;; 12925 *) 12926 lt_prog_compiler_can_build_shared_CXX=no 12927 ;; 12928 esac 12929 fi 12930 12931{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12932$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12933 12934# 12935# Check to make sure the PIC flag actually works. 12936# 12937if test -n "$lt_prog_compiler_pic_CXX"; then 12938 12939{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12940$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12941if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12942 $as_echo_n "(cached) " >&6 12943else 12944 lt_cv_prog_compiler_pic_works_CXX=no 12945 ac_outfile=conftest.$ac_objext 12946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12947 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12948 # Insert the option either (1) after the last *FLAGS variable, or 12949 # (2) before a word containing "conftest.", or (3) at the end. 12950 # Note that $ac_compile itself does not contain backslashes and begins 12951 # with a dollar sign (not a hyphen), so the echo should work correctly. 12952 # The option is referenced via a variable to avoid confusing sed. 12953 lt_compile=`echo "$ac_compile" | $SED \ 12954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12956 -e 's:$: $lt_compiler_flag:'` 12957 (eval echo "\"\$as_me:12957: $lt_compile\"" >&5) 12958 (eval "$lt_compile" 2>conftest.err) 12959 ac_status=$? 12960 cat conftest.err >&5 12961 echo "$as_me:12961: \$? = $ac_status" >&5 12962 if (exit $ac_status) && test -s "$ac_outfile"; then 12963 # The compiler can only warn and ignore the option if not recognized 12964 # So say no if there are warnings other than the usual output. 12965 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12968 lt_cv_prog_compiler_pic_works_CXX=yes 12969 fi 12970 fi 12971 $rm conftest* 12972 12973fi 12974{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12975$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12976 12977if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12978 case $lt_prog_compiler_pic_CXX in 12979 "" | " "*) ;; 12980 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12981 esac 12982else 12983 lt_prog_compiler_pic_CXX= 12984 lt_prog_compiler_can_build_shared_CXX=no 12985fi 12986 12987fi 12988case $host_os in 12989 # For platforms which do not support PIC, -DPIC is meaningless: 12990 *djgpp*) 12991 lt_prog_compiler_pic_CXX= 12992 ;; 12993 *) 12994 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12995 ;; 12996esac 12997 12998# 12999# Check to make sure the static flag actually works. 13000# 13001wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13002{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13003$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13004if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 13005 $as_echo_n "(cached) " >&6 13006else 13007 lt_cv_prog_compiler_static_works_CXX=no 13008 save_LDFLAGS="$LDFLAGS" 13009 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13010 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13011 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13012 # The linker can only warn and ignore the option if not recognized 13013 # So say no if there are warnings 13014 if test -s conftest.err; then 13015 # Append any errors to the config.log. 13016 cat conftest.err 1>&5 13017 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13019 if diff conftest.exp conftest.er2 >/dev/null; then 13020 lt_cv_prog_compiler_static_works_CXX=yes 13021 fi 13022 else 13023 lt_cv_prog_compiler_static_works_CXX=yes 13024 fi 13025 fi 13026 $rm -r conftest* 13027 LDFLAGS="$save_LDFLAGS" 13028 13029fi 13030{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13031$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13032 13033if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13034 : 13035else 13036 lt_prog_compiler_static_CXX= 13037fi 13038 13039 13040{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13041$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13042if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13043 $as_echo_n "(cached) " >&6 13044else 13045 lt_cv_prog_compiler_c_o_CXX=no 13046 $rm -r conftest 2>/dev/null 13047 mkdir conftest 13048 cd conftest 13049 mkdir out 13050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13051 13052 lt_compiler_flag="-o out/conftest2.$ac_objext" 13053 # Insert the option either (1) after the last *FLAGS variable, or 13054 # (2) before a word containing "conftest.", or (3) at the end. 13055 # Note that $ac_compile itself does not contain backslashes and begins 13056 # with a dollar sign (not a hyphen), so the echo should work correctly. 13057 lt_compile=`echo "$ac_compile" | $SED \ 13058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13060 -e 's:$: $lt_compiler_flag:'` 13061 (eval echo "\"\$as_me:13061: $lt_compile\"" >&5) 13062 (eval "$lt_compile" 2>out/conftest.err) 13063 ac_status=$? 13064 cat out/conftest.err >&5 13065 echo "$as_me:13065: \$? = $ac_status" >&5 13066 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13067 then 13068 # The compiler can only warn and ignore the option if not recognized 13069 # So say no if there are warnings 13070 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13071 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13072 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13073 lt_cv_prog_compiler_c_o_CXX=yes 13074 fi 13075 fi 13076 chmod u+w . 2>&5 13077 $rm conftest* 13078 # SGI C++ compiler will create directory out/ii_files/ for 13079 # template instantiation 13080 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13081 $rm out/* && rmdir out 13082 cd .. 13083 rmdir conftest 13084 $rm conftest* 13085 13086fi 13087{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13088$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13089 13090 13091hard_links="nottested" 13092if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13093 # do not overwrite the value of need_locks provided by the user 13094 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13095$as_echo_n "checking if we can lock with hard links... " >&6; } 13096 hard_links=yes 13097 $rm conftest* 13098 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13099 touch conftest.a 13100 ln conftest.a conftest.b 2>&5 || hard_links=no 13101 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13102 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13103$as_echo "$hard_links" >&6; } 13104 if test "$hard_links" = no; then 13105 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13106$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13107 need_locks=warn 13108 fi 13109else 13110 need_locks=no 13111fi 13112 13113{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13114$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13115 13116 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13117 case $host_os in 13118 aix[4-9]*) 13119 # If we're using GNU nm, then we don't want the "-C" option. 13120 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13121 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13122 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' 13123 else 13124 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' 13125 fi 13126 ;; 13127 pw32*) 13128 export_symbols_cmds_CXX="$ltdll_cmds" 13129 ;; 13130 cygwin* | mingw*) 13131 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' 13132 ;; 13133 *) 13134 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13135 ;; 13136 esac 13137 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13138 13139{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13140$as_echo "$ld_shlibs_CXX" >&6; } 13141test "$ld_shlibs_CXX" = no && can_build_shared=no 13142 13143# 13144# Do we need to explicitly link libc? 13145# 13146case "x$archive_cmds_need_lc_CXX" in 13147x|xyes) 13148 # Assume -lc should be added 13149 archive_cmds_need_lc_CXX=yes 13150 13151 if test "$enable_shared" = yes && test "$GCC" = yes; then 13152 case $archive_cmds_CXX in 13153 *'~'*) 13154 # FIXME: we may have to deal with multi-command sequences. 13155 ;; 13156 '$CC '*) 13157 # Test whether the compiler implicitly links with -lc since on some 13158 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13159 # to ld, don't add -lc before -lgcc. 13160 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13161$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13162 $rm conftest* 13163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13164 13165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13166 (eval $ac_compile) 2>&5 13167 ac_status=$? 13168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13169 (exit $ac_status); } 2>conftest.err; then 13170 soname=conftest 13171 lib=conftest 13172 libobjs=conftest.$ac_objext 13173 deplibs= 13174 wl=$lt_prog_compiler_wl_CXX 13175 pic_flag=$lt_prog_compiler_pic_CXX 13176 compiler_flags=-v 13177 linker_flags=-v 13178 verstring= 13179 output_objdir=. 13180 libname=conftest 13181 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13182 allow_undefined_flag_CXX= 13183 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13184 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13185 ac_status=$? 13186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13187 (exit $ac_status); } 13188 then 13189 archive_cmds_need_lc_CXX=no 13190 else 13191 archive_cmds_need_lc_CXX=yes 13192 fi 13193 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13194 else 13195 cat conftest.err 1>&5 13196 fi 13197 $rm conftest* 13198 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13199$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13200 ;; 13201 esac 13202 fi 13203 ;; 13204esac 13205 13206{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13207$as_echo_n "checking dynamic linker characteristics... " >&6; } 13208library_names_spec= 13209libname_spec='lib$name' 13210soname_spec= 13211shrext_cmds=".so" 13212postinstall_cmds= 13213postuninstall_cmds= 13214finish_cmds= 13215finish_eval= 13216shlibpath_var= 13217shlibpath_overrides_runpath=unknown 13218version_type=none 13219dynamic_linker="$host_os ld.so" 13220sys_lib_dlsearch_path_spec="/lib /usr/lib" 13221 13222need_lib_prefix=unknown 13223hardcode_into_libs=no 13224 13225# when you set need_version to no, make sure it does not cause -set_version 13226# flags to be left without arguments 13227need_version=unknown 13228 13229case $host_os in 13230aix3*) 13231 version_type=linux 13232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13233 shlibpath_var=LIBPATH 13234 13235 # AIX 3 has no versioning support, so we append a major version to the name. 13236 soname_spec='${libname}${release}${shared_ext}$major' 13237 ;; 13238 13239aix[4-9]*) 13240 version_type=linux 13241 need_lib_prefix=no 13242 need_version=no 13243 hardcode_into_libs=yes 13244 if test "$host_cpu" = ia64; then 13245 # AIX 5 supports IA64 13246 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13247 shlibpath_var=LD_LIBRARY_PATH 13248 else 13249 # With GCC up to 2.95.x, collect2 would create an import file 13250 # for dependence libraries. The import file would start with 13251 # the line `#! .'. This would cause the generated library to 13252 # depend on `.', always an invalid library. This was fixed in 13253 # development snapshots of GCC prior to 3.0. 13254 case $host_os in 13255 aix4 | aix4.[01] | aix4.[01].*) 13256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13257 echo ' yes ' 13258 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13259 : 13260 else 13261 can_build_shared=no 13262 fi 13263 ;; 13264 esac 13265 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13266 # soname into executable. Probably we can add versioning support to 13267 # collect2, so additional links can be useful in future. 13268 if test "$aix_use_runtimelinking" = yes; then 13269 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13270 # instead of lib<name>.a to let people know that these are not 13271 # typical AIX shared libraries. 13272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13273 else 13274 # We preserve .a as extension for shared libraries through AIX4.2 13275 # and later when we are not doing run time linking. 13276 library_names_spec='${libname}${release}.a $libname.a' 13277 soname_spec='${libname}${release}${shared_ext}$major' 13278 fi 13279 shlibpath_var=LIBPATH 13280 fi 13281 ;; 13282 13283amigaos*) 13284 library_names_spec='$libname.ixlibrary $libname.a' 13285 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13286 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' 13287 ;; 13288 13289beos*) 13290 library_names_spec='${libname}${shared_ext}' 13291 dynamic_linker="$host_os ld.so" 13292 shlibpath_var=LIBRARY_PATH 13293 ;; 13294 13295bsdi[45]*) 13296 version_type=linux 13297 need_version=no 13298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13299 soname_spec='${libname}${release}${shared_ext}$major' 13300 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13301 shlibpath_var=LD_LIBRARY_PATH 13302 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13303 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13304 # the default ld.so.conf also contains /usr/contrib/lib and 13305 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13306 # libtool to hard-code these into programs 13307 ;; 13308 13309cygwin* | mingw* | pw32*) 13310 version_type=windows 13311 shrext_cmds=".dll" 13312 need_version=no 13313 need_lib_prefix=no 13314 13315 case $GCC,$host_os in 13316 yes,cygwin* | yes,mingw* | yes,pw32*) 13317 library_names_spec='$libname.dll.a' 13318 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13319 postinstall_cmds='base_file=`basename \${file}`~ 13320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13321 dldir=$destdir/`dirname \$dlpath`~ 13322 test -d \$dldir || mkdir -p \$dldir~ 13323 $install_prog $dir/$dlname \$dldir/$dlname~ 13324 chmod a+x \$dldir/$dlname' 13325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13326 dlpath=$dir/\$dldll~ 13327 $rm \$dlpath' 13328 shlibpath_overrides_runpath=yes 13329 13330 case $host_os in 13331 cygwin*) 13332 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13333 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13334 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13335 ;; 13336 mingw*) 13337 # MinGW DLLs use traditional 'lib' prefix 13338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13339 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13340 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13341 # It is most probably a Windows format PATH printed by 13342 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13343 # path with ; separators, and with drive letters. We can handle the 13344 # drive letters (cygwin fileutils understands them), so leave them, 13345 # especially as we might pass files found there to a mingw objdump, 13346 # which wouldn't understand a cygwinified path. Ahh. 13347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13348 else 13349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13350 fi 13351 ;; 13352 pw32*) 13353 # pw32 DLLs use 'pw' prefix rather than 'lib' 13354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13355 ;; 13356 esac 13357 ;; 13358 13359 *) 13360 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13361 ;; 13362 esac 13363 dynamic_linker='Win32 ld.exe' 13364 # FIXME: first we should search . and the directory the executable is in 13365 shlibpath_var=PATH 13366 ;; 13367 13368darwin* | rhapsody*) 13369 dynamic_linker="$host_os dyld" 13370 version_type=darwin 13371 need_lib_prefix=no 13372 need_version=no 13373 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13374 soname_spec='${libname}${release}${major}$shared_ext' 13375 shlibpath_overrides_runpath=yes 13376 shlibpath_var=DYLD_LIBRARY_PATH 13377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13378 13379 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13380 ;; 13381 13382dgux*) 13383 version_type=linux 13384 need_lib_prefix=no 13385 need_version=no 13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13387 soname_spec='${libname}${release}${shared_ext}$major' 13388 shlibpath_var=LD_LIBRARY_PATH 13389 ;; 13390 13391freebsd1*) 13392 dynamic_linker=no 13393 ;; 13394 13395freebsd* | dragonfly*) 13396 # DragonFly does not have aout. When/if they implement a new 13397 # versioning mechanism, adjust this. 13398 if test -x /usr/bin/objformat; then 13399 objformat=`/usr/bin/objformat` 13400 else 13401 case $host_os in 13402 freebsd[123]*) objformat=aout ;; 13403 *) objformat=elf ;; 13404 esac 13405 fi 13406 version_type=freebsd-$objformat 13407 case $version_type in 13408 freebsd-elf*) 13409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13410 need_version=no 13411 need_lib_prefix=no 13412 ;; 13413 freebsd-*) 13414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13415 need_version=yes 13416 ;; 13417 esac 13418 shlibpath_var=LD_LIBRARY_PATH 13419 case $host_os in 13420 freebsd2*) 13421 shlibpath_overrides_runpath=yes 13422 ;; 13423 freebsd3.[01]* | freebsdelf3.[01]*) 13424 shlibpath_overrides_runpath=yes 13425 hardcode_into_libs=yes 13426 ;; 13427 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13428 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13429 shlibpath_overrides_runpath=no 13430 hardcode_into_libs=yes 13431 ;; 13432 *) # from 4.6 on, and DragonFly 13433 shlibpath_overrides_runpath=yes 13434 hardcode_into_libs=yes 13435 ;; 13436 esac 13437 ;; 13438 13439gnu*) 13440 version_type=linux 13441 need_lib_prefix=no 13442 need_version=no 13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13444 soname_spec='${libname}${release}${shared_ext}$major' 13445 shlibpath_var=LD_LIBRARY_PATH 13446 hardcode_into_libs=yes 13447 ;; 13448 13449hpux9* | hpux10* | hpux11*) 13450 # Give a soname corresponding to the major version so that dld.sl refuses to 13451 # link against other versions. 13452 version_type=sunos 13453 need_lib_prefix=no 13454 need_version=no 13455 case $host_cpu in 13456 ia64*) 13457 shrext_cmds='.so' 13458 hardcode_into_libs=yes 13459 dynamic_linker="$host_os dld.so" 13460 shlibpath_var=LD_LIBRARY_PATH 13461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13463 soname_spec='${libname}${release}${shared_ext}$major' 13464 if test "X$HPUX_IA64_MODE" = X32; then 13465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13466 else 13467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13468 fi 13469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13470 ;; 13471 hppa*64*) 13472 shrext_cmds='.sl' 13473 hardcode_into_libs=yes 13474 dynamic_linker="$host_os dld.sl" 13475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13478 soname_spec='${libname}${release}${shared_ext}$major' 13479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13481 ;; 13482 *) 13483 shrext_cmds='.sl' 13484 dynamic_linker="$host_os dld.sl" 13485 shlibpath_var=SHLIB_PATH 13486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13488 soname_spec='${libname}${release}${shared_ext}$major' 13489 ;; 13490 esac 13491 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13492 postinstall_cmds='chmod 555 $lib' 13493 ;; 13494 13495interix[3-9]*) 13496 version_type=linux 13497 need_lib_prefix=no 13498 need_version=no 13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13500 soname_spec='${libname}${release}${shared_ext}$major' 13501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13502 shlibpath_var=LD_LIBRARY_PATH 13503 shlibpath_overrides_runpath=no 13504 hardcode_into_libs=yes 13505 ;; 13506 13507irix5* | irix6* | nonstopux*) 13508 case $host_os in 13509 nonstopux*) version_type=nonstopux ;; 13510 *) 13511 if test "$lt_cv_prog_gnu_ld" = yes; then 13512 version_type=linux 13513 else 13514 version_type=irix 13515 fi ;; 13516 esac 13517 need_lib_prefix=no 13518 need_version=no 13519 soname_spec='${libname}${release}${shared_ext}$major' 13520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13521 case $host_os in 13522 irix5* | nonstopux*) 13523 libsuff= shlibsuff= 13524 ;; 13525 *) 13526 case $LD in # libtool.m4 will add one of these switches to LD 13527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13528 libsuff= shlibsuff= libmagic=32-bit;; 13529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13530 libsuff=32 shlibsuff=N32 libmagic=N32;; 13531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13532 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13533 *) libsuff= shlibsuff= libmagic=never-match;; 13534 esac 13535 ;; 13536 esac 13537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13538 shlibpath_overrides_runpath=no 13539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13541 hardcode_into_libs=yes 13542 ;; 13543 13544# No shared lib support for Linux oldld, aout, or coff. 13545linux*oldld* | linux*aout* | linux*coff*) 13546 dynamic_linker=no 13547 ;; 13548 13549# This must be Linux ELF. 13550linux* | k*bsd*-gnu) 13551 version_type=linux 13552 need_lib_prefix=no 13553 need_version=no 13554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13555 soname_spec='${libname}${release}${shared_ext}$major' 13556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13557 shlibpath_var=LD_LIBRARY_PATH 13558 shlibpath_overrides_runpath=no 13559 # This implies no fast_install, which is unacceptable. 13560 # Some rework will be needed to allow for fast_install 13561 # before this can be enabled. 13562 hardcode_into_libs=yes 13563 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13564 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13565 13566 # Append ld.so.conf contents to the search path 13567 if test -f /etc/ld.so.conf; then 13568 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13569 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13570 fi 13571 13572 # We used to test for /lib/ld.so.1 and disable shared libraries on 13573 # powerpc, because MkLinux only supported shared libraries with the 13574 # GNU dynamic linker. Since this was broken with cross compilers, 13575 # most powerpc-linux boxes support dynamic linking these days and 13576 # people can always --disable-shared, the test was removed, and we 13577 # assume the GNU/Linux dynamic linker is in use. 13578 dynamic_linker='GNU/Linux ld.so' 13579 ;; 13580 13581netbsd*) 13582 version_type=sunos 13583 need_lib_prefix=no 13584 need_version=no 13585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13588 dynamic_linker='NetBSD (a.out) ld.so' 13589 else 13590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13591 soname_spec='${libname}${release}${shared_ext}$major' 13592 dynamic_linker='NetBSD ld.elf_so' 13593 fi 13594 shlibpath_var=LD_LIBRARY_PATH 13595 shlibpath_overrides_runpath=yes 13596 hardcode_into_libs=yes 13597 ;; 13598 13599newsos6) 13600 version_type=linux 13601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13602 shlibpath_var=LD_LIBRARY_PATH 13603 shlibpath_overrides_runpath=yes 13604 ;; 13605 13606nto-qnx*) 13607 version_type=linux 13608 need_lib_prefix=no 13609 need_version=no 13610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13611 soname_spec='${libname}${release}${shared_ext}$major' 13612 shlibpath_var=LD_LIBRARY_PATH 13613 shlibpath_overrides_runpath=yes 13614 ;; 13615 13616openbsd*) 13617 version_type=sunos 13618 sys_lib_dlsearch_path_spec="/usr/lib" 13619 need_lib_prefix=no 13620 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13621 case $host_os in 13622 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13623 *) need_version=no ;; 13624 esac 13625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13627 shlibpath_var=LD_LIBRARY_PATH 13628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13629 case $host_os in 13630 openbsd2.[89] | openbsd2.[89].*) 13631 shlibpath_overrides_runpath=no 13632 ;; 13633 *) 13634 shlibpath_overrides_runpath=yes 13635 ;; 13636 esac 13637 else 13638 shlibpath_overrides_runpath=yes 13639 fi 13640 ;; 13641 13642os2*) 13643 libname_spec='$name' 13644 shrext_cmds=".dll" 13645 need_lib_prefix=no 13646 library_names_spec='$libname${shared_ext} $libname.a' 13647 dynamic_linker='OS/2 ld.exe' 13648 shlibpath_var=LIBPATH 13649 ;; 13650 13651osf3* | osf4* | osf5*) 13652 version_type=osf 13653 need_lib_prefix=no 13654 need_version=no 13655 soname_spec='${libname}${release}${shared_ext}$major' 13656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13657 shlibpath_var=LD_LIBRARY_PATH 13658 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13659 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13660 ;; 13661 13662rdos*) 13663 dynamic_linker=no 13664 ;; 13665 13666solaris*) 13667 version_type=linux 13668 need_lib_prefix=no 13669 need_version=no 13670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13671 soname_spec='${libname}${release}${shared_ext}$major' 13672 shlibpath_var=LD_LIBRARY_PATH 13673 shlibpath_overrides_runpath=yes 13674 hardcode_into_libs=yes 13675 # ldd complains unless libraries are executable 13676 postinstall_cmds='chmod +x $lib' 13677 ;; 13678 13679sunos4*) 13680 version_type=sunos 13681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13682 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13683 shlibpath_var=LD_LIBRARY_PATH 13684 shlibpath_overrides_runpath=yes 13685 if test "$with_gnu_ld" = yes; then 13686 need_lib_prefix=no 13687 fi 13688 need_version=yes 13689 ;; 13690 13691sysv4 | sysv4.3*) 13692 version_type=linux 13693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13694 soname_spec='${libname}${release}${shared_ext}$major' 13695 shlibpath_var=LD_LIBRARY_PATH 13696 case $host_vendor in 13697 sni) 13698 shlibpath_overrides_runpath=no 13699 need_lib_prefix=no 13700 export_dynamic_flag_spec='${wl}-Blargedynsym' 13701 runpath_var=LD_RUN_PATH 13702 ;; 13703 siemens) 13704 need_lib_prefix=no 13705 ;; 13706 motorola) 13707 need_lib_prefix=no 13708 need_version=no 13709 shlibpath_overrides_runpath=no 13710 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13711 ;; 13712 esac 13713 ;; 13714 13715sysv4*MP*) 13716 if test -d /usr/nec ;then 13717 version_type=linux 13718 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13719 soname_spec='$libname${shared_ext}.$major' 13720 shlibpath_var=LD_LIBRARY_PATH 13721 fi 13722 ;; 13723 13724sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13725 version_type=freebsd-elf 13726 need_lib_prefix=no 13727 need_version=no 13728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13729 soname_spec='${libname}${release}${shared_ext}$major' 13730 shlibpath_var=LD_LIBRARY_PATH 13731 hardcode_into_libs=yes 13732 if test "$with_gnu_ld" = yes; then 13733 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13734 shlibpath_overrides_runpath=no 13735 else 13736 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13737 shlibpath_overrides_runpath=yes 13738 case $host_os in 13739 sco3.2v5*) 13740 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13741 ;; 13742 esac 13743 fi 13744 sys_lib_dlsearch_path_spec='/usr/lib' 13745 ;; 13746 13747uts4*) 13748 version_type=linux 13749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13750 soname_spec='${libname}${release}${shared_ext}$major' 13751 shlibpath_var=LD_LIBRARY_PATH 13752 ;; 13753 13754*) 13755 dynamic_linker=no 13756 ;; 13757esac 13758{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13759$as_echo "$dynamic_linker" >&6; } 13760test "$dynamic_linker" = no && can_build_shared=no 13761 13762if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13763 $as_echo_n "(cached) " >&6 13764else 13765 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13766fi 13767 13768sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13769if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13770 $as_echo_n "(cached) " >&6 13771else 13772 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13773fi 13774 13775sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13776 13777variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13778if test "$GCC" = yes; then 13779 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13780fi 13781 13782{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13783$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13784hardcode_action_CXX= 13785if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13786 test -n "$runpath_var_CXX" || \ 13787 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13788 13789 # We can hardcode non-existant directories. 13790 if test "$hardcode_direct_CXX" != no && 13791 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13792 # have to relink, otherwise we might link with an installed library 13793 # when we should be linking with a yet-to-be-installed one 13794 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13795 test "$hardcode_minus_L_CXX" != no; then 13796 # Linking always hardcodes the temporary library directory. 13797 hardcode_action_CXX=relink 13798 else 13799 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13800 hardcode_action_CXX=immediate 13801 fi 13802else 13803 # We cannot hardcode anything, or else we can only hardcode existing 13804 # directories. 13805 hardcode_action_CXX=unsupported 13806fi 13807{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13808$as_echo "$hardcode_action_CXX" >&6; } 13809 13810if test "$hardcode_action_CXX" = relink; then 13811 # Fast installation is not supported 13812 enable_fast_install=no 13813elif test "$shlibpath_overrides_runpath" = yes || 13814 test "$enable_shared" = no; then 13815 # Fast installation is not necessary 13816 enable_fast_install=needless 13817fi 13818 13819 13820# The else clause should only fire when bootstrapping the 13821# libtool distribution, otherwise you forgot to ship ltmain.sh 13822# with your package, and you will get complaints that there are 13823# no rules to generate ltmain.sh. 13824if test -f "$ltmain"; then 13825 # See if we are running on zsh, and set the options which allow our commands through 13826 # without removal of \ escapes. 13827 if test -n "${ZSH_VERSION+set}" ; then 13828 setopt NO_GLOB_SUBST 13829 fi 13830 # Now quote all the things that may contain metacharacters while being 13831 # careful not to overquote the AC_SUBSTed values. We take copies of the 13832 # variables and quote the copies for generation of the libtool script. 13833 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13834 SED SHELL STRIP \ 13835 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13836 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13837 deplibs_check_method reload_flag reload_cmds need_locks \ 13838 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13839 lt_cv_sys_global_symbol_to_c_name_address \ 13840 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13841 old_postinstall_cmds old_postuninstall_cmds \ 13842 compiler_CXX \ 13843 CC_CXX \ 13844 LD_CXX \ 13845 lt_prog_compiler_wl_CXX \ 13846 lt_prog_compiler_pic_CXX \ 13847 lt_prog_compiler_static_CXX \ 13848 lt_prog_compiler_no_builtin_flag_CXX \ 13849 export_dynamic_flag_spec_CXX \ 13850 thread_safe_flag_spec_CXX \ 13851 whole_archive_flag_spec_CXX \ 13852 enable_shared_with_static_runtimes_CXX \ 13853 old_archive_cmds_CXX \ 13854 old_archive_from_new_cmds_CXX \ 13855 predep_objects_CXX \ 13856 postdep_objects_CXX \ 13857 predeps_CXX \ 13858 postdeps_CXX \ 13859 compiler_lib_search_path_CXX \ 13860 compiler_lib_search_dirs_CXX \ 13861 archive_cmds_CXX \ 13862 archive_expsym_cmds_CXX \ 13863 postinstall_cmds_CXX \ 13864 postuninstall_cmds_CXX \ 13865 old_archive_from_expsyms_cmds_CXX \ 13866 allow_undefined_flag_CXX \ 13867 no_undefined_flag_CXX \ 13868 export_symbols_cmds_CXX \ 13869 hardcode_libdir_flag_spec_CXX \ 13870 hardcode_libdir_flag_spec_ld_CXX \ 13871 hardcode_libdir_separator_CXX \ 13872 hardcode_automatic_CXX \ 13873 module_cmds_CXX \ 13874 module_expsym_cmds_CXX \ 13875 lt_cv_prog_compiler_c_o_CXX \ 13876 fix_srcfile_path_CXX \ 13877 exclude_expsyms_CXX \ 13878 include_expsyms_CXX; do 13879 13880 case $var in 13881 old_archive_cmds_CXX | \ 13882 old_archive_from_new_cmds_CXX | \ 13883 archive_cmds_CXX | \ 13884 archive_expsym_cmds_CXX | \ 13885 module_cmds_CXX | \ 13886 module_expsym_cmds_CXX | \ 13887 old_archive_from_expsyms_cmds_CXX | \ 13888 export_symbols_cmds_CXX | \ 13889 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13890 postinstall_cmds | postuninstall_cmds | \ 13891 old_postinstall_cmds | old_postuninstall_cmds | \ 13892 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13893 # Double-quote double-evaled strings. 13894 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13895 ;; 13896 *) 13897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13898 ;; 13899 esac 13900 done 13901 13902 case $lt_echo in 13903 *'\$0 --fallback-echo"') 13904 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13905 ;; 13906 esac 13907 13908cfgfile="$ofile" 13909 13910 cat <<__EOF__ >> "$cfgfile" 13911# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13912 13913# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13914 13915# Shell to use when invoking shell scripts. 13916SHELL=$lt_SHELL 13917 13918# Whether or not to build shared libraries. 13919build_libtool_libs=$enable_shared 13920 13921# Whether or not to build static libraries. 13922build_old_libs=$enable_static 13923 13924# Whether or not to add -lc for building shared libraries. 13925build_libtool_need_lc=$archive_cmds_need_lc_CXX 13926 13927# Whether or not to disallow shared libs when runtime libs are static 13928allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13929 13930# Whether or not to optimize for fast installation. 13931fast_install=$enable_fast_install 13932 13933# The host system. 13934host_alias=$host_alias 13935host=$host 13936host_os=$host_os 13937 13938# The build system. 13939build_alias=$build_alias 13940build=$build 13941build_os=$build_os 13942 13943# An echo program that does not interpret backslashes. 13944echo=$lt_echo 13945 13946# The archiver. 13947AR=$lt_AR 13948AR_FLAGS=$lt_AR_FLAGS 13949 13950# A C compiler. 13951LTCC=$lt_LTCC 13952 13953# LTCC compiler flags. 13954LTCFLAGS=$lt_LTCFLAGS 13955 13956# A language-specific compiler. 13957CC=$lt_compiler_CXX 13958 13959# Is the compiler the GNU C compiler? 13960with_gcc=$GCC_CXX 13961 13962# An ERE matcher. 13963EGREP=$lt_EGREP 13964 13965# The linker used to build libraries. 13966LD=$lt_LD_CXX 13967 13968# Whether we need hard or soft links. 13969LN_S=$lt_LN_S 13970 13971# A BSD-compatible nm program. 13972NM=$lt_NM 13973 13974# A symbol stripping program 13975STRIP=$lt_STRIP 13976 13977# Used to examine libraries when file_magic_cmd begins "file" 13978MAGIC_CMD=$MAGIC_CMD 13979 13980# Used on cygwin: DLL creation program. 13981DLLTOOL="$DLLTOOL" 13982 13983# Used on cygwin: object dumper. 13984OBJDUMP="$OBJDUMP" 13985 13986# Used on cygwin: assembler. 13987AS="$AS" 13988 13989# The name of the directory that contains temporary libtool files. 13990objdir=$objdir 13991 13992# How to create reloadable object files. 13993reload_flag=$lt_reload_flag 13994reload_cmds=$lt_reload_cmds 13995 13996# How to pass a linker flag through the compiler. 13997wl=$lt_lt_prog_compiler_wl_CXX 13998 13999# Object file suffix (normally "o"). 14000objext="$ac_objext" 14001 14002# Old archive suffix (normally "a"). 14003libext="$libext" 14004 14005# Shared library suffix (normally ".so"). 14006shrext_cmds='$shrext_cmds' 14007 14008# Executable file suffix (normally ""). 14009exeext="$exeext" 14010 14011# Additional compiler flags for building library objects. 14012pic_flag=$lt_lt_prog_compiler_pic_CXX 14013pic_mode=$pic_mode 14014 14015# What is the maximum length of a command? 14016max_cmd_len=$lt_cv_sys_max_cmd_len 14017 14018# Does compiler simultaneously support -c and -o options? 14019compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14020 14021# Must we lock files when doing compilation? 14022need_locks=$lt_need_locks 14023 14024# Do we need the lib prefix for modules? 14025need_lib_prefix=$need_lib_prefix 14026 14027# Do we need a version for libraries? 14028need_version=$need_version 14029 14030# Whether dlopen is supported. 14031dlopen_support=$enable_dlopen 14032 14033# Whether dlopen of programs is supported. 14034dlopen_self=$enable_dlopen_self 14035 14036# Whether dlopen of statically linked programs is supported. 14037dlopen_self_static=$enable_dlopen_self_static 14038 14039# Compiler flag to prevent dynamic linking. 14040link_static_flag=$lt_lt_prog_compiler_static_CXX 14041 14042# Compiler flag to turn off builtin functions. 14043no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14044 14045# Compiler flag to allow reflexive dlopens. 14046export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14047 14048# Compiler flag to generate shared objects directly from archives. 14049whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14050 14051# Compiler flag to generate thread-safe objects. 14052thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14053 14054# Library versioning type. 14055version_type=$version_type 14056 14057# Format of library name prefix. 14058libname_spec=$lt_libname_spec 14059 14060# List of archive names. First name is the real one, the rest are links. 14061# The last name is the one that the linker finds with -lNAME. 14062library_names_spec=$lt_library_names_spec 14063 14064# The coded name of the library, if different from the real name. 14065soname_spec=$lt_soname_spec 14066 14067# Commands used to build and install an old-style archive. 14068RANLIB=$lt_RANLIB 14069old_archive_cmds=$lt_old_archive_cmds_CXX 14070old_postinstall_cmds=$lt_old_postinstall_cmds 14071old_postuninstall_cmds=$lt_old_postuninstall_cmds 14072 14073# Create an old-style archive from a shared archive. 14074old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14075 14076# Create a temporary old-style archive to link instead of a shared archive. 14077old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14078 14079# Commands used to build and install a shared archive. 14080archive_cmds=$lt_archive_cmds_CXX 14081archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14082postinstall_cmds=$lt_postinstall_cmds 14083postuninstall_cmds=$lt_postuninstall_cmds 14084 14085# Commands used to build a loadable module (assumed same as above if empty) 14086module_cmds=$lt_module_cmds_CXX 14087module_expsym_cmds=$lt_module_expsym_cmds_CXX 14088 14089# Commands to strip libraries. 14090old_striplib=$lt_old_striplib 14091striplib=$lt_striplib 14092 14093# Dependencies to place before the objects being linked to create a 14094# shared library. 14095predep_objects=$lt_predep_objects_CXX 14096 14097# Dependencies to place after the objects being linked to create a 14098# shared library. 14099postdep_objects=$lt_postdep_objects_CXX 14100 14101# Dependencies to place before the objects being linked to create a 14102# shared library. 14103predeps=$lt_predeps_CXX 14104 14105# Dependencies to place after the objects being linked to create a 14106# shared library. 14107postdeps=$lt_postdeps_CXX 14108 14109# The directories searched by this compiler when creating a shared 14110# library 14111compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14112 14113# The library search path used internally by the compiler when linking 14114# a shared library. 14115compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14116 14117# Method to check whether dependent libraries are shared objects. 14118deplibs_check_method=$lt_deplibs_check_method 14119 14120# Command to use when deplibs_check_method == file_magic. 14121file_magic_cmd=$lt_file_magic_cmd 14122 14123# Flag that allows shared libraries with undefined symbols to be built. 14124allow_undefined_flag=$lt_allow_undefined_flag_CXX 14125 14126# Flag that forces no undefined symbols. 14127no_undefined_flag=$lt_no_undefined_flag_CXX 14128 14129# Commands used to finish a libtool library installation in a directory. 14130finish_cmds=$lt_finish_cmds 14131 14132# Same as above, but a single script fragment to be evaled but not shown. 14133finish_eval=$lt_finish_eval 14134 14135# Take the output of nm and produce a listing of raw symbols and C names. 14136global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14137 14138# Transform the output of nm in a proper C declaration 14139global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14140 14141# Transform the output of nm in a C name address pair 14142global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14143 14144# This is the shared library runtime path variable. 14145runpath_var=$runpath_var 14146 14147# This is the shared library path variable. 14148shlibpath_var=$shlibpath_var 14149 14150# Is shlibpath searched before the hard-coded library search path? 14151shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14152 14153# How to hardcode a shared library path into an executable. 14154hardcode_action=$hardcode_action_CXX 14155 14156# Whether we should hardcode library paths into libraries. 14157hardcode_into_libs=$hardcode_into_libs 14158 14159# Flag to hardcode \$libdir into a binary during linking. 14160# This must work even if \$libdir does not exist. 14161hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14162 14163# If ld is used when linking, flag to hardcode \$libdir into 14164# a binary during linking. This must work even if \$libdir does 14165# not exist. 14166hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14167 14168# Whether we need a single -rpath flag with a separated argument. 14169hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14170 14171# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14172# resulting binary. 14173hardcode_direct=$hardcode_direct_CXX 14174 14175# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14176# resulting binary. 14177hardcode_minus_L=$hardcode_minus_L_CXX 14178 14179# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14180# the resulting binary. 14181hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14182 14183# Set to yes if building a shared library automatically hardcodes DIR into the library 14184# and all subsequent libraries and executables linked against it. 14185hardcode_automatic=$hardcode_automatic_CXX 14186 14187# Variables whose values should be saved in libtool wrapper scripts and 14188# restored at relink time. 14189variables_saved_for_relink="$variables_saved_for_relink" 14190 14191# Whether libtool must link a program against all its dependency libraries. 14192link_all_deplibs=$link_all_deplibs_CXX 14193 14194# Compile-time system search path for libraries 14195sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14196 14197# Run-time system search path for libraries 14198sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14199 14200# Fix the shell variable \$srcfile for the compiler. 14201fix_srcfile_path=$lt_fix_srcfile_path 14202 14203# Set to yes if exported symbols are required. 14204always_export_symbols=$always_export_symbols_CXX 14205 14206# The commands to list exported symbols. 14207export_symbols_cmds=$lt_export_symbols_cmds_CXX 14208 14209# The commands to extract the exported symbol list from a shared archive. 14210extract_expsyms_cmds=$lt_extract_expsyms_cmds 14211 14212# Symbols that should not be listed in the preloaded symbols. 14213exclude_expsyms=$lt_exclude_expsyms_CXX 14214 14215# Symbols that must always be exported. 14216include_expsyms=$lt_include_expsyms_CXX 14217 14218# ### END LIBTOOL TAG CONFIG: $tagname 14219 14220__EOF__ 14221 14222 14223else 14224 # If there is no Makefile yet, we rely on a make rule to execute 14225 # `config.status --recheck' to rerun these tests and create the 14226 # libtool script then. 14227 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14228 if test -f "$ltmain_in"; then 14229 test -f Makefile && make "$ltmain" 14230 fi 14231fi 14232 14233 14234ac_ext=c 14235ac_cpp='$CPP $CPPFLAGS' 14236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14238ac_compiler_gnu=$ac_cv_c_compiler_gnu 14239 14240CC=$lt_save_CC 14241LDCXX=$LD 14242LD=$lt_save_LD 14243GCC=$lt_save_GCC 14244with_gnu_ldcxx=$with_gnu_ld 14245with_gnu_ld=$lt_save_with_gnu_ld 14246lt_cv_path_LDCXX=$lt_cv_path_LD 14247lt_cv_path_LD=$lt_save_path_LD 14248lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14249lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14250 14251 else 14252 tagname="" 14253 fi 14254 ;; 14255 14256 F77) 14257 if test -n "$F77" && test "X$F77" != "Xno"; then 14258 14259ac_ext=f 14260ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14261ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14262ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14263 14264 14265archive_cmds_need_lc_F77=no 14266allow_undefined_flag_F77= 14267always_export_symbols_F77=no 14268archive_expsym_cmds_F77= 14269export_dynamic_flag_spec_F77= 14270hardcode_direct_F77=no 14271hardcode_libdir_flag_spec_F77= 14272hardcode_libdir_flag_spec_ld_F77= 14273hardcode_libdir_separator_F77= 14274hardcode_minus_L_F77=no 14275hardcode_automatic_F77=no 14276module_cmds_F77= 14277module_expsym_cmds_F77= 14278link_all_deplibs_F77=unknown 14279old_archive_cmds_F77=$old_archive_cmds 14280no_undefined_flag_F77= 14281whole_archive_flag_spec_F77= 14282enable_shared_with_static_runtimes_F77=no 14283 14284# Source file extension for f77 test sources. 14285ac_ext=f 14286 14287# Object file extension for compiled f77 test sources. 14288objext=o 14289objext_F77=$objext 14290 14291# Code to be used in simple compile tests 14292lt_simple_compile_test_code="\ 14293 subroutine t 14294 return 14295 end 14296" 14297 14298# Code to be used in simple link tests 14299lt_simple_link_test_code="\ 14300 program t 14301 end 14302" 14303 14304# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14305 14306# If no C compiler was specified, use CC. 14307LTCC=${LTCC-"$CC"} 14308 14309# If no C compiler flags were specified, use CFLAGS. 14310LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14311 14312# Allow CC to be a program name with arguments. 14313compiler=$CC 14314 14315 14316# save warnings/boilerplate of simple test code 14317ac_outfile=conftest.$ac_objext 14318echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14319eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14320_lt_compiler_boilerplate=`cat conftest.err` 14321$rm conftest* 14322 14323ac_outfile=conftest.$ac_objext 14324echo "$lt_simple_link_test_code" >conftest.$ac_ext 14325eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14326_lt_linker_boilerplate=`cat conftest.err` 14327$rm -r conftest* 14328 14329 14330# Allow CC to be a program name with arguments. 14331lt_save_CC="$CC" 14332CC=${F77-"f77"} 14333compiler=$CC 14334compiler_F77=$CC 14335for cc_temp in $compiler""; do 14336 case $cc_temp in 14337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14339 \-*) ;; 14340 *) break;; 14341 esac 14342done 14343cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14344 14345 14346{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14347$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14348{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14349$as_echo "$can_build_shared" >&6; } 14350 14351{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14352$as_echo_n "checking whether to build shared libraries... " >&6; } 14353test "$can_build_shared" = "no" && enable_shared=no 14354 14355# On AIX, shared libraries and static libraries use the same namespace, and 14356# are all built from PIC. 14357case $host_os in 14358aix3*) 14359 test "$enable_shared" = yes && enable_static=no 14360 if test -n "$RANLIB"; then 14361 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14362 postinstall_cmds='$RANLIB $lib' 14363 fi 14364 ;; 14365aix[4-9]*) 14366 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14367 test "$enable_shared" = yes && enable_static=no 14368 fi 14369 ;; 14370esac 14371{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14372$as_echo "$enable_shared" >&6; } 14373 14374{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14375$as_echo_n "checking whether to build static libraries... " >&6; } 14376# Make sure either enable_shared or enable_static is yes. 14377test "$enable_shared" = yes || enable_static=yes 14378{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14379$as_echo "$enable_static" >&6; } 14380 14381GCC_F77="$G77" 14382LD_F77="$LD" 14383 14384lt_prog_compiler_wl_F77= 14385lt_prog_compiler_pic_F77= 14386lt_prog_compiler_static_F77= 14387 14388{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14389$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14390 14391 if test "$GCC" = yes; then 14392 lt_prog_compiler_wl_F77='-Wl,' 14393 lt_prog_compiler_static_F77='-static' 14394 14395 case $host_os in 14396 aix*) 14397 # All AIX code is PIC. 14398 if test "$host_cpu" = ia64; then 14399 # AIX 5 now supports IA64 processor 14400 lt_prog_compiler_static_F77='-Bstatic' 14401 fi 14402 ;; 14403 14404 amigaos*) 14405 # FIXME: we need at least 68020 code to build shared libraries, but 14406 # adding the `-m68020' flag to GCC prevents building anything better, 14407 # like `-m68040'. 14408 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14409 ;; 14410 14411 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14412 # PIC is the default for these OSes. 14413 ;; 14414 14415 mingw* | cygwin* | pw32* | os2*) 14416 # This hack is so that the source file can tell whether it is being 14417 # built for inclusion in a dll (and should export symbols for example). 14418 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14419 # (--disable-auto-import) libraries 14420 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14421 ;; 14422 14423 darwin* | rhapsody*) 14424 # PIC is the default on this platform 14425 # Common symbols not allowed in MH_DYLIB files 14426 lt_prog_compiler_pic_F77='-fno-common' 14427 ;; 14428 14429 interix[3-9]*) 14430 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14431 # Instead, we relocate shared libraries at runtime. 14432 ;; 14433 14434 msdosdjgpp*) 14435 # Just because we use GCC doesn't mean we suddenly get shared libraries 14436 # on systems that don't support them. 14437 lt_prog_compiler_can_build_shared_F77=no 14438 enable_shared=no 14439 ;; 14440 14441 sysv4*MP*) 14442 if test -d /usr/nec; then 14443 lt_prog_compiler_pic_F77=-Kconform_pic 14444 fi 14445 ;; 14446 14447 hpux*) 14448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14449 # not for PA HP-UX. 14450 case $host_cpu in 14451 hppa*64*|ia64*) 14452 # +Z the default 14453 ;; 14454 *) 14455 lt_prog_compiler_pic_F77='-fPIC' 14456 ;; 14457 esac 14458 ;; 14459 14460 *) 14461 lt_prog_compiler_pic_F77='-fPIC' 14462 ;; 14463 esac 14464 else 14465 # PORTME Check for flag to pass linker flags through the system compiler. 14466 case $host_os in 14467 aix*) 14468 lt_prog_compiler_wl_F77='-Wl,' 14469 if test "$host_cpu" = ia64; then 14470 # AIX 5 now supports IA64 processor 14471 lt_prog_compiler_static_F77='-Bstatic' 14472 else 14473 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14474 fi 14475 ;; 14476 darwin*) 14477 # PIC is the default on this platform 14478 # Common symbols not allowed in MH_DYLIB files 14479 case $cc_basename in 14480 xlc*) 14481 lt_prog_compiler_pic_F77='-qnocommon' 14482 lt_prog_compiler_wl_F77='-Wl,' 14483 ;; 14484 esac 14485 ;; 14486 14487 mingw* | cygwin* | pw32* | os2*) 14488 # This hack is so that the source file can tell whether it is being 14489 # built for inclusion in a dll (and should export symbols for example). 14490 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14491 ;; 14492 14493 hpux9* | hpux10* | hpux11*) 14494 lt_prog_compiler_wl_F77='-Wl,' 14495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14496 # not for PA HP-UX. 14497 case $host_cpu in 14498 hppa*64*|ia64*) 14499 # +Z the default 14500 ;; 14501 *) 14502 lt_prog_compiler_pic_F77='+Z' 14503 ;; 14504 esac 14505 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14506 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14507 ;; 14508 14509 irix5* | irix6* | nonstopux*) 14510 lt_prog_compiler_wl_F77='-Wl,' 14511 # PIC (with -KPIC) is the default. 14512 lt_prog_compiler_static_F77='-non_shared' 14513 ;; 14514 14515 newsos6) 14516 lt_prog_compiler_pic_F77='-KPIC' 14517 lt_prog_compiler_static_F77='-Bstatic' 14518 ;; 14519 14520 linux* | k*bsd*-gnu) 14521 case $cc_basename in 14522 icc* | ecc*) 14523 lt_prog_compiler_wl_F77='-Wl,' 14524 lt_prog_compiler_pic_F77='-KPIC' 14525 lt_prog_compiler_static_F77='-static' 14526 ;; 14527 pgcc* | pgf77* | pgf90* | pgf95*) 14528 # Portland Group compilers (*not* the Pentium gcc compiler, 14529 # which looks to be a dead project) 14530 lt_prog_compiler_wl_F77='-Wl,' 14531 lt_prog_compiler_pic_F77='-fpic' 14532 lt_prog_compiler_static_F77='-Bstatic' 14533 ;; 14534 ccc*) 14535 lt_prog_compiler_wl_F77='-Wl,' 14536 # All Alpha code is PIC. 14537 lt_prog_compiler_static_F77='-non_shared' 14538 ;; 14539 *) 14540 case `$CC -V 2>&1 | sed 5q` in 14541 *Sun\ C*) 14542 # Sun C 5.9 14543 lt_prog_compiler_pic_F77='-KPIC' 14544 lt_prog_compiler_static_F77='-Bstatic' 14545 lt_prog_compiler_wl_F77='-Wl,' 14546 ;; 14547 *Sun\ F*) 14548 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14549 lt_prog_compiler_pic_F77='-KPIC' 14550 lt_prog_compiler_static_F77='-Bstatic' 14551 lt_prog_compiler_wl_F77='' 14552 ;; 14553 esac 14554 ;; 14555 esac 14556 ;; 14557 14558 osf3* | osf4* | osf5*) 14559 lt_prog_compiler_wl_F77='-Wl,' 14560 # All OSF/1 code is PIC. 14561 lt_prog_compiler_static_F77='-non_shared' 14562 ;; 14563 14564 rdos*) 14565 lt_prog_compiler_static_F77='-non_shared' 14566 ;; 14567 14568 solaris*) 14569 lt_prog_compiler_pic_F77='-KPIC' 14570 lt_prog_compiler_static_F77='-Bstatic' 14571 case $cc_basename in 14572 f77* | f90* | f95*) 14573 lt_prog_compiler_wl_F77='-Qoption ld ';; 14574 *) 14575 lt_prog_compiler_wl_F77='-Wl,';; 14576 esac 14577 ;; 14578 14579 sunos4*) 14580 lt_prog_compiler_wl_F77='-Qoption ld ' 14581 lt_prog_compiler_pic_F77='-PIC' 14582 lt_prog_compiler_static_F77='-Bstatic' 14583 ;; 14584 14585 sysv4 | sysv4.2uw2* | sysv4.3*) 14586 lt_prog_compiler_wl_F77='-Wl,' 14587 lt_prog_compiler_pic_F77='-KPIC' 14588 lt_prog_compiler_static_F77='-Bstatic' 14589 ;; 14590 14591 sysv4*MP*) 14592 if test -d /usr/nec ;then 14593 lt_prog_compiler_pic_F77='-Kconform_pic' 14594 lt_prog_compiler_static_F77='-Bstatic' 14595 fi 14596 ;; 14597 14598 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14599 lt_prog_compiler_wl_F77='-Wl,' 14600 lt_prog_compiler_pic_F77='-KPIC' 14601 lt_prog_compiler_static_F77='-Bstatic' 14602 ;; 14603 14604 unicos*) 14605 lt_prog_compiler_wl_F77='-Wl,' 14606 lt_prog_compiler_can_build_shared_F77=no 14607 ;; 14608 14609 uts4*) 14610 lt_prog_compiler_pic_F77='-pic' 14611 lt_prog_compiler_static_F77='-Bstatic' 14612 ;; 14613 14614 *) 14615 lt_prog_compiler_can_build_shared_F77=no 14616 ;; 14617 esac 14618 fi 14619 14620{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14621$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14622 14623# 14624# Check to make sure the PIC flag actually works. 14625# 14626if test -n "$lt_prog_compiler_pic_F77"; then 14627 14628{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14629$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14630if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14631 $as_echo_n "(cached) " >&6 14632else 14633 lt_cv_prog_compiler_pic_works_F77=no 14634 ac_outfile=conftest.$ac_objext 14635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14636 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14637 # Insert the option either (1) after the last *FLAGS variable, or 14638 # (2) before a word containing "conftest.", or (3) at the end. 14639 # Note that $ac_compile itself does not contain backslashes and begins 14640 # with a dollar sign (not a hyphen), so the echo should work correctly. 14641 # The option is referenced via a variable to avoid confusing sed. 14642 lt_compile=`echo "$ac_compile" | $SED \ 14643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14645 -e 's:$: $lt_compiler_flag:'` 14646 (eval echo "\"\$as_me:14646: $lt_compile\"" >&5) 14647 (eval "$lt_compile" 2>conftest.err) 14648 ac_status=$? 14649 cat conftest.err >&5 14650 echo "$as_me:14650: \$? = $ac_status" >&5 14651 if (exit $ac_status) && test -s "$ac_outfile"; then 14652 # The compiler can only warn and ignore the option if not recognized 14653 # So say no if there are warnings other than the usual output. 14654 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14656 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14657 lt_cv_prog_compiler_pic_works_F77=yes 14658 fi 14659 fi 14660 $rm conftest* 14661 14662fi 14663{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14664$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14665 14666if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14667 case $lt_prog_compiler_pic_F77 in 14668 "" | " "*) ;; 14669 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14670 esac 14671else 14672 lt_prog_compiler_pic_F77= 14673 lt_prog_compiler_can_build_shared_F77=no 14674fi 14675 14676fi 14677case $host_os in 14678 # For platforms which do not support PIC, -DPIC is meaningless: 14679 *djgpp*) 14680 lt_prog_compiler_pic_F77= 14681 ;; 14682 *) 14683 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14684 ;; 14685esac 14686 14687# 14688# Check to make sure the static flag actually works. 14689# 14690wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14691{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14692$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14693if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14694 $as_echo_n "(cached) " >&6 14695else 14696 lt_cv_prog_compiler_static_works_F77=no 14697 save_LDFLAGS="$LDFLAGS" 14698 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14699 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14700 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14701 # The linker can only warn and ignore the option if not recognized 14702 # So say no if there are warnings 14703 if test -s conftest.err; then 14704 # Append any errors to the config.log. 14705 cat conftest.err 1>&5 14706 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14708 if diff conftest.exp conftest.er2 >/dev/null; then 14709 lt_cv_prog_compiler_static_works_F77=yes 14710 fi 14711 else 14712 lt_cv_prog_compiler_static_works_F77=yes 14713 fi 14714 fi 14715 $rm -r conftest* 14716 LDFLAGS="$save_LDFLAGS" 14717 14718fi 14719{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14720$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14721 14722if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14723 : 14724else 14725 lt_prog_compiler_static_F77= 14726fi 14727 14728 14729{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14730$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14731if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14732 $as_echo_n "(cached) " >&6 14733else 14734 lt_cv_prog_compiler_c_o_F77=no 14735 $rm -r conftest 2>/dev/null 14736 mkdir conftest 14737 cd conftest 14738 mkdir out 14739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14740 14741 lt_compiler_flag="-o out/conftest2.$ac_objext" 14742 # Insert the option either (1) after the last *FLAGS variable, or 14743 # (2) before a word containing "conftest.", or (3) at the end. 14744 # Note that $ac_compile itself does not contain backslashes and begins 14745 # with a dollar sign (not a hyphen), so the echo should work correctly. 14746 lt_compile=`echo "$ac_compile" | $SED \ 14747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14749 -e 's:$: $lt_compiler_flag:'` 14750 (eval echo "\"\$as_me:14750: $lt_compile\"" >&5) 14751 (eval "$lt_compile" 2>out/conftest.err) 14752 ac_status=$? 14753 cat out/conftest.err >&5 14754 echo "$as_me:14754: \$? = $ac_status" >&5 14755 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14756 then 14757 # The compiler can only warn and ignore the option if not recognized 14758 # So say no if there are warnings 14759 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14762 lt_cv_prog_compiler_c_o_F77=yes 14763 fi 14764 fi 14765 chmod u+w . 2>&5 14766 $rm conftest* 14767 # SGI C++ compiler will create directory out/ii_files/ for 14768 # template instantiation 14769 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14770 $rm out/* && rmdir out 14771 cd .. 14772 rmdir conftest 14773 $rm conftest* 14774 14775fi 14776{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14777$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14778 14779 14780hard_links="nottested" 14781if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14782 # do not overwrite the value of need_locks provided by the user 14783 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14784$as_echo_n "checking if we can lock with hard links... " >&6; } 14785 hard_links=yes 14786 $rm conftest* 14787 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14788 touch conftest.a 14789 ln conftest.a conftest.b 2>&5 || hard_links=no 14790 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14791 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14792$as_echo "$hard_links" >&6; } 14793 if test "$hard_links" = no; then 14794 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14795$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14796 need_locks=warn 14797 fi 14798else 14799 need_locks=no 14800fi 14801 14802{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14803$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14804 14805 runpath_var= 14806 allow_undefined_flag_F77= 14807 enable_shared_with_static_runtimes_F77=no 14808 archive_cmds_F77= 14809 archive_expsym_cmds_F77= 14810 old_archive_From_new_cmds_F77= 14811 old_archive_from_expsyms_cmds_F77= 14812 export_dynamic_flag_spec_F77= 14813 whole_archive_flag_spec_F77= 14814 thread_safe_flag_spec_F77= 14815 hardcode_libdir_flag_spec_F77= 14816 hardcode_libdir_flag_spec_ld_F77= 14817 hardcode_libdir_separator_F77= 14818 hardcode_direct_F77=no 14819 hardcode_minus_L_F77=no 14820 hardcode_shlibpath_var_F77=unsupported 14821 link_all_deplibs_F77=unknown 14822 hardcode_automatic_F77=no 14823 module_cmds_F77= 14824 module_expsym_cmds_F77= 14825 always_export_symbols_F77=no 14826 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14827 # include_expsyms should be a list of space-separated symbols to be *always* 14828 # included in the symbol list 14829 include_expsyms_F77= 14830 # exclude_expsyms can be an extended regexp of symbols to exclude 14831 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14832 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14833 # as well as any symbol that contains `d'. 14834 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14835 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14836 # platforms (ab)use it in PIC code, but their linkers get confused if 14837 # the symbol is explicitly referenced. Since portable code cannot 14838 # rely on this symbol name, it's probably fine to never include it in 14839 # preloaded symbol tables. 14840 # Exclude shared library initialization/finalization symbols. 14841 extract_expsyms_cmds= 14842 # Just being paranoid about ensuring that cc_basename is set. 14843 for cc_temp in $compiler""; do 14844 case $cc_temp in 14845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14847 \-*) ;; 14848 *) break;; 14849 esac 14850done 14851cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14852 14853 case $host_os in 14854 cygwin* | mingw* | pw32*) 14855 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14856 # When not using gcc, we currently assume that we are using 14857 # Microsoft Visual C++. 14858 if test "$GCC" != yes; then 14859 with_gnu_ld=no 14860 fi 14861 ;; 14862 interix*) 14863 # we just hope/assume this is gcc and not c89 (= MSVC++) 14864 with_gnu_ld=yes 14865 ;; 14866 openbsd*) 14867 with_gnu_ld=no 14868 ;; 14869 esac 14870 14871 ld_shlibs_F77=yes 14872 if test "$with_gnu_ld" = yes; then 14873 # If archive_cmds runs LD, not CC, wlarc should be empty 14874 wlarc='${wl}' 14875 14876 # Set some defaults for GNU ld with shared library support. These 14877 # are reset later if shared libraries are not supported. Putting them 14878 # here allows them to be overridden if necessary. 14879 runpath_var=LD_RUN_PATH 14880 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14881 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14882 # ancient GNU ld didn't support --whole-archive et. al. 14883 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14884 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14885 else 14886 whole_archive_flag_spec_F77= 14887 fi 14888 supports_anon_versioning=no 14889 case `$LD -v 2>/dev/null` in 14890 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14891 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14892 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14893 *\ 2.11.*) ;; # other 2.11 versions 14894 *) supports_anon_versioning=yes ;; 14895 esac 14896 14897 # See if GNU ld supports shared libraries. 14898 case $host_os in 14899 aix[3-9]*) 14900 # On AIX/PPC, the GNU linker is very broken 14901 if test "$host_cpu" != ia64; then 14902 ld_shlibs_F77=no 14903 cat <<EOF 1>&2 14904 14905*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14906*** to be unable to reliably create shared libraries on AIX. 14907*** Therefore, libtool is disabling shared libraries support. If you 14908*** really care for shared libraries, you may want to modify your PATH 14909*** so that a non-GNU linker is found, and then restart. 14910 14911EOF 14912 fi 14913 ;; 14914 14915 amigaos*) 14916 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)' 14917 hardcode_libdir_flag_spec_F77='-L$libdir' 14918 hardcode_minus_L_F77=yes 14919 14920 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14921 # that the semantics of dynamic libraries on AmigaOS, at least up 14922 # to version 4, is to share data among multiple programs linked 14923 # with the same dynamic library. Since this doesn't match the 14924 # behavior of shared libraries on other platforms, we can't use 14925 # them. 14926 ld_shlibs_F77=no 14927 ;; 14928 14929 beos*) 14930 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14931 allow_undefined_flag_F77=unsupported 14932 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14933 # support --undefined. This deserves some investigation. FIXME 14934 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14935 else 14936 ld_shlibs_F77=no 14937 fi 14938 ;; 14939 14940 cygwin* | mingw* | pw32*) 14941 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14942 # as there is no search path for DLLs. 14943 hardcode_libdir_flag_spec_F77='-L$libdir' 14944 allow_undefined_flag_F77=unsupported 14945 always_export_symbols_F77=no 14946 enable_shared_with_static_runtimes_F77=yes 14947 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14948 14949 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14950 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14951 # If the export-symbols file already is a .def file (1st line 14952 # is EXPORTS), use it as is; otherwise, prepend... 14953 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14954 cp $export_symbols $output_objdir/$soname.def; 14955 else 14956 echo EXPORTS > $output_objdir/$soname.def; 14957 cat $export_symbols >> $output_objdir/$soname.def; 14958 fi~ 14959 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14960 else 14961 ld_shlibs_F77=no 14962 fi 14963 ;; 14964 14965 interix[3-9]*) 14966 hardcode_direct_F77=no 14967 hardcode_shlibpath_var_F77=no 14968 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14969 export_dynamic_flag_spec_F77='${wl}-E' 14970 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14971 # Instead, shared libraries are loaded at an image base (0x10000000 by 14972 # default) and relocated if they conflict, which is a slow very memory 14973 # consuming and fragmenting process. To avoid this, we pick a random, 14974 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14975 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14976 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' 14977 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' 14978 ;; 14979 14980 gnu* | linux* | k*bsd*-gnu) 14981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14982 tmp_addflag= 14983 case $cc_basename,$host_cpu in 14984 pgcc*) # Portland Group C compiler 14985 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' 14986 tmp_addflag=' $pic_flag' 14987 ;; 14988 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14989 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' 14990 tmp_addflag=' $pic_flag -Mnomain' ;; 14991 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14992 tmp_addflag=' -i_dynamic' ;; 14993 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14994 tmp_addflag=' -i_dynamic -nofor_main' ;; 14995 ifc* | ifort*) # Intel Fortran compiler 14996 tmp_addflag=' -nofor_main' ;; 14997 esac 14998 case `$CC -V 2>&1 | sed 5q` in 14999 *Sun\ C*) # Sun C 5.9 15000 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15001 tmp_sharedflag='-G' ;; 15002 *Sun\ F*) # Sun Fortran 8.3 15003 tmp_sharedflag='-G' ;; 15004 *) 15005 tmp_sharedflag='-shared' ;; 15006 esac 15007 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15008 15009 if test $supports_anon_versioning = yes; then 15010 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15011 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15012 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15013 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15014 fi 15015 else 15016 ld_shlibs_F77=no 15017 fi 15018 ;; 15019 15020 netbsd*) 15021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15022 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15023 wlarc= 15024 else 15025 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15026 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15027 fi 15028 ;; 15029 15030 solaris*) 15031 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15032 ld_shlibs_F77=no 15033 cat <<EOF 1>&2 15034 15035*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15036*** create shared libraries on Solaris systems. Therefore, libtool 15037*** is disabling shared libraries support. We urge you to upgrade GNU 15038*** binutils to release 2.9.1 or newer. Another option is to modify 15039*** your PATH or compiler configuration so that the native linker is 15040*** used, and then restart. 15041 15042EOF 15043 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15044 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15045 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15046 else 15047 ld_shlibs_F77=no 15048 fi 15049 ;; 15050 15051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15052 case `$LD -v 2>&1` in 15053 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15054 ld_shlibs_F77=no 15055 cat <<_LT_EOF 1>&2 15056 15057*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15058*** reliably create shared libraries on SCO systems. Therefore, libtool 15059*** is disabling shared libraries support. We urge you to upgrade GNU 15060*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15061*** your PATH or compiler configuration so that the native linker is 15062*** used, and then restart. 15063 15064_LT_EOF 15065 ;; 15066 *) 15067 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15068 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15069 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15070 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15071 else 15072 ld_shlibs_F77=no 15073 fi 15074 ;; 15075 esac 15076 ;; 15077 15078 sunos4*) 15079 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15080 wlarc= 15081 hardcode_direct_F77=yes 15082 hardcode_shlibpath_var_F77=no 15083 ;; 15084 15085 *) 15086 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15087 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15088 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15089 else 15090 ld_shlibs_F77=no 15091 fi 15092 ;; 15093 esac 15094 15095 if test "$ld_shlibs_F77" = no; then 15096 runpath_var= 15097 hardcode_libdir_flag_spec_F77= 15098 export_dynamic_flag_spec_F77= 15099 whole_archive_flag_spec_F77= 15100 fi 15101 else 15102 # PORTME fill in a description of your system's linker (not GNU ld) 15103 case $host_os in 15104 aix3*) 15105 allow_undefined_flag_F77=unsupported 15106 always_export_symbols_F77=yes 15107 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' 15108 # Note: this linker hardcodes the directories in LIBPATH if there 15109 # are no directories specified by -L. 15110 hardcode_minus_L_F77=yes 15111 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15112 # Neither direct hardcoding nor static linking is supported with a 15113 # broken collect2. 15114 hardcode_direct_F77=unsupported 15115 fi 15116 ;; 15117 15118 aix[4-9]*) 15119 if test "$host_cpu" = ia64; then 15120 # On IA64, the linker does run time linking by default, so we don't 15121 # have to do anything special. 15122 aix_use_runtimelinking=no 15123 exp_sym_flag='-Bexport' 15124 no_entry_flag="" 15125 else 15126 # If we're using GNU nm, then we don't want the "-C" option. 15127 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15128 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15129 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' 15130 else 15131 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' 15132 fi 15133 aix_use_runtimelinking=no 15134 15135 # Test if we are trying to use run time linking or normal 15136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15137 # need to do runtime linking. 15138 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15139 for ld_flag in $LDFLAGS; do 15140 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15141 aix_use_runtimelinking=yes 15142 break 15143 fi 15144 done 15145 ;; 15146 esac 15147 15148 exp_sym_flag='-bexport' 15149 no_entry_flag='-bnoentry' 15150 fi 15151 15152 # When large executables or shared objects are built, AIX ld can 15153 # have problems creating the table of contents. If linking a library 15154 # or program results in "error TOC overflow" add -mminimal-toc to 15155 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15156 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15157 15158 archive_cmds_F77='' 15159 hardcode_direct_F77=yes 15160 hardcode_libdir_separator_F77=':' 15161 link_all_deplibs_F77=yes 15162 15163 if test "$GCC" = yes; then 15164 case $host_os in aix4.[012]|aix4.[012].*) 15165 # We only want to do this on AIX 4.2 and lower, the check 15166 # below for broken collect2 doesn't work under 4.3+ 15167 collect2name=`${CC} -print-prog-name=collect2` 15168 if test -f "$collect2name" && \ 15169 strings "$collect2name" | grep resolve_lib_name >/dev/null 15170 then 15171 # We have reworked collect2 15172 : 15173 else 15174 # We have old collect2 15175 hardcode_direct_F77=unsupported 15176 # It fails to find uninstalled libraries when the uninstalled 15177 # path is not listed in the libpath. Setting hardcode_minus_L 15178 # to unsupported forces relinking 15179 hardcode_minus_L_F77=yes 15180 hardcode_libdir_flag_spec_F77='-L$libdir' 15181 hardcode_libdir_separator_F77= 15182 fi 15183 ;; 15184 esac 15185 shared_flag='-shared' 15186 if test "$aix_use_runtimelinking" = yes; then 15187 shared_flag="$shared_flag "'${wl}-G' 15188 fi 15189 else 15190 # not using gcc 15191 if test "$host_cpu" = ia64; then 15192 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15193 # chokes on -Wl,-G. The following line is correct: 15194 shared_flag='-G' 15195 else 15196 if test "$aix_use_runtimelinking" = yes; then 15197 shared_flag='${wl}-G' 15198 else 15199 shared_flag='${wl}-bM:SRE' 15200 fi 15201 fi 15202 fi 15203 15204 # It seems that -bexpall does not export symbols beginning with 15205 # underscore (_), so it is better to generate a list of symbols to export. 15206 always_export_symbols_F77=yes 15207 if test "$aix_use_runtimelinking" = yes; then 15208 # Warning - without using the other runtime loading flags (-brtl), 15209 # -berok will link without error, but may produce a broken library. 15210 allow_undefined_flag_F77='-berok' 15211 # Determine the default libpath from the value encoded in an empty executable. 15212 cat >conftest.$ac_ext <<_ACEOF 15213 program main 15214 15215 end 15216_ACEOF 15217rm -f conftest.$ac_objext conftest$ac_exeext 15218if { (ac_try="$ac_link" 15219case "(($ac_try" in 15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15221 *) ac_try_echo=$ac_try;; 15222esac 15223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15224$as_echo "$ac_try_echo") >&5 15225 (eval "$ac_link") 2>conftest.er1 15226 ac_status=$? 15227 grep -v '^ *+' conftest.er1 >conftest.err 15228 rm -f conftest.er1 15229 cat conftest.err >&5 15230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15231 (exit $ac_status); } && { 15232 test -z "$ac_f77_werror_flag" || 15233 test ! -s conftest.err 15234 } && test -s conftest$ac_exeext && { 15235 test "$cross_compiling" = yes || 15236 $as_test_x conftest$ac_exeext 15237 }; then 15238 15239lt_aix_libpath_sed=' 15240 /Import File Strings/,/^$/ { 15241 /^0/ { 15242 s/^0 *\(.*\)$/\1/ 15243 p 15244 } 15245 }' 15246aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15247# Check for a 64-bit object if we didn't find anything. 15248if test -z "$aix_libpath"; then 15249 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15250fi 15251else 15252 $as_echo "$as_me: failed program was:" >&5 15253sed 's/^/| /' conftest.$ac_ext >&5 15254 15255 15256fi 15257 15258rm -rf conftest.dSYM 15259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15260 conftest$ac_exeext conftest.$ac_ext 15261if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15262 15263 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15264 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" 15265 else 15266 if test "$host_cpu" = ia64; then 15267 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15268 allow_undefined_flag_F77="-z nodefs" 15269 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" 15270 else 15271 # Determine the default libpath from the value encoded in an empty executable. 15272 cat >conftest.$ac_ext <<_ACEOF 15273 program main 15274 15275 end 15276_ACEOF 15277rm -f conftest.$ac_objext conftest$ac_exeext 15278if { (ac_try="$ac_link" 15279case "(($ac_try" in 15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15281 *) ac_try_echo=$ac_try;; 15282esac 15283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15284$as_echo "$ac_try_echo") >&5 15285 (eval "$ac_link") 2>conftest.er1 15286 ac_status=$? 15287 grep -v '^ *+' conftest.er1 >conftest.err 15288 rm -f conftest.er1 15289 cat conftest.err >&5 15290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15291 (exit $ac_status); } && { 15292 test -z "$ac_f77_werror_flag" || 15293 test ! -s conftest.err 15294 } && test -s conftest$ac_exeext && { 15295 test "$cross_compiling" = yes || 15296 $as_test_x conftest$ac_exeext 15297 }; then 15298 15299lt_aix_libpath_sed=' 15300 /Import File Strings/,/^$/ { 15301 /^0/ { 15302 s/^0 *\(.*\)$/\1/ 15303 p 15304 } 15305 }' 15306aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15307# Check for a 64-bit object if we didn't find anything. 15308if test -z "$aix_libpath"; then 15309 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15310fi 15311else 15312 $as_echo "$as_me: failed program was:" >&5 15313sed 's/^/| /' conftest.$ac_ext >&5 15314 15315 15316fi 15317 15318rm -rf conftest.dSYM 15319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15320 conftest$ac_exeext conftest.$ac_ext 15321if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15322 15323 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15324 # Warning - without using the other run time loading flags, 15325 # -berok will link without error, but may produce a broken library. 15326 no_undefined_flag_F77=' ${wl}-bernotok' 15327 allow_undefined_flag_F77=' ${wl}-berok' 15328 # Exported symbols can be pulled into shared objects from archives 15329 whole_archive_flag_spec_F77='$convenience' 15330 archive_cmds_need_lc_F77=yes 15331 # This is similar to how AIX traditionally builds its shared libraries. 15332 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' 15333 fi 15334 fi 15335 ;; 15336 15337 amigaos*) 15338 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)' 15339 hardcode_libdir_flag_spec_F77='-L$libdir' 15340 hardcode_minus_L_F77=yes 15341 # see comment about different semantics on the GNU ld section 15342 ld_shlibs_F77=no 15343 ;; 15344 15345 bsdi[45]*) 15346 export_dynamic_flag_spec_F77=-rdynamic 15347 ;; 15348 15349 cygwin* | mingw* | pw32*) 15350 # When not using gcc, we currently assume that we are using 15351 # Microsoft Visual C++. 15352 # hardcode_libdir_flag_spec is actually meaningless, as there is 15353 # no search path for DLLs. 15354 hardcode_libdir_flag_spec_F77=' ' 15355 allow_undefined_flag_F77=unsupported 15356 # Tell ltmain to make .lib files, not .a files. 15357 libext=lib 15358 # Tell ltmain to make .dll files, not .so files. 15359 shrext_cmds=".dll" 15360 # FIXME: Setting linknames here is a bad hack. 15361 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15362 # The linker will automatically build a .lib file if we build a DLL. 15363 old_archive_From_new_cmds_F77='true' 15364 # FIXME: Should let the user specify the lib program. 15365 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15366 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15367 enable_shared_with_static_runtimes_F77=yes 15368 ;; 15369 15370 darwin* | rhapsody*) 15371 case $host_os in 15372 rhapsody* | darwin1.[012]) 15373 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15374 ;; 15375 *) # Darwin 1.3 on 15376 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15377 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15378 else 15379 case ${MACOSX_DEPLOYMENT_TARGET} in 15380 10.[012]) 15381 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15382 ;; 15383 10.*) 15384 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15385 ;; 15386 esac 15387 fi 15388 ;; 15389 esac 15390 archive_cmds_need_lc_F77=no 15391 hardcode_direct_F77=no 15392 hardcode_automatic_F77=yes 15393 hardcode_shlibpath_var_F77=unsupported 15394 whole_archive_flag_spec_F77='' 15395 link_all_deplibs_F77=yes 15396 if test "$GCC" = yes ; then 15397 output_verbose_link_cmd='echo' 15398 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15399 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15400 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 15401 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 15402 else 15403 case $cc_basename in 15404 xlc*) 15405 output_verbose_link_cmd='echo' 15406 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15407 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15408 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15409 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15410 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}' 15411 ;; 15412 *) 15413 ld_shlibs_F77=no 15414 ;; 15415 esac 15416 fi 15417 ;; 15418 15419 dgux*) 15420 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15421 hardcode_libdir_flag_spec_F77='-L$libdir' 15422 hardcode_shlibpath_var_F77=no 15423 ;; 15424 15425 freebsd1*) 15426 ld_shlibs_F77=no 15427 ;; 15428 15429 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15430 # support. Future versions do this automatically, but an explicit c++rt0.o 15431 # does not break anything, and helps significantly (at the cost of a little 15432 # extra space). 15433 freebsd2.2*) 15434 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15435 hardcode_libdir_flag_spec_F77='-R$libdir' 15436 hardcode_direct_F77=yes 15437 hardcode_shlibpath_var_F77=no 15438 ;; 15439 15440 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15441 freebsd2*) 15442 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15443 hardcode_direct_F77=yes 15444 hardcode_minus_L_F77=yes 15445 hardcode_shlibpath_var_F77=no 15446 ;; 15447 15448 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15449 freebsd* | dragonfly*) 15450 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15451 hardcode_libdir_flag_spec_F77='-R$libdir' 15452 hardcode_direct_F77=yes 15453 hardcode_shlibpath_var_F77=no 15454 ;; 15455 15456 hpux9*) 15457 if test "$GCC" = yes; then 15458 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' 15459 else 15460 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' 15461 fi 15462 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15463 hardcode_libdir_separator_F77=: 15464 hardcode_direct_F77=yes 15465 15466 # hardcode_minus_L: Not really in the search PATH, 15467 # but as the default location of the library. 15468 hardcode_minus_L_F77=yes 15469 export_dynamic_flag_spec_F77='${wl}-E' 15470 ;; 15471 15472 hpux10*) 15473 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15474 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15475 else 15476 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15477 fi 15478 if test "$with_gnu_ld" = no; then 15479 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15480 hardcode_libdir_separator_F77=: 15481 15482 hardcode_direct_F77=yes 15483 export_dynamic_flag_spec_F77='${wl}-E' 15484 15485 # hardcode_minus_L: Not really in the search PATH, 15486 # but as the default location of the library. 15487 hardcode_minus_L_F77=yes 15488 fi 15489 ;; 15490 15491 hpux11*) 15492 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15493 case $host_cpu in 15494 hppa*64*) 15495 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15496 ;; 15497 ia64*) 15498 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15499 ;; 15500 *) 15501 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15502 ;; 15503 esac 15504 else 15505 case $host_cpu in 15506 hppa*64*) 15507 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15508 ;; 15509 ia64*) 15510 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15511 ;; 15512 *) 15513 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15514 ;; 15515 esac 15516 fi 15517 if test "$with_gnu_ld" = no; then 15518 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15519 hardcode_libdir_separator_F77=: 15520 15521 case $host_cpu in 15522 hppa*64*|ia64*) 15523 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15524 hardcode_direct_F77=no 15525 hardcode_shlibpath_var_F77=no 15526 ;; 15527 *) 15528 hardcode_direct_F77=yes 15529 export_dynamic_flag_spec_F77='${wl}-E' 15530 15531 # hardcode_minus_L: Not really in the search PATH, 15532 # but as the default location of the library. 15533 hardcode_minus_L_F77=yes 15534 ;; 15535 esac 15536 fi 15537 ;; 15538 15539 irix5* | irix6* | nonstopux*) 15540 if test "$GCC" = yes; then 15541 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' 15542 else 15543 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' 15544 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15545 fi 15546 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15547 hardcode_libdir_separator_F77=: 15548 link_all_deplibs_F77=yes 15549 ;; 15550 15551 netbsd*) 15552 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15553 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15554 else 15555 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15556 fi 15557 hardcode_libdir_flag_spec_F77='-R$libdir' 15558 hardcode_direct_F77=yes 15559 hardcode_shlibpath_var_F77=no 15560 ;; 15561 15562 newsos6) 15563 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15564 hardcode_direct_F77=yes 15565 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15566 hardcode_libdir_separator_F77=: 15567 hardcode_shlibpath_var_F77=no 15568 ;; 15569 15570 openbsd*) 15571 if test -f /usr/libexec/ld.so; then 15572 hardcode_direct_F77=yes 15573 hardcode_shlibpath_var_F77=no 15574 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15575 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15576 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15577 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15578 export_dynamic_flag_spec_F77='${wl}-E' 15579 else 15580 case $host_os in 15581 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15582 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15583 hardcode_libdir_flag_spec_F77='-R$libdir' 15584 ;; 15585 *) 15586 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15587 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15588 ;; 15589 esac 15590 fi 15591 else 15592 ld_shlibs_F77=no 15593 fi 15594 ;; 15595 15596 os2*) 15597 hardcode_libdir_flag_spec_F77='-L$libdir' 15598 hardcode_minus_L_F77=yes 15599 allow_undefined_flag_F77=unsupported 15600 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' 15601 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15602 ;; 15603 15604 osf3*) 15605 if test "$GCC" = yes; then 15606 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15607 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' 15608 else 15609 allow_undefined_flag_F77=' -expect_unresolved \*' 15610 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' 15611 fi 15612 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15613 hardcode_libdir_separator_F77=: 15614 ;; 15615 15616 osf4* | osf5*) # as osf3* with the addition of -msym flag 15617 if test "$GCC" = yes; then 15618 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15619 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' 15620 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15621 else 15622 allow_undefined_flag_F77=' -expect_unresolved \*' 15623 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' 15624 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~ 15625 $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' 15626 15627 # Both c and cxx compiler support -rpath directly 15628 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15629 fi 15630 hardcode_libdir_separator_F77=: 15631 ;; 15632 15633 solaris*) 15634 no_undefined_flag_F77=' -z text' 15635 if test "$GCC" = yes; then 15636 wlarc='${wl}' 15637 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15638 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15639 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15640 else 15641 wlarc='' 15642 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15643 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15644 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15645 fi 15646 hardcode_libdir_flag_spec_F77='-R$libdir' 15647 hardcode_shlibpath_var_F77=no 15648 case $host_os in 15649 solaris2.[0-5] | solaris2.[0-5].*) ;; 15650 *) 15651 # The compiler driver will combine and reorder linker options, 15652 # but understands `-z linker_flag'. GCC discards it without `$wl', 15653 # but is careful enough not to reorder. 15654 # Supported since Solaris 2.6 (maybe 2.5.1?) 15655 if test "$GCC" = yes; then 15656 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15657 else 15658 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15659 fi 15660 ;; 15661 esac 15662 link_all_deplibs_F77=yes 15663 ;; 15664 15665 sunos4*) 15666 if test "x$host_vendor" = xsequent; then 15667 # Use $CC to link under sequent, because it throws in some extra .o 15668 # files that make .init and .fini sections work. 15669 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15670 else 15671 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15672 fi 15673 hardcode_libdir_flag_spec_F77='-L$libdir' 15674 hardcode_direct_F77=yes 15675 hardcode_minus_L_F77=yes 15676 hardcode_shlibpath_var_F77=no 15677 ;; 15678 15679 sysv4) 15680 case $host_vendor in 15681 sni) 15682 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15683 hardcode_direct_F77=yes # is this really true??? 15684 ;; 15685 siemens) 15686 ## LD is ld it makes a PLAMLIB 15687 ## CC just makes a GrossModule. 15688 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15689 reload_cmds_F77='$CC -r -o $output$reload_objs' 15690 hardcode_direct_F77=no 15691 ;; 15692 motorola) 15693 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15694 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15695 ;; 15696 esac 15697 runpath_var='LD_RUN_PATH' 15698 hardcode_shlibpath_var_F77=no 15699 ;; 15700 15701 sysv4.3*) 15702 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15703 hardcode_shlibpath_var_F77=no 15704 export_dynamic_flag_spec_F77='-Bexport' 15705 ;; 15706 15707 sysv4*MP*) 15708 if test -d /usr/nec; then 15709 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15710 hardcode_shlibpath_var_F77=no 15711 runpath_var=LD_RUN_PATH 15712 hardcode_runpath_var=yes 15713 ld_shlibs_F77=yes 15714 fi 15715 ;; 15716 15717 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15718 no_undefined_flag_F77='${wl}-z,text' 15719 archive_cmds_need_lc_F77=no 15720 hardcode_shlibpath_var_F77=no 15721 runpath_var='LD_RUN_PATH' 15722 15723 if test "$GCC" = yes; then 15724 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15725 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15726 else 15727 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15728 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15729 fi 15730 ;; 15731 15732 sysv5* | sco3.2v5* | sco5v6*) 15733 # Note: We can NOT use -z defs as we might desire, because we do not 15734 # link with -lc, and that would cause any symbols used from libc to 15735 # always be unresolved, which means just about no library would 15736 # ever link correctly. If we're not using GNU ld we use -z text 15737 # though, which does catch some bad symbols but isn't as heavy-handed 15738 # as -z defs. 15739 no_undefined_flag_F77='${wl}-z,text' 15740 allow_undefined_flag_F77='${wl}-z,nodefs' 15741 archive_cmds_need_lc_F77=no 15742 hardcode_shlibpath_var_F77=no 15743 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15744 hardcode_libdir_separator_F77=':' 15745 link_all_deplibs_F77=yes 15746 export_dynamic_flag_spec_F77='${wl}-Bexport' 15747 runpath_var='LD_RUN_PATH' 15748 15749 if test "$GCC" = yes; then 15750 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15751 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15752 else 15753 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15754 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15755 fi 15756 ;; 15757 15758 uts4*) 15759 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15760 hardcode_libdir_flag_spec_F77='-L$libdir' 15761 hardcode_shlibpath_var_F77=no 15762 ;; 15763 15764 *) 15765 ld_shlibs_F77=no 15766 ;; 15767 esac 15768 fi 15769 15770{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15771$as_echo "$ld_shlibs_F77" >&6; } 15772test "$ld_shlibs_F77" = no && can_build_shared=no 15773 15774# 15775# Do we need to explicitly link libc? 15776# 15777case "x$archive_cmds_need_lc_F77" in 15778x|xyes) 15779 # Assume -lc should be added 15780 archive_cmds_need_lc_F77=yes 15781 15782 if test "$enable_shared" = yes && test "$GCC" = yes; then 15783 case $archive_cmds_F77 in 15784 *'~'*) 15785 # FIXME: we may have to deal with multi-command sequences. 15786 ;; 15787 '$CC '*) 15788 # Test whether the compiler implicitly links with -lc since on some 15789 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15790 # to ld, don't add -lc before -lgcc. 15791 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15792$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15793 $rm conftest* 15794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15795 15796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15797 (eval $ac_compile) 2>&5 15798 ac_status=$? 15799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15800 (exit $ac_status); } 2>conftest.err; then 15801 soname=conftest 15802 lib=conftest 15803 libobjs=conftest.$ac_objext 15804 deplibs= 15805 wl=$lt_prog_compiler_wl_F77 15806 pic_flag=$lt_prog_compiler_pic_F77 15807 compiler_flags=-v 15808 linker_flags=-v 15809 verstring= 15810 output_objdir=. 15811 libname=conftest 15812 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15813 allow_undefined_flag_F77= 15814 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15815 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15816 ac_status=$? 15817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15818 (exit $ac_status); } 15819 then 15820 archive_cmds_need_lc_F77=no 15821 else 15822 archive_cmds_need_lc_F77=yes 15823 fi 15824 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15825 else 15826 cat conftest.err 1>&5 15827 fi 15828 $rm conftest* 15829 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15830$as_echo "$archive_cmds_need_lc_F77" >&6; } 15831 ;; 15832 esac 15833 fi 15834 ;; 15835esac 15836 15837{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15838$as_echo_n "checking dynamic linker characteristics... " >&6; } 15839library_names_spec= 15840libname_spec='lib$name' 15841soname_spec= 15842shrext_cmds=".so" 15843postinstall_cmds= 15844postuninstall_cmds= 15845finish_cmds= 15846finish_eval= 15847shlibpath_var= 15848shlibpath_overrides_runpath=unknown 15849version_type=none 15850dynamic_linker="$host_os ld.so" 15851sys_lib_dlsearch_path_spec="/lib /usr/lib" 15852 15853need_lib_prefix=unknown 15854hardcode_into_libs=no 15855 15856# when you set need_version to no, make sure it does not cause -set_version 15857# flags to be left without arguments 15858need_version=unknown 15859 15860case $host_os in 15861aix3*) 15862 version_type=linux 15863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15864 shlibpath_var=LIBPATH 15865 15866 # AIX 3 has no versioning support, so we append a major version to the name. 15867 soname_spec='${libname}${release}${shared_ext}$major' 15868 ;; 15869 15870aix[4-9]*) 15871 version_type=linux 15872 need_lib_prefix=no 15873 need_version=no 15874 hardcode_into_libs=yes 15875 if test "$host_cpu" = ia64; then 15876 # AIX 5 supports IA64 15877 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15878 shlibpath_var=LD_LIBRARY_PATH 15879 else 15880 # With GCC up to 2.95.x, collect2 would create an import file 15881 # for dependence libraries. The import file would start with 15882 # the line `#! .'. This would cause the generated library to 15883 # depend on `.', always an invalid library. This was fixed in 15884 # development snapshots of GCC prior to 3.0. 15885 case $host_os in 15886 aix4 | aix4.[01] | aix4.[01].*) 15887 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15888 echo ' yes ' 15889 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15890 : 15891 else 15892 can_build_shared=no 15893 fi 15894 ;; 15895 esac 15896 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15897 # soname into executable. Probably we can add versioning support to 15898 # collect2, so additional links can be useful in future. 15899 if test "$aix_use_runtimelinking" = yes; then 15900 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15901 # instead of lib<name>.a to let people know that these are not 15902 # typical AIX shared libraries. 15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15904 else 15905 # We preserve .a as extension for shared libraries through AIX4.2 15906 # and later when we are not doing run time linking. 15907 library_names_spec='${libname}${release}.a $libname.a' 15908 soname_spec='${libname}${release}${shared_ext}$major' 15909 fi 15910 shlibpath_var=LIBPATH 15911 fi 15912 ;; 15913 15914amigaos*) 15915 library_names_spec='$libname.ixlibrary $libname.a' 15916 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15917 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' 15918 ;; 15919 15920beos*) 15921 library_names_spec='${libname}${shared_ext}' 15922 dynamic_linker="$host_os ld.so" 15923 shlibpath_var=LIBRARY_PATH 15924 ;; 15925 15926bsdi[45]*) 15927 version_type=linux 15928 need_version=no 15929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15930 soname_spec='${libname}${release}${shared_ext}$major' 15931 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15932 shlibpath_var=LD_LIBRARY_PATH 15933 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15934 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15935 # the default ld.so.conf also contains /usr/contrib/lib and 15936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15937 # libtool to hard-code these into programs 15938 ;; 15939 15940cygwin* | mingw* | pw32*) 15941 version_type=windows 15942 shrext_cmds=".dll" 15943 need_version=no 15944 need_lib_prefix=no 15945 15946 case $GCC,$host_os in 15947 yes,cygwin* | yes,mingw* | yes,pw32*) 15948 library_names_spec='$libname.dll.a' 15949 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15950 postinstall_cmds='base_file=`basename \${file}`~ 15951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15952 dldir=$destdir/`dirname \$dlpath`~ 15953 test -d \$dldir || mkdir -p \$dldir~ 15954 $install_prog $dir/$dlname \$dldir/$dlname~ 15955 chmod a+x \$dldir/$dlname' 15956 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15957 dlpath=$dir/\$dldll~ 15958 $rm \$dlpath' 15959 shlibpath_overrides_runpath=yes 15960 15961 case $host_os in 15962 cygwin*) 15963 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15964 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15965 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15966 ;; 15967 mingw*) 15968 # MinGW DLLs use traditional 'lib' prefix 15969 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15970 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15971 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15972 # It is most probably a Windows format PATH printed by 15973 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15974 # path with ; separators, and with drive letters. We can handle the 15975 # drive letters (cygwin fileutils understands them), so leave them, 15976 # especially as we might pass files found there to a mingw objdump, 15977 # which wouldn't understand a cygwinified path. Ahh. 15978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15979 else 15980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15981 fi 15982 ;; 15983 pw32*) 15984 # pw32 DLLs use 'pw' prefix rather than 'lib' 15985 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15986 ;; 15987 esac 15988 ;; 15989 15990 *) 15991 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15992 ;; 15993 esac 15994 dynamic_linker='Win32 ld.exe' 15995 # FIXME: first we should search . and the directory the executable is in 15996 shlibpath_var=PATH 15997 ;; 15998 15999darwin* | rhapsody*) 16000 dynamic_linker="$host_os dyld" 16001 version_type=darwin 16002 need_lib_prefix=no 16003 need_version=no 16004 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16005 soname_spec='${libname}${release}${major}$shared_ext' 16006 shlibpath_overrides_runpath=yes 16007 shlibpath_var=DYLD_LIBRARY_PATH 16008 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16009 16010 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16011 ;; 16012 16013dgux*) 16014 version_type=linux 16015 need_lib_prefix=no 16016 need_version=no 16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16018 soname_spec='${libname}${release}${shared_ext}$major' 16019 shlibpath_var=LD_LIBRARY_PATH 16020 ;; 16021 16022freebsd1*) 16023 dynamic_linker=no 16024 ;; 16025 16026freebsd* | dragonfly*) 16027 # DragonFly does not have aout. When/if they implement a new 16028 # versioning mechanism, adjust this. 16029 if test -x /usr/bin/objformat; then 16030 objformat=`/usr/bin/objformat` 16031 else 16032 case $host_os in 16033 freebsd[123]*) objformat=aout ;; 16034 *) objformat=elf ;; 16035 esac 16036 fi 16037 version_type=freebsd-$objformat 16038 case $version_type in 16039 freebsd-elf*) 16040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16041 need_version=no 16042 need_lib_prefix=no 16043 ;; 16044 freebsd-*) 16045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16046 need_version=yes 16047 ;; 16048 esac 16049 shlibpath_var=LD_LIBRARY_PATH 16050 case $host_os in 16051 freebsd2*) 16052 shlibpath_overrides_runpath=yes 16053 ;; 16054 freebsd3.[01]* | freebsdelf3.[01]*) 16055 shlibpath_overrides_runpath=yes 16056 hardcode_into_libs=yes 16057 ;; 16058 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16059 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16060 shlibpath_overrides_runpath=no 16061 hardcode_into_libs=yes 16062 ;; 16063 *) # from 4.6 on, and DragonFly 16064 shlibpath_overrides_runpath=yes 16065 hardcode_into_libs=yes 16066 ;; 16067 esac 16068 ;; 16069 16070gnu*) 16071 version_type=linux 16072 need_lib_prefix=no 16073 need_version=no 16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16075 soname_spec='${libname}${release}${shared_ext}$major' 16076 shlibpath_var=LD_LIBRARY_PATH 16077 hardcode_into_libs=yes 16078 ;; 16079 16080hpux9* | hpux10* | hpux11*) 16081 # Give a soname corresponding to the major version so that dld.sl refuses to 16082 # link against other versions. 16083 version_type=sunos 16084 need_lib_prefix=no 16085 need_version=no 16086 case $host_cpu in 16087 ia64*) 16088 shrext_cmds='.so' 16089 hardcode_into_libs=yes 16090 dynamic_linker="$host_os dld.so" 16091 shlibpath_var=LD_LIBRARY_PATH 16092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16094 soname_spec='${libname}${release}${shared_ext}$major' 16095 if test "X$HPUX_IA64_MODE" = X32; then 16096 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16097 else 16098 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16099 fi 16100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16101 ;; 16102 hppa*64*) 16103 shrext_cmds='.sl' 16104 hardcode_into_libs=yes 16105 dynamic_linker="$host_os dld.sl" 16106 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16109 soname_spec='${libname}${release}${shared_ext}$major' 16110 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16112 ;; 16113 *) 16114 shrext_cmds='.sl' 16115 dynamic_linker="$host_os dld.sl" 16116 shlibpath_var=SHLIB_PATH 16117 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16119 soname_spec='${libname}${release}${shared_ext}$major' 16120 ;; 16121 esac 16122 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16123 postinstall_cmds='chmod 555 $lib' 16124 ;; 16125 16126interix[3-9]*) 16127 version_type=linux 16128 need_lib_prefix=no 16129 need_version=no 16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16131 soname_spec='${libname}${release}${shared_ext}$major' 16132 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16133 shlibpath_var=LD_LIBRARY_PATH 16134 shlibpath_overrides_runpath=no 16135 hardcode_into_libs=yes 16136 ;; 16137 16138irix5* | irix6* | nonstopux*) 16139 case $host_os in 16140 nonstopux*) version_type=nonstopux ;; 16141 *) 16142 if test "$lt_cv_prog_gnu_ld" = yes; then 16143 version_type=linux 16144 else 16145 version_type=irix 16146 fi ;; 16147 esac 16148 need_lib_prefix=no 16149 need_version=no 16150 soname_spec='${libname}${release}${shared_ext}$major' 16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16152 case $host_os in 16153 irix5* | nonstopux*) 16154 libsuff= shlibsuff= 16155 ;; 16156 *) 16157 case $LD in # libtool.m4 will add one of these switches to LD 16158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16159 libsuff= shlibsuff= libmagic=32-bit;; 16160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16161 libsuff=32 shlibsuff=N32 libmagic=N32;; 16162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16163 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16164 *) libsuff= shlibsuff= libmagic=never-match;; 16165 esac 16166 ;; 16167 esac 16168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16169 shlibpath_overrides_runpath=no 16170 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16171 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16172 hardcode_into_libs=yes 16173 ;; 16174 16175# No shared lib support for Linux oldld, aout, or coff. 16176linux*oldld* | linux*aout* | linux*coff*) 16177 dynamic_linker=no 16178 ;; 16179 16180# This must be Linux ELF. 16181linux* | k*bsd*-gnu) 16182 version_type=linux 16183 need_lib_prefix=no 16184 need_version=no 16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16186 soname_spec='${libname}${release}${shared_ext}$major' 16187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16188 shlibpath_var=LD_LIBRARY_PATH 16189 shlibpath_overrides_runpath=no 16190 # This implies no fast_install, which is unacceptable. 16191 # Some rework will be needed to allow for fast_install 16192 # before this can be enabled. 16193 hardcode_into_libs=yes 16194 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16195 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16196 16197 # Append ld.so.conf contents to the search path 16198 if test -f /etc/ld.so.conf; then 16199 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16200 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16201 fi 16202 16203 # We used to test for /lib/ld.so.1 and disable shared libraries on 16204 # powerpc, because MkLinux only supported shared libraries with the 16205 # GNU dynamic linker. Since this was broken with cross compilers, 16206 # most powerpc-linux boxes support dynamic linking these days and 16207 # people can always --disable-shared, the test was removed, and we 16208 # assume the GNU/Linux dynamic linker is in use. 16209 dynamic_linker='GNU/Linux ld.so' 16210 ;; 16211 16212netbsd*) 16213 version_type=sunos 16214 need_lib_prefix=no 16215 need_version=no 16216 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16219 dynamic_linker='NetBSD (a.out) ld.so' 16220 else 16221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16222 soname_spec='${libname}${release}${shared_ext}$major' 16223 dynamic_linker='NetBSD ld.elf_so' 16224 fi 16225 shlibpath_var=LD_LIBRARY_PATH 16226 shlibpath_overrides_runpath=yes 16227 hardcode_into_libs=yes 16228 ;; 16229 16230newsos6) 16231 version_type=linux 16232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16233 shlibpath_var=LD_LIBRARY_PATH 16234 shlibpath_overrides_runpath=yes 16235 ;; 16236 16237nto-qnx*) 16238 version_type=linux 16239 need_lib_prefix=no 16240 need_version=no 16241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16242 soname_spec='${libname}${release}${shared_ext}$major' 16243 shlibpath_var=LD_LIBRARY_PATH 16244 shlibpath_overrides_runpath=yes 16245 ;; 16246 16247openbsd*) 16248 version_type=sunos 16249 sys_lib_dlsearch_path_spec="/usr/lib" 16250 need_lib_prefix=no 16251 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16252 case $host_os in 16253 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16254 *) need_version=no ;; 16255 esac 16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16258 shlibpath_var=LD_LIBRARY_PATH 16259 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16260 case $host_os in 16261 openbsd2.[89] | openbsd2.[89].*) 16262 shlibpath_overrides_runpath=no 16263 ;; 16264 *) 16265 shlibpath_overrides_runpath=yes 16266 ;; 16267 esac 16268 else 16269 shlibpath_overrides_runpath=yes 16270 fi 16271 ;; 16272 16273os2*) 16274 libname_spec='$name' 16275 shrext_cmds=".dll" 16276 need_lib_prefix=no 16277 library_names_spec='$libname${shared_ext} $libname.a' 16278 dynamic_linker='OS/2 ld.exe' 16279 shlibpath_var=LIBPATH 16280 ;; 16281 16282osf3* | osf4* | osf5*) 16283 version_type=osf 16284 need_lib_prefix=no 16285 need_version=no 16286 soname_spec='${libname}${release}${shared_ext}$major' 16287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16288 shlibpath_var=LD_LIBRARY_PATH 16289 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16290 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16291 ;; 16292 16293rdos*) 16294 dynamic_linker=no 16295 ;; 16296 16297solaris*) 16298 version_type=linux 16299 need_lib_prefix=no 16300 need_version=no 16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16302 soname_spec='${libname}${release}${shared_ext}$major' 16303 shlibpath_var=LD_LIBRARY_PATH 16304 shlibpath_overrides_runpath=yes 16305 hardcode_into_libs=yes 16306 # ldd complains unless libraries are executable 16307 postinstall_cmds='chmod +x $lib' 16308 ;; 16309 16310sunos4*) 16311 version_type=sunos 16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16313 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16314 shlibpath_var=LD_LIBRARY_PATH 16315 shlibpath_overrides_runpath=yes 16316 if test "$with_gnu_ld" = yes; then 16317 need_lib_prefix=no 16318 fi 16319 need_version=yes 16320 ;; 16321 16322sysv4 | sysv4.3*) 16323 version_type=linux 16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16325 soname_spec='${libname}${release}${shared_ext}$major' 16326 shlibpath_var=LD_LIBRARY_PATH 16327 case $host_vendor in 16328 sni) 16329 shlibpath_overrides_runpath=no 16330 need_lib_prefix=no 16331 export_dynamic_flag_spec='${wl}-Blargedynsym' 16332 runpath_var=LD_RUN_PATH 16333 ;; 16334 siemens) 16335 need_lib_prefix=no 16336 ;; 16337 motorola) 16338 need_lib_prefix=no 16339 need_version=no 16340 shlibpath_overrides_runpath=no 16341 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16342 ;; 16343 esac 16344 ;; 16345 16346sysv4*MP*) 16347 if test -d /usr/nec ;then 16348 version_type=linux 16349 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16350 soname_spec='$libname${shared_ext}.$major' 16351 shlibpath_var=LD_LIBRARY_PATH 16352 fi 16353 ;; 16354 16355sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16356 version_type=freebsd-elf 16357 need_lib_prefix=no 16358 need_version=no 16359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16360 soname_spec='${libname}${release}${shared_ext}$major' 16361 shlibpath_var=LD_LIBRARY_PATH 16362 hardcode_into_libs=yes 16363 if test "$with_gnu_ld" = yes; then 16364 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16365 shlibpath_overrides_runpath=no 16366 else 16367 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16368 shlibpath_overrides_runpath=yes 16369 case $host_os in 16370 sco3.2v5*) 16371 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16372 ;; 16373 esac 16374 fi 16375 sys_lib_dlsearch_path_spec='/usr/lib' 16376 ;; 16377 16378uts4*) 16379 version_type=linux 16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16381 soname_spec='${libname}${release}${shared_ext}$major' 16382 shlibpath_var=LD_LIBRARY_PATH 16383 ;; 16384 16385*) 16386 dynamic_linker=no 16387 ;; 16388esac 16389{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16390$as_echo "$dynamic_linker" >&6; } 16391test "$dynamic_linker" = no && can_build_shared=no 16392 16393if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16394 $as_echo_n "(cached) " >&6 16395else 16396 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16397fi 16398 16399sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16400if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16401 $as_echo_n "(cached) " >&6 16402else 16403 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16404fi 16405 16406sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16407 16408variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16409if test "$GCC" = yes; then 16410 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16411fi 16412 16413{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16414$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16415hardcode_action_F77= 16416if test -n "$hardcode_libdir_flag_spec_F77" || \ 16417 test -n "$runpath_var_F77" || \ 16418 test "X$hardcode_automatic_F77" = "Xyes" ; then 16419 16420 # We can hardcode non-existant directories. 16421 if test "$hardcode_direct_F77" != no && 16422 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16423 # have to relink, otherwise we might link with an installed library 16424 # when we should be linking with a yet-to-be-installed one 16425 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16426 test "$hardcode_minus_L_F77" != no; then 16427 # Linking always hardcodes the temporary library directory. 16428 hardcode_action_F77=relink 16429 else 16430 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16431 hardcode_action_F77=immediate 16432 fi 16433else 16434 # We cannot hardcode anything, or else we can only hardcode existing 16435 # directories. 16436 hardcode_action_F77=unsupported 16437fi 16438{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16439$as_echo "$hardcode_action_F77" >&6; } 16440 16441if test "$hardcode_action_F77" = relink; then 16442 # Fast installation is not supported 16443 enable_fast_install=no 16444elif test "$shlibpath_overrides_runpath" = yes || 16445 test "$enable_shared" = no; then 16446 # Fast installation is not necessary 16447 enable_fast_install=needless 16448fi 16449 16450 16451# The else clause should only fire when bootstrapping the 16452# libtool distribution, otherwise you forgot to ship ltmain.sh 16453# with your package, and you will get complaints that there are 16454# no rules to generate ltmain.sh. 16455if test -f "$ltmain"; then 16456 # See if we are running on zsh, and set the options which allow our commands through 16457 # without removal of \ escapes. 16458 if test -n "${ZSH_VERSION+set}" ; then 16459 setopt NO_GLOB_SUBST 16460 fi 16461 # Now quote all the things that may contain metacharacters while being 16462 # careful not to overquote the AC_SUBSTed values. We take copies of the 16463 # variables and quote the copies for generation of the libtool script. 16464 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16465 SED SHELL STRIP \ 16466 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16467 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16468 deplibs_check_method reload_flag reload_cmds need_locks \ 16469 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16470 lt_cv_sys_global_symbol_to_c_name_address \ 16471 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16472 old_postinstall_cmds old_postuninstall_cmds \ 16473 compiler_F77 \ 16474 CC_F77 \ 16475 LD_F77 \ 16476 lt_prog_compiler_wl_F77 \ 16477 lt_prog_compiler_pic_F77 \ 16478 lt_prog_compiler_static_F77 \ 16479 lt_prog_compiler_no_builtin_flag_F77 \ 16480 export_dynamic_flag_spec_F77 \ 16481 thread_safe_flag_spec_F77 \ 16482 whole_archive_flag_spec_F77 \ 16483 enable_shared_with_static_runtimes_F77 \ 16484 old_archive_cmds_F77 \ 16485 old_archive_from_new_cmds_F77 \ 16486 predep_objects_F77 \ 16487 postdep_objects_F77 \ 16488 predeps_F77 \ 16489 postdeps_F77 \ 16490 compiler_lib_search_path_F77 \ 16491 compiler_lib_search_dirs_F77 \ 16492 archive_cmds_F77 \ 16493 archive_expsym_cmds_F77 \ 16494 postinstall_cmds_F77 \ 16495 postuninstall_cmds_F77 \ 16496 old_archive_from_expsyms_cmds_F77 \ 16497 allow_undefined_flag_F77 \ 16498 no_undefined_flag_F77 \ 16499 export_symbols_cmds_F77 \ 16500 hardcode_libdir_flag_spec_F77 \ 16501 hardcode_libdir_flag_spec_ld_F77 \ 16502 hardcode_libdir_separator_F77 \ 16503 hardcode_automatic_F77 \ 16504 module_cmds_F77 \ 16505 module_expsym_cmds_F77 \ 16506 lt_cv_prog_compiler_c_o_F77 \ 16507 fix_srcfile_path_F77 \ 16508 exclude_expsyms_F77 \ 16509 include_expsyms_F77; do 16510 16511 case $var in 16512 old_archive_cmds_F77 | \ 16513 old_archive_from_new_cmds_F77 | \ 16514 archive_cmds_F77 | \ 16515 archive_expsym_cmds_F77 | \ 16516 module_cmds_F77 | \ 16517 module_expsym_cmds_F77 | \ 16518 old_archive_from_expsyms_cmds_F77 | \ 16519 export_symbols_cmds_F77 | \ 16520 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16521 postinstall_cmds | postuninstall_cmds | \ 16522 old_postinstall_cmds | old_postuninstall_cmds | \ 16523 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16524 # Double-quote double-evaled strings. 16525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16526 ;; 16527 *) 16528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16529 ;; 16530 esac 16531 done 16532 16533 case $lt_echo in 16534 *'\$0 --fallback-echo"') 16535 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16536 ;; 16537 esac 16538 16539cfgfile="$ofile" 16540 16541 cat <<__EOF__ >> "$cfgfile" 16542# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16543 16544# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16545 16546# Shell to use when invoking shell scripts. 16547SHELL=$lt_SHELL 16548 16549# Whether or not to build shared libraries. 16550build_libtool_libs=$enable_shared 16551 16552# Whether or not to build static libraries. 16553build_old_libs=$enable_static 16554 16555# Whether or not to add -lc for building shared libraries. 16556build_libtool_need_lc=$archive_cmds_need_lc_F77 16557 16558# Whether or not to disallow shared libs when runtime libs are static 16559allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16560 16561# Whether or not to optimize for fast installation. 16562fast_install=$enable_fast_install 16563 16564# The host system. 16565host_alias=$host_alias 16566host=$host 16567host_os=$host_os 16568 16569# The build system. 16570build_alias=$build_alias 16571build=$build 16572build_os=$build_os 16573 16574# An echo program that does not interpret backslashes. 16575echo=$lt_echo 16576 16577# The archiver. 16578AR=$lt_AR 16579AR_FLAGS=$lt_AR_FLAGS 16580 16581# A C compiler. 16582LTCC=$lt_LTCC 16583 16584# LTCC compiler flags. 16585LTCFLAGS=$lt_LTCFLAGS 16586 16587# A language-specific compiler. 16588CC=$lt_compiler_F77 16589 16590# Is the compiler the GNU C compiler? 16591with_gcc=$GCC_F77 16592 16593# An ERE matcher. 16594EGREP=$lt_EGREP 16595 16596# The linker used to build libraries. 16597LD=$lt_LD_F77 16598 16599# Whether we need hard or soft links. 16600LN_S=$lt_LN_S 16601 16602# A BSD-compatible nm program. 16603NM=$lt_NM 16604 16605# A symbol stripping program 16606STRIP=$lt_STRIP 16607 16608# Used to examine libraries when file_magic_cmd begins "file" 16609MAGIC_CMD=$MAGIC_CMD 16610 16611# Used on cygwin: DLL creation program. 16612DLLTOOL="$DLLTOOL" 16613 16614# Used on cygwin: object dumper. 16615OBJDUMP="$OBJDUMP" 16616 16617# Used on cygwin: assembler. 16618AS="$AS" 16619 16620# The name of the directory that contains temporary libtool files. 16621objdir=$objdir 16622 16623# How to create reloadable object files. 16624reload_flag=$lt_reload_flag 16625reload_cmds=$lt_reload_cmds 16626 16627# How to pass a linker flag through the compiler. 16628wl=$lt_lt_prog_compiler_wl_F77 16629 16630# Object file suffix (normally "o"). 16631objext="$ac_objext" 16632 16633# Old archive suffix (normally "a"). 16634libext="$libext" 16635 16636# Shared library suffix (normally ".so"). 16637shrext_cmds='$shrext_cmds' 16638 16639# Executable file suffix (normally ""). 16640exeext="$exeext" 16641 16642# Additional compiler flags for building library objects. 16643pic_flag=$lt_lt_prog_compiler_pic_F77 16644pic_mode=$pic_mode 16645 16646# What is the maximum length of a command? 16647max_cmd_len=$lt_cv_sys_max_cmd_len 16648 16649# Does compiler simultaneously support -c and -o options? 16650compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16651 16652# Must we lock files when doing compilation? 16653need_locks=$lt_need_locks 16654 16655# Do we need the lib prefix for modules? 16656need_lib_prefix=$need_lib_prefix 16657 16658# Do we need a version for libraries? 16659need_version=$need_version 16660 16661# Whether dlopen is supported. 16662dlopen_support=$enable_dlopen 16663 16664# Whether dlopen of programs is supported. 16665dlopen_self=$enable_dlopen_self 16666 16667# Whether dlopen of statically linked programs is supported. 16668dlopen_self_static=$enable_dlopen_self_static 16669 16670# Compiler flag to prevent dynamic linking. 16671link_static_flag=$lt_lt_prog_compiler_static_F77 16672 16673# Compiler flag to turn off builtin functions. 16674no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16675 16676# Compiler flag to allow reflexive dlopens. 16677export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16678 16679# Compiler flag to generate shared objects directly from archives. 16680whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16681 16682# Compiler flag to generate thread-safe objects. 16683thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16684 16685# Library versioning type. 16686version_type=$version_type 16687 16688# Format of library name prefix. 16689libname_spec=$lt_libname_spec 16690 16691# List of archive names. First name is the real one, the rest are links. 16692# The last name is the one that the linker finds with -lNAME. 16693library_names_spec=$lt_library_names_spec 16694 16695# The coded name of the library, if different from the real name. 16696soname_spec=$lt_soname_spec 16697 16698# Commands used to build and install an old-style archive. 16699RANLIB=$lt_RANLIB 16700old_archive_cmds=$lt_old_archive_cmds_F77 16701old_postinstall_cmds=$lt_old_postinstall_cmds 16702old_postuninstall_cmds=$lt_old_postuninstall_cmds 16703 16704# Create an old-style archive from a shared archive. 16705old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16706 16707# Create a temporary old-style archive to link instead of a shared archive. 16708old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16709 16710# Commands used to build and install a shared archive. 16711archive_cmds=$lt_archive_cmds_F77 16712archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16713postinstall_cmds=$lt_postinstall_cmds 16714postuninstall_cmds=$lt_postuninstall_cmds 16715 16716# Commands used to build a loadable module (assumed same as above if empty) 16717module_cmds=$lt_module_cmds_F77 16718module_expsym_cmds=$lt_module_expsym_cmds_F77 16719 16720# Commands to strip libraries. 16721old_striplib=$lt_old_striplib 16722striplib=$lt_striplib 16723 16724# Dependencies to place before the objects being linked to create a 16725# shared library. 16726predep_objects=$lt_predep_objects_F77 16727 16728# Dependencies to place after the objects being linked to create a 16729# shared library. 16730postdep_objects=$lt_postdep_objects_F77 16731 16732# Dependencies to place before the objects being linked to create a 16733# shared library. 16734predeps=$lt_predeps_F77 16735 16736# Dependencies to place after the objects being linked to create a 16737# shared library. 16738postdeps=$lt_postdeps_F77 16739 16740# The directories searched by this compiler when creating a shared 16741# library 16742compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16743 16744# The library search path used internally by the compiler when linking 16745# a shared library. 16746compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16747 16748# Method to check whether dependent libraries are shared objects. 16749deplibs_check_method=$lt_deplibs_check_method 16750 16751# Command to use when deplibs_check_method == file_magic. 16752file_magic_cmd=$lt_file_magic_cmd 16753 16754# Flag that allows shared libraries with undefined symbols to be built. 16755allow_undefined_flag=$lt_allow_undefined_flag_F77 16756 16757# Flag that forces no undefined symbols. 16758no_undefined_flag=$lt_no_undefined_flag_F77 16759 16760# Commands used to finish a libtool library installation in a directory. 16761finish_cmds=$lt_finish_cmds 16762 16763# Same as above, but a single script fragment to be evaled but not shown. 16764finish_eval=$lt_finish_eval 16765 16766# Take the output of nm and produce a listing of raw symbols and C names. 16767global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16768 16769# Transform the output of nm in a proper C declaration 16770global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16771 16772# Transform the output of nm in a C name address pair 16773global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16774 16775# This is the shared library runtime path variable. 16776runpath_var=$runpath_var 16777 16778# This is the shared library path variable. 16779shlibpath_var=$shlibpath_var 16780 16781# Is shlibpath searched before the hard-coded library search path? 16782shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16783 16784# How to hardcode a shared library path into an executable. 16785hardcode_action=$hardcode_action_F77 16786 16787# Whether we should hardcode library paths into libraries. 16788hardcode_into_libs=$hardcode_into_libs 16789 16790# Flag to hardcode \$libdir into a binary during linking. 16791# This must work even if \$libdir does not exist. 16792hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16793 16794# If ld is used when linking, flag to hardcode \$libdir into 16795# a binary during linking. This must work even if \$libdir does 16796# not exist. 16797hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16798 16799# Whether we need a single -rpath flag with a separated argument. 16800hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16801 16802# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16803# resulting binary. 16804hardcode_direct=$hardcode_direct_F77 16805 16806# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16807# resulting binary. 16808hardcode_minus_L=$hardcode_minus_L_F77 16809 16810# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16811# the resulting binary. 16812hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16813 16814# Set to yes if building a shared library automatically hardcodes DIR into the library 16815# and all subsequent libraries and executables linked against it. 16816hardcode_automatic=$hardcode_automatic_F77 16817 16818# Variables whose values should be saved in libtool wrapper scripts and 16819# restored at relink time. 16820variables_saved_for_relink="$variables_saved_for_relink" 16821 16822# Whether libtool must link a program against all its dependency libraries. 16823link_all_deplibs=$link_all_deplibs_F77 16824 16825# Compile-time system search path for libraries 16826sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16827 16828# Run-time system search path for libraries 16829sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16830 16831# Fix the shell variable \$srcfile for the compiler. 16832fix_srcfile_path=$lt_fix_srcfile_path 16833 16834# Set to yes if exported symbols are required. 16835always_export_symbols=$always_export_symbols_F77 16836 16837# The commands to list exported symbols. 16838export_symbols_cmds=$lt_export_symbols_cmds_F77 16839 16840# The commands to extract the exported symbol list from a shared archive. 16841extract_expsyms_cmds=$lt_extract_expsyms_cmds 16842 16843# Symbols that should not be listed in the preloaded symbols. 16844exclude_expsyms=$lt_exclude_expsyms_F77 16845 16846# Symbols that must always be exported. 16847include_expsyms=$lt_include_expsyms_F77 16848 16849# ### END LIBTOOL TAG CONFIG: $tagname 16850 16851__EOF__ 16852 16853 16854else 16855 # If there is no Makefile yet, we rely on a make rule to execute 16856 # `config.status --recheck' to rerun these tests and create the 16857 # libtool script then. 16858 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16859 if test -f "$ltmain_in"; then 16860 test -f Makefile && make "$ltmain" 16861 fi 16862fi 16863 16864 16865ac_ext=c 16866ac_cpp='$CPP $CPPFLAGS' 16867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16869ac_compiler_gnu=$ac_cv_c_compiler_gnu 16870 16871CC="$lt_save_CC" 16872 16873 else 16874 tagname="" 16875 fi 16876 ;; 16877 16878 GCJ) 16879 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16880 16881 16882# Source file extension for Java test sources. 16883ac_ext=java 16884 16885# Object file extension for compiled Java test sources. 16886objext=o 16887objext_GCJ=$objext 16888 16889# Code to be used in simple compile tests 16890lt_simple_compile_test_code="class foo {}" 16891 16892# Code to be used in simple link tests 16893lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16894 16895# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16896 16897# If no C compiler was specified, use CC. 16898LTCC=${LTCC-"$CC"} 16899 16900# If no C compiler flags were specified, use CFLAGS. 16901LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16902 16903# Allow CC to be a program name with arguments. 16904compiler=$CC 16905 16906 16907# save warnings/boilerplate of simple test code 16908ac_outfile=conftest.$ac_objext 16909echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16911_lt_compiler_boilerplate=`cat conftest.err` 16912$rm conftest* 16913 16914ac_outfile=conftest.$ac_objext 16915echo "$lt_simple_link_test_code" >conftest.$ac_ext 16916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16917_lt_linker_boilerplate=`cat conftest.err` 16918$rm -r conftest* 16919 16920 16921# Allow CC to be a program name with arguments. 16922lt_save_CC="$CC" 16923CC=${GCJ-"gcj"} 16924compiler=$CC 16925compiler_GCJ=$CC 16926for cc_temp in $compiler""; do 16927 case $cc_temp in 16928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16930 \-*) ;; 16931 *) break;; 16932 esac 16933done 16934cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16935 16936 16937# GCJ did not exist at the time GCC didn't implicitly link libc in. 16938archive_cmds_need_lc_GCJ=no 16939 16940old_archive_cmds_GCJ=$old_archive_cmds 16941 16942 16943lt_prog_compiler_no_builtin_flag_GCJ= 16944 16945if test "$GCC" = yes; then 16946 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16947 16948 16949{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16950$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16951if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16952 $as_echo_n "(cached) " >&6 16953else 16954 lt_cv_prog_compiler_rtti_exceptions=no 16955 ac_outfile=conftest.$ac_objext 16956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16957 lt_compiler_flag="-fno-rtti -fno-exceptions" 16958 # Insert the option either (1) after the last *FLAGS variable, or 16959 # (2) before a word containing "conftest.", or (3) at the end. 16960 # Note that $ac_compile itself does not contain backslashes and begins 16961 # with a dollar sign (not a hyphen), so the echo should work correctly. 16962 # The option is referenced via a variable to avoid confusing sed. 16963 lt_compile=`echo "$ac_compile" | $SED \ 16964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16966 -e 's:$: $lt_compiler_flag:'` 16967 (eval echo "\"\$as_me:16967: $lt_compile\"" >&5) 16968 (eval "$lt_compile" 2>conftest.err) 16969 ac_status=$? 16970 cat conftest.err >&5 16971 echo "$as_me:16971: \$? = $ac_status" >&5 16972 if (exit $ac_status) && test -s "$ac_outfile"; then 16973 # The compiler can only warn and ignore the option if not recognized 16974 # So say no if there are warnings other than the usual output. 16975 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16977 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16978 lt_cv_prog_compiler_rtti_exceptions=yes 16979 fi 16980 fi 16981 $rm conftest* 16982 16983fi 16984{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16985$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16986 16987if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16988 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16989else 16990 : 16991fi 16992 16993fi 16994 16995lt_prog_compiler_wl_GCJ= 16996lt_prog_compiler_pic_GCJ= 16997lt_prog_compiler_static_GCJ= 16998 16999{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17000$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17001 17002 if test "$GCC" = yes; then 17003 lt_prog_compiler_wl_GCJ='-Wl,' 17004 lt_prog_compiler_static_GCJ='-static' 17005 17006 case $host_os in 17007 aix*) 17008 # All AIX code is PIC. 17009 if test "$host_cpu" = ia64; then 17010 # AIX 5 now supports IA64 processor 17011 lt_prog_compiler_static_GCJ='-Bstatic' 17012 fi 17013 ;; 17014 17015 amigaos*) 17016 # FIXME: we need at least 68020 code to build shared libraries, but 17017 # adding the `-m68020' flag to GCC prevents building anything better, 17018 # like `-m68040'. 17019 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17020 ;; 17021 17022 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17023 # PIC is the default for these OSes. 17024 ;; 17025 17026 mingw* | cygwin* | pw32* | os2*) 17027 # This hack is so that the source file can tell whether it is being 17028 # built for inclusion in a dll (and should export symbols for example). 17029 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17030 # (--disable-auto-import) libraries 17031 17032 ;; 17033 17034 darwin* | rhapsody*) 17035 # PIC is the default on this platform 17036 # Common symbols not allowed in MH_DYLIB files 17037 lt_prog_compiler_pic_GCJ='-fno-common' 17038 ;; 17039 17040 interix[3-9]*) 17041 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17042 # Instead, we relocate shared libraries at runtime. 17043 ;; 17044 17045 msdosdjgpp*) 17046 # Just because we use GCC doesn't mean we suddenly get shared libraries 17047 # on systems that don't support them. 17048 lt_prog_compiler_can_build_shared_GCJ=no 17049 enable_shared=no 17050 ;; 17051 17052 sysv4*MP*) 17053 if test -d /usr/nec; then 17054 lt_prog_compiler_pic_GCJ=-Kconform_pic 17055 fi 17056 ;; 17057 17058 hpux*) 17059 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17060 # not for PA HP-UX. 17061 case $host_cpu in 17062 hppa*64*|ia64*) 17063 # +Z the default 17064 ;; 17065 *) 17066 lt_prog_compiler_pic_GCJ='-fPIC' 17067 ;; 17068 esac 17069 ;; 17070 17071 *) 17072 lt_prog_compiler_pic_GCJ='-fPIC' 17073 ;; 17074 esac 17075 else 17076 # PORTME Check for flag to pass linker flags through the system compiler. 17077 case $host_os in 17078 aix*) 17079 lt_prog_compiler_wl_GCJ='-Wl,' 17080 if test "$host_cpu" = ia64; then 17081 # AIX 5 now supports IA64 processor 17082 lt_prog_compiler_static_GCJ='-Bstatic' 17083 else 17084 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17085 fi 17086 ;; 17087 darwin*) 17088 # PIC is the default on this platform 17089 # Common symbols not allowed in MH_DYLIB files 17090 case $cc_basename in 17091 xlc*) 17092 lt_prog_compiler_pic_GCJ='-qnocommon' 17093 lt_prog_compiler_wl_GCJ='-Wl,' 17094 ;; 17095 esac 17096 ;; 17097 17098 mingw* | cygwin* | pw32* | os2*) 17099 # This hack is so that the source file can tell whether it is being 17100 # built for inclusion in a dll (and should export symbols for example). 17101 17102 ;; 17103 17104 hpux9* | hpux10* | hpux11*) 17105 lt_prog_compiler_wl_GCJ='-Wl,' 17106 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17107 # not for PA HP-UX. 17108 case $host_cpu in 17109 hppa*64*|ia64*) 17110 # +Z the default 17111 ;; 17112 *) 17113 lt_prog_compiler_pic_GCJ='+Z' 17114 ;; 17115 esac 17116 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17117 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17118 ;; 17119 17120 irix5* | irix6* | nonstopux*) 17121 lt_prog_compiler_wl_GCJ='-Wl,' 17122 # PIC (with -KPIC) is the default. 17123 lt_prog_compiler_static_GCJ='-non_shared' 17124 ;; 17125 17126 newsos6) 17127 lt_prog_compiler_pic_GCJ='-KPIC' 17128 lt_prog_compiler_static_GCJ='-Bstatic' 17129 ;; 17130 17131 linux* | k*bsd*-gnu) 17132 case $cc_basename in 17133 icc* | ecc*) 17134 lt_prog_compiler_wl_GCJ='-Wl,' 17135 lt_prog_compiler_pic_GCJ='-KPIC' 17136 lt_prog_compiler_static_GCJ='-static' 17137 ;; 17138 pgcc* | pgf77* | pgf90* | pgf95*) 17139 # Portland Group compilers (*not* the Pentium gcc compiler, 17140 # which looks to be a dead project) 17141 lt_prog_compiler_wl_GCJ='-Wl,' 17142 lt_prog_compiler_pic_GCJ='-fpic' 17143 lt_prog_compiler_static_GCJ='-Bstatic' 17144 ;; 17145 ccc*) 17146 lt_prog_compiler_wl_GCJ='-Wl,' 17147 # All Alpha code is PIC. 17148 lt_prog_compiler_static_GCJ='-non_shared' 17149 ;; 17150 *) 17151 case `$CC -V 2>&1 | sed 5q` in 17152 *Sun\ C*) 17153 # Sun C 5.9 17154 lt_prog_compiler_pic_GCJ='-KPIC' 17155 lt_prog_compiler_static_GCJ='-Bstatic' 17156 lt_prog_compiler_wl_GCJ='-Wl,' 17157 ;; 17158 *Sun\ F*) 17159 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17160 lt_prog_compiler_pic_GCJ='-KPIC' 17161 lt_prog_compiler_static_GCJ='-Bstatic' 17162 lt_prog_compiler_wl_GCJ='' 17163 ;; 17164 esac 17165 ;; 17166 esac 17167 ;; 17168 17169 osf3* | osf4* | osf5*) 17170 lt_prog_compiler_wl_GCJ='-Wl,' 17171 # All OSF/1 code is PIC. 17172 lt_prog_compiler_static_GCJ='-non_shared' 17173 ;; 17174 17175 rdos*) 17176 lt_prog_compiler_static_GCJ='-non_shared' 17177 ;; 17178 17179 solaris*) 17180 lt_prog_compiler_pic_GCJ='-KPIC' 17181 lt_prog_compiler_static_GCJ='-Bstatic' 17182 case $cc_basename in 17183 f77* | f90* | f95*) 17184 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17185 *) 17186 lt_prog_compiler_wl_GCJ='-Wl,';; 17187 esac 17188 ;; 17189 17190 sunos4*) 17191 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17192 lt_prog_compiler_pic_GCJ='-PIC' 17193 lt_prog_compiler_static_GCJ='-Bstatic' 17194 ;; 17195 17196 sysv4 | sysv4.2uw2* | sysv4.3*) 17197 lt_prog_compiler_wl_GCJ='-Wl,' 17198 lt_prog_compiler_pic_GCJ='-KPIC' 17199 lt_prog_compiler_static_GCJ='-Bstatic' 17200 ;; 17201 17202 sysv4*MP*) 17203 if test -d /usr/nec ;then 17204 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17205 lt_prog_compiler_static_GCJ='-Bstatic' 17206 fi 17207 ;; 17208 17209 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17210 lt_prog_compiler_wl_GCJ='-Wl,' 17211 lt_prog_compiler_pic_GCJ='-KPIC' 17212 lt_prog_compiler_static_GCJ='-Bstatic' 17213 ;; 17214 17215 unicos*) 17216 lt_prog_compiler_wl_GCJ='-Wl,' 17217 lt_prog_compiler_can_build_shared_GCJ=no 17218 ;; 17219 17220 uts4*) 17221 lt_prog_compiler_pic_GCJ='-pic' 17222 lt_prog_compiler_static_GCJ='-Bstatic' 17223 ;; 17224 17225 *) 17226 lt_prog_compiler_can_build_shared_GCJ=no 17227 ;; 17228 esac 17229 fi 17230 17231{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17232$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17233 17234# 17235# Check to make sure the PIC flag actually works. 17236# 17237if test -n "$lt_prog_compiler_pic_GCJ"; then 17238 17239{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17240$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17241if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17242 $as_echo_n "(cached) " >&6 17243else 17244 lt_cv_prog_compiler_pic_works_GCJ=no 17245 ac_outfile=conftest.$ac_objext 17246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17247 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17248 # Insert the option either (1) after the last *FLAGS variable, or 17249 # (2) before a word containing "conftest.", or (3) at the end. 17250 # Note that $ac_compile itself does not contain backslashes and begins 17251 # with a dollar sign (not a hyphen), so the echo should work correctly. 17252 # The option is referenced via a variable to avoid confusing sed. 17253 lt_compile=`echo "$ac_compile" | $SED \ 17254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17256 -e 's:$: $lt_compiler_flag:'` 17257 (eval echo "\"\$as_me:17257: $lt_compile\"" >&5) 17258 (eval "$lt_compile" 2>conftest.err) 17259 ac_status=$? 17260 cat conftest.err >&5 17261 echo "$as_me:17261: \$? = $ac_status" >&5 17262 if (exit $ac_status) && test -s "$ac_outfile"; then 17263 # The compiler can only warn and ignore the option if not recognized 17264 # So say no if there are warnings other than the usual output. 17265 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17267 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17268 lt_cv_prog_compiler_pic_works_GCJ=yes 17269 fi 17270 fi 17271 $rm conftest* 17272 17273fi 17274{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17275$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17276 17277if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17278 case $lt_prog_compiler_pic_GCJ in 17279 "" | " "*) ;; 17280 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17281 esac 17282else 17283 lt_prog_compiler_pic_GCJ= 17284 lt_prog_compiler_can_build_shared_GCJ=no 17285fi 17286 17287fi 17288case $host_os in 17289 # For platforms which do not support PIC, -DPIC is meaningless: 17290 *djgpp*) 17291 lt_prog_compiler_pic_GCJ= 17292 ;; 17293 *) 17294 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17295 ;; 17296esac 17297 17298# 17299# Check to make sure the static flag actually works. 17300# 17301wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17302{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17303$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17304if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17305 $as_echo_n "(cached) " >&6 17306else 17307 lt_cv_prog_compiler_static_works_GCJ=no 17308 save_LDFLAGS="$LDFLAGS" 17309 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17310 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17311 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17312 # The linker can only warn and ignore the option if not recognized 17313 # So say no if there are warnings 17314 if test -s conftest.err; then 17315 # Append any errors to the config.log. 17316 cat conftest.err 1>&5 17317 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17319 if diff conftest.exp conftest.er2 >/dev/null; then 17320 lt_cv_prog_compiler_static_works_GCJ=yes 17321 fi 17322 else 17323 lt_cv_prog_compiler_static_works_GCJ=yes 17324 fi 17325 fi 17326 $rm -r conftest* 17327 LDFLAGS="$save_LDFLAGS" 17328 17329fi 17330{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17331$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17332 17333if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17334 : 17335else 17336 lt_prog_compiler_static_GCJ= 17337fi 17338 17339 17340{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17341$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17342if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17343 $as_echo_n "(cached) " >&6 17344else 17345 lt_cv_prog_compiler_c_o_GCJ=no 17346 $rm -r conftest 2>/dev/null 17347 mkdir conftest 17348 cd conftest 17349 mkdir out 17350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17351 17352 lt_compiler_flag="-o out/conftest2.$ac_objext" 17353 # Insert the option either (1) after the last *FLAGS variable, or 17354 # (2) before a word containing "conftest.", or (3) at the end. 17355 # Note that $ac_compile itself does not contain backslashes and begins 17356 # with a dollar sign (not a hyphen), so the echo should work correctly. 17357 lt_compile=`echo "$ac_compile" | $SED \ 17358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17360 -e 's:$: $lt_compiler_flag:'` 17361 (eval echo "\"\$as_me:17361: $lt_compile\"" >&5) 17362 (eval "$lt_compile" 2>out/conftest.err) 17363 ac_status=$? 17364 cat out/conftest.err >&5 17365 echo "$as_me:17365: \$? = $ac_status" >&5 17366 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17367 then 17368 # The compiler can only warn and ignore the option if not recognized 17369 # So say no if there are warnings 17370 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17373 lt_cv_prog_compiler_c_o_GCJ=yes 17374 fi 17375 fi 17376 chmod u+w . 2>&5 17377 $rm conftest* 17378 # SGI C++ compiler will create directory out/ii_files/ for 17379 # template instantiation 17380 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17381 $rm out/* && rmdir out 17382 cd .. 17383 rmdir conftest 17384 $rm conftest* 17385 17386fi 17387{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17388$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17389 17390 17391hard_links="nottested" 17392if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17393 # do not overwrite the value of need_locks provided by the user 17394 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17395$as_echo_n "checking if we can lock with hard links... " >&6; } 17396 hard_links=yes 17397 $rm conftest* 17398 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17399 touch conftest.a 17400 ln conftest.a conftest.b 2>&5 || hard_links=no 17401 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17402 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17403$as_echo "$hard_links" >&6; } 17404 if test "$hard_links" = no; then 17405 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17406$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17407 need_locks=warn 17408 fi 17409else 17410 need_locks=no 17411fi 17412 17413{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17414$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17415 17416 runpath_var= 17417 allow_undefined_flag_GCJ= 17418 enable_shared_with_static_runtimes_GCJ=no 17419 archive_cmds_GCJ= 17420 archive_expsym_cmds_GCJ= 17421 old_archive_From_new_cmds_GCJ= 17422 old_archive_from_expsyms_cmds_GCJ= 17423 export_dynamic_flag_spec_GCJ= 17424 whole_archive_flag_spec_GCJ= 17425 thread_safe_flag_spec_GCJ= 17426 hardcode_libdir_flag_spec_GCJ= 17427 hardcode_libdir_flag_spec_ld_GCJ= 17428 hardcode_libdir_separator_GCJ= 17429 hardcode_direct_GCJ=no 17430 hardcode_minus_L_GCJ=no 17431 hardcode_shlibpath_var_GCJ=unsupported 17432 link_all_deplibs_GCJ=unknown 17433 hardcode_automatic_GCJ=no 17434 module_cmds_GCJ= 17435 module_expsym_cmds_GCJ= 17436 always_export_symbols_GCJ=no 17437 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17438 # include_expsyms should be a list of space-separated symbols to be *always* 17439 # included in the symbol list 17440 include_expsyms_GCJ= 17441 # exclude_expsyms can be an extended regexp of symbols to exclude 17442 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17443 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17444 # as well as any symbol that contains `d'. 17445 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17446 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17447 # platforms (ab)use it in PIC code, but their linkers get confused if 17448 # the symbol is explicitly referenced. Since portable code cannot 17449 # rely on this symbol name, it's probably fine to never include it in 17450 # preloaded symbol tables. 17451 # Exclude shared library initialization/finalization symbols. 17452 extract_expsyms_cmds= 17453 # Just being paranoid about ensuring that cc_basename is set. 17454 for cc_temp in $compiler""; do 17455 case $cc_temp in 17456 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17457 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17458 \-*) ;; 17459 *) break;; 17460 esac 17461done 17462cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17463 17464 case $host_os in 17465 cygwin* | mingw* | pw32*) 17466 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17467 # When not using gcc, we currently assume that we are using 17468 # Microsoft Visual C++. 17469 if test "$GCC" != yes; then 17470 with_gnu_ld=no 17471 fi 17472 ;; 17473 interix*) 17474 # we just hope/assume this is gcc and not c89 (= MSVC++) 17475 with_gnu_ld=yes 17476 ;; 17477 openbsd*) 17478 with_gnu_ld=no 17479 ;; 17480 esac 17481 17482 ld_shlibs_GCJ=yes 17483 if test "$with_gnu_ld" = yes; then 17484 # If archive_cmds runs LD, not CC, wlarc should be empty 17485 wlarc='${wl}' 17486 17487 # Set some defaults for GNU ld with shared library support. These 17488 # are reset later if shared libraries are not supported. Putting them 17489 # here allows them to be overridden if necessary. 17490 runpath_var=LD_RUN_PATH 17491 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17492 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17493 # ancient GNU ld didn't support --whole-archive et. al. 17494 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17495 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17496 else 17497 whole_archive_flag_spec_GCJ= 17498 fi 17499 supports_anon_versioning=no 17500 case `$LD -v 2>/dev/null` in 17501 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17502 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17503 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17504 *\ 2.11.*) ;; # other 2.11 versions 17505 *) supports_anon_versioning=yes ;; 17506 esac 17507 17508 # See if GNU ld supports shared libraries. 17509 case $host_os in 17510 aix[3-9]*) 17511 # On AIX/PPC, the GNU linker is very broken 17512 if test "$host_cpu" != ia64; then 17513 ld_shlibs_GCJ=no 17514 cat <<EOF 1>&2 17515 17516*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17517*** to be unable to reliably create shared libraries on AIX. 17518*** Therefore, libtool is disabling shared libraries support. If you 17519*** really care for shared libraries, you may want to modify your PATH 17520*** so that a non-GNU linker is found, and then restart. 17521 17522EOF 17523 fi 17524 ;; 17525 17526 amigaos*) 17527 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)' 17528 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17529 hardcode_minus_L_GCJ=yes 17530 17531 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17532 # that the semantics of dynamic libraries on AmigaOS, at least up 17533 # to version 4, is to share data among multiple programs linked 17534 # with the same dynamic library. Since this doesn't match the 17535 # behavior of shared libraries on other platforms, we can't use 17536 # them. 17537 ld_shlibs_GCJ=no 17538 ;; 17539 17540 beos*) 17541 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17542 allow_undefined_flag_GCJ=unsupported 17543 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17544 # support --undefined. This deserves some investigation. FIXME 17545 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17546 else 17547 ld_shlibs_GCJ=no 17548 fi 17549 ;; 17550 17551 cygwin* | mingw* | pw32*) 17552 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17553 # as there is no search path for DLLs. 17554 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17555 allow_undefined_flag_GCJ=unsupported 17556 always_export_symbols_GCJ=no 17557 enable_shared_with_static_runtimes_GCJ=yes 17558 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17559 17560 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17561 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17562 # If the export-symbols file already is a .def file (1st line 17563 # is EXPORTS), use it as is; otherwise, prepend... 17564 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17565 cp $export_symbols $output_objdir/$soname.def; 17566 else 17567 echo EXPORTS > $output_objdir/$soname.def; 17568 cat $export_symbols >> $output_objdir/$soname.def; 17569 fi~ 17570 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17571 else 17572 ld_shlibs_GCJ=no 17573 fi 17574 ;; 17575 17576 interix[3-9]*) 17577 hardcode_direct_GCJ=no 17578 hardcode_shlibpath_var_GCJ=no 17579 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17580 export_dynamic_flag_spec_GCJ='${wl}-E' 17581 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17582 # Instead, shared libraries are loaded at an image base (0x10000000 by 17583 # default) and relocated if they conflict, which is a slow very memory 17584 # consuming and fragmenting process. To avoid this, we pick a random, 17585 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17586 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17587 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' 17588 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' 17589 ;; 17590 17591 gnu* | linux* | k*bsd*-gnu) 17592 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17593 tmp_addflag= 17594 case $cc_basename,$host_cpu in 17595 pgcc*) # Portland Group C compiler 17596 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' 17597 tmp_addflag=' $pic_flag' 17598 ;; 17599 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17600 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' 17601 tmp_addflag=' $pic_flag -Mnomain' ;; 17602 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17603 tmp_addflag=' -i_dynamic' ;; 17604 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17605 tmp_addflag=' -i_dynamic -nofor_main' ;; 17606 ifc* | ifort*) # Intel Fortran compiler 17607 tmp_addflag=' -nofor_main' ;; 17608 esac 17609 case `$CC -V 2>&1 | sed 5q` in 17610 *Sun\ C*) # Sun C 5.9 17611 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17612 tmp_sharedflag='-G' ;; 17613 *Sun\ F*) # Sun Fortran 8.3 17614 tmp_sharedflag='-G' ;; 17615 *) 17616 tmp_sharedflag='-shared' ;; 17617 esac 17618 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17619 17620 if test $supports_anon_versioning = yes; then 17621 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17622 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17623 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17624 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17625 fi 17626 else 17627 ld_shlibs_GCJ=no 17628 fi 17629 ;; 17630 17631 netbsd*) 17632 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17633 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17634 wlarc= 17635 else 17636 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17637 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17638 fi 17639 ;; 17640 17641 solaris*) 17642 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17643 ld_shlibs_GCJ=no 17644 cat <<EOF 1>&2 17645 17646*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17647*** create shared libraries on Solaris systems. Therefore, libtool 17648*** is disabling shared libraries support. We urge you to upgrade GNU 17649*** binutils to release 2.9.1 or newer. Another option is to modify 17650*** your PATH or compiler configuration so that the native linker is 17651*** used, and then restart. 17652 17653EOF 17654 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17655 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17656 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17657 else 17658 ld_shlibs_GCJ=no 17659 fi 17660 ;; 17661 17662 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17663 case `$LD -v 2>&1` in 17664 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17665 ld_shlibs_GCJ=no 17666 cat <<_LT_EOF 1>&2 17667 17668*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17669*** reliably create shared libraries on SCO systems. Therefore, libtool 17670*** is disabling shared libraries support. We urge you to upgrade GNU 17671*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17672*** your PATH or compiler configuration so that the native linker is 17673*** used, and then restart. 17674 17675_LT_EOF 17676 ;; 17677 *) 17678 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17679 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17680 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17681 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17682 else 17683 ld_shlibs_GCJ=no 17684 fi 17685 ;; 17686 esac 17687 ;; 17688 17689 sunos4*) 17690 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17691 wlarc= 17692 hardcode_direct_GCJ=yes 17693 hardcode_shlibpath_var_GCJ=no 17694 ;; 17695 17696 *) 17697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17698 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17699 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17700 else 17701 ld_shlibs_GCJ=no 17702 fi 17703 ;; 17704 esac 17705 17706 if test "$ld_shlibs_GCJ" = no; then 17707 runpath_var= 17708 hardcode_libdir_flag_spec_GCJ= 17709 export_dynamic_flag_spec_GCJ= 17710 whole_archive_flag_spec_GCJ= 17711 fi 17712 else 17713 # PORTME fill in a description of your system's linker (not GNU ld) 17714 case $host_os in 17715 aix3*) 17716 allow_undefined_flag_GCJ=unsupported 17717 always_export_symbols_GCJ=yes 17718 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' 17719 # Note: this linker hardcodes the directories in LIBPATH if there 17720 # are no directories specified by -L. 17721 hardcode_minus_L_GCJ=yes 17722 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17723 # Neither direct hardcoding nor static linking is supported with a 17724 # broken collect2. 17725 hardcode_direct_GCJ=unsupported 17726 fi 17727 ;; 17728 17729 aix[4-9]*) 17730 if test "$host_cpu" = ia64; then 17731 # On IA64, the linker does run time linking by default, so we don't 17732 # have to do anything special. 17733 aix_use_runtimelinking=no 17734 exp_sym_flag='-Bexport' 17735 no_entry_flag="" 17736 else 17737 # If we're using GNU nm, then we don't want the "-C" option. 17738 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17739 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17740 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' 17741 else 17742 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' 17743 fi 17744 aix_use_runtimelinking=no 17745 17746 # Test if we are trying to use run time linking or normal 17747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17748 # need to do runtime linking. 17749 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17750 for ld_flag in $LDFLAGS; do 17751 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17752 aix_use_runtimelinking=yes 17753 break 17754 fi 17755 done 17756 ;; 17757 esac 17758 17759 exp_sym_flag='-bexport' 17760 no_entry_flag='-bnoentry' 17761 fi 17762 17763 # When large executables or shared objects are built, AIX ld can 17764 # have problems creating the table of contents. If linking a library 17765 # or program results in "error TOC overflow" add -mminimal-toc to 17766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17768 17769 archive_cmds_GCJ='' 17770 hardcode_direct_GCJ=yes 17771 hardcode_libdir_separator_GCJ=':' 17772 link_all_deplibs_GCJ=yes 17773 17774 if test "$GCC" = yes; then 17775 case $host_os in aix4.[012]|aix4.[012].*) 17776 # We only want to do this on AIX 4.2 and lower, the check 17777 # below for broken collect2 doesn't work under 4.3+ 17778 collect2name=`${CC} -print-prog-name=collect2` 17779 if test -f "$collect2name" && \ 17780 strings "$collect2name" | grep resolve_lib_name >/dev/null 17781 then 17782 # We have reworked collect2 17783 : 17784 else 17785 # We have old collect2 17786 hardcode_direct_GCJ=unsupported 17787 # It fails to find uninstalled libraries when the uninstalled 17788 # path is not listed in the libpath. Setting hardcode_minus_L 17789 # to unsupported forces relinking 17790 hardcode_minus_L_GCJ=yes 17791 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17792 hardcode_libdir_separator_GCJ= 17793 fi 17794 ;; 17795 esac 17796 shared_flag='-shared' 17797 if test "$aix_use_runtimelinking" = yes; then 17798 shared_flag="$shared_flag "'${wl}-G' 17799 fi 17800 else 17801 # not using gcc 17802 if test "$host_cpu" = ia64; then 17803 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17804 # chokes on -Wl,-G. The following line is correct: 17805 shared_flag='-G' 17806 else 17807 if test "$aix_use_runtimelinking" = yes; then 17808 shared_flag='${wl}-G' 17809 else 17810 shared_flag='${wl}-bM:SRE' 17811 fi 17812 fi 17813 fi 17814 17815 # It seems that -bexpall does not export symbols beginning with 17816 # underscore (_), so it is better to generate a list of symbols to export. 17817 always_export_symbols_GCJ=yes 17818 if test "$aix_use_runtimelinking" = yes; then 17819 # Warning - without using the other runtime loading flags (-brtl), 17820 # -berok will link without error, but may produce a broken library. 17821 allow_undefined_flag_GCJ='-berok' 17822 # Determine the default libpath from the value encoded in an empty executable. 17823 cat >conftest.$ac_ext <<_ACEOF 17824/* confdefs.h. */ 17825_ACEOF 17826cat confdefs.h >>conftest.$ac_ext 17827cat >>conftest.$ac_ext <<_ACEOF 17828/* end confdefs.h. */ 17829 17830int 17831main () 17832{ 17833 17834 ; 17835 return 0; 17836} 17837_ACEOF 17838rm -f conftest.$ac_objext conftest$ac_exeext 17839if { (ac_try="$ac_link" 17840case "(($ac_try" in 17841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17842 *) ac_try_echo=$ac_try;; 17843esac 17844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17845$as_echo "$ac_try_echo") >&5 17846 (eval "$ac_link") 2>conftest.er1 17847 ac_status=$? 17848 grep -v '^ *+' conftest.er1 >conftest.err 17849 rm -f conftest.er1 17850 cat conftest.err >&5 17851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17852 (exit $ac_status); } && { 17853 test -z "$ac_c_werror_flag" || 17854 test ! -s conftest.err 17855 } && test -s conftest$ac_exeext && { 17856 test "$cross_compiling" = yes || 17857 $as_test_x conftest$ac_exeext 17858 }; then 17859 17860lt_aix_libpath_sed=' 17861 /Import File Strings/,/^$/ { 17862 /^0/ { 17863 s/^0 *\(.*\)$/\1/ 17864 p 17865 } 17866 }' 17867aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17868# Check for a 64-bit object if we didn't find anything. 17869if test -z "$aix_libpath"; then 17870 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17871fi 17872else 17873 $as_echo "$as_me: failed program was:" >&5 17874sed 's/^/| /' conftest.$ac_ext >&5 17875 17876 17877fi 17878 17879rm -rf conftest.dSYM 17880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17881 conftest$ac_exeext conftest.$ac_ext 17882if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17883 17884 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17885 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" 17886 else 17887 if test "$host_cpu" = ia64; then 17888 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17889 allow_undefined_flag_GCJ="-z nodefs" 17890 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" 17891 else 17892 # Determine the default libpath from the value encoded in an empty executable. 17893 cat >conftest.$ac_ext <<_ACEOF 17894/* confdefs.h. */ 17895_ACEOF 17896cat confdefs.h >>conftest.$ac_ext 17897cat >>conftest.$ac_ext <<_ACEOF 17898/* end confdefs.h. */ 17899 17900int 17901main () 17902{ 17903 17904 ; 17905 return 0; 17906} 17907_ACEOF 17908rm -f conftest.$ac_objext conftest$ac_exeext 17909if { (ac_try="$ac_link" 17910case "(($ac_try" in 17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17912 *) ac_try_echo=$ac_try;; 17913esac 17914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17915$as_echo "$ac_try_echo") >&5 17916 (eval "$ac_link") 2>conftest.er1 17917 ac_status=$? 17918 grep -v '^ *+' conftest.er1 >conftest.err 17919 rm -f conftest.er1 17920 cat conftest.err >&5 17921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17922 (exit $ac_status); } && { 17923 test -z "$ac_c_werror_flag" || 17924 test ! -s conftest.err 17925 } && test -s conftest$ac_exeext && { 17926 test "$cross_compiling" = yes || 17927 $as_test_x conftest$ac_exeext 17928 }; then 17929 17930lt_aix_libpath_sed=' 17931 /Import File Strings/,/^$/ { 17932 /^0/ { 17933 s/^0 *\(.*\)$/\1/ 17934 p 17935 } 17936 }' 17937aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17938# Check for a 64-bit object if we didn't find anything. 17939if test -z "$aix_libpath"; then 17940 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17941fi 17942else 17943 $as_echo "$as_me: failed program was:" >&5 17944sed 's/^/| /' conftest.$ac_ext >&5 17945 17946 17947fi 17948 17949rm -rf conftest.dSYM 17950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17951 conftest$ac_exeext conftest.$ac_ext 17952if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17953 17954 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17955 # Warning - without using the other run time loading flags, 17956 # -berok will link without error, but may produce a broken library. 17957 no_undefined_flag_GCJ=' ${wl}-bernotok' 17958 allow_undefined_flag_GCJ=' ${wl}-berok' 17959 # Exported symbols can be pulled into shared objects from archives 17960 whole_archive_flag_spec_GCJ='$convenience' 17961 archive_cmds_need_lc_GCJ=yes 17962 # This is similar to how AIX traditionally builds its shared libraries. 17963 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' 17964 fi 17965 fi 17966 ;; 17967 17968 amigaos*) 17969 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)' 17970 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17971 hardcode_minus_L_GCJ=yes 17972 # see comment about different semantics on the GNU ld section 17973 ld_shlibs_GCJ=no 17974 ;; 17975 17976 bsdi[45]*) 17977 export_dynamic_flag_spec_GCJ=-rdynamic 17978 ;; 17979 17980 cygwin* | mingw* | pw32*) 17981 # When not using gcc, we currently assume that we are using 17982 # Microsoft Visual C++. 17983 # hardcode_libdir_flag_spec is actually meaningless, as there is 17984 # no search path for DLLs. 17985 hardcode_libdir_flag_spec_GCJ=' ' 17986 allow_undefined_flag_GCJ=unsupported 17987 # Tell ltmain to make .lib files, not .a files. 17988 libext=lib 17989 # Tell ltmain to make .dll files, not .so files. 17990 shrext_cmds=".dll" 17991 # FIXME: Setting linknames here is a bad hack. 17992 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17993 # The linker will automatically build a .lib file if we build a DLL. 17994 old_archive_From_new_cmds_GCJ='true' 17995 # FIXME: Should let the user specify the lib program. 17996 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17997 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17998 enable_shared_with_static_runtimes_GCJ=yes 17999 ;; 18000 18001 darwin* | rhapsody*) 18002 case $host_os in 18003 rhapsody* | darwin1.[012]) 18004 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18005 ;; 18006 *) # Darwin 1.3 on 18007 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18008 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18009 else 18010 case ${MACOSX_DEPLOYMENT_TARGET} in 18011 10.[012]) 18012 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18013 ;; 18014 10.*) 18015 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18016 ;; 18017 esac 18018 fi 18019 ;; 18020 esac 18021 archive_cmds_need_lc_GCJ=no 18022 hardcode_direct_GCJ=no 18023 hardcode_automatic_GCJ=yes 18024 hardcode_shlibpath_var_GCJ=unsupported 18025 whole_archive_flag_spec_GCJ='' 18026 link_all_deplibs_GCJ=yes 18027 if test "$GCC" = yes ; then 18028 output_verbose_link_cmd='echo' 18029 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 18030 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18031 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 18032 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 18033 else 18034 case $cc_basename in 18035 xlc*) 18036 output_verbose_link_cmd='echo' 18037 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 18038 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18039 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18040 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18041 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}' 18042 ;; 18043 *) 18044 ld_shlibs_GCJ=no 18045 ;; 18046 esac 18047 fi 18048 ;; 18049 18050 dgux*) 18051 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18052 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18053 hardcode_shlibpath_var_GCJ=no 18054 ;; 18055 18056 freebsd1*) 18057 ld_shlibs_GCJ=no 18058 ;; 18059 18060 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18061 # support. Future versions do this automatically, but an explicit c++rt0.o 18062 # does not break anything, and helps significantly (at the cost of a little 18063 # extra space). 18064 freebsd2.2*) 18065 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18066 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18067 hardcode_direct_GCJ=yes 18068 hardcode_shlibpath_var_GCJ=no 18069 ;; 18070 18071 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18072 freebsd2*) 18073 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18074 hardcode_direct_GCJ=yes 18075 hardcode_minus_L_GCJ=yes 18076 hardcode_shlibpath_var_GCJ=no 18077 ;; 18078 18079 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18080 freebsd* | dragonfly*) 18081 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18082 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18083 hardcode_direct_GCJ=yes 18084 hardcode_shlibpath_var_GCJ=no 18085 ;; 18086 18087 hpux9*) 18088 if test "$GCC" = yes; then 18089 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' 18090 else 18091 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' 18092 fi 18093 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18094 hardcode_libdir_separator_GCJ=: 18095 hardcode_direct_GCJ=yes 18096 18097 # hardcode_minus_L: Not really in the search PATH, 18098 # but as the default location of the library. 18099 hardcode_minus_L_GCJ=yes 18100 export_dynamic_flag_spec_GCJ='${wl}-E' 18101 ;; 18102 18103 hpux10*) 18104 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18105 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18106 else 18107 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18108 fi 18109 if test "$with_gnu_ld" = no; then 18110 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18111 hardcode_libdir_separator_GCJ=: 18112 18113 hardcode_direct_GCJ=yes 18114 export_dynamic_flag_spec_GCJ='${wl}-E' 18115 18116 # hardcode_minus_L: Not really in the search PATH, 18117 # but as the default location of the library. 18118 hardcode_minus_L_GCJ=yes 18119 fi 18120 ;; 18121 18122 hpux11*) 18123 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18124 case $host_cpu in 18125 hppa*64*) 18126 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18127 ;; 18128 ia64*) 18129 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18130 ;; 18131 *) 18132 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18133 ;; 18134 esac 18135 else 18136 case $host_cpu in 18137 hppa*64*) 18138 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18139 ;; 18140 ia64*) 18141 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18142 ;; 18143 *) 18144 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18145 ;; 18146 esac 18147 fi 18148 if test "$with_gnu_ld" = no; then 18149 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18150 hardcode_libdir_separator_GCJ=: 18151 18152 case $host_cpu in 18153 hppa*64*|ia64*) 18154 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18155 hardcode_direct_GCJ=no 18156 hardcode_shlibpath_var_GCJ=no 18157 ;; 18158 *) 18159 hardcode_direct_GCJ=yes 18160 export_dynamic_flag_spec_GCJ='${wl}-E' 18161 18162 # hardcode_minus_L: Not really in the search PATH, 18163 # but as the default location of the library. 18164 hardcode_minus_L_GCJ=yes 18165 ;; 18166 esac 18167 fi 18168 ;; 18169 18170 irix5* | irix6* | nonstopux*) 18171 if test "$GCC" = yes; then 18172 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' 18173 else 18174 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' 18175 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18176 fi 18177 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18178 hardcode_libdir_separator_GCJ=: 18179 link_all_deplibs_GCJ=yes 18180 ;; 18181 18182 netbsd*) 18183 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18184 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18185 else 18186 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18187 fi 18188 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18189 hardcode_direct_GCJ=yes 18190 hardcode_shlibpath_var_GCJ=no 18191 ;; 18192 18193 newsos6) 18194 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18195 hardcode_direct_GCJ=yes 18196 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18197 hardcode_libdir_separator_GCJ=: 18198 hardcode_shlibpath_var_GCJ=no 18199 ;; 18200 18201 openbsd*) 18202 if test -f /usr/libexec/ld.so; then 18203 hardcode_direct_GCJ=yes 18204 hardcode_shlibpath_var_GCJ=no 18205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18206 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18207 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18208 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18209 export_dynamic_flag_spec_GCJ='${wl}-E' 18210 else 18211 case $host_os in 18212 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18213 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18214 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18215 ;; 18216 *) 18217 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18218 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18219 ;; 18220 esac 18221 fi 18222 else 18223 ld_shlibs_GCJ=no 18224 fi 18225 ;; 18226 18227 os2*) 18228 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18229 hardcode_minus_L_GCJ=yes 18230 allow_undefined_flag_GCJ=unsupported 18231 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' 18232 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18233 ;; 18234 18235 osf3*) 18236 if test "$GCC" = yes; then 18237 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18238 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' 18239 else 18240 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18241 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' 18242 fi 18243 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18244 hardcode_libdir_separator_GCJ=: 18245 ;; 18246 18247 osf4* | osf5*) # as osf3* with the addition of -msym flag 18248 if test "$GCC" = yes; then 18249 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18250 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' 18251 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18252 else 18253 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18254 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' 18255 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~ 18256 $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' 18257 18258 # Both c and cxx compiler support -rpath directly 18259 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18260 fi 18261 hardcode_libdir_separator_GCJ=: 18262 ;; 18263 18264 solaris*) 18265 no_undefined_flag_GCJ=' -z text' 18266 if test "$GCC" = yes; then 18267 wlarc='${wl}' 18268 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18269 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18270 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18271 else 18272 wlarc='' 18273 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18274 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18275 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18276 fi 18277 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18278 hardcode_shlibpath_var_GCJ=no 18279 case $host_os in 18280 solaris2.[0-5] | solaris2.[0-5].*) ;; 18281 *) 18282 # The compiler driver will combine and reorder linker options, 18283 # but understands `-z linker_flag'. GCC discards it without `$wl', 18284 # but is careful enough not to reorder. 18285 # Supported since Solaris 2.6 (maybe 2.5.1?) 18286 if test "$GCC" = yes; then 18287 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18288 else 18289 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18290 fi 18291 ;; 18292 esac 18293 link_all_deplibs_GCJ=yes 18294 ;; 18295 18296 sunos4*) 18297 if test "x$host_vendor" = xsequent; then 18298 # Use $CC to link under sequent, because it throws in some extra .o 18299 # files that make .init and .fini sections work. 18300 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18301 else 18302 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18303 fi 18304 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18305 hardcode_direct_GCJ=yes 18306 hardcode_minus_L_GCJ=yes 18307 hardcode_shlibpath_var_GCJ=no 18308 ;; 18309 18310 sysv4) 18311 case $host_vendor in 18312 sni) 18313 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18314 hardcode_direct_GCJ=yes # is this really true??? 18315 ;; 18316 siemens) 18317 ## LD is ld it makes a PLAMLIB 18318 ## CC just makes a GrossModule. 18319 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18320 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18321 hardcode_direct_GCJ=no 18322 ;; 18323 motorola) 18324 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18325 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18326 ;; 18327 esac 18328 runpath_var='LD_RUN_PATH' 18329 hardcode_shlibpath_var_GCJ=no 18330 ;; 18331 18332 sysv4.3*) 18333 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18334 hardcode_shlibpath_var_GCJ=no 18335 export_dynamic_flag_spec_GCJ='-Bexport' 18336 ;; 18337 18338 sysv4*MP*) 18339 if test -d /usr/nec; then 18340 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18341 hardcode_shlibpath_var_GCJ=no 18342 runpath_var=LD_RUN_PATH 18343 hardcode_runpath_var=yes 18344 ld_shlibs_GCJ=yes 18345 fi 18346 ;; 18347 18348 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18349 no_undefined_flag_GCJ='${wl}-z,text' 18350 archive_cmds_need_lc_GCJ=no 18351 hardcode_shlibpath_var_GCJ=no 18352 runpath_var='LD_RUN_PATH' 18353 18354 if test "$GCC" = yes; then 18355 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18356 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18357 else 18358 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18359 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18360 fi 18361 ;; 18362 18363 sysv5* | sco3.2v5* | sco5v6*) 18364 # Note: We can NOT use -z defs as we might desire, because we do not 18365 # link with -lc, and that would cause any symbols used from libc to 18366 # always be unresolved, which means just about no library would 18367 # ever link correctly. If we're not using GNU ld we use -z text 18368 # though, which does catch some bad symbols but isn't as heavy-handed 18369 # as -z defs. 18370 no_undefined_flag_GCJ='${wl}-z,text' 18371 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18372 archive_cmds_need_lc_GCJ=no 18373 hardcode_shlibpath_var_GCJ=no 18374 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18375 hardcode_libdir_separator_GCJ=':' 18376 link_all_deplibs_GCJ=yes 18377 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18378 runpath_var='LD_RUN_PATH' 18379 18380 if test "$GCC" = yes; then 18381 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18382 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18383 else 18384 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18385 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18386 fi 18387 ;; 18388 18389 uts4*) 18390 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18391 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18392 hardcode_shlibpath_var_GCJ=no 18393 ;; 18394 18395 *) 18396 ld_shlibs_GCJ=no 18397 ;; 18398 esac 18399 fi 18400 18401{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18402$as_echo "$ld_shlibs_GCJ" >&6; } 18403test "$ld_shlibs_GCJ" = no && can_build_shared=no 18404 18405# 18406# Do we need to explicitly link libc? 18407# 18408case "x$archive_cmds_need_lc_GCJ" in 18409x|xyes) 18410 # Assume -lc should be added 18411 archive_cmds_need_lc_GCJ=yes 18412 18413 if test "$enable_shared" = yes && test "$GCC" = yes; then 18414 case $archive_cmds_GCJ in 18415 *'~'*) 18416 # FIXME: we may have to deal with multi-command sequences. 18417 ;; 18418 '$CC '*) 18419 # Test whether the compiler implicitly links with -lc since on some 18420 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18421 # to ld, don't add -lc before -lgcc. 18422 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18423$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18424 $rm conftest* 18425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18426 18427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18428 (eval $ac_compile) 2>&5 18429 ac_status=$? 18430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18431 (exit $ac_status); } 2>conftest.err; then 18432 soname=conftest 18433 lib=conftest 18434 libobjs=conftest.$ac_objext 18435 deplibs= 18436 wl=$lt_prog_compiler_wl_GCJ 18437 pic_flag=$lt_prog_compiler_pic_GCJ 18438 compiler_flags=-v 18439 linker_flags=-v 18440 verstring= 18441 output_objdir=. 18442 libname=conftest 18443 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18444 allow_undefined_flag_GCJ= 18445 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18446 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18447 ac_status=$? 18448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18449 (exit $ac_status); } 18450 then 18451 archive_cmds_need_lc_GCJ=no 18452 else 18453 archive_cmds_need_lc_GCJ=yes 18454 fi 18455 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18456 else 18457 cat conftest.err 1>&5 18458 fi 18459 $rm conftest* 18460 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18461$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18462 ;; 18463 esac 18464 fi 18465 ;; 18466esac 18467 18468{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18469$as_echo_n "checking dynamic linker characteristics... " >&6; } 18470library_names_spec= 18471libname_spec='lib$name' 18472soname_spec= 18473shrext_cmds=".so" 18474postinstall_cmds= 18475postuninstall_cmds= 18476finish_cmds= 18477finish_eval= 18478shlibpath_var= 18479shlibpath_overrides_runpath=unknown 18480version_type=none 18481dynamic_linker="$host_os ld.so" 18482sys_lib_dlsearch_path_spec="/lib /usr/lib" 18483 18484need_lib_prefix=unknown 18485hardcode_into_libs=no 18486 18487# when you set need_version to no, make sure it does not cause -set_version 18488# flags to be left without arguments 18489need_version=unknown 18490 18491case $host_os in 18492aix3*) 18493 version_type=linux 18494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18495 shlibpath_var=LIBPATH 18496 18497 # AIX 3 has no versioning support, so we append a major version to the name. 18498 soname_spec='${libname}${release}${shared_ext}$major' 18499 ;; 18500 18501aix[4-9]*) 18502 version_type=linux 18503 need_lib_prefix=no 18504 need_version=no 18505 hardcode_into_libs=yes 18506 if test "$host_cpu" = ia64; then 18507 # AIX 5 supports IA64 18508 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18509 shlibpath_var=LD_LIBRARY_PATH 18510 else 18511 # With GCC up to 2.95.x, collect2 would create an import file 18512 # for dependence libraries. The import file would start with 18513 # the line `#! .'. This would cause the generated library to 18514 # depend on `.', always an invalid library. This was fixed in 18515 # development snapshots of GCC prior to 3.0. 18516 case $host_os in 18517 aix4 | aix4.[01] | aix4.[01].*) 18518 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18519 echo ' yes ' 18520 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18521 : 18522 else 18523 can_build_shared=no 18524 fi 18525 ;; 18526 esac 18527 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18528 # soname into executable. Probably we can add versioning support to 18529 # collect2, so additional links can be useful in future. 18530 if test "$aix_use_runtimelinking" = yes; then 18531 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18532 # instead of lib<name>.a to let people know that these are not 18533 # typical AIX shared libraries. 18534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18535 else 18536 # We preserve .a as extension for shared libraries through AIX4.2 18537 # and later when we are not doing run time linking. 18538 library_names_spec='${libname}${release}.a $libname.a' 18539 soname_spec='${libname}${release}${shared_ext}$major' 18540 fi 18541 shlibpath_var=LIBPATH 18542 fi 18543 ;; 18544 18545amigaos*) 18546 library_names_spec='$libname.ixlibrary $libname.a' 18547 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18548 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' 18549 ;; 18550 18551beos*) 18552 library_names_spec='${libname}${shared_ext}' 18553 dynamic_linker="$host_os ld.so" 18554 shlibpath_var=LIBRARY_PATH 18555 ;; 18556 18557bsdi[45]*) 18558 version_type=linux 18559 need_version=no 18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18561 soname_spec='${libname}${release}${shared_ext}$major' 18562 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18563 shlibpath_var=LD_LIBRARY_PATH 18564 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18565 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18566 # the default ld.so.conf also contains /usr/contrib/lib and 18567 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18568 # libtool to hard-code these into programs 18569 ;; 18570 18571cygwin* | mingw* | pw32*) 18572 version_type=windows 18573 shrext_cmds=".dll" 18574 need_version=no 18575 need_lib_prefix=no 18576 18577 case $GCC,$host_os in 18578 yes,cygwin* | yes,mingw* | yes,pw32*) 18579 library_names_spec='$libname.dll.a' 18580 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18581 postinstall_cmds='base_file=`basename \${file}`~ 18582 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18583 dldir=$destdir/`dirname \$dlpath`~ 18584 test -d \$dldir || mkdir -p \$dldir~ 18585 $install_prog $dir/$dlname \$dldir/$dlname~ 18586 chmod a+x \$dldir/$dlname' 18587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18588 dlpath=$dir/\$dldll~ 18589 $rm \$dlpath' 18590 shlibpath_overrides_runpath=yes 18591 18592 case $host_os in 18593 cygwin*) 18594 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18595 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18596 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18597 ;; 18598 mingw*) 18599 # MinGW DLLs use traditional 'lib' prefix 18600 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18601 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18602 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18603 # It is most probably a Windows format PATH printed by 18604 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18605 # path with ; separators, and with drive letters. We can handle the 18606 # drive letters (cygwin fileutils understands them), so leave them, 18607 # especially as we might pass files found there to a mingw objdump, 18608 # which wouldn't understand a cygwinified path. Ahh. 18609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18610 else 18611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18612 fi 18613 ;; 18614 pw32*) 18615 # pw32 DLLs use 'pw' prefix rather than 'lib' 18616 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18617 ;; 18618 esac 18619 ;; 18620 18621 *) 18622 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18623 ;; 18624 esac 18625 dynamic_linker='Win32 ld.exe' 18626 # FIXME: first we should search . and the directory the executable is in 18627 shlibpath_var=PATH 18628 ;; 18629 18630darwin* | rhapsody*) 18631 dynamic_linker="$host_os dyld" 18632 version_type=darwin 18633 need_lib_prefix=no 18634 need_version=no 18635 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18636 soname_spec='${libname}${release}${major}$shared_ext' 18637 shlibpath_overrides_runpath=yes 18638 shlibpath_var=DYLD_LIBRARY_PATH 18639 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18640 18641 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18642 ;; 18643 18644dgux*) 18645 version_type=linux 18646 need_lib_prefix=no 18647 need_version=no 18648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18649 soname_spec='${libname}${release}${shared_ext}$major' 18650 shlibpath_var=LD_LIBRARY_PATH 18651 ;; 18652 18653freebsd1*) 18654 dynamic_linker=no 18655 ;; 18656 18657freebsd* | dragonfly*) 18658 # DragonFly does not have aout. When/if they implement a new 18659 # versioning mechanism, adjust this. 18660 if test -x /usr/bin/objformat; then 18661 objformat=`/usr/bin/objformat` 18662 else 18663 case $host_os in 18664 freebsd[123]*) objformat=aout ;; 18665 *) objformat=elf ;; 18666 esac 18667 fi 18668 version_type=freebsd-$objformat 18669 case $version_type in 18670 freebsd-elf*) 18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18672 need_version=no 18673 need_lib_prefix=no 18674 ;; 18675 freebsd-*) 18676 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18677 need_version=yes 18678 ;; 18679 esac 18680 shlibpath_var=LD_LIBRARY_PATH 18681 case $host_os in 18682 freebsd2*) 18683 shlibpath_overrides_runpath=yes 18684 ;; 18685 freebsd3.[01]* | freebsdelf3.[01]*) 18686 shlibpath_overrides_runpath=yes 18687 hardcode_into_libs=yes 18688 ;; 18689 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18690 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18691 shlibpath_overrides_runpath=no 18692 hardcode_into_libs=yes 18693 ;; 18694 *) # from 4.6 on, and DragonFly 18695 shlibpath_overrides_runpath=yes 18696 hardcode_into_libs=yes 18697 ;; 18698 esac 18699 ;; 18700 18701gnu*) 18702 version_type=linux 18703 need_lib_prefix=no 18704 need_version=no 18705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18706 soname_spec='${libname}${release}${shared_ext}$major' 18707 shlibpath_var=LD_LIBRARY_PATH 18708 hardcode_into_libs=yes 18709 ;; 18710 18711hpux9* | hpux10* | hpux11*) 18712 # Give a soname corresponding to the major version so that dld.sl refuses to 18713 # link against other versions. 18714 version_type=sunos 18715 need_lib_prefix=no 18716 need_version=no 18717 case $host_cpu in 18718 ia64*) 18719 shrext_cmds='.so' 18720 hardcode_into_libs=yes 18721 dynamic_linker="$host_os dld.so" 18722 shlibpath_var=LD_LIBRARY_PATH 18723 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18725 soname_spec='${libname}${release}${shared_ext}$major' 18726 if test "X$HPUX_IA64_MODE" = X32; then 18727 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18728 else 18729 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18730 fi 18731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18732 ;; 18733 hppa*64*) 18734 shrext_cmds='.sl' 18735 hardcode_into_libs=yes 18736 dynamic_linker="$host_os dld.sl" 18737 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18738 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18740 soname_spec='${libname}${release}${shared_ext}$major' 18741 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18742 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18743 ;; 18744 *) 18745 shrext_cmds='.sl' 18746 dynamic_linker="$host_os dld.sl" 18747 shlibpath_var=SHLIB_PATH 18748 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18750 soname_spec='${libname}${release}${shared_ext}$major' 18751 ;; 18752 esac 18753 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18754 postinstall_cmds='chmod 555 $lib' 18755 ;; 18756 18757interix[3-9]*) 18758 version_type=linux 18759 need_lib_prefix=no 18760 need_version=no 18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18762 soname_spec='${libname}${release}${shared_ext}$major' 18763 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18764 shlibpath_var=LD_LIBRARY_PATH 18765 shlibpath_overrides_runpath=no 18766 hardcode_into_libs=yes 18767 ;; 18768 18769irix5* | irix6* | nonstopux*) 18770 case $host_os in 18771 nonstopux*) version_type=nonstopux ;; 18772 *) 18773 if test "$lt_cv_prog_gnu_ld" = yes; then 18774 version_type=linux 18775 else 18776 version_type=irix 18777 fi ;; 18778 esac 18779 need_lib_prefix=no 18780 need_version=no 18781 soname_spec='${libname}${release}${shared_ext}$major' 18782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18783 case $host_os in 18784 irix5* | nonstopux*) 18785 libsuff= shlibsuff= 18786 ;; 18787 *) 18788 case $LD in # libtool.m4 will add one of these switches to LD 18789 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18790 libsuff= shlibsuff= libmagic=32-bit;; 18791 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18792 libsuff=32 shlibsuff=N32 libmagic=N32;; 18793 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18794 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18795 *) libsuff= shlibsuff= libmagic=never-match;; 18796 esac 18797 ;; 18798 esac 18799 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18800 shlibpath_overrides_runpath=no 18801 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18802 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18803 hardcode_into_libs=yes 18804 ;; 18805 18806# No shared lib support for Linux oldld, aout, or coff. 18807linux*oldld* | linux*aout* | linux*coff*) 18808 dynamic_linker=no 18809 ;; 18810 18811# This must be Linux ELF. 18812linux* | k*bsd*-gnu) 18813 version_type=linux 18814 need_lib_prefix=no 18815 need_version=no 18816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18817 soname_spec='${libname}${release}${shared_ext}$major' 18818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18819 shlibpath_var=LD_LIBRARY_PATH 18820 shlibpath_overrides_runpath=no 18821 # This implies no fast_install, which is unacceptable. 18822 # Some rework will be needed to allow for fast_install 18823 # before this can be enabled. 18824 hardcode_into_libs=yes 18825 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18826 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18827 18828 # Append ld.so.conf contents to the search path 18829 if test -f /etc/ld.so.conf; then 18830 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18831 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18832 fi 18833 18834 # We used to test for /lib/ld.so.1 and disable shared libraries on 18835 # powerpc, because MkLinux only supported shared libraries with the 18836 # GNU dynamic linker. Since this was broken with cross compilers, 18837 # most powerpc-linux boxes support dynamic linking these days and 18838 # people can always --disable-shared, the test was removed, and we 18839 # assume the GNU/Linux dynamic linker is in use. 18840 dynamic_linker='GNU/Linux ld.so' 18841 ;; 18842 18843netbsd*) 18844 version_type=sunos 18845 need_lib_prefix=no 18846 need_version=no 18847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18850 dynamic_linker='NetBSD (a.out) ld.so' 18851 else 18852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18853 soname_spec='${libname}${release}${shared_ext}$major' 18854 dynamic_linker='NetBSD ld.elf_so' 18855 fi 18856 shlibpath_var=LD_LIBRARY_PATH 18857 shlibpath_overrides_runpath=yes 18858 hardcode_into_libs=yes 18859 ;; 18860 18861newsos6) 18862 version_type=linux 18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18864 shlibpath_var=LD_LIBRARY_PATH 18865 shlibpath_overrides_runpath=yes 18866 ;; 18867 18868nto-qnx*) 18869 version_type=linux 18870 need_lib_prefix=no 18871 need_version=no 18872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18873 soname_spec='${libname}${release}${shared_ext}$major' 18874 shlibpath_var=LD_LIBRARY_PATH 18875 shlibpath_overrides_runpath=yes 18876 ;; 18877 18878openbsd*) 18879 version_type=sunos 18880 sys_lib_dlsearch_path_spec="/usr/lib" 18881 need_lib_prefix=no 18882 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18883 case $host_os in 18884 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18885 *) need_version=no ;; 18886 esac 18887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18889 shlibpath_var=LD_LIBRARY_PATH 18890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18891 case $host_os in 18892 openbsd2.[89] | openbsd2.[89].*) 18893 shlibpath_overrides_runpath=no 18894 ;; 18895 *) 18896 shlibpath_overrides_runpath=yes 18897 ;; 18898 esac 18899 else 18900 shlibpath_overrides_runpath=yes 18901 fi 18902 ;; 18903 18904os2*) 18905 libname_spec='$name' 18906 shrext_cmds=".dll" 18907 need_lib_prefix=no 18908 library_names_spec='$libname${shared_ext} $libname.a' 18909 dynamic_linker='OS/2 ld.exe' 18910 shlibpath_var=LIBPATH 18911 ;; 18912 18913osf3* | osf4* | osf5*) 18914 version_type=osf 18915 need_lib_prefix=no 18916 need_version=no 18917 soname_spec='${libname}${release}${shared_ext}$major' 18918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18919 shlibpath_var=LD_LIBRARY_PATH 18920 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18921 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18922 ;; 18923 18924rdos*) 18925 dynamic_linker=no 18926 ;; 18927 18928solaris*) 18929 version_type=linux 18930 need_lib_prefix=no 18931 need_version=no 18932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18933 soname_spec='${libname}${release}${shared_ext}$major' 18934 shlibpath_var=LD_LIBRARY_PATH 18935 shlibpath_overrides_runpath=yes 18936 hardcode_into_libs=yes 18937 # ldd complains unless libraries are executable 18938 postinstall_cmds='chmod +x $lib' 18939 ;; 18940 18941sunos4*) 18942 version_type=sunos 18943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18944 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18945 shlibpath_var=LD_LIBRARY_PATH 18946 shlibpath_overrides_runpath=yes 18947 if test "$with_gnu_ld" = yes; then 18948 need_lib_prefix=no 18949 fi 18950 need_version=yes 18951 ;; 18952 18953sysv4 | sysv4.3*) 18954 version_type=linux 18955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18956 soname_spec='${libname}${release}${shared_ext}$major' 18957 shlibpath_var=LD_LIBRARY_PATH 18958 case $host_vendor in 18959 sni) 18960 shlibpath_overrides_runpath=no 18961 need_lib_prefix=no 18962 export_dynamic_flag_spec='${wl}-Blargedynsym' 18963 runpath_var=LD_RUN_PATH 18964 ;; 18965 siemens) 18966 need_lib_prefix=no 18967 ;; 18968 motorola) 18969 need_lib_prefix=no 18970 need_version=no 18971 shlibpath_overrides_runpath=no 18972 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18973 ;; 18974 esac 18975 ;; 18976 18977sysv4*MP*) 18978 if test -d /usr/nec ;then 18979 version_type=linux 18980 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18981 soname_spec='$libname${shared_ext}.$major' 18982 shlibpath_var=LD_LIBRARY_PATH 18983 fi 18984 ;; 18985 18986sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18987 version_type=freebsd-elf 18988 need_lib_prefix=no 18989 need_version=no 18990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18991 soname_spec='${libname}${release}${shared_ext}$major' 18992 shlibpath_var=LD_LIBRARY_PATH 18993 hardcode_into_libs=yes 18994 if test "$with_gnu_ld" = yes; then 18995 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18996 shlibpath_overrides_runpath=no 18997 else 18998 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18999 shlibpath_overrides_runpath=yes 19000 case $host_os in 19001 sco3.2v5*) 19002 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19003 ;; 19004 esac 19005 fi 19006 sys_lib_dlsearch_path_spec='/usr/lib' 19007 ;; 19008 19009uts4*) 19010 version_type=linux 19011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19012 soname_spec='${libname}${release}${shared_ext}$major' 19013 shlibpath_var=LD_LIBRARY_PATH 19014 ;; 19015 19016*) 19017 dynamic_linker=no 19018 ;; 19019esac 19020{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19021$as_echo "$dynamic_linker" >&6; } 19022test "$dynamic_linker" = no && can_build_shared=no 19023 19024if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19025 $as_echo_n "(cached) " >&6 19026else 19027 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 19028fi 19029 19030sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19031if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19032 $as_echo_n "(cached) " >&6 19033else 19034 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 19035fi 19036 19037sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19038 19039variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19040if test "$GCC" = yes; then 19041 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19042fi 19043 19044{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19045$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19046hardcode_action_GCJ= 19047if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19048 test -n "$runpath_var_GCJ" || \ 19049 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19050 19051 # We can hardcode non-existant directories. 19052 if test "$hardcode_direct_GCJ" != no && 19053 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19054 # have to relink, otherwise we might link with an installed library 19055 # when we should be linking with a yet-to-be-installed one 19056 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19057 test "$hardcode_minus_L_GCJ" != no; then 19058 # Linking always hardcodes the temporary library directory. 19059 hardcode_action_GCJ=relink 19060 else 19061 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19062 hardcode_action_GCJ=immediate 19063 fi 19064else 19065 # We cannot hardcode anything, or else we can only hardcode existing 19066 # directories. 19067 hardcode_action_GCJ=unsupported 19068fi 19069{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19070$as_echo "$hardcode_action_GCJ" >&6; } 19071 19072if test "$hardcode_action_GCJ" = relink; then 19073 # Fast installation is not supported 19074 enable_fast_install=no 19075elif test "$shlibpath_overrides_runpath" = yes || 19076 test "$enable_shared" = no; then 19077 # Fast installation is not necessary 19078 enable_fast_install=needless 19079fi 19080 19081 19082# The else clause should only fire when bootstrapping the 19083# libtool distribution, otherwise you forgot to ship ltmain.sh 19084# with your package, and you will get complaints that there are 19085# no rules to generate ltmain.sh. 19086if test -f "$ltmain"; then 19087 # See if we are running on zsh, and set the options which allow our commands through 19088 # without removal of \ escapes. 19089 if test -n "${ZSH_VERSION+set}" ; then 19090 setopt NO_GLOB_SUBST 19091 fi 19092 # Now quote all the things that may contain metacharacters while being 19093 # careful not to overquote the AC_SUBSTed values. We take copies of the 19094 # variables and quote the copies for generation of the libtool script. 19095 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19096 SED SHELL STRIP \ 19097 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19098 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19099 deplibs_check_method reload_flag reload_cmds need_locks \ 19100 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19101 lt_cv_sys_global_symbol_to_c_name_address \ 19102 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19103 old_postinstall_cmds old_postuninstall_cmds \ 19104 compiler_GCJ \ 19105 CC_GCJ \ 19106 LD_GCJ \ 19107 lt_prog_compiler_wl_GCJ \ 19108 lt_prog_compiler_pic_GCJ \ 19109 lt_prog_compiler_static_GCJ \ 19110 lt_prog_compiler_no_builtin_flag_GCJ \ 19111 export_dynamic_flag_spec_GCJ \ 19112 thread_safe_flag_spec_GCJ \ 19113 whole_archive_flag_spec_GCJ \ 19114 enable_shared_with_static_runtimes_GCJ \ 19115 old_archive_cmds_GCJ \ 19116 old_archive_from_new_cmds_GCJ \ 19117 predep_objects_GCJ \ 19118 postdep_objects_GCJ \ 19119 predeps_GCJ \ 19120 postdeps_GCJ \ 19121 compiler_lib_search_path_GCJ \ 19122 compiler_lib_search_dirs_GCJ \ 19123 archive_cmds_GCJ \ 19124 archive_expsym_cmds_GCJ \ 19125 postinstall_cmds_GCJ \ 19126 postuninstall_cmds_GCJ \ 19127 old_archive_from_expsyms_cmds_GCJ \ 19128 allow_undefined_flag_GCJ \ 19129 no_undefined_flag_GCJ \ 19130 export_symbols_cmds_GCJ \ 19131 hardcode_libdir_flag_spec_GCJ \ 19132 hardcode_libdir_flag_spec_ld_GCJ \ 19133 hardcode_libdir_separator_GCJ \ 19134 hardcode_automatic_GCJ \ 19135 module_cmds_GCJ \ 19136 module_expsym_cmds_GCJ \ 19137 lt_cv_prog_compiler_c_o_GCJ \ 19138 fix_srcfile_path_GCJ \ 19139 exclude_expsyms_GCJ \ 19140 include_expsyms_GCJ; do 19141 19142 case $var in 19143 old_archive_cmds_GCJ | \ 19144 old_archive_from_new_cmds_GCJ | \ 19145 archive_cmds_GCJ | \ 19146 archive_expsym_cmds_GCJ | \ 19147 module_cmds_GCJ | \ 19148 module_expsym_cmds_GCJ | \ 19149 old_archive_from_expsyms_cmds_GCJ | \ 19150 export_symbols_cmds_GCJ | \ 19151 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19152 postinstall_cmds | postuninstall_cmds | \ 19153 old_postinstall_cmds | old_postuninstall_cmds | \ 19154 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19155 # Double-quote double-evaled strings. 19156 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19157 ;; 19158 *) 19159 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19160 ;; 19161 esac 19162 done 19163 19164 case $lt_echo in 19165 *'\$0 --fallback-echo"') 19166 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19167 ;; 19168 esac 19169 19170cfgfile="$ofile" 19171 19172 cat <<__EOF__ >> "$cfgfile" 19173# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19174 19175# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19176 19177# Shell to use when invoking shell scripts. 19178SHELL=$lt_SHELL 19179 19180# Whether or not to build shared libraries. 19181build_libtool_libs=$enable_shared 19182 19183# Whether or not to build static libraries. 19184build_old_libs=$enable_static 19185 19186# Whether or not to add -lc for building shared libraries. 19187build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19188 19189# Whether or not to disallow shared libs when runtime libs are static 19190allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19191 19192# Whether or not to optimize for fast installation. 19193fast_install=$enable_fast_install 19194 19195# The host system. 19196host_alias=$host_alias 19197host=$host 19198host_os=$host_os 19199 19200# The build system. 19201build_alias=$build_alias 19202build=$build 19203build_os=$build_os 19204 19205# An echo program that does not interpret backslashes. 19206echo=$lt_echo 19207 19208# The archiver. 19209AR=$lt_AR 19210AR_FLAGS=$lt_AR_FLAGS 19211 19212# A C compiler. 19213LTCC=$lt_LTCC 19214 19215# LTCC compiler flags. 19216LTCFLAGS=$lt_LTCFLAGS 19217 19218# A language-specific compiler. 19219CC=$lt_compiler_GCJ 19220 19221# Is the compiler the GNU C compiler? 19222with_gcc=$GCC_GCJ 19223 19224# An ERE matcher. 19225EGREP=$lt_EGREP 19226 19227# The linker used to build libraries. 19228LD=$lt_LD_GCJ 19229 19230# Whether we need hard or soft links. 19231LN_S=$lt_LN_S 19232 19233# A BSD-compatible nm program. 19234NM=$lt_NM 19235 19236# A symbol stripping program 19237STRIP=$lt_STRIP 19238 19239# Used to examine libraries when file_magic_cmd begins "file" 19240MAGIC_CMD=$MAGIC_CMD 19241 19242# Used on cygwin: DLL creation program. 19243DLLTOOL="$DLLTOOL" 19244 19245# Used on cygwin: object dumper. 19246OBJDUMP="$OBJDUMP" 19247 19248# Used on cygwin: assembler. 19249AS="$AS" 19250 19251# The name of the directory that contains temporary libtool files. 19252objdir=$objdir 19253 19254# How to create reloadable object files. 19255reload_flag=$lt_reload_flag 19256reload_cmds=$lt_reload_cmds 19257 19258# How to pass a linker flag through the compiler. 19259wl=$lt_lt_prog_compiler_wl_GCJ 19260 19261# Object file suffix (normally "o"). 19262objext="$ac_objext" 19263 19264# Old archive suffix (normally "a"). 19265libext="$libext" 19266 19267# Shared library suffix (normally ".so"). 19268shrext_cmds='$shrext_cmds' 19269 19270# Executable file suffix (normally ""). 19271exeext="$exeext" 19272 19273# Additional compiler flags for building library objects. 19274pic_flag=$lt_lt_prog_compiler_pic_GCJ 19275pic_mode=$pic_mode 19276 19277# What is the maximum length of a command? 19278max_cmd_len=$lt_cv_sys_max_cmd_len 19279 19280# Does compiler simultaneously support -c and -o options? 19281compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19282 19283# Must we lock files when doing compilation? 19284need_locks=$lt_need_locks 19285 19286# Do we need the lib prefix for modules? 19287need_lib_prefix=$need_lib_prefix 19288 19289# Do we need a version for libraries? 19290need_version=$need_version 19291 19292# Whether dlopen is supported. 19293dlopen_support=$enable_dlopen 19294 19295# Whether dlopen of programs is supported. 19296dlopen_self=$enable_dlopen_self 19297 19298# Whether dlopen of statically linked programs is supported. 19299dlopen_self_static=$enable_dlopen_self_static 19300 19301# Compiler flag to prevent dynamic linking. 19302link_static_flag=$lt_lt_prog_compiler_static_GCJ 19303 19304# Compiler flag to turn off builtin functions. 19305no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19306 19307# Compiler flag to allow reflexive dlopens. 19308export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19309 19310# Compiler flag to generate shared objects directly from archives. 19311whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19312 19313# Compiler flag to generate thread-safe objects. 19314thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19315 19316# Library versioning type. 19317version_type=$version_type 19318 19319# Format of library name prefix. 19320libname_spec=$lt_libname_spec 19321 19322# List of archive names. First name is the real one, the rest are links. 19323# The last name is the one that the linker finds with -lNAME. 19324library_names_spec=$lt_library_names_spec 19325 19326# The coded name of the library, if different from the real name. 19327soname_spec=$lt_soname_spec 19328 19329# Commands used to build and install an old-style archive. 19330RANLIB=$lt_RANLIB 19331old_archive_cmds=$lt_old_archive_cmds_GCJ 19332old_postinstall_cmds=$lt_old_postinstall_cmds 19333old_postuninstall_cmds=$lt_old_postuninstall_cmds 19334 19335# Create an old-style archive from a shared archive. 19336old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19337 19338# Create a temporary old-style archive to link instead of a shared archive. 19339old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19340 19341# Commands used to build and install a shared archive. 19342archive_cmds=$lt_archive_cmds_GCJ 19343archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19344postinstall_cmds=$lt_postinstall_cmds 19345postuninstall_cmds=$lt_postuninstall_cmds 19346 19347# Commands used to build a loadable module (assumed same as above if empty) 19348module_cmds=$lt_module_cmds_GCJ 19349module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19350 19351# Commands to strip libraries. 19352old_striplib=$lt_old_striplib 19353striplib=$lt_striplib 19354 19355# Dependencies to place before the objects being linked to create a 19356# shared library. 19357predep_objects=$lt_predep_objects_GCJ 19358 19359# Dependencies to place after the objects being linked to create a 19360# shared library. 19361postdep_objects=$lt_postdep_objects_GCJ 19362 19363# Dependencies to place before the objects being linked to create a 19364# shared library. 19365predeps=$lt_predeps_GCJ 19366 19367# Dependencies to place after the objects being linked to create a 19368# shared library. 19369postdeps=$lt_postdeps_GCJ 19370 19371# The directories searched by this compiler when creating a shared 19372# library 19373compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19374 19375# The library search path used internally by the compiler when linking 19376# a shared library. 19377compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19378 19379# Method to check whether dependent libraries are shared objects. 19380deplibs_check_method=$lt_deplibs_check_method 19381 19382# Command to use when deplibs_check_method == file_magic. 19383file_magic_cmd=$lt_file_magic_cmd 19384 19385# Flag that allows shared libraries with undefined symbols to be built. 19386allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19387 19388# Flag that forces no undefined symbols. 19389no_undefined_flag=$lt_no_undefined_flag_GCJ 19390 19391# Commands used to finish a libtool library installation in a directory. 19392finish_cmds=$lt_finish_cmds 19393 19394# Same as above, but a single script fragment to be evaled but not shown. 19395finish_eval=$lt_finish_eval 19396 19397# Take the output of nm and produce a listing of raw symbols and C names. 19398global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19399 19400# Transform the output of nm in a proper C declaration 19401global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19402 19403# Transform the output of nm in a C name address pair 19404global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19405 19406# This is the shared library runtime path variable. 19407runpath_var=$runpath_var 19408 19409# This is the shared library path variable. 19410shlibpath_var=$shlibpath_var 19411 19412# Is shlibpath searched before the hard-coded library search path? 19413shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19414 19415# How to hardcode a shared library path into an executable. 19416hardcode_action=$hardcode_action_GCJ 19417 19418# Whether we should hardcode library paths into libraries. 19419hardcode_into_libs=$hardcode_into_libs 19420 19421# Flag to hardcode \$libdir into a binary during linking. 19422# This must work even if \$libdir does not exist. 19423hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19424 19425# If ld is used when linking, flag to hardcode \$libdir into 19426# a binary during linking. This must work even if \$libdir does 19427# not exist. 19428hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19429 19430# Whether we need a single -rpath flag with a separated argument. 19431hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19432 19433# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19434# resulting binary. 19435hardcode_direct=$hardcode_direct_GCJ 19436 19437# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19438# resulting binary. 19439hardcode_minus_L=$hardcode_minus_L_GCJ 19440 19441# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19442# the resulting binary. 19443hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19444 19445# Set to yes if building a shared library automatically hardcodes DIR into the library 19446# and all subsequent libraries and executables linked against it. 19447hardcode_automatic=$hardcode_automatic_GCJ 19448 19449# Variables whose values should be saved in libtool wrapper scripts and 19450# restored at relink time. 19451variables_saved_for_relink="$variables_saved_for_relink" 19452 19453# Whether libtool must link a program against all its dependency libraries. 19454link_all_deplibs=$link_all_deplibs_GCJ 19455 19456# Compile-time system search path for libraries 19457sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19458 19459# Run-time system search path for libraries 19460sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19461 19462# Fix the shell variable \$srcfile for the compiler. 19463fix_srcfile_path=$lt_fix_srcfile_path 19464 19465# Set to yes if exported symbols are required. 19466always_export_symbols=$always_export_symbols_GCJ 19467 19468# The commands to list exported symbols. 19469export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19470 19471# The commands to extract the exported symbol list from a shared archive. 19472extract_expsyms_cmds=$lt_extract_expsyms_cmds 19473 19474# Symbols that should not be listed in the preloaded symbols. 19475exclude_expsyms=$lt_exclude_expsyms_GCJ 19476 19477# Symbols that must always be exported. 19478include_expsyms=$lt_include_expsyms_GCJ 19479 19480# ### END LIBTOOL TAG CONFIG: $tagname 19481 19482__EOF__ 19483 19484 19485else 19486 # If there is no Makefile yet, we rely on a make rule to execute 19487 # `config.status --recheck' to rerun these tests and create the 19488 # libtool script then. 19489 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19490 if test -f "$ltmain_in"; then 19491 test -f Makefile && make "$ltmain" 19492 fi 19493fi 19494 19495 19496ac_ext=c 19497ac_cpp='$CPP $CPPFLAGS' 19498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19500ac_compiler_gnu=$ac_cv_c_compiler_gnu 19501 19502CC="$lt_save_CC" 19503 19504 else 19505 tagname="" 19506 fi 19507 ;; 19508 19509 RC) 19510 19511 19512# Source file extension for RC test sources. 19513ac_ext=rc 19514 19515# Object file extension for compiled RC test sources. 19516objext=o 19517objext_RC=$objext 19518 19519# Code to be used in simple compile tests 19520lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19521 19522# Code to be used in simple link tests 19523lt_simple_link_test_code="$lt_simple_compile_test_code" 19524 19525# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19526 19527# If no C compiler was specified, use CC. 19528LTCC=${LTCC-"$CC"} 19529 19530# If no C compiler flags were specified, use CFLAGS. 19531LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19532 19533# Allow CC to be a program name with arguments. 19534compiler=$CC 19535 19536 19537# save warnings/boilerplate of simple test code 19538ac_outfile=conftest.$ac_objext 19539echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19540eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19541_lt_compiler_boilerplate=`cat conftest.err` 19542$rm conftest* 19543 19544ac_outfile=conftest.$ac_objext 19545echo "$lt_simple_link_test_code" >conftest.$ac_ext 19546eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19547_lt_linker_boilerplate=`cat conftest.err` 19548$rm -r conftest* 19549 19550 19551# Allow CC to be a program name with arguments. 19552lt_save_CC="$CC" 19553CC=${RC-"windres"} 19554compiler=$CC 19555compiler_RC=$CC 19556for cc_temp in $compiler""; do 19557 case $cc_temp in 19558 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19559 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19560 \-*) ;; 19561 *) break;; 19562 esac 19563done 19564cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19565 19566lt_cv_prog_compiler_c_o_RC=yes 19567 19568# The else clause should only fire when bootstrapping the 19569# libtool distribution, otherwise you forgot to ship ltmain.sh 19570# with your package, and you will get complaints that there are 19571# no rules to generate ltmain.sh. 19572if test -f "$ltmain"; then 19573 # See if we are running on zsh, and set the options which allow our commands through 19574 # without removal of \ escapes. 19575 if test -n "${ZSH_VERSION+set}" ; then 19576 setopt NO_GLOB_SUBST 19577 fi 19578 # Now quote all the things that may contain metacharacters while being 19579 # careful not to overquote the AC_SUBSTed values. We take copies of the 19580 # variables and quote the copies for generation of the libtool script. 19581 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19582 SED SHELL STRIP \ 19583 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19584 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19585 deplibs_check_method reload_flag reload_cmds need_locks \ 19586 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19587 lt_cv_sys_global_symbol_to_c_name_address \ 19588 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19589 old_postinstall_cmds old_postuninstall_cmds \ 19590 compiler_RC \ 19591 CC_RC \ 19592 LD_RC \ 19593 lt_prog_compiler_wl_RC \ 19594 lt_prog_compiler_pic_RC \ 19595 lt_prog_compiler_static_RC \ 19596 lt_prog_compiler_no_builtin_flag_RC \ 19597 export_dynamic_flag_spec_RC \ 19598 thread_safe_flag_spec_RC \ 19599 whole_archive_flag_spec_RC \ 19600 enable_shared_with_static_runtimes_RC \ 19601 old_archive_cmds_RC \ 19602 old_archive_from_new_cmds_RC \ 19603 predep_objects_RC \ 19604 postdep_objects_RC \ 19605 predeps_RC \ 19606 postdeps_RC \ 19607 compiler_lib_search_path_RC \ 19608 compiler_lib_search_dirs_RC \ 19609 archive_cmds_RC \ 19610 archive_expsym_cmds_RC \ 19611 postinstall_cmds_RC \ 19612 postuninstall_cmds_RC \ 19613 old_archive_from_expsyms_cmds_RC \ 19614 allow_undefined_flag_RC \ 19615 no_undefined_flag_RC \ 19616 export_symbols_cmds_RC \ 19617 hardcode_libdir_flag_spec_RC \ 19618 hardcode_libdir_flag_spec_ld_RC \ 19619 hardcode_libdir_separator_RC \ 19620 hardcode_automatic_RC \ 19621 module_cmds_RC \ 19622 module_expsym_cmds_RC \ 19623 lt_cv_prog_compiler_c_o_RC \ 19624 fix_srcfile_path_RC \ 19625 exclude_expsyms_RC \ 19626 include_expsyms_RC; do 19627 19628 case $var in 19629 old_archive_cmds_RC | \ 19630 old_archive_from_new_cmds_RC | \ 19631 archive_cmds_RC | \ 19632 archive_expsym_cmds_RC | \ 19633 module_cmds_RC | \ 19634 module_expsym_cmds_RC | \ 19635 old_archive_from_expsyms_cmds_RC | \ 19636 export_symbols_cmds_RC | \ 19637 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19638 postinstall_cmds | postuninstall_cmds | \ 19639 old_postinstall_cmds | old_postuninstall_cmds | \ 19640 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19641 # Double-quote double-evaled strings. 19642 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19643 ;; 19644 *) 19645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19646 ;; 19647 esac 19648 done 19649 19650 case $lt_echo in 19651 *'\$0 --fallback-echo"') 19652 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19653 ;; 19654 esac 19655 19656cfgfile="$ofile" 19657 19658 cat <<__EOF__ >> "$cfgfile" 19659# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19660 19661# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19662 19663# Shell to use when invoking shell scripts. 19664SHELL=$lt_SHELL 19665 19666# Whether or not to build shared libraries. 19667build_libtool_libs=$enable_shared 19668 19669# Whether or not to build static libraries. 19670build_old_libs=$enable_static 19671 19672# Whether or not to add -lc for building shared libraries. 19673build_libtool_need_lc=$archive_cmds_need_lc_RC 19674 19675# Whether or not to disallow shared libs when runtime libs are static 19676allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19677 19678# Whether or not to optimize for fast installation. 19679fast_install=$enable_fast_install 19680 19681# The host system. 19682host_alias=$host_alias 19683host=$host 19684host_os=$host_os 19685 19686# The build system. 19687build_alias=$build_alias 19688build=$build 19689build_os=$build_os 19690 19691# An echo program that does not interpret backslashes. 19692echo=$lt_echo 19693 19694# The archiver. 19695AR=$lt_AR 19696AR_FLAGS=$lt_AR_FLAGS 19697 19698# A C compiler. 19699LTCC=$lt_LTCC 19700 19701# LTCC compiler flags. 19702LTCFLAGS=$lt_LTCFLAGS 19703 19704# A language-specific compiler. 19705CC=$lt_compiler_RC 19706 19707# Is the compiler the GNU C compiler? 19708with_gcc=$GCC_RC 19709 19710# An ERE matcher. 19711EGREP=$lt_EGREP 19712 19713# The linker used to build libraries. 19714LD=$lt_LD_RC 19715 19716# Whether we need hard or soft links. 19717LN_S=$lt_LN_S 19718 19719# A BSD-compatible nm program. 19720NM=$lt_NM 19721 19722# A symbol stripping program 19723STRIP=$lt_STRIP 19724 19725# Used to examine libraries when file_magic_cmd begins "file" 19726MAGIC_CMD=$MAGIC_CMD 19727 19728# Used on cygwin: DLL creation program. 19729DLLTOOL="$DLLTOOL" 19730 19731# Used on cygwin: object dumper. 19732OBJDUMP="$OBJDUMP" 19733 19734# Used on cygwin: assembler. 19735AS="$AS" 19736 19737# The name of the directory that contains temporary libtool files. 19738objdir=$objdir 19739 19740# How to create reloadable object files. 19741reload_flag=$lt_reload_flag 19742reload_cmds=$lt_reload_cmds 19743 19744# How to pass a linker flag through the compiler. 19745wl=$lt_lt_prog_compiler_wl_RC 19746 19747# Object file suffix (normally "o"). 19748objext="$ac_objext" 19749 19750# Old archive suffix (normally "a"). 19751libext="$libext" 19752 19753# Shared library suffix (normally ".so"). 19754shrext_cmds='$shrext_cmds' 19755 19756# Executable file suffix (normally ""). 19757exeext="$exeext" 19758 19759# Additional compiler flags for building library objects. 19760pic_flag=$lt_lt_prog_compiler_pic_RC 19761pic_mode=$pic_mode 19762 19763# What is the maximum length of a command? 19764max_cmd_len=$lt_cv_sys_max_cmd_len 19765 19766# Does compiler simultaneously support -c and -o options? 19767compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19768 19769# Must we lock files when doing compilation? 19770need_locks=$lt_need_locks 19771 19772# Do we need the lib prefix for modules? 19773need_lib_prefix=$need_lib_prefix 19774 19775# Do we need a version for libraries? 19776need_version=$need_version 19777 19778# Whether dlopen is supported. 19779dlopen_support=$enable_dlopen 19780 19781# Whether dlopen of programs is supported. 19782dlopen_self=$enable_dlopen_self 19783 19784# Whether dlopen of statically linked programs is supported. 19785dlopen_self_static=$enable_dlopen_self_static 19786 19787# Compiler flag to prevent dynamic linking. 19788link_static_flag=$lt_lt_prog_compiler_static_RC 19789 19790# Compiler flag to turn off builtin functions. 19791no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19792 19793# Compiler flag to allow reflexive dlopens. 19794export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19795 19796# Compiler flag to generate shared objects directly from archives. 19797whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19798 19799# Compiler flag to generate thread-safe objects. 19800thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19801 19802# Library versioning type. 19803version_type=$version_type 19804 19805# Format of library name prefix. 19806libname_spec=$lt_libname_spec 19807 19808# List of archive names. First name is the real one, the rest are links. 19809# The last name is the one that the linker finds with -lNAME. 19810library_names_spec=$lt_library_names_spec 19811 19812# The coded name of the library, if different from the real name. 19813soname_spec=$lt_soname_spec 19814 19815# Commands used to build and install an old-style archive. 19816RANLIB=$lt_RANLIB 19817old_archive_cmds=$lt_old_archive_cmds_RC 19818old_postinstall_cmds=$lt_old_postinstall_cmds 19819old_postuninstall_cmds=$lt_old_postuninstall_cmds 19820 19821# Create an old-style archive from a shared archive. 19822old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19823 19824# Create a temporary old-style archive to link instead of a shared archive. 19825old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19826 19827# Commands used to build and install a shared archive. 19828archive_cmds=$lt_archive_cmds_RC 19829archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19830postinstall_cmds=$lt_postinstall_cmds 19831postuninstall_cmds=$lt_postuninstall_cmds 19832 19833# Commands used to build a loadable module (assumed same as above if empty) 19834module_cmds=$lt_module_cmds_RC 19835module_expsym_cmds=$lt_module_expsym_cmds_RC 19836 19837# Commands to strip libraries. 19838old_striplib=$lt_old_striplib 19839striplib=$lt_striplib 19840 19841# Dependencies to place before the objects being linked to create a 19842# shared library. 19843predep_objects=$lt_predep_objects_RC 19844 19845# Dependencies to place after the objects being linked to create a 19846# shared library. 19847postdep_objects=$lt_postdep_objects_RC 19848 19849# Dependencies to place before the objects being linked to create a 19850# shared library. 19851predeps=$lt_predeps_RC 19852 19853# Dependencies to place after the objects being linked to create a 19854# shared library. 19855postdeps=$lt_postdeps_RC 19856 19857# The directories searched by this compiler when creating a shared 19858# library 19859compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19860 19861# The library search path used internally by the compiler when linking 19862# a shared library. 19863compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19864 19865# Method to check whether dependent libraries are shared objects. 19866deplibs_check_method=$lt_deplibs_check_method 19867 19868# Command to use when deplibs_check_method == file_magic. 19869file_magic_cmd=$lt_file_magic_cmd 19870 19871# Flag that allows shared libraries with undefined symbols to be built. 19872allow_undefined_flag=$lt_allow_undefined_flag_RC 19873 19874# Flag that forces no undefined symbols. 19875no_undefined_flag=$lt_no_undefined_flag_RC 19876 19877# Commands used to finish a libtool library installation in a directory. 19878finish_cmds=$lt_finish_cmds 19879 19880# Same as above, but a single script fragment to be evaled but not shown. 19881finish_eval=$lt_finish_eval 19882 19883# Take the output of nm and produce a listing of raw symbols and C names. 19884global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19885 19886# Transform the output of nm in a proper C declaration 19887global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19888 19889# Transform the output of nm in a C name address pair 19890global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19891 19892# This is the shared library runtime path variable. 19893runpath_var=$runpath_var 19894 19895# This is the shared library path variable. 19896shlibpath_var=$shlibpath_var 19897 19898# Is shlibpath searched before the hard-coded library search path? 19899shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19900 19901# How to hardcode a shared library path into an executable. 19902hardcode_action=$hardcode_action_RC 19903 19904# Whether we should hardcode library paths into libraries. 19905hardcode_into_libs=$hardcode_into_libs 19906 19907# Flag to hardcode \$libdir into a binary during linking. 19908# This must work even if \$libdir does not exist. 19909hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19910 19911# If ld is used when linking, flag to hardcode \$libdir into 19912# a binary during linking. This must work even if \$libdir does 19913# not exist. 19914hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19915 19916# Whether we need a single -rpath flag with a separated argument. 19917hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19918 19919# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19920# resulting binary. 19921hardcode_direct=$hardcode_direct_RC 19922 19923# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19924# resulting binary. 19925hardcode_minus_L=$hardcode_minus_L_RC 19926 19927# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19928# the resulting binary. 19929hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19930 19931# Set to yes if building a shared library automatically hardcodes DIR into the library 19932# and all subsequent libraries and executables linked against it. 19933hardcode_automatic=$hardcode_automatic_RC 19934 19935# Variables whose values should be saved in libtool wrapper scripts and 19936# restored at relink time. 19937variables_saved_for_relink="$variables_saved_for_relink" 19938 19939# Whether libtool must link a program against all its dependency libraries. 19940link_all_deplibs=$link_all_deplibs_RC 19941 19942# Compile-time system search path for libraries 19943sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19944 19945# Run-time system search path for libraries 19946sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19947 19948# Fix the shell variable \$srcfile for the compiler. 19949fix_srcfile_path=$lt_fix_srcfile_path 19950 19951# Set to yes if exported symbols are required. 19952always_export_symbols=$always_export_symbols_RC 19953 19954# The commands to list exported symbols. 19955export_symbols_cmds=$lt_export_symbols_cmds_RC 19956 19957# The commands to extract the exported symbol list from a shared archive. 19958extract_expsyms_cmds=$lt_extract_expsyms_cmds 19959 19960# Symbols that should not be listed in the preloaded symbols. 19961exclude_expsyms=$lt_exclude_expsyms_RC 19962 19963# Symbols that must always be exported. 19964include_expsyms=$lt_include_expsyms_RC 19965 19966# ### END LIBTOOL TAG CONFIG: $tagname 19967 19968__EOF__ 19969 19970 19971else 19972 # If there is no Makefile yet, we rely on a make rule to execute 19973 # `config.status --recheck' to rerun these tests and create the 19974 # libtool script then. 19975 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19976 if test -f "$ltmain_in"; then 19977 test -f Makefile && make "$ltmain" 19978 fi 19979fi 19980 19981 19982ac_ext=c 19983ac_cpp='$CPP $CPPFLAGS' 19984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19986ac_compiler_gnu=$ac_cv_c_compiler_gnu 19987 19988CC="$lt_save_CC" 19989 19990 ;; 19991 19992 *) 19993 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19994$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19995 { (exit 1); exit 1; }; } 19996 ;; 19997 esac 19998 19999 # Append the new tag name to the list of available tags. 20000 if test -n "$tagname" ; then 20001 available_tags="$available_tags $tagname" 20002 fi 20003 fi 20004 done 20005 IFS="$lt_save_ifs" 20006 20007 # Now substitute the updated list of available tags. 20008 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20009 mv "${ofile}T" "$ofile" 20010 chmod +x "$ofile" 20011 else 20012 rm -f "${ofile}T" 20013 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20014$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20015 { (exit 1); exit 1; }; } 20016 fi 20017fi 20018 20019 20020 20021# This can be used to rebuild libtool when needed 20022LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20023 20024# Always use our own libtool. 20025LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20026 20027# Prevent multiple expansion 20028 20029 20030 20031 20032 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 20045 20046 20047 20048 20049# Initialize GNOME environment 20050 20051 20052 20053 ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}" 20054 if test -n "$ac_macro_dir"; then 20055 ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS" 20056 fi 20057 20058 20059 20060 20061 20062 # Check whether --enable-compile-warnings was given. 20063if test "${enable_compile_warnings+set}" = set; then 20064 enableval=$enable_compile_warnings; 20065else 20066 enable_compile_warnings="error" 20067fi 20068 20069 20070 warnCFLAGS= 20071 if test "x$GCC" != xyes; then 20072 enable_compile_warnings=no 20073 fi 20074 20075 warning_flags= 20076 realsave_CFLAGS="$CFLAGS" 20077 20078 case "$enable_compile_warnings" in 20079 no) 20080 warning_flags= 20081 ;; 20082 minimum) 20083 warning_flags="-Wall" 20084 ;; 20085 yes) 20086 warning_flags="-Wall -Wmissing-prototypes" 20087 ;; 20088 maximum|error) 20089 warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith" 20090 CFLAGS="$warning_flags $CFLAGS" 20091 for option in -Wno-sign-compare; do 20092 SAVE_CFLAGS="$CFLAGS" 20093 CFLAGS="$CFLAGS $option" 20094 { $as_echo "$as_me:$LINENO: checking whether gcc understands $option" >&5 20095$as_echo_n "checking whether gcc understands $option... " >&6; } 20096 cat >conftest.$ac_ext <<_ACEOF 20097/* confdefs.h. */ 20098_ACEOF 20099cat confdefs.h >>conftest.$ac_ext 20100cat >>conftest.$ac_ext <<_ACEOF 20101/* end confdefs.h. */ 20102 20103int 20104main () 20105{ 20106 20107 ; 20108 return 0; 20109} 20110_ACEOF 20111rm -f conftest.$ac_objext 20112if { (ac_try="$ac_compile" 20113case "(($ac_try" in 20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20115 *) ac_try_echo=$ac_try;; 20116esac 20117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20118$as_echo "$ac_try_echo") >&5 20119 (eval "$ac_compile") 2>conftest.er1 20120 ac_status=$? 20121 grep -v '^ *+' conftest.er1 >conftest.err 20122 rm -f conftest.er1 20123 cat conftest.err >&5 20124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20125 (exit $ac_status); } && { 20126 test -z "$ac_c_werror_flag" || 20127 test ! -s conftest.err 20128 } && test -s conftest.$ac_objext; then 20129 has_option=yes 20130else 20131 $as_echo "$as_me: failed program was:" >&5 20132sed 's/^/| /' conftest.$ac_ext >&5 20133 20134 has_option=no 20135fi 20136 20137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20138 CFLAGS="$SAVE_CFLAGS" 20139 { $as_echo "$as_me:$LINENO: result: $has_option" >&5 20140$as_echo "$has_option" >&6; } 20141 if test $has_option = yes; then 20142 warning_flags="$warning_flags $option" 20143 fi 20144 unset has_option 20145 unset SAVE_CFLAGS 20146 done 20147 unset option 20148 if test "$enable_compile_warnings" = "error" ; then 20149 warning_flags="$warning_flags -Werror" 20150 fi 20151 ;; 20152 *) 20153 { { $as_echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5 20154$as_echo "$as_me: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&2;} 20155 { (exit 1); exit 1; }; } 20156 ;; 20157 esac 20158 CFLAGS="$realsave_CFLAGS" 20159 { $as_echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5 20160$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; } 20161 { $as_echo "$as_me:$LINENO: result: $warning_flags" >&5 20162$as_echo "$warning_flags" >&6; } 20163 20164 # Check whether --enable-iso-c was given. 20165if test "${enable_iso_c+set}" = set; then 20166 enableval=$enable_iso_c; 20167else 20168 enable_iso_c=no 20169fi 20170 20171 20172 { $as_echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5 20173$as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; } 20174 complCFLAGS= 20175 if test "x$enable_iso_c" != "xno"; then 20176 if test "x$GCC" = "xyes"; then 20177 case " $CFLAGS " in 20178 *\ \ -ansi\ \ *) ;; 20179 *) complCFLAGS="$complCFLAGS -ansi" ;; 20180 esac 20181 case " $CFLAGS " in 20182 *\ \ -pedantic\ \ *) ;; 20183 *) complCFLAGS="$complCFLAGS -pedantic" ;; 20184 esac 20185 fi 20186 fi 20187 { $as_echo "$as_me:$LINENO: result: $complCFLAGS" >&5 20188$as_echo "$complCFLAGS" >&6; } 20189 20190 WARN_CFLAGS="$warning_flags $complCFLAGS" 20191 20192 20193DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" 20194 20195 20196 20197 20198if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20199 if test -n "$ac_tool_prefix"; then 20200 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20201set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20202{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20203$as_echo_n "checking for $ac_word... " >&6; } 20204if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20205 $as_echo_n "(cached) " >&6 20206else 20207 case $PKG_CONFIG in 20208 [\\/]* | ?:[\\/]*) 20209 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20210 ;; 20211 *) 20212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20213for as_dir in $PATH 20214do 20215 IFS=$as_save_IFS 20216 test -z "$as_dir" && as_dir=. 20217 for ac_exec_ext in '' $ac_executable_extensions; do 20218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20219 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20221 break 2 20222 fi 20223done 20224done 20225IFS=$as_save_IFS 20226 20227 ;; 20228esac 20229fi 20230PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20231if test -n "$PKG_CONFIG"; then 20232 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20233$as_echo "$PKG_CONFIG" >&6; } 20234else 20235 { $as_echo "$as_me:$LINENO: result: no" >&5 20236$as_echo "no" >&6; } 20237fi 20238 20239 20240fi 20241if test -z "$ac_cv_path_PKG_CONFIG"; then 20242 ac_pt_PKG_CONFIG=$PKG_CONFIG 20243 # Extract the first word of "pkg-config", so it can be a program name with args. 20244set dummy pkg-config; ac_word=$2 20245{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20246$as_echo_n "checking for $ac_word... " >&6; } 20247if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20248 $as_echo_n "(cached) " >&6 20249else 20250 case $ac_pt_PKG_CONFIG in 20251 [\\/]* | ?:[\\/]*) 20252 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20253 ;; 20254 *) 20255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20256for as_dir in $PATH 20257do 20258 IFS=$as_save_IFS 20259 test -z "$as_dir" && as_dir=. 20260 for ac_exec_ext in '' $ac_executable_extensions; do 20261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20262 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20264 break 2 20265 fi 20266done 20267done 20268IFS=$as_save_IFS 20269 20270 ;; 20271esac 20272fi 20273ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20274if test -n "$ac_pt_PKG_CONFIG"; then 20275 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20276$as_echo "$ac_pt_PKG_CONFIG" >&6; } 20277else 20278 { $as_echo "$as_me:$LINENO: result: no" >&5 20279$as_echo "no" >&6; } 20280fi 20281 20282 if test "x$ac_pt_PKG_CONFIG" = x; then 20283 PKG_CONFIG="" 20284 else 20285 case $cross_compiling:$ac_tool_warned in 20286yes:) 20287{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20288whose name does not start with the host triplet. If you think this 20289configuration is useful to you, please write to autoconf@gnu.org." >&5 20290$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20291whose name does not start with the host triplet. If you think this 20292configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20293ac_tool_warned=yes ;; 20294esac 20295 PKG_CONFIG=$ac_pt_PKG_CONFIG 20296 fi 20297else 20298 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20299fi 20300 20301fi 20302if test -n "$PKG_CONFIG"; then 20303 _pkg_min_version=0.9.0 20304 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20305$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20306 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20307 { $as_echo "$as_me:$LINENO: result: yes" >&5 20308$as_echo "yes" >&6; } 20309 else 20310 { $as_echo "$as_me:$LINENO: result: no" >&5 20311$as_echo "no" >&6; } 20312 PKG_CONFIG="" 20313 fi 20314 20315fi 20316 20317pkg_failed=no 20318{ $as_echo "$as_me:$LINENO: checking for DEP" >&5 20319$as_echo_n "checking for DEP... " >&6; } 20320 20321if test -n "$DEP_CFLAGS"; then 20322 pkg_cv_DEP_CFLAGS="$DEP_CFLAGS" 20323 elif test -n "$PKG_CONFIG"; then 20324 if test -n "$PKG_CONFIG" && \ 20325 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.6.0\"") >&5 20326 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.6.0") 2>&5 20327 ac_status=$? 20328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20329 (exit $ac_status); }; then 20330 pkg_cv_DEP_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.6.0" 2>/dev/null` 20331else 20332 pkg_failed=yes 20333fi 20334 else 20335 pkg_failed=untried 20336fi 20337if test -n "$DEP_LIBS"; then 20338 pkg_cv_DEP_LIBS="$DEP_LIBS" 20339 elif test -n "$PKG_CONFIG"; then 20340 if test -n "$PKG_CONFIG" && \ 20341 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.6.0\"") >&5 20342 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.6.0") 2>&5 20343 ac_status=$? 20344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20345 (exit $ac_status); }; then 20346 pkg_cv_DEP_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.6.0" 2>/dev/null` 20347else 20348 pkg_failed=yes 20349fi 20350 else 20351 pkg_failed=untried 20352fi 20353 20354 20355 20356if test $pkg_failed = yes; then 20357 20358if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20359 _pkg_short_errors_supported=yes 20360else 20361 _pkg_short_errors_supported=no 20362fi 20363 if test $_pkg_short_errors_supported = yes; then 20364 DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.6.0" 2>&1` 20365 else 20366 DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.6.0" 2>&1` 20367 fi 20368 # Put the nasty error message in config.log where it belongs 20369 echo "$DEP_PKG_ERRORS" >&5 20370 20371 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.6.0) were not met: 20372 20373$DEP_PKG_ERRORS 20374 20375Consider adjusting the PKG_CONFIG_PATH environment variable if you 20376installed software in a non-standard prefix. 20377 20378Alternatively, you may set the environment variables DEP_CFLAGS 20379and DEP_LIBS to avoid the need to call pkg-config. 20380See the pkg-config man page for more details. 20381" >&5 20382$as_echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.6.0) were not met: 20383 20384$DEP_PKG_ERRORS 20385 20386Consider adjusting the PKG_CONFIG_PATH environment variable if you 20387installed software in a non-standard prefix. 20388 20389Alternatively, you may set the environment variables DEP_CFLAGS 20390and DEP_LIBS to avoid the need to call pkg-config. 20391See the pkg-config man page for more details. 20392" >&2;} 20393 { (exit 1); exit 1; }; } 20394elif test $pkg_failed = untried; then 20395 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20396is in your PATH or set the PKG_CONFIG environment variable to the full 20397path to pkg-config. 20398 20399Alternatively, you may set the environment variables DEP_CFLAGS 20400and DEP_LIBS to avoid the need to call pkg-config. 20401See the pkg-config man page for more details. 20402 20403To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20404See \`config.log' for more details." >&5 20405$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20406is in your PATH or set the PKG_CONFIG environment variable to the full 20407path to pkg-config. 20408 20409Alternatively, you may set the environment variables DEP_CFLAGS 20410and DEP_LIBS to avoid the need to call pkg-config. 20411See the pkg-config man page for more details. 20412 20413To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20414See \`config.log' for more details." >&2;} 20415 { (exit 1); exit 1; }; } 20416else 20417 DEP_CFLAGS=$pkg_cv_DEP_CFLAGS 20418 DEP_LIBS=$pkg_cv_DEP_LIBS 20419 { $as_echo "$as_me:$LINENO: result: yes" >&5 20420$as_echo "yes" >&6; } 20421 : 20422fi 20423 20424 20425 20426# Check for glib utils 20427# Extract the first word of "glib-genmarshal", so it can be a program name with args. 20428set dummy glib-genmarshal; ac_word=$2 20429{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20430$as_echo_n "checking for $ac_word... " >&6; } 20431if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then 20432 $as_echo_n "(cached) " >&6 20433else 20434 case $GLIB_GENMARSHAL in 20435 [\\/]* | ?:[\\/]*) 20436 ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path. 20437 ;; 20438 *) 20439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20440for as_dir in $PATH 20441do 20442 IFS=$as_save_IFS 20443 test -z "$as_dir" && as_dir=. 20444 for ac_exec_ext in '' $ac_executable_extensions; do 20445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20446 ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext" 20447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20448 break 2 20449 fi 20450done 20451done 20452IFS=$as_save_IFS 20453 20454 ;; 20455esac 20456fi 20457GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL 20458if test -n "$GLIB_GENMARSHAL"; then 20459 { $as_echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5 20460$as_echo "$GLIB_GENMARSHAL" >&6; } 20461else 20462 { $as_echo "$as_me:$LINENO: result: no" >&5 20463$as_echo "no" >&6; } 20464fi 20465 20466 20467# Extract the first word of "glib-mkenums", so it can be a program name with args. 20468set dummy glib-mkenums; ac_word=$2 20469{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20470$as_echo_n "checking for $ac_word... " >&6; } 20471if test "${ac_cv_path_GLIB_MKENUMS+set}" = set; then 20472 $as_echo_n "(cached) " >&6 20473else 20474 case $GLIB_MKENUMS in 20475 [\\/]* | ?:[\\/]*) 20476 ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path. 20477 ;; 20478 *) 20479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20480for as_dir in $PATH 20481do 20482 IFS=$as_save_IFS 20483 test -z "$as_dir" && as_dir=. 20484 for ac_exec_ext in '' $ac_executable_extensions; do 20485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20486 ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext" 20487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20488 break 2 20489 fi 20490done 20491done 20492IFS=$as_save_IFS 20493 20494 ;; 20495esac 20496fi 20497GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS 20498if test -n "$GLIB_MKENUMS"; then 20499 { $as_echo "$as_me:$LINENO: result: $GLIB_MKENUMS" >&5 20500$as_echo "$GLIB_MKENUMS" >&6; } 20501else 20502 { $as_echo "$as_me:$LINENO: result: no" >&5 20503$as_echo "no" >&6; } 20504fi 20505 20506 20507 20508# 1.8 introduced the --rebuild-sections and --rebuild-types options to 20509# 1.gtkdoc-scan that we need. 20510 20511 20512 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 20513set dummy gtkdoc-check; ac_word=$2 20514{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20515$as_echo_n "checking for $ac_word... " >&6; } 20516if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then 20517 $as_echo_n "(cached) " >&6 20518else 20519 case $GTKDOC_CHECK in 20520 [\\/]* | ?:[\\/]*) 20521 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path. 20522 ;; 20523 *) 20524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20525for as_dir in $PATH 20526do 20527 IFS=$as_save_IFS 20528 test -z "$as_dir" && as_dir=. 20529 for ac_exec_ext in '' $ac_executable_extensions; do 20530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20531 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext" 20532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20533 break 2 20534 fi 20535done 20536done 20537IFS=$as_save_IFS 20538 20539 ;; 20540esac 20541fi 20542GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK 20543if test -n "$GTKDOC_CHECK"; then 20544 { $as_echo "$as_me:$LINENO: result: $GTKDOC_CHECK" >&5 20545$as_echo "$GTKDOC_CHECK" >&6; } 20546else 20547 { $as_echo "$as_me:$LINENO: result: no" >&5 20548$as_echo "no" >&6; } 20549fi 20550 20551 20552 for ac_prog in gtkdoc-rebase 20553do 20554 # Extract the first word of "$ac_prog", so it can be a program name with args. 20555set dummy $ac_prog; ac_word=$2 20556{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20557$as_echo_n "checking for $ac_word... " >&6; } 20558if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then 20559 $as_echo_n "(cached) " >&6 20560else 20561 case $GTKDOC_REBASE in 20562 [\\/]* | ?:[\\/]*) 20563 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. 20564 ;; 20565 *) 20566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20567for as_dir in $PATH 20568do 20569 IFS=$as_save_IFS 20570 test -z "$as_dir" && as_dir=. 20571 for ac_exec_ext in '' $ac_executable_extensions; do 20572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20573 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" 20574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20575 break 2 20576 fi 20577done 20578done 20579IFS=$as_save_IFS 20580 20581 ;; 20582esac 20583fi 20584GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE 20585if test -n "$GTKDOC_REBASE"; then 20586 { $as_echo "$as_me:$LINENO: result: $GTKDOC_REBASE" >&5 20587$as_echo "$GTKDOC_REBASE" >&6; } 20588else 20589 { $as_echo "$as_me:$LINENO: result: no" >&5 20590$as_echo "no" >&6; } 20591fi 20592 20593 20594 test -n "$GTKDOC_REBASE" && break 20595done 20596test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" 20597 20598 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. 20599set dummy gtkdoc-mkpdf; ac_word=$2 20600{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20601$as_echo_n "checking for $ac_word... " >&6; } 20602if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then 20603 $as_echo_n "(cached) " >&6 20604else 20605 case $GTKDOC_MKPDF in 20606 [\\/]* | ?:[\\/]*) 20607 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. 20608 ;; 20609 *) 20610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20611for as_dir in $PATH 20612do 20613 IFS=$as_save_IFS 20614 test -z "$as_dir" && as_dir=. 20615 for ac_exec_ext in '' $ac_executable_extensions; do 20616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20617 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" 20618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20619 break 2 20620 fi 20621done 20622done 20623IFS=$as_save_IFS 20624 20625 ;; 20626esac 20627fi 20628GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF 20629if test -n "$GTKDOC_MKPDF"; then 20630 { $as_echo "$as_me:$LINENO: result: $GTKDOC_MKPDF" >&5 20631$as_echo "$GTKDOC_MKPDF" >&6; } 20632else 20633 { $as_echo "$as_me:$LINENO: result: no" >&5 20634$as_echo "no" >&6; } 20635fi 20636 20637 20638 20639 20640# Check whether --with-html-dir was given. 20641if test "${with_html_dir+set}" = set; then 20642 withval=$with_html_dir; 20643else 20644 with_html_dir='${datadir}/gtk-doc/html' 20645fi 20646 20647 HTML_DIR="$with_html_dir" 20648 20649 20650 # Check whether --enable-gtk-doc was given. 20651if test "${enable_gtk_doc+set}" = set; then 20652 enableval=$enable_gtk_doc; 20653else 20654 enable_gtk_doc=no 20655fi 20656 20657 20658 if test x$enable_gtk_doc = xyes; then 20659 if test -n "$PKG_CONFIG" && \ 20660 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.8\"") >&5 20661 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.8") 2>&5 20662 ac_status=$? 20663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20664 (exit $ac_status); }; then 20665 : 20666else 20667 { { $as_echo "$as_me:$LINENO: error: You need to have gtk-doc >= 1.8 installed to build $PACKAGE_NAME" >&5 20668$as_echo "$as_me: error: You need to have gtk-doc >= 1.8 installed to build $PACKAGE_NAME" >&2;} 20669 { (exit 1); exit 1; }; } 20670fi 20671 fi 20672 20673 { $as_echo "$as_me:$LINENO: checking whether to build gtk-doc documentation" >&5 20674$as_echo_n "checking whether to build gtk-doc documentation... " >&6; } 20675 { $as_echo "$as_me:$LINENO: result: $enable_gtk_doc" >&5 20676$as_echo "$enable_gtk_doc" >&6; } 20677 20678 # Check whether --enable-gtk-doc-html was given. 20679if test "${enable_gtk_doc_html+set}" = set; then 20680 enableval=$enable_gtk_doc_html; 20681else 20682 enable_gtk_doc_html=yes 20683fi 20684 20685 # Check whether --enable-gtk-doc-pdf was given. 20686if test "${enable_gtk_doc_pdf+set}" = set; then 20687 enableval=$enable_gtk_doc_pdf; 20688else 20689 enable_gtk_doc_pdf=no 20690fi 20691 20692 20693 if test -n "$GTKDOC_MKPDF"; then 20694 enable_gtk_doc_pdf=no 20695 fi 20696 20697 20698 if test x$enable_gtk_doc = xyes; then 20699 ENABLE_GTK_DOC_TRUE= 20700 ENABLE_GTK_DOC_FALSE='#' 20701else 20702 ENABLE_GTK_DOC_TRUE='#' 20703 ENABLE_GTK_DOC_FALSE= 20704fi 20705 20706 if test x$enable_gtk_doc_html = xyes; then 20707 GTK_DOC_BUILD_HTML_TRUE= 20708 GTK_DOC_BUILD_HTML_FALSE='#' 20709else 20710 GTK_DOC_BUILD_HTML_TRUE='#' 20711 GTK_DOC_BUILD_HTML_FALSE= 20712fi 20713 20714 if test x$enable_gtk_doc_pdf = xyes; then 20715 GTK_DOC_BUILD_PDF_TRUE= 20716 GTK_DOC_BUILD_PDF_FALSE='#' 20717else 20718 GTK_DOC_BUILD_PDF_TRUE='#' 20719 GTK_DOC_BUILD_PDF_FALSE= 20720fi 20721 20722 if test -n "$LIBTOOL"; then 20723 GTK_DOC_USE_LIBTOOL_TRUE= 20724 GTK_DOC_USE_LIBTOOL_FALSE='#' 20725else 20726 GTK_DOC_USE_LIBTOOL_TRUE='#' 20727 GTK_DOC_USE_LIBTOOL_FALSE= 20728fi 20729 20730 if test -n "$GTKDOC_REBASE"; then 20731 GTK_DOC_USE_REBASE_TRUE= 20732 GTK_DOC_USE_REBASE_FALSE='#' 20733else 20734 GTK_DOC_USE_REBASE_TRUE='#' 20735 GTK_DOC_USE_REBASE_FALSE= 20736fi 20737 20738 20739 20740###################################################################### 20741##### Twiddle CFLAGS ################################################# 20742###################################################################### 20743CFLAGS="${CFLAGS} -Wall -std=c99 -Wmissing-prototypes" 20744 20745 20746###################################################################### 20747##### Output files ################################################### 20748###################################################################### 20749ac_config_files="$ac_config_files gtkimageview.pc Makefile docs/Makefile docs/reference/Makefile src/Makefile tests/Makefile tests/testlib/Makefile" 20750 20751 20752cat >confcache <<\_ACEOF 20753# This file is a shell script that caches the results of configure 20754# tests run on this system so they can be shared between configure 20755# scripts and configure runs, see configure's option --config-cache. 20756# It is not useful on other systems. If it contains results you don't 20757# want to keep, you may remove or edit it. 20758# 20759# config.status only pays attention to the cache file if you give it 20760# the --recheck option to rerun configure. 20761# 20762# `ac_cv_env_foo' variables (set or unset) will be overridden when 20763# loading this file, other *unset* `ac_cv_foo' will be assigned the 20764# following values. 20765 20766_ACEOF 20767 20768# The following way of writing the cache mishandles newlines in values, 20769# but we know of no workaround that is simple, portable, and efficient. 20770# So, we kill variables containing newlines. 20771# Ultrix sh set writes to stderr and can't be redirected directly, 20772# and sets the high bit in the cache file unless we assign to the vars. 20773( 20774 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20775 eval ac_val=\$$ac_var 20776 case $ac_val in #( 20777 *${as_nl}*) 20778 case $ac_var in #( 20779 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20780$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20781 esac 20782 case $ac_var in #( 20783 _ | IFS | as_nl) ;; #( 20784 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20785 *) $as_unset $ac_var ;; 20786 esac ;; 20787 esac 20788 done 20789 20790 (set) 2>&1 | 20791 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20792 *${as_nl}ac_space=\ *) 20793 # `set' does not quote correctly, so add quotes (double-quote 20794 # substitution turns \\\\ into \\, and sed turns \\ into \). 20795 sed -n \ 20796 "s/'/'\\\\''/g; 20797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20798 ;; #( 20799 *) 20800 # `set' quotes correctly as required by POSIX, so do not add quotes. 20801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20802 ;; 20803 esac | 20804 sort 20805) | 20806 sed ' 20807 /^ac_cv_env_/b end 20808 t clear 20809 :clear 20810 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20811 t end 20812 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20813 :end' >>confcache 20814if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20815 if test -w "$cache_file"; then 20816 test "x$cache_file" != "x/dev/null" && 20817 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 20818$as_echo "$as_me: updating cache $cache_file" >&6;} 20819 cat confcache >$cache_file 20820 else 20821 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20822$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20823 fi 20824fi 20825rm -f confcache 20826 20827test "x$prefix" = xNONE && prefix=$ac_default_prefix 20828# Let make expand exec_prefix. 20829test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20830 20831# Transform confdefs.h into DEFS. 20832# Protect against shell expansion while executing Makefile rules. 20833# Protect against Makefile macro expansion. 20834# 20835# If the first sed substitution is executed (which looks for macros that 20836# take arguments), then branch to the quote section. Otherwise, 20837# look for a macro that doesn't take arguments. 20838ac_script=' 20839:mline 20840/\\$/{ 20841 N 20842 s,\\\n,, 20843 b mline 20844} 20845t clear 20846:clear 20847s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 20848t quote 20849s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 20850t quote 20851b any 20852:quote 20853s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 20854s/\[/\\&/g 20855s/\]/\\&/g 20856s/\$/$$/g 20857H 20858:any 20859${ 20860 g 20861 s/^\n// 20862 s/\n/ /g 20863 p 20864} 20865' 20866DEFS=`sed -n "$ac_script" confdefs.h` 20867 20868 20869ac_libobjs= 20870ac_ltlibobjs= 20871for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20872 # 1. Remove the extension, and $U if already installed. 20873 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20874 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20875 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20876 # will be set to the directory where LIBOBJS objects are built. 20877 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20878 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20879done 20880LIBOBJS=$ac_libobjs 20881 20882LTLIBOBJS=$ac_ltlibobjs 20883 20884 20885if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20886 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20887Usually this means the macro was only invoked conditionally." >&5 20888$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 20889Usually this means the macro was only invoked conditionally." >&2;} 20890 { (exit 1); exit 1; }; } 20891fi 20892if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20893 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20894Usually this means the macro was only invoked conditionally." >&5 20895$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20896Usually this means the macro was only invoked conditionally." >&2;} 20897 { (exit 1); exit 1; }; } 20898fi 20899if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20900 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20901Usually this means the macro was only invoked conditionally." >&5 20902$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20903Usually this means the macro was only invoked conditionally." >&2;} 20904 { (exit 1); exit 1; }; } 20905fi 20906if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 20907 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined. 20908Usually this means the macro was only invoked conditionally." >&5 20909$as_echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined. 20910Usually this means the macro was only invoked conditionally." >&2;} 20911 { (exit 1); exit 1; }; } 20912fi 20913if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then 20914 { { $as_echo "$as_me:$LINENO: error: conditional \"GTK_DOC_BUILD_HTML\" was never defined. 20915Usually this means the macro was only invoked conditionally." >&5 20916$as_echo "$as_me: error: conditional \"GTK_DOC_BUILD_HTML\" was never defined. 20917Usually this means the macro was only invoked conditionally." >&2;} 20918 { (exit 1); exit 1; }; } 20919fi 20920if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then 20921 { { $as_echo "$as_me:$LINENO: error: conditional \"GTK_DOC_BUILD_PDF\" was never defined. 20922Usually this means the macro was only invoked conditionally." >&5 20923$as_echo "$as_me: error: conditional \"GTK_DOC_BUILD_PDF\" was never defined. 20924Usually this means the macro was only invoked conditionally." >&2;} 20925 { (exit 1); exit 1; }; } 20926fi 20927if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 20928 { { $as_echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 20929Usually this means the macro was only invoked conditionally." >&5 20930$as_echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 20931Usually this means the macro was only invoked conditionally." >&2;} 20932 { (exit 1); exit 1; }; } 20933fi 20934if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then 20935 { { $as_echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_REBASE\" was never defined. 20936Usually this means the macro was only invoked conditionally." >&5 20937$as_echo "$as_me: error: conditional \"GTK_DOC_USE_REBASE\" was never defined. 20938Usually this means the macro was only invoked conditionally." >&2;} 20939 { (exit 1); exit 1; }; } 20940fi 20941 20942: ${CONFIG_STATUS=./config.status} 20943ac_write_fail=0 20944ac_clean_files_save=$ac_clean_files 20945ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20946{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20947$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20948cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20949#! $SHELL 20950# Generated by $as_me. 20951# Run this file to recreate the current configuration. 20952# Compiler output produced by configure, useful for debugging 20953# configure, is in config.log if it exists. 20954 20955debug=false 20956ac_cs_recheck=false 20957ac_cs_silent=false 20958SHELL=\${CONFIG_SHELL-$SHELL} 20959_ACEOF 20960 20961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20962## --------------------- ## 20963## M4sh Initialization. ## 20964## --------------------- ## 20965 20966# Be more Bourne compatible 20967DUALCASE=1; export DUALCASE # for MKS sh 20968if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20969 emulate sh 20970 NULLCMD=: 20971 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20972 # is contrary to our usage. Disable this feature. 20973 alias -g '${1+"$@"}'='"$@"' 20974 setopt NO_GLOB_SUBST 20975else 20976 case `(set -o) 2>/dev/null` in 20977 *posix*) set -o posix ;; 20978esac 20979 20980fi 20981 20982 20983 20984 20985# PATH needs CR 20986# Avoid depending upon Character Ranges. 20987as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20988as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20989as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20990as_cr_digits='0123456789' 20991as_cr_alnum=$as_cr_Letters$as_cr_digits 20992 20993as_nl=' 20994' 20995export as_nl 20996# Printing a long string crashes Solaris 7 /usr/bin/printf. 20997as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20998as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20999as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21000if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21001 as_echo='printf %s\n' 21002 as_echo_n='printf %s' 21003else 21004 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21005 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21006 as_echo_n='/usr/ucb/echo -n' 21007 else 21008 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21009 as_echo_n_body='eval 21010 arg=$1; 21011 case $arg in 21012 *"$as_nl"*) 21013 expr "X$arg" : "X\\(.*\\)$as_nl"; 21014 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21015 esac; 21016 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21017 ' 21018 export as_echo_n_body 21019 as_echo_n='sh -c $as_echo_n_body as_echo' 21020 fi 21021 export as_echo_body 21022 as_echo='sh -c $as_echo_body as_echo' 21023fi 21024 21025# The user is always right. 21026if test "${PATH_SEPARATOR+set}" != set; then 21027 PATH_SEPARATOR=: 21028 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21029 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21030 PATH_SEPARATOR=';' 21031 } 21032fi 21033 21034# Support unset when possible. 21035if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21036 as_unset=unset 21037else 21038 as_unset=false 21039fi 21040 21041 21042# IFS 21043# We need space, tab and new line, in precisely that order. Quoting is 21044# there to prevent editors from complaining about space-tab. 21045# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21046# splitting by setting IFS to empty value.) 21047IFS=" "" $as_nl" 21048 21049# Find who we are. Look in the path if we contain no directory separator. 21050case $0 in 21051 *[\\/]* ) as_myself=$0 ;; 21052 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21053for as_dir in $PATH 21054do 21055 IFS=$as_save_IFS 21056 test -z "$as_dir" && as_dir=. 21057 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21058done 21059IFS=$as_save_IFS 21060 21061 ;; 21062esac 21063# We did not find ourselves, most probably we were run as `sh COMMAND' 21064# in which case we are not to be found in the path. 21065if test "x$as_myself" = x; then 21066 as_myself=$0 21067fi 21068if test ! -f "$as_myself"; then 21069 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21070 { (exit 1); exit 1; } 21071fi 21072 21073# Work around bugs in pre-3.0 UWIN ksh. 21074for as_var in ENV MAIL MAILPATH 21075do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21076done 21077PS1='$ ' 21078PS2='> ' 21079PS4='+ ' 21080 21081# NLS nuisances. 21082LC_ALL=C 21083export LC_ALL 21084LANGUAGE=C 21085export LANGUAGE 21086 21087# Required to use basename. 21088if expr a : '\(a\)' >/dev/null 2>&1 && 21089 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21090 as_expr=expr 21091else 21092 as_expr=false 21093fi 21094 21095if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21096 as_basename=basename 21097else 21098 as_basename=false 21099fi 21100 21101 21102# Name of the executable. 21103as_me=`$as_basename -- "$0" || 21104$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21105 X"$0" : 'X\(//\)$' \| \ 21106 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21107$as_echo X/"$0" | 21108 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21109 s//\1/ 21110 q 21111 } 21112 /^X\/\(\/\/\)$/{ 21113 s//\1/ 21114 q 21115 } 21116 /^X\/\(\/\).*/{ 21117 s//\1/ 21118 q 21119 } 21120 s/.*/./; q'` 21121 21122# CDPATH. 21123$as_unset CDPATH 21124 21125 21126 21127 as_lineno_1=$LINENO 21128 as_lineno_2=$LINENO 21129 test "x$as_lineno_1" != "x$as_lineno_2" && 21130 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21131 21132 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21133 # uniformly replaced by the line number. The first 'sed' inserts a 21134 # line-number line after each line using $LINENO; the second 'sed' 21135 # does the real work. The second script uses 'N' to pair each 21136 # line-number line with the line containing $LINENO, and appends 21137 # trailing '-' during substitution so that $LINENO is not a special 21138 # case at line end. 21139 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21140 # scripts with optimization help from Paolo Bonzini. Blame Lee 21141 # E. McMahon (1931-1989) for sed's syntax. :-) 21142 sed -n ' 21143 p 21144 /[$]LINENO/= 21145 ' <$as_myself | 21146 sed ' 21147 s/[$]LINENO.*/&-/ 21148 t lineno 21149 b 21150 :lineno 21151 N 21152 :loop 21153 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21154 t loop 21155 s/-\n.*// 21156 ' >$as_me.lineno && 21157 chmod +x "$as_me.lineno" || 21158 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21159 { (exit 1); exit 1; }; } 21160 21161 # Don't try to exec as it changes $[0], causing all sort of problems 21162 # (the dirname of $[0] is not the place where we might find the 21163 # original and so on. Autoconf is especially sensitive to this). 21164 . "./$as_me.lineno" 21165 # Exit status is that of the last command. 21166 exit 21167} 21168 21169 21170if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21171 as_dirname=dirname 21172else 21173 as_dirname=false 21174fi 21175 21176ECHO_C= ECHO_N= ECHO_T= 21177case `echo -n x` in 21178-n*) 21179 case `echo 'x\c'` in 21180 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21181 *) ECHO_C='\c';; 21182 esac;; 21183*) 21184 ECHO_N='-n';; 21185esac 21186if expr a : '\(a\)' >/dev/null 2>&1 && 21187 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21188 as_expr=expr 21189else 21190 as_expr=false 21191fi 21192 21193rm -f conf$$ conf$$.exe conf$$.file 21194if test -d conf$$.dir; then 21195 rm -f conf$$.dir/conf$$.file 21196else 21197 rm -f conf$$.dir 21198 mkdir conf$$.dir 2>/dev/null 21199fi 21200if (echo >conf$$.file) 2>/dev/null; then 21201 if ln -s conf$$.file conf$$ 2>/dev/null; then 21202 as_ln_s='ln -s' 21203 # ... but there are two gotchas: 21204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21206 # In both cases, we have to default to `cp -p'. 21207 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21208 as_ln_s='cp -p' 21209 elif ln conf$$.file conf$$ 2>/dev/null; then 21210 as_ln_s=ln 21211 else 21212 as_ln_s='cp -p' 21213 fi 21214else 21215 as_ln_s='cp -p' 21216fi 21217rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21218rmdir conf$$.dir 2>/dev/null 21219 21220if mkdir -p . 2>/dev/null; then 21221 as_mkdir_p=: 21222else 21223 test -d ./-p && rmdir ./-p 21224 as_mkdir_p=false 21225fi 21226 21227if test -x / >/dev/null 2>&1; then 21228 as_test_x='test -x' 21229else 21230 if ls -dL / >/dev/null 2>&1; then 21231 as_ls_L_option=L 21232 else 21233 as_ls_L_option= 21234 fi 21235 as_test_x=' 21236 eval sh -c '\'' 21237 if test -d "$1"; then 21238 test -d "$1/."; 21239 else 21240 case $1 in 21241 -*)set "./$1";; 21242 esac; 21243 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21244 ???[sx]*):;;*)false;;esac;fi 21245 '\'' sh 21246 ' 21247fi 21248as_executable_p=$as_test_x 21249 21250# Sed expression to map a string onto a valid CPP name. 21251as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21252 21253# Sed expression to map a string onto a valid variable name. 21254as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21255 21256 21257exec 6>&1 21258 21259# Save the log message, to keep $[0] and so on meaningful, and to 21260# report actual input values of CONFIG_FILES etc. instead of their 21261# values after options handling. 21262ac_log=" 21263This file was extended by gtkimageview $as_me 1.6.4, which was 21264generated by GNU Autoconf 2.62. Invocation command line was 21265 21266 CONFIG_FILES = $CONFIG_FILES 21267 CONFIG_HEADERS = $CONFIG_HEADERS 21268 CONFIG_LINKS = $CONFIG_LINKS 21269 CONFIG_COMMANDS = $CONFIG_COMMANDS 21270 $ $0 $@ 21271 21272on `(hostname || uname -n) 2>/dev/null | sed 1q` 21273" 21274 21275_ACEOF 21276 21277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21278# Files that config.status was made for. 21279config_files="$ac_config_files" 21280config_commands="$ac_config_commands" 21281 21282_ACEOF 21283 21284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21285ac_cs_usage="\ 21286\`$as_me' instantiates files from templates according to the 21287current configuration. 21288 21289Usage: $0 [OPTIONS] [FILE]... 21290 21291 -h, --help print this help, then exit 21292 -V, --version print version number and configuration settings, then exit 21293 -q, --quiet do not print progress messages 21294 -d, --debug don't remove temporary files 21295 --recheck update $as_me by reconfiguring in the same conditions 21296 --file=FILE[:TEMPLATE] 21297 instantiate the configuration file FILE 21298 21299Configuration files: 21300$config_files 21301 21302Configuration commands: 21303$config_commands 21304 21305Report bugs to <bug-autoconf@gnu.org>." 21306 21307_ACEOF 21308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21309ac_cs_version="\\ 21310gtkimageview config.status 1.6.4 21311configured by $0, generated by GNU Autoconf 2.62, 21312 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21313 21314Copyright (C) 2008 Free Software Foundation, Inc. 21315This config.status script is free software; the Free Software Foundation 21316gives unlimited permission to copy, distribute and modify it." 21317 21318ac_pwd='$ac_pwd' 21319srcdir='$srcdir' 21320INSTALL='$INSTALL' 21321MKDIR_P='$MKDIR_P' 21322AWK='$AWK' 21323test -n "\$AWK" || AWK=awk 21324_ACEOF 21325 21326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21327# The default lists apply if the user does not specify any file. 21328ac_need_defaults=: 21329while test $# != 0 21330do 21331 case $1 in 21332 --*=*) 21333 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21334 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21335 ac_shift=: 21336 ;; 21337 *) 21338 ac_option=$1 21339 ac_optarg=$2 21340 ac_shift=shift 21341 ;; 21342 esac 21343 21344 case $ac_option in 21345 # Handling of the options. 21346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21347 ac_cs_recheck=: ;; 21348 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21349 $as_echo "$ac_cs_version"; exit ;; 21350 --debug | --debu | --deb | --de | --d | -d ) 21351 debug=: ;; 21352 --file | --fil | --fi | --f ) 21353 $ac_shift 21354 case $ac_optarg in 21355 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21356 esac 21357 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 21358 ac_need_defaults=false;; 21359 --he | --h | --help | --hel | -h ) 21360 $as_echo "$ac_cs_usage"; exit ;; 21361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21362 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21363 ac_cs_silent=: ;; 21364 21365 # This is an error. 21366 -*) { $as_echo "$as_me: error: unrecognized option: $1 21367Try \`$0 --help' for more information." >&2 21368 { (exit 1); exit 1; }; } ;; 21369 21370 *) ac_config_targets="$ac_config_targets $1" 21371 ac_need_defaults=false ;; 21372 21373 esac 21374 shift 21375done 21376 21377ac_configure_extra_args= 21378 21379if $ac_cs_silent; then 21380 exec 6>/dev/null 21381 ac_configure_extra_args="$ac_configure_extra_args --silent" 21382fi 21383 21384_ACEOF 21385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21386if \$ac_cs_recheck; then 21387 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21388 shift 21389 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21390 CONFIG_SHELL='$SHELL' 21391 export CONFIG_SHELL 21392 exec "\$@" 21393fi 21394 21395_ACEOF 21396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21397exec 5>>config.log 21398{ 21399 echo 21400 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21401## Running $as_me. ## 21402_ASBOX 21403 $as_echo "$ac_log" 21404} >&5 21405 21406_ACEOF 21407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21408# 21409# INIT-COMMANDS 21410# 21411AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21412 21413_ACEOF 21414 21415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21416 21417# Handling of arguments. 21418for ac_config_target in $ac_config_targets 21419do 21420 case $ac_config_target in 21421 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21422 "gtkimageview.pc") CONFIG_FILES="$CONFIG_FILES gtkimageview.pc" ;; 21423 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21424 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 21425 "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;; 21426 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21427 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 21428 "tests/testlib/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testlib/Makefile" ;; 21429 21430 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21431$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21432 { (exit 1); exit 1; }; };; 21433 esac 21434done 21435 21436 21437# If the user did not use the arguments to specify the items to instantiate, 21438# then the envvar interface is used. Set only those that are not. 21439# We use the long form for the default assignment because of an extremely 21440# bizarre bug on SunOS 4.1.3. 21441if $ac_need_defaults; then 21442 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21443 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21444fi 21445 21446# Have a temporary directory for convenience. Make it in the build tree 21447# simply because there is no reason against having it here, and in addition, 21448# creating and moving files from /tmp can sometimes cause problems. 21449# Hook for its removal unless debugging. 21450# Note that there is a small window in which the directory will not be cleaned: 21451# after its creation but before its name has been assigned to `$tmp'. 21452$debug || 21453{ 21454 tmp= 21455 trap 'exit_status=$? 21456 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21457' 0 21458 trap '{ (exit 1); exit 1; }' 1 2 13 15 21459} 21460# Create a (secure) tmp directory for tmp files. 21461 21462{ 21463 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21464 test -n "$tmp" && test -d "$tmp" 21465} || 21466{ 21467 tmp=./conf$$-$RANDOM 21468 (umask 077 && mkdir "$tmp") 21469} || 21470{ 21471 $as_echo "$as_me: cannot create a temporary directory in ." >&2 21472 { (exit 1); exit 1; } 21473} 21474 21475# Set up the scripts for CONFIG_FILES section. 21476# No need to generate them if there are no CONFIG_FILES. 21477# This happens for instance with `./config.status config.h'. 21478if test -n "$CONFIG_FILES"; then 21479 21480 21481ac_cr=' 21482' 21483ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21484if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21485 ac_cs_awk_cr='\\r' 21486else 21487 ac_cs_awk_cr=$ac_cr 21488fi 21489 21490echo 'BEGIN {' >"$tmp/subs1.awk" && 21491_ACEOF 21492 21493 21494{ 21495 echo "cat >conf$$subs.awk <<_ACEOF" && 21496 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21497 echo "_ACEOF" 21498} >conf$$subs.sh || 21499 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21500$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21501 { (exit 1); exit 1; }; } 21502ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 21503ac_delim='%!_!# ' 21504for ac_last_try in false false false false false :; do 21505 . ./conf$$subs.sh || 21506 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21507$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21508 { (exit 1); exit 1; }; } 21509 21510 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 21511 break 21512 elif $ac_last_try; then 21513 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21514$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21515 { (exit 1); exit 1; }; } 21516 else 21517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21518 fi 21519done 21520rm -f conf$$subs.sh 21521 21522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21523cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 21524_ACEOF 21525sed -n ' 21526h 21527s/^/S["/; s/!.*/"]=/ 21528p 21529g 21530s/^[^!]*!// 21531:repl 21532t repl 21533s/'"$ac_delim"'$// 21534t delim 21535:nl 21536h 21537s/\(.\{148\}\).*/\1/ 21538t more1 21539s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21540p 21541n 21542b repl 21543:more1 21544s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21545p 21546g 21547s/.\{148\}// 21548t nl 21549:delim 21550h 21551s/\(.\{148\}\).*/\1/ 21552t more2 21553s/["\\]/\\&/g; s/^/"/; s/$/"/ 21554p 21555b 21556:more2 21557s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21558p 21559g 21560s/.\{148\}// 21561t delim 21562' <conf$$subs.awk | sed ' 21563/^[^""]/{ 21564 N 21565 s/\n// 21566} 21567' >>$CONFIG_STATUS || ac_write_fail=1 21568rm -f conf$$subs.awk 21569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21570_ACAWK 21571cat >>"\$tmp/subs1.awk" <<_ACAWK && 21572 for (key in S) S_is_set[key] = 1 21573 FS = "" 21574 21575} 21576{ 21577 line = $ 0 21578 nfields = split(line, field, "@") 21579 substed = 0 21580 len = length(field[1]) 21581 for (i = 2; i < nfields; i++) { 21582 key = field[i] 21583 keylen = length(key) 21584 if (S_is_set[key]) { 21585 value = S[key] 21586 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21587 len += length(value) + length(field[++i]) 21588 substed = 1 21589 } else 21590 len += 1 + keylen 21591 } 21592 21593 print line 21594} 21595 21596_ACAWK 21597_ACEOF 21598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21599if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21600 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21601else 21602 cat 21603fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 21604 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 21605$as_echo "$as_me: error: could not setup config files machinery" >&2;} 21606 { (exit 1); exit 1; }; } 21607_ACEOF 21608 21609# VPATH may cause trouble with some makes, so we remove $(srcdir), 21610# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21611# trailing colons and then remove the whole line if VPATH becomes empty 21612# (actually we leave an empty line to preserve line numbers). 21613if test "x$srcdir" = x.; then 21614 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21615s/:*\$(srcdir):*/:/ 21616s/:*\${srcdir}:*/:/ 21617s/:*@srcdir@:*/:/ 21618s/^\([^=]*=[ ]*\):*/\1/ 21619s/:*$// 21620s/^[^=]*=[ ]*$// 21621}' 21622fi 21623 21624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21625fi # test -n "$CONFIG_FILES" 21626 21627 21628eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 21629shift 21630for ac_tag 21631do 21632 case $ac_tag in 21633 :[FHLC]) ac_mode=$ac_tag; continue;; 21634 esac 21635 case $ac_mode$ac_tag in 21636 :[FHL]*:*);; 21637 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21638$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21639 { (exit 1); exit 1; }; };; 21640 :[FH]-) ac_tag=-:-;; 21641 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21642 esac 21643 ac_save_IFS=$IFS 21644 IFS=: 21645 set x $ac_tag 21646 IFS=$ac_save_IFS 21647 shift 21648 ac_file=$1 21649 shift 21650 21651 case $ac_mode in 21652 :L) ac_source=$1;; 21653 :[FH]) 21654 ac_file_inputs= 21655 for ac_f 21656 do 21657 case $ac_f in 21658 -) ac_f="$tmp/stdin";; 21659 *) # Look for the file first in the build tree, then in the source tree 21660 # (if the path is not absolute). The absolute path cannot be DOS-style, 21661 # because $ac_f cannot contain `:'. 21662 test -f "$ac_f" || 21663 case $ac_f in 21664 [\\/$]*) false;; 21665 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21666 esac || 21667 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21668$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21669 { (exit 1); exit 1; }; };; 21670 esac 21671 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21672 ac_file_inputs="$ac_file_inputs '$ac_f'" 21673 done 21674 21675 # Let's still pretend it is `configure' which instantiates (i.e., don't 21676 # use $as_me), people would be surprised to read: 21677 # /* config.h. Generated by config.status. */ 21678 configure_input='Generated from '` 21679 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21680 `' by configure.' 21681 if test x"$ac_file" != x-; then 21682 configure_input="$ac_file. $configure_input" 21683 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 21684$as_echo "$as_me: creating $ac_file" >&6;} 21685 fi 21686 # Neutralize special characters interpreted by sed in replacement strings. 21687 case $configure_input in #( 21688 *\&* | *\|* | *\\* ) 21689 ac_sed_conf_input=`$as_echo "$configure_input" | 21690 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21691 *) ac_sed_conf_input=$configure_input;; 21692 esac 21693 21694 case $ac_tag in 21695 *:-:* | *:-) cat >"$tmp/stdin" \ 21696 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 21697$as_echo "$as_me: error: could not create $ac_file" >&2;} 21698 { (exit 1); exit 1; }; } ;; 21699 esac 21700 ;; 21701 esac 21702 21703 ac_dir=`$as_dirname -- "$ac_file" || 21704$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21705 X"$ac_file" : 'X\(//\)[^/]' \| \ 21706 X"$ac_file" : 'X\(//\)$' \| \ 21707 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21708$as_echo X"$ac_file" | 21709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21710 s//\1/ 21711 q 21712 } 21713 /^X\(\/\/\)[^/].*/{ 21714 s//\1/ 21715 q 21716 } 21717 /^X\(\/\/\)$/{ 21718 s//\1/ 21719 q 21720 } 21721 /^X\(\/\).*/{ 21722 s//\1/ 21723 q 21724 } 21725 s/.*/./; q'` 21726 { as_dir="$ac_dir" 21727 case $as_dir in #( 21728 -*) as_dir=./$as_dir;; 21729 esac 21730 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21731 as_dirs= 21732 while :; do 21733 case $as_dir in #( 21734 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21735 *) as_qdir=$as_dir;; 21736 esac 21737 as_dirs="'$as_qdir' $as_dirs" 21738 as_dir=`$as_dirname -- "$as_dir" || 21739$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21740 X"$as_dir" : 'X\(//\)[^/]' \| \ 21741 X"$as_dir" : 'X\(//\)$' \| \ 21742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21743$as_echo X"$as_dir" | 21744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21745 s//\1/ 21746 q 21747 } 21748 /^X\(\/\/\)[^/].*/{ 21749 s//\1/ 21750 q 21751 } 21752 /^X\(\/\/\)$/{ 21753 s//\1/ 21754 q 21755 } 21756 /^X\(\/\).*/{ 21757 s//\1/ 21758 q 21759 } 21760 s/.*/./; q'` 21761 test -d "$as_dir" && break 21762 done 21763 test -z "$as_dirs" || eval "mkdir $as_dirs" 21764 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21765$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 21766 { (exit 1); exit 1; }; }; } 21767 ac_builddir=. 21768 21769case "$ac_dir" in 21770.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21771*) 21772 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21773 # A ".." for each directory in $ac_dir_suffix. 21774 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21775 case $ac_top_builddir_sub in 21776 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21777 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21778 esac ;; 21779esac 21780ac_abs_top_builddir=$ac_pwd 21781ac_abs_builddir=$ac_pwd$ac_dir_suffix 21782# for backward compatibility: 21783ac_top_builddir=$ac_top_build_prefix 21784 21785case $srcdir in 21786 .) # We are building in place. 21787 ac_srcdir=. 21788 ac_top_srcdir=$ac_top_builddir_sub 21789 ac_abs_top_srcdir=$ac_pwd ;; 21790 [\\/]* | ?:[\\/]* ) # Absolute name. 21791 ac_srcdir=$srcdir$ac_dir_suffix; 21792 ac_top_srcdir=$srcdir 21793 ac_abs_top_srcdir=$srcdir ;; 21794 *) # Relative name. 21795 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21796 ac_top_srcdir=$ac_top_build_prefix$srcdir 21797 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21798esac 21799ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21800 21801 21802 case $ac_mode in 21803 :F) 21804 # 21805 # CONFIG_FILE 21806 # 21807 21808 case $INSTALL in 21809 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21810 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21811 esac 21812 ac_MKDIR_P=$MKDIR_P 21813 case $MKDIR_P in 21814 [\\/$]* | ?:[\\/]* ) ;; 21815 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21816 esac 21817_ACEOF 21818 21819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21820# If the template does not know about datarootdir, expand it. 21821# FIXME: This hack should be removed a few years after 2.60. 21822ac_datarootdir_hack=; ac_datarootdir_seen= 21823 21824ac_sed_dataroot=' 21825/datarootdir/ { 21826 p 21827 q 21828} 21829/@datadir@/p 21830/@docdir@/p 21831/@infodir@/p 21832/@localedir@/p 21833/@mandir@/p 21834' 21835case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21836*datarootdir*) ac_datarootdir_seen=yes;; 21837*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21838 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21839$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21840_ACEOF 21841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21842 ac_datarootdir_hack=' 21843 s&@datadir@&$datadir&g 21844 s&@docdir@&$docdir&g 21845 s&@infodir@&$infodir&g 21846 s&@localedir@&$localedir&g 21847 s&@mandir@&$mandir&g 21848 s&\\\${datarootdir}&$datarootdir&g' ;; 21849esac 21850_ACEOF 21851 21852# Neutralize VPATH when `$srcdir' = `.'. 21853# Shell code in configure.ac might set extrasub. 21854# FIXME: do we really want to maintain this feature? 21855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21856ac_sed_extra="$ac_vpsub 21857$extrasub 21858_ACEOF 21859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21860:t 21861/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21862s|@configure_input@|$ac_sed_conf_input|;t t 21863s&@top_builddir@&$ac_top_builddir_sub&;t t 21864s&@top_build_prefix@&$ac_top_build_prefix&;t t 21865s&@srcdir@&$ac_srcdir&;t t 21866s&@abs_srcdir@&$ac_abs_srcdir&;t t 21867s&@top_srcdir@&$ac_top_srcdir&;t t 21868s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21869s&@builddir@&$ac_builddir&;t t 21870s&@abs_builddir@&$ac_abs_builddir&;t t 21871s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21872s&@INSTALL@&$ac_INSTALL&;t t 21873s&@MKDIR_P@&$ac_MKDIR_P&;t t 21874$ac_datarootdir_hack 21875" 21876eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 21877 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 21878$as_echo "$as_me: error: could not create $ac_file" >&2;} 21879 { (exit 1); exit 1; }; } 21880 21881test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21882 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21883 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21884 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21885which seems to be undefined. Please make sure it is defined." >&5 21886$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21887which seems to be undefined. Please make sure it is defined." >&2;} 21888 21889 rm -f "$tmp/stdin" 21890 case $ac_file in 21891 -) cat "$tmp/out" && rm -f "$tmp/out";; 21892 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 21893 esac \ 21894 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 21895$as_echo "$as_me: error: could not create $ac_file" >&2;} 21896 { (exit 1); exit 1; }; } 21897 ;; 21898 21899 21900 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 21901$as_echo "$as_me: executing $ac_file commands" >&6;} 21902 ;; 21903 esac 21904 21905 21906 case $ac_file$ac_mode in 21907 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21908 # Strip MF so we end up with the name of the file. 21909 mf=`echo "$mf" | sed -e 's/:.*$//'` 21910 # Check whether this is an Automake generated Makefile or not. 21911 # We used to match only the files named `Makefile.in', but 21912 # some people rename them; so instead we look at the file content. 21913 # Grep'ing the first line is not enough: some people post-process 21914 # each Makefile.in and add a new line on top of each file to say so. 21915 # Grep'ing the whole file is not good either: AIX grep has a line 21916 # limit of 2048, but all sed's we know have understand at least 4000. 21917 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21918 dirpart=`$as_dirname -- "$mf" || 21919$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21920 X"$mf" : 'X\(//\)[^/]' \| \ 21921 X"$mf" : 'X\(//\)$' \| \ 21922 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21923$as_echo X"$mf" | 21924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21925 s//\1/ 21926 q 21927 } 21928 /^X\(\/\/\)[^/].*/{ 21929 s//\1/ 21930 q 21931 } 21932 /^X\(\/\/\)$/{ 21933 s//\1/ 21934 q 21935 } 21936 /^X\(\/\).*/{ 21937 s//\1/ 21938 q 21939 } 21940 s/.*/./; q'` 21941 else 21942 continue 21943 fi 21944 # Extract the definition of DEPDIR, am__include, and am__quote 21945 # from the Makefile without running `make'. 21946 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21947 test -z "$DEPDIR" && continue 21948 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21949 test -z "am__include" && continue 21950 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21951 # When using ansi2knr, U may be empty or an underscore; expand it 21952 U=`sed -n 's/^U = //p' < "$mf"` 21953 # Find all dependency output files, they are included files with 21954 # $(DEPDIR) in their names. We invoke sed twice because it is the 21955 # simplest approach to changing $(DEPDIR) to its actual value in the 21956 # expansion. 21957 for file in `sed -n " 21958 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21959 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21960 # Make sure the directory exists. 21961 test -f "$dirpart/$file" && continue 21962 fdir=`$as_dirname -- "$file" || 21963$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21964 X"$file" : 'X\(//\)[^/]' \| \ 21965 X"$file" : 'X\(//\)$' \| \ 21966 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21967$as_echo X"$file" | 21968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21969 s//\1/ 21970 q 21971 } 21972 /^X\(\/\/\)[^/].*/{ 21973 s//\1/ 21974 q 21975 } 21976 /^X\(\/\/\)$/{ 21977 s//\1/ 21978 q 21979 } 21980 /^X\(\/\).*/{ 21981 s//\1/ 21982 q 21983 } 21984 s/.*/./; q'` 21985 { as_dir=$dirpart/$fdir 21986 case $as_dir in #( 21987 -*) as_dir=./$as_dir;; 21988 esac 21989 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21990 as_dirs= 21991 while :; do 21992 case $as_dir in #( 21993 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21994 *) as_qdir=$as_dir;; 21995 esac 21996 as_dirs="'$as_qdir' $as_dirs" 21997 as_dir=`$as_dirname -- "$as_dir" || 21998$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21999 X"$as_dir" : 'X\(//\)[^/]' \| \ 22000 X"$as_dir" : 'X\(//\)$' \| \ 22001 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22002$as_echo X"$as_dir" | 22003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22004 s//\1/ 22005 q 22006 } 22007 /^X\(\/\/\)[^/].*/{ 22008 s//\1/ 22009 q 22010 } 22011 /^X\(\/\/\)$/{ 22012 s//\1/ 22013 q 22014 } 22015 /^X\(\/\).*/{ 22016 s//\1/ 22017 q 22018 } 22019 s/.*/./; q'` 22020 test -d "$as_dir" && break 22021 done 22022 test -z "$as_dirs" || eval "mkdir $as_dirs" 22023 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22024$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22025 { (exit 1); exit 1; }; }; } 22026 # echo "creating $dirpart/$file" 22027 echo '# dummy' > "$dirpart/$file" 22028 done 22029done 22030 ;; 22031 22032 esac 22033done # for ac_tag 22034 22035 22036{ (exit 0); exit 0; } 22037_ACEOF 22038chmod +x $CONFIG_STATUS 22039ac_clean_files=$ac_clean_files_save 22040 22041test $ac_write_fail = 0 || 22042 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 22043$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 22044 { (exit 1); exit 1; }; } 22045 22046 22047# configure is writing to config.log, and then calls config.status. 22048# config.status does its own redirection, appending to config.log. 22049# Unfortunately, on DOS this fails, as config.log is still kept open 22050# by configure, so config.status won't be able to write to it; its 22051# output is simply discarded. So we exec the FD to /dev/null, 22052# effectively closing config.log, so it can be properly (re)opened and 22053# appended to by config.status. When coming back to configure, we 22054# need to make the FD available again. 22055if test "$no_create" != yes; then 22056 ac_cs_success=: 22057 ac_config_status_args= 22058 test "$silent" = yes && 22059 ac_config_status_args="$ac_config_status_args --quiet" 22060 exec 5>/dev/null 22061 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22062 exec 5>>config.log 22063 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22064 # would make configure fail if this is the last instruction. 22065 $ac_cs_success || { (exit 1); exit 1; } 22066fi 22067if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22068 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 22069$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 22070fi 22071 22072 22073echo " 22074 22075Configuration: 22076 22077 Source code location: ${srcdir} 22078 Compiler: ${CC} 22079 CFLAGS: ${CFLAGS} 22080 22081 22082" 22083 22084 22085