1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553# Check that we are running under the correct shell. 554SHELL=${CONFIG_SHELL-/bin/sh} 555 556case X$ECHO in 557X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561esac 562 563echo=${ECHO-echo} 564if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576fi 577 578if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582$* 583EOF 584 exit 0 585fi 586 587# The HP-UX ksh and POSIX shell print the target directory to stdout 588# if CDPATH is set. 589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591if test -z "$ECHO"; then 592if test "X${echo_test_string+set}" != Xset; then 593# find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603fi 604 605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689fi 690fi 691 692# Copy echo and quote the copy suitably for passing to libtool from 693# the Makefile, instead of quoting the original, which is used later. 694ECHO=$echo 695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697fi 698 699 700 701 702tagnames=${tagnames+${tagnames},}CXX 703 704tagnames=${tagnames+${tagnames},}F77 705 706exec 7<&0 </dev/null 6>&1 707 708# Name of the host. 709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710# so uname gets run too. 711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713# 714# Initializations. 715# 716ac_default_prefix=/usr/local 717ac_clean_files= 718ac_config_libobj_dir=. 719LIBOBJS= 720cross_compiling=no 721subdirs= 722MFLAGS= 723MAKEFLAGS= 724SHELL=${CONFIG_SHELL-/bin/sh} 725 726# Identity of this package. 727PACKAGE_NAME= 728PACKAGE_TARNAME= 729PACKAGE_VERSION= 730PACKAGE_STRING= 731PACKAGE_BUGREPORT= 732 733ac_unique_file="configure.in" 734# Factoring default headers for most tests. 735ac_includes_default="\ 736#include <stdio.h> 737#ifdef HAVE_SYS_TYPES_H 738# include <sys/types.h> 739#endif 740#ifdef HAVE_SYS_STAT_H 741# include <sys/stat.h> 742#endif 743#ifdef STDC_HEADERS 744# include <stdlib.h> 745# include <stddef.h> 746#else 747# ifdef HAVE_STDLIB_H 748# include <stdlib.h> 749# endif 750#endif 751#ifdef HAVE_STRING_H 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753# include <memory.h> 754# endif 755# include <string.h> 756#endif 757#ifdef HAVE_STRINGS_H 758# include <strings.h> 759#endif 760#ifdef HAVE_INTTYPES_H 761# include <inttypes.h> 762#endif 763#ifdef HAVE_STDINT_H 764# include <stdint.h> 765#endif 766#ifdef HAVE_UNISTD_H 767# include <unistd.h> 768#endif" 769 770ac_subst_vars='SHELL 771PATH_SEPARATOR 772PACKAGE_NAME 773PACKAGE_TARNAME 774PACKAGE_VERSION 775PACKAGE_STRING 776PACKAGE_BUGREPORT 777exec_prefix 778prefix 779program_transform_name 780bindir 781sbindir 782libexecdir 783datarootdir 784datadir 785sysconfdir 786sharedstatedir 787localstatedir 788includedir 789oldincludedir 790docdir 791infodir 792htmldir 793dvidir 794pdfdir 795psdir 796libdir 797localedir 798mandir 799DEFS 800ECHO_C 801ECHO_N 802ECHO_T 803LIBS 804build_alias 805host_alias 806target_alias 807INSTALL_PROGRAM 808INSTALL_SCRIPT 809INSTALL_DATA 810CYGPATH_W 811PACKAGE 812VERSION 813ACLOCAL 814AUTOCONF 815AUTOMAKE 816AUTOHEADER 817MAKEINFO 818AMTAR 819install_sh 820STRIP 821INSTALL_STRIP_PROGRAM 822mkdir_p 823AWK 824SET_MAKE 825am__leading_dot 826MAINTAINER_MODE_TRUE 827MAINTAINER_MODE_FALSE 828MAINT 829DEBUG_TRUE 830DEBUG_FALSE 831XRCMODE_TRUE 832XRCMODE_FALSE 833NOXRCMODE_TRUE 834NOXRCMODE_FALSE 835WIN32BUILD_TRUE 836WIN32BUILD_FALSE 837PORTABLE_TRUE 838PORTABLE_FALSE 839CC 840CFLAGS 841LDFLAGS 842CPPFLAGS 843ac_ct_CC 844EXEEXT 845OBJEXT 846DEPDIR 847am__include 848am__quote 849AMDEP_TRUE 850AMDEP_FALSE 851AMDEPBACKSLASH 852CCDEPMODE 853am__fastdepCC_TRUE 854am__fastdepCC_FALSE 855CPP 856GREP 857EGREP 858CXX 859CXXFLAGS 860ac_ct_CXX 861CXXDEPMODE 862am__fastdepCXX_TRUE 863am__fastdepCXX_FALSE 864build 865build_cpu 866build_vendor 867build_os 868host 869host_cpu 870host_vendor 871host_os 872LN_S 873ECHO 874AR 875RANLIB 876CXXCPP 877F77 878FFLAGS 879ac_ct_F77 880LIBTOOL 881WINDRES 882WX_CONFIG_PATH 883WX_CPPFLAGS 884WX_CFLAGS 885WX_CXXFLAGS 886WX_CFLAGS_ONLY 887WX_CXXFLAGS_ONLY 888WX_LIBS 889WX_LIBS_STATIC 890WX_VERSION 891WXRC 892LIBOBJS 893LTLIBOBJS' 894ac_subst_files='' 895 ac_precious_vars='build_alias 896host_alias 897target_alias 898CC 899CFLAGS 900LDFLAGS 901LIBS 902CPPFLAGS 903CPP 904CXX 905CXXFLAGS 906CCC 907CXXCPP 908F77 909FFLAGS' 910 911 912# Initialize some variables set by options. 913ac_init_help= 914ac_init_version=false 915# The variables have the same names as the options, with 916# dashes changed to underlines. 917cache_file=/dev/null 918exec_prefix=NONE 919no_create= 920no_recursion= 921prefix=NONE 922program_prefix=NONE 923program_suffix=NONE 924program_transform_name=s,x,x, 925silent= 926site= 927srcdir= 928verbose= 929x_includes=NONE 930x_libraries=NONE 931 932# Installation directory options. 933# These are left unexpanded so users can "make install exec_prefix=/foo" 934# and all the variables that are supposed to be based on exec_prefix 935# by default will actually change. 936# Use braces instead of parens because sh, perl, etc. also accept them. 937# (The list follows the same order as the GNU Coding Standards.) 938bindir='${exec_prefix}/bin' 939sbindir='${exec_prefix}/sbin' 940libexecdir='${exec_prefix}/libexec' 941datarootdir='${prefix}/share' 942datadir='${datarootdir}' 943sysconfdir='${prefix}/etc' 944sharedstatedir='${prefix}/com' 945localstatedir='${prefix}/var' 946includedir='${prefix}/include' 947oldincludedir='/usr/include' 948docdir='${datarootdir}/doc/${PACKAGE}' 949infodir='${datarootdir}/info' 950htmldir='${docdir}' 951dvidir='${docdir}' 952pdfdir='${docdir}' 953psdir='${docdir}' 954libdir='${exec_prefix}/lib' 955localedir='${datarootdir}/locale' 956mandir='${datarootdir}/man' 957 958ac_prev= 959ac_dashdash= 960for ac_option 961do 962 # If the previous option needs an argument, assign it. 963 if test -n "$ac_prev"; then 964 eval $ac_prev=\$ac_option 965 ac_prev= 966 continue 967 fi 968 969 case $ac_option in 970 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 971 *) ac_optarg=yes ;; 972 esac 973 974 # Accept the important Cygnus configure options, so we can diagnose typos. 975 976 case $ac_dashdash$ac_option in 977 --) 978 ac_dashdash=yes ;; 979 980 -bindir | --bindir | --bindi | --bind | --bin | --bi) 981 ac_prev=bindir ;; 982 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 983 bindir=$ac_optarg ;; 984 985 -build | --build | --buil | --bui | --bu) 986 ac_prev=build_alias ;; 987 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 988 build_alias=$ac_optarg ;; 989 990 -cache-file | --cache-file | --cache-fil | --cache-fi \ 991 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 992 ac_prev=cache_file ;; 993 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 994 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 995 cache_file=$ac_optarg ;; 996 997 --config-cache | -C) 998 cache_file=config.cache ;; 999 1000 -datadir | --datadir | --datadi | --datad) 1001 ac_prev=datadir ;; 1002 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1003 datadir=$ac_optarg ;; 1004 1005 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1006 | --dataroo | --dataro | --datar) 1007 ac_prev=datarootdir ;; 1008 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1009 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1010 datarootdir=$ac_optarg ;; 1011 1012 -disable-* | --disable-*) 1013 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1014 # Reject names that are not valid shell variable names. 1015 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1016 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1017 { (exit 1); exit 1; }; } 1018 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1019 eval enable_$ac_feature=no ;; 1020 1021 -docdir | --docdir | --docdi | --doc | --do) 1022 ac_prev=docdir ;; 1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1024 docdir=$ac_optarg ;; 1025 1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1027 ac_prev=dvidir ;; 1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1029 dvidir=$ac_optarg ;; 1030 1031 -enable-* | --enable-*) 1032 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1033 # Reject names that are not valid shell variable names. 1034 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1035 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1036 { (exit 1); exit 1; }; } 1037 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1038 eval enable_$ac_feature=\$ac_optarg ;; 1039 1040 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1041 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1042 | --exec | --exe | --ex) 1043 ac_prev=exec_prefix ;; 1044 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1045 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1046 | --exec=* | --exe=* | --ex=*) 1047 exec_prefix=$ac_optarg ;; 1048 1049 -gas | --gas | --ga | --g) 1050 # Obsolete; use --with-gas. 1051 with_gas=yes ;; 1052 1053 -help | --help | --hel | --he | -h) 1054 ac_init_help=long ;; 1055 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1056 ac_init_help=recursive ;; 1057 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1058 ac_init_help=short ;; 1059 1060 -host | --host | --hos | --ho) 1061 ac_prev=host_alias ;; 1062 -host=* | --host=* | --hos=* | --ho=*) 1063 host_alias=$ac_optarg ;; 1064 1065 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1066 ac_prev=htmldir ;; 1067 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1068 | --ht=*) 1069 htmldir=$ac_optarg ;; 1070 1071 -includedir | --includedir | --includedi | --included | --include \ 1072 | --includ | --inclu | --incl | --inc) 1073 ac_prev=includedir ;; 1074 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1075 | --includ=* | --inclu=* | --incl=* | --inc=*) 1076 includedir=$ac_optarg ;; 1077 1078 -infodir | --infodir | --infodi | --infod | --info | --inf) 1079 ac_prev=infodir ;; 1080 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1081 infodir=$ac_optarg ;; 1082 1083 -libdir | --libdir | --libdi | --libd) 1084 ac_prev=libdir ;; 1085 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1086 libdir=$ac_optarg ;; 1087 1088 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1089 | --libexe | --libex | --libe) 1090 ac_prev=libexecdir ;; 1091 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1092 | --libexe=* | --libex=* | --libe=*) 1093 libexecdir=$ac_optarg ;; 1094 1095 -localedir | --localedir | --localedi | --localed | --locale) 1096 ac_prev=localedir ;; 1097 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1098 localedir=$ac_optarg ;; 1099 1100 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1101 | --localstate | --localstat | --localsta | --localst | --locals) 1102 ac_prev=localstatedir ;; 1103 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1104 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1105 localstatedir=$ac_optarg ;; 1106 1107 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1108 ac_prev=mandir ;; 1109 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1110 mandir=$ac_optarg ;; 1111 1112 -nfp | --nfp | --nf) 1113 # Obsolete; use --without-fp. 1114 with_fp=no ;; 1115 1116 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1117 | --no-cr | --no-c | -n) 1118 no_create=yes ;; 1119 1120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1122 no_recursion=yes ;; 1123 1124 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1125 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1126 | --oldin | --oldi | --old | --ol | --o) 1127 ac_prev=oldincludedir ;; 1128 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1129 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1130 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1131 oldincludedir=$ac_optarg ;; 1132 1133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1134 ac_prev=prefix ;; 1135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1136 prefix=$ac_optarg ;; 1137 1138 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1139 | --program-pre | --program-pr | --program-p) 1140 ac_prev=program_prefix ;; 1141 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1142 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1143 program_prefix=$ac_optarg ;; 1144 1145 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1146 | --program-suf | --program-su | --program-s) 1147 ac_prev=program_suffix ;; 1148 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1149 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1150 program_suffix=$ac_optarg ;; 1151 1152 -program-transform-name | --program-transform-name \ 1153 | --program-transform-nam | --program-transform-na \ 1154 | --program-transform-n | --program-transform- \ 1155 | --program-transform | --program-transfor \ 1156 | --program-transfo | --program-transf \ 1157 | --program-trans | --program-tran \ 1158 | --progr-tra | --program-tr | --program-t) 1159 ac_prev=program_transform_name ;; 1160 -program-transform-name=* | --program-transform-name=* \ 1161 | --program-transform-nam=* | --program-transform-na=* \ 1162 | --program-transform-n=* | --program-transform-=* \ 1163 | --program-transform=* | --program-transfor=* \ 1164 | --program-transfo=* | --program-transf=* \ 1165 | --program-trans=* | --program-tran=* \ 1166 | --progr-tra=* | --program-tr=* | --program-t=*) 1167 program_transform_name=$ac_optarg ;; 1168 1169 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1170 ac_prev=pdfdir ;; 1171 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1172 pdfdir=$ac_optarg ;; 1173 1174 -psdir | --psdir | --psdi | --psd | --ps) 1175 ac_prev=psdir ;; 1176 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1177 psdir=$ac_optarg ;; 1178 1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1180 | -silent | --silent | --silen | --sile | --sil) 1181 silent=yes ;; 1182 1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1184 ac_prev=sbindir ;; 1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1186 | --sbi=* | --sb=*) 1187 sbindir=$ac_optarg ;; 1188 1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1191 | --sharedst | --shareds | --shared | --share | --shar \ 1192 | --sha | --sh) 1193 ac_prev=sharedstatedir ;; 1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1197 | --sha=* | --sh=*) 1198 sharedstatedir=$ac_optarg ;; 1199 1200 -site | --site | --sit) 1201 ac_prev=site ;; 1202 -site=* | --site=* | --sit=*) 1203 site=$ac_optarg ;; 1204 1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1206 ac_prev=srcdir ;; 1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1208 srcdir=$ac_optarg ;; 1209 1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1211 | --syscon | --sysco | --sysc | --sys | --sy) 1212 ac_prev=sysconfdir ;; 1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1215 sysconfdir=$ac_optarg ;; 1216 1217 -target | --target | --targe | --targ | --tar | --ta | --t) 1218 ac_prev=target_alias ;; 1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1220 target_alias=$ac_optarg ;; 1221 1222 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1223 verbose=yes ;; 1224 1225 -version | --version | --versio | --versi | --vers | -V) 1226 ac_init_version=: ;; 1227 1228 -with-* | --with-*) 1229 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1230 # Reject names that are not valid shell variable names. 1231 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1232 { echo "$as_me: error: invalid package name: $ac_package" >&2 1233 { (exit 1); exit 1; }; } 1234 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1235 eval with_$ac_package=\$ac_optarg ;; 1236 1237 -without-* | --without-*) 1238 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1239 # Reject names that are not valid shell variable names. 1240 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1241 { echo "$as_me: error: invalid package name: $ac_package" >&2 1242 { (exit 1); exit 1; }; } 1243 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1244 eval with_$ac_package=no ;; 1245 1246 --x) 1247 # Obsolete; use --with-x. 1248 with_x=yes ;; 1249 1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1251 | --x-incl | --x-inc | --x-in | --x-i) 1252 ac_prev=x_includes ;; 1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1255 x_includes=$ac_optarg ;; 1256 1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1259 ac_prev=x_libraries ;; 1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1262 x_libraries=$ac_optarg ;; 1263 1264 -*) { echo "$as_me: error: unrecognized option: $ac_option 1265Try \`$0 --help' for more information." >&2 1266 { (exit 1); exit 1; }; } 1267 ;; 1268 1269 *=*) 1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1271 # Reject names that are not valid shell variable names. 1272 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1273 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1274 { (exit 1); exit 1; }; } 1275 eval $ac_envvar=\$ac_optarg 1276 export $ac_envvar ;; 1277 1278 *) 1279 # FIXME: should be removed in autoconf 3.0. 1280 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1282 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1283 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1284 ;; 1285 1286 esac 1287done 1288 1289if test -n "$ac_prev"; then 1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1291 { echo "$as_me: error: missing argument to $ac_option" >&2 1292 { (exit 1); exit 1; }; } 1293fi 1294 1295# Be sure to have absolute directory names. 1296for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1297 datadir sysconfdir sharedstatedir localstatedir includedir \ 1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1299 libdir localedir mandir 1300do 1301 eval ac_val=\$$ac_var 1302 case $ac_val in 1303 [\\/$]* | ?:[\\/]* ) continue;; 1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1305 esac 1306 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1307 { (exit 1); exit 1; }; } 1308done 1309 1310# There might be people who depend on the old broken behavior: `$host' 1311# used to hold the argument of --host etc. 1312# FIXME: To remove some day. 1313build=$build_alias 1314host=$host_alias 1315target=$target_alias 1316 1317# FIXME: To remove some day. 1318if test "x$host_alias" != x; then 1319 if test "x$build_alias" = x; then 1320 cross_compiling=maybe 1321 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1322 If a cross compiler is detected then cross compile mode will be used." >&2 1323 elif test "x$build_alias" != "x$host_alias"; then 1324 cross_compiling=yes 1325 fi 1326fi 1327 1328ac_tool_prefix= 1329test -n "$host_alias" && ac_tool_prefix=$host_alias- 1330 1331test "$silent" = yes && exec 6>/dev/null 1332 1333 1334ac_pwd=`pwd` && test -n "$ac_pwd" && 1335ac_ls_di=`ls -di .` && 1336ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1337 { echo "$as_me: error: Working directory cannot be determined" >&2 1338 { (exit 1); exit 1; }; } 1339test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1340 { echo "$as_me: error: pwd does not report name of working directory" >&2 1341 { (exit 1); exit 1; }; } 1342 1343 1344# Find the source files, if location was not specified. 1345if test -z "$srcdir"; then 1346 ac_srcdir_defaulted=yes 1347 # Try the directory containing this script, then the parent directory. 1348 ac_confdir=`$as_dirname -- "$0" || 1349$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1350 X"$0" : 'X\(//\)[^/]' \| \ 1351 X"$0" : 'X\(//\)$' \| \ 1352 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1353echo X"$0" | 1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\/\)[^/].*/{ 1359 s//\1/ 1360 q 1361 } 1362 /^X\(\/\/\)$/{ 1363 s//\1/ 1364 q 1365 } 1366 /^X\(\/\).*/{ 1367 s//\1/ 1368 q 1369 } 1370 s/.*/./; q'` 1371 srcdir=$ac_confdir 1372 if test ! -r "$srcdir/$ac_unique_file"; then 1373 srcdir=.. 1374 fi 1375else 1376 ac_srcdir_defaulted=no 1377fi 1378if test ! -r "$srcdir/$ac_unique_file"; then 1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1380 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1381 { (exit 1); exit 1; }; } 1382fi 1383ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1384ac_abs_confdir=`( 1385 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1386 { (exit 1); exit 1; }; } 1387 pwd)` 1388# When building in place, set srcdir=. 1389if test "$ac_abs_confdir" = "$ac_pwd"; then 1390 srcdir=. 1391fi 1392# Remove unnecessary trailing slashes from srcdir. 1393# Double slashes in file names in object file debugging info 1394# mess up M-x gdb in Emacs. 1395case $srcdir in 1396*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1397esac 1398for ac_var in $ac_precious_vars; do 1399 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1400 eval ac_env_${ac_var}_value=\$${ac_var} 1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1402 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1403done 1404 1405# 1406# Report the --help message. 1407# 1408if test "$ac_init_help" = "long"; then 1409 # Omit some internal or obsolete options to make the list less imposing. 1410 # This message is too long to be a string in the A/UX 3.1 sh. 1411 cat <<_ACEOF 1412\`configure' configures this package to adapt to many kinds of systems. 1413 1414Usage: $0 [OPTION]... [VAR=VALUE]... 1415 1416To assign environment variables (e.g., CC, CFLAGS...), specify them as 1417VAR=VALUE. See below for descriptions of some of the useful variables. 1418 1419Defaults for the options are specified in brackets. 1420 1421Configuration: 1422 -h, --help display this help and exit 1423 --help=short display options specific to this package 1424 --help=recursive display the short help of all the included packages 1425 -V, --version display version information and exit 1426 -q, --quiet, --silent do not print \`checking...' messages 1427 --cache-file=FILE cache test results in FILE [disabled] 1428 -C, --config-cache alias for \`--cache-file=config.cache' 1429 -n, --no-create do not create output files 1430 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1431 1432Installation directories: 1433 --prefix=PREFIX install architecture-independent files in PREFIX 1434 [$ac_default_prefix] 1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1436 [PREFIX] 1437 1438By default, \`make install' will install all the files in 1439\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1440an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1441for instance \`--prefix=\$HOME'. 1442 1443For better control, use the options below. 1444 1445Fine tuning of the installation directories: 1446 --bindir=DIR user executables [EPREFIX/bin] 1447 --sbindir=DIR system admin executables [EPREFIX/sbin] 1448 --libexecdir=DIR program executables [EPREFIX/libexec] 1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1452 --libdir=DIR object code libraries [EPREFIX/lib] 1453 --includedir=DIR C header files [PREFIX/include] 1454 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1457 --infodir=DIR info documentation [DATAROOTDIR/info] 1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1459 --mandir=DIR man documentation [DATAROOTDIR/man] 1460 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1461 --htmldir=DIR html documentation [DOCDIR] 1462 --dvidir=DIR dvi documentation [DOCDIR] 1463 --pdfdir=DIR pdf documentation [DOCDIR] 1464 --psdir=DIR ps documentation [DOCDIR] 1465_ACEOF 1466 1467 cat <<\_ACEOF 1468 1469Program names: 1470 --program-prefix=PREFIX prepend PREFIX to installed program names 1471 --program-suffix=SUFFIX append SUFFIX to installed program names 1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1473 1474System types: 1475 --build=BUILD configure for building on BUILD [guessed] 1476 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1477_ACEOF 1478fi 1479 1480if test -n "$ac_init_help"; then 1481 1482 cat <<\_ACEOF 1483 1484Optional Features: 1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1487 --enable-maintainer-mode enable make rules and dependencies not useful 1488 (and sometimes confusing) to the casual installer 1489 --enable-debug This option build the program in debug mode 1490 --enable-xrcmode This option make the program to use external xrc 1491 files, instead of built-in 1492 --enable-win32build Use this option when building on Windows systems 1493 --enable-portable Use this option to build in portable mode (Windows only) 1494 --disable-dependency-tracking speeds up one-time build 1495 --enable-dependency-tracking do not reject slow dependency extractors 1496 --enable-shared[=PKGS] build shared libraries [default=yes] 1497 --enable-static[=PKGS] build static libraries [default=yes] 1498 --enable-fast-install[=PKGS] 1499 optimize for fast installation [default=yes] 1500 --disable-libtool-lock avoid locking (might break parallel builds) 1501 1502Optional Packages: 1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1506 --with-pic try to use only PIC/non-PIC objects [default=use 1507 both] 1508 --with-tags[=TAGS] include additional configurations [automatic] 1509 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH 1510 --with-wx-config=CONFIG wx-config script to use (optional) 1511 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional) 1512 --with-wx-exec-prefix=PREFIX 1513 Exec prefix where wxWidgets is installed (optional) 1514 1515Some influential environment variables: 1516 CC C compiler command 1517 CFLAGS C compiler flags 1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1519 nonstandard directory <lib dir> 1520 LIBS libraries to pass to the linker, e.g. -l<library> 1521 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1522 you have headers in a nonstandard directory <include dir> 1523 CPP C preprocessor 1524 CXX C++ compiler command 1525 CXXFLAGS C++ compiler flags 1526 CXXCPP C++ preprocessor 1527 F77 Fortran 77 compiler command 1528 FFLAGS Fortran 77 compiler flags 1529 1530Use these variables to override the choices made by `configure' or to help 1531it to find libraries and programs with nonstandard names/locations. 1532 1533_ACEOF 1534ac_status=$? 1535fi 1536 1537if test "$ac_init_help" = "recursive"; then 1538 # If there are subdirs, report their specific --help. 1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1540 test -d "$ac_dir" || continue 1541 ac_builddir=. 1542 1543case "$ac_dir" in 1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545*) 1546 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1547 # A ".." for each directory in $ac_dir_suffix. 1548 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1549 case $ac_top_builddir_sub in 1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1552 esac ;; 1553esac 1554ac_abs_top_builddir=$ac_pwd 1555ac_abs_builddir=$ac_pwd$ac_dir_suffix 1556# for backward compatibility: 1557ac_top_builddir=$ac_top_build_prefix 1558 1559case $srcdir in 1560 .) # We are building in place. 1561 ac_srcdir=. 1562 ac_top_srcdir=$ac_top_builddir_sub 1563 ac_abs_top_srcdir=$ac_pwd ;; 1564 [\\/]* | ?:[\\/]* ) # Absolute name. 1565 ac_srcdir=$srcdir$ac_dir_suffix; 1566 ac_top_srcdir=$srcdir 1567 ac_abs_top_srcdir=$srcdir ;; 1568 *) # Relative name. 1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1570 ac_top_srcdir=$ac_top_build_prefix$srcdir 1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1572esac 1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1574 1575 cd "$ac_dir" || { ac_status=$?; continue; } 1576 # Check for guested configure. 1577 if test -f "$ac_srcdir/configure.gnu"; then 1578 echo && 1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1580 elif test -f "$ac_srcdir/configure"; then 1581 echo && 1582 $SHELL "$ac_srcdir/configure" --help=recursive 1583 else 1584 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1585 fi || ac_status=$? 1586 cd "$ac_pwd" || { ac_status=$?; break; } 1587 done 1588fi 1589 1590test -n "$ac_init_help" && exit $ac_status 1591if $ac_init_version; then 1592 cat <<\_ACEOF 1593configure 1594generated by GNU Autoconf 2.61 1595 1596Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15972002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1598This configure script is free software; the Free Software Foundation 1599gives unlimited permission to copy, distribute and modify it. 1600_ACEOF 1601 exit 1602fi 1603cat >config.log <<_ACEOF 1604This file contains any messages produced by compilers while 1605running configure, to aid debugging if configure makes a mistake. 1606 1607It was created by $as_me, which was 1608generated by GNU Autoconf 2.61. Invocation command line was 1609 1610 $ $0 $@ 1611 1612_ACEOF 1613exec 5>>config.log 1614{ 1615cat <<_ASUNAME 1616## --------- ## 1617## Platform. ## 1618## --------- ## 1619 1620hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1621uname -m = `(uname -m) 2>/dev/null || echo unknown` 1622uname -r = `(uname -r) 2>/dev/null || echo unknown` 1623uname -s = `(uname -s) 2>/dev/null || echo unknown` 1624uname -v = `(uname -v) 2>/dev/null || echo unknown` 1625 1626/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1627/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1628 1629/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1630/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1631/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1632/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1633/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1634/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1635/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1636 1637_ASUNAME 1638 1639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1640for as_dir in $PATH 1641do 1642 IFS=$as_save_IFS 1643 test -z "$as_dir" && as_dir=. 1644 echo "PATH: $as_dir" 1645done 1646IFS=$as_save_IFS 1647 1648} >&5 1649 1650cat >&5 <<_ACEOF 1651 1652 1653## ----------- ## 1654## Core tests. ## 1655## ----------- ## 1656 1657_ACEOF 1658 1659 1660# Keep a trace of the command line. 1661# Strip out --no-create and --no-recursion so they do not pile up. 1662# Strip out --silent because we don't want to record it for future runs. 1663# Also quote any args containing shell meta-characters. 1664# Make two passes to allow for proper duplicate-argument suppression. 1665ac_configure_args= 1666ac_configure_args0= 1667ac_configure_args1= 1668ac_must_keep_next=false 1669for ac_pass in 1 2 1670do 1671 for ac_arg 1672 do 1673 case $ac_arg in 1674 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1676 | -silent | --silent | --silen | --sile | --sil) 1677 continue ;; 1678 *\'*) 1679 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1680 esac 1681 case $ac_pass in 1682 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1683 2) 1684 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1685 if test $ac_must_keep_next = true; then 1686 ac_must_keep_next=false # Got value, back to normal. 1687 else 1688 case $ac_arg in 1689 *=* | --config-cache | -C | -disable-* | --disable-* \ 1690 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1691 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1692 | -with-* | --with-* | -without-* | --without-* | --x) 1693 case "$ac_configure_args0 " in 1694 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1695 esac 1696 ;; 1697 -* ) ac_must_keep_next=true ;; 1698 esac 1699 fi 1700 ac_configure_args="$ac_configure_args '$ac_arg'" 1701 ;; 1702 esac 1703 done 1704done 1705$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1706$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1707 1708# When interrupted or exit'd, cleanup temporary files, and complete 1709# config.log. We remove comments because anyway the quotes in there 1710# would cause problems or look ugly. 1711# WARNING: Use '\'' to represent an apostrophe within the trap. 1712# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1713trap 'exit_status=$? 1714 # Save into config.log some information that might help in debugging. 1715 { 1716 echo 1717 1718 cat <<\_ASBOX 1719## ---------------- ## 1720## Cache variables. ## 1721## ---------------- ## 1722_ASBOX 1723 echo 1724 # The following way of writing the cache mishandles newlines in values, 1725( 1726 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1727 eval ac_val=\$$ac_var 1728 case $ac_val in #( 1729 *${as_nl}*) 1730 case $ac_var in #( 1731 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1732echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1733 esac 1734 case $ac_var in #( 1735 _ | IFS | as_nl) ;; #( 1736 *) $as_unset $ac_var ;; 1737 esac ;; 1738 esac 1739 done 1740 (set) 2>&1 | 1741 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1742 *${as_nl}ac_space=\ *) 1743 sed -n \ 1744 "s/'\''/'\''\\\\'\'''\''/g; 1745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1746 ;; #( 1747 *) 1748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1749 ;; 1750 esac | 1751 sort 1752) 1753 echo 1754 1755 cat <<\_ASBOX 1756## ----------------- ## 1757## Output variables. ## 1758## ----------------- ## 1759_ASBOX 1760 echo 1761 for ac_var in $ac_subst_vars 1762 do 1763 eval ac_val=\$$ac_var 1764 case $ac_val in 1765 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1766 esac 1767 echo "$ac_var='\''$ac_val'\''" 1768 done | sort 1769 echo 1770 1771 if test -n "$ac_subst_files"; then 1772 cat <<\_ASBOX 1773## ------------------- ## 1774## File substitutions. ## 1775## ------------------- ## 1776_ASBOX 1777 echo 1778 for ac_var in $ac_subst_files 1779 do 1780 eval ac_val=\$$ac_var 1781 case $ac_val in 1782 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1783 esac 1784 echo "$ac_var='\''$ac_val'\''" 1785 done | sort 1786 echo 1787 fi 1788 1789 if test -s confdefs.h; then 1790 cat <<\_ASBOX 1791## ----------- ## 1792## confdefs.h. ## 1793## ----------- ## 1794_ASBOX 1795 echo 1796 cat confdefs.h 1797 echo 1798 fi 1799 test "$ac_signal" != 0 && 1800 echo "$as_me: caught signal $ac_signal" 1801 echo "$as_me: exit $exit_status" 1802 } >&5 1803 rm -f core *.core core.conftest.* && 1804 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1805 exit $exit_status 1806' 0 1807for ac_signal in 1 2 13 15; do 1808 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1809done 1810ac_signal=0 1811 1812# confdefs.h avoids OS command line length limits that DEFS can exceed. 1813rm -f -r conftest* confdefs.h 1814 1815# Predefined preprocessor variables. 1816 1817cat >>confdefs.h <<_ACEOF 1818#define PACKAGE_NAME "$PACKAGE_NAME" 1819_ACEOF 1820 1821 1822cat >>confdefs.h <<_ACEOF 1823#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1824_ACEOF 1825 1826 1827cat >>confdefs.h <<_ACEOF 1828#define PACKAGE_VERSION "$PACKAGE_VERSION" 1829_ACEOF 1830 1831 1832cat >>confdefs.h <<_ACEOF 1833#define PACKAGE_STRING "$PACKAGE_STRING" 1834_ACEOF 1835 1836 1837cat >>confdefs.h <<_ACEOF 1838#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1839_ACEOF 1840 1841 1842# Let the site file select an alternate cache file if it wants to. 1843# Prefer explicitly selected file to automatically selected ones. 1844if test -n "$CONFIG_SITE"; then 1845 set x "$CONFIG_SITE" 1846elif test "x$prefix" != xNONE; then 1847 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1848else 1849 set x "$ac_default_prefix/share/config.site" \ 1850 "$ac_default_prefix/etc/config.site" 1851fi 1852shift 1853for ac_site_file 1854do 1855 if test -r "$ac_site_file"; then 1856 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1857echo "$as_me: loading site script $ac_site_file" >&6;} 1858 sed 's/^/| /' "$ac_site_file" >&5 1859 . "$ac_site_file" 1860 fi 1861done 1862 1863if test -r "$cache_file"; then 1864 # Some versions of bash will fail to source /dev/null (special 1865 # files actually), so we avoid doing that. 1866 if test -f "$cache_file"; then 1867 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1868echo "$as_me: loading cache $cache_file" >&6;} 1869 case $cache_file in 1870 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1871 *) . "./$cache_file";; 1872 esac 1873 fi 1874else 1875 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1876echo "$as_me: creating cache $cache_file" >&6;} 1877 >$cache_file 1878fi 1879 1880# Check that the precious variables saved in the cache have kept the same 1881# value. 1882ac_cache_corrupted=false 1883for ac_var in $ac_precious_vars; do 1884 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1885 eval ac_new_set=\$ac_env_${ac_var}_set 1886 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1887 eval ac_new_val=\$ac_env_${ac_var}_value 1888 case $ac_old_set,$ac_new_set in 1889 set,) 1890 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1891echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1892 ac_cache_corrupted=: ;; 1893 ,set) 1894 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1895echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1896 ac_cache_corrupted=: ;; 1897 ,);; 1898 *) 1899 if test "x$ac_old_val" != "x$ac_new_val"; then 1900 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1901echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1902 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1903echo "$as_me: former value: $ac_old_val" >&2;} 1904 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1905echo "$as_me: current value: $ac_new_val" >&2;} 1906 ac_cache_corrupted=: 1907 fi;; 1908 esac 1909 # Pass precious variables to config.status. 1910 if test "$ac_new_set" = set; then 1911 case $ac_new_val in 1912 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1913 *) ac_arg=$ac_var=$ac_new_val ;; 1914 esac 1915 case " $ac_configure_args " in 1916 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1917 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1918 esac 1919 fi 1920done 1921if $ac_cache_corrupted; then 1922 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1923echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1924 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1925echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1926 { (exit 1); exit 1; }; } 1927fi 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945ac_ext=c 1946ac_cpp='$CPP $CPPFLAGS' 1947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1949ac_compiler_gnu=$ac_cv_c_compiler_gnu 1950 1951 1952am__api_version="1.8" 1953ac_aux_dir= 1954for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1955 if test -f "$ac_dir/install-sh"; then 1956 ac_aux_dir=$ac_dir 1957 ac_install_sh="$ac_aux_dir/install-sh -c" 1958 break 1959 elif test -f "$ac_dir/install.sh"; then 1960 ac_aux_dir=$ac_dir 1961 ac_install_sh="$ac_aux_dir/install.sh -c" 1962 break 1963 elif test -f "$ac_dir/shtool"; then 1964 ac_aux_dir=$ac_dir 1965 ac_install_sh="$ac_aux_dir/shtool install -c" 1966 break 1967 fi 1968done 1969if test -z "$ac_aux_dir"; then 1970 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1971echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1972 { (exit 1); exit 1; }; } 1973fi 1974 1975# These three variables are undocumented and unsupported, 1976# and are intended to be withdrawn in a future Autoconf release. 1977# They can cause serious problems if a builder's source tree is in a directory 1978# whose full name contains unusual characters. 1979ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1980ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1981ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1982 1983 1984# Find a good install program. We prefer a C program (faster), 1985# so one script is as good as another. But avoid the broken or 1986# incompatible versions: 1987# SysV /etc/install, /usr/sbin/install 1988# SunOS /usr/etc/install 1989# IRIX /sbin/install 1990# AIX /bin/install 1991# AmigaOS /C/install, which installs bootblocks on floppy discs 1992# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1993# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1994# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1995# OS/2's system install, which has a completely different semantic 1996# ./install, which can be erroneously created by make from ./install.sh. 1997{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1998echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1999if test -z "$INSTALL"; then 2000if test "${ac_cv_path_install+set}" = set; then 2001 echo $ECHO_N "(cached) $ECHO_C" >&6 2002else 2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2004for as_dir in $PATH 2005do 2006 IFS=$as_save_IFS 2007 test -z "$as_dir" && as_dir=. 2008 # Account for people who put trailing slashes in PATH elements. 2009case $as_dir/ in 2010 ./ | .// | /cC/* | \ 2011 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2012 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2013 /usr/ucb/* ) ;; 2014 *) 2015 # OSF1 and SCO ODT 3.0 have their own names for install. 2016 # Don't use installbsd from OSF since it installs stuff as root 2017 # by default. 2018 for ac_prog in ginstall scoinst install; do 2019 for ac_exec_ext in '' $ac_executable_extensions; do 2020 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2021 if test $ac_prog = install && 2022 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2023 # AIX install. It has an incompatible calling convention. 2024 : 2025 elif test $ac_prog = install && 2026 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2027 # program-specific install script used by HP pwplus--don't use. 2028 : 2029 else 2030 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2031 break 3 2032 fi 2033 fi 2034 done 2035 done 2036 ;; 2037esac 2038done 2039IFS=$as_save_IFS 2040 2041 2042fi 2043 if test "${ac_cv_path_install+set}" = set; then 2044 INSTALL=$ac_cv_path_install 2045 else 2046 # As a last resort, use the slow shell script. Don't cache a 2047 # value for INSTALL within a source directory, because that will 2048 # break other packages using the cache if that directory is 2049 # removed, or if the value is a relative name. 2050 INSTALL=$ac_install_sh 2051 fi 2052fi 2053{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2054echo "${ECHO_T}$INSTALL" >&6; } 2055 2056# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2057# It thinks the first close brace ends the variable substitution. 2058test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2059 2060test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2061 2062test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2063 2064{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2065echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2066# Just in case 2067sleep 1 2068echo timestamp > conftest.file 2069# Do `set' in a subshell so we don't clobber the current shell's 2070# arguments. Must try -L first in case configure is actually a 2071# symlink; some systems play weird games with the mod time of symlinks 2072# (eg FreeBSD returns the mod time of the symlink's containing 2073# directory). 2074if ( 2075 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2076 if test "$*" = "X"; then 2077 # -L didn't work. 2078 set X `ls -t $srcdir/configure conftest.file` 2079 fi 2080 rm -f conftest.file 2081 if test "$*" != "X $srcdir/configure conftest.file" \ 2082 && test "$*" != "X conftest.file $srcdir/configure"; then 2083 2084 # If neither matched, then we have a broken ls. This can happen 2085 # if, for instance, CONFIG_SHELL is bash and it inherits a 2086 # broken ls alias from the environment. This has actually 2087 # happened. Such a system could not be considered "sane". 2088 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2089alias in your environment" >&5 2090echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2091alias in your environment" >&2;} 2092 { (exit 1); exit 1; }; } 2093 fi 2094 2095 test "$2" = conftest.file 2096 ) 2097then 2098 # Ok. 2099 : 2100else 2101 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2102Check your system clock" >&5 2103echo "$as_me: error: newly created file is older than distributed files! 2104Check your system clock" >&2;} 2105 { (exit 1); exit 1; }; } 2106fi 2107{ echo "$as_me:$LINENO: result: yes" >&5 2108echo "${ECHO_T}yes" >&6; } 2109test "$program_prefix" != NONE && 2110 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2111# Use a double $ so make ignores it. 2112test "$program_suffix" != NONE && 2113 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2114# Double any \ or $. echo might interpret backslashes. 2115# By default was `s,x,x', remove it if useless. 2116cat <<\_ACEOF >conftest.sed 2117s/[\\$]/&&/g;s/;s,x,x,$// 2118_ACEOF 2119program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2120rm -f conftest.sed 2121 2122# expand $ac_aux_dir to an absolute path 2123am_aux_dir=`cd $ac_aux_dir && pwd` 2124 2125test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2126# Use eval to expand $SHELL 2127if eval "$MISSING --run true"; then 2128 am_missing_run="$MISSING --run " 2129else 2130 am_missing_run= 2131 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2132echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2133fi 2134 2135if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2136 # Keeping the `.' argument allows $(mkdir_p) to be used without 2137 # argument. Indeed, we sometimes output rules like 2138 # $(mkdir_p) $(somedir) 2139 # where $(somedir) is conditionally defined. 2140 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 2141 # expensive solution, as it forces Make to start a sub-shell.) 2142 mkdir_p='mkdir -p -- .' 2143else 2144 # On NextStep and OpenStep, the `mkdir' command does not 2145 # recognize any option. It will interpret all options as 2146 # directories to create, and then abort because `.' already 2147 # exists. 2148 for d in ./-p ./--version; 2149 do 2150 test -d $d && rmdir $d 2151 done 2152 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2153 if test -f "$ac_aux_dir/mkinstalldirs"; then 2154 mkdir_p='$(mkinstalldirs)' 2155 else 2156 mkdir_p='$(install_sh) -d' 2157 fi 2158fi 2159 2160for ac_prog in gawk mawk nawk awk 2161do 2162 # Extract the first word of "$ac_prog", so it can be a program name with args. 2163set dummy $ac_prog; ac_word=$2 2164{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2166if test "${ac_cv_prog_AWK+set}" = set; then 2167 echo $ECHO_N "(cached) $ECHO_C" >&6 2168else 2169 if test -n "$AWK"; then 2170 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2171else 2172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2173for as_dir in $PATH 2174do 2175 IFS=$as_save_IFS 2176 test -z "$as_dir" && as_dir=. 2177 for ac_exec_ext in '' $ac_executable_extensions; do 2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2179 ac_cv_prog_AWK="$ac_prog" 2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2181 break 2 2182 fi 2183done 2184done 2185IFS=$as_save_IFS 2186 2187fi 2188fi 2189AWK=$ac_cv_prog_AWK 2190if test -n "$AWK"; then 2191 { echo "$as_me:$LINENO: result: $AWK" >&5 2192echo "${ECHO_T}$AWK" >&6; } 2193else 2194 { echo "$as_me:$LINENO: result: no" >&5 2195echo "${ECHO_T}no" >&6; } 2196fi 2197 2198 2199 test -n "$AWK" && break 2200done 2201 2202{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2203echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2204set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2205if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2206 echo $ECHO_N "(cached) $ECHO_C" >&6 2207else 2208 cat >conftest.make <<\_ACEOF 2209SHELL = /bin/sh 2210all: 2211 @echo '@@@%%%=$(MAKE)=@@@%%%' 2212_ACEOF 2213# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2214case `${MAKE-make} -f conftest.make 2>/dev/null` in 2215 *@@@%%%=?*=@@@%%%*) 2216 eval ac_cv_prog_make_${ac_make}_set=yes;; 2217 *) 2218 eval ac_cv_prog_make_${ac_make}_set=no;; 2219esac 2220rm -f conftest.make 2221fi 2222if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2223 { echo "$as_me:$LINENO: result: yes" >&5 2224echo "${ECHO_T}yes" >&6; } 2225 SET_MAKE= 2226else 2227 { echo "$as_me:$LINENO: result: no" >&5 2228echo "${ECHO_T}no" >&6; } 2229 SET_MAKE="MAKE=${MAKE-make}" 2230fi 2231 2232rm -rf .tst 2>/dev/null 2233mkdir .tst 2>/dev/null 2234if test -d .tst; then 2235 am__leading_dot=. 2236else 2237 am__leading_dot=_ 2238fi 2239rmdir .tst 2>/dev/null 2240 2241# test to see if srcdir already configured 2242if test "`cd $srcdir && pwd`" != "`pwd`" && 2243 test -f $srcdir/config.status; then 2244 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2245echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2246 { (exit 1); exit 1; }; } 2247fi 2248 2249# test whether we have cygpath 2250if test -z "$CYGPATH_W"; then 2251 if (cygpath --version) >/dev/null 2>/dev/null; then 2252 CYGPATH_W='cygpath -w' 2253 else 2254 CYGPATH_W=echo 2255 fi 2256fi 2257 2258 2259# Define the identity of the package. 2260 PACKAGE=wxdfast 2261 VERSION=0.6.0 2262 2263 2264cat >>confdefs.h <<_ACEOF 2265#define PACKAGE "$PACKAGE" 2266_ACEOF 2267 2268 2269cat >>confdefs.h <<_ACEOF 2270#define VERSION "$VERSION" 2271_ACEOF 2272 2273# Some tools Automake needs. 2274 2275ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2276 2277 2278AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2279 2280 2281AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2282 2283 2284AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2285 2286 2287MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2288 2289 2290AMTAR=${AMTAR-"${am_missing_run}tar"} 2291 2292install_sh=${install_sh-"$am_aux_dir/install-sh"} 2293 2294# Installed binaries are usually stripped using `strip' when the user 2295# run `make install-strip'. However `strip' might not be the right 2296# tool to use in cross-compilation environments, therefore Automake 2297# will honor the `STRIP' environment variable to overrule this program. 2298if test "$cross_compiling" != no; then 2299 if test -n "$ac_tool_prefix"; then 2300 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2301set dummy ${ac_tool_prefix}strip; ac_word=$2 2302{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2304if test "${ac_cv_prog_STRIP+set}" = set; then 2305 echo $ECHO_N "(cached) $ECHO_C" >&6 2306else 2307 if test -n "$STRIP"; then 2308 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2309else 2310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2311for as_dir in $PATH 2312do 2313 IFS=$as_save_IFS 2314 test -z "$as_dir" && as_dir=. 2315 for ac_exec_ext in '' $ac_executable_extensions; do 2316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2317 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2319 break 2 2320 fi 2321done 2322done 2323IFS=$as_save_IFS 2324 2325fi 2326fi 2327STRIP=$ac_cv_prog_STRIP 2328if test -n "$STRIP"; then 2329 { echo "$as_me:$LINENO: result: $STRIP" >&5 2330echo "${ECHO_T}$STRIP" >&6; } 2331else 2332 { echo "$as_me:$LINENO: result: no" >&5 2333echo "${ECHO_T}no" >&6; } 2334fi 2335 2336 2337fi 2338if test -z "$ac_cv_prog_STRIP"; then 2339 ac_ct_STRIP=$STRIP 2340 # Extract the first word of "strip", so it can be a program name with args. 2341set dummy strip; ac_word=$2 2342{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2344if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2345 echo $ECHO_N "(cached) $ECHO_C" >&6 2346else 2347 if test -n "$ac_ct_STRIP"; then 2348 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2349else 2350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2351for as_dir in $PATH 2352do 2353 IFS=$as_save_IFS 2354 test -z "$as_dir" && as_dir=. 2355 for ac_exec_ext in '' $ac_executable_extensions; do 2356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2357 ac_cv_prog_ac_ct_STRIP="strip" 2358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2359 break 2 2360 fi 2361done 2362done 2363IFS=$as_save_IFS 2364 2365fi 2366fi 2367ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2368if test -n "$ac_ct_STRIP"; then 2369 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2370echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2371else 2372 { echo "$as_me:$LINENO: result: no" >&5 2373echo "${ECHO_T}no" >&6; } 2374fi 2375 2376 if test "x$ac_ct_STRIP" = x; then 2377 STRIP=":" 2378 else 2379 case $cross_compiling:$ac_tool_warned in 2380yes:) 2381{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2382whose name does not start with the host triplet. If you think this 2383configuration is useful to you, please write to autoconf@gnu.org." >&5 2384echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2385whose name does not start with the host triplet. If you think this 2386configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2387ac_tool_warned=yes ;; 2388esac 2389 STRIP=$ac_ct_STRIP 2390 fi 2391else 2392 STRIP="$ac_cv_prog_STRIP" 2393fi 2394 2395fi 2396INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2397 2398# We need awk for the "check" target. The system "awk" is bad on 2399# some platforms. 2400 2401 2402 2403ac_config_headers="$ac_config_headers config.h" 2404 2405{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2406echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2407 # Check whether --enable-maintainer-mode was given. 2408if test "${enable_maintainer_mode+set}" = set; then 2409 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2410else 2411 USE_MAINTAINER_MODE=no 2412fi 2413 2414 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2415echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2416 2417 2418if test $USE_MAINTAINER_MODE = yes; then 2419 MAINTAINER_MODE_TRUE= 2420 MAINTAINER_MODE_FALSE='#' 2421else 2422 MAINTAINER_MODE_TRUE='#' 2423 MAINTAINER_MODE_FALSE= 2424fi 2425 2426 MAINT=$MAINTAINER_MODE_TRUE 2427 2428 2429 2430ALL_LINGUAS="cs de es fr hu id pl pt_BR nl ru tr" 2431 2432# Check whether --enable-debug was given. 2433if test "${enable_debug+set}" = set; then 2434 enableval=$enable_debug; debug=yes 2435fi 2436 2437 2438# Check whether --enable-xrcmode was given. 2439if test "${enable_xrcmode+set}" = set; then 2440 enableval=$enable_xrcmode; xrcmode=yes 2441fi 2442 2443 2444# Check whether --enable-win32build was given. 2445if test "${enable_win32build+set}" = set; then 2446 enableval=$enable_win32build; win32build=yes 2447fi 2448 2449 2450# Check whether --enable-portable was given. 2451if test "${enable_portable+set}" = set; then 2452 enableval=$enable_portable; portable=yes 2453fi 2454 2455 2456 2457 2458 2459if test x$debug = xyes; then 2460 DEBUG_TRUE= 2461 DEBUG_FALSE='#' 2462else 2463 DEBUG_TRUE='#' 2464 DEBUG_FALSE= 2465fi 2466 2467 2468 2469if test x$xrcmode = xyes; then 2470 XRCMODE_TRUE= 2471 XRCMODE_FALSE='#' 2472else 2473 XRCMODE_TRUE='#' 2474 XRCMODE_FALSE= 2475fi 2476 2477 2478 2479if test x$xrcmode = x; then 2480 NOXRCMODE_TRUE= 2481 NOXRCMODE_FALSE='#' 2482else 2483 NOXRCMODE_TRUE='#' 2484 NOXRCMODE_FALSE= 2485fi 2486 2487 2488 2489if test x$win32build = xyes; then 2490 WIN32BUILD_TRUE= 2491 WIN32BUILD_FALSE='#' 2492else 2493 WIN32BUILD_TRUE='#' 2494 WIN32BUILD_FALSE= 2495fi 2496 2497 2498 2499if test x$portable = xyes; then 2500 PORTABLE_TRUE= 2501 PORTABLE_FALSE='#' 2502else 2503 PORTABLE_TRUE='#' 2504 PORTABLE_FALSE= 2505fi 2506 2507 2508DEPDIR="${am__leading_dot}deps" 2509 2510ac_config_commands="$ac_config_commands depfiles" 2511 2512 2513am_make=${MAKE-make} 2514cat > confinc << 'END' 2515am__doit: 2516 @echo done 2517.PHONY: am__doit 2518END 2519# If we don't find an include directive, just comment out the code. 2520{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2521echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2522am__include="#" 2523am__quote= 2524_am_result=none 2525# First try GNU make style include. 2526echo "include confinc" > confmf 2527# We grep out `Entering directory' and `Leaving directory' 2528# messages which can occur if `w' ends up in MAKEFLAGS. 2529# In particular we don't look at `^make:' because GNU make might 2530# be invoked under some other name (usually "gmake"), in which 2531# case it prints its new name instead of `make'. 2532if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2533 am__include=include 2534 am__quote= 2535 _am_result=GNU 2536fi 2537# Now try BSD make style include. 2538if test "$am__include" = "#"; then 2539 echo '.include "confinc"' > confmf 2540 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2541 am__include=.include 2542 am__quote="\"" 2543 _am_result=BSD 2544 fi 2545fi 2546 2547 2548{ echo "$as_me:$LINENO: result: $_am_result" >&5 2549echo "${ECHO_T}$_am_result" >&6; } 2550rm -f confinc confmf 2551 2552# Check whether --enable-dependency-tracking was given. 2553if test "${enable_dependency_tracking+set}" = set; then 2554 enableval=$enable_dependency_tracking; 2555fi 2556 2557if test "x$enable_dependency_tracking" != xno; then 2558 am_depcomp="$ac_aux_dir/depcomp" 2559 AMDEPBACKSLASH='\' 2560fi 2561 2562 2563if test "x$enable_dependency_tracking" != xno; then 2564 AMDEP_TRUE= 2565 AMDEP_FALSE='#' 2566else 2567 AMDEP_TRUE='#' 2568 AMDEP_FALSE= 2569fi 2570 2571 2572 2573ac_ext=c 2574ac_cpp='$CPP $CPPFLAGS' 2575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2577ac_compiler_gnu=$ac_cv_c_compiler_gnu 2578if test -n "$ac_tool_prefix"; then 2579 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2580set dummy ${ac_tool_prefix}gcc; ac_word=$2 2581{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2583if test "${ac_cv_prog_CC+set}" = set; then 2584 echo $ECHO_N "(cached) $ECHO_C" >&6 2585else 2586 if test -n "$CC"; then 2587 ac_cv_prog_CC="$CC" # Let the user override the test. 2588else 2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2590for as_dir in $PATH 2591do 2592 IFS=$as_save_IFS 2593 test -z "$as_dir" && as_dir=. 2594 for ac_exec_ext in '' $ac_executable_extensions; do 2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2596 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2598 break 2 2599 fi 2600done 2601done 2602IFS=$as_save_IFS 2603 2604fi 2605fi 2606CC=$ac_cv_prog_CC 2607if test -n "$CC"; then 2608 { echo "$as_me:$LINENO: result: $CC" >&5 2609echo "${ECHO_T}$CC" >&6; } 2610else 2611 { echo "$as_me:$LINENO: result: no" >&5 2612echo "${ECHO_T}no" >&6; } 2613fi 2614 2615 2616fi 2617if test -z "$ac_cv_prog_CC"; then 2618 ac_ct_CC=$CC 2619 # Extract the first word of "gcc", so it can be a program name with args. 2620set dummy gcc; ac_word=$2 2621{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2623if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2624 echo $ECHO_N "(cached) $ECHO_C" >&6 2625else 2626 if test -n "$ac_ct_CC"; then 2627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2628else 2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2630for as_dir in $PATH 2631do 2632 IFS=$as_save_IFS 2633 test -z "$as_dir" && as_dir=. 2634 for ac_exec_ext in '' $ac_executable_extensions; do 2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2636 ac_cv_prog_ac_ct_CC="gcc" 2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2638 break 2 2639 fi 2640done 2641done 2642IFS=$as_save_IFS 2643 2644fi 2645fi 2646ac_ct_CC=$ac_cv_prog_ac_ct_CC 2647if test -n "$ac_ct_CC"; then 2648 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2649echo "${ECHO_T}$ac_ct_CC" >&6; } 2650else 2651 { echo "$as_me:$LINENO: result: no" >&5 2652echo "${ECHO_T}no" >&6; } 2653fi 2654 2655 if test "x$ac_ct_CC" = x; then 2656 CC="" 2657 else 2658 case $cross_compiling:$ac_tool_warned in 2659yes:) 2660{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2661whose name does not start with the host triplet. If you think this 2662configuration is useful to you, please write to autoconf@gnu.org." >&5 2663echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2664whose name does not start with the host triplet. If you think this 2665configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2666ac_tool_warned=yes ;; 2667esac 2668 CC=$ac_ct_CC 2669 fi 2670else 2671 CC="$ac_cv_prog_CC" 2672fi 2673 2674if test -z "$CC"; then 2675 if test -n "$ac_tool_prefix"; then 2676 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2677set dummy ${ac_tool_prefix}cc; ac_word=$2 2678{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2680if test "${ac_cv_prog_CC+set}" = set; then 2681 echo $ECHO_N "(cached) $ECHO_C" >&6 2682else 2683 if test -n "$CC"; then 2684 ac_cv_prog_CC="$CC" # Let the user override the test. 2685else 2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2687for as_dir in $PATH 2688do 2689 IFS=$as_save_IFS 2690 test -z "$as_dir" && as_dir=. 2691 for ac_exec_ext in '' $ac_executable_extensions; do 2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2693 ac_cv_prog_CC="${ac_tool_prefix}cc" 2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2695 break 2 2696 fi 2697done 2698done 2699IFS=$as_save_IFS 2700 2701fi 2702fi 2703CC=$ac_cv_prog_CC 2704if test -n "$CC"; then 2705 { echo "$as_me:$LINENO: result: $CC" >&5 2706echo "${ECHO_T}$CC" >&6; } 2707else 2708 { echo "$as_me:$LINENO: result: no" >&5 2709echo "${ECHO_T}no" >&6; } 2710fi 2711 2712 2713 fi 2714fi 2715if test -z "$CC"; then 2716 # Extract the first word of "cc", so it can be a program name with args. 2717set dummy cc; ac_word=$2 2718{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2720if test "${ac_cv_prog_CC+set}" = set; then 2721 echo $ECHO_N "(cached) $ECHO_C" >&6 2722else 2723 if test -n "$CC"; then 2724 ac_cv_prog_CC="$CC" # Let the user override the test. 2725else 2726 ac_prog_rejected=no 2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728for as_dir in $PATH 2729do 2730 IFS=$as_save_IFS 2731 test -z "$as_dir" && as_dir=. 2732 for ac_exec_ext in '' $ac_executable_extensions; do 2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2734 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2735 ac_prog_rejected=yes 2736 continue 2737 fi 2738 ac_cv_prog_CC="cc" 2739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2740 break 2 2741 fi 2742done 2743done 2744IFS=$as_save_IFS 2745 2746if test $ac_prog_rejected = yes; then 2747 # We found a bogon in the path, so make sure we never use it. 2748 set dummy $ac_cv_prog_CC 2749 shift 2750 if test $# != 0; then 2751 # We chose a different compiler from the bogus one. 2752 # However, it has the same basename, so the bogon will be chosen 2753 # first if we set CC to just the basename; use the full file name. 2754 shift 2755 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2756 fi 2757fi 2758fi 2759fi 2760CC=$ac_cv_prog_CC 2761if test -n "$CC"; then 2762 { echo "$as_me:$LINENO: result: $CC" >&5 2763echo "${ECHO_T}$CC" >&6; } 2764else 2765 { echo "$as_me:$LINENO: result: no" >&5 2766echo "${ECHO_T}no" >&6; } 2767fi 2768 2769 2770fi 2771if test -z "$CC"; then 2772 if test -n "$ac_tool_prefix"; then 2773 for ac_prog in cl.exe 2774 do 2775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2776set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2777{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2779if test "${ac_cv_prog_CC+set}" = set; then 2780 echo $ECHO_N "(cached) $ECHO_C" >&6 2781else 2782 if test -n "$CC"; then 2783 ac_cv_prog_CC="$CC" # Let the user override the test. 2784else 2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2786for as_dir in $PATH 2787do 2788 IFS=$as_save_IFS 2789 test -z "$as_dir" && as_dir=. 2790 for ac_exec_ext in '' $ac_executable_extensions; do 2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2792 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2794 break 2 2795 fi 2796done 2797done 2798IFS=$as_save_IFS 2799 2800fi 2801fi 2802CC=$ac_cv_prog_CC 2803if test -n "$CC"; then 2804 { echo "$as_me:$LINENO: result: $CC" >&5 2805echo "${ECHO_T}$CC" >&6; } 2806else 2807 { echo "$as_me:$LINENO: result: no" >&5 2808echo "${ECHO_T}no" >&6; } 2809fi 2810 2811 2812 test -n "$CC" && break 2813 done 2814fi 2815if test -z "$CC"; then 2816 ac_ct_CC=$CC 2817 for ac_prog in cl.exe 2818do 2819 # Extract the first word of "$ac_prog", so it can be a program name with args. 2820set dummy $ac_prog; ac_word=$2 2821{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2823if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2824 echo $ECHO_N "(cached) $ECHO_C" >&6 2825else 2826 if test -n "$ac_ct_CC"; then 2827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2828else 2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2830for as_dir in $PATH 2831do 2832 IFS=$as_save_IFS 2833 test -z "$as_dir" && as_dir=. 2834 for ac_exec_ext in '' $ac_executable_extensions; do 2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2836 ac_cv_prog_ac_ct_CC="$ac_prog" 2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2838 break 2 2839 fi 2840done 2841done 2842IFS=$as_save_IFS 2843 2844fi 2845fi 2846ac_ct_CC=$ac_cv_prog_ac_ct_CC 2847if test -n "$ac_ct_CC"; then 2848 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2849echo "${ECHO_T}$ac_ct_CC" >&6; } 2850else 2851 { echo "$as_me:$LINENO: result: no" >&5 2852echo "${ECHO_T}no" >&6; } 2853fi 2854 2855 2856 test -n "$ac_ct_CC" && break 2857done 2858 2859 if test "x$ac_ct_CC" = x; then 2860 CC="" 2861 else 2862 case $cross_compiling:$ac_tool_warned in 2863yes:) 2864{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2865whose name does not start with the host triplet. If you think this 2866configuration is useful to you, please write to autoconf@gnu.org." >&5 2867echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2868whose name does not start with the host triplet. If you think this 2869configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2870ac_tool_warned=yes ;; 2871esac 2872 CC=$ac_ct_CC 2873 fi 2874fi 2875 2876fi 2877 2878 2879test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2880See \`config.log' for more details." >&5 2881echo "$as_me: error: no acceptable C compiler found in \$PATH 2882See \`config.log' for more details." >&2;} 2883 { (exit 1); exit 1; }; } 2884 2885# Provide some information about the compiler. 2886echo "$as_me:$LINENO: checking for C compiler version" >&5 2887ac_compiler=`set X $ac_compile; echo $2` 2888{ (ac_try="$ac_compiler --version >&5" 2889case "(($ac_try" in 2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2891 *) ac_try_echo=$ac_try;; 2892esac 2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2894 (eval "$ac_compiler --version >&5") 2>&5 2895 ac_status=$? 2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2897 (exit $ac_status); } 2898{ (ac_try="$ac_compiler -v >&5" 2899case "(($ac_try" in 2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2901 *) ac_try_echo=$ac_try;; 2902esac 2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2904 (eval "$ac_compiler -v >&5") 2>&5 2905 ac_status=$? 2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2907 (exit $ac_status); } 2908{ (ac_try="$ac_compiler -V >&5" 2909case "(($ac_try" in 2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2911 *) ac_try_echo=$ac_try;; 2912esac 2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2914 (eval "$ac_compiler -V >&5") 2>&5 2915 ac_status=$? 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); } 2918 2919cat >conftest.$ac_ext <<_ACEOF 2920/* confdefs.h. */ 2921_ACEOF 2922cat confdefs.h >>conftest.$ac_ext 2923cat >>conftest.$ac_ext <<_ACEOF 2924/* end confdefs.h. */ 2925 2926int 2927main () 2928{ 2929 2930 ; 2931 return 0; 2932} 2933_ACEOF 2934ac_clean_files_save=$ac_clean_files 2935ac_clean_files="$ac_clean_files a.out a.exe b.out" 2936# Try to create an executable without -o first, disregard a.out. 2937# It will help us diagnose broken compilers, and finding out an intuition 2938# of exeext. 2939{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2940echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2941ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2942# 2943# List of possible output files, starting from the most likely. 2944# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2945# only as a last resort. b.out is created by i960 compilers. 2946ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2947# 2948# The IRIX 6 linker writes into existing files which may not be 2949# executable, retaining their permissions. Remove them first so a 2950# subsequent execution test works. 2951ac_rmfiles= 2952for ac_file in $ac_files 2953do 2954 case $ac_file in 2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2956 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2957 esac 2958done 2959rm -f $ac_rmfiles 2960 2961if { (ac_try="$ac_link_default" 2962case "(($ac_try" in 2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2964 *) ac_try_echo=$ac_try;; 2965esac 2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2967 (eval "$ac_link_default") 2>&5 2968 ac_status=$? 2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2970 (exit $ac_status); }; then 2971 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2972# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2973# in a Makefile. We should not override ac_cv_exeext if it was cached, 2974# so that the user can short-circuit this test for compilers unknown to 2975# Autoconf. 2976for ac_file in $ac_files '' 2977do 2978 test -f "$ac_file" || continue 2979 case $ac_file in 2980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2981 ;; 2982 [ab].out ) 2983 # We found the default executable, but exeext='' is most 2984 # certainly right. 2985 break;; 2986 *.* ) 2987 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2988 then :; else 2989 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2990 fi 2991 # We set ac_cv_exeext here because the later test for it is not 2992 # safe: cross compilers may not add the suffix if given an `-o' 2993 # argument, so we may need to know it at that point already. 2994 # Even if this section looks crufty: it has the advantage of 2995 # actually working. 2996 break;; 2997 * ) 2998 break;; 2999 esac 3000done 3001test "$ac_cv_exeext" = no && ac_cv_exeext= 3002 3003else 3004 ac_file='' 3005fi 3006 3007{ echo "$as_me:$LINENO: result: $ac_file" >&5 3008echo "${ECHO_T}$ac_file" >&6; } 3009if test -z "$ac_file"; then 3010 echo "$as_me: failed program was:" >&5 3011sed 's/^/| /' conftest.$ac_ext >&5 3012 3013{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3014See \`config.log' for more details." >&5 3015echo "$as_me: error: C compiler cannot create executables 3016See \`config.log' for more details." >&2;} 3017 { (exit 77); exit 77; }; } 3018fi 3019 3020ac_exeext=$ac_cv_exeext 3021 3022# Check that the compiler produces executables we can run. If not, either 3023# the compiler is broken, or we cross compile. 3024{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3025echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3026# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3027# If not cross compiling, check that we can run a simple program. 3028if test "$cross_compiling" != yes; then 3029 if { ac_try='./$ac_file' 3030 { (case "(($ac_try" in 3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3032 *) ac_try_echo=$ac_try;; 3033esac 3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3035 (eval "$ac_try") 2>&5 3036 ac_status=$? 3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3038 (exit $ac_status); }; }; then 3039 cross_compiling=no 3040 else 3041 if test "$cross_compiling" = maybe; then 3042 cross_compiling=yes 3043 else 3044 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3045If you meant to cross compile, use \`--host'. 3046See \`config.log' for more details." >&5 3047echo "$as_me: error: cannot run C compiled programs. 3048If you meant to cross compile, use \`--host'. 3049See \`config.log' for more details." >&2;} 3050 { (exit 1); exit 1; }; } 3051 fi 3052 fi 3053fi 3054{ echo "$as_me:$LINENO: result: yes" >&5 3055echo "${ECHO_T}yes" >&6; } 3056 3057rm -f a.out a.exe conftest$ac_cv_exeext b.out 3058ac_clean_files=$ac_clean_files_save 3059# Check that the compiler produces executables we can run. If not, either 3060# the compiler is broken, or we cross compile. 3061{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3062echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3063{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3064echo "${ECHO_T}$cross_compiling" >&6; } 3065 3066{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3067echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3068if { (ac_try="$ac_link" 3069case "(($ac_try" in 3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3071 *) ac_try_echo=$ac_try;; 3072esac 3073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3074 (eval "$ac_link") 2>&5 3075 ac_status=$? 3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3077 (exit $ac_status); }; then 3078 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3079# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3080# work properly (i.e., refer to `conftest.exe'), while it won't with 3081# `rm'. 3082for ac_file in conftest.exe conftest conftest.*; do 3083 test -f "$ac_file" || continue 3084 case $ac_file in 3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3086 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3087 break;; 3088 * ) break;; 3089 esac 3090done 3091else 3092 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3093See \`config.log' for more details." >&5 3094echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3095See \`config.log' for more details." >&2;} 3096 { (exit 1); exit 1; }; } 3097fi 3098 3099rm -f conftest$ac_cv_exeext 3100{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3101echo "${ECHO_T}$ac_cv_exeext" >&6; } 3102 3103rm -f conftest.$ac_ext 3104EXEEXT=$ac_cv_exeext 3105ac_exeext=$EXEEXT 3106{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3107echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3108if test "${ac_cv_objext+set}" = set; then 3109 echo $ECHO_N "(cached) $ECHO_C" >&6 3110else 3111 cat >conftest.$ac_ext <<_ACEOF 3112/* confdefs.h. */ 3113_ACEOF 3114cat confdefs.h >>conftest.$ac_ext 3115cat >>conftest.$ac_ext <<_ACEOF 3116/* end confdefs.h. */ 3117 3118int 3119main () 3120{ 3121 3122 ; 3123 return 0; 3124} 3125_ACEOF 3126rm -f conftest.o conftest.obj 3127if { (ac_try="$ac_compile" 3128case "(($ac_try" in 3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3130 *) ac_try_echo=$ac_try;; 3131esac 3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3133 (eval "$ac_compile") 2>&5 3134 ac_status=$? 3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3136 (exit $ac_status); }; then 3137 for ac_file in conftest.o conftest.obj conftest.*; do 3138 test -f "$ac_file" || continue; 3139 case $ac_file in 3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3141 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3142 break;; 3143 esac 3144done 3145else 3146 echo "$as_me: failed program was:" >&5 3147sed 's/^/| /' conftest.$ac_ext >&5 3148 3149{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3150See \`config.log' for more details." >&5 3151echo "$as_me: error: cannot compute suffix of object files: cannot compile 3152See \`config.log' for more details." >&2;} 3153 { (exit 1); exit 1; }; } 3154fi 3155 3156rm -f conftest.$ac_cv_objext conftest.$ac_ext 3157fi 3158{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3159echo "${ECHO_T}$ac_cv_objext" >&6; } 3160OBJEXT=$ac_cv_objext 3161ac_objext=$OBJEXT 3162{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3163echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3164if test "${ac_cv_c_compiler_gnu+set}" = set; then 3165 echo $ECHO_N "(cached) $ECHO_C" >&6 3166else 3167 cat >conftest.$ac_ext <<_ACEOF 3168/* confdefs.h. */ 3169_ACEOF 3170cat confdefs.h >>conftest.$ac_ext 3171cat >>conftest.$ac_ext <<_ACEOF 3172/* end confdefs.h. */ 3173 3174int 3175main () 3176{ 3177#ifndef __GNUC__ 3178 choke me 3179#endif 3180 3181 ; 3182 return 0; 3183} 3184_ACEOF 3185rm -f conftest.$ac_objext 3186if { (ac_try="$ac_compile" 3187case "(($ac_try" in 3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3189 *) ac_try_echo=$ac_try;; 3190esac 3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3192 (eval "$ac_compile") 2>conftest.er1 3193 ac_status=$? 3194 grep -v '^ *+' conftest.er1 >conftest.err 3195 rm -f conftest.er1 3196 cat conftest.err >&5 3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 (exit $ac_status); } && { 3199 test -z "$ac_c_werror_flag" || 3200 test ! -s conftest.err 3201 } && test -s conftest.$ac_objext; then 3202 ac_compiler_gnu=yes 3203else 3204 echo "$as_me: failed program was:" >&5 3205sed 's/^/| /' conftest.$ac_ext >&5 3206 3207 ac_compiler_gnu=no 3208fi 3209 3210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3211ac_cv_c_compiler_gnu=$ac_compiler_gnu 3212 3213fi 3214{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3215echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3216GCC=`test $ac_compiler_gnu = yes && echo yes` 3217ac_test_CFLAGS=${CFLAGS+set} 3218ac_save_CFLAGS=$CFLAGS 3219{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3220echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3221if test "${ac_cv_prog_cc_g+set}" = set; then 3222 echo $ECHO_N "(cached) $ECHO_C" >&6 3223else 3224 ac_save_c_werror_flag=$ac_c_werror_flag 3225 ac_c_werror_flag=yes 3226 ac_cv_prog_cc_g=no 3227 CFLAGS="-g" 3228 cat >conftest.$ac_ext <<_ACEOF 3229/* confdefs.h. */ 3230_ACEOF 3231cat confdefs.h >>conftest.$ac_ext 3232cat >>conftest.$ac_ext <<_ACEOF 3233/* end confdefs.h. */ 3234 3235int 3236main () 3237{ 3238 3239 ; 3240 return 0; 3241} 3242_ACEOF 3243rm -f conftest.$ac_objext 3244if { (ac_try="$ac_compile" 3245case "(($ac_try" in 3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3247 *) ac_try_echo=$ac_try;; 3248esac 3249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3250 (eval "$ac_compile") 2>conftest.er1 3251 ac_status=$? 3252 grep -v '^ *+' conftest.er1 >conftest.err 3253 rm -f conftest.er1 3254 cat conftest.err >&5 3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3256 (exit $ac_status); } && { 3257 test -z "$ac_c_werror_flag" || 3258 test ! -s conftest.err 3259 } && test -s conftest.$ac_objext; then 3260 ac_cv_prog_cc_g=yes 3261else 3262 echo "$as_me: failed program was:" >&5 3263sed 's/^/| /' conftest.$ac_ext >&5 3264 3265 CFLAGS="" 3266 cat >conftest.$ac_ext <<_ACEOF 3267/* confdefs.h. */ 3268_ACEOF 3269cat confdefs.h >>conftest.$ac_ext 3270cat >>conftest.$ac_ext <<_ACEOF 3271/* end confdefs.h. */ 3272 3273int 3274main () 3275{ 3276 3277 ; 3278 return 0; 3279} 3280_ACEOF 3281rm -f conftest.$ac_objext 3282if { (ac_try="$ac_compile" 3283case "(($ac_try" in 3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3285 *) ac_try_echo=$ac_try;; 3286esac 3287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3288 (eval "$ac_compile") 2>conftest.er1 3289 ac_status=$? 3290 grep -v '^ *+' conftest.er1 >conftest.err 3291 rm -f conftest.er1 3292 cat conftest.err >&5 3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3294 (exit $ac_status); } && { 3295 test -z "$ac_c_werror_flag" || 3296 test ! -s conftest.err 3297 } && test -s conftest.$ac_objext; then 3298 : 3299else 3300 echo "$as_me: failed program was:" >&5 3301sed 's/^/| /' conftest.$ac_ext >&5 3302 3303 ac_c_werror_flag=$ac_save_c_werror_flag 3304 CFLAGS="-g" 3305 cat >conftest.$ac_ext <<_ACEOF 3306/* confdefs.h. */ 3307_ACEOF 3308cat confdefs.h >>conftest.$ac_ext 3309cat >>conftest.$ac_ext <<_ACEOF 3310/* end confdefs.h. */ 3311 3312int 3313main () 3314{ 3315 3316 ; 3317 return 0; 3318} 3319_ACEOF 3320rm -f conftest.$ac_objext 3321if { (ac_try="$ac_compile" 3322case "(($ac_try" in 3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3324 *) ac_try_echo=$ac_try;; 3325esac 3326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3327 (eval "$ac_compile") 2>conftest.er1 3328 ac_status=$? 3329 grep -v '^ *+' conftest.er1 >conftest.err 3330 rm -f conftest.er1 3331 cat conftest.err >&5 3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3333 (exit $ac_status); } && { 3334 test -z "$ac_c_werror_flag" || 3335 test ! -s conftest.err 3336 } && test -s conftest.$ac_objext; then 3337 ac_cv_prog_cc_g=yes 3338else 3339 echo "$as_me: failed program was:" >&5 3340sed 's/^/| /' conftest.$ac_ext >&5 3341 3342 3343fi 3344 3345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3346fi 3347 3348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3349fi 3350 3351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3352 ac_c_werror_flag=$ac_save_c_werror_flag 3353fi 3354{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3355echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3356if test "$ac_test_CFLAGS" = set; then 3357 CFLAGS=$ac_save_CFLAGS 3358elif test $ac_cv_prog_cc_g = yes; then 3359 if test "$GCC" = yes; then 3360 CFLAGS="-g -O2" 3361 else 3362 CFLAGS="-g" 3363 fi 3364else 3365 if test "$GCC" = yes; then 3366 CFLAGS="-O2" 3367 else 3368 CFLAGS= 3369 fi 3370fi 3371{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3372echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3373if test "${ac_cv_prog_cc_c89+set}" = set; then 3374 echo $ECHO_N "(cached) $ECHO_C" >&6 3375else 3376 ac_cv_prog_cc_c89=no 3377ac_save_CC=$CC 3378cat >conftest.$ac_ext <<_ACEOF 3379/* confdefs.h. */ 3380_ACEOF 3381cat confdefs.h >>conftest.$ac_ext 3382cat >>conftest.$ac_ext <<_ACEOF 3383/* end confdefs.h. */ 3384#include <stdarg.h> 3385#include <stdio.h> 3386#include <sys/types.h> 3387#include <sys/stat.h> 3388/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3389struct buf { int x; }; 3390FILE * (*rcsopen) (struct buf *, struct stat *, int); 3391static char *e (p, i) 3392 char **p; 3393 int i; 3394{ 3395 return p[i]; 3396} 3397static char *f (char * (*g) (char **, int), char **p, ...) 3398{ 3399 char *s; 3400 va_list v; 3401 va_start (v,p); 3402 s = g (p, va_arg (v,int)); 3403 va_end (v); 3404 return s; 3405} 3406 3407/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3408 function prototypes and stuff, but not '\xHH' hex character constants. 3409 These don't provoke an error unfortunately, instead are silently treated 3410 as 'x'. The following induces an error, until -std is added to get 3411 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3412 array size at least. It's necessary to write '\x00'==0 to get something 3413 that's true only with -std. */ 3414int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3415 3416/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3417 inside strings and character constants. */ 3418#define FOO(x) 'x' 3419int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3420 3421int test (int i, double x); 3422struct s1 {int (*f) (int a);}; 3423struct s2 {int (*f) (double a);}; 3424int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3425int argc; 3426char **argv; 3427int 3428main () 3429{ 3430return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3431 ; 3432 return 0; 3433} 3434_ACEOF 3435for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3436 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3437do 3438 CC="$ac_save_CC $ac_arg" 3439 rm -f conftest.$ac_objext 3440if { (ac_try="$ac_compile" 3441case "(($ac_try" in 3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3443 *) ac_try_echo=$ac_try;; 3444esac 3445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3446 (eval "$ac_compile") 2>conftest.er1 3447 ac_status=$? 3448 grep -v '^ *+' conftest.er1 >conftest.err 3449 rm -f conftest.er1 3450 cat conftest.err >&5 3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3452 (exit $ac_status); } && { 3453 test -z "$ac_c_werror_flag" || 3454 test ! -s conftest.err 3455 } && test -s conftest.$ac_objext; then 3456 ac_cv_prog_cc_c89=$ac_arg 3457else 3458 echo "$as_me: failed program was:" >&5 3459sed 's/^/| /' conftest.$ac_ext >&5 3460 3461 3462fi 3463 3464rm -f core conftest.err conftest.$ac_objext 3465 test "x$ac_cv_prog_cc_c89" != "xno" && break 3466done 3467rm -f conftest.$ac_ext 3468CC=$ac_save_CC 3469 3470fi 3471# AC_CACHE_VAL 3472case "x$ac_cv_prog_cc_c89" in 3473 x) 3474 { echo "$as_me:$LINENO: result: none needed" >&5 3475echo "${ECHO_T}none needed" >&6; } ;; 3476 xno) 3477 { echo "$as_me:$LINENO: result: unsupported" >&5 3478echo "${ECHO_T}unsupported" >&6; } ;; 3479 *) 3480 CC="$CC $ac_cv_prog_cc_c89" 3481 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3482echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3483esac 3484 3485 3486ac_ext=c 3487ac_cpp='$CPP $CPPFLAGS' 3488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3490ac_compiler_gnu=$ac_cv_c_compiler_gnu 3491 3492depcc="$CC" am_compiler_list= 3493 3494{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3495echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3496if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3497 echo $ECHO_N "(cached) $ECHO_C" >&6 3498else 3499 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3500 # We make a subdir and do the tests there. Otherwise we can end up 3501 # making bogus files that we don't know about and never remove. For 3502 # instance it was reported that on HP-UX the gcc test will end up 3503 # making a dummy file named `D' -- because `-MD' means `put the output 3504 # in D'. 3505 mkdir conftest.dir 3506 # Copy depcomp to subdir because otherwise we won't find it if we're 3507 # using a relative directory. 3508 cp "$am_depcomp" conftest.dir 3509 cd conftest.dir 3510 # We will build objects and dependencies in a subdirectory because 3511 # it helps to detect inapplicable dependency modes. For instance 3512 # both Tru64's cc and ICC support -MD to output dependencies as a 3513 # side effect of compilation, but ICC will put the dependencies in 3514 # the current directory while Tru64 will put them in the object 3515 # directory. 3516 mkdir sub 3517 3518 am_cv_CC_dependencies_compiler_type=none 3519 if test "$am_compiler_list" = ""; then 3520 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3521 fi 3522 for depmode in $am_compiler_list; do 3523 # Setup a source with many dependencies, because some compilers 3524 # like to wrap large dependency lists on column 80 (with \), and 3525 # we should not choose a depcomp mode which is confused by this. 3526 # 3527 # We need to recreate these files for each test, as the compiler may 3528 # overwrite some of them when testing with obscure command lines. 3529 # This happens at least with the AIX C compiler. 3530 : > sub/conftest.c 3531 for i in 1 2 3 4 5 6; do 3532 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3533 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3534 # Solaris 8's {/usr,}/bin/sh. 3535 touch sub/conftst$i.h 3536 done 3537 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3538 3539 case $depmode in 3540 nosideeffect) 3541 # after this tag, mechanisms are not by side-effect, so they'll 3542 # only be used when explicitly requested 3543 if test "x$enable_dependency_tracking" = xyes; then 3544 continue 3545 else 3546 break 3547 fi 3548 ;; 3549 none) break ;; 3550 esac 3551 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3552 # mode. It turns out that the SunPro C++ compiler does not properly 3553 # handle `-M -o', and we need to detect this. 3554 if depmode=$depmode \ 3555 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3556 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3557 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3558 >/dev/null 2>conftest.err && 3559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3560 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3562 # icc doesn't choke on unknown options, it will just issue warnings 3563 # or remarks (even with -Werror). So we grep stderr for any message 3564 # that says an option was ignored or not supported. 3565 # When given -MP, icc 7.0 and 7.1 complain thusly: 3566 # icc: Command line warning: ignoring option '-M'; no argument required 3567 # The diagnosis changed in icc 8.0: 3568 # icc: Command line remark: option '-MP' not supported 3569 if (grep 'ignoring option' conftest.err || 3570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3571 am_cv_CC_dependencies_compiler_type=$depmode 3572 break 3573 fi 3574 fi 3575 done 3576 3577 cd .. 3578 rm -rf conftest.dir 3579else 3580 am_cv_CC_dependencies_compiler_type=none 3581fi 3582 3583fi 3584{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3585echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3586CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3587 3588 3589 3590if 3591 test "x$enable_dependency_tracking" != xno \ 3592 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3593 am__fastdepCC_TRUE= 3594 am__fastdepCC_FALSE='#' 3595else 3596 am__fastdepCC_TRUE='#' 3597 am__fastdepCC_FALSE= 3598fi 3599 3600 3601 3602{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3603echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3604if test "${ac_cv_search_strerror+set}" = set; then 3605 echo $ECHO_N "(cached) $ECHO_C" >&6 3606else 3607 ac_func_search_save_LIBS=$LIBS 3608cat >conftest.$ac_ext <<_ACEOF 3609/* confdefs.h. */ 3610_ACEOF 3611cat confdefs.h >>conftest.$ac_ext 3612cat >>conftest.$ac_ext <<_ACEOF 3613/* end confdefs.h. */ 3614 3615/* Override any GCC internal prototype to avoid an error. 3616 Use char because int might match the return type of a GCC 3617 builtin and then its argument prototype would still apply. */ 3618#ifdef __cplusplus 3619extern "C" 3620#endif 3621char strerror (); 3622int 3623main () 3624{ 3625return strerror (); 3626 ; 3627 return 0; 3628} 3629_ACEOF 3630for ac_lib in '' cposix; do 3631 if test -z "$ac_lib"; then 3632 ac_res="none required" 3633 else 3634 ac_res=-l$ac_lib 3635 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3636 fi 3637 rm -f conftest.$ac_objext conftest$ac_exeext 3638if { (ac_try="$ac_link" 3639case "(($ac_try" in 3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3641 *) ac_try_echo=$ac_try;; 3642esac 3643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3644 (eval "$ac_link") 2>conftest.er1 3645 ac_status=$? 3646 grep -v '^ *+' conftest.er1 >conftest.err 3647 rm -f conftest.er1 3648 cat conftest.err >&5 3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3650 (exit $ac_status); } && { 3651 test -z "$ac_c_werror_flag" || 3652 test ! -s conftest.err 3653 } && test -s conftest$ac_exeext && 3654 $as_test_x conftest$ac_exeext; then 3655 ac_cv_search_strerror=$ac_res 3656else 3657 echo "$as_me: failed program was:" >&5 3658sed 's/^/| /' conftest.$ac_ext >&5 3659 3660 3661fi 3662 3663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3664 conftest$ac_exeext 3665 if test "${ac_cv_search_strerror+set}" = set; then 3666 break 3667fi 3668done 3669if test "${ac_cv_search_strerror+set}" = set; then 3670 : 3671else 3672 ac_cv_search_strerror=no 3673fi 3674rm conftest.$ac_ext 3675LIBS=$ac_func_search_save_LIBS 3676fi 3677{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3678echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 3679ac_res=$ac_cv_search_strerror 3680if test "$ac_res" != no; then 3681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3682 3683fi 3684 3685ac_ext=c 3686ac_cpp='$CPP $CPPFLAGS' 3687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3689ac_compiler_gnu=$ac_cv_c_compiler_gnu 3690if test -n "$ac_tool_prefix"; then 3691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3692set dummy ${ac_tool_prefix}gcc; ac_word=$2 3693{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3695if test "${ac_cv_prog_CC+set}" = set; then 3696 echo $ECHO_N "(cached) $ECHO_C" >&6 3697else 3698 if test -n "$CC"; then 3699 ac_cv_prog_CC="$CC" # Let the user override the test. 3700else 3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3702for as_dir in $PATH 3703do 3704 IFS=$as_save_IFS 3705 test -z "$as_dir" && as_dir=. 3706 for ac_exec_ext in '' $ac_executable_extensions; do 3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3708 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3710 break 2 3711 fi 3712done 3713done 3714IFS=$as_save_IFS 3715 3716fi 3717fi 3718CC=$ac_cv_prog_CC 3719if test -n "$CC"; then 3720 { echo "$as_me:$LINENO: result: $CC" >&5 3721echo "${ECHO_T}$CC" >&6; } 3722else 3723 { echo "$as_me:$LINENO: result: no" >&5 3724echo "${ECHO_T}no" >&6; } 3725fi 3726 3727 3728fi 3729if test -z "$ac_cv_prog_CC"; then 3730 ac_ct_CC=$CC 3731 # Extract the first word of "gcc", so it can be a program name with args. 3732set dummy gcc; ac_word=$2 3733{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3735if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3736 echo $ECHO_N "(cached) $ECHO_C" >&6 3737else 3738 if test -n "$ac_ct_CC"; then 3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3740else 3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3742for as_dir in $PATH 3743do 3744 IFS=$as_save_IFS 3745 test -z "$as_dir" && as_dir=. 3746 for ac_exec_ext in '' $ac_executable_extensions; do 3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3748 ac_cv_prog_ac_ct_CC="gcc" 3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3750 break 2 3751 fi 3752done 3753done 3754IFS=$as_save_IFS 3755 3756fi 3757fi 3758ac_ct_CC=$ac_cv_prog_ac_ct_CC 3759if test -n "$ac_ct_CC"; then 3760 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3761echo "${ECHO_T}$ac_ct_CC" >&6; } 3762else 3763 { echo "$as_me:$LINENO: result: no" >&5 3764echo "${ECHO_T}no" >&6; } 3765fi 3766 3767 if test "x$ac_ct_CC" = x; then 3768 CC="" 3769 else 3770 case $cross_compiling:$ac_tool_warned in 3771yes:) 3772{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3773whose name does not start with the host triplet. If you think this 3774configuration is useful to you, please write to autoconf@gnu.org." >&5 3775echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3776whose name does not start with the host triplet. If you think this 3777configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3778ac_tool_warned=yes ;; 3779esac 3780 CC=$ac_ct_CC 3781 fi 3782else 3783 CC="$ac_cv_prog_CC" 3784fi 3785 3786if test -z "$CC"; then 3787 if test -n "$ac_tool_prefix"; then 3788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3789set dummy ${ac_tool_prefix}cc; ac_word=$2 3790{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3792if test "${ac_cv_prog_CC+set}" = set; then 3793 echo $ECHO_N "(cached) $ECHO_C" >&6 3794else 3795 if test -n "$CC"; then 3796 ac_cv_prog_CC="$CC" # Let the user override the test. 3797else 3798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3799for as_dir in $PATH 3800do 3801 IFS=$as_save_IFS 3802 test -z "$as_dir" && as_dir=. 3803 for ac_exec_ext in '' $ac_executable_extensions; do 3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3805 ac_cv_prog_CC="${ac_tool_prefix}cc" 3806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3807 break 2 3808 fi 3809done 3810done 3811IFS=$as_save_IFS 3812 3813fi 3814fi 3815CC=$ac_cv_prog_CC 3816if test -n "$CC"; then 3817 { echo "$as_me:$LINENO: result: $CC" >&5 3818echo "${ECHO_T}$CC" >&6; } 3819else 3820 { echo "$as_me:$LINENO: result: no" >&5 3821echo "${ECHO_T}no" >&6; } 3822fi 3823 3824 3825 fi 3826fi 3827if test -z "$CC"; then 3828 # Extract the first word of "cc", so it can be a program name with args. 3829set dummy cc; ac_word=$2 3830{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3832if test "${ac_cv_prog_CC+set}" = set; then 3833 echo $ECHO_N "(cached) $ECHO_C" >&6 3834else 3835 if test -n "$CC"; then 3836 ac_cv_prog_CC="$CC" # Let the user override the test. 3837else 3838 ac_prog_rejected=no 3839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3840for as_dir in $PATH 3841do 3842 IFS=$as_save_IFS 3843 test -z "$as_dir" && as_dir=. 3844 for ac_exec_ext in '' $ac_executable_extensions; do 3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3846 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3847 ac_prog_rejected=yes 3848 continue 3849 fi 3850 ac_cv_prog_CC="cc" 3851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3852 break 2 3853 fi 3854done 3855done 3856IFS=$as_save_IFS 3857 3858if test $ac_prog_rejected = yes; then 3859 # We found a bogon in the path, so make sure we never use it. 3860 set dummy $ac_cv_prog_CC 3861 shift 3862 if test $# != 0; then 3863 # We chose a different compiler from the bogus one. 3864 # However, it has the same basename, so the bogon will be chosen 3865 # first if we set CC to just the basename; use the full file name. 3866 shift 3867 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3868 fi 3869fi 3870fi 3871fi 3872CC=$ac_cv_prog_CC 3873if test -n "$CC"; then 3874 { echo "$as_me:$LINENO: result: $CC" >&5 3875echo "${ECHO_T}$CC" >&6; } 3876else 3877 { echo "$as_me:$LINENO: result: no" >&5 3878echo "${ECHO_T}no" >&6; } 3879fi 3880 3881 3882fi 3883if test -z "$CC"; then 3884 if test -n "$ac_tool_prefix"; then 3885 for ac_prog in cl.exe 3886 do 3887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3888set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3889{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3891if test "${ac_cv_prog_CC+set}" = set; then 3892 echo $ECHO_N "(cached) $ECHO_C" >&6 3893else 3894 if test -n "$CC"; then 3895 ac_cv_prog_CC="$CC" # Let the user override the test. 3896else 3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3898for as_dir in $PATH 3899do 3900 IFS=$as_save_IFS 3901 test -z "$as_dir" && as_dir=. 3902 for ac_exec_ext in '' $ac_executable_extensions; do 3903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3904 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3906 break 2 3907 fi 3908done 3909done 3910IFS=$as_save_IFS 3911 3912fi 3913fi 3914CC=$ac_cv_prog_CC 3915if test -n "$CC"; then 3916 { echo "$as_me:$LINENO: result: $CC" >&5 3917echo "${ECHO_T}$CC" >&6; } 3918else 3919 { echo "$as_me:$LINENO: result: no" >&5 3920echo "${ECHO_T}no" >&6; } 3921fi 3922 3923 3924 test -n "$CC" && break 3925 done 3926fi 3927if test -z "$CC"; then 3928 ac_ct_CC=$CC 3929 for ac_prog in cl.exe 3930do 3931 # Extract the first word of "$ac_prog", so it can be a program name with args. 3932set dummy $ac_prog; ac_word=$2 3933{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3935if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3936 echo $ECHO_N "(cached) $ECHO_C" >&6 3937else 3938 if test -n "$ac_ct_CC"; then 3939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3940else 3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3942for as_dir in $PATH 3943do 3944 IFS=$as_save_IFS 3945 test -z "$as_dir" && as_dir=. 3946 for ac_exec_ext in '' $ac_executable_extensions; do 3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3948 ac_cv_prog_ac_ct_CC="$ac_prog" 3949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3950 break 2 3951 fi 3952done 3953done 3954IFS=$as_save_IFS 3955 3956fi 3957fi 3958ac_ct_CC=$ac_cv_prog_ac_ct_CC 3959if test -n "$ac_ct_CC"; then 3960 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3961echo "${ECHO_T}$ac_ct_CC" >&6; } 3962else 3963 { echo "$as_me:$LINENO: result: no" >&5 3964echo "${ECHO_T}no" >&6; } 3965fi 3966 3967 3968 test -n "$ac_ct_CC" && break 3969done 3970 3971 if test "x$ac_ct_CC" = x; then 3972 CC="" 3973 else 3974 case $cross_compiling:$ac_tool_warned in 3975yes:) 3976{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3977whose name does not start with the host triplet. If you think this 3978configuration is useful to you, please write to autoconf@gnu.org." >&5 3979echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3980whose name does not start with the host triplet. If you think this 3981configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3982ac_tool_warned=yes ;; 3983esac 3984 CC=$ac_ct_CC 3985 fi 3986fi 3987 3988fi 3989 3990 3991test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3992See \`config.log' for more details." >&5 3993echo "$as_me: error: no acceptable C compiler found in \$PATH 3994See \`config.log' for more details." >&2;} 3995 { (exit 1); exit 1; }; } 3996 3997# Provide some information about the compiler. 3998echo "$as_me:$LINENO: checking for C compiler version" >&5 3999ac_compiler=`set X $ac_compile; echo $2` 4000{ (ac_try="$ac_compiler --version >&5" 4001case "(($ac_try" in 4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4003 *) ac_try_echo=$ac_try;; 4004esac 4005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4006 (eval "$ac_compiler --version >&5") 2>&5 4007 ac_status=$? 4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4009 (exit $ac_status); } 4010{ (ac_try="$ac_compiler -v >&5" 4011case "(($ac_try" in 4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4013 *) ac_try_echo=$ac_try;; 4014esac 4015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4016 (eval "$ac_compiler -v >&5") 2>&5 4017 ac_status=$? 4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4019 (exit $ac_status); } 4020{ (ac_try="$ac_compiler -V >&5" 4021case "(($ac_try" in 4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4023 *) ac_try_echo=$ac_try;; 4024esac 4025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4026 (eval "$ac_compiler -V >&5") 2>&5 4027 ac_status=$? 4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4029 (exit $ac_status); } 4030 4031{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4032echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 4033if test "${ac_cv_c_compiler_gnu+set}" = set; then 4034 echo $ECHO_N "(cached) $ECHO_C" >&6 4035else 4036 cat >conftest.$ac_ext <<_ACEOF 4037/* confdefs.h. */ 4038_ACEOF 4039cat confdefs.h >>conftest.$ac_ext 4040cat >>conftest.$ac_ext <<_ACEOF 4041/* end confdefs.h. */ 4042 4043int 4044main () 4045{ 4046#ifndef __GNUC__ 4047 choke me 4048#endif 4049 4050 ; 4051 return 0; 4052} 4053_ACEOF 4054rm -f conftest.$ac_objext 4055if { (ac_try="$ac_compile" 4056case "(($ac_try" in 4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4058 *) ac_try_echo=$ac_try;; 4059esac 4060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4061 (eval "$ac_compile") 2>conftest.er1 4062 ac_status=$? 4063 grep -v '^ *+' conftest.er1 >conftest.err 4064 rm -f conftest.er1 4065 cat conftest.err >&5 4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4067 (exit $ac_status); } && { 4068 test -z "$ac_c_werror_flag" || 4069 test ! -s conftest.err 4070 } && test -s conftest.$ac_objext; then 4071 ac_compiler_gnu=yes 4072else 4073 echo "$as_me: failed program was:" >&5 4074sed 's/^/| /' conftest.$ac_ext >&5 4075 4076 ac_compiler_gnu=no 4077fi 4078 4079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4080ac_cv_c_compiler_gnu=$ac_compiler_gnu 4081 4082fi 4083{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4084echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 4085GCC=`test $ac_compiler_gnu = yes && echo yes` 4086ac_test_CFLAGS=${CFLAGS+set} 4087ac_save_CFLAGS=$CFLAGS 4088{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4089echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 4090if test "${ac_cv_prog_cc_g+set}" = set; then 4091 echo $ECHO_N "(cached) $ECHO_C" >&6 4092else 4093 ac_save_c_werror_flag=$ac_c_werror_flag 4094 ac_c_werror_flag=yes 4095 ac_cv_prog_cc_g=no 4096 CFLAGS="-g" 4097 cat >conftest.$ac_ext <<_ACEOF 4098/* confdefs.h. */ 4099_ACEOF 4100cat confdefs.h >>conftest.$ac_ext 4101cat >>conftest.$ac_ext <<_ACEOF 4102/* end confdefs.h. */ 4103 4104int 4105main () 4106{ 4107 4108 ; 4109 return 0; 4110} 4111_ACEOF 4112rm -f conftest.$ac_objext 4113if { (ac_try="$ac_compile" 4114case "(($ac_try" in 4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4116 *) ac_try_echo=$ac_try;; 4117esac 4118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4119 (eval "$ac_compile") 2>conftest.er1 4120 ac_status=$? 4121 grep -v '^ *+' conftest.er1 >conftest.err 4122 rm -f conftest.er1 4123 cat conftest.err >&5 4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4125 (exit $ac_status); } && { 4126 test -z "$ac_c_werror_flag" || 4127 test ! -s conftest.err 4128 } && test -s conftest.$ac_objext; then 4129 ac_cv_prog_cc_g=yes 4130else 4131 echo "$as_me: failed program was:" >&5 4132sed 's/^/| /' conftest.$ac_ext >&5 4133 4134 CFLAGS="" 4135 cat >conftest.$ac_ext <<_ACEOF 4136/* confdefs.h. */ 4137_ACEOF 4138cat confdefs.h >>conftest.$ac_ext 4139cat >>conftest.$ac_ext <<_ACEOF 4140/* end confdefs.h. */ 4141 4142int 4143main () 4144{ 4145 4146 ; 4147 return 0; 4148} 4149_ACEOF 4150rm -f conftest.$ac_objext 4151if { (ac_try="$ac_compile" 4152case "(($ac_try" in 4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4154 *) ac_try_echo=$ac_try;; 4155esac 4156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4157 (eval "$ac_compile") 2>conftest.er1 4158 ac_status=$? 4159 grep -v '^ *+' conftest.er1 >conftest.err 4160 rm -f conftest.er1 4161 cat conftest.err >&5 4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4163 (exit $ac_status); } && { 4164 test -z "$ac_c_werror_flag" || 4165 test ! -s conftest.err 4166 } && test -s conftest.$ac_objext; then 4167 : 4168else 4169 echo "$as_me: failed program was:" >&5 4170sed 's/^/| /' conftest.$ac_ext >&5 4171 4172 ac_c_werror_flag=$ac_save_c_werror_flag 4173 CFLAGS="-g" 4174 cat >conftest.$ac_ext <<_ACEOF 4175/* confdefs.h. */ 4176_ACEOF 4177cat confdefs.h >>conftest.$ac_ext 4178cat >>conftest.$ac_ext <<_ACEOF 4179/* end confdefs.h. */ 4180 4181int 4182main () 4183{ 4184 4185 ; 4186 return 0; 4187} 4188_ACEOF 4189rm -f conftest.$ac_objext 4190if { (ac_try="$ac_compile" 4191case "(($ac_try" in 4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4193 *) ac_try_echo=$ac_try;; 4194esac 4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4196 (eval "$ac_compile") 2>conftest.er1 4197 ac_status=$? 4198 grep -v '^ *+' conftest.er1 >conftest.err 4199 rm -f conftest.er1 4200 cat conftest.err >&5 4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4202 (exit $ac_status); } && { 4203 test -z "$ac_c_werror_flag" || 4204 test ! -s conftest.err 4205 } && test -s conftest.$ac_objext; then 4206 ac_cv_prog_cc_g=yes 4207else 4208 echo "$as_me: failed program was:" >&5 4209sed 's/^/| /' conftest.$ac_ext >&5 4210 4211 4212fi 4213 4214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4215fi 4216 4217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4218fi 4219 4220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4221 ac_c_werror_flag=$ac_save_c_werror_flag 4222fi 4223{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4224echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 4225if test "$ac_test_CFLAGS" = set; then 4226 CFLAGS=$ac_save_CFLAGS 4227elif test $ac_cv_prog_cc_g = yes; then 4228 if test "$GCC" = yes; then 4229 CFLAGS="-g -O2" 4230 else 4231 CFLAGS="-g" 4232 fi 4233else 4234 if test "$GCC" = yes; then 4235 CFLAGS="-O2" 4236 else 4237 CFLAGS= 4238 fi 4239fi 4240{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4241echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 4242if test "${ac_cv_prog_cc_c89+set}" = set; then 4243 echo $ECHO_N "(cached) $ECHO_C" >&6 4244else 4245 ac_cv_prog_cc_c89=no 4246ac_save_CC=$CC 4247cat >conftest.$ac_ext <<_ACEOF 4248/* confdefs.h. */ 4249_ACEOF 4250cat confdefs.h >>conftest.$ac_ext 4251cat >>conftest.$ac_ext <<_ACEOF 4252/* end confdefs.h. */ 4253#include <stdarg.h> 4254#include <stdio.h> 4255#include <sys/types.h> 4256#include <sys/stat.h> 4257/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4258struct buf { int x; }; 4259FILE * (*rcsopen) (struct buf *, struct stat *, int); 4260static char *e (p, i) 4261 char **p; 4262 int i; 4263{ 4264 return p[i]; 4265} 4266static char *f (char * (*g) (char **, int), char **p, ...) 4267{ 4268 char *s; 4269 va_list v; 4270 va_start (v,p); 4271 s = g (p, va_arg (v,int)); 4272 va_end (v); 4273 return s; 4274} 4275 4276/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4277 function prototypes and stuff, but not '\xHH' hex character constants. 4278 These don't provoke an error unfortunately, instead are silently treated 4279 as 'x'. The following induces an error, until -std is added to get 4280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4281 array size at least. It's necessary to write '\x00'==0 to get something 4282 that's true only with -std. */ 4283int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4284 4285/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4286 inside strings and character constants. */ 4287#define FOO(x) 'x' 4288int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4289 4290int test (int i, double x); 4291struct s1 {int (*f) (int a);}; 4292struct s2 {int (*f) (double a);}; 4293int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4294int argc; 4295char **argv; 4296int 4297main () 4298{ 4299return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4300 ; 4301 return 0; 4302} 4303_ACEOF 4304for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4306do 4307 CC="$ac_save_CC $ac_arg" 4308 rm -f conftest.$ac_objext 4309if { (ac_try="$ac_compile" 4310case "(($ac_try" in 4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4312 *) ac_try_echo=$ac_try;; 4313esac 4314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4315 (eval "$ac_compile") 2>conftest.er1 4316 ac_status=$? 4317 grep -v '^ *+' conftest.er1 >conftest.err 4318 rm -f conftest.er1 4319 cat conftest.err >&5 4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4321 (exit $ac_status); } && { 4322 test -z "$ac_c_werror_flag" || 4323 test ! -s conftest.err 4324 } && test -s conftest.$ac_objext; then 4325 ac_cv_prog_cc_c89=$ac_arg 4326else 4327 echo "$as_me: failed program was:" >&5 4328sed 's/^/| /' conftest.$ac_ext >&5 4329 4330 4331fi 4332 4333rm -f core conftest.err conftest.$ac_objext 4334 test "x$ac_cv_prog_cc_c89" != "xno" && break 4335done 4336rm -f conftest.$ac_ext 4337CC=$ac_save_CC 4338 4339fi 4340# AC_CACHE_VAL 4341case "x$ac_cv_prog_cc_c89" in 4342 x) 4343 { echo "$as_me:$LINENO: result: none needed" >&5 4344echo "${ECHO_T}none needed" >&6; } ;; 4345 xno) 4346 { echo "$as_me:$LINENO: result: unsupported" >&5 4347echo "${ECHO_T}unsupported" >&6; } ;; 4348 *) 4349 CC="$CC $ac_cv_prog_cc_c89" 4350 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4351echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 4352esac 4353 4354 4355ac_ext=c 4356ac_cpp='$CPP $CPPFLAGS' 4357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4359ac_compiler_gnu=$ac_cv_c_compiler_gnu 4360 4361depcc="$CC" am_compiler_list= 4362 4363{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4364echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4365if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4366 echo $ECHO_N "(cached) $ECHO_C" >&6 4367else 4368 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4369 # We make a subdir and do the tests there. Otherwise we can end up 4370 # making bogus files that we don't know about and never remove. For 4371 # instance it was reported that on HP-UX the gcc test will end up 4372 # making a dummy file named `D' -- because `-MD' means `put the output 4373 # in D'. 4374 mkdir conftest.dir 4375 # Copy depcomp to subdir because otherwise we won't find it if we're 4376 # using a relative directory. 4377 cp "$am_depcomp" conftest.dir 4378 cd conftest.dir 4379 # We will build objects and dependencies in a subdirectory because 4380 # it helps to detect inapplicable dependency modes. For instance 4381 # both Tru64's cc and ICC support -MD to output dependencies as a 4382 # side effect of compilation, but ICC will put the dependencies in 4383 # the current directory while Tru64 will put them in the object 4384 # directory. 4385 mkdir sub 4386 4387 am_cv_CC_dependencies_compiler_type=none 4388 if test "$am_compiler_list" = ""; then 4389 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4390 fi 4391 for depmode in $am_compiler_list; do 4392 # Setup a source with many dependencies, because some compilers 4393 # like to wrap large dependency lists on column 80 (with \), and 4394 # we should not choose a depcomp mode which is confused by this. 4395 # 4396 # We need to recreate these files for each test, as the compiler may 4397 # overwrite some of them when testing with obscure command lines. 4398 # This happens at least with the AIX C compiler. 4399 : > sub/conftest.c 4400 for i in 1 2 3 4 5 6; do 4401 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4402 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4403 # Solaris 8's {/usr,}/bin/sh. 4404 touch sub/conftst$i.h 4405 done 4406 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4407 4408 case $depmode in 4409 nosideeffect) 4410 # after this tag, mechanisms are not by side-effect, so they'll 4411 # only be used when explicitly requested 4412 if test "x$enable_dependency_tracking" = xyes; then 4413 continue 4414 else 4415 break 4416 fi 4417 ;; 4418 none) break ;; 4419 esac 4420 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4421 # mode. It turns out that the SunPro C++ compiler does not properly 4422 # handle `-M -o', and we need to detect this. 4423 if depmode=$depmode \ 4424 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4425 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4426 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4427 >/dev/null 2>conftest.err && 4428 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4429 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4430 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4431 # icc doesn't choke on unknown options, it will just issue warnings 4432 # or remarks (even with -Werror). So we grep stderr for any message 4433 # that says an option was ignored or not supported. 4434 # When given -MP, icc 7.0 and 7.1 complain thusly: 4435 # icc: Command line warning: ignoring option '-M'; no argument required 4436 # The diagnosis changed in icc 8.0: 4437 # icc: Command line remark: option '-MP' not supported 4438 if (grep 'ignoring option' conftest.err || 4439 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4440 am_cv_CC_dependencies_compiler_type=$depmode 4441 break 4442 fi 4443 fi 4444 done 4445 4446 cd .. 4447 rm -rf conftest.dir 4448else 4449 am_cv_CC_dependencies_compiler_type=none 4450fi 4451 4452fi 4453{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4454echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4455CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4456 4457 4458 4459if 4460 test "x$enable_dependency_tracking" != xno \ 4461 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4462 am__fastdepCC_TRUE= 4463 am__fastdepCC_FALSE='#' 4464else 4465 am__fastdepCC_TRUE='#' 4466 am__fastdepCC_FALSE= 4467fi 4468 4469 4470ac_ext=c 4471ac_cpp='$CPP $CPPFLAGS' 4472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4474ac_compiler_gnu=$ac_cv_c_compiler_gnu 4475if test -n "$ac_tool_prefix"; then 4476 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4477set dummy ${ac_tool_prefix}gcc; ac_word=$2 4478{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4480if test "${ac_cv_prog_CC+set}" = set; then 4481 echo $ECHO_N "(cached) $ECHO_C" >&6 4482else 4483 if test -n "$CC"; then 4484 ac_cv_prog_CC="$CC" # Let the user override the test. 4485else 4486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4487for as_dir in $PATH 4488do 4489 IFS=$as_save_IFS 4490 test -z "$as_dir" && as_dir=. 4491 for ac_exec_ext in '' $ac_executable_extensions; do 4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4493 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4495 break 2 4496 fi 4497done 4498done 4499IFS=$as_save_IFS 4500 4501fi 4502fi 4503CC=$ac_cv_prog_CC 4504if test -n "$CC"; then 4505 { echo "$as_me:$LINENO: result: $CC" >&5 4506echo "${ECHO_T}$CC" >&6; } 4507else 4508 { echo "$as_me:$LINENO: result: no" >&5 4509echo "${ECHO_T}no" >&6; } 4510fi 4511 4512 4513fi 4514if test -z "$ac_cv_prog_CC"; then 4515 ac_ct_CC=$CC 4516 # Extract the first word of "gcc", so it can be a program name with args. 4517set dummy gcc; ac_word=$2 4518{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4520if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4521 echo $ECHO_N "(cached) $ECHO_C" >&6 4522else 4523 if test -n "$ac_ct_CC"; then 4524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4525else 4526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4527for as_dir in $PATH 4528do 4529 IFS=$as_save_IFS 4530 test -z "$as_dir" && as_dir=. 4531 for ac_exec_ext in '' $ac_executable_extensions; do 4532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4533 ac_cv_prog_ac_ct_CC="gcc" 4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4535 break 2 4536 fi 4537done 4538done 4539IFS=$as_save_IFS 4540 4541fi 4542fi 4543ac_ct_CC=$ac_cv_prog_ac_ct_CC 4544if test -n "$ac_ct_CC"; then 4545 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4546echo "${ECHO_T}$ac_ct_CC" >&6; } 4547else 4548 { echo "$as_me:$LINENO: result: no" >&5 4549echo "${ECHO_T}no" >&6; } 4550fi 4551 4552 if test "x$ac_ct_CC" = x; then 4553 CC="" 4554 else 4555 case $cross_compiling:$ac_tool_warned in 4556yes:) 4557{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4558whose name does not start with the host triplet. If you think this 4559configuration is useful to you, please write to autoconf@gnu.org." >&5 4560echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4561whose name does not start with the host triplet. If you think this 4562configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4563ac_tool_warned=yes ;; 4564esac 4565 CC=$ac_ct_CC 4566 fi 4567else 4568 CC="$ac_cv_prog_CC" 4569fi 4570 4571if test -z "$CC"; then 4572 if test -n "$ac_tool_prefix"; then 4573 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4574set dummy ${ac_tool_prefix}cc; ac_word=$2 4575{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4577if test "${ac_cv_prog_CC+set}" = set; then 4578 echo $ECHO_N "(cached) $ECHO_C" >&6 4579else 4580 if test -n "$CC"; then 4581 ac_cv_prog_CC="$CC" # Let the user override the test. 4582else 4583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4584for as_dir in $PATH 4585do 4586 IFS=$as_save_IFS 4587 test -z "$as_dir" && as_dir=. 4588 for ac_exec_ext in '' $ac_executable_extensions; do 4589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4590 ac_cv_prog_CC="${ac_tool_prefix}cc" 4591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4592 break 2 4593 fi 4594done 4595done 4596IFS=$as_save_IFS 4597 4598fi 4599fi 4600CC=$ac_cv_prog_CC 4601if test -n "$CC"; then 4602 { echo "$as_me:$LINENO: result: $CC" >&5 4603echo "${ECHO_T}$CC" >&6; } 4604else 4605 { echo "$as_me:$LINENO: result: no" >&5 4606echo "${ECHO_T}no" >&6; } 4607fi 4608 4609 4610 fi 4611fi 4612if test -z "$CC"; then 4613 # Extract the first word of "cc", so it can be a program name with args. 4614set dummy cc; ac_word=$2 4615{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4617if test "${ac_cv_prog_CC+set}" = set; then 4618 echo $ECHO_N "(cached) $ECHO_C" >&6 4619else 4620 if test -n "$CC"; then 4621 ac_cv_prog_CC="$CC" # Let the user override the test. 4622else 4623 ac_prog_rejected=no 4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4625for as_dir in $PATH 4626do 4627 IFS=$as_save_IFS 4628 test -z "$as_dir" && as_dir=. 4629 for ac_exec_ext in '' $ac_executable_extensions; do 4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4631 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4632 ac_prog_rejected=yes 4633 continue 4634 fi 4635 ac_cv_prog_CC="cc" 4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4637 break 2 4638 fi 4639done 4640done 4641IFS=$as_save_IFS 4642 4643if test $ac_prog_rejected = yes; then 4644 # We found a bogon in the path, so make sure we never use it. 4645 set dummy $ac_cv_prog_CC 4646 shift 4647 if test $# != 0; then 4648 # We chose a different compiler from the bogus one. 4649 # However, it has the same basename, so the bogon will be chosen 4650 # first if we set CC to just the basename; use the full file name. 4651 shift 4652 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4653 fi 4654fi 4655fi 4656fi 4657CC=$ac_cv_prog_CC 4658if test -n "$CC"; then 4659 { echo "$as_me:$LINENO: result: $CC" >&5 4660echo "${ECHO_T}$CC" >&6; } 4661else 4662 { echo "$as_me:$LINENO: result: no" >&5 4663echo "${ECHO_T}no" >&6; } 4664fi 4665 4666 4667fi 4668if test -z "$CC"; then 4669 if test -n "$ac_tool_prefix"; then 4670 for ac_prog in cl.exe 4671 do 4672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4673set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4674{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4676if test "${ac_cv_prog_CC+set}" = set; then 4677 echo $ECHO_N "(cached) $ECHO_C" >&6 4678else 4679 if test -n "$CC"; then 4680 ac_cv_prog_CC="$CC" # Let the user override the test. 4681else 4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4683for as_dir in $PATH 4684do 4685 IFS=$as_save_IFS 4686 test -z "$as_dir" && as_dir=. 4687 for ac_exec_ext in '' $ac_executable_extensions; do 4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4689 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4691 break 2 4692 fi 4693done 4694done 4695IFS=$as_save_IFS 4696 4697fi 4698fi 4699CC=$ac_cv_prog_CC 4700if test -n "$CC"; then 4701 { echo "$as_me:$LINENO: result: $CC" >&5 4702echo "${ECHO_T}$CC" >&6; } 4703else 4704 { echo "$as_me:$LINENO: result: no" >&5 4705echo "${ECHO_T}no" >&6; } 4706fi 4707 4708 4709 test -n "$CC" && break 4710 done 4711fi 4712if test -z "$CC"; then 4713 ac_ct_CC=$CC 4714 for ac_prog in cl.exe 4715do 4716 # Extract the first word of "$ac_prog", so it can be a program name with args. 4717set dummy $ac_prog; ac_word=$2 4718{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4720if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4721 echo $ECHO_N "(cached) $ECHO_C" >&6 4722else 4723 if test -n "$ac_ct_CC"; then 4724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4725else 4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4727for as_dir in $PATH 4728do 4729 IFS=$as_save_IFS 4730 test -z "$as_dir" && as_dir=. 4731 for ac_exec_ext in '' $ac_executable_extensions; do 4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4733 ac_cv_prog_ac_ct_CC="$ac_prog" 4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4735 break 2 4736 fi 4737done 4738done 4739IFS=$as_save_IFS 4740 4741fi 4742fi 4743ac_ct_CC=$ac_cv_prog_ac_ct_CC 4744if test -n "$ac_ct_CC"; then 4745 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4746echo "${ECHO_T}$ac_ct_CC" >&6; } 4747else 4748 { echo "$as_me:$LINENO: result: no" >&5 4749echo "${ECHO_T}no" >&6; } 4750fi 4751 4752 4753 test -n "$ac_ct_CC" && break 4754done 4755 4756 if test "x$ac_ct_CC" = x; then 4757 CC="" 4758 else 4759 case $cross_compiling:$ac_tool_warned in 4760yes:) 4761{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4762whose name does not start with the host triplet. If you think this 4763configuration is useful to you, please write to autoconf@gnu.org." >&5 4764echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4765whose name does not start with the host triplet. If you think this 4766configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4767ac_tool_warned=yes ;; 4768esac 4769 CC=$ac_ct_CC 4770 fi 4771fi 4772 4773fi 4774 4775 4776test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4777See \`config.log' for more details." >&5 4778echo "$as_me: error: no acceptable C compiler found in \$PATH 4779See \`config.log' for more details." >&2;} 4780 { (exit 1); exit 1; }; } 4781 4782# Provide some information about the compiler. 4783echo "$as_me:$LINENO: checking for C compiler version" >&5 4784ac_compiler=`set X $ac_compile; echo $2` 4785{ (ac_try="$ac_compiler --version >&5" 4786case "(($ac_try" in 4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4788 *) ac_try_echo=$ac_try;; 4789esac 4790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4791 (eval "$ac_compiler --version >&5") 2>&5 4792 ac_status=$? 4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4794 (exit $ac_status); } 4795{ (ac_try="$ac_compiler -v >&5" 4796case "(($ac_try" in 4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4798 *) ac_try_echo=$ac_try;; 4799esac 4800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4801 (eval "$ac_compiler -v >&5") 2>&5 4802 ac_status=$? 4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4804 (exit $ac_status); } 4805{ (ac_try="$ac_compiler -V >&5" 4806case "(($ac_try" in 4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4808 *) ac_try_echo=$ac_try;; 4809esac 4810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4811 (eval "$ac_compiler -V >&5") 2>&5 4812 ac_status=$? 4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4814 (exit $ac_status); } 4815 4816{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4817echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 4818if test "${ac_cv_c_compiler_gnu+set}" = set; then 4819 echo $ECHO_N "(cached) $ECHO_C" >&6 4820else 4821 cat >conftest.$ac_ext <<_ACEOF 4822/* confdefs.h. */ 4823_ACEOF 4824cat confdefs.h >>conftest.$ac_ext 4825cat >>conftest.$ac_ext <<_ACEOF 4826/* end confdefs.h. */ 4827 4828int 4829main () 4830{ 4831#ifndef __GNUC__ 4832 choke me 4833#endif 4834 4835 ; 4836 return 0; 4837} 4838_ACEOF 4839rm -f conftest.$ac_objext 4840if { (ac_try="$ac_compile" 4841case "(($ac_try" in 4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4843 *) ac_try_echo=$ac_try;; 4844esac 4845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4846 (eval "$ac_compile") 2>conftest.er1 4847 ac_status=$? 4848 grep -v '^ *+' conftest.er1 >conftest.err 4849 rm -f conftest.er1 4850 cat conftest.err >&5 4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4852 (exit $ac_status); } && { 4853 test -z "$ac_c_werror_flag" || 4854 test ! -s conftest.err 4855 } && test -s conftest.$ac_objext; then 4856 ac_compiler_gnu=yes 4857else 4858 echo "$as_me: failed program was:" >&5 4859sed 's/^/| /' conftest.$ac_ext >&5 4860 4861 ac_compiler_gnu=no 4862fi 4863 4864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4865ac_cv_c_compiler_gnu=$ac_compiler_gnu 4866 4867fi 4868{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4869echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 4870GCC=`test $ac_compiler_gnu = yes && echo yes` 4871ac_test_CFLAGS=${CFLAGS+set} 4872ac_save_CFLAGS=$CFLAGS 4873{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4874echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 4875if test "${ac_cv_prog_cc_g+set}" = set; then 4876 echo $ECHO_N "(cached) $ECHO_C" >&6 4877else 4878 ac_save_c_werror_flag=$ac_c_werror_flag 4879 ac_c_werror_flag=yes 4880 ac_cv_prog_cc_g=no 4881 CFLAGS="-g" 4882 cat >conftest.$ac_ext <<_ACEOF 4883/* confdefs.h. */ 4884_ACEOF 4885cat confdefs.h >>conftest.$ac_ext 4886cat >>conftest.$ac_ext <<_ACEOF 4887/* end confdefs.h. */ 4888 4889int 4890main () 4891{ 4892 4893 ; 4894 return 0; 4895} 4896_ACEOF 4897rm -f conftest.$ac_objext 4898if { (ac_try="$ac_compile" 4899case "(($ac_try" in 4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4901 *) ac_try_echo=$ac_try;; 4902esac 4903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4904 (eval "$ac_compile") 2>conftest.er1 4905 ac_status=$? 4906 grep -v '^ *+' conftest.er1 >conftest.err 4907 rm -f conftest.er1 4908 cat conftest.err >&5 4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4910 (exit $ac_status); } && { 4911 test -z "$ac_c_werror_flag" || 4912 test ! -s conftest.err 4913 } && test -s conftest.$ac_objext; then 4914 ac_cv_prog_cc_g=yes 4915else 4916 echo "$as_me: failed program was:" >&5 4917sed 's/^/| /' conftest.$ac_ext >&5 4918 4919 CFLAGS="" 4920 cat >conftest.$ac_ext <<_ACEOF 4921/* confdefs.h. */ 4922_ACEOF 4923cat confdefs.h >>conftest.$ac_ext 4924cat >>conftest.$ac_ext <<_ACEOF 4925/* end confdefs.h. */ 4926 4927int 4928main () 4929{ 4930 4931 ; 4932 return 0; 4933} 4934_ACEOF 4935rm -f conftest.$ac_objext 4936if { (ac_try="$ac_compile" 4937case "(($ac_try" in 4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4939 *) ac_try_echo=$ac_try;; 4940esac 4941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4942 (eval "$ac_compile") 2>conftest.er1 4943 ac_status=$? 4944 grep -v '^ *+' conftest.er1 >conftest.err 4945 rm -f conftest.er1 4946 cat conftest.err >&5 4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4948 (exit $ac_status); } && { 4949 test -z "$ac_c_werror_flag" || 4950 test ! -s conftest.err 4951 } && test -s conftest.$ac_objext; then 4952 : 4953else 4954 echo "$as_me: failed program was:" >&5 4955sed 's/^/| /' conftest.$ac_ext >&5 4956 4957 ac_c_werror_flag=$ac_save_c_werror_flag 4958 CFLAGS="-g" 4959 cat >conftest.$ac_ext <<_ACEOF 4960/* confdefs.h. */ 4961_ACEOF 4962cat confdefs.h >>conftest.$ac_ext 4963cat >>conftest.$ac_ext <<_ACEOF 4964/* end confdefs.h. */ 4965 4966int 4967main () 4968{ 4969 4970 ; 4971 return 0; 4972} 4973_ACEOF 4974rm -f conftest.$ac_objext 4975if { (ac_try="$ac_compile" 4976case "(($ac_try" in 4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4978 *) ac_try_echo=$ac_try;; 4979esac 4980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4981 (eval "$ac_compile") 2>conftest.er1 4982 ac_status=$? 4983 grep -v '^ *+' conftest.er1 >conftest.err 4984 rm -f conftest.er1 4985 cat conftest.err >&5 4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4987 (exit $ac_status); } && { 4988 test -z "$ac_c_werror_flag" || 4989 test ! -s conftest.err 4990 } && test -s conftest.$ac_objext; then 4991 ac_cv_prog_cc_g=yes 4992else 4993 echo "$as_me: failed program was:" >&5 4994sed 's/^/| /' conftest.$ac_ext >&5 4995 4996 4997fi 4998 4999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5000fi 5001 5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5003fi 5004 5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5006 ac_c_werror_flag=$ac_save_c_werror_flag 5007fi 5008{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 5009echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 5010if test "$ac_test_CFLAGS" = set; then 5011 CFLAGS=$ac_save_CFLAGS 5012elif test $ac_cv_prog_cc_g = yes; then 5013 if test "$GCC" = yes; then 5014 CFLAGS="-g -O2" 5015 else 5016 CFLAGS="-g" 5017 fi 5018else 5019 if test "$GCC" = yes; then 5020 CFLAGS="-O2" 5021 else 5022 CFLAGS= 5023 fi 5024fi 5025{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 5026echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 5027if test "${ac_cv_prog_cc_c89+set}" = set; then 5028 echo $ECHO_N "(cached) $ECHO_C" >&6 5029else 5030 ac_cv_prog_cc_c89=no 5031ac_save_CC=$CC 5032cat >conftest.$ac_ext <<_ACEOF 5033/* confdefs.h. */ 5034_ACEOF 5035cat confdefs.h >>conftest.$ac_ext 5036cat >>conftest.$ac_ext <<_ACEOF 5037/* end confdefs.h. */ 5038#include <stdarg.h> 5039#include <stdio.h> 5040#include <sys/types.h> 5041#include <sys/stat.h> 5042/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5043struct buf { int x; }; 5044FILE * (*rcsopen) (struct buf *, struct stat *, int); 5045static char *e (p, i) 5046 char **p; 5047 int i; 5048{ 5049 return p[i]; 5050} 5051static char *f (char * (*g) (char **, int), char **p, ...) 5052{ 5053 char *s; 5054 va_list v; 5055 va_start (v,p); 5056 s = g (p, va_arg (v,int)); 5057 va_end (v); 5058 return s; 5059} 5060 5061/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5062 function prototypes and stuff, but not '\xHH' hex character constants. 5063 These don't provoke an error unfortunately, instead are silently treated 5064 as 'x'. The following induces an error, until -std is added to get 5065 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5066 array size at least. It's necessary to write '\x00'==0 to get something 5067 that's true only with -std. */ 5068int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5069 5070/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5071 inside strings and character constants. */ 5072#define FOO(x) 'x' 5073int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5074 5075int test (int i, double x); 5076struct s1 {int (*f) (int a);}; 5077struct s2 {int (*f) (double a);}; 5078int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5079int argc; 5080char **argv; 5081int 5082main () 5083{ 5084return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5085 ; 5086 return 0; 5087} 5088_ACEOF 5089for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5090 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5091do 5092 CC="$ac_save_CC $ac_arg" 5093 rm -f conftest.$ac_objext 5094if { (ac_try="$ac_compile" 5095case "(($ac_try" in 5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5097 *) ac_try_echo=$ac_try;; 5098esac 5099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5100 (eval "$ac_compile") 2>conftest.er1 5101 ac_status=$? 5102 grep -v '^ *+' conftest.er1 >conftest.err 5103 rm -f conftest.er1 5104 cat conftest.err >&5 5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5106 (exit $ac_status); } && { 5107 test -z "$ac_c_werror_flag" || 5108 test ! -s conftest.err 5109 } && test -s conftest.$ac_objext; then 5110 ac_cv_prog_cc_c89=$ac_arg 5111else 5112 echo "$as_me: failed program was:" >&5 5113sed 's/^/| /' conftest.$ac_ext >&5 5114 5115 5116fi 5117 5118rm -f core conftest.err conftest.$ac_objext 5119 test "x$ac_cv_prog_cc_c89" != "xno" && break 5120done 5121rm -f conftest.$ac_ext 5122CC=$ac_save_CC 5123 5124fi 5125# AC_CACHE_VAL 5126case "x$ac_cv_prog_cc_c89" in 5127 x) 5128 { echo "$as_me:$LINENO: result: none needed" >&5 5129echo "${ECHO_T}none needed" >&6; } ;; 5130 xno) 5131 { echo "$as_me:$LINENO: result: unsupported" >&5 5132echo "${ECHO_T}unsupported" >&6; } ;; 5133 *) 5134 CC="$CC $ac_cv_prog_cc_c89" 5135 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 5136echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 5137esac 5138 5139 5140ac_ext=c 5141ac_cpp='$CPP $CPPFLAGS' 5142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5144ac_compiler_gnu=$ac_cv_c_compiler_gnu 5145 5146depcc="$CC" am_compiler_list= 5147 5148{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5149echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5150if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5151 echo $ECHO_N "(cached) $ECHO_C" >&6 5152else 5153 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5154 # We make a subdir and do the tests there. Otherwise we can end up 5155 # making bogus files that we don't know about and never remove. For 5156 # instance it was reported that on HP-UX the gcc test will end up 5157 # making a dummy file named `D' -- because `-MD' means `put the output 5158 # in D'. 5159 mkdir conftest.dir 5160 # Copy depcomp to subdir because otherwise we won't find it if we're 5161 # using a relative directory. 5162 cp "$am_depcomp" conftest.dir 5163 cd conftest.dir 5164 # We will build objects and dependencies in a subdirectory because 5165 # it helps to detect inapplicable dependency modes. For instance 5166 # both Tru64's cc and ICC support -MD to output dependencies as a 5167 # side effect of compilation, but ICC will put the dependencies in 5168 # the current directory while Tru64 will put them in the object 5169 # directory. 5170 mkdir sub 5171 5172 am_cv_CC_dependencies_compiler_type=none 5173 if test "$am_compiler_list" = ""; then 5174 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5175 fi 5176 for depmode in $am_compiler_list; do 5177 # Setup a source with many dependencies, because some compilers 5178 # like to wrap large dependency lists on column 80 (with \), and 5179 # we should not choose a depcomp mode which is confused by this. 5180 # 5181 # We need to recreate these files for each test, as the compiler may 5182 # overwrite some of them when testing with obscure command lines. 5183 # This happens at least with the AIX C compiler. 5184 : > sub/conftest.c 5185 for i in 1 2 3 4 5 6; do 5186 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5187 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5188 # Solaris 8's {/usr,}/bin/sh. 5189 touch sub/conftst$i.h 5190 done 5191 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5192 5193 case $depmode in 5194 nosideeffect) 5195 # after this tag, mechanisms are not by side-effect, so they'll 5196 # only be used when explicitly requested 5197 if test "x$enable_dependency_tracking" = xyes; then 5198 continue 5199 else 5200 break 5201 fi 5202 ;; 5203 none) break ;; 5204 esac 5205 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5206 # mode. It turns out that the SunPro C++ compiler does not properly 5207 # handle `-M -o', and we need to detect this. 5208 if depmode=$depmode \ 5209 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5210 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5211 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5212 >/dev/null 2>conftest.err && 5213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5214 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5216 # icc doesn't choke on unknown options, it will just issue warnings 5217 # or remarks (even with -Werror). So we grep stderr for any message 5218 # that says an option was ignored or not supported. 5219 # When given -MP, icc 7.0 and 7.1 complain thusly: 5220 # icc: Command line warning: ignoring option '-M'; no argument required 5221 # The diagnosis changed in icc 8.0: 5222 # icc: Command line remark: option '-MP' not supported 5223 if (grep 'ignoring option' conftest.err || 5224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5225 am_cv_CC_dependencies_compiler_type=$depmode 5226 break 5227 fi 5228 fi 5229 done 5230 5231 cd .. 5232 rm -rf conftest.dir 5233else 5234 am_cv_CC_dependencies_compiler_type=none 5235fi 5236 5237fi 5238{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5239echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 5240CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5241 5242 5243 5244if 5245 test "x$enable_dependency_tracking" != xno \ 5246 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5247 am__fastdepCC_TRUE= 5248 am__fastdepCC_FALSE='#' 5249else 5250 am__fastdepCC_TRUE='#' 5251 am__fastdepCC_FALSE= 5252fi 5253 5254 5255 5256am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc 5257 5258ac_ext=c 5259ac_cpp='$CPP $CPPFLAGS' 5260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5262ac_compiler_gnu=$ac_cv_c_compiler_gnu 5263{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5264echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5265# On Suns, sometimes $CPP names a directory. 5266if test -n "$CPP" && test -d "$CPP"; then 5267 CPP= 5268fi 5269if test -z "$CPP"; then 5270 if test "${ac_cv_prog_CPP+set}" = set; then 5271 echo $ECHO_N "(cached) $ECHO_C" >&6 5272else 5273 # Double quotes because CPP needs to be expanded 5274 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5275 do 5276 ac_preproc_ok=false 5277for ac_c_preproc_warn_flag in '' yes 5278do 5279 # Use a header file that comes with gcc, so configuring glibc 5280 # with a fresh cross-compiler works. 5281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5282 # <limits.h> exists even on freestanding compilers. 5283 # On the NeXT, cc -E runs the code through the compiler's parser, 5284 # not just through cpp. "Syntax error" is here to catch this case. 5285 cat >conftest.$ac_ext <<_ACEOF 5286/* confdefs.h. */ 5287_ACEOF 5288cat confdefs.h >>conftest.$ac_ext 5289cat >>conftest.$ac_ext <<_ACEOF 5290/* end confdefs.h. */ 5291#ifdef __STDC__ 5292# include <limits.h> 5293#else 5294# include <assert.h> 5295#endif 5296 Syntax error 5297_ACEOF 5298if { (ac_try="$ac_cpp conftest.$ac_ext" 5299case "(($ac_try" in 5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5301 *) ac_try_echo=$ac_try;; 5302esac 5303eval "echo \"\$as_me:$LINENO: $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 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 : 5315else 5316 echo "$as_me: failed program was:" >&5 5317sed 's/^/| /' conftest.$ac_ext >&5 5318 5319 # Broken: fails on valid input. 5320continue 5321fi 5322 5323rm -f conftest.err conftest.$ac_ext 5324 5325 # OK, works on sane cases. Now check whether nonexistent headers 5326 # can be detected and how. 5327 cat >conftest.$ac_ext <<_ACEOF 5328/* confdefs.h. */ 5329_ACEOF 5330cat confdefs.h >>conftest.$ac_ext 5331cat >>conftest.$ac_ext <<_ACEOF 5332/* end confdefs.h. */ 5333#include <ac_nonexistent.h> 5334_ACEOF 5335if { (ac_try="$ac_cpp conftest.$ac_ext" 5336case "(($ac_try" in 5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5338 *) ac_try_echo=$ac_try;; 5339esac 5340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5342 ac_status=$? 5343 grep -v '^ *+' conftest.er1 >conftest.err 5344 rm -f conftest.er1 5345 cat conftest.err >&5 5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5347 (exit $ac_status); } >/dev/null && { 5348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5349 test ! -s conftest.err 5350 }; then 5351 # Broken: success on invalid input. 5352continue 5353else 5354 echo "$as_me: failed program was:" >&5 5355sed 's/^/| /' conftest.$ac_ext >&5 5356 5357 # Passes both tests. 5358ac_preproc_ok=: 5359break 5360fi 5361 5362rm -f conftest.err conftest.$ac_ext 5363 5364done 5365# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5366rm -f conftest.err conftest.$ac_ext 5367if $ac_preproc_ok; then 5368 break 5369fi 5370 5371 done 5372 ac_cv_prog_CPP=$CPP 5373 5374fi 5375 CPP=$ac_cv_prog_CPP 5376else 5377 ac_cv_prog_CPP=$CPP 5378fi 5379{ echo "$as_me:$LINENO: result: $CPP" >&5 5380echo "${ECHO_T}$CPP" >&6; } 5381ac_preproc_ok=false 5382for ac_c_preproc_warn_flag in '' yes 5383do 5384 # Use a header file that comes with gcc, so configuring glibc 5385 # with a fresh cross-compiler works. 5386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5387 # <limits.h> exists even on freestanding compilers. 5388 # On the NeXT, cc -E runs the code through the compiler's parser, 5389 # not just through cpp. "Syntax error" is here to catch this case. 5390 cat >conftest.$ac_ext <<_ACEOF 5391/* confdefs.h. */ 5392_ACEOF 5393cat confdefs.h >>conftest.$ac_ext 5394cat >>conftest.$ac_ext <<_ACEOF 5395/* end confdefs.h. */ 5396#ifdef __STDC__ 5397# include <limits.h> 5398#else 5399# include <assert.h> 5400#endif 5401 Syntax error 5402_ACEOF 5403if { (ac_try="$ac_cpp conftest.$ac_ext" 5404case "(($ac_try" in 5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5406 *) ac_try_echo=$ac_try;; 5407esac 5408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5410 ac_status=$? 5411 grep -v '^ *+' conftest.er1 >conftest.err 5412 rm -f conftest.er1 5413 cat conftest.err >&5 5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5415 (exit $ac_status); } >/dev/null && { 5416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5417 test ! -s conftest.err 5418 }; then 5419 : 5420else 5421 echo "$as_me: failed program was:" >&5 5422sed 's/^/| /' conftest.$ac_ext >&5 5423 5424 # Broken: fails on valid input. 5425continue 5426fi 5427 5428rm -f conftest.err conftest.$ac_ext 5429 5430 # OK, works on sane cases. Now check whether nonexistent headers 5431 # can be detected and how. 5432 cat >conftest.$ac_ext <<_ACEOF 5433/* confdefs.h. */ 5434_ACEOF 5435cat confdefs.h >>conftest.$ac_ext 5436cat >>conftest.$ac_ext <<_ACEOF 5437/* end confdefs.h. */ 5438#include <ac_nonexistent.h> 5439_ACEOF 5440if { (ac_try="$ac_cpp conftest.$ac_ext" 5441case "(($ac_try" in 5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5443 *) ac_try_echo=$ac_try;; 5444esac 5445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5447 ac_status=$? 5448 grep -v '^ *+' conftest.er1 >conftest.err 5449 rm -f conftest.er1 5450 cat conftest.err >&5 5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5452 (exit $ac_status); } >/dev/null && { 5453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5454 test ! -s conftest.err 5455 }; then 5456 # Broken: success on invalid input. 5457continue 5458else 5459 echo "$as_me: failed program was:" >&5 5460sed 's/^/| /' conftest.$ac_ext >&5 5461 5462 # Passes both tests. 5463ac_preproc_ok=: 5464break 5465fi 5466 5467rm -f conftest.err conftest.$ac_ext 5468 5469done 5470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5471rm -f conftest.err conftest.$ac_ext 5472if $ac_preproc_ok; then 5473 : 5474else 5475 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5476See \`config.log' for more details." >&5 5477echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5478See \`config.log' for more details." >&2;} 5479 { (exit 1); exit 1; }; } 5480fi 5481 5482ac_ext=c 5483ac_cpp='$CPP $CPPFLAGS' 5484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5486ac_compiler_gnu=$ac_cv_c_compiler_gnu 5487 5488 5489{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 5490echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 5491if test "${ac_cv_path_GREP+set}" = set; then 5492 echo $ECHO_N "(cached) $ECHO_C" >&6 5493else 5494 # Extract the first word of "grep ggrep" to use in msg output 5495if test -z "$GREP"; then 5496set dummy grep ggrep; ac_prog_name=$2 5497if test "${ac_cv_path_GREP+set}" = set; then 5498 echo $ECHO_N "(cached) $ECHO_C" >&6 5499else 5500 ac_path_GREP_found=false 5501# Loop through the user's path and test for each of PROGNAME-LIST 5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5503for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5504do 5505 IFS=$as_save_IFS 5506 test -z "$as_dir" && as_dir=. 5507 for ac_prog in grep ggrep; do 5508 for ac_exec_ext in '' $ac_executable_extensions; do 5509 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5510 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5511 # Check for GNU ac_path_GREP and select it if it is found. 5512 # Check for GNU $ac_path_GREP 5513case `"$ac_path_GREP" --version 2>&1` in 5514*GNU*) 5515 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5516*) 5517 ac_count=0 5518 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5519 while : 5520 do 5521 cat "conftest.in" "conftest.in" >"conftest.tmp" 5522 mv "conftest.tmp" "conftest.in" 5523 cp "conftest.in" "conftest.nl" 5524 echo 'GREP' >> "conftest.nl" 5525 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5527 ac_count=`expr $ac_count + 1` 5528 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5529 # Best one so far, save it but keep looking for a better one 5530 ac_cv_path_GREP="$ac_path_GREP" 5531 ac_path_GREP_max=$ac_count 5532 fi 5533 # 10*(2^10) chars as input seems more than enough 5534 test $ac_count -gt 10 && break 5535 done 5536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5537esac 5538 5539 5540 $ac_path_GREP_found && break 3 5541 done 5542done 5543 5544done 5545IFS=$as_save_IFS 5546 5547 5548fi 5549 5550GREP="$ac_cv_path_GREP" 5551if test -z "$GREP"; then 5552 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5553echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5554 { (exit 1); exit 1; }; } 5555fi 5556 5557else 5558 ac_cv_path_GREP=$GREP 5559fi 5560 5561 5562fi 5563{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 5564echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 5565 GREP="$ac_cv_path_GREP" 5566 5567 5568{ echo "$as_me:$LINENO: checking for egrep" >&5 5569echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 5570if test "${ac_cv_path_EGREP+set}" = set; then 5571 echo $ECHO_N "(cached) $ECHO_C" >&6 5572else 5573 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5574 then ac_cv_path_EGREP="$GREP -E" 5575 else 5576 # Extract the first word of "egrep" to use in msg output 5577if test -z "$EGREP"; then 5578set dummy egrep; ac_prog_name=$2 5579if test "${ac_cv_path_EGREP+set}" = set; then 5580 echo $ECHO_N "(cached) $ECHO_C" >&6 5581else 5582 ac_path_EGREP_found=false 5583# Loop through the user's path and test for each of PROGNAME-LIST 5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5585for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5586do 5587 IFS=$as_save_IFS 5588 test -z "$as_dir" && as_dir=. 5589 for ac_prog in egrep; do 5590 for ac_exec_ext in '' $ac_executable_extensions; do 5591 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5592 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5593 # Check for GNU ac_path_EGREP and select it if it is found. 5594 # Check for GNU $ac_path_EGREP 5595case `"$ac_path_EGREP" --version 2>&1` in 5596*GNU*) 5597 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5598*) 5599 ac_count=0 5600 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5601 while : 5602 do 5603 cat "conftest.in" "conftest.in" >"conftest.tmp" 5604 mv "conftest.tmp" "conftest.in" 5605 cp "conftest.in" "conftest.nl" 5606 echo 'EGREP' >> "conftest.nl" 5607 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5609 ac_count=`expr $ac_count + 1` 5610 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5611 # Best one so far, save it but keep looking for a better one 5612 ac_cv_path_EGREP="$ac_path_EGREP" 5613 ac_path_EGREP_max=$ac_count 5614 fi 5615 # 10*(2^10) chars as input seems more than enough 5616 test $ac_count -gt 10 && break 5617 done 5618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5619esac 5620 5621 5622 $ac_path_EGREP_found && break 3 5623 done 5624done 5625 5626done 5627IFS=$as_save_IFS 5628 5629 5630fi 5631 5632EGREP="$ac_cv_path_EGREP" 5633if test -z "$EGREP"; then 5634 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5635echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5636 { (exit 1); exit 1; }; } 5637fi 5638 5639else 5640 ac_cv_path_EGREP=$EGREP 5641fi 5642 5643 5644 fi 5645fi 5646{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 5647echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 5648 EGREP="$ac_cv_path_EGREP" 5649 5650 5651{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5652echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5653if test "${ac_cv_header_stdc+set}" = set; then 5654 echo $ECHO_N "(cached) $ECHO_C" >&6 5655else 5656 cat >conftest.$ac_ext <<_ACEOF 5657/* confdefs.h. */ 5658_ACEOF 5659cat confdefs.h >>conftest.$ac_ext 5660cat >>conftest.$ac_ext <<_ACEOF 5661/* end confdefs.h. */ 5662#include <stdlib.h> 5663#include <stdarg.h> 5664#include <string.h> 5665#include <float.h> 5666 5667int 5668main () 5669{ 5670 5671 ; 5672 return 0; 5673} 5674_ACEOF 5675rm -f conftest.$ac_objext 5676if { (ac_try="$ac_compile" 5677case "(($ac_try" in 5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5679 *) ac_try_echo=$ac_try;; 5680esac 5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5682 (eval "$ac_compile") 2>conftest.er1 5683 ac_status=$? 5684 grep -v '^ *+' conftest.er1 >conftest.err 5685 rm -f conftest.er1 5686 cat conftest.err >&5 5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5688 (exit $ac_status); } && { 5689 test -z "$ac_c_werror_flag" || 5690 test ! -s conftest.err 5691 } && test -s conftest.$ac_objext; then 5692 ac_cv_header_stdc=yes 5693else 5694 echo "$as_me: failed program was:" >&5 5695sed 's/^/| /' conftest.$ac_ext >&5 5696 5697 ac_cv_header_stdc=no 5698fi 5699 5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5701 5702if test $ac_cv_header_stdc = yes; then 5703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5704 cat >conftest.$ac_ext <<_ACEOF 5705/* confdefs.h. */ 5706_ACEOF 5707cat confdefs.h >>conftest.$ac_ext 5708cat >>conftest.$ac_ext <<_ACEOF 5709/* end confdefs.h. */ 5710#include <string.h> 5711 5712_ACEOF 5713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5714 $EGREP "memchr" >/dev/null 2>&1; then 5715 : 5716else 5717 ac_cv_header_stdc=no 5718fi 5719rm -f conftest* 5720 5721fi 5722 5723if test $ac_cv_header_stdc = yes; then 5724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5725 cat >conftest.$ac_ext <<_ACEOF 5726/* confdefs.h. */ 5727_ACEOF 5728cat confdefs.h >>conftest.$ac_ext 5729cat >>conftest.$ac_ext <<_ACEOF 5730/* end confdefs.h. */ 5731#include <stdlib.h> 5732 5733_ACEOF 5734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5735 $EGREP "free" >/dev/null 2>&1; then 5736 : 5737else 5738 ac_cv_header_stdc=no 5739fi 5740rm -f conftest* 5741 5742fi 5743 5744if test $ac_cv_header_stdc = yes; then 5745 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5746 if test "$cross_compiling" = yes; then 5747 : 5748else 5749 cat >conftest.$ac_ext <<_ACEOF 5750/* confdefs.h. */ 5751_ACEOF 5752cat confdefs.h >>conftest.$ac_ext 5753cat >>conftest.$ac_ext <<_ACEOF 5754/* end confdefs.h. */ 5755#include <ctype.h> 5756#include <stdlib.h> 5757#if ((' ' & 0x0FF) == 0x020) 5758# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5759# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5760#else 5761# define ISLOWER(c) \ 5762 (('a' <= (c) && (c) <= 'i') \ 5763 || ('j' <= (c) && (c) <= 'r') \ 5764 || ('s' <= (c) && (c) <= 'z')) 5765# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5766#endif 5767 5768#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5769int 5770main () 5771{ 5772 int i; 5773 for (i = 0; i < 256; i++) 5774 if (XOR (islower (i), ISLOWER (i)) 5775 || toupper (i) != TOUPPER (i)) 5776 return 2; 5777 return 0; 5778} 5779_ACEOF 5780rm -f conftest$ac_exeext 5781if { (ac_try="$ac_link" 5782case "(($ac_try" in 5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5784 *) ac_try_echo=$ac_try;; 5785esac 5786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5787 (eval "$ac_link") 2>&5 5788 ac_status=$? 5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5791 { (case "(($ac_try" in 5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5793 *) ac_try_echo=$ac_try;; 5794esac 5795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5796 (eval "$ac_try") 2>&5 5797 ac_status=$? 5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5799 (exit $ac_status); }; }; then 5800 : 5801else 5802 echo "$as_me: program exited with status $ac_status" >&5 5803echo "$as_me: failed program was:" >&5 5804sed 's/^/| /' conftest.$ac_ext >&5 5805 5806( exit $ac_status ) 5807ac_cv_header_stdc=no 5808fi 5809rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5810fi 5811 5812 5813fi 5814fi 5815{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5816echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5817if test $ac_cv_header_stdc = yes; then 5818 5819cat >>confdefs.h <<\_ACEOF 5820#define STDC_HEADERS 1 5821_ACEOF 5822 5823fi 5824 5825 5826ac_ext=c 5827ac_cpp='$CPP $CPPFLAGS' 5828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5830ac_compiler_gnu=$ac_cv_c_compiler_gnu 5831{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5832echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5833# On Suns, sometimes $CPP names a directory. 5834if test -n "$CPP" && test -d "$CPP"; then 5835 CPP= 5836fi 5837if test -z "$CPP"; then 5838 if test "${ac_cv_prog_CPP+set}" = set; then 5839 echo $ECHO_N "(cached) $ECHO_C" >&6 5840else 5841 # Double quotes because CPP needs to be expanded 5842 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5843 do 5844 ac_preproc_ok=false 5845for ac_c_preproc_warn_flag in '' yes 5846do 5847 # Use a header file that comes with gcc, so configuring glibc 5848 # with a fresh cross-compiler works. 5849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5850 # <limits.h> exists even on freestanding compilers. 5851 # On the NeXT, cc -E runs the code through the compiler's parser, 5852 # not just through cpp. "Syntax error" is here to catch this case. 5853 cat >conftest.$ac_ext <<_ACEOF 5854/* confdefs.h. */ 5855_ACEOF 5856cat confdefs.h >>conftest.$ac_ext 5857cat >>conftest.$ac_ext <<_ACEOF 5858/* end confdefs.h. */ 5859#ifdef __STDC__ 5860# include <limits.h> 5861#else 5862# include <assert.h> 5863#endif 5864 Syntax error 5865_ACEOF 5866if { (ac_try="$ac_cpp conftest.$ac_ext" 5867case "(($ac_try" in 5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5869 *) ac_try_echo=$ac_try;; 5870esac 5871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5873 ac_status=$? 5874 grep -v '^ *+' conftest.er1 >conftest.err 5875 rm -f conftest.er1 5876 cat conftest.err >&5 5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5878 (exit $ac_status); } >/dev/null && { 5879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5880 test ! -s conftest.err 5881 }; then 5882 : 5883else 5884 echo "$as_me: failed program was:" >&5 5885sed 's/^/| /' conftest.$ac_ext >&5 5886 5887 # Broken: fails on valid input. 5888continue 5889fi 5890 5891rm -f conftest.err conftest.$ac_ext 5892 5893 # OK, works on sane cases. Now check whether nonexistent headers 5894 # can be detected and how. 5895 cat >conftest.$ac_ext <<_ACEOF 5896/* confdefs.h. */ 5897_ACEOF 5898cat confdefs.h >>conftest.$ac_ext 5899cat >>conftest.$ac_ext <<_ACEOF 5900/* end confdefs.h. */ 5901#include <ac_nonexistent.h> 5902_ACEOF 5903if { (ac_try="$ac_cpp conftest.$ac_ext" 5904case "(($ac_try" in 5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5906 *) ac_try_echo=$ac_try;; 5907esac 5908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5910 ac_status=$? 5911 grep -v '^ *+' conftest.er1 >conftest.err 5912 rm -f conftest.er1 5913 cat conftest.err >&5 5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5915 (exit $ac_status); } >/dev/null && { 5916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5917 test ! -s conftest.err 5918 }; then 5919 # Broken: success on invalid input. 5920continue 5921else 5922 echo "$as_me: failed program was:" >&5 5923sed 's/^/| /' conftest.$ac_ext >&5 5924 5925 # Passes both tests. 5926ac_preproc_ok=: 5927break 5928fi 5929 5930rm -f conftest.err conftest.$ac_ext 5931 5932done 5933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5934rm -f conftest.err conftest.$ac_ext 5935if $ac_preproc_ok; then 5936 break 5937fi 5938 5939 done 5940 ac_cv_prog_CPP=$CPP 5941 5942fi 5943 CPP=$ac_cv_prog_CPP 5944else 5945 ac_cv_prog_CPP=$CPP 5946fi 5947{ echo "$as_me:$LINENO: result: $CPP" >&5 5948echo "${ECHO_T}$CPP" >&6; } 5949ac_preproc_ok=false 5950for ac_c_preproc_warn_flag in '' yes 5951do 5952 # Use a header file that comes with gcc, so configuring glibc 5953 # with a fresh cross-compiler works. 5954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5955 # <limits.h> exists even on freestanding compilers. 5956 # On the NeXT, cc -E runs the code through the compiler's parser, 5957 # not just through cpp. "Syntax error" is here to catch this case. 5958 cat >conftest.$ac_ext <<_ACEOF 5959/* confdefs.h. */ 5960_ACEOF 5961cat confdefs.h >>conftest.$ac_ext 5962cat >>conftest.$ac_ext <<_ACEOF 5963/* end confdefs.h. */ 5964#ifdef __STDC__ 5965# include <limits.h> 5966#else 5967# include <assert.h> 5968#endif 5969 Syntax error 5970_ACEOF 5971if { (ac_try="$ac_cpp conftest.$ac_ext" 5972case "(($ac_try" in 5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5974 *) ac_try_echo=$ac_try;; 5975esac 5976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5978 ac_status=$? 5979 grep -v '^ *+' conftest.er1 >conftest.err 5980 rm -f conftest.er1 5981 cat conftest.err >&5 5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5983 (exit $ac_status); } >/dev/null && { 5984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5985 test ! -s conftest.err 5986 }; then 5987 : 5988else 5989 echo "$as_me: failed program was:" >&5 5990sed 's/^/| /' conftest.$ac_ext >&5 5991 5992 # Broken: fails on valid input. 5993continue 5994fi 5995 5996rm -f conftest.err conftest.$ac_ext 5997 5998 # OK, works on sane cases. Now check whether nonexistent headers 5999 # can be detected and how. 6000 cat >conftest.$ac_ext <<_ACEOF 6001/* confdefs.h. */ 6002_ACEOF 6003cat confdefs.h >>conftest.$ac_ext 6004cat >>conftest.$ac_ext <<_ACEOF 6005/* end confdefs.h. */ 6006#include <ac_nonexistent.h> 6007_ACEOF 6008if { (ac_try="$ac_cpp conftest.$ac_ext" 6009case "(($ac_try" in 6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6011 *) ac_try_echo=$ac_try;; 6012esac 6013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6015 ac_status=$? 6016 grep -v '^ *+' conftest.er1 >conftest.err 6017 rm -f conftest.er1 6018 cat conftest.err >&5 6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6020 (exit $ac_status); } >/dev/null && { 6021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6022 test ! -s conftest.err 6023 }; then 6024 # Broken: success on invalid input. 6025continue 6026else 6027 echo "$as_me: failed program was:" >&5 6028sed 's/^/| /' conftest.$ac_ext >&5 6029 6030 # Passes both tests. 6031ac_preproc_ok=: 6032break 6033fi 6034 6035rm -f conftest.err conftest.$ac_ext 6036 6037done 6038# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6039rm -f conftest.err conftest.$ac_ext 6040if $ac_preproc_ok; then 6041 : 6042else 6043 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6044See \`config.log' for more details." >&5 6045echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6046See \`config.log' for more details." >&2;} 6047 { (exit 1); exit 1; }; } 6048fi 6049 6050ac_ext=c 6051ac_cpp='$CPP $CPPFLAGS' 6052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6054ac_compiler_gnu=$ac_cv_c_compiler_gnu 6055 6056ac_ext=cpp 6057ac_cpp='$CXXCPP $CPPFLAGS' 6058ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6059ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6060ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6061if test -z "$CXX"; then 6062 if test -n "$CCC"; then 6063 CXX=$CCC 6064 else 6065 if test -n "$ac_tool_prefix"; then 6066 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6067 do 6068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6069set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6070{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6072if test "${ac_cv_prog_CXX+set}" = set; then 6073 echo $ECHO_N "(cached) $ECHO_C" >&6 6074else 6075 if test -n "$CXX"; then 6076 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6077else 6078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6079for as_dir in $PATH 6080do 6081 IFS=$as_save_IFS 6082 test -z "$as_dir" && as_dir=. 6083 for ac_exec_ext in '' $ac_executable_extensions; do 6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6085 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6087 break 2 6088 fi 6089done 6090done 6091IFS=$as_save_IFS 6092 6093fi 6094fi 6095CXX=$ac_cv_prog_CXX 6096if test -n "$CXX"; then 6097 { echo "$as_me:$LINENO: result: $CXX" >&5 6098echo "${ECHO_T}$CXX" >&6; } 6099else 6100 { echo "$as_me:$LINENO: result: no" >&5 6101echo "${ECHO_T}no" >&6; } 6102fi 6103 6104 6105 test -n "$CXX" && break 6106 done 6107fi 6108if test -z "$CXX"; then 6109 ac_ct_CXX=$CXX 6110 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6111do 6112 # Extract the first word of "$ac_prog", so it can be a program name with args. 6113set dummy $ac_prog; ac_word=$2 6114{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6116if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6117 echo $ECHO_N "(cached) $ECHO_C" >&6 6118else 6119 if test -n "$ac_ct_CXX"; then 6120 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6121else 6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6123for as_dir in $PATH 6124do 6125 IFS=$as_save_IFS 6126 test -z "$as_dir" && as_dir=. 6127 for ac_exec_ext in '' $ac_executable_extensions; do 6128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6129 ac_cv_prog_ac_ct_CXX="$ac_prog" 6130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6131 break 2 6132 fi 6133done 6134done 6135IFS=$as_save_IFS 6136 6137fi 6138fi 6139ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6140if test -n "$ac_ct_CXX"; then 6141 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6142echo "${ECHO_T}$ac_ct_CXX" >&6; } 6143else 6144 { echo "$as_me:$LINENO: result: no" >&5 6145echo "${ECHO_T}no" >&6; } 6146fi 6147 6148 6149 test -n "$ac_ct_CXX" && break 6150done 6151 6152 if test "x$ac_ct_CXX" = x; then 6153 CXX="g++" 6154 else 6155 case $cross_compiling:$ac_tool_warned in 6156yes:) 6157{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6158whose name does not start with the host triplet. If you think this 6159configuration is useful to you, please write to autoconf@gnu.org." >&5 6160echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6161whose name does not start with the host triplet. If you think this 6162configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6163ac_tool_warned=yes ;; 6164esac 6165 CXX=$ac_ct_CXX 6166 fi 6167fi 6168 6169 fi 6170fi 6171# Provide some information about the compiler. 6172echo "$as_me:$LINENO: checking for C++ compiler version" >&5 6173ac_compiler=`set X $ac_compile; echo $2` 6174{ (ac_try="$ac_compiler --version >&5" 6175case "(($ac_try" in 6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6177 *) ac_try_echo=$ac_try;; 6178esac 6179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6180 (eval "$ac_compiler --version >&5") 2>&5 6181 ac_status=$? 6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6183 (exit $ac_status); } 6184{ (ac_try="$ac_compiler -v >&5" 6185case "(($ac_try" in 6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6187 *) ac_try_echo=$ac_try;; 6188esac 6189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6190 (eval "$ac_compiler -v >&5") 2>&5 6191 ac_status=$? 6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6193 (exit $ac_status); } 6194{ (ac_try="$ac_compiler -V >&5" 6195case "(($ac_try" in 6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6197 *) ac_try_echo=$ac_try;; 6198esac 6199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6200 (eval "$ac_compiler -V >&5") 2>&5 6201 ac_status=$? 6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6203 (exit $ac_status); } 6204 6205{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6206echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 6207if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6208 echo $ECHO_N "(cached) $ECHO_C" >&6 6209else 6210 cat >conftest.$ac_ext <<_ACEOF 6211/* confdefs.h. */ 6212_ACEOF 6213cat confdefs.h >>conftest.$ac_ext 6214cat >>conftest.$ac_ext <<_ACEOF 6215/* end confdefs.h. */ 6216 6217int 6218main () 6219{ 6220#ifndef __GNUC__ 6221 choke me 6222#endif 6223 6224 ; 6225 return 0; 6226} 6227_ACEOF 6228rm -f conftest.$ac_objext 6229if { (ac_try="$ac_compile" 6230case "(($ac_try" in 6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6232 *) ac_try_echo=$ac_try;; 6233esac 6234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6235 (eval "$ac_compile") 2>conftest.er1 6236 ac_status=$? 6237 grep -v '^ *+' conftest.er1 >conftest.err 6238 rm -f conftest.er1 6239 cat conftest.err >&5 6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6241 (exit $ac_status); } && { 6242 test -z "$ac_cxx_werror_flag" || 6243 test ! -s conftest.err 6244 } && test -s conftest.$ac_objext; then 6245 ac_compiler_gnu=yes 6246else 6247 echo "$as_me: failed program was:" >&5 6248sed 's/^/| /' conftest.$ac_ext >&5 6249 6250 ac_compiler_gnu=no 6251fi 6252 6253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6254ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6255 6256fi 6257{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6258echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 6259GXX=`test $ac_compiler_gnu = yes && echo yes` 6260ac_test_CXXFLAGS=${CXXFLAGS+set} 6261ac_save_CXXFLAGS=$CXXFLAGS 6262{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6263echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 6264if test "${ac_cv_prog_cxx_g+set}" = set; then 6265 echo $ECHO_N "(cached) $ECHO_C" >&6 6266else 6267 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6268 ac_cxx_werror_flag=yes 6269 ac_cv_prog_cxx_g=no 6270 CXXFLAGS="-g" 6271 cat >conftest.$ac_ext <<_ACEOF 6272/* confdefs.h. */ 6273_ACEOF 6274cat confdefs.h >>conftest.$ac_ext 6275cat >>conftest.$ac_ext <<_ACEOF 6276/* end confdefs.h. */ 6277 6278int 6279main () 6280{ 6281 6282 ; 6283 return 0; 6284} 6285_ACEOF 6286rm -f conftest.$ac_objext 6287if { (ac_try="$ac_compile" 6288case "(($ac_try" in 6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6290 *) ac_try_echo=$ac_try;; 6291esac 6292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6293 (eval "$ac_compile") 2>conftest.er1 6294 ac_status=$? 6295 grep -v '^ *+' conftest.er1 >conftest.err 6296 rm -f conftest.er1 6297 cat conftest.err >&5 6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6299 (exit $ac_status); } && { 6300 test -z "$ac_cxx_werror_flag" || 6301 test ! -s conftest.err 6302 } && test -s conftest.$ac_objext; then 6303 ac_cv_prog_cxx_g=yes 6304else 6305 echo "$as_me: failed program was:" >&5 6306sed 's/^/| /' conftest.$ac_ext >&5 6307 6308 CXXFLAGS="" 6309 cat >conftest.$ac_ext <<_ACEOF 6310/* confdefs.h. */ 6311_ACEOF 6312cat confdefs.h >>conftest.$ac_ext 6313cat >>conftest.$ac_ext <<_ACEOF 6314/* end confdefs.h. */ 6315 6316int 6317main () 6318{ 6319 6320 ; 6321 return 0; 6322} 6323_ACEOF 6324rm -f conftest.$ac_objext 6325if { (ac_try="$ac_compile" 6326case "(($ac_try" in 6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6328 *) ac_try_echo=$ac_try;; 6329esac 6330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6331 (eval "$ac_compile") 2>conftest.er1 6332 ac_status=$? 6333 grep -v '^ *+' conftest.er1 >conftest.err 6334 rm -f conftest.er1 6335 cat conftest.err >&5 6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6337 (exit $ac_status); } && { 6338 test -z "$ac_cxx_werror_flag" || 6339 test ! -s conftest.err 6340 } && test -s conftest.$ac_objext; then 6341 : 6342else 6343 echo "$as_me: failed program was:" >&5 6344sed 's/^/| /' conftest.$ac_ext >&5 6345 6346 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6347 CXXFLAGS="-g" 6348 cat >conftest.$ac_ext <<_ACEOF 6349/* confdefs.h. */ 6350_ACEOF 6351cat confdefs.h >>conftest.$ac_ext 6352cat >>conftest.$ac_ext <<_ACEOF 6353/* end confdefs.h. */ 6354 6355int 6356main () 6357{ 6358 6359 ; 6360 return 0; 6361} 6362_ACEOF 6363rm -f conftest.$ac_objext 6364if { (ac_try="$ac_compile" 6365case "(($ac_try" in 6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6367 *) ac_try_echo=$ac_try;; 6368esac 6369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6370 (eval "$ac_compile") 2>conftest.er1 6371 ac_status=$? 6372 grep -v '^ *+' conftest.er1 >conftest.err 6373 rm -f conftest.er1 6374 cat conftest.err >&5 6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6376 (exit $ac_status); } && { 6377 test -z "$ac_cxx_werror_flag" || 6378 test ! -s conftest.err 6379 } && test -s conftest.$ac_objext; then 6380 ac_cv_prog_cxx_g=yes 6381else 6382 echo "$as_me: failed program was:" >&5 6383sed 's/^/| /' conftest.$ac_ext >&5 6384 6385 6386fi 6387 6388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6389fi 6390 6391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6392fi 6393 6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6395 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6396fi 6397{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6398echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 6399if test "$ac_test_CXXFLAGS" = set; then 6400 CXXFLAGS=$ac_save_CXXFLAGS 6401elif test $ac_cv_prog_cxx_g = yes; then 6402 if test "$GXX" = yes; then 6403 CXXFLAGS="-g -O2" 6404 else 6405 CXXFLAGS="-g" 6406 fi 6407else 6408 if test "$GXX" = yes; then 6409 CXXFLAGS="-O2" 6410 else 6411 CXXFLAGS= 6412 fi 6413fi 6414ac_ext=c 6415ac_cpp='$CPP $CPPFLAGS' 6416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6418ac_compiler_gnu=$ac_cv_c_compiler_gnu 6419 6420depcc="$CXX" am_compiler_list= 6421 6422{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 6423echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 6424if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 6425 echo $ECHO_N "(cached) $ECHO_C" >&6 6426else 6427 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6428 # We make a subdir and do the tests there. Otherwise we can end up 6429 # making bogus files that we don't know about and never remove. For 6430 # instance it was reported that on HP-UX the gcc test will end up 6431 # making a dummy file named `D' -- because `-MD' means `put the output 6432 # in D'. 6433 mkdir conftest.dir 6434 # Copy depcomp to subdir because otherwise we won't find it if we're 6435 # using a relative directory. 6436 cp "$am_depcomp" conftest.dir 6437 cd conftest.dir 6438 # We will build objects and dependencies in a subdirectory because 6439 # it helps to detect inapplicable dependency modes. For instance 6440 # both Tru64's cc and ICC support -MD to output dependencies as a 6441 # side effect of compilation, but ICC will put the dependencies in 6442 # the current directory while Tru64 will put them in the object 6443 # directory. 6444 mkdir sub 6445 6446 am_cv_CXX_dependencies_compiler_type=none 6447 if test "$am_compiler_list" = ""; then 6448 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6449 fi 6450 for depmode in $am_compiler_list; do 6451 # Setup a source with many dependencies, because some compilers 6452 # like to wrap large dependency lists on column 80 (with \), and 6453 # we should not choose a depcomp mode which is confused by this. 6454 # 6455 # We need to recreate these files for each test, as the compiler may 6456 # overwrite some of them when testing with obscure command lines. 6457 # This happens at least with the AIX C compiler. 6458 : > sub/conftest.c 6459 for i in 1 2 3 4 5 6; do 6460 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6461 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6462 # Solaris 8's {/usr,}/bin/sh. 6463 touch sub/conftst$i.h 6464 done 6465 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6466 6467 case $depmode in 6468 nosideeffect) 6469 # after this tag, mechanisms are not by side-effect, so they'll 6470 # only be used when explicitly requested 6471 if test "x$enable_dependency_tracking" = xyes; then 6472 continue 6473 else 6474 break 6475 fi 6476 ;; 6477 none) break ;; 6478 esac 6479 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6480 # mode. It turns out that the SunPro C++ compiler does not properly 6481 # handle `-M -o', and we need to detect this. 6482 if depmode=$depmode \ 6483 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6484 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6485 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6486 >/dev/null 2>conftest.err && 6487 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6488 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6489 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6490 # icc doesn't choke on unknown options, it will just issue warnings 6491 # or remarks (even with -Werror). So we grep stderr for any message 6492 # that says an option was ignored or not supported. 6493 # When given -MP, icc 7.0 and 7.1 complain thusly: 6494 # icc: Command line warning: ignoring option '-M'; no argument required 6495 # The diagnosis changed in icc 8.0: 6496 # icc: Command line remark: option '-MP' not supported 6497 if (grep 'ignoring option' conftest.err || 6498 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6499 am_cv_CXX_dependencies_compiler_type=$depmode 6500 break 6501 fi 6502 fi 6503 done 6504 6505 cd .. 6506 rm -rf conftest.dir 6507else 6508 am_cv_CXX_dependencies_compiler_type=none 6509fi 6510 6511fi 6512{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6513echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 6514CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6515 6516 6517 6518if 6519 test "x$enable_dependency_tracking" != xno \ 6520 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6521 am__fastdepCXX_TRUE= 6522 am__fastdepCXX_FALSE='#' 6523else 6524 am__fastdepCXX_TRUE='#' 6525 am__fastdepCXX_FALSE= 6526fi 6527 6528 6529for ac_prog in gawk mawk nawk awk 6530do 6531 # Extract the first word of "$ac_prog", so it can be a program name with args. 6532set dummy $ac_prog; ac_word=$2 6533{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6535if test "${ac_cv_prog_AWK+set}" = set; then 6536 echo $ECHO_N "(cached) $ECHO_C" >&6 6537else 6538 if test -n "$AWK"; then 6539 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6540else 6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6542for as_dir in $PATH 6543do 6544 IFS=$as_save_IFS 6545 test -z "$as_dir" && as_dir=. 6546 for ac_exec_ext in '' $ac_executable_extensions; do 6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6548 ac_cv_prog_AWK="$ac_prog" 6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6550 break 2 6551 fi 6552done 6553done 6554IFS=$as_save_IFS 6555 6556fi 6557fi 6558AWK=$ac_cv_prog_AWK 6559if test -n "$AWK"; then 6560 { echo "$as_me:$LINENO: result: $AWK" >&5 6561echo "${ECHO_T}$AWK" >&6; } 6562else 6563 { echo "$as_me:$LINENO: result: no" >&5 6564echo "${ECHO_T}no" >&6; } 6565fi 6566 6567 6568 test -n "$AWK" && break 6569done 6570 6571 6572# Check whether --enable-shared was given. 6573if test "${enable_shared+set}" = set; then 6574 enableval=$enable_shared; p=${PACKAGE-default} 6575 case $enableval in 6576 yes) enable_shared=yes ;; 6577 no) enable_shared=no ;; 6578 *) 6579 enable_shared=no 6580 # Look at the argument we got. We use all the common list separators. 6581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6582 for pkg in $enableval; do 6583 IFS="$lt_save_ifs" 6584 if test "X$pkg" = "X$p"; then 6585 enable_shared=yes 6586 fi 6587 done 6588 IFS="$lt_save_ifs" 6589 ;; 6590 esac 6591else 6592 enable_shared=yes 6593fi 6594 6595 6596# Check whether --enable-static was given. 6597if test "${enable_static+set}" = set; then 6598 enableval=$enable_static; p=${PACKAGE-default} 6599 case $enableval in 6600 yes) enable_static=yes ;; 6601 no) enable_static=no ;; 6602 *) 6603 enable_static=no 6604 # Look at the argument we got. We use all the common list separators. 6605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6606 for pkg in $enableval; do 6607 IFS="$lt_save_ifs" 6608 if test "X$pkg" = "X$p"; then 6609 enable_static=yes 6610 fi 6611 done 6612 IFS="$lt_save_ifs" 6613 ;; 6614 esac 6615else 6616 enable_static=yes 6617fi 6618 6619 6620# Check whether --enable-fast-install was given. 6621if test "${enable_fast_install+set}" = set; then 6622 enableval=$enable_fast_install; p=${PACKAGE-default} 6623 case $enableval in 6624 yes) enable_fast_install=yes ;; 6625 no) enable_fast_install=no ;; 6626 *) 6627 enable_fast_install=no 6628 # Look at the argument we got. We use all the common list separators. 6629 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6630 for pkg in $enableval; do 6631 IFS="$lt_save_ifs" 6632 if test "X$pkg" = "X$p"; then 6633 enable_fast_install=yes 6634 fi 6635 done 6636 IFS="$lt_save_ifs" 6637 ;; 6638 esac 6639else 6640 enable_fast_install=yes 6641fi 6642 6643 6644# Make sure we can run config.sub. 6645$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6646 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 6647echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 6648 { (exit 1); exit 1; }; } 6649 6650{ echo "$as_me:$LINENO: checking build system type" >&5 6651echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 6652if test "${ac_cv_build+set}" = set; then 6653 echo $ECHO_N "(cached) $ECHO_C" >&6 6654else 6655 ac_build_alias=$build_alias 6656test "x$ac_build_alias" = x && 6657 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6658test "x$ac_build_alias" = x && 6659 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 6660echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 6661 { (exit 1); exit 1; }; } 6662ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6663 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 6664echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 6665 { (exit 1); exit 1; }; } 6666 6667fi 6668{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 6669echo "${ECHO_T}$ac_cv_build" >&6; } 6670case $ac_cv_build in 6671*-*-*) ;; 6672*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 6673echo "$as_me: error: invalid value of canonical build" >&2;} 6674 { (exit 1); exit 1; }; };; 6675esac 6676build=$ac_cv_build 6677ac_save_IFS=$IFS; IFS='-' 6678set x $ac_cv_build 6679shift 6680build_cpu=$1 6681build_vendor=$2 6682shift; shift 6683# Remember, the first character of IFS is used to create $*, 6684# except with old shells: 6685build_os=$* 6686IFS=$ac_save_IFS 6687case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6688 6689 6690{ echo "$as_me:$LINENO: checking host system type" >&5 6691echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 6692if test "${ac_cv_host+set}" = set; then 6693 echo $ECHO_N "(cached) $ECHO_C" >&6 6694else 6695 if test "x$host_alias" = x; then 6696 ac_cv_host=$ac_cv_build 6697else 6698 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6699 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 6700echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 6701 { (exit 1); exit 1; }; } 6702fi 6703 6704fi 6705{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 6706echo "${ECHO_T}$ac_cv_host" >&6; } 6707case $ac_cv_host in 6708*-*-*) ;; 6709*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 6710echo "$as_me: error: invalid value of canonical host" >&2;} 6711 { (exit 1); exit 1; }; };; 6712esac 6713host=$ac_cv_host 6714ac_save_IFS=$IFS; IFS='-' 6715set x $ac_cv_host 6716shift 6717host_cpu=$1 6718host_vendor=$2 6719shift; shift 6720# Remember, the first character of IFS is used to create $*, 6721# except with old shells: 6722host_os=$* 6723IFS=$ac_save_IFS 6724case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6725 6726 6727{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 6728echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 6729if test "${lt_cv_path_SED+set}" = set; then 6730 echo $ECHO_N "(cached) $ECHO_C" >&6 6731else 6732 # Loop through the user's path and test for sed and gsed. 6733# Then use that list of sed's as ones to test for truncation. 6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6735for as_dir in $PATH 6736do 6737 IFS=$as_save_IFS 6738 test -z "$as_dir" && as_dir=. 6739 for lt_ac_prog in sed gsed; do 6740 for ac_exec_ext in '' $ac_executable_extensions; do 6741 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 6742 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 6743 fi 6744 done 6745 done 6746done 6747lt_ac_max=0 6748lt_ac_count=0 6749# Add /usr/xpg4/bin/sed as it is typically found on Solaris 6750# along with /bin/sed that truncates output. 6751for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 6752 test ! -f $lt_ac_sed && continue 6753 cat /dev/null > conftest.in 6754 lt_ac_count=0 6755 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 6756 # Check for GNU sed and select it if it is found. 6757 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 6758 lt_cv_path_SED=$lt_ac_sed 6759 break 6760 fi 6761 while true; do 6762 cat conftest.in conftest.in >conftest.tmp 6763 mv conftest.tmp conftest.in 6764 cp conftest.in conftest.nl 6765 echo >>conftest.nl 6766 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 6767 cmp -s conftest.out conftest.nl || break 6768 # 10000 chars as input seems more than enough 6769 test $lt_ac_count -gt 10 && break 6770 lt_ac_count=`expr $lt_ac_count + 1` 6771 if test $lt_ac_count -gt $lt_ac_max; then 6772 lt_ac_max=$lt_ac_count 6773 lt_cv_path_SED=$lt_ac_sed 6774 fi 6775 done 6776done 6777 6778fi 6779 6780SED=$lt_cv_path_SED 6781{ echo "$as_me:$LINENO: result: $SED" >&5 6782echo "${ECHO_T}$SED" >&6; } 6783 6784 6785# Check whether --with-gnu-ld was given. 6786if test "${with_gnu_ld+set}" = set; then 6787 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6788else 6789 with_gnu_ld=no 6790fi 6791 6792ac_prog=ld 6793if test "$GCC" = yes; then 6794 # Check if gcc -print-prog-name=ld gives a path. 6795 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 6796echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 6797 case $host in 6798 *-*-mingw*) 6799 # gcc leaves a trailing carriage return which upsets mingw 6800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6801 *) 6802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6803 esac 6804 case $ac_prog in 6805 # Accept absolute paths. 6806 [\\/]* | ?:[\\/]*) 6807 re_direlt='/[^/][^/]*/\.\./' 6808 # Canonicalize the pathname of ld 6809 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 6810 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 6811 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 6812 done 6813 test -z "$LD" && LD="$ac_prog" 6814 ;; 6815 "") 6816 # If it fails, then pretend we aren't using GCC. 6817 ac_prog=ld 6818 ;; 6819 *) 6820 # If it is relative, then search for the first ld in PATH. 6821 with_gnu_ld=unknown 6822 ;; 6823 esac 6824elif test "$with_gnu_ld" = yes; then 6825 { echo "$as_me:$LINENO: checking for GNU ld" >&5 6826echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 6827else 6828 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 6829echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 6830fi 6831if test "${lt_cv_path_LD+set}" = set; then 6832 echo $ECHO_N "(cached) $ECHO_C" >&6 6833else 6834 if test -z "$LD"; then 6835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6836 for ac_dir in $PATH; do 6837 IFS="$lt_save_ifs" 6838 test -z "$ac_dir" && ac_dir=. 6839 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6840 lt_cv_path_LD="$ac_dir/$ac_prog" 6841 # Check to see if the program is GNU ld. I'd rather use --version, 6842 # but apparently some variants of GNU ld only accept -v. 6843 # Break only if it was the GNU/non-GNU ld that we prefer. 6844 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6845 *GNU* | *'with BFD'*) 6846 test "$with_gnu_ld" != no && break 6847 ;; 6848 *) 6849 test "$with_gnu_ld" != yes && break 6850 ;; 6851 esac 6852 fi 6853 done 6854 IFS="$lt_save_ifs" 6855else 6856 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6857fi 6858fi 6859 6860LD="$lt_cv_path_LD" 6861if test -n "$LD"; then 6862 { echo "$as_me:$LINENO: result: $LD" >&5 6863echo "${ECHO_T}$LD" >&6; } 6864else 6865 { echo "$as_me:$LINENO: result: no" >&5 6866echo "${ECHO_T}no" >&6; } 6867fi 6868test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 6869echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 6870 { (exit 1); exit 1; }; } 6871{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 6872echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 6873if test "${lt_cv_prog_gnu_ld+set}" = set; then 6874 echo $ECHO_N "(cached) $ECHO_C" >&6 6875else 6876 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6877case `$LD -v 2>&1 </dev/null` in 6878*GNU* | *'with BFD'*) 6879 lt_cv_prog_gnu_ld=yes 6880 ;; 6881*) 6882 lt_cv_prog_gnu_ld=no 6883 ;; 6884esac 6885fi 6886{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 6887echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 6888with_gnu_ld=$lt_cv_prog_gnu_ld 6889 6890 6891{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6892echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 6893if test "${lt_cv_ld_reload_flag+set}" = set; then 6894 echo $ECHO_N "(cached) $ECHO_C" >&6 6895else 6896 lt_cv_ld_reload_flag='-r' 6897fi 6898{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6899echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 6900reload_flag=$lt_cv_ld_reload_flag 6901case $reload_flag in 6902"" | " "*) ;; 6903*) reload_flag=" $reload_flag" ;; 6904esac 6905reload_cmds='$LD$reload_flag -o $output$reload_objs' 6906case $host_os in 6907 darwin*) 6908 if test "$GCC" = yes; then 6909 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6910 else 6911 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6912 fi 6913 ;; 6914esac 6915 6916{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6917echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 6918if test "${lt_cv_path_NM+set}" = set; then 6919 echo $ECHO_N "(cached) $ECHO_C" >&6 6920else 6921 if test -n "$NM"; then 6922 # Let the user override the test. 6923 lt_cv_path_NM="$NM" 6924else 6925 lt_nm_to_check="${ac_tool_prefix}nm" 6926 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6927 lt_nm_to_check="$lt_nm_to_check nm" 6928 fi 6929 for lt_tmp_nm in $lt_nm_to_check; do 6930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6931 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6932 IFS="$lt_save_ifs" 6933 test -z "$ac_dir" && ac_dir=. 6934 tmp_nm="$ac_dir/$lt_tmp_nm" 6935 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6936 # Check to see if the nm accepts a BSD-compat flag. 6937 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6938 # nm: unknown option "B" ignored 6939 # Tru64's nm complains that /dev/null is an invalid object file 6940 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6941 */dev/null* | *'Invalid file or object type'*) 6942 lt_cv_path_NM="$tmp_nm -B" 6943 break 6944 ;; 6945 *) 6946 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6947 */dev/null*) 6948 lt_cv_path_NM="$tmp_nm -p" 6949 break 6950 ;; 6951 *) 6952 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6953 continue # so that we can try to find one that supports BSD flags 6954 ;; 6955 esac 6956 ;; 6957 esac 6958 fi 6959 done 6960 IFS="$lt_save_ifs" 6961 done 6962 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6963fi 6964fi 6965{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6966echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6967NM="$lt_cv_path_NM" 6968 6969{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 6970echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6971LN_S=$as_ln_s 6972if test "$LN_S" = "ln -s"; then 6973 { echo "$as_me:$LINENO: result: yes" >&5 6974echo "${ECHO_T}yes" >&6; } 6975else 6976 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6977echo "${ECHO_T}no, using $LN_S" >&6; } 6978fi 6979 6980{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 6981echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 6982if test "${lt_cv_deplibs_check_method+set}" = set; then 6983 echo $ECHO_N "(cached) $ECHO_C" >&6 6984else 6985 lt_cv_file_magic_cmd='$MAGIC_CMD' 6986lt_cv_file_magic_test_file= 6987lt_cv_deplibs_check_method='unknown' 6988# Need to set the preceding variable on all platforms that support 6989# interlibrary dependencies. 6990# 'none' -- dependencies not supported. 6991# `unknown' -- same as none, but documents that we really don't know. 6992# 'pass_all' -- all dependencies passed with no checks. 6993# 'test_compile' -- check by making test program. 6994# 'file_magic [[regex]]' -- check by looking for files in library path 6995# which responds to the $file_magic_cmd with a given extended regex. 6996# If you have `file' or equivalent on your system and you're not sure 6997# whether `pass_all' will *always* work, you probably want this one. 6998 6999case $host_os in 7000aix4* | aix5*) 7001 lt_cv_deplibs_check_method=pass_all 7002 ;; 7003 7004beos*) 7005 lt_cv_deplibs_check_method=pass_all 7006 ;; 7007 7008bsdi[45]*) 7009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7010 lt_cv_file_magic_cmd='/usr/bin/file -L' 7011 lt_cv_file_magic_test_file=/shlib/libc.so 7012 ;; 7013 7014cygwin*) 7015 # func_win32_libid is a shell function defined in ltmain.sh 7016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7017 lt_cv_file_magic_cmd='func_win32_libid' 7018 ;; 7019 7020mingw* | pw32*) 7021 # Base MSYS/MinGW do not provide the 'file' command needed by 7022 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 7023 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 7024 lt_cv_file_magic_cmd='$OBJDUMP -f' 7025 ;; 7026 7027darwin* | rhapsody*) 7028 lt_cv_deplibs_check_method=pass_all 7029 ;; 7030 7031freebsd* | dragonfly*) 7032 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 7033 case $host_cpu in 7034 i*86 ) 7035 # Not sure whether the presence of OpenBSD here was a mistake. 7036 # Let's accept both of them until this is cleared up. 7037 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7038 lt_cv_file_magic_cmd=/usr/bin/file 7039 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7040 ;; 7041 esac 7042 else 7043 lt_cv_deplibs_check_method=pass_all 7044 fi 7045 ;; 7046 7047gnu*) 7048 lt_cv_deplibs_check_method=pass_all 7049 ;; 7050 7051hpux10.20* | hpux11*) 7052 lt_cv_file_magic_cmd=/usr/bin/file 7053 case $host_cpu in 7054 ia64*) 7055 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7056 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7057 ;; 7058 hppa*64*) 7059 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]' 7060 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7061 ;; 7062 *) 7063 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 7064 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7065 ;; 7066 esac 7067 ;; 7068 7069interix3*) 7070 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7072 ;; 7073 7074irix5* | irix6* | nonstopux*) 7075 case $LD in 7076 *-32|*"-32 ") libmagic=32-bit;; 7077 *-n32|*"-n32 ") libmagic=N32;; 7078 *-64|*"-64 ") libmagic=64-bit;; 7079 *) libmagic=never-match;; 7080 esac 7081 lt_cv_deplibs_check_method=pass_all 7082 ;; 7083 7084# This must be Linux ELF. 7085linux* | k*bsd*-gnu) 7086 lt_cv_deplibs_check_method=pass_all 7087 ;; 7088 7089netbsd* | netbsdelf*-gnu) 7090 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 7091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7092 else 7093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7094 fi 7095 ;; 7096 7097newos6*) 7098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7099 lt_cv_file_magic_cmd=/usr/bin/file 7100 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7101 ;; 7102 7103nto-qnx*) 7104 lt_cv_deplibs_check_method=unknown 7105 ;; 7106 7107openbsd*) 7108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7110 else 7111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7112 fi 7113 ;; 7114 7115osf3* | osf4* | osf5*) 7116 lt_cv_deplibs_check_method=pass_all 7117 ;; 7118 7119solaris*) 7120 lt_cv_deplibs_check_method=pass_all 7121 ;; 7122 7123sysv4 | sysv4.3*) 7124 case $host_vendor in 7125 motorola) 7126 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]' 7127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7128 ;; 7129 ncr) 7130 lt_cv_deplibs_check_method=pass_all 7131 ;; 7132 sequent) 7133 lt_cv_file_magic_cmd='/bin/file' 7134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7135 ;; 7136 sni) 7137 lt_cv_file_magic_cmd='/bin/file' 7138 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7139 lt_cv_file_magic_test_file=/lib/libc.so 7140 ;; 7141 siemens) 7142 lt_cv_deplibs_check_method=pass_all 7143 ;; 7144 pc) 7145 lt_cv_deplibs_check_method=pass_all 7146 ;; 7147 esac 7148 ;; 7149 7150sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7151 lt_cv_deplibs_check_method=pass_all 7152 ;; 7153esac 7154 7155fi 7156{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 7157echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 7158file_magic_cmd=$lt_cv_file_magic_cmd 7159deplibs_check_method=$lt_cv_deplibs_check_method 7160test -z "$deplibs_check_method" && deplibs_check_method=unknown 7161 7162 7163 7164 7165# If no C compiler was specified, use CC. 7166LTCC=${LTCC-"$CC"} 7167 7168# If no C compiler flags were specified, use CFLAGS. 7169LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7170 7171# Allow CC to be a program name with arguments. 7172compiler=$CC 7173 7174# Check whether --enable-libtool-lock was given. 7175if test "${enable_libtool_lock+set}" = set; then 7176 enableval=$enable_libtool_lock; 7177fi 7178 7179test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7180 7181# Some flags need to be propagated to the compiler or linker for good 7182# libtool support. 7183case $host in 7184ia64-*-hpux*) 7185 # Find out which ABI we are using. 7186 echo 'int i;' > conftest.$ac_ext 7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7188 (eval $ac_compile) 2>&5 7189 ac_status=$? 7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7191 (exit $ac_status); }; then 7192 case `/usr/bin/file conftest.$ac_objext` in 7193 *ELF-32*) 7194 HPUX_IA64_MODE="32" 7195 ;; 7196 *ELF-64*) 7197 HPUX_IA64_MODE="64" 7198 ;; 7199 esac 7200 fi 7201 rm -rf conftest* 7202 ;; 7203*-*-irix6*) 7204 # Find out which ABI we are using. 7205 echo '#line 7205 "configure"' > conftest.$ac_ext 7206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7207 (eval $ac_compile) 2>&5 7208 ac_status=$? 7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7210 (exit $ac_status); }; then 7211 if test "$lt_cv_prog_gnu_ld" = yes; then 7212 case `/usr/bin/file conftest.$ac_objext` in 7213 *32-bit*) 7214 LD="${LD-ld} -melf32bsmip" 7215 ;; 7216 *N32*) 7217 LD="${LD-ld} -melf32bmipn32" 7218 ;; 7219 *64-bit*) 7220 LD="${LD-ld} -melf64bmip" 7221 ;; 7222 esac 7223 else 7224 case `/usr/bin/file conftest.$ac_objext` in 7225 *32-bit*) 7226 LD="${LD-ld} -32" 7227 ;; 7228 *N32*) 7229 LD="${LD-ld} -n32" 7230 ;; 7231 *64-bit*) 7232 LD="${LD-ld} -64" 7233 ;; 7234 esac 7235 fi 7236 fi 7237 rm -rf conftest* 7238 ;; 7239 7240x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 7241 # Find out which ABI we are using. 7242 echo 'int i;' > conftest.$ac_ext 7243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7244 (eval $ac_compile) 2>&5 7245 ac_status=$? 7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7247 (exit $ac_status); }; then 7248 case `/usr/bin/file conftest.o` in 7249 *32-bit*) 7250 case $host in 7251 x86_64-*linux*) 7252 LD="${LD-ld} -m elf_i386" 7253 ;; 7254 ppc64-*linux*|powerpc64-*linux*) 7255 LD="${LD-ld} -m elf32ppclinux" 7256 ;; 7257 s390x-*linux*) 7258 LD="${LD-ld} -m elf_s390" 7259 ;; 7260 sparc64-*linux*) 7261 LD="${LD-ld} -m elf32_sparc" 7262 ;; 7263 esac 7264 ;; 7265 *64-bit*) 7266 case $host in 7267 x86_64-*linux*) 7268 LD="${LD-ld} -m elf_x86_64" 7269 ;; 7270 ppc*-*linux*|powerpc*-*linux*) 7271 LD="${LD-ld} -m elf64ppc" 7272 ;; 7273 s390*-*linux*) 7274 LD="${LD-ld} -m elf64_s390" 7275 ;; 7276 sparc*-*linux*) 7277 LD="${LD-ld} -m elf64_sparc" 7278 ;; 7279 esac 7280 ;; 7281 esac 7282 fi 7283 rm -rf conftest* 7284 ;; 7285 7286*-*-sco3.2v5*) 7287 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7288 SAVE_CFLAGS="$CFLAGS" 7289 CFLAGS="$CFLAGS -belf" 7290 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 7291echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 7292if test "${lt_cv_cc_needs_belf+set}" = set; then 7293 echo $ECHO_N "(cached) $ECHO_C" >&6 7294else 7295 ac_ext=c 7296ac_cpp='$CPP $CPPFLAGS' 7297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7299ac_compiler_gnu=$ac_cv_c_compiler_gnu 7300 7301 cat >conftest.$ac_ext <<_ACEOF 7302/* confdefs.h. */ 7303_ACEOF 7304cat confdefs.h >>conftest.$ac_ext 7305cat >>conftest.$ac_ext <<_ACEOF 7306/* end confdefs.h. */ 7307 7308int 7309main () 7310{ 7311 7312 ; 7313 return 0; 7314} 7315_ACEOF 7316rm -f conftest.$ac_objext conftest$ac_exeext 7317if { (ac_try="$ac_link" 7318case "(($ac_try" in 7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7320 *) ac_try_echo=$ac_try;; 7321esac 7322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7323 (eval "$ac_link") 2>conftest.er1 7324 ac_status=$? 7325 grep -v '^ *+' conftest.er1 >conftest.err 7326 rm -f conftest.er1 7327 cat conftest.err >&5 7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7329 (exit $ac_status); } && { 7330 test -z "$ac_c_werror_flag" || 7331 test ! -s conftest.err 7332 } && test -s conftest$ac_exeext && 7333 $as_test_x conftest$ac_exeext; then 7334 lt_cv_cc_needs_belf=yes 7335else 7336 echo "$as_me: failed program was:" >&5 7337sed 's/^/| /' conftest.$ac_ext >&5 7338 7339 lt_cv_cc_needs_belf=no 7340fi 7341 7342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7343 conftest$ac_exeext conftest.$ac_ext 7344 ac_ext=c 7345ac_cpp='$CPP $CPPFLAGS' 7346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7348ac_compiler_gnu=$ac_cv_c_compiler_gnu 7349 7350fi 7351{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7352echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 7353 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7354 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7355 CFLAGS="$SAVE_CFLAGS" 7356 fi 7357 ;; 7358sparc*-*solaris*) 7359 # Find out which ABI we are using. 7360 echo 'int i;' > conftest.$ac_ext 7361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7362 (eval $ac_compile) 2>&5 7363 ac_status=$? 7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7365 (exit $ac_status); }; then 7366 case `/usr/bin/file conftest.o` in 7367 *64-bit*) 7368 case $lt_cv_prog_gnu_ld in 7369 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7370 *) LD="${LD-ld} -64" ;; 7371 esac 7372 ;; 7373 esac 7374 fi 7375 rm -rf conftest* 7376 ;; 7377 7378 7379esac 7380 7381need_locks="$enable_libtool_lock" 7382 7383 7384# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7395 inttypes.h stdint.h unistd.h 7396do 7397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7398{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7401 echo $ECHO_N "(cached) $ECHO_C" >&6 7402else 7403 cat >conftest.$ac_ext <<_ACEOF 7404/* confdefs.h. */ 7405_ACEOF 7406cat confdefs.h >>conftest.$ac_ext 7407cat >>conftest.$ac_ext <<_ACEOF 7408/* end confdefs.h. */ 7409$ac_includes_default 7410 7411#include <$ac_header> 7412_ACEOF 7413rm -f conftest.$ac_objext 7414if { (ac_try="$ac_compile" 7415case "(($ac_try" in 7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7417 *) ac_try_echo=$ac_try;; 7418esac 7419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7420 (eval "$ac_compile") 2>conftest.er1 7421 ac_status=$? 7422 grep -v '^ *+' conftest.er1 >conftest.err 7423 rm -f conftest.er1 7424 cat conftest.err >&5 7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7426 (exit $ac_status); } && { 7427 test -z "$ac_c_werror_flag" || 7428 test ! -s conftest.err 7429 } && test -s conftest.$ac_objext; then 7430 eval "$as_ac_Header=yes" 7431else 7432 echo "$as_me: failed program was:" >&5 7433sed 's/^/| /' conftest.$ac_ext >&5 7434 7435 eval "$as_ac_Header=no" 7436fi 7437 7438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7439fi 7440ac_res=`eval echo '${'$as_ac_Header'}'` 7441 { echo "$as_me:$LINENO: result: $ac_res" >&5 7442echo "${ECHO_T}$ac_res" >&6; } 7443if test `eval echo '${'$as_ac_Header'}'` = yes; then 7444 cat >>confdefs.h <<_ACEOF 7445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7446_ACEOF 7447 7448fi 7449 7450done 7451 7452 7453 7454for ac_header in dlfcn.h 7455do 7456as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7458 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7461 echo $ECHO_N "(cached) $ECHO_C" >&6 7462fi 7463ac_res=`eval echo '${'$as_ac_Header'}'` 7464 { echo "$as_me:$LINENO: result: $ac_res" >&5 7465echo "${ECHO_T}$ac_res" >&6; } 7466else 7467 # Is the header compilable? 7468{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7469echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7470cat >conftest.$ac_ext <<_ACEOF 7471/* confdefs.h. */ 7472_ACEOF 7473cat confdefs.h >>conftest.$ac_ext 7474cat >>conftest.$ac_ext <<_ACEOF 7475/* end confdefs.h. */ 7476$ac_includes_default 7477#include <$ac_header> 7478_ACEOF 7479rm -f conftest.$ac_objext 7480if { (ac_try="$ac_compile" 7481case "(($ac_try" in 7482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7483 *) ac_try_echo=$ac_try;; 7484esac 7485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7486 (eval "$ac_compile") 2>conftest.er1 7487 ac_status=$? 7488 grep -v '^ *+' conftest.er1 >conftest.err 7489 rm -f conftest.er1 7490 cat conftest.err >&5 7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7492 (exit $ac_status); } && { 7493 test -z "$ac_c_werror_flag" || 7494 test ! -s conftest.err 7495 } && test -s conftest.$ac_objext; then 7496 ac_header_compiler=yes 7497else 7498 echo "$as_me: failed program was:" >&5 7499sed 's/^/| /' conftest.$ac_ext >&5 7500 7501 ac_header_compiler=no 7502fi 7503 7504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7505{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7506echo "${ECHO_T}$ac_header_compiler" >&6; } 7507 7508# Is the header present? 7509{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7511cat >conftest.$ac_ext <<_ACEOF 7512/* confdefs.h. */ 7513_ACEOF 7514cat confdefs.h >>conftest.$ac_ext 7515cat >>conftest.$ac_ext <<_ACEOF 7516/* end confdefs.h. */ 7517#include <$ac_header> 7518_ACEOF 7519if { (ac_try="$ac_cpp conftest.$ac_ext" 7520case "(($ac_try" in 7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7522 *) ac_try_echo=$ac_try;; 7523esac 7524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7526 ac_status=$? 7527 grep -v '^ *+' conftest.er1 >conftest.err 7528 rm -f conftest.er1 7529 cat conftest.err >&5 7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7531 (exit $ac_status); } >/dev/null && { 7532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7533 test ! -s conftest.err 7534 }; then 7535 ac_header_preproc=yes 7536else 7537 echo "$as_me: failed program was:" >&5 7538sed 's/^/| /' conftest.$ac_ext >&5 7539 7540 ac_header_preproc=no 7541fi 7542 7543rm -f conftest.err conftest.$ac_ext 7544{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7545echo "${ECHO_T}$ac_header_preproc" >&6; } 7546 7547# So? What about this header? 7548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7549 yes:no: ) 7550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7551echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7553echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7554 ac_header_preproc=yes 7555 ;; 7556 no:yes:* ) 7557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7558echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7560echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7562echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7564echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7568echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7569 7570 ;; 7571esac 7572{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7575 echo $ECHO_N "(cached) $ECHO_C" >&6 7576else 7577 eval "$as_ac_Header=\$ac_header_preproc" 7578fi 7579ac_res=`eval echo '${'$as_ac_Header'}'` 7580 { echo "$as_me:$LINENO: result: $ac_res" >&5 7581echo "${ECHO_T}$ac_res" >&6; } 7582 7583fi 7584if test `eval echo '${'$as_ac_Header'}'` = yes; then 7585 cat >>confdefs.h <<_ACEOF 7586#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7587_ACEOF 7588 7589fi 7590 7591done 7592 7593 7594 7595if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7596 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7597 (test "X$CXX" != "Xg++"))) ; then 7598 ac_ext=cpp 7599ac_cpp='$CXXCPP $CPPFLAGS' 7600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7603{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 7604echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 7605if test -z "$CXXCPP"; then 7606 if test "${ac_cv_prog_CXXCPP+set}" = set; then 7607 echo $ECHO_N "(cached) $ECHO_C" >&6 7608else 7609 # Double quotes because CXXCPP needs to be expanded 7610 for CXXCPP in "$CXX -E" "/lib/cpp" 7611 do 7612 ac_preproc_ok=false 7613for ac_cxx_preproc_warn_flag in '' yes 7614do 7615 # Use a header file that comes with gcc, so configuring glibc 7616 # with a fresh cross-compiler works. 7617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7618 # <limits.h> exists even on freestanding compilers. 7619 # On the NeXT, cc -E runs the code through the compiler's parser, 7620 # not just through cpp. "Syntax error" is here to catch this case. 7621 cat >conftest.$ac_ext <<_ACEOF 7622/* confdefs.h. */ 7623_ACEOF 7624cat confdefs.h >>conftest.$ac_ext 7625cat >>conftest.$ac_ext <<_ACEOF 7626/* end confdefs.h. */ 7627#ifdef __STDC__ 7628# include <limits.h> 7629#else 7630# include <assert.h> 7631#endif 7632 Syntax error 7633_ACEOF 7634if { (ac_try="$ac_cpp conftest.$ac_ext" 7635case "(($ac_try" in 7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7637 *) ac_try_echo=$ac_try;; 7638esac 7639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7641 ac_status=$? 7642 grep -v '^ *+' conftest.er1 >conftest.err 7643 rm -f conftest.er1 7644 cat conftest.err >&5 7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7646 (exit $ac_status); } >/dev/null && { 7647 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7648 test ! -s conftest.err 7649 }; then 7650 : 7651else 7652 echo "$as_me: failed program was:" >&5 7653sed 's/^/| /' conftest.$ac_ext >&5 7654 7655 # Broken: fails on valid input. 7656continue 7657fi 7658 7659rm -f conftest.err conftest.$ac_ext 7660 7661 # OK, works on sane cases. Now check whether nonexistent headers 7662 # can be detected and how. 7663 cat >conftest.$ac_ext <<_ACEOF 7664/* confdefs.h. */ 7665_ACEOF 7666cat confdefs.h >>conftest.$ac_ext 7667cat >>conftest.$ac_ext <<_ACEOF 7668/* end confdefs.h. */ 7669#include <ac_nonexistent.h> 7670_ACEOF 7671if { (ac_try="$ac_cpp conftest.$ac_ext" 7672case "(($ac_try" in 7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7674 *) ac_try_echo=$ac_try;; 7675esac 7676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7678 ac_status=$? 7679 grep -v '^ *+' conftest.er1 >conftest.err 7680 rm -f conftest.er1 7681 cat conftest.err >&5 7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7683 (exit $ac_status); } >/dev/null && { 7684 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7685 test ! -s conftest.err 7686 }; then 7687 # Broken: success on invalid input. 7688continue 7689else 7690 echo "$as_me: failed program was:" >&5 7691sed 's/^/| /' conftest.$ac_ext >&5 7692 7693 # Passes both tests. 7694ac_preproc_ok=: 7695break 7696fi 7697 7698rm -f conftest.err conftest.$ac_ext 7699 7700done 7701# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7702rm -f conftest.err conftest.$ac_ext 7703if $ac_preproc_ok; then 7704 break 7705fi 7706 7707 done 7708 ac_cv_prog_CXXCPP=$CXXCPP 7709 7710fi 7711 CXXCPP=$ac_cv_prog_CXXCPP 7712else 7713 ac_cv_prog_CXXCPP=$CXXCPP 7714fi 7715{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 7716echo "${ECHO_T}$CXXCPP" >&6; } 7717ac_preproc_ok=false 7718for ac_cxx_preproc_warn_flag in '' yes 7719do 7720 # Use a header file that comes with gcc, so configuring glibc 7721 # with a fresh cross-compiler works. 7722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7723 # <limits.h> exists even on freestanding compilers. 7724 # On the NeXT, cc -E runs the code through the compiler's parser, 7725 # not just through cpp. "Syntax error" is here to catch this case. 7726 cat >conftest.$ac_ext <<_ACEOF 7727/* confdefs.h. */ 7728_ACEOF 7729cat confdefs.h >>conftest.$ac_ext 7730cat >>conftest.$ac_ext <<_ACEOF 7731/* end confdefs.h. */ 7732#ifdef __STDC__ 7733# include <limits.h> 7734#else 7735# include <assert.h> 7736#endif 7737 Syntax error 7738_ACEOF 7739if { (ac_try="$ac_cpp conftest.$ac_ext" 7740case "(($ac_try" in 7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7742 *) ac_try_echo=$ac_try;; 7743esac 7744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7746 ac_status=$? 7747 grep -v '^ *+' conftest.er1 >conftest.err 7748 rm -f conftest.er1 7749 cat conftest.err >&5 7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7751 (exit $ac_status); } >/dev/null && { 7752 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7753 test ! -s conftest.err 7754 }; then 7755 : 7756else 7757 echo "$as_me: failed program was:" >&5 7758sed 's/^/| /' conftest.$ac_ext >&5 7759 7760 # Broken: fails on valid input. 7761continue 7762fi 7763 7764rm -f conftest.err conftest.$ac_ext 7765 7766 # OK, works on sane cases. Now check whether nonexistent headers 7767 # can be detected and how. 7768 cat >conftest.$ac_ext <<_ACEOF 7769/* confdefs.h. */ 7770_ACEOF 7771cat confdefs.h >>conftest.$ac_ext 7772cat >>conftest.$ac_ext <<_ACEOF 7773/* end confdefs.h. */ 7774#include <ac_nonexistent.h> 7775_ACEOF 7776if { (ac_try="$ac_cpp conftest.$ac_ext" 7777case "(($ac_try" in 7778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7779 *) ac_try_echo=$ac_try;; 7780esac 7781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7783 ac_status=$? 7784 grep -v '^ *+' conftest.er1 >conftest.err 7785 rm -f conftest.er1 7786 cat conftest.err >&5 7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7788 (exit $ac_status); } >/dev/null && { 7789 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7790 test ! -s conftest.err 7791 }; then 7792 # Broken: success on invalid input. 7793continue 7794else 7795 echo "$as_me: failed program was:" >&5 7796sed 's/^/| /' conftest.$ac_ext >&5 7797 7798 # Passes both tests. 7799ac_preproc_ok=: 7800break 7801fi 7802 7803rm -f conftest.err conftest.$ac_ext 7804 7805done 7806# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7807rm -f conftest.err conftest.$ac_ext 7808if $ac_preproc_ok; then 7809 : 7810else 7811 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7812See \`config.log' for more details." >&5 7813echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7814See \`config.log' for more details." >&2;} 7815 { (exit 1); exit 1; }; } 7816fi 7817 7818ac_ext=cpp 7819ac_cpp='$CXXCPP $CPPFLAGS' 7820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7823 7824fi 7825 7826 7827ac_ext=f 7828ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7829ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7830ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7831if test -n "$ac_tool_prefix"; then 7832 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 7833 do 7834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7835set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7836{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7838if test "${ac_cv_prog_F77+set}" = set; then 7839 echo $ECHO_N "(cached) $ECHO_C" >&6 7840else 7841 if test -n "$F77"; then 7842 ac_cv_prog_F77="$F77" # Let the user override the test. 7843else 7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7845for as_dir in $PATH 7846do 7847 IFS=$as_save_IFS 7848 test -z "$as_dir" && as_dir=. 7849 for ac_exec_ext in '' $ac_executable_extensions; do 7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7851 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7853 break 2 7854 fi 7855done 7856done 7857IFS=$as_save_IFS 7858 7859fi 7860fi 7861F77=$ac_cv_prog_F77 7862if test -n "$F77"; then 7863 { echo "$as_me:$LINENO: result: $F77" >&5 7864echo "${ECHO_T}$F77" >&6; } 7865else 7866 { echo "$as_me:$LINENO: result: no" >&5 7867echo "${ECHO_T}no" >&6; } 7868fi 7869 7870 7871 test -n "$F77" && break 7872 done 7873fi 7874if test -z "$F77"; then 7875 ac_ct_F77=$F77 7876 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 7877do 7878 # Extract the first word of "$ac_prog", so it can be a program name with args. 7879set dummy $ac_prog; ac_word=$2 7880{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7882if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 7883 echo $ECHO_N "(cached) $ECHO_C" >&6 7884else 7885 if test -n "$ac_ct_F77"; then 7886 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 7887else 7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7889for as_dir in $PATH 7890do 7891 IFS=$as_save_IFS 7892 test -z "$as_dir" && as_dir=. 7893 for ac_exec_ext in '' $ac_executable_extensions; do 7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7895 ac_cv_prog_ac_ct_F77="$ac_prog" 7896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7897 break 2 7898 fi 7899done 7900done 7901IFS=$as_save_IFS 7902 7903fi 7904fi 7905ac_ct_F77=$ac_cv_prog_ac_ct_F77 7906if test -n "$ac_ct_F77"; then 7907 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 7908echo "${ECHO_T}$ac_ct_F77" >&6; } 7909else 7910 { echo "$as_me:$LINENO: result: no" >&5 7911echo "${ECHO_T}no" >&6; } 7912fi 7913 7914 7915 test -n "$ac_ct_F77" && break 7916done 7917 7918 if test "x$ac_ct_F77" = x; then 7919 F77="" 7920 else 7921 case $cross_compiling:$ac_tool_warned in 7922yes:) 7923{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7924whose name does not start with the host triplet. If you think this 7925configuration is useful to you, please write to autoconf@gnu.org." >&5 7926echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7927whose name does not start with the host triplet. If you think this 7928configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7929ac_tool_warned=yes ;; 7930esac 7931 F77=$ac_ct_F77 7932 fi 7933fi 7934 7935 7936# Provide some information about the compiler. 7937echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 7938ac_compiler=`set X $ac_compile; echo $2` 7939{ (ac_try="$ac_compiler --version >&5" 7940case "(($ac_try" in 7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7942 *) ac_try_echo=$ac_try;; 7943esac 7944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7945 (eval "$ac_compiler --version >&5") 2>&5 7946 ac_status=$? 7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7948 (exit $ac_status); } 7949{ (ac_try="$ac_compiler -v >&5" 7950case "(($ac_try" in 7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7952 *) ac_try_echo=$ac_try;; 7953esac 7954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7955 (eval "$ac_compiler -v >&5") 2>&5 7956 ac_status=$? 7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7958 (exit $ac_status); } 7959{ (ac_try="$ac_compiler -V >&5" 7960case "(($ac_try" in 7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7962 *) ac_try_echo=$ac_try;; 7963esac 7964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7965 (eval "$ac_compiler -V >&5") 2>&5 7966 ac_status=$? 7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7968 (exit $ac_status); } 7969rm -f a.out 7970 7971# If we don't use `.F' as extension, the preprocessor is not run on the 7972# input file. (Note that this only needs to work for GNU compilers.) 7973ac_save_ext=$ac_ext 7974ac_ext=F 7975{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 7976echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 7977if test "${ac_cv_f77_compiler_gnu+set}" = set; then 7978 echo $ECHO_N "(cached) $ECHO_C" >&6 7979else 7980 cat >conftest.$ac_ext <<_ACEOF 7981 program main 7982#ifndef __GNUC__ 7983 choke me 7984#endif 7985 7986 end 7987_ACEOF 7988rm -f conftest.$ac_objext 7989if { (ac_try="$ac_compile" 7990case "(($ac_try" in 7991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7992 *) ac_try_echo=$ac_try;; 7993esac 7994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7995 (eval "$ac_compile") 2>conftest.er1 7996 ac_status=$? 7997 grep -v '^ *+' conftest.er1 >conftest.err 7998 rm -f conftest.er1 7999 cat conftest.err >&5 8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8001 (exit $ac_status); } && { 8002 test -z "$ac_f77_werror_flag" || 8003 test ! -s conftest.err 8004 } && test -s conftest.$ac_objext; then 8005 ac_compiler_gnu=yes 8006else 8007 echo "$as_me: failed program was:" >&5 8008sed 's/^/| /' conftest.$ac_ext >&5 8009 8010 ac_compiler_gnu=no 8011fi 8012 8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8014ac_cv_f77_compiler_gnu=$ac_compiler_gnu 8015 8016fi 8017{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 8018echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 8019ac_ext=$ac_save_ext 8020ac_test_FFLAGS=${FFLAGS+set} 8021ac_save_FFLAGS=$FFLAGS 8022FFLAGS= 8023{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 8024echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 8025if test "${ac_cv_prog_f77_g+set}" = set; then 8026 echo $ECHO_N "(cached) $ECHO_C" >&6 8027else 8028 FFLAGS=-g 8029cat >conftest.$ac_ext <<_ACEOF 8030 program main 8031 8032 end 8033_ACEOF 8034rm -f conftest.$ac_objext 8035if { (ac_try="$ac_compile" 8036case "(($ac_try" in 8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8038 *) ac_try_echo=$ac_try;; 8039esac 8040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8041 (eval "$ac_compile") 2>conftest.er1 8042 ac_status=$? 8043 grep -v '^ *+' conftest.er1 >conftest.err 8044 rm -f conftest.er1 8045 cat conftest.err >&5 8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8047 (exit $ac_status); } && { 8048 test -z "$ac_f77_werror_flag" || 8049 test ! -s conftest.err 8050 } && test -s conftest.$ac_objext; then 8051 ac_cv_prog_f77_g=yes 8052else 8053 echo "$as_me: failed program was:" >&5 8054sed 's/^/| /' conftest.$ac_ext >&5 8055 8056 ac_cv_prog_f77_g=no 8057fi 8058 8059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8060 8061fi 8062{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 8063echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 8064if test "$ac_test_FFLAGS" = set; then 8065 FFLAGS=$ac_save_FFLAGS 8066elif test $ac_cv_prog_f77_g = yes; then 8067 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 8068 FFLAGS="-g -O2" 8069 else 8070 FFLAGS="-g" 8071 fi 8072else 8073 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 8074 FFLAGS="-O2" 8075 else 8076 FFLAGS= 8077 fi 8078fi 8079 8080G77=`test $ac_compiler_gnu = yes && echo yes` 8081ac_ext=c 8082ac_cpp='$CPP $CPPFLAGS' 8083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8085ac_compiler_gnu=$ac_cv_c_compiler_gnu 8086 8087 8088 8089# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 8090 8091# find the maximum length of command line arguments 8092{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 8093echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 8094if test "${lt_cv_sys_max_cmd_len+set}" = set; then 8095 echo $ECHO_N "(cached) $ECHO_C" >&6 8096else 8097 i=0 8098 teststring="ABCD" 8099 8100 case $build_os in 8101 msdosdjgpp*) 8102 # On DJGPP, this test can blow up pretty badly due to problems in libc 8103 # (any single argument exceeding 2000 bytes causes a buffer overrun 8104 # during glob expansion). Even if it were fixed, the result of this 8105 # check would be larger than it should be. 8106 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8107 ;; 8108 8109 gnu*) 8110 # Under GNU Hurd, this test is not required because there is 8111 # no limit to the length of command line arguments. 8112 # Libtool will interpret -1 as no limit whatsoever 8113 lt_cv_sys_max_cmd_len=-1; 8114 ;; 8115 8116 cygwin* | mingw*) 8117 # On Win9x/ME, this test blows up -- it succeeds, but takes 8118 # about 5 minutes as the teststring grows exponentially. 8119 # Worse, since 9x/ME are not pre-emptively multitasking, 8120 # you end up with a "frozen" computer, even though with patience 8121 # the test eventually succeeds (with a max line length of 256k). 8122 # Instead, let's just punt: use the minimum linelength reported by 8123 # all of the supported platforms: 8192 (on NT/2K/XP). 8124 lt_cv_sys_max_cmd_len=8192; 8125 ;; 8126 8127 amigaos*) 8128 # On AmigaOS with pdksh, this test takes hours, literally. 8129 # So we just punt and use a minimum line length of 8192. 8130 lt_cv_sys_max_cmd_len=8192; 8131 ;; 8132 8133 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 8134 # This has been around since 386BSD, at least. Likely further. 8135 if test -x /sbin/sysctl; then 8136 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8137 elif test -x /usr/sbin/sysctl; then 8138 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8139 else 8140 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8141 fi 8142 # And add a safety zone 8143 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8145 ;; 8146 8147 interix*) 8148 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8149 lt_cv_sys_max_cmd_len=196608 8150 ;; 8151 8152 osf*) 8153 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8154 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8155 # nice to cause kernel panics so lets avoid the loop below. 8156 # First set a reasonable default. 8157 lt_cv_sys_max_cmd_len=16384 8158 # 8159 if test -x /sbin/sysconfig; then 8160 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8161 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8162 esac 8163 fi 8164 ;; 8165 sco3.2v5*) 8166 lt_cv_sys_max_cmd_len=102400 8167 ;; 8168 sysv5* | sco5v6* | sysv4.2uw2*) 8169 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8170 if test -n "$kargmax"; then 8171 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8172 else 8173 lt_cv_sys_max_cmd_len=32768 8174 fi 8175 ;; 8176 *) 8177 # If test is not a shell built-in, we'll probably end up computing a 8178 # maximum length that is only half of the actual maximum length, but 8179 # we can't tell. 8180 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8181 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 8182 = "XX$teststring") >/dev/null 2>&1 && 8183 new_result=`expr "X$teststring" : ".*" 2>&1` && 8184 lt_cv_sys_max_cmd_len=$new_result && 8185 test $i != 17 # 1/2 MB should be enough 8186 do 8187 i=`expr $i + 1` 8188 teststring=$teststring$teststring 8189 done 8190 teststring= 8191 # Add a significant safety factor because C++ compilers can tack on massive 8192 # amounts of additional arguments before passing them to the linker. 8193 # It appears as though 1/2 is a usable value. 8194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8195 ;; 8196 esac 8197 8198fi 8199 8200if test -n $lt_cv_sys_max_cmd_len ; then 8201 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 8202echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 8203else 8204 { echo "$as_me:$LINENO: result: none" >&5 8205echo "${ECHO_T}none" >&6; } 8206fi 8207 8208 8209 8210 8211# Check for command to grab the raw symbol name followed by C symbol from nm. 8212{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 8213echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 8214if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 8215 echo $ECHO_N "(cached) $ECHO_C" >&6 8216else 8217 8218# These are sane defaults that work on at least a few old systems. 8219# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8220 8221# Character class describing NM global symbol codes. 8222symcode='[BCDEGRST]' 8223 8224# Regexp to match symbols that can be accessed directly from C. 8225sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8226 8227# Transform an extracted symbol line into a proper C declaration 8228lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 8229 8230# Transform an extracted symbol line into symbol name and symbol address 8231lt_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'" 8232 8233# Define system-specific variables. 8234case $host_os in 8235aix*) 8236 symcode='[BCDT]' 8237 ;; 8238cygwin* | mingw* | pw32*) 8239 symcode='[ABCDGISTW]' 8240 ;; 8241hpux*) # Its linker distinguishes data from code symbols 8242 if test "$host_cpu" = ia64; then 8243 symcode='[ABCDEGRST]' 8244 fi 8245 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8246 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'" 8247 ;; 8248linux* | k*bsd*-gnu) 8249 if test "$host_cpu" = ia64; then 8250 symcode='[ABCDGIRSTW]' 8251 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8252 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'" 8253 fi 8254 ;; 8255irix* | nonstopux*) 8256 symcode='[BCDEGRST]' 8257 ;; 8258osf*) 8259 symcode='[BCDEGQRST]' 8260 ;; 8261solaris*) 8262 symcode='[BDRT]' 8263 ;; 8264sco3.2v5*) 8265 symcode='[DT]' 8266 ;; 8267sysv4.2uw2*) 8268 symcode='[DT]' 8269 ;; 8270sysv5* | sco5v6* | unixware* | OpenUNIX*) 8271 symcode='[ABDT]' 8272 ;; 8273sysv4) 8274 symcode='[DFNSTU]' 8275 ;; 8276esac 8277 8278# Handle CRLF in mingw tool chain 8279opt_cr= 8280case $build_os in 8281mingw*) 8282 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8283 ;; 8284esac 8285 8286# If we're using GNU nm, then use its standard symbol codes. 8287case `$NM -V 2>&1` in 8288*GNU* | *'with BFD'*) 8289 symcode='[ABCDGIRSTW]' ;; 8290esac 8291 8292# Try without a prefix undercore, then with it. 8293for ac_symprfx in "" "_"; do 8294 8295 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8296 symxfrm="\\1 $ac_symprfx\\2 \\2" 8297 8298 # Write the raw and C identifiers. 8299 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8300 8301 # Check to see that the pipe works correctly. 8302 pipe_works=no 8303 8304 rm -f conftest* 8305 cat > conftest.$ac_ext <<EOF 8306#ifdef __cplusplus 8307extern "C" { 8308#endif 8309char nm_test_var; 8310void nm_test_func(){} 8311#ifdef __cplusplus 8312} 8313#endif 8314int main(){nm_test_var='a';nm_test_func();return(0);} 8315EOF 8316 8317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8318 (eval $ac_compile) 2>&5 8319 ac_status=$? 8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8321 (exit $ac_status); }; then 8322 # Now try to grab the symbols. 8323 nlist=conftest.nm 8324 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 8325 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 8326 ac_status=$? 8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8328 (exit $ac_status); } && test -s "$nlist"; then 8329 # Try sorting and uniquifying the output. 8330 if sort "$nlist" | uniq > "$nlist"T; then 8331 mv -f "$nlist"T "$nlist" 8332 else 8333 rm -f "$nlist"T 8334 fi 8335 8336 # Make sure that we snagged all the symbols we need. 8337 if grep ' nm_test_var$' "$nlist" >/dev/null; then 8338 if grep ' nm_test_func$' "$nlist" >/dev/null; then 8339 cat <<EOF > conftest.$ac_ext 8340#ifdef __cplusplus 8341extern "C" { 8342#endif 8343 8344EOF 8345 # Now generate the symbol file. 8346 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 8347 8348 cat <<EOF >> conftest.$ac_ext 8349#if defined (__STDC__) && __STDC__ 8350# define lt_ptr_t void * 8351#else 8352# define lt_ptr_t char * 8353# define const 8354#endif 8355 8356/* The mapping between symbol names and symbols. */ 8357const struct { 8358 const char *name; 8359 lt_ptr_t address; 8360} 8361lt_preloaded_symbols[] = 8362{ 8363EOF 8364 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 8365 cat <<\EOF >> conftest.$ac_ext 8366 {0, (lt_ptr_t) 0} 8367}; 8368 8369#ifdef __cplusplus 8370} 8371#endif 8372EOF 8373 # Now try linking the two files. 8374 mv conftest.$ac_objext conftstm.$ac_objext 8375 lt_save_LIBS="$LIBS" 8376 lt_save_CFLAGS="$CFLAGS" 8377 LIBS="conftstm.$ac_objext" 8378 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8380 (eval $ac_link) 2>&5 8381 ac_status=$? 8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8383 (exit $ac_status); } && test -s conftest${ac_exeext}; then 8384 pipe_works=yes 8385 fi 8386 LIBS="$lt_save_LIBS" 8387 CFLAGS="$lt_save_CFLAGS" 8388 else 8389 echo "cannot find nm_test_func in $nlist" >&5 8390 fi 8391 else 8392 echo "cannot find nm_test_var in $nlist" >&5 8393 fi 8394 else 8395 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8396 fi 8397 else 8398 echo "$progname: failed program was:" >&5 8399 cat conftest.$ac_ext >&5 8400 fi 8401 rm -f conftest* conftst* 8402 8403 # Do not use the global_symbol_pipe unless it works. 8404 if test "$pipe_works" = yes; then 8405 break 8406 else 8407 lt_cv_sys_global_symbol_pipe= 8408 fi 8409done 8410 8411fi 8412 8413if test -z "$lt_cv_sys_global_symbol_pipe"; then 8414 lt_cv_sys_global_symbol_to_cdecl= 8415fi 8416if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8417 { echo "$as_me:$LINENO: result: failed" >&5 8418echo "${ECHO_T}failed" >&6; } 8419else 8420 { echo "$as_me:$LINENO: result: ok" >&5 8421echo "${ECHO_T}ok" >&6; } 8422fi 8423 8424{ echo "$as_me:$LINENO: checking for objdir" >&5 8425echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 8426if test "${lt_cv_objdir+set}" = set; then 8427 echo $ECHO_N "(cached) $ECHO_C" >&6 8428else 8429 rm -f .libs 2>/dev/null 8430mkdir .libs 2>/dev/null 8431if test -d .libs; then 8432 lt_cv_objdir=.libs 8433else 8434 # MS-DOS does not allow filenames that begin with a dot. 8435 lt_cv_objdir=_libs 8436fi 8437rmdir .libs 2>/dev/null 8438fi 8439{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8440echo "${ECHO_T}$lt_cv_objdir" >&6; } 8441objdir=$lt_cv_objdir 8442 8443 8444 8445 8446 8447case $host_os in 8448aix3*) 8449 # AIX sometimes has problems with the GCC collect2 program. For some 8450 # reason, if we set the COLLECT_NAMES environment variable, the problems 8451 # vanish in a puff of smoke. 8452 if test "X${COLLECT_NAMES+set}" != Xset; then 8453 COLLECT_NAMES= 8454 export COLLECT_NAMES 8455 fi 8456 ;; 8457esac 8458 8459# Sed substitution that helps us do robust quoting. It backslashifies 8460# metacharacters that are still active within double-quoted strings. 8461Xsed='sed -e 1s/^X//' 8462sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 8463 8464# Same as above, but do not quote variable references. 8465double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 8466 8467# Sed substitution to delay expansion of an escaped shell variable in a 8468# double_quote_subst'ed string. 8469delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8470 8471# Sed substitution to avoid accidental globbing in evaled expressions 8472no_glob_subst='s/\*/\\\*/g' 8473 8474# Constants: 8475rm="rm -f" 8476 8477# Global variables: 8478default_ofile=libtool 8479can_build_shared=yes 8480 8481# All known linkers require a `.a' archive for static linking (except MSVC, 8482# which needs '.lib'). 8483libext=a 8484ltmain="$ac_aux_dir/ltmain.sh" 8485ofile="$default_ofile" 8486with_gnu_ld="$lt_cv_prog_gnu_ld" 8487 8488if test -n "$ac_tool_prefix"; then 8489 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8490set dummy ${ac_tool_prefix}ar; ac_word=$2 8491{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8493if test "${ac_cv_prog_AR+set}" = set; then 8494 echo $ECHO_N "(cached) $ECHO_C" >&6 8495else 8496 if test -n "$AR"; then 8497 ac_cv_prog_AR="$AR" # Let the user override the test. 8498else 8499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8500for as_dir in $PATH 8501do 8502 IFS=$as_save_IFS 8503 test -z "$as_dir" && as_dir=. 8504 for ac_exec_ext in '' $ac_executable_extensions; do 8505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8506 ac_cv_prog_AR="${ac_tool_prefix}ar" 8507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8508 break 2 8509 fi 8510done 8511done 8512IFS=$as_save_IFS 8513 8514fi 8515fi 8516AR=$ac_cv_prog_AR 8517if test -n "$AR"; then 8518 { echo "$as_me:$LINENO: result: $AR" >&5 8519echo "${ECHO_T}$AR" >&6; } 8520else 8521 { echo "$as_me:$LINENO: result: no" >&5 8522echo "${ECHO_T}no" >&6; } 8523fi 8524 8525 8526fi 8527if test -z "$ac_cv_prog_AR"; then 8528 ac_ct_AR=$AR 8529 # Extract the first word of "ar", so it can be a program name with args. 8530set dummy ar; ac_word=$2 8531{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8533if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 8534 echo $ECHO_N "(cached) $ECHO_C" >&6 8535else 8536 if test -n "$ac_ct_AR"; then 8537 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8538else 8539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8540for as_dir in $PATH 8541do 8542 IFS=$as_save_IFS 8543 test -z "$as_dir" && as_dir=. 8544 for ac_exec_ext in '' $ac_executable_extensions; do 8545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8546 ac_cv_prog_ac_ct_AR="ar" 8547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8548 break 2 8549 fi 8550done 8551done 8552IFS=$as_save_IFS 8553 8554fi 8555fi 8556ac_ct_AR=$ac_cv_prog_ac_ct_AR 8557if test -n "$ac_ct_AR"; then 8558 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 8559echo "${ECHO_T}$ac_ct_AR" >&6; } 8560else 8561 { echo "$as_me:$LINENO: result: no" >&5 8562echo "${ECHO_T}no" >&6; } 8563fi 8564 8565 if test "x$ac_ct_AR" = x; then 8566 AR="false" 8567 else 8568 case $cross_compiling:$ac_tool_warned in 8569yes:) 8570{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8571whose name does not start with the host triplet. If you think this 8572configuration is useful to you, please write to autoconf@gnu.org." >&5 8573echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8574whose name does not start with the host triplet. If you think this 8575configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8576ac_tool_warned=yes ;; 8577esac 8578 AR=$ac_ct_AR 8579 fi 8580else 8581 AR="$ac_cv_prog_AR" 8582fi 8583 8584if test -n "$ac_tool_prefix"; then 8585 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8586set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8587{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8589if test "${ac_cv_prog_RANLIB+set}" = set; then 8590 echo $ECHO_N "(cached) $ECHO_C" >&6 8591else 8592 if test -n "$RANLIB"; then 8593 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8594else 8595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8596for as_dir in $PATH 8597do 8598 IFS=$as_save_IFS 8599 test -z "$as_dir" && as_dir=. 8600 for ac_exec_ext in '' $ac_executable_extensions; do 8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8602 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8604 break 2 8605 fi 8606done 8607done 8608IFS=$as_save_IFS 8609 8610fi 8611fi 8612RANLIB=$ac_cv_prog_RANLIB 8613if test -n "$RANLIB"; then 8614 { echo "$as_me:$LINENO: result: $RANLIB" >&5 8615echo "${ECHO_T}$RANLIB" >&6; } 8616else 8617 { echo "$as_me:$LINENO: result: no" >&5 8618echo "${ECHO_T}no" >&6; } 8619fi 8620 8621 8622fi 8623if test -z "$ac_cv_prog_RANLIB"; then 8624 ac_ct_RANLIB=$RANLIB 8625 # Extract the first word of "ranlib", so it can be a program name with args. 8626set dummy ranlib; ac_word=$2 8627{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8629if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 8630 echo $ECHO_N "(cached) $ECHO_C" >&6 8631else 8632 if test -n "$ac_ct_RANLIB"; then 8633 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8634else 8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8636for as_dir in $PATH 8637do 8638 IFS=$as_save_IFS 8639 test -z "$as_dir" && as_dir=. 8640 for ac_exec_ext in '' $ac_executable_extensions; do 8641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8642 ac_cv_prog_ac_ct_RANLIB="ranlib" 8643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8644 break 2 8645 fi 8646done 8647done 8648IFS=$as_save_IFS 8649 8650fi 8651fi 8652ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8653if test -n "$ac_ct_RANLIB"; then 8654 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 8655echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 8656else 8657 { echo "$as_me:$LINENO: result: no" >&5 8658echo "${ECHO_T}no" >&6; } 8659fi 8660 8661 if test "x$ac_ct_RANLIB" = x; then 8662 RANLIB=":" 8663 else 8664 case $cross_compiling:$ac_tool_warned in 8665yes:) 8666{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8667whose name does not start with the host triplet. If you think this 8668configuration is useful to you, please write to autoconf@gnu.org." >&5 8669echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8670whose name does not start with the host triplet. If you think this 8671configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8672ac_tool_warned=yes ;; 8673esac 8674 RANLIB=$ac_ct_RANLIB 8675 fi 8676else 8677 RANLIB="$ac_cv_prog_RANLIB" 8678fi 8679 8680if test -n "$ac_tool_prefix"; then 8681 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8682set dummy ${ac_tool_prefix}strip; ac_word=$2 8683{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8685if test "${ac_cv_prog_STRIP+set}" = set; then 8686 echo $ECHO_N "(cached) $ECHO_C" >&6 8687else 8688 if test -n "$STRIP"; then 8689 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8690else 8691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8692for as_dir in $PATH 8693do 8694 IFS=$as_save_IFS 8695 test -z "$as_dir" && as_dir=. 8696 for ac_exec_ext in '' $ac_executable_extensions; do 8697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8698 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8700 break 2 8701 fi 8702done 8703done 8704IFS=$as_save_IFS 8705 8706fi 8707fi 8708STRIP=$ac_cv_prog_STRIP 8709if test -n "$STRIP"; then 8710 { echo "$as_me:$LINENO: result: $STRIP" >&5 8711echo "${ECHO_T}$STRIP" >&6; } 8712else 8713 { echo "$as_me:$LINENO: result: no" >&5 8714echo "${ECHO_T}no" >&6; } 8715fi 8716 8717 8718fi 8719if test -z "$ac_cv_prog_STRIP"; then 8720 ac_ct_STRIP=$STRIP 8721 # Extract the first word of "strip", so it can be a program name with args. 8722set dummy strip; ac_word=$2 8723{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8725if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 8726 echo $ECHO_N "(cached) $ECHO_C" >&6 8727else 8728 if test -n "$ac_ct_STRIP"; then 8729 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8730else 8731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8732for as_dir in $PATH 8733do 8734 IFS=$as_save_IFS 8735 test -z "$as_dir" && as_dir=. 8736 for ac_exec_ext in '' $ac_executable_extensions; do 8737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8738 ac_cv_prog_ac_ct_STRIP="strip" 8739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8740 break 2 8741 fi 8742done 8743done 8744IFS=$as_save_IFS 8745 8746fi 8747fi 8748ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8749if test -n "$ac_ct_STRIP"; then 8750 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 8751echo "${ECHO_T}$ac_ct_STRIP" >&6; } 8752else 8753 { echo "$as_me:$LINENO: result: no" >&5 8754echo "${ECHO_T}no" >&6; } 8755fi 8756 8757 if test "x$ac_ct_STRIP" = x; then 8758 STRIP=":" 8759 else 8760 case $cross_compiling:$ac_tool_warned in 8761yes:) 8762{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8763whose name does not start with the host triplet. If you think this 8764configuration is useful to you, please write to autoconf@gnu.org." >&5 8765echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8766whose name does not start with the host triplet. If you think this 8767configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8768ac_tool_warned=yes ;; 8769esac 8770 STRIP=$ac_ct_STRIP 8771 fi 8772else 8773 STRIP="$ac_cv_prog_STRIP" 8774fi 8775 8776 8777old_CC="$CC" 8778old_CFLAGS="$CFLAGS" 8779 8780# Set sane defaults for various variables 8781test -z "$AR" && AR=ar 8782test -z "$AR_FLAGS" && AR_FLAGS=cru 8783test -z "$AS" && AS=as 8784test -z "$CC" && CC=cc 8785test -z "$LTCC" && LTCC=$CC 8786test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8787test -z "$DLLTOOL" && DLLTOOL=dlltool 8788test -z "$LD" && LD=ld 8789test -z "$LN_S" && LN_S="ln -s" 8790test -z "$MAGIC_CMD" && MAGIC_CMD=file 8791test -z "$NM" && NM=nm 8792test -z "$SED" && SED=sed 8793test -z "$OBJDUMP" && OBJDUMP=objdump 8794test -z "$RANLIB" && RANLIB=: 8795test -z "$STRIP" && STRIP=: 8796test -z "$ac_objext" && ac_objext=o 8797 8798# Determine commands to create old-style static archives. 8799old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 8800old_postinstall_cmds='chmod 644 $oldlib' 8801old_postuninstall_cmds= 8802 8803if test -n "$RANLIB"; then 8804 case $host_os in 8805 openbsd*) 8806 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8807 ;; 8808 *) 8809 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8810 ;; 8811 esac 8812 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8813fi 8814 8815for cc_temp in $compiler""; do 8816 case $cc_temp in 8817 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8818 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8819 \-*) ;; 8820 *) break;; 8821 esac 8822done 8823cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8824 8825 8826# Only perform the check for file, if the check method requires it 8827case $deplibs_check_method in 8828file_magic*) 8829 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8830 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8831echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 8832if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8833 echo $ECHO_N "(cached) $ECHO_C" >&6 8834else 8835 case $MAGIC_CMD in 8836[\\/*] | ?:[\\/]*) 8837 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8838 ;; 8839*) 8840 lt_save_MAGIC_CMD="$MAGIC_CMD" 8841 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8842 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8843 for ac_dir in $ac_dummy; do 8844 IFS="$lt_save_ifs" 8845 test -z "$ac_dir" && ac_dir=. 8846 if test -f $ac_dir/${ac_tool_prefix}file; then 8847 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8848 if test -n "$file_magic_test_file"; then 8849 case $deplibs_check_method in 8850 "file_magic "*) 8851 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8852 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8853 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8854 $EGREP "$file_magic_regex" > /dev/null; then 8855 : 8856 else 8857 cat <<EOF 1>&2 8858 8859*** Warning: the command libtool uses to detect shared libraries, 8860*** $file_magic_cmd, produces output that libtool cannot recognize. 8861*** The result is that libtool may fail to recognize shared libraries 8862*** as such. This will affect the creation of libtool libraries that 8863*** depend on shared libraries, but programs linked with such libtool 8864*** libraries will work regardless of this problem. Nevertheless, you 8865*** may want to report the problem to your system manager and/or to 8866*** bug-libtool@gnu.org 8867 8868EOF 8869 fi ;; 8870 esac 8871 fi 8872 break 8873 fi 8874 done 8875 IFS="$lt_save_ifs" 8876 MAGIC_CMD="$lt_save_MAGIC_CMD" 8877 ;; 8878esac 8879fi 8880 8881MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8882if test -n "$MAGIC_CMD"; then 8883 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8884echo "${ECHO_T}$MAGIC_CMD" >&6; } 8885else 8886 { echo "$as_me:$LINENO: result: no" >&5 8887echo "${ECHO_T}no" >&6; } 8888fi 8889 8890if test -z "$lt_cv_path_MAGIC_CMD"; then 8891 if test -n "$ac_tool_prefix"; then 8892 { echo "$as_me:$LINENO: checking for file" >&5 8893echo $ECHO_N "checking for file... $ECHO_C" >&6; } 8894if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8895 echo $ECHO_N "(cached) $ECHO_C" >&6 8896else 8897 case $MAGIC_CMD in 8898[\\/*] | ?:[\\/]*) 8899 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8900 ;; 8901*) 8902 lt_save_MAGIC_CMD="$MAGIC_CMD" 8903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8904 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8905 for ac_dir in $ac_dummy; do 8906 IFS="$lt_save_ifs" 8907 test -z "$ac_dir" && ac_dir=. 8908 if test -f $ac_dir/file; then 8909 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8910 if test -n "$file_magic_test_file"; then 8911 case $deplibs_check_method in 8912 "file_magic "*) 8913 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8915 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8916 $EGREP "$file_magic_regex" > /dev/null; then 8917 : 8918 else 8919 cat <<EOF 1>&2 8920 8921*** Warning: the command libtool uses to detect shared libraries, 8922*** $file_magic_cmd, produces output that libtool cannot recognize. 8923*** The result is that libtool may fail to recognize shared libraries 8924*** as such. This will affect the creation of libtool libraries that 8925*** depend on shared libraries, but programs linked with such libtool 8926*** libraries will work regardless of this problem. Nevertheless, you 8927*** may want to report the problem to your system manager and/or to 8928*** bug-libtool@gnu.org 8929 8930EOF 8931 fi ;; 8932 esac 8933 fi 8934 break 8935 fi 8936 done 8937 IFS="$lt_save_ifs" 8938 MAGIC_CMD="$lt_save_MAGIC_CMD" 8939 ;; 8940esac 8941fi 8942 8943MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8944if test -n "$MAGIC_CMD"; then 8945 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8946echo "${ECHO_T}$MAGIC_CMD" >&6; } 8947else 8948 { echo "$as_me:$LINENO: result: no" >&5 8949echo "${ECHO_T}no" >&6; } 8950fi 8951 8952 else 8953 MAGIC_CMD=: 8954 fi 8955fi 8956 8957 fi 8958 ;; 8959esac 8960 8961enable_dlopen=no 8962enable_win32_dll=no 8963 8964# Check whether --enable-libtool-lock was given. 8965if test "${enable_libtool_lock+set}" = set; then 8966 enableval=$enable_libtool_lock; 8967fi 8968 8969test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8970 8971 8972# Check whether --with-pic was given. 8973if test "${with_pic+set}" = set; then 8974 withval=$with_pic; pic_mode="$withval" 8975else 8976 pic_mode=default 8977fi 8978 8979test -z "$pic_mode" && pic_mode=default 8980 8981# Use C for the default configuration in the libtool script 8982tagname= 8983lt_save_CC="$CC" 8984ac_ext=c 8985ac_cpp='$CPP $CPPFLAGS' 8986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8988ac_compiler_gnu=$ac_cv_c_compiler_gnu 8989 8990 8991# Source file extension for C test sources. 8992ac_ext=c 8993 8994# Object file extension for compiled C test sources. 8995objext=o 8996objext=$objext 8997 8998# Code to be used in simple compile tests 8999lt_simple_compile_test_code="int some_variable = 0;\n" 9000 9001# Code to be used in simple link tests 9002lt_simple_link_test_code='int main(){return(0);}\n' 9003 9004 9005# If no C compiler was specified, use CC. 9006LTCC=${LTCC-"$CC"} 9007 9008# If no C compiler flags were specified, use CFLAGS. 9009LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9010 9011# Allow CC to be a program name with arguments. 9012compiler=$CC 9013 9014 9015# save warnings/boilerplate of simple test code 9016ac_outfile=conftest.$ac_objext 9017printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9018eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9019_lt_compiler_boilerplate=`cat conftest.err` 9020$rm conftest* 9021 9022ac_outfile=conftest.$ac_objext 9023printf "$lt_simple_link_test_code" >conftest.$ac_ext 9024eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9025_lt_linker_boilerplate=`cat conftest.err` 9026$rm conftest* 9027 9028 9029 9030lt_prog_compiler_no_builtin_flag= 9031 9032if test "$GCC" = yes; then 9033 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 9034 9035 9036{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9037echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 9038if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 9039 echo $ECHO_N "(cached) $ECHO_C" >&6 9040else 9041 lt_cv_prog_compiler_rtti_exceptions=no 9042 ac_outfile=conftest.$ac_objext 9043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9044 lt_compiler_flag="-fno-rtti -fno-exceptions" 9045 # Insert the option either (1) after the last *FLAGS variable, or 9046 # (2) before a word containing "conftest.", or (3) at the end. 9047 # Note that $ac_compile itself does not contain backslashes and begins 9048 # with a dollar sign (not a hyphen), so the echo should work correctly. 9049 # The option is referenced via a variable to avoid confusing sed. 9050 lt_compile=`echo "$ac_compile" | $SED \ 9051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9053 -e 's:$: $lt_compiler_flag:'` 9054 (eval echo "\"\$as_me:9054: $lt_compile\"" >&5) 9055 (eval "$lt_compile" 2>conftest.err) 9056 ac_status=$? 9057 cat conftest.err >&5 9058 echo "$as_me:9058: \$? = $ac_status" >&5 9059 if (exit $ac_status) && test -s "$ac_outfile"; then 9060 # The compiler can only warn and ignore the option if not recognized 9061 # So say no if there are warnings other than the usual output. 9062 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9064 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9065 lt_cv_prog_compiler_rtti_exceptions=yes 9066 fi 9067 fi 9068 $rm conftest* 9069 9070fi 9071{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9072echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9073 9074if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9075 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9076else 9077 : 9078fi 9079 9080fi 9081 9082lt_prog_compiler_wl= 9083lt_prog_compiler_pic= 9084lt_prog_compiler_static= 9085 9086{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 9087echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 9088 9089 if test "$GCC" = yes; then 9090 lt_prog_compiler_wl='-Wl,' 9091 lt_prog_compiler_static='-static' 9092 9093 case $host_os in 9094 aix*) 9095 # All AIX code is PIC. 9096 if test "$host_cpu" = ia64; then 9097 # AIX 5 now supports IA64 processor 9098 lt_prog_compiler_static='-Bstatic' 9099 fi 9100 ;; 9101 9102 amigaos*) 9103 # FIXME: we need at least 68020 code to build shared libraries, but 9104 # adding the `-m68020' flag to GCC prevents building anything better, 9105 # like `-m68040'. 9106 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9107 ;; 9108 9109 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9110 # PIC is the default for these OSes. 9111 ;; 9112 9113 mingw* | pw32* | os2*) 9114 # This hack is so that the source file can tell whether it is being 9115 # built for inclusion in a dll (and should export symbols for example). 9116 lt_prog_compiler_pic='-DDLL_EXPORT' 9117 ;; 9118 9119 darwin* | rhapsody*) 9120 # PIC is the default on this platform 9121 # Common symbols not allowed in MH_DYLIB files 9122 lt_prog_compiler_pic='-fno-common' 9123 ;; 9124 9125 interix3*) 9126 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9127 # Instead, we relocate shared libraries at runtime. 9128 ;; 9129 9130 msdosdjgpp*) 9131 # Just because we use GCC doesn't mean we suddenly get shared libraries 9132 # on systems that don't support them. 9133 lt_prog_compiler_can_build_shared=no 9134 enable_shared=no 9135 ;; 9136 9137 sysv4*MP*) 9138 if test -d /usr/nec; then 9139 lt_prog_compiler_pic=-Kconform_pic 9140 fi 9141 ;; 9142 9143 hpux*) 9144 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9145 # not for PA HP-UX. 9146 case $host_cpu in 9147 hppa*64*|ia64*) 9148 # +Z the default 9149 ;; 9150 *) 9151 lt_prog_compiler_pic='-fPIC' 9152 ;; 9153 esac 9154 ;; 9155 9156 *) 9157 lt_prog_compiler_pic='-fPIC' 9158 ;; 9159 esac 9160 else 9161 # PORTME Check for flag to pass linker flags through the system compiler. 9162 case $host_os in 9163 aix*) 9164 lt_prog_compiler_wl='-Wl,' 9165 if test "$host_cpu" = ia64; then 9166 # AIX 5 now supports IA64 processor 9167 lt_prog_compiler_static='-Bstatic' 9168 else 9169 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9170 fi 9171 ;; 9172 darwin*) 9173 # PIC is the default on this platform 9174 # Common symbols not allowed in MH_DYLIB files 9175 case $cc_basename in 9176 xlc*) 9177 lt_prog_compiler_pic='-qnocommon' 9178 lt_prog_compiler_wl='-Wl,' 9179 ;; 9180 esac 9181 ;; 9182 9183 mingw* | pw32* | os2*) 9184 # This hack is so that the source file can tell whether it is being 9185 # built for inclusion in a dll (and should export symbols for example). 9186 lt_prog_compiler_pic='-DDLL_EXPORT' 9187 ;; 9188 9189 hpux9* | hpux10* | hpux11*) 9190 lt_prog_compiler_wl='-Wl,' 9191 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9192 # not for PA HP-UX. 9193 case $host_cpu in 9194 hppa*64*|ia64*) 9195 # +Z the default 9196 ;; 9197 *) 9198 lt_prog_compiler_pic='+Z' 9199 ;; 9200 esac 9201 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9202 lt_prog_compiler_static='${wl}-a ${wl}archive' 9203 ;; 9204 9205 irix5* | irix6* | nonstopux*) 9206 lt_prog_compiler_wl='-Wl,' 9207 # PIC (with -KPIC) is the default. 9208 lt_prog_compiler_static='-non_shared' 9209 ;; 9210 9211 newsos6) 9212 lt_prog_compiler_pic='-KPIC' 9213 lt_prog_compiler_static='-Bstatic' 9214 ;; 9215 9216 linux* | k*bsd*-gnu) 9217 case $cc_basename in 9218 icc* | ecc*) 9219 lt_prog_compiler_wl='-Wl,' 9220 lt_prog_compiler_pic='-KPIC' 9221 lt_prog_compiler_static='-static' 9222 ;; 9223 pgcc* | pgf77* | pgf90* | pgf95*) 9224 # Portland Group compilers (*not* the Pentium gcc compiler, 9225 # which looks to be a dead project) 9226 lt_prog_compiler_wl='-Wl,' 9227 lt_prog_compiler_pic='-fpic' 9228 lt_prog_compiler_static='-Bstatic' 9229 ;; 9230 ccc*) 9231 lt_prog_compiler_wl='-Wl,' 9232 # All Alpha code is PIC. 9233 lt_prog_compiler_static='-non_shared' 9234 ;; 9235 esac 9236 ;; 9237 9238 osf3* | osf4* | osf5*) 9239 lt_prog_compiler_wl='-Wl,' 9240 # All OSF/1 code is PIC. 9241 lt_prog_compiler_static='-non_shared' 9242 ;; 9243 9244 solaris*) 9245 lt_prog_compiler_pic='-KPIC' 9246 lt_prog_compiler_static='-Bstatic' 9247 case $cc_basename in 9248 f77* | f90* | f95*) 9249 lt_prog_compiler_wl='-Qoption ld ';; 9250 *) 9251 lt_prog_compiler_wl='-Wl,';; 9252 esac 9253 ;; 9254 9255 sunos4*) 9256 lt_prog_compiler_wl='-Qoption ld ' 9257 lt_prog_compiler_pic='-PIC' 9258 lt_prog_compiler_static='-Bstatic' 9259 ;; 9260 9261 sysv4 | sysv4.2uw2* | sysv4.3*) 9262 lt_prog_compiler_wl='-Wl,' 9263 lt_prog_compiler_pic='-KPIC' 9264 lt_prog_compiler_static='-Bstatic' 9265 ;; 9266 9267 sysv4*MP*) 9268 if test -d /usr/nec ;then 9269 lt_prog_compiler_pic='-Kconform_pic' 9270 lt_prog_compiler_static='-Bstatic' 9271 fi 9272 ;; 9273 9274 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9275 lt_prog_compiler_wl='-Wl,' 9276 lt_prog_compiler_pic='-KPIC' 9277 lt_prog_compiler_static='-Bstatic' 9278 ;; 9279 9280 unicos*) 9281 lt_prog_compiler_wl='-Wl,' 9282 lt_prog_compiler_can_build_shared=no 9283 ;; 9284 9285 uts4*) 9286 lt_prog_compiler_pic='-pic' 9287 lt_prog_compiler_static='-Bstatic' 9288 ;; 9289 9290 *) 9291 lt_prog_compiler_can_build_shared=no 9292 ;; 9293 esac 9294 fi 9295 9296{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 9297echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 9298 9299# 9300# Check to make sure the PIC flag actually works. 9301# 9302if test -n "$lt_prog_compiler_pic"; then 9303 9304{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9305echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 9306if test "${lt_prog_compiler_pic_works+set}" = set; then 9307 echo $ECHO_N "(cached) $ECHO_C" >&6 9308else 9309 lt_prog_compiler_pic_works=no 9310 ac_outfile=conftest.$ac_objext 9311 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9312 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9313 # Insert the option either (1) after the last *FLAGS variable, or 9314 # (2) before a word containing "conftest.", or (3) at the end. 9315 # Note that $ac_compile itself does not contain backslashes and begins 9316 # with a dollar sign (not a hyphen), so the echo should work correctly. 9317 # The option is referenced via a variable to avoid confusing sed. 9318 lt_compile=`echo "$ac_compile" | $SED \ 9319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9321 -e 's:$: $lt_compiler_flag:'` 9322 (eval echo "\"\$as_me:9322: $lt_compile\"" >&5) 9323 (eval "$lt_compile" 2>conftest.err) 9324 ac_status=$? 9325 cat conftest.err >&5 9326 echo "$as_me:9326: \$? = $ac_status" >&5 9327 if (exit $ac_status) && test -s "$ac_outfile"; then 9328 # The compiler can only warn and ignore the option if not recognized 9329 # So say no if there are warnings other than the usual output. 9330 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9332 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9333 lt_prog_compiler_pic_works=yes 9334 fi 9335 fi 9336 $rm conftest* 9337 9338fi 9339{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 9340echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 9341 9342if test x"$lt_prog_compiler_pic_works" = xyes; then 9343 case $lt_prog_compiler_pic in 9344 "" | " "*) ;; 9345 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9346 esac 9347else 9348 lt_prog_compiler_pic= 9349 lt_prog_compiler_can_build_shared=no 9350fi 9351 9352fi 9353case $host_os in 9354 # For platforms which do not support PIC, -DPIC is meaningless: 9355 *djgpp*) 9356 lt_prog_compiler_pic= 9357 ;; 9358 *) 9359 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9360 ;; 9361esac 9362 9363# 9364# Check to make sure the static flag actually works. 9365# 9366wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9367{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9368echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 9369if test "${lt_prog_compiler_static_works+set}" = set; then 9370 echo $ECHO_N "(cached) $ECHO_C" >&6 9371else 9372 lt_prog_compiler_static_works=no 9373 save_LDFLAGS="$LDFLAGS" 9374 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9375 printf "$lt_simple_link_test_code" > conftest.$ac_ext 9376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9377 # The linker can only warn and ignore the option if not recognized 9378 # So say no if there are warnings 9379 if test -s conftest.err; then 9380 # Append any errors to the config.log. 9381 cat conftest.err 1>&5 9382 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9384 if diff conftest.exp conftest.er2 >/dev/null; then 9385 lt_prog_compiler_static_works=yes 9386 fi 9387 else 9388 lt_prog_compiler_static_works=yes 9389 fi 9390 fi 9391 $rm conftest* 9392 LDFLAGS="$save_LDFLAGS" 9393 9394fi 9395{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 9396echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 9397 9398if test x"$lt_prog_compiler_static_works" = xyes; then 9399 : 9400else 9401 lt_prog_compiler_static= 9402fi 9403 9404 9405{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9406echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 9407if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9408 echo $ECHO_N "(cached) $ECHO_C" >&6 9409else 9410 lt_cv_prog_compiler_c_o=no 9411 $rm -r conftest 2>/dev/null 9412 mkdir conftest 9413 cd conftest 9414 mkdir out 9415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9416 9417 lt_compiler_flag="-o out/conftest2.$ac_objext" 9418 # Insert the option either (1) after the last *FLAGS variable, or 9419 # (2) before a word containing "conftest.", or (3) at the end. 9420 # Note that $ac_compile itself does not contain backslashes and begins 9421 # with a dollar sign (not a hyphen), so the echo should work correctly. 9422 lt_compile=`echo "$ac_compile" | $SED \ 9423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9425 -e 's:$: $lt_compiler_flag:'` 9426 (eval echo "\"\$as_me:9426: $lt_compile\"" >&5) 9427 (eval "$lt_compile" 2>out/conftest.err) 9428 ac_status=$? 9429 cat out/conftest.err >&5 9430 echo "$as_me:9430: \$? = $ac_status" >&5 9431 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9432 then 9433 # The compiler can only warn and ignore the option if not recognized 9434 # So say no if there are warnings 9435 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9438 lt_cv_prog_compiler_c_o=yes 9439 fi 9440 fi 9441 chmod u+w . 2>&5 9442 $rm conftest* 9443 # SGI C++ compiler will create directory out/ii_files/ for 9444 # template instantiation 9445 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 9446 $rm out/* && rmdir out 9447 cd .. 9448 rmdir conftest 9449 $rm conftest* 9450 9451fi 9452{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9453echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 9454 9455 9456hard_links="nottested" 9457if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9458 # do not overwrite the value of need_locks provided by the user 9459 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9460echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 9461 hard_links=yes 9462 $rm conftest* 9463 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9464 touch conftest.a 9465 ln conftest.a conftest.b 2>&5 || hard_links=no 9466 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9467 { echo "$as_me:$LINENO: result: $hard_links" >&5 9468echo "${ECHO_T}$hard_links" >&6; } 9469 if test "$hard_links" = no; then 9470 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9471echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9472 need_locks=warn 9473 fi 9474else 9475 need_locks=no 9476fi 9477 9478{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9479echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 9480 9481 runpath_var= 9482 allow_undefined_flag= 9483 enable_shared_with_static_runtimes=no 9484 archive_cmds= 9485 archive_expsym_cmds= 9486 old_archive_From_new_cmds= 9487 old_archive_from_expsyms_cmds= 9488 export_dynamic_flag_spec= 9489 whole_archive_flag_spec= 9490 thread_safe_flag_spec= 9491 hardcode_libdir_flag_spec= 9492 hardcode_libdir_flag_spec_ld= 9493 hardcode_libdir_separator= 9494 hardcode_direct=no 9495 hardcode_minus_L=no 9496 hardcode_shlibpath_var=unsupported 9497 link_all_deplibs=unknown 9498 hardcode_automatic=no 9499 module_cmds= 9500 module_expsym_cmds= 9501 always_export_symbols=no 9502 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9503 # include_expsyms should be a list of space-separated symbols to be *always* 9504 # included in the symbol list 9505 include_expsyms= 9506 # exclude_expsyms can be an extended regexp of symbols to exclude 9507 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9508 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9509 # as well as any symbol that contains `d'. 9510 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 9511 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9512 # platforms (ab)use it in PIC code, but their linkers get confused if 9513 # the symbol is explicitly referenced. Since portable code cannot 9514 # rely on this symbol name, it's probably fine to never include it in 9515 # preloaded symbol tables. 9516 extract_expsyms_cmds= 9517 # Just being paranoid about ensuring that cc_basename is set. 9518 for cc_temp in $compiler""; do 9519 case $cc_temp in 9520 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9521 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9522 \-*) ;; 9523 *) break;; 9524 esac 9525done 9526cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9527 9528 case $host_os in 9529 cygwin* | mingw* | pw32*) 9530 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9531 # When not using gcc, we currently assume that we are using 9532 # Microsoft Visual C++. 9533 if test "$GCC" != yes; then 9534 with_gnu_ld=no 9535 fi 9536 ;; 9537 interix*) 9538 # we just hope/assume this is gcc and not c89 (= MSVC++) 9539 with_gnu_ld=yes 9540 ;; 9541 openbsd*) 9542 with_gnu_ld=no 9543 ;; 9544 esac 9545 9546 ld_shlibs=yes 9547 if test "$with_gnu_ld" = yes; then 9548 # If archive_cmds runs LD, not CC, wlarc should be empty 9549 wlarc='${wl}' 9550 9551 # Set some defaults for GNU ld with shared library support. These 9552 # are reset later if shared libraries are not supported. Putting them 9553 # here allows them to be overridden if necessary. 9554 runpath_var=LD_RUN_PATH 9555 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 9556 export_dynamic_flag_spec='${wl}--export-dynamic' 9557 # ancient GNU ld didn't support --whole-archive et. al. 9558 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 9559 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9560 else 9561 whole_archive_flag_spec= 9562 fi 9563 supports_anon_versioning=no 9564 case `$LD -v 2>/dev/null` in 9565 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9566 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9567 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9568 *\ 2.11.*) ;; # other 2.11 versions 9569 *) supports_anon_versioning=yes ;; 9570 esac 9571 9572 # See if GNU ld supports shared libraries. 9573 case $host_os in 9574 aix3* | aix4* | aix5*) 9575 # On AIX/PPC, the GNU linker is very broken 9576 if test "$host_cpu" != ia64; then 9577 ld_shlibs=no 9578 cat <<EOF 1>&2 9579 9580*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9581*** to be unable to reliably create shared libraries on AIX. 9582*** Therefore, libtool is disabling shared libraries support. If you 9583*** really care for shared libraries, you may want to modify your PATH 9584*** so that a non-GNU linker is found, and then restart. 9585 9586EOF 9587 fi 9588 ;; 9589 9590 amigaos*) 9591 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)' 9592 hardcode_libdir_flag_spec='-L$libdir' 9593 hardcode_minus_L=yes 9594 9595 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 9596 # that the semantics of dynamic libraries on AmigaOS, at least up 9597 # to version 4, is to share data among multiple programs linked 9598 # with the same dynamic library. Since this doesn't match the 9599 # behavior of shared libraries on other platforms, we can't use 9600 # them. 9601 ld_shlibs=no 9602 ;; 9603 9604 beos*) 9605 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9606 allow_undefined_flag=unsupported 9607 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9608 # support --undefined. This deserves some investigation. FIXME 9609 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9610 else 9611 ld_shlibs=no 9612 fi 9613 ;; 9614 9615 cygwin* | mingw* | pw32*) 9616 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9617 # as there is no search path for DLLs. 9618 hardcode_libdir_flag_spec='-L$libdir' 9619 allow_undefined_flag=unsupported 9620 always_export_symbols=no 9621 enable_shared_with_static_runtimes=yes 9622 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 9623 9624 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9626 # If the export-symbols file already is a .def file (1st line 9627 # is EXPORTS), use it as is; otherwise, prepend... 9628 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9629 cp $export_symbols $output_objdir/$soname.def; 9630 else 9631 echo EXPORTS > $output_objdir/$soname.def; 9632 cat $export_symbols >> $output_objdir/$soname.def; 9633 fi~ 9634 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9635 else 9636 ld_shlibs=no 9637 fi 9638 ;; 9639 9640 interix3*) 9641 hardcode_direct=no 9642 hardcode_shlibpath_var=no 9643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9644 export_dynamic_flag_spec='${wl}-E' 9645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9646 # Instead, shared libraries are loaded at an image base (0x10000000 by 9647 # default) and relocated if they conflict, which is a slow very memory 9648 # consuming and fragmenting process. To avoid this, we pick a random, 9649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9650 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9652 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' 9653 ;; 9654 9655 linux* | k*bsd*-gnu) 9656 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9657 tmp_addflag= 9658 case $cc_basename,$host_cpu in 9659 pgcc*) # Portland Group C compiler 9660 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' 9661 tmp_addflag=' $pic_flag' 9662 ;; 9663 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9664 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' 9665 tmp_addflag=' $pic_flag -Mnomain' ;; 9666 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9667 tmp_addflag=' -i_dynamic' ;; 9668 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9669 tmp_addflag=' -i_dynamic -nofor_main' ;; 9670 ifc* | ifort*) # Intel Fortran compiler 9671 tmp_addflag=' -nofor_main' ;; 9672 esac 9673 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9674 9675 if test $supports_anon_versioning = yes; then 9676 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 9677 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9678 $echo "local: *; };" >> $output_objdir/$libname.ver~ 9679 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9680 fi 9681 link_all_deplibs=no 9682 else 9683 ld_shlibs=no 9684 fi 9685 ;; 9686 9687 netbsd* | netbsdelf*-gnu) 9688 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9689 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9690 wlarc= 9691 else 9692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9693 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9694 fi 9695 ;; 9696 9697 solaris*) 9698 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 9699 ld_shlibs=no 9700 cat <<EOF 1>&2 9701 9702*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9703*** create shared libraries on Solaris systems. Therefore, libtool 9704*** is disabling shared libraries support. We urge you to upgrade GNU 9705*** binutils to release 2.9.1 or newer. Another option is to modify 9706*** your PATH or compiler configuration so that the native linker is 9707*** used, and then restart. 9708 9709EOF 9710 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9713 else 9714 ld_shlibs=no 9715 fi 9716 ;; 9717 9718 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9719 case `$LD -v 2>&1` in 9720 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9721 ld_shlibs=no 9722 cat <<_LT_EOF 1>&2 9723 9724*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9725*** reliably create shared libraries on SCO systems. Therefore, libtool 9726*** is disabling shared libraries support. We urge you to upgrade GNU 9727*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9728*** your PATH or compiler configuration so that the native linker is 9729*** used, and then restart. 9730 9731_LT_EOF 9732 ;; 9733 *) 9734 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9735 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 9736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 9737 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 9738 else 9739 ld_shlibs=no 9740 fi 9741 ;; 9742 esac 9743 ;; 9744 9745 sunos4*) 9746 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9747 wlarc= 9748 hardcode_direct=yes 9749 hardcode_shlibpath_var=no 9750 ;; 9751 9752 *) 9753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9755 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9756 else 9757 ld_shlibs=no 9758 fi 9759 ;; 9760 esac 9761 9762 if test "$ld_shlibs" = no; then 9763 runpath_var= 9764 hardcode_libdir_flag_spec= 9765 export_dynamic_flag_spec= 9766 whole_archive_flag_spec= 9767 fi 9768 else 9769 # PORTME fill in a description of your system's linker (not GNU ld) 9770 case $host_os in 9771 aix3*) 9772 allow_undefined_flag=unsupported 9773 always_export_symbols=yes 9774 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' 9775 # Note: this linker hardcodes the directories in LIBPATH if there 9776 # are no directories specified by -L. 9777 hardcode_minus_L=yes 9778 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9779 # Neither direct hardcoding nor static linking is supported with a 9780 # broken collect2. 9781 hardcode_direct=unsupported 9782 fi 9783 ;; 9784 9785 aix4* | aix5*) 9786 if test "$host_cpu" = ia64; then 9787 # On IA64, the linker does run time linking by default, so we don't 9788 # have to do anything special. 9789 aix_use_runtimelinking=no 9790 exp_sym_flag='-Bexport' 9791 no_entry_flag="" 9792 else 9793 # If we're using GNU nm, then we don't want the "-C" option. 9794 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9795 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9796 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' 9797 else 9798 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' 9799 fi 9800 aix_use_runtimelinking=no 9801 9802 # Test if we are trying to use run time linking or normal 9803 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9804 # need to do runtime linking. 9805 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9806 for ld_flag in $LDFLAGS; do 9807 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9808 aix_use_runtimelinking=yes 9809 break 9810 fi 9811 done 9812 ;; 9813 esac 9814 9815 exp_sym_flag='-bexport' 9816 no_entry_flag='-bnoentry' 9817 fi 9818 9819 # When large executables or shared objects are built, AIX ld can 9820 # have problems creating the table of contents. If linking a library 9821 # or program results in "error TOC overflow" add -mminimal-toc to 9822 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9823 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9824 9825 archive_cmds='' 9826 hardcode_direct=yes 9827 hardcode_libdir_separator=':' 9828 link_all_deplibs=yes 9829 9830 if test "$GCC" = yes; then 9831 case $host_os in aix4.[012]|aix4.[012].*) 9832 # We only want to do this on AIX 4.2 and lower, the check 9833 # below for broken collect2 doesn't work under 4.3+ 9834 collect2name=`${CC} -print-prog-name=collect2` 9835 if test -f "$collect2name" && \ 9836 strings "$collect2name" | grep resolve_lib_name >/dev/null 9837 then 9838 # We have reworked collect2 9839 hardcode_direct=yes 9840 else 9841 # We have old collect2 9842 hardcode_direct=unsupported 9843 # It fails to find uninstalled libraries when the uninstalled 9844 # path is not listed in the libpath. Setting hardcode_minus_L 9845 # to unsupported forces relinking 9846 hardcode_minus_L=yes 9847 hardcode_libdir_flag_spec='-L$libdir' 9848 hardcode_libdir_separator= 9849 fi 9850 ;; 9851 esac 9852 shared_flag='-shared' 9853 if test "$aix_use_runtimelinking" = yes; then 9854 shared_flag="$shared_flag "'${wl}-G' 9855 fi 9856 else 9857 # not using gcc 9858 if test "$host_cpu" = ia64; then 9859 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9860 # chokes on -Wl,-G. The following line is correct: 9861 shared_flag='-G' 9862 else 9863 if test "$aix_use_runtimelinking" = yes; then 9864 shared_flag='${wl}-G' 9865 else 9866 shared_flag='${wl}-bM:SRE' 9867 fi 9868 fi 9869 fi 9870 9871 # It seems that -bexpall does not export symbols beginning with 9872 # underscore (_), so it is better to generate a list of symbols to export. 9873 always_export_symbols=yes 9874 if test "$aix_use_runtimelinking" = yes; then 9875 # Warning - without using the other runtime loading flags (-brtl), 9876 # -berok will link without error, but may produce a broken library. 9877 allow_undefined_flag='-berok' 9878 # Determine the default libpath from the value encoded in an empty executable. 9879 cat >conftest.$ac_ext <<_ACEOF 9880/* confdefs.h. */ 9881_ACEOF 9882cat confdefs.h >>conftest.$ac_ext 9883cat >>conftest.$ac_ext <<_ACEOF 9884/* end confdefs.h. */ 9885 9886int 9887main () 9888{ 9889 9890 ; 9891 return 0; 9892} 9893_ACEOF 9894rm -f conftest.$ac_objext conftest$ac_exeext 9895if { (ac_try="$ac_link" 9896case "(($ac_try" in 9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9898 *) ac_try_echo=$ac_try;; 9899esac 9900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9901 (eval "$ac_link") 2>conftest.er1 9902 ac_status=$? 9903 grep -v '^ *+' conftest.er1 >conftest.err 9904 rm -f conftest.er1 9905 cat conftest.err >&5 9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9907 (exit $ac_status); } && { 9908 test -z "$ac_c_werror_flag" || 9909 test ! -s conftest.err 9910 } && test -s conftest$ac_exeext && 9911 $as_test_x conftest$ac_exeext; then 9912 9913aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9914}'` 9915# Check for a 64-bit object if we didn't find anything. 9916if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9917}'`; fi 9918else 9919 echo "$as_me: failed program was:" >&5 9920sed 's/^/| /' conftest.$ac_ext >&5 9921 9922 9923fi 9924 9925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9926 conftest$ac_exeext conftest.$ac_ext 9927if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9928 9929 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9930 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" 9931 else 9932 if test "$host_cpu" = ia64; then 9933 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9934 allow_undefined_flag="-z nodefs" 9935 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" 9936 else 9937 # Determine the default libpath from the value encoded in an empty executable. 9938 cat >conftest.$ac_ext <<_ACEOF 9939/* confdefs.h. */ 9940_ACEOF 9941cat confdefs.h >>conftest.$ac_ext 9942cat >>conftest.$ac_ext <<_ACEOF 9943/* end confdefs.h. */ 9944 9945int 9946main () 9947{ 9948 9949 ; 9950 return 0; 9951} 9952_ACEOF 9953rm -f conftest.$ac_objext conftest$ac_exeext 9954if { (ac_try="$ac_link" 9955case "(($ac_try" in 9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9957 *) ac_try_echo=$ac_try;; 9958esac 9959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9960 (eval "$ac_link") 2>conftest.er1 9961 ac_status=$? 9962 grep -v '^ *+' conftest.er1 >conftest.err 9963 rm -f conftest.er1 9964 cat conftest.err >&5 9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9966 (exit $ac_status); } && { 9967 test -z "$ac_c_werror_flag" || 9968 test ! -s conftest.err 9969 } && test -s conftest$ac_exeext && 9970 $as_test_x conftest$ac_exeext; then 9971 9972aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9973}'` 9974# Check for a 64-bit object if we didn't find anything. 9975if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9976}'`; fi 9977else 9978 echo "$as_me: failed program was:" >&5 9979sed 's/^/| /' conftest.$ac_ext >&5 9980 9981 9982fi 9983 9984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9985 conftest$ac_exeext conftest.$ac_ext 9986if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9987 9988 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9989 # Warning - without using the other run time loading flags, 9990 # -berok will link without error, but may produce a broken library. 9991 no_undefined_flag=' ${wl}-bernotok' 9992 allow_undefined_flag=' ${wl}-berok' 9993 # Exported symbols can be pulled into shared objects from archives 9994 whole_archive_flag_spec='$convenience' 9995 archive_cmds_need_lc=yes 9996 # This is similar to how AIX traditionally builds its shared libraries. 9997 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' 9998 fi 9999 fi 10000 ;; 10001 10002 amigaos*) 10003 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)' 10004 hardcode_libdir_flag_spec='-L$libdir' 10005 hardcode_minus_L=yes 10006 # see comment about different semantics on the GNU ld section 10007 ld_shlibs=no 10008 ;; 10009 10010 bsdi[45]*) 10011 export_dynamic_flag_spec=-rdynamic 10012 ;; 10013 10014 cygwin* | mingw* | pw32*) 10015 # When not using gcc, we currently assume that we are using 10016 # Microsoft Visual C++. 10017 # hardcode_libdir_flag_spec is actually meaningless, as there is 10018 # no search path for DLLs. 10019 hardcode_libdir_flag_spec=' ' 10020 allow_undefined_flag=unsupported 10021 # Tell ltmain to make .lib files, not .a files. 10022 libext=lib 10023 # Tell ltmain to make .dll files, not .so files. 10024 shrext_cmds=".dll" 10025 # FIXME: Setting linknames here is a bad hack. 10026 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 10027 # The linker will automatically build a .lib file if we build a DLL. 10028 old_archive_From_new_cmds='true' 10029 # FIXME: Should let the user specify the lib program. 10030 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 10031 fix_srcfile_path='`cygpath -w "$srcfile"`' 10032 enable_shared_with_static_runtimes=yes 10033 ;; 10034 10035 darwin* | rhapsody*) 10036 case $host_os in 10037 rhapsody* | darwin1.[012]) 10038 allow_undefined_flag='${wl}-undefined ${wl}suppress' 10039 ;; 10040 *) # Darwin 1.3 on 10041 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10042 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10043 else 10044 case ${MACOSX_DEPLOYMENT_TARGET} in 10045 10.[012]) 10046 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10047 ;; 10048 10.*) 10049 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 10050 ;; 10051 esac 10052 fi 10053 ;; 10054 esac 10055 archive_cmds_need_lc=no 10056 hardcode_direct=no 10057 hardcode_automatic=yes 10058 hardcode_shlibpath_var=unsupported 10059 whole_archive_flag_spec='' 10060 link_all_deplibs=yes 10061 if test "$GCC" = yes ; then 10062 output_verbose_link_cmd='echo' 10063 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10064 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10065 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10066 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10067 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}' 10068 else 10069 case $cc_basename in 10070 xlc*) 10071 output_verbose_link_cmd='echo' 10072 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 10073 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10074 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10075 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10076 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}' 10077 ;; 10078 *) 10079 ld_shlibs=no 10080 ;; 10081 esac 10082 fi 10083 ;; 10084 10085 dgux*) 10086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10087 hardcode_libdir_flag_spec='-L$libdir' 10088 hardcode_shlibpath_var=no 10089 ;; 10090 10091 freebsd1*) 10092 ld_shlibs=no 10093 ;; 10094 10095 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10096 # support. Future versions do this automatically, but an explicit c++rt0.o 10097 # does not break anything, and helps significantly (at the cost of a little 10098 # extra space). 10099 freebsd2.2*) 10100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10101 hardcode_libdir_flag_spec='-R$libdir' 10102 hardcode_direct=yes 10103 hardcode_shlibpath_var=no 10104 ;; 10105 10106 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10107 freebsd2*) 10108 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10109 hardcode_direct=yes 10110 hardcode_minus_L=yes 10111 hardcode_shlibpath_var=no 10112 ;; 10113 10114 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10115 freebsd* | dragonfly*) 10116 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10117 hardcode_libdir_flag_spec='-R$libdir' 10118 hardcode_direct=yes 10119 hardcode_shlibpath_var=no 10120 ;; 10121 10122 hpux9*) 10123 if test "$GCC" = yes; then 10124 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' 10125 else 10126 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' 10127 fi 10128 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10129 hardcode_libdir_separator=: 10130 hardcode_direct=yes 10131 10132 # hardcode_minus_L: Not really in the search PATH, 10133 # but as the default location of the library. 10134 hardcode_minus_L=yes 10135 export_dynamic_flag_spec='${wl}-E' 10136 ;; 10137 10138 hpux10*) 10139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10140 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10141 else 10142 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10143 fi 10144 if test "$with_gnu_ld" = no; then 10145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10146 hardcode_libdir_separator=: 10147 10148 hardcode_direct=yes 10149 export_dynamic_flag_spec='${wl}-E' 10150 10151 # hardcode_minus_L: Not really in the search PATH, 10152 # but as the default location of the library. 10153 hardcode_minus_L=yes 10154 fi 10155 ;; 10156 10157 hpux11*) 10158 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10159 case $host_cpu in 10160 hppa*64*) 10161 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10162 ;; 10163 ia64*) 10164 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10165 ;; 10166 *) 10167 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10168 ;; 10169 esac 10170 else 10171 case $host_cpu in 10172 hppa*64*) 10173 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10174 ;; 10175 ia64*) 10176 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10177 ;; 10178 *) 10179 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10180 ;; 10181 esac 10182 fi 10183 if test "$with_gnu_ld" = no; then 10184 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10185 hardcode_libdir_separator=: 10186 10187 case $host_cpu in 10188 hppa*64*|ia64*) 10189 hardcode_libdir_flag_spec_ld='+b $libdir' 10190 hardcode_direct=no 10191 hardcode_shlibpath_var=no 10192 ;; 10193 *) 10194 hardcode_direct=yes 10195 export_dynamic_flag_spec='${wl}-E' 10196 10197 # hardcode_minus_L: Not really in the search PATH, 10198 # but as the default location of the library. 10199 hardcode_minus_L=yes 10200 ;; 10201 esac 10202 fi 10203 ;; 10204 10205 irix5* | irix6* | nonstopux*) 10206 if test "$GCC" = yes; then 10207 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' 10208 else 10209 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' 10210 hardcode_libdir_flag_spec_ld='-rpath $libdir' 10211 fi 10212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10213 hardcode_libdir_separator=: 10214 link_all_deplibs=yes 10215 ;; 10216 10217 netbsd* | netbsdelf*-gnu) 10218 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10220 else 10221 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10222 fi 10223 hardcode_libdir_flag_spec='-R$libdir' 10224 hardcode_direct=yes 10225 hardcode_shlibpath_var=no 10226 ;; 10227 10228 newsos6) 10229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10230 hardcode_direct=yes 10231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10232 hardcode_libdir_separator=: 10233 hardcode_shlibpath_var=no 10234 ;; 10235 10236 openbsd*) 10237 hardcode_direct=yes 10238 hardcode_shlibpath_var=no 10239 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10241 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10243 export_dynamic_flag_spec='${wl}-E' 10244 else 10245 case $host_os in 10246 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10248 hardcode_libdir_flag_spec='-R$libdir' 10249 ;; 10250 *) 10251 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10252 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10253 ;; 10254 esac 10255 fi 10256 ;; 10257 10258 os2*) 10259 hardcode_libdir_flag_spec='-L$libdir' 10260 hardcode_minus_L=yes 10261 allow_undefined_flag=unsupported 10262 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' 10263 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10264 ;; 10265 10266 osf3*) 10267 if test "$GCC" = yes; then 10268 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10269 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' 10270 else 10271 allow_undefined_flag=' -expect_unresolved \*' 10272 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' 10273 fi 10274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10275 hardcode_libdir_separator=: 10276 ;; 10277 10278 osf4* | osf5*) # as osf3* with the addition of -msym flag 10279 if test "$GCC" = yes; then 10280 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10281 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' 10282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10283 else 10284 allow_undefined_flag=' -expect_unresolved \*' 10285 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' 10286 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 10287 $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' 10288 10289 # Both c and cxx compiler support -rpath directly 10290 hardcode_libdir_flag_spec='-rpath $libdir' 10291 fi 10292 hardcode_libdir_separator=: 10293 ;; 10294 10295 solaris*) 10296 no_undefined_flag=' -z text' 10297 if test "$GCC" = yes; then 10298 wlarc='${wl}' 10299 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10300 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10301 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 10302 else 10303 wlarc='' 10304 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10305 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10306 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 10307 fi 10308 hardcode_libdir_flag_spec='-R$libdir' 10309 hardcode_shlibpath_var=no 10310 case $host_os in 10311 solaris2.[0-5] | solaris2.[0-5].*) ;; 10312 *) 10313 # The compiler driver will combine linker options so we 10314 # cannot just pass the convience library names through 10315 # without $wl, iff we do not link with $LD. 10316 # Luckily, gcc supports the same syntax we need for Sun Studio. 10317 # Supported since Solaris 2.6 (maybe 2.5.1?) 10318 case $wlarc in 10319 '') 10320 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 10321 *) 10322 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 10323 esac ;; 10324 esac 10325 link_all_deplibs=yes 10326 ;; 10327 10328 sunos4*) 10329 if test "x$host_vendor" = xsequent; then 10330 # Use $CC to link under sequent, because it throws in some extra .o 10331 # files that make .init and .fini sections work. 10332 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10333 else 10334 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10335 fi 10336 hardcode_libdir_flag_spec='-L$libdir' 10337 hardcode_direct=yes 10338 hardcode_minus_L=yes 10339 hardcode_shlibpath_var=no 10340 ;; 10341 10342 sysv4) 10343 case $host_vendor in 10344 sni) 10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10346 hardcode_direct=yes # is this really true??? 10347 ;; 10348 siemens) 10349 ## LD is ld it makes a PLAMLIB 10350 ## CC just makes a GrossModule. 10351 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10352 reload_cmds='$CC -r -o $output$reload_objs' 10353 hardcode_direct=no 10354 ;; 10355 motorola) 10356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10357 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10358 ;; 10359 esac 10360 runpath_var='LD_RUN_PATH' 10361 hardcode_shlibpath_var=no 10362 ;; 10363 10364 sysv4.3*) 10365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10366 hardcode_shlibpath_var=no 10367 export_dynamic_flag_spec='-Bexport' 10368 ;; 10369 10370 sysv4*MP*) 10371 if test -d /usr/nec; then 10372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10373 hardcode_shlibpath_var=no 10374 runpath_var=LD_RUN_PATH 10375 hardcode_runpath_var=yes 10376 ld_shlibs=yes 10377 fi 10378 ;; 10379 10380 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 10381 no_undefined_flag='${wl}-z,text' 10382 archive_cmds_need_lc=no 10383 hardcode_shlibpath_var=no 10384 runpath_var='LD_RUN_PATH' 10385 10386 if test "$GCC" = yes; then 10387 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10388 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10389 else 10390 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10391 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10392 fi 10393 ;; 10394 10395 sysv5* | sco3.2v5* | sco5v6*) 10396 # Note: We can NOT use -z defs as we might desire, because we do not 10397 # link with -lc, and that would cause any symbols used from libc to 10398 # always be unresolved, which means just about no library would 10399 # ever link correctly. If we're not using GNU ld we use -z text 10400 # though, which does catch some bad symbols but isn't as heavy-handed 10401 # as -z defs. 10402 no_undefined_flag='${wl}-z,text' 10403 allow_undefined_flag='${wl}-z,nodefs' 10404 archive_cmds_need_lc=no 10405 hardcode_shlibpath_var=no 10406 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 10407 hardcode_libdir_separator=':' 10408 link_all_deplibs=yes 10409 export_dynamic_flag_spec='${wl}-Bexport' 10410 runpath_var='LD_RUN_PATH' 10411 10412 if test "$GCC" = yes; then 10413 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10414 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10415 else 10416 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10417 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10418 fi 10419 ;; 10420 10421 uts4*) 10422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10423 hardcode_libdir_flag_spec='-L$libdir' 10424 hardcode_shlibpath_var=no 10425 ;; 10426 10427 *) 10428 ld_shlibs=no 10429 ;; 10430 esac 10431 fi 10432 10433{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10434echo "${ECHO_T}$ld_shlibs" >&6; } 10435test "$ld_shlibs" = no && can_build_shared=no 10436 10437# 10438# Do we need to explicitly link libc? 10439# 10440case "x$archive_cmds_need_lc" in 10441x|xyes) 10442 # Assume -lc should be added 10443 archive_cmds_need_lc=yes 10444 10445 if test "$enable_shared" = yes && test "$GCC" = yes; then 10446 case $archive_cmds in 10447 *'~'*) 10448 # FIXME: we may have to deal with multi-command sequences. 10449 ;; 10450 '$CC '*) 10451 # Test whether the compiler implicitly links with -lc since on some 10452 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10453 # to ld, don't add -lc before -lgcc. 10454 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10455echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 10456 $rm conftest* 10457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10458 10459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10460 (eval $ac_compile) 2>&5 10461 ac_status=$? 10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10463 (exit $ac_status); } 2>conftest.err; then 10464 soname=conftest 10465 lib=conftest 10466 libobjs=conftest.$ac_objext 10467 deplibs= 10468 wl=$lt_prog_compiler_wl 10469 pic_flag=$lt_prog_compiler_pic 10470 compiler_flags=-v 10471 linker_flags=-v 10472 verstring= 10473 output_objdir=. 10474 libname=conftest 10475 lt_save_allow_undefined_flag=$allow_undefined_flag 10476 allow_undefined_flag= 10477 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 10478 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 10479 ac_status=$? 10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10481 (exit $ac_status); } 10482 then 10483 archive_cmds_need_lc=no 10484 else 10485 archive_cmds_need_lc=yes 10486 fi 10487 allow_undefined_flag=$lt_save_allow_undefined_flag 10488 else 10489 cat conftest.err 1>&5 10490 fi 10491 $rm conftest* 10492 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10493echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 10494 ;; 10495 esac 10496 fi 10497 ;; 10498esac 10499 10500{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10501echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 10502library_names_spec= 10503libname_spec='lib$name' 10504soname_spec= 10505shrext_cmds=".so" 10506postinstall_cmds= 10507postuninstall_cmds= 10508finish_cmds= 10509finish_eval= 10510shlibpath_var= 10511shlibpath_overrides_runpath=unknown 10512version_type=none 10513dynamic_linker="$host_os ld.so" 10514sys_lib_dlsearch_path_spec="/lib /usr/lib" 10515if test "$GCC" = yes; then 10516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10517 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 10518 # if the path contains ";" then we assume it to be the separator 10519 # otherwise default to the standard path separator (i.e. ":") - it is 10520 # assumed that no part of a normal pathname contains ";" but that should 10521 # okay in the real world where ";" in dirpaths is itself problematic. 10522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10523 else 10524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10525 fi 10526else 10527 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10528fi 10529need_lib_prefix=unknown 10530hardcode_into_libs=no 10531 10532# when you set need_version to no, make sure it does not cause -set_version 10533# flags to be left without arguments 10534need_version=unknown 10535 10536case $host_os in 10537aix3*) 10538 version_type=linux 10539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10540 shlibpath_var=LIBPATH 10541 10542 # AIX 3 has no versioning support, so we append a major version to the name. 10543 soname_spec='${libname}${release}${shared_ext}$major' 10544 ;; 10545 10546aix4* | aix5*) 10547 version_type=linux 10548 need_lib_prefix=no 10549 need_version=no 10550 hardcode_into_libs=yes 10551 if test "$host_cpu" = ia64; then 10552 # AIX 5 supports IA64 10553 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10554 shlibpath_var=LD_LIBRARY_PATH 10555 else 10556 # With GCC up to 2.95.x, collect2 would create an import file 10557 # for dependence libraries. The import file would start with 10558 # the line `#! .'. This would cause the generated library to 10559 # depend on `.', always an invalid library. This was fixed in 10560 # development snapshots of GCC prior to 3.0. 10561 case $host_os in 10562 aix4 | aix4.[01] | aix4.[01].*) 10563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10564 echo ' yes ' 10565 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10566 : 10567 else 10568 can_build_shared=no 10569 fi 10570 ;; 10571 esac 10572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10573 # soname into executable. Probably we can add versioning support to 10574 # collect2, so additional links can be useful in future. 10575 if test "$aix_use_runtimelinking" = yes; then 10576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10577 # instead of lib<name>.a to let people know that these are not 10578 # typical AIX shared libraries. 10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10580 else 10581 # We preserve .a as extension for shared libraries through AIX4.2 10582 # and later when we are not doing run time linking. 10583 library_names_spec='${libname}${release}.a $libname.a' 10584 soname_spec='${libname}${release}${shared_ext}$major' 10585 fi 10586 shlibpath_var=LIBPATH 10587 fi 10588 ;; 10589 10590amigaos*) 10591 library_names_spec='$libname.ixlibrary $libname.a' 10592 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10593 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' 10594 ;; 10595 10596beos*) 10597 library_names_spec='${libname}${shared_ext}' 10598 dynamic_linker="$host_os ld.so" 10599 shlibpath_var=LIBRARY_PATH 10600 ;; 10601 10602bsdi[45]*) 10603 version_type=linux 10604 need_version=no 10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10606 soname_spec='${libname}${release}${shared_ext}$major' 10607 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10608 shlibpath_var=LD_LIBRARY_PATH 10609 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10610 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10611 # the default ld.so.conf also contains /usr/contrib/lib and 10612 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10613 # libtool to hard-code these into programs 10614 ;; 10615 10616cygwin* | mingw* | pw32*) 10617 version_type=windows 10618 shrext_cmds=".dll" 10619 need_version=no 10620 need_lib_prefix=no 10621 10622 case $GCC,$host_os in 10623 yes,cygwin* | yes,mingw* | yes,pw32*) 10624 library_names_spec='$libname.dll.a' 10625 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10626 postinstall_cmds='base_file=`basename \${file}`~ 10627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10628 dldir=$destdir/`dirname \$dlpath`~ 10629 test -d \$dldir || mkdir -p \$dldir~ 10630 $install_prog $dir/$dlname \$dldir/$dlname~ 10631 chmod a+x \$dldir/$dlname' 10632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10633 dlpath=$dir/\$dldll~ 10634 $rm \$dlpath' 10635 shlibpath_overrides_runpath=yes 10636 10637 case $host_os in 10638 cygwin*) 10639 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10641 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10642 ;; 10643 mingw*) 10644 # MinGW DLLs use traditional 'lib' prefix 10645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10647 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10648 # It is most probably a Windows format PATH printed by 10649 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10650 # path with ; separators, and with drive letters. We can handle the 10651 # drive letters (cygwin fileutils understands them), so leave them, 10652 # especially as we might pass files found there to a mingw objdump, 10653 # which wouldn't understand a cygwinified path. Ahh. 10654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10655 else 10656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10657 fi 10658 ;; 10659 pw32*) 10660 # pw32 DLLs use 'pw' prefix rather than 'lib' 10661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10662 ;; 10663 esac 10664 ;; 10665 10666 *) 10667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10668 ;; 10669 esac 10670 dynamic_linker='Win32 ld.exe' 10671 # FIXME: first we should search . and the directory the executable is in 10672 shlibpath_var=PATH 10673 ;; 10674 10675darwin* | rhapsody*) 10676 dynamic_linker="$host_os dyld" 10677 version_type=darwin 10678 need_lib_prefix=no 10679 need_version=no 10680 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10681 soname_spec='${libname}${release}${major}$shared_ext' 10682 shlibpath_overrides_runpath=yes 10683 shlibpath_var=DYLD_LIBRARY_PATH 10684 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10685 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10686 if test "$GCC" = yes; then 10687 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 10688 else 10689 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 10690 fi 10691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10692 ;; 10693 10694dgux*) 10695 version_type=linux 10696 need_lib_prefix=no 10697 need_version=no 10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10699 soname_spec='${libname}${release}${shared_ext}$major' 10700 shlibpath_var=LD_LIBRARY_PATH 10701 ;; 10702 10703freebsd1*) 10704 dynamic_linker=no 10705 ;; 10706 10707freebsd* | dragonfly*) 10708 # DragonFly does not have aout. When/if they implement a new 10709 # versioning mechanism, adjust this. 10710 if test -x /usr/bin/objformat; then 10711 objformat=`/usr/bin/objformat` 10712 else 10713 case $host_os in 10714 freebsd[123]*) objformat=aout ;; 10715 *) objformat=elf ;; 10716 esac 10717 fi 10718 version_type=freebsd-$objformat 10719 case $version_type in 10720 freebsd-elf*) 10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10722 need_version=no 10723 need_lib_prefix=no 10724 ;; 10725 freebsd-*) 10726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10727 need_version=yes 10728 ;; 10729 esac 10730 shlibpath_var=LD_LIBRARY_PATH 10731 case $host_os in 10732 freebsd2*) 10733 shlibpath_overrides_runpath=yes 10734 ;; 10735 freebsd3.[01]* | freebsdelf3.[01]*) 10736 shlibpath_overrides_runpath=yes 10737 hardcode_into_libs=yes 10738 ;; 10739 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10740 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10741 shlibpath_overrides_runpath=no 10742 hardcode_into_libs=yes 10743 ;; 10744 freebsd*) # from 4.6 on 10745 shlibpath_overrides_runpath=yes 10746 hardcode_into_libs=yes 10747 ;; 10748 esac 10749 ;; 10750 10751gnu*) 10752 version_type=linux 10753 need_lib_prefix=no 10754 need_version=no 10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10756 soname_spec='${libname}${release}${shared_ext}$major' 10757 shlibpath_var=LD_LIBRARY_PATH 10758 hardcode_into_libs=yes 10759 ;; 10760 10761hpux9* | hpux10* | hpux11*) 10762 # Give a soname corresponding to the major version so that dld.sl refuses to 10763 # link against other versions. 10764 version_type=sunos 10765 need_lib_prefix=no 10766 need_version=no 10767 case $host_cpu in 10768 ia64*) 10769 shrext_cmds='.so' 10770 hardcode_into_libs=yes 10771 dynamic_linker="$host_os dld.so" 10772 shlibpath_var=LD_LIBRARY_PATH 10773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10775 soname_spec='${libname}${release}${shared_ext}$major' 10776 if test "X$HPUX_IA64_MODE" = X32; then 10777 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10778 else 10779 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10780 fi 10781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10782 ;; 10783 hppa*64*) 10784 shrext_cmds='.sl' 10785 hardcode_into_libs=yes 10786 dynamic_linker="$host_os dld.sl" 10787 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10790 soname_spec='${libname}${release}${shared_ext}$major' 10791 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10793 ;; 10794 *) 10795 shrext_cmds='.sl' 10796 dynamic_linker="$host_os dld.sl" 10797 shlibpath_var=SHLIB_PATH 10798 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10800 soname_spec='${libname}${release}${shared_ext}$major' 10801 ;; 10802 esac 10803 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10804 postinstall_cmds='chmod 555 $lib' 10805 ;; 10806 10807interix3*) 10808 version_type=linux 10809 need_lib_prefix=no 10810 need_version=no 10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10812 soname_spec='${libname}${release}${shared_ext}$major' 10813 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10814 shlibpath_var=LD_LIBRARY_PATH 10815 shlibpath_overrides_runpath=no 10816 hardcode_into_libs=yes 10817 ;; 10818 10819irix5* | irix6* | nonstopux*) 10820 case $host_os in 10821 nonstopux*) version_type=nonstopux ;; 10822 *) 10823 if test "$lt_cv_prog_gnu_ld" = yes; then 10824 version_type=linux 10825 else 10826 version_type=irix 10827 fi ;; 10828 esac 10829 need_lib_prefix=no 10830 need_version=no 10831 soname_spec='${libname}${release}${shared_ext}$major' 10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10833 case $host_os in 10834 irix5* | nonstopux*) 10835 libsuff= shlibsuff= 10836 ;; 10837 *) 10838 case $LD in # libtool.m4 will add one of these switches to LD 10839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10840 libsuff= shlibsuff= libmagic=32-bit;; 10841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10842 libsuff=32 shlibsuff=N32 libmagic=N32;; 10843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10844 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10845 *) libsuff= shlibsuff= libmagic=never-match;; 10846 esac 10847 ;; 10848 esac 10849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10850 shlibpath_overrides_runpath=no 10851 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10852 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10853 hardcode_into_libs=yes 10854 ;; 10855 10856# No shared lib support for Linux oldld, aout, or coff. 10857linux*oldld* | linux*aout* | linux*coff*) 10858 dynamic_linker=no 10859 ;; 10860 10861# This must be Linux ELF. 10862linux* | k*bsd*-gnu) 10863 version_type=linux 10864 need_lib_prefix=no 10865 need_version=no 10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10867 soname_spec='${libname}${release}${shared_ext}$major' 10868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10869 shlibpath_var=LD_LIBRARY_PATH 10870 shlibpath_overrides_runpath=no 10871 # This implies no fast_install, which is unacceptable. 10872 # Some rework will be needed to allow for fast_install 10873 # before this can be enabled. 10874 hardcode_into_libs=yes 10875 10876 # Append ld.so.conf contents to the search path 10877 if test -f /etc/ld.so.conf; then 10878 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10879 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10880 fi 10881 10882 # We used to test for /lib/ld.so.1 and disable shared libraries on 10883 # powerpc, because MkLinux only supported shared libraries with the 10884 # GNU dynamic linker. Since this was broken with cross compilers, 10885 # most powerpc-linux boxes support dynamic linking these days and 10886 # people can always --disable-shared, the test was removed, and we 10887 # assume the GNU/Linux dynamic linker is in use. 10888 dynamic_linker='GNU/Linux ld.so' 10889 ;; 10890 10891netbsdelf*-gnu) 10892 version_type=linux 10893 need_lib_prefix=no 10894 need_version=no 10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10896 soname_spec='${libname}${release}${shared_ext}$major' 10897 shlibpath_var=LD_LIBRARY_PATH 10898 shlibpath_overrides_runpath=no 10899 hardcode_into_libs=yes 10900 dynamic_linker='NetBSD ld.elf_so' 10901 ;; 10902 10903netbsd*) 10904 version_type=sunos 10905 need_lib_prefix=no 10906 need_version=no 10907 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10910 dynamic_linker='NetBSD (a.out) ld.so' 10911 else 10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10913 soname_spec='${libname}${release}${shared_ext}$major' 10914 dynamic_linker='NetBSD ld.elf_so' 10915 fi 10916 shlibpath_var=LD_LIBRARY_PATH 10917 shlibpath_overrides_runpath=yes 10918 hardcode_into_libs=yes 10919 ;; 10920 10921newsos6) 10922 version_type=linux 10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10924 shlibpath_var=LD_LIBRARY_PATH 10925 shlibpath_overrides_runpath=yes 10926 ;; 10927 10928nto-qnx*) 10929 version_type=linux 10930 need_lib_prefix=no 10931 need_version=no 10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10933 soname_spec='${libname}${release}${shared_ext}$major' 10934 shlibpath_var=LD_LIBRARY_PATH 10935 shlibpath_overrides_runpath=yes 10936 ;; 10937 10938openbsd*) 10939 version_type=sunos 10940 sys_lib_dlsearch_path_spec="/usr/lib" 10941 need_lib_prefix=no 10942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10943 case $host_os in 10944 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10945 *) need_version=no ;; 10946 esac 10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10949 shlibpath_var=LD_LIBRARY_PATH 10950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10951 case $host_os in 10952 openbsd2.[89] | openbsd2.[89].*) 10953 shlibpath_overrides_runpath=no 10954 ;; 10955 *) 10956 shlibpath_overrides_runpath=yes 10957 ;; 10958 esac 10959 else 10960 shlibpath_overrides_runpath=yes 10961 fi 10962 ;; 10963 10964os2*) 10965 libname_spec='$name' 10966 shrext_cmds=".dll" 10967 need_lib_prefix=no 10968 library_names_spec='$libname${shared_ext} $libname.a' 10969 dynamic_linker='OS/2 ld.exe' 10970 shlibpath_var=LIBPATH 10971 ;; 10972 10973osf3* | osf4* | osf5*) 10974 version_type=osf 10975 need_lib_prefix=no 10976 need_version=no 10977 soname_spec='${libname}${release}${shared_ext}$major' 10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10979 shlibpath_var=LD_LIBRARY_PATH 10980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10982 ;; 10983 10984solaris*) 10985 version_type=linux 10986 need_lib_prefix=no 10987 need_version=no 10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10989 soname_spec='${libname}${release}${shared_ext}$major' 10990 shlibpath_var=LD_LIBRARY_PATH 10991 shlibpath_overrides_runpath=yes 10992 hardcode_into_libs=yes 10993 # ldd complains unless libraries are executable 10994 postinstall_cmds='chmod +x $lib' 10995 ;; 10996 10997sunos4*) 10998 version_type=sunos 10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11001 shlibpath_var=LD_LIBRARY_PATH 11002 shlibpath_overrides_runpath=yes 11003 if test "$with_gnu_ld" = yes; then 11004 need_lib_prefix=no 11005 fi 11006 need_version=yes 11007 ;; 11008 11009sysv4 | sysv4.3*) 11010 version_type=linux 11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11012 soname_spec='${libname}${release}${shared_ext}$major' 11013 shlibpath_var=LD_LIBRARY_PATH 11014 case $host_vendor in 11015 sni) 11016 shlibpath_overrides_runpath=no 11017 need_lib_prefix=no 11018 export_dynamic_flag_spec='${wl}-Blargedynsym' 11019 runpath_var=LD_RUN_PATH 11020 ;; 11021 siemens) 11022 need_lib_prefix=no 11023 ;; 11024 motorola) 11025 need_lib_prefix=no 11026 need_version=no 11027 shlibpath_overrides_runpath=no 11028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11029 ;; 11030 esac 11031 ;; 11032 11033sysv4*MP*) 11034 if test -d /usr/nec ;then 11035 version_type=linux 11036 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11037 soname_spec='$libname${shared_ext}.$major' 11038 shlibpath_var=LD_LIBRARY_PATH 11039 fi 11040 ;; 11041 11042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11043 version_type=freebsd-elf 11044 need_lib_prefix=no 11045 need_version=no 11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11047 soname_spec='${libname}${release}${shared_ext}$major' 11048 shlibpath_var=LD_LIBRARY_PATH 11049 hardcode_into_libs=yes 11050 if test "$with_gnu_ld" = yes; then 11051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11052 shlibpath_overrides_runpath=no 11053 else 11054 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11055 shlibpath_overrides_runpath=yes 11056 case $host_os in 11057 sco3.2v5*) 11058 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11059 ;; 11060 esac 11061 fi 11062 sys_lib_dlsearch_path_spec='/usr/lib' 11063 ;; 11064 11065uts4*) 11066 version_type=linux 11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11068 soname_spec='${libname}${release}${shared_ext}$major' 11069 shlibpath_var=LD_LIBRARY_PATH 11070 ;; 11071 11072*) 11073 dynamic_linker=no 11074 ;; 11075esac 11076{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11077echo "${ECHO_T}$dynamic_linker" >&6; } 11078test "$dynamic_linker" = no && can_build_shared=no 11079 11080variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11081if test "$GCC" = yes; then 11082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11083fi 11084 11085{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11086echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 11087hardcode_action= 11088if test -n "$hardcode_libdir_flag_spec" || \ 11089 test -n "$runpath_var" || \ 11090 test "X$hardcode_automatic" = "Xyes" ; then 11091 11092 # We can hardcode non-existant directories. 11093 if test "$hardcode_direct" != no && 11094 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11095 # have to relink, otherwise we might link with an installed library 11096 # when we should be linking with a yet-to-be-installed one 11097 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 11098 test "$hardcode_minus_L" != no; then 11099 # Linking always hardcodes the temporary library directory. 11100 hardcode_action=relink 11101 else 11102 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11103 hardcode_action=immediate 11104 fi 11105else 11106 # We cannot hardcode anything, or else we can only hardcode existing 11107 # directories. 11108 hardcode_action=unsupported 11109fi 11110{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 11111echo "${ECHO_T}$hardcode_action" >&6; } 11112 11113if test "$hardcode_action" = relink; then 11114 # Fast installation is not supported 11115 enable_fast_install=no 11116elif test "$shlibpath_overrides_runpath" = yes || 11117 test "$enable_shared" = no; then 11118 # Fast installation is not necessary 11119 enable_fast_install=needless 11120fi 11121 11122striplib= 11123old_striplib= 11124{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11125echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 11126if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11127 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11128 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11129 { echo "$as_me:$LINENO: result: yes" >&5 11130echo "${ECHO_T}yes" >&6; } 11131else 11132# FIXME - insert some real tests, host_os isn't really good enough 11133 case $host_os in 11134 darwin*) 11135 if test -n "$STRIP" ; then 11136 striplib="$STRIP -x" 11137 { echo "$as_me:$LINENO: result: yes" >&5 11138echo "${ECHO_T}yes" >&6; } 11139 else 11140 { echo "$as_me:$LINENO: result: no" >&5 11141echo "${ECHO_T}no" >&6; } 11142fi 11143 ;; 11144 *) 11145 { echo "$as_me:$LINENO: result: no" >&5 11146echo "${ECHO_T}no" >&6; } 11147 ;; 11148 esac 11149fi 11150 11151if test "x$enable_dlopen" != xyes; then 11152 enable_dlopen=unknown 11153 enable_dlopen_self=unknown 11154 enable_dlopen_self_static=unknown 11155else 11156 lt_cv_dlopen=no 11157 lt_cv_dlopen_libs= 11158 11159 case $host_os in 11160 beos*) 11161 lt_cv_dlopen="load_add_on" 11162 lt_cv_dlopen_libs= 11163 lt_cv_dlopen_self=yes 11164 ;; 11165 11166 mingw* | pw32*) 11167 lt_cv_dlopen="LoadLibrary" 11168 lt_cv_dlopen_libs= 11169 ;; 11170 11171 cygwin*) 11172 lt_cv_dlopen="dlopen" 11173 lt_cv_dlopen_libs= 11174 ;; 11175 11176 darwin*) 11177 # if libdl is installed we need to link against it 11178 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11179echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 11180if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11181 echo $ECHO_N "(cached) $ECHO_C" >&6 11182else 11183 ac_check_lib_save_LIBS=$LIBS 11184LIBS="-ldl $LIBS" 11185cat >conftest.$ac_ext <<_ACEOF 11186/* confdefs.h. */ 11187_ACEOF 11188cat confdefs.h >>conftest.$ac_ext 11189cat >>conftest.$ac_ext <<_ACEOF 11190/* end confdefs.h. */ 11191 11192/* Override any GCC internal prototype to avoid an error. 11193 Use char because int might match the return type of a GCC 11194 builtin and then its argument prototype would still apply. */ 11195#ifdef __cplusplus 11196extern "C" 11197#endif 11198char dlopen (); 11199int 11200main () 11201{ 11202return dlopen (); 11203 ; 11204 return 0; 11205} 11206_ACEOF 11207rm -f conftest.$ac_objext conftest$ac_exeext 11208if { (ac_try="$ac_link" 11209case "(($ac_try" in 11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11211 *) ac_try_echo=$ac_try;; 11212esac 11213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11214 (eval "$ac_link") 2>conftest.er1 11215 ac_status=$? 11216 grep -v '^ *+' conftest.er1 >conftest.err 11217 rm -f conftest.er1 11218 cat conftest.err >&5 11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11220 (exit $ac_status); } && { 11221 test -z "$ac_c_werror_flag" || 11222 test ! -s conftest.err 11223 } && test -s conftest$ac_exeext && 11224 $as_test_x conftest$ac_exeext; then 11225 ac_cv_lib_dl_dlopen=yes 11226else 11227 echo "$as_me: failed program was:" >&5 11228sed 's/^/| /' conftest.$ac_ext >&5 11229 11230 ac_cv_lib_dl_dlopen=no 11231fi 11232 11233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11234 conftest$ac_exeext conftest.$ac_ext 11235LIBS=$ac_check_lib_save_LIBS 11236fi 11237{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11238echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11239if test $ac_cv_lib_dl_dlopen = yes; then 11240 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11241else 11242 11243 lt_cv_dlopen="dyld" 11244 lt_cv_dlopen_libs= 11245 lt_cv_dlopen_self=yes 11246 11247fi 11248 11249 ;; 11250 11251 *) 11252 { echo "$as_me:$LINENO: checking for shl_load" >&5 11253echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 11254if test "${ac_cv_func_shl_load+set}" = set; then 11255 echo $ECHO_N "(cached) $ECHO_C" >&6 11256else 11257 cat >conftest.$ac_ext <<_ACEOF 11258/* confdefs.h. */ 11259_ACEOF 11260cat confdefs.h >>conftest.$ac_ext 11261cat >>conftest.$ac_ext <<_ACEOF 11262/* end confdefs.h. */ 11263/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11264 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11265#define shl_load innocuous_shl_load 11266 11267/* System header to define __stub macros and hopefully few prototypes, 11268 which can conflict with char shl_load (); below. 11269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11270 <limits.h> exists even on freestanding compilers. */ 11271 11272#ifdef __STDC__ 11273# include <limits.h> 11274#else 11275# include <assert.h> 11276#endif 11277 11278#undef shl_load 11279 11280/* Override any GCC internal prototype to avoid an error. 11281 Use char because int might match the return type of a GCC 11282 builtin and then its argument prototype would still apply. */ 11283#ifdef __cplusplus 11284extern "C" 11285#endif 11286char shl_load (); 11287/* The GNU C library defines this for functions which it implements 11288 to always fail with ENOSYS. Some functions are actually named 11289 something starting with __ and the normal name is an alias. */ 11290#if defined __stub_shl_load || defined __stub___shl_load 11291choke me 11292#endif 11293 11294int 11295main () 11296{ 11297return shl_load (); 11298 ; 11299 return 0; 11300} 11301_ACEOF 11302rm -f conftest.$ac_objext conftest$ac_exeext 11303if { (ac_try="$ac_link" 11304case "(($ac_try" in 11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11306 *) ac_try_echo=$ac_try;; 11307esac 11308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11309 (eval "$ac_link") 2>conftest.er1 11310 ac_status=$? 11311 grep -v '^ *+' conftest.er1 >conftest.err 11312 rm -f conftest.er1 11313 cat conftest.err >&5 11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11315 (exit $ac_status); } && { 11316 test -z "$ac_c_werror_flag" || 11317 test ! -s conftest.err 11318 } && test -s conftest$ac_exeext && 11319 $as_test_x conftest$ac_exeext; then 11320 ac_cv_func_shl_load=yes 11321else 11322 echo "$as_me: failed program was:" >&5 11323sed 's/^/| /' conftest.$ac_ext >&5 11324 11325 ac_cv_func_shl_load=no 11326fi 11327 11328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11329 conftest$ac_exeext conftest.$ac_ext 11330fi 11331{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11332echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 11333if test $ac_cv_func_shl_load = yes; then 11334 lt_cv_dlopen="shl_load" 11335else 11336 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11337echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 11338if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11339 echo $ECHO_N "(cached) $ECHO_C" >&6 11340else 11341 ac_check_lib_save_LIBS=$LIBS 11342LIBS="-ldld $LIBS" 11343cat >conftest.$ac_ext <<_ACEOF 11344/* confdefs.h. */ 11345_ACEOF 11346cat confdefs.h >>conftest.$ac_ext 11347cat >>conftest.$ac_ext <<_ACEOF 11348/* end confdefs.h. */ 11349 11350/* Override any GCC internal prototype to avoid an error. 11351 Use char because int might match the return type of a GCC 11352 builtin and then its argument prototype would still apply. */ 11353#ifdef __cplusplus 11354extern "C" 11355#endif 11356char shl_load (); 11357int 11358main () 11359{ 11360return shl_load (); 11361 ; 11362 return 0; 11363} 11364_ACEOF 11365rm -f conftest.$ac_objext conftest$ac_exeext 11366if { (ac_try="$ac_link" 11367case "(($ac_try" in 11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11369 *) ac_try_echo=$ac_try;; 11370esac 11371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11372 (eval "$ac_link") 2>conftest.er1 11373 ac_status=$? 11374 grep -v '^ *+' conftest.er1 >conftest.err 11375 rm -f conftest.er1 11376 cat conftest.err >&5 11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11378 (exit $ac_status); } && { 11379 test -z "$ac_c_werror_flag" || 11380 test ! -s conftest.err 11381 } && test -s conftest$ac_exeext && 11382 $as_test_x conftest$ac_exeext; then 11383 ac_cv_lib_dld_shl_load=yes 11384else 11385 echo "$as_me: failed program was:" >&5 11386sed 's/^/| /' conftest.$ac_ext >&5 11387 11388 ac_cv_lib_dld_shl_load=no 11389fi 11390 11391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11392 conftest$ac_exeext conftest.$ac_ext 11393LIBS=$ac_check_lib_save_LIBS 11394fi 11395{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11396echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 11397if test $ac_cv_lib_dld_shl_load = yes; then 11398 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11399else 11400 { echo "$as_me:$LINENO: checking for dlopen" >&5 11401echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 11402if test "${ac_cv_func_dlopen+set}" = set; then 11403 echo $ECHO_N "(cached) $ECHO_C" >&6 11404else 11405 cat >conftest.$ac_ext <<_ACEOF 11406/* confdefs.h. */ 11407_ACEOF 11408cat confdefs.h >>conftest.$ac_ext 11409cat >>conftest.$ac_ext <<_ACEOF 11410/* end confdefs.h. */ 11411/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11412 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11413#define dlopen innocuous_dlopen 11414 11415/* System header to define __stub macros and hopefully few prototypes, 11416 which can conflict with char dlopen (); below. 11417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11418 <limits.h> exists even on freestanding compilers. */ 11419 11420#ifdef __STDC__ 11421# include <limits.h> 11422#else 11423# include <assert.h> 11424#endif 11425 11426#undef dlopen 11427 11428/* Override any GCC internal prototype to avoid an error. 11429 Use char because int might match the return type of a GCC 11430 builtin and then its argument prototype would still apply. */ 11431#ifdef __cplusplus 11432extern "C" 11433#endif 11434char dlopen (); 11435/* The GNU C library defines this for functions which it implements 11436 to always fail with ENOSYS. Some functions are actually named 11437 something starting with __ and the normal name is an alias. */ 11438#if defined __stub_dlopen || defined __stub___dlopen 11439choke me 11440#endif 11441 11442int 11443main () 11444{ 11445return dlopen (); 11446 ; 11447 return 0; 11448} 11449_ACEOF 11450rm -f conftest.$ac_objext conftest$ac_exeext 11451if { (ac_try="$ac_link" 11452case "(($ac_try" in 11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11454 *) ac_try_echo=$ac_try;; 11455esac 11456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11457 (eval "$ac_link") 2>conftest.er1 11458 ac_status=$? 11459 grep -v '^ *+' conftest.er1 >conftest.err 11460 rm -f conftest.er1 11461 cat conftest.err >&5 11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11463 (exit $ac_status); } && { 11464 test -z "$ac_c_werror_flag" || 11465 test ! -s conftest.err 11466 } && test -s conftest$ac_exeext && 11467 $as_test_x conftest$ac_exeext; then 11468 ac_cv_func_dlopen=yes 11469else 11470 echo "$as_me: failed program was:" >&5 11471sed 's/^/| /' conftest.$ac_ext >&5 11472 11473 ac_cv_func_dlopen=no 11474fi 11475 11476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11477 conftest$ac_exeext conftest.$ac_ext 11478fi 11479{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11480echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 11481if test $ac_cv_func_dlopen = yes; then 11482 lt_cv_dlopen="dlopen" 11483else 11484 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11485echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 11486if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11487 echo $ECHO_N "(cached) $ECHO_C" >&6 11488else 11489 ac_check_lib_save_LIBS=$LIBS 11490LIBS="-ldl $LIBS" 11491cat >conftest.$ac_ext <<_ACEOF 11492/* confdefs.h. */ 11493_ACEOF 11494cat confdefs.h >>conftest.$ac_ext 11495cat >>conftest.$ac_ext <<_ACEOF 11496/* end confdefs.h. */ 11497 11498/* Override any GCC internal prototype to avoid an error. 11499 Use char because int might match the return type of a GCC 11500 builtin and then its argument prototype would still apply. */ 11501#ifdef __cplusplus 11502extern "C" 11503#endif 11504char dlopen (); 11505int 11506main () 11507{ 11508return dlopen (); 11509 ; 11510 return 0; 11511} 11512_ACEOF 11513rm -f conftest.$ac_objext conftest$ac_exeext 11514if { (ac_try="$ac_link" 11515case "(($ac_try" in 11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11517 *) ac_try_echo=$ac_try;; 11518esac 11519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11520 (eval "$ac_link") 2>conftest.er1 11521 ac_status=$? 11522 grep -v '^ *+' conftest.er1 >conftest.err 11523 rm -f conftest.er1 11524 cat conftest.err >&5 11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11526 (exit $ac_status); } && { 11527 test -z "$ac_c_werror_flag" || 11528 test ! -s conftest.err 11529 } && test -s conftest$ac_exeext && 11530 $as_test_x conftest$ac_exeext; then 11531 ac_cv_lib_dl_dlopen=yes 11532else 11533 echo "$as_me: failed program was:" >&5 11534sed 's/^/| /' conftest.$ac_ext >&5 11535 11536 ac_cv_lib_dl_dlopen=no 11537fi 11538 11539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11540 conftest$ac_exeext conftest.$ac_ext 11541LIBS=$ac_check_lib_save_LIBS 11542fi 11543{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11544echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11545if test $ac_cv_lib_dl_dlopen = yes; then 11546 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11547else 11548 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11549echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 11550if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11551 echo $ECHO_N "(cached) $ECHO_C" >&6 11552else 11553 ac_check_lib_save_LIBS=$LIBS 11554LIBS="-lsvld $LIBS" 11555cat >conftest.$ac_ext <<_ACEOF 11556/* confdefs.h. */ 11557_ACEOF 11558cat confdefs.h >>conftest.$ac_ext 11559cat >>conftest.$ac_ext <<_ACEOF 11560/* end confdefs.h. */ 11561 11562/* Override any GCC internal prototype to avoid an error. 11563 Use char because int might match the return type of a GCC 11564 builtin and then its argument prototype would still apply. */ 11565#ifdef __cplusplus 11566extern "C" 11567#endif 11568char dlopen (); 11569int 11570main () 11571{ 11572return dlopen (); 11573 ; 11574 return 0; 11575} 11576_ACEOF 11577rm -f conftest.$ac_objext conftest$ac_exeext 11578if { (ac_try="$ac_link" 11579case "(($ac_try" in 11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11581 *) ac_try_echo=$ac_try;; 11582esac 11583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11584 (eval "$ac_link") 2>conftest.er1 11585 ac_status=$? 11586 grep -v '^ *+' conftest.er1 >conftest.err 11587 rm -f conftest.er1 11588 cat conftest.err >&5 11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11590 (exit $ac_status); } && { 11591 test -z "$ac_c_werror_flag" || 11592 test ! -s conftest.err 11593 } && test -s conftest$ac_exeext && 11594 $as_test_x conftest$ac_exeext; then 11595 ac_cv_lib_svld_dlopen=yes 11596else 11597 echo "$as_me: failed program was:" >&5 11598sed 's/^/| /' conftest.$ac_ext >&5 11599 11600 ac_cv_lib_svld_dlopen=no 11601fi 11602 11603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11604 conftest$ac_exeext conftest.$ac_ext 11605LIBS=$ac_check_lib_save_LIBS 11606fi 11607{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11608echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 11609if test $ac_cv_lib_svld_dlopen = yes; then 11610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11611else 11612 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11613echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 11614if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11615 echo $ECHO_N "(cached) $ECHO_C" >&6 11616else 11617 ac_check_lib_save_LIBS=$LIBS 11618LIBS="-ldld $LIBS" 11619cat >conftest.$ac_ext <<_ACEOF 11620/* confdefs.h. */ 11621_ACEOF 11622cat confdefs.h >>conftest.$ac_ext 11623cat >>conftest.$ac_ext <<_ACEOF 11624/* end confdefs.h. */ 11625 11626/* Override any GCC internal prototype to avoid an error. 11627 Use char because int might match the return type of a GCC 11628 builtin and then its argument prototype would still apply. */ 11629#ifdef __cplusplus 11630extern "C" 11631#endif 11632char dld_link (); 11633int 11634main () 11635{ 11636return dld_link (); 11637 ; 11638 return 0; 11639} 11640_ACEOF 11641rm -f conftest.$ac_objext conftest$ac_exeext 11642if { (ac_try="$ac_link" 11643case "(($ac_try" in 11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11645 *) ac_try_echo=$ac_try;; 11646esac 11647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11648 (eval "$ac_link") 2>conftest.er1 11649 ac_status=$? 11650 grep -v '^ *+' conftest.er1 >conftest.err 11651 rm -f conftest.er1 11652 cat conftest.err >&5 11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11654 (exit $ac_status); } && { 11655 test -z "$ac_c_werror_flag" || 11656 test ! -s conftest.err 11657 } && test -s conftest$ac_exeext && 11658 $as_test_x conftest$ac_exeext; then 11659 ac_cv_lib_dld_dld_link=yes 11660else 11661 echo "$as_me: failed program was:" >&5 11662sed 's/^/| /' conftest.$ac_ext >&5 11663 11664 ac_cv_lib_dld_dld_link=no 11665fi 11666 11667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11668 conftest$ac_exeext conftest.$ac_ext 11669LIBS=$ac_check_lib_save_LIBS 11670fi 11671{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11672echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 11673if test $ac_cv_lib_dld_dld_link = yes; then 11674 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11675fi 11676 11677 11678fi 11679 11680 11681fi 11682 11683 11684fi 11685 11686 11687fi 11688 11689 11690fi 11691 11692 ;; 11693 esac 11694 11695 if test "x$lt_cv_dlopen" != xno; then 11696 enable_dlopen=yes 11697 else 11698 enable_dlopen=no 11699 fi 11700 11701 case $lt_cv_dlopen in 11702 dlopen) 11703 save_CPPFLAGS="$CPPFLAGS" 11704 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11705 11706 save_LDFLAGS="$LDFLAGS" 11707 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11708 11709 save_LIBS="$LIBS" 11710 LIBS="$lt_cv_dlopen_libs $LIBS" 11711 11712 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11713echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 11714if test "${lt_cv_dlopen_self+set}" = set; then 11715 echo $ECHO_N "(cached) $ECHO_C" >&6 11716else 11717 if test "$cross_compiling" = yes; then : 11718 lt_cv_dlopen_self=cross 11719else 11720 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11721 lt_status=$lt_dlunknown 11722 cat > conftest.$ac_ext <<EOF 11723#line 11723 "configure" 11724#include "confdefs.h" 11725 11726#if HAVE_DLFCN_H 11727#include <dlfcn.h> 11728#endif 11729 11730#include <stdio.h> 11731 11732#ifdef RTLD_GLOBAL 11733# define LT_DLGLOBAL RTLD_GLOBAL 11734#else 11735# ifdef DL_GLOBAL 11736# define LT_DLGLOBAL DL_GLOBAL 11737# else 11738# define LT_DLGLOBAL 0 11739# endif 11740#endif 11741 11742/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11743 find out it does not work in some platform. */ 11744#ifndef LT_DLLAZY_OR_NOW 11745# ifdef RTLD_LAZY 11746# define LT_DLLAZY_OR_NOW RTLD_LAZY 11747# else 11748# ifdef DL_LAZY 11749# define LT_DLLAZY_OR_NOW DL_LAZY 11750# else 11751# ifdef RTLD_NOW 11752# define LT_DLLAZY_OR_NOW RTLD_NOW 11753# else 11754# ifdef DL_NOW 11755# define LT_DLLAZY_OR_NOW DL_NOW 11756# else 11757# define LT_DLLAZY_OR_NOW 0 11758# endif 11759# endif 11760# endif 11761# endif 11762#endif 11763 11764#ifdef __cplusplus 11765extern "C" void exit (int); 11766#endif 11767 11768void fnord() { int i=42;} 11769int main () 11770{ 11771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11772 int status = $lt_dlunknown; 11773 11774 if (self) 11775 { 11776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11777 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11778 /* dlclose (self); */ 11779 } 11780 else 11781 puts (dlerror ()); 11782 11783 exit (status); 11784} 11785EOF 11786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11787 (eval $ac_link) 2>&5 11788 ac_status=$? 11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11790 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11791 (./conftest; exit; ) >&5 2>/dev/null 11792 lt_status=$? 11793 case x$lt_status in 11794 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11795 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11796 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11797 esac 11798 else : 11799 # compilation failed 11800 lt_cv_dlopen_self=no 11801 fi 11802fi 11803rm -fr conftest* 11804 11805 11806fi 11807{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11808echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 11809 11810 if test "x$lt_cv_dlopen_self" = xyes; then 11811 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11812 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11813echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 11814if test "${lt_cv_dlopen_self_static+set}" = set; then 11815 echo $ECHO_N "(cached) $ECHO_C" >&6 11816else 11817 if test "$cross_compiling" = yes; then : 11818 lt_cv_dlopen_self_static=cross 11819else 11820 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11821 lt_status=$lt_dlunknown 11822 cat > conftest.$ac_ext <<EOF 11823#line 11823 "configure" 11824#include "confdefs.h" 11825 11826#if HAVE_DLFCN_H 11827#include <dlfcn.h> 11828#endif 11829 11830#include <stdio.h> 11831 11832#ifdef RTLD_GLOBAL 11833# define LT_DLGLOBAL RTLD_GLOBAL 11834#else 11835# ifdef DL_GLOBAL 11836# define LT_DLGLOBAL DL_GLOBAL 11837# else 11838# define LT_DLGLOBAL 0 11839# endif 11840#endif 11841 11842/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11843 find out it does not work in some platform. */ 11844#ifndef LT_DLLAZY_OR_NOW 11845# ifdef RTLD_LAZY 11846# define LT_DLLAZY_OR_NOW RTLD_LAZY 11847# else 11848# ifdef DL_LAZY 11849# define LT_DLLAZY_OR_NOW DL_LAZY 11850# else 11851# ifdef RTLD_NOW 11852# define LT_DLLAZY_OR_NOW RTLD_NOW 11853# else 11854# ifdef DL_NOW 11855# define LT_DLLAZY_OR_NOW DL_NOW 11856# else 11857# define LT_DLLAZY_OR_NOW 0 11858# endif 11859# endif 11860# endif 11861# endif 11862#endif 11863 11864#ifdef __cplusplus 11865extern "C" void exit (int); 11866#endif 11867 11868void fnord() { int i=42;} 11869int main () 11870{ 11871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11872 int status = $lt_dlunknown; 11873 11874 if (self) 11875 { 11876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11877 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11878 /* dlclose (self); */ 11879 } 11880 else 11881 puts (dlerror ()); 11882 11883 exit (status); 11884} 11885EOF 11886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11887 (eval $ac_link) 2>&5 11888 ac_status=$? 11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11890 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11891 (./conftest; exit; ) >&5 2>/dev/null 11892 lt_status=$? 11893 case x$lt_status in 11894 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11895 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11896 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11897 esac 11898 else : 11899 # compilation failed 11900 lt_cv_dlopen_self_static=no 11901 fi 11902fi 11903rm -fr conftest* 11904 11905 11906fi 11907{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11908echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 11909 fi 11910 11911 CPPFLAGS="$save_CPPFLAGS" 11912 LDFLAGS="$save_LDFLAGS" 11913 LIBS="$save_LIBS" 11914 ;; 11915 esac 11916 11917 case $lt_cv_dlopen_self in 11918 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11919 *) enable_dlopen_self=unknown ;; 11920 esac 11921 11922 case $lt_cv_dlopen_self_static in 11923 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11924 *) enable_dlopen_self_static=unknown ;; 11925 esac 11926fi 11927 11928 11929# Report which library types will actually be built 11930{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11931echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 11932{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 11933echo "${ECHO_T}$can_build_shared" >&6; } 11934 11935{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11936echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 11937test "$can_build_shared" = "no" && enable_shared=no 11938 11939# On AIX, shared libraries and static libraries use the same namespace, and 11940# are all built from PIC. 11941case $host_os in 11942aix3*) 11943 test "$enable_shared" = yes && enable_static=no 11944 if test -n "$RANLIB"; then 11945 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11946 postinstall_cmds='$RANLIB $lib' 11947 fi 11948 ;; 11949 11950aix4* | aix5*) 11951 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11952 test "$enable_shared" = yes && enable_static=no 11953 fi 11954 ;; 11955esac 11956{ echo "$as_me:$LINENO: result: $enable_shared" >&5 11957echo "${ECHO_T}$enable_shared" >&6; } 11958 11959{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11960echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 11961# Make sure either enable_shared or enable_static is yes. 11962test "$enable_shared" = yes || enable_static=yes 11963{ echo "$as_me:$LINENO: result: $enable_static" >&5 11964echo "${ECHO_T}$enable_static" >&6; } 11965 11966# The else clause should only fire when bootstrapping the 11967# libtool distribution, otherwise you forgot to ship ltmain.sh 11968# with your package, and you will get complaints that there are 11969# no rules to generate ltmain.sh. 11970if test -f "$ltmain"; then 11971 # See if we are running on zsh, and set the options which allow our commands through 11972 # without removal of \ escapes. 11973 if test -n "${ZSH_VERSION+set}" ; then 11974 setopt NO_GLOB_SUBST 11975 fi 11976 # Now quote all the things that may contain metacharacters while being 11977 # careful not to overquote the AC_SUBSTed values. We take copies of the 11978 # variables and quote the copies for generation of the libtool script. 11979 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11980 SED SHELL STRIP \ 11981 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11982 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11983 deplibs_check_method reload_flag reload_cmds need_locks \ 11984 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11985 lt_cv_sys_global_symbol_to_c_name_address \ 11986 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11987 old_postinstall_cmds old_postuninstall_cmds \ 11988 compiler \ 11989 CC \ 11990 LD \ 11991 lt_prog_compiler_wl \ 11992 lt_prog_compiler_pic \ 11993 lt_prog_compiler_static \ 11994 lt_prog_compiler_no_builtin_flag \ 11995 export_dynamic_flag_spec \ 11996 thread_safe_flag_spec \ 11997 whole_archive_flag_spec \ 11998 enable_shared_with_static_runtimes \ 11999 old_archive_cmds \ 12000 old_archive_from_new_cmds \ 12001 predep_objects \ 12002 postdep_objects \ 12003 predeps \ 12004 postdeps \ 12005 compiler_lib_search_path \ 12006 archive_cmds \ 12007 archive_expsym_cmds \ 12008 postinstall_cmds \ 12009 postuninstall_cmds \ 12010 old_archive_from_expsyms_cmds \ 12011 allow_undefined_flag \ 12012 no_undefined_flag \ 12013 export_symbols_cmds \ 12014 hardcode_libdir_flag_spec \ 12015 hardcode_libdir_flag_spec_ld \ 12016 hardcode_libdir_separator \ 12017 hardcode_automatic \ 12018 module_cmds \ 12019 module_expsym_cmds \ 12020 lt_cv_prog_compiler_c_o \ 12021 exclude_expsyms \ 12022 include_expsyms; do 12023 12024 case $var in 12025 old_archive_cmds | \ 12026 old_archive_from_new_cmds | \ 12027 archive_cmds | \ 12028 archive_expsym_cmds | \ 12029 module_cmds | \ 12030 module_expsym_cmds | \ 12031 old_archive_from_expsyms_cmds | \ 12032 export_symbols_cmds | \ 12033 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12034 postinstall_cmds | postuninstall_cmds | \ 12035 old_postinstall_cmds | old_postuninstall_cmds | \ 12036 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12037 # Double-quote double-evaled strings. 12038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12039 ;; 12040 *) 12041 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12042 ;; 12043 esac 12044 done 12045 12046 case $lt_echo in 12047 *'\$0 --fallback-echo"') 12048 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12049 ;; 12050 esac 12051 12052cfgfile="${ofile}T" 12053 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 12054 $rm -f "$cfgfile" 12055 { echo "$as_me:$LINENO: creating $ofile" >&5 12056echo "$as_me: creating $ofile" >&6;} 12057 12058 cat <<__EOF__ >> "$cfgfile" 12059#! $SHELL 12060 12061# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 12062# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 12063# NOTE: Changes made to this file will be lost: look at ltmain.sh. 12064# 12065# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 12066# Free Software Foundation, Inc. 12067# 12068# This file is part of GNU Libtool: 12069# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 12070# 12071# This program is free software; you can redistribute it and/or modify 12072# it under the terms of the GNU General Public License as published by 12073# the Free Software Foundation; either version 2 of the License, or 12074# (at your option) any later version. 12075# 12076# This program is distributed in the hope that it will be useful, but 12077# WITHOUT ANY WARRANTY; without even the implied warranty of 12078# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12079# General Public License for more details. 12080# 12081# You should have received a copy of the GNU General Public License 12082# along with this program; if not, write to the Free Software 12083# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 12084# 12085# As a special exception to the GNU General Public License, if you 12086# distribute this file as part of a program that contains a 12087# configuration script generated by Autoconf, you may include it under 12088# the same distribution terms that you use for the rest of that program. 12089 12090# A sed program that does not truncate output. 12091SED=$lt_SED 12092 12093# Sed that helps us avoid accidentally triggering echo(1) options like -n. 12094Xsed="$SED -e 1s/^X//" 12095 12096# The HP-UX ksh and POSIX shell print the target directory to stdout 12097# if CDPATH is set. 12098(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12099 12100# The names of the tagged configurations supported by this script. 12101available_tags= 12102 12103# ### BEGIN LIBTOOL CONFIG 12104 12105# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12106 12107# Shell to use when invoking shell scripts. 12108SHELL=$lt_SHELL 12109 12110# Whether or not to build shared libraries. 12111build_libtool_libs=$enable_shared 12112 12113# Whether or not to build static libraries. 12114build_old_libs=$enable_static 12115 12116# Whether or not to add -lc for building shared libraries. 12117build_libtool_need_lc=$archive_cmds_need_lc 12118 12119# Whether or not to disallow shared libs when runtime libs are static 12120allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 12121 12122# Whether or not to optimize for fast installation. 12123fast_install=$enable_fast_install 12124 12125# The host system. 12126host_alias=$host_alias 12127host=$host 12128host_os=$host_os 12129 12130# The build system. 12131build_alias=$build_alias 12132build=$build 12133build_os=$build_os 12134 12135# An echo program that does not interpret backslashes. 12136echo=$lt_echo 12137 12138# The archiver. 12139AR=$lt_AR 12140AR_FLAGS=$lt_AR_FLAGS 12141 12142# A C compiler. 12143LTCC=$lt_LTCC 12144 12145# LTCC compiler flags. 12146LTCFLAGS=$lt_LTCFLAGS 12147 12148# A language-specific compiler. 12149CC=$lt_compiler 12150 12151# Is the compiler the GNU C compiler? 12152with_gcc=$GCC 12153 12154# An ERE matcher. 12155EGREP=$lt_EGREP 12156 12157# The linker used to build libraries. 12158LD=$lt_LD 12159 12160# Whether we need hard or soft links. 12161LN_S=$lt_LN_S 12162 12163# A BSD-compatible nm program. 12164NM=$lt_NM 12165 12166# A symbol stripping program 12167STRIP=$lt_STRIP 12168 12169# Used to examine libraries when file_magic_cmd begins "file" 12170MAGIC_CMD=$MAGIC_CMD 12171 12172# Used on cygwin: DLL creation program. 12173DLLTOOL="$DLLTOOL" 12174 12175# Used on cygwin: object dumper. 12176OBJDUMP="$OBJDUMP" 12177 12178# Used on cygwin: assembler. 12179AS="$AS" 12180 12181# The name of the directory that contains temporary libtool files. 12182objdir=$objdir 12183 12184# How to create reloadable object files. 12185reload_flag=$lt_reload_flag 12186reload_cmds=$lt_reload_cmds 12187 12188# How to pass a linker flag through the compiler. 12189wl=$lt_lt_prog_compiler_wl 12190 12191# Object file suffix (normally "o"). 12192objext="$ac_objext" 12193 12194# Old archive suffix (normally "a"). 12195libext="$libext" 12196 12197# Shared library suffix (normally ".so"). 12198shrext_cmds='$shrext_cmds' 12199 12200# Executable file suffix (normally ""). 12201exeext="$exeext" 12202 12203# Additional compiler flags for building library objects. 12204pic_flag=$lt_lt_prog_compiler_pic 12205pic_mode=$pic_mode 12206 12207# What is the maximum length of a command? 12208max_cmd_len=$lt_cv_sys_max_cmd_len 12209 12210# Does compiler simultaneously support -c and -o options? 12211compiler_c_o=$lt_lt_cv_prog_compiler_c_o 12212 12213# Must we lock files when doing compilation? 12214need_locks=$lt_need_locks 12215 12216# Do we need the lib prefix for modules? 12217need_lib_prefix=$need_lib_prefix 12218 12219# Do we need a version for libraries? 12220need_version=$need_version 12221 12222# Whether dlopen is supported. 12223dlopen_support=$enable_dlopen 12224 12225# Whether dlopen of programs is supported. 12226dlopen_self=$enable_dlopen_self 12227 12228# Whether dlopen of statically linked programs is supported. 12229dlopen_self_static=$enable_dlopen_self_static 12230 12231# Compiler flag to prevent dynamic linking. 12232link_static_flag=$lt_lt_prog_compiler_static 12233 12234# Compiler flag to turn off builtin functions. 12235no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 12236 12237# Compiler flag to allow reflexive dlopens. 12238export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 12239 12240# Compiler flag to generate shared objects directly from archives. 12241whole_archive_flag_spec=$lt_whole_archive_flag_spec 12242 12243# Compiler flag to generate thread-safe objects. 12244thread_safe_flag_spec=$lt_thread_safe_flag_spec 12245 12246# Library versioning type. 12247version_type=$version_type 12248 12249# Format of library name prefix. 12250libname_spec=$lt_libname_spec 12251 12252# List of archive names. First name is the real one, the rest are links. 12253# The last name is the one that the linker finds with -lNAME. 12254library_names_spec=$lt_library_names_spec 12255 12256# The coded name of the library, if different from the real name. 12257soname_spec=$lt_soname_spec 12258 12259# Commands used to build and install an old-style archive. 12260RANLIB=$lt_RANLIB 12261old_archive_cmds=$lt_old_archive_cmds 12262old_postinstall_cmds=$lt_old_postinstall_cmds 12263old_postuninstall_cmds=$lt_old_postuninstall_cmds 12264 12265# Create an old-style archive from a shared archive. 12266old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 12267 12268# Create a temporary old-style archive to link instead of a shared archive. 12269old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 12270 12271# Commands used to build and install a shared archive. 12272archive_cmds=$lt_archive_cmds 12273archive_expsym_cmds=$lt_archive_expsym_cmds 12274postinstall_cmds=$lt_postinstall_cmds 12275postuninstall_cmds=$lt_postuninstall_cmds 12276 12277# Commands used to build a loadable module (assumed same as above if empty) 12278module_cmds=$lt_module_cmds 12279module_expsym_cmds=$lt_module_expsym_cmds 12280 12281# Commands to strip libraries. 12282old_striplib=$lt_old_striplib 12283striplib=$lt_striplib 12284 12285# Dependencies to place before the objects being linked to create a 12286# shared library. 12287predep_objects=$lt_predep_objects 12288 12289# Dependencies to place after the objects being linked to create a 12290# shared library. 12291postdep_objects=$lt_postdep_objects 12292 12293# Dependencies to place before the objects being linked to create a 12294# shared library. 12295predeps=$lt_predeps 12296 12297# Dependencies to place after the objects being linked to create a 12298# shared library. 12299postdeps=$lt_postdeps 12300 12301# The library search path used internally by the compiler when linking 12302# a shared library. 12303compiler_lib_search_path=$lt_compiler_lib_search_path 12304 12305# Method to check whether dependent libraries are shared objects. 12306deplibs_check_method=$lt_deplibs_check_method 12307 12308# Command to use when deplibs_check_method == file_magic. 12309file_magic_cmd=$lt_file_magic_cmd 12310 12311# Flag that allows shared libraries with undefined symbols to be built. 12312allow_undefined_flag=$lt_allow_undefined_flag 12313 12314# Flag that forces no undefined symbols. 12315no_undefined_flag=$lt_no_undefined_flag 12316 12317# Commands used to finish a libtool library installation in a directory. 12318finish_cmds=$lt_finish_cmds 12319 12320# Same as above, but a single script fragment to be evaled but not shown. 12321finish_eval=$lt_finish_eval 12322 12323# Take the output of nm and produce a listing of raw symbols and C names. 12324global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12325 12326# Transform the output of nm in a proper C declaration 12327global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12328 12329# Transform the output of nm in a C name address pair 12330global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12331 12332# This is the shared library runtime path variable. 12333runpath_var=$runpath_var 12334 12335# This is the shared library path variable. 12336shlibpath_var=$shlibpath_var 12337 12338# Is shlibpath searched before the hard-coded library search path? 12339shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12340 12341# How to hardcode a shared library path into an executable. 12342hardcode_action=$hardcode_action 12343 12344# Whether we should hardcode library paths into libraries. 12345hardcode_into_libs=$hardcode_into_libs 12346 12347# Flag to hardcode \$libdir into a binary during linking. 12348# This must work even if \$libdir does not exist. 12349hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 12350 12351# If ld is used when linking, flag to hardcode \$libdir into 12352# a binary during linking. This must work even if \$libdir does 12353# not exist. 12354hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 12355 12356# Whether we need a single -rpath flag with a separated argument. 12357hardcode_libdir_separator=$lt_hardcode_libdir_separator 12358 12359# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12360# resulting binary. 12361hardcode_direct=$hardcode_direct 12362 12363# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12364# resulting binary. 12365hardcode_minus_L=$hardcode_minus_L 12366 12367# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12368# the resulting binary. 12369hardcode_shlibpath_var=$hardcode_shlibpath_var 12370 12371# Set to yes if building a shared library automatically hardcodes DIR into the library 12372# and all subsequent libraries and executables linked against it. 12373hardcode_automatic=$hardcode_automatic 12374 12375# Variables whose values should be saved in libtool wrapper scripts and 12376# restored at relink time. 12377variables_saved_for_relink="$variables_saved_for_relink" 12378 12379# Whether libtool must link a program against all its dependency libraries. 12380link_all_deplibs=$link_all_deplibs 12381 12382# Compile-time system search path for libraries 12383sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12384 12385# Run-time system search path for libraries 12386sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12387 12388# Fix the shell variable \$srcfile for the compiler. 12389fix_srcfile_path="$fix_srcfile_path" 12390 12391# Set to yes if exported symbols are required. 12392always_export_symbols=$always_export_symbols 12393 12394# The commands to list exported symbols. 12395export_symbols_cmds=$lt_export_symbols_cmds 12396 12397# The commands to extract the exported symbol list from a shared archive. 12398extract_expsyms_cmds=$lt_extract_expsyms_cmds 12399 12400# Symbols that should not be listed in the preloaded symbols. 12401exclude_expsyms=$lt_exclude_expsyms 12402 12403# Symbols that must always be exported. 12404include_expsyms=$lt_include_expsyms 12405 12406# ### END LIBTOOL CONFIG 12407 12408__EOF__ 12409 12410 12411 case $host_os in 12412 aix3*) 12413 cat <<\EOF >> "$cfgfile" 12414 12415# AIX sometimes has problems with the GCC collect2 program. For some 12416# reason, if we set the COLLECT_NAMES environment variable, the problems 12417# vanish in a puff of smoke. 12418if test "X${COLLECT_NAMES+set}" != Xset; then 12419 COLLECT_NAMES= 12420 export COLLECT_NAMES 12421fi 12422EOF 12423 ;; 12424 esac 12425 12426 # We use sed instead of cat because bash on DJGPP gets confused if 12427 # if finds mixed CR/LF and LF-only lines. Since sed operates in 12428 # text mode, it properly converts lines to CR/LF. This bash problem 12429 # is reportedly fixed, but why not run on old versions too? 12430 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 12431 12432 mv -f "$cfgfile" "$ofile" || \ 12433 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 12434 chmod +x "$ofile" 12435 12436else 12437 # If there is no Makefile yet, we rely on a make rule to execute 12438 # `config.status --recheck' to rerun these tests and create the 12439 # libtool script then. 12440 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12441 if test -f "$ltmain_in"; then 12442 test -f Makefile && make "$ltmain" 12443 fi 12444fi 12445 12446 12447ac_ext=c 12448ac_cpp='$CPP $CPPFLAGS' 12449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12451ac_compiler_gnu=$ac_cv_c_compiler_gnu 12452 12453CC="$lt_save_CC" 12454 12455 12456# Check whether --with-tags was given. 12457if test "${with_tags+set}" = set; then 12458 withval=$with_tags; tagnames="$withval" 12459fi 12460 12461 12462if test -f "$ltmain" && test -n "$tagnames"; then 12463 if test ! -f "${ofile}"; then 12464 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 12465echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 12466 fi 12467 12468 if test -z "$LTCC"; then 12469 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 12470 if test -z "$LTCC"; then 12471 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 12472echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 12473 else 12474 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 12475echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 12476 fi 12477 fi 12478 if test -z "$LTCFLAGS"; then 12479 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 12480 fi 12481 12482 # Extract list of available tagged configurations in $ofile. 12483 # Note that this assumes the entire list is on one line. 12484 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 12485 12486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12487 for tagname in $tagnames; do 12488 IFS="$lt_save_ifs" 12489 # Check whether tagname contains only valid characters 12490 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 12491 "") ;; 12492 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 12493echo "$as_me: error: invalid tag name: $tagname" >&2;} 12494 { (exit 1); exit 1; }; } 12495 ;; 12496 esac 12497 12498 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 12499 then 12500 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 12501echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 12502 { (exit 1); exit 1; }; } 12503 fi 12504 12505 # Update the list of available tags. 12506 if test -n "$tagname"; then 12507 echo appending configuration tag \"$tagname\" to $ofile 12508 12509 case $tagname in 12510 CXX) 12511 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12512 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12513 (test "X$CXX" != "Xg++"))) ; then 12514 ac_ext=cpp 12515ac_cpp='$CXXCPP $CPPFLAGS' 12516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12519 12520 12521 12522 12523archive_cmds_need_lc_CXX=no 12524allow_undefined_flag_CXX= 12525always_export_symbols_CXX=no 12526archive_expsym_cmds_CXX= 12527export_dynamic_flag_spec_CXX= 12528hardcode_direct_CXX=no 12529hardcode_libdir_flag_spec_CXX= 12530hardcode_libdir_flag_spec_ld_CXX= 12531hardcode_libdir_separator_CXX= 12532hardcode_minus_L_CXX=no 12533hardcode_shlibpath_var_CXX=unsupported 12534hardcode_automatic_CXX=no 12535module_cmds_CXX= 12536module_expsym_cmds_CXX= 12537link_all_deplibs_CXX=unknown 12538old_archive_cmds_CXX=$old_archive_cmds 12539no_undefined_flag_CXX= 12540whole_archive_flag_spec_CXX= 12541enable_shared_with_static_runtimes_CXX=no 12542 12543# Dependencies to place before and after the object being linked: 12544predep_objects_CXX= 12545postdep_objects_CXX= 12546predeps_CXX= 12547postdeps_CXX= 12548compiler_lib_search_path_CXX= 12549 12550# Source file extension for C++ test sources. 12551ac_ext=cpp 12552 12553# Object file extension for compiled C++ test sources. 12554objext=o 12555objext_CXX=$objext 12556 12557# Code to be used in simple compile tests 12558lt_simple_compile_test_code="int some_variable = 0;\n" 12559 12560# Code to be used in simple link tests 12561lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 12562 12563# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12564 12565# If no C compiler was specified, use CC. 12566LTCC=${LTCC-"$CC"} 12567 12568# If no C compiler flags were specified, use CFLAGS. 12569LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12570 12571# Allow CC to be a program name with arguments. 12572compiler=$CC 12573 12574 12575# save warnings/boilerplate of simple test code 12576ac_outfile=conftest.$ac_objext 12577printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12578eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12579_lt_compiler_boilerplate=`cat conftest.err` 12580$rm conftest* 12581 12582ac_outfile=conftest.$ac_objext 12583printf "$lt_simple_link_test_code" >conftest.$ac_ext 12584eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12585_lt_linker_boilerplate=`cat conftest.err` 12586$rm conftest* 12587 12588 12589# Allow CC to be a program name with arguments. 12590lt_save_CC=$CC 12591lt_save_LD=$LD 12592lt_save_GCC=$GCC 12593GCC=$GXX 12594lt_save_with_gnu_ld=$with_gnu_ld 12595lt_save_path_LD=$lt_cv_path_LD 12596if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12597 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12598else 12599 $as_unset lt_cv_prog_gnu_ld 12600fi 12601if test -n "${lt_cv_path_LDCXX+set}"; then 12602 lt_cv_path_LD=$lt_cv_path_LDCXX 12603else 12604 $as_unset lt_cv_path_LD 12605fi 12606test -z "${LDCXX+set}" || LD=$LDCXX 12607CC=${CXX-"c++"} 12608compiler=$CC 12609compiler_CXX=$CC 12610for cc_temp in $compiler""; do 12611 case $cc_temp in 12612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12614 \-*) ;; 12615 *) break;; 12616 esac 12617done 12618cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12619 12620 12621# We don't want -fno-exception wen compiling C++ code, so set the 12622# no_builtin_flag separately 12623if test "$GXX" = yes; then 12624 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12625else 12626 lt_prog_compiler_no_builtin_flag_CXX= 12627fi 12628 12629if test "$GXX" = yes; then 12630 # Set up default GNU C++ configuration 12631 12632 12633# Check whether --with-gnu-ld was given. 12634if test "${with_gnu_ld+set}" = set; then 12635 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12636else 12637 with_gnu_ld=no 12638fi 12639 12640ac_prog=ld 12641if test "$GCC" = yes; then 12642 # Check if gcc -print-prog-name=ld gives a path. 12643 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12644echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 12645 case $host in 12646 *-*-mingw*) 12647 # gcc leaves a trailing carriage return which upsets mingw 12648 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12649 *) 12650 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12651 esac 12652 case $ac_prog in 12653 # Accept absolute paths. 12654 [\\/]* | ?:[\\/]*) 12655 re_direlt='/[^/][^/]*/\.\./' 12656 # Canonicalize the pathname of ld 12657 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 12658 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 12659 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 12660 done 12661 test -z "$LD" && LD="$ac_prog" 12662 ;; 12663 "") 12664 # If it fails, then pretend we aren't using GCC. 12665 ac_prog=ld 12666 ;; 12667 *) 12668 # If it is relative, then search for the first ld in PATH. 12669 with_gnu_ld=unknown 12670 ;; 12671 esac 12672elif test "$with_gnu_ld" = yes; then 12673 { echo "$as_me:$LINENO: checking for GNU ld" >&5 12674echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 12675else 12676 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12677echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 12678fi 12679if test "${lt_cv_path_LD+set}" = set; then 12680 echo $ECHO_N "(cached) $ECHO_C" >&6 12681else 12682 if test -z "$LD"; then 12683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12684 for ac_dir in $PATH; do 12685 IFS="$lt_save_ifs" 12686 test -z "$ac_dir" && ac_dir=. 12687 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12688 lt_cv_path_LD="$ac_dir/$ac_prog" 12689 # Check to see if the program is GNU ld. I'd rather use --version, 12690 # but apparently some variants of GNU ld only accept -v. 12691 # Break only if it was the GNU/non-GNU ld that we prefer. 12692 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12693 *GNU* | *'with BFD'*) 12694 test "$with_gnu_ld" != no && break 12695 ;; 12696 *) 12697 test "$with_gnu_ld" != yes && break 12698 ;; 12699 esac 12700 fi 12701 done 12702 IFS="$lt_save_ifs" 12703else 12704 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12705fi 12706fi 12707 12708LD="$lt_cv_path_LD" 12709if test -n "$LD"; then 12710 { echo "$as_me:$LINENO: result: $LD" >&5 12711echo "${ECHO_T}$LD" >&6; } 12712else 12713 { echo "$as_me:$LINENO: result: no" >&5 12714echo "${ECHO_T}no" >&6; } 12715fi 12716test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12717echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12718 { (exit 1); exit 1; }; } 12719{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12720echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 12721if test "${lt_cv_prog_gnu_ld+set}" = set; then 12722 echo $ECHO_N "(cached) $ECHO_C" >&6 12723else 12724 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12725case `$LD -v 2>&1 </dev/null` in 12726*GNU* | *'with BFD'*) 12727 lt_cv_prog_gnu_ld=yes 12728 ;; 12729*) 12730 lt_cv_prog_gnu_ld=no 12731 ;; 12732esac 12733fi 12734{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12735echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 12736with_gnu_ld=$lt_cv_prog_gnu_ld 12737 12738 12739 12740 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12741 # archiving commands below assume that GNU ld is being used. 12742 if test "$with_gnu_ld" = yes; then 12743 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12744 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' 12745 12746 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12747 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12748 12749 # If archive_cmds runs LD, not CC, wlarc should be empty 12750 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12751 # investigate it a little bit more. (MM) 12752 wlarc='${wl}' 12753 12754 # ancient GNU ld didn't support --whole-archive et. al. 12755 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 12756 grep 'no-whole-archive' > /dev/null; then 12757 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12758 else 12759 whole_archive_flag_spec_CXX= 12760 fi 12761 else 12762 with_gnu_ld=no 12763 wlarc= 12764 12765 # A generic and very simple default shared library creation 12766 # command for GNU C++ for the case where it uses the native 12767 # linker, instead of GNU ld. If possible, this setting should 12768 # overridden to take advantage of the native linker features on 12769 # the platform it is being used on. 12770 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12771 fi 12772 12773 # Commands to make compiler produce verbose output that lists 12774 # what "hidden" libraries, object files and flags are used when 12775 # linking a shared library. 12776 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12777 12778else 12779 GXX=no 12780 with_gnu_ld=no 12781 wlarc= 12782fi 12783 12784# PORTME: fill in a description of your system's C++ link characteristics 12785{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12786echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12787ld_shlibs_CXX=yes 12788case $host_os in 12789 aix3*) 12790 # FIXME: insert proper C++ library support 12791 ld_shlibs_CXX=no 12792 ;; 12793 aix4* | aix5*) 12794 if test "$host_cpu" = ia64; then 12795 # On IA64, the linker does run time linking by default, so we don't 12796 # have to do anything special. 12797 aix_use_runtimelinking=no 12798 exp_sym_flag='-Bexport' 12799 no_entry_flag="" 12800 else 12801 aix_use_runtimelinking=no 12802 12803 # Test if we are trying to use run time linking or normal 12804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12805 # need to do runtime linking. 12806 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12807 for ld_flag in $LDFLAGS; do 12808 case $ld_flag in 12809 *-brtl*) 12810 aix_use_runtimelinking=yes 12811 break 12812 ;; 12813 esac 12814 done 12815 ;; 12816 esac 12817 12818 exp_sym_flag='-bexport' 12819 no_entry_flag='-bnoentry' 12820 fi 12821 12822 # When large executables or shared objects are built, AIX ld can 12823 # have problems creating the table of contents. If linking a library 12824 # or program results in "error TOC overflow" add -mminimal-toc to 12825 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12826 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12827 12828 archive_cmds_CXX='' 12829 hardcode_direct_CXX=yes 12830 hardcode_libdir_separator_CXX=':' 12831 link_all_deplibs_CXX=yes 12832 12833 if test "$GXX" = yes; then 12834 case $host_os in aix4.[012]|aix4.[012].*) 12835 # We only want to do this on AIX 4.2 and lower, the check 12836 # below for broken collect2 doesn't work under 4.3+ 12837 collect2name=`${CC} -print-prog-name=collect2` 12838 if test -f "$collect2name" && \ 12839 strings "$collect2name" | grep resolve_lib_name >/dev/null 12840 then 12841 # We have reworked collect2 12842 hardcode_direct_CXX=yes 12843 else 12844 # We have old collect2 12845 hardcode_direct_CXX=unsupported 12846 # It fails to find uninstalled libraries when the uninstalled 12847 # path is not listed in the libpath. Setting hardcode_minus_L 12848 # to unsupported forces relinking 12849 hardcode_minus_L_CXX=yes 12850 hardcode_libdir_flag_spec_CXX='-L$libdir' 12851 hardcode_libdir_separator_CXX= 12852 fi 12853 ;; 12854 esac 12855 shared_flag='-shared' 12856 if test "$aix_use_runtimelinking" = yes; then 12857 shared_flag="$shared_flag "'${wl}-G' 12858 fi 12859 else 12860 # not using gcc 12861 if test "$host_cpu" = ia64; then 12862 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12863 # chokes on -Wl,-G. The following line is correct: 12864 shared_flag='-G' 12865 else 12866 if test "$aix_use_runtimelinking" = yes; then 12867 shared_flag='${wl}-G' 12868 else 12869 shared_flag='${wl}-bM:SRE' 12870 fi 12871 fi 12872 fi 12873 12874 # It seems that -bexpall does not export symbols beginning with 12875 # underscore (_), so it is better to generate a list of symbols to export. 12876 always_export_symbols_CXX=yes 12877 if test "$aix_use_runtimelinking" = yes; then 12878 # Warning - without using the other runtime loading flags (-brtl), 12879 # -berok will link without error, but may produce a broken library. 12880 allow_undefined_flag_CXX='-berok' 12881 # Determine the default libpath from the value encoded in an empty executable. 12882 cat >conftest.$ac_ext <<_ACEOF 12883/* confdefs.h. */ 12884_ACEOF 12885cat confdefs.h >>conftest.$ac_ext 12886cat >>conftest.$ac_ext <<_ACEOF 12887/* end confdefs.h. */ 12888 12889int 12890main () 12891{ 12892 12893 ; 12894 return 0; 12895} 12896_ACEOF 12897rm -f conftest.$ac_objext conftest$ac_exeext 12898if { (ac_try="$ac_link" 12899case "(($ac_try" in 12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12901 *) ac_try_echo=$ac_try;; 12902esac 12903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12904 (eval "$ac_link") 2>conftest.er1 12905 ac_status=$? 12906 grep -v '^ *+' conftest.er1 >conftest.err 12907 rm -f conftest.er1 12908 cat conftest.err >&5 12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12910 (exit $ac_status); } && { 12911 test -z "$ac_cxx_werror_flag" || 12912 test ! -s conftest.err 12913 } && test -s conftest$ac_exeext && 12914 $as_test_x conftest$ac_exeext; then 12915 12916aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12917}'` 12918# Check for a 64-bit object if we didn't find anything. 12919if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12920}'`; fi 12921else 12922 echo "$as_me: failed program was:" >&5 12923sed 's/^/| /' conftest.$ac_ext >&5 12924 12925 12926fi 12927 12928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12929 conftest$ac_exeext conftest.$ac_ext 12930if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12931 12932 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12933 12934 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" 12935 else 12936 if test "$host_cpu" = ia64; then 12937 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12938 allow_undefined_flag_CXX="-z nodefs" 12939 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" 12940 else 12941 # Determine the default libpath from the value encoded in an empty executable. 12942 cat >conftest.$ac_ext <<_ACEOF 12943/* confdefs.h. */ 12944_ACEOF 12945cat confdefs.h >>conftest.$ac_ext 12946cat >>conftest.$ac_ext <<_ACEOF 12947/* end confdefs.h. */ 12948 12949int 12950main () 12951{ 12952 12953 ; 12954 return 0; 12955} 12956_ACEOF 12957rm -f conftest.$ac_objext conftest$ac_exeext 12958if { (ac_try="$ac_link" 12959case "(($ac_try" in 12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12961 *) ac_try_echo=$ac_try;; 12962esac 12963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12964 (eval "$ac_link") 2>conftest.er1 12965 ac_status=$? 12966 grep -v '^ *+' conftest.er1 >conftest.err 12967 rm -f conftest.er1 12968 cat conftest.err >&5 12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12970 (exit $ac_status); } && { 12971 test -z "$ac_cxx_werror_flag" || 12972 test ! -s conftest.err 12973 } && test -s conftest$ac_exeext && 12974 $as_test_x conftest$ac_exeext; then 12975 12976aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12977}'` 12978# Check for a 64-bit object if we didn't find anything. 12979if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12980}'`; fi 12981else 12982 echo "$as_me: failed program was:" >&5 12983sed 's/^/| /' conftest.$ac_ext >&5 12984 12985 12986fi 12987 12988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12989 conftest$ac_exeext conftest.$ac_ext 12990if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12991 12992 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12993 # Warning - without using the other run time loading flags, 12994 # -berok will link without error, but may produce a broken library. 12995 no_undefined_flag_CXX=' ${wl}-bernotok' 12996 allow_undefined_flag_CXX=' ${wl}-berok' 12997 # Exported symbols can be pulled into shared objects from archives 12998 whole_archive_flag_spec_CXX='$convenience' 12999 archive_cmds_need_lc_CXX=yes 13000 # This is similar to how AIX traditionally builds its shared libraries. 13001 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' 13002 fi 13003 fi 13004 ;; 13005 13006 beos*) 13007 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13008 allow_undefined_flag_CXX=unsupported 13009 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13010 # support --undefined. This deserves some investigation. FIXME 13011 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13012 else 13013 ld_shlibs_CXX=no 13014 fi 13015 ;; 13016 13017 chorus*) 13018 case $cc_basename in 13019 *) 13020 # FIXME: insert proper C++ library support 13021 ld_shlibs_CXX=no 13022 ;; 13023 esac 13024 ;; 13025 13026 cygwin* | mingw* | pw32*) 13027 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13028 # as there is no search path for DLLs. 13029 hardcode_libdir_flag_spec_CXX='-L$libdir' 13030 allow_undefined_flag_CXX=unsupported 13031 always_export_symbols_CXX=no 13032 enable_shared_with_static_runtimes_CXX=yes 13033 13034 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13035 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' 13036 # If the export-symbols file already is a .def file (1st line 13037 # is EXPORTS), use it as is; otherwise, prepend... 13038 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13039 cp $export_symbols $output_objdir/$soname.def; 13040 else 13041 echo EXPORTS > $output_objdir/$soname.def; 13042 cat $export_symbols >> $output_objdir/$soname.def; 13043 fi~ 13044 $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' 13045 else 13046 ld_shlibs_CXX=no 13047 fi 13048 ;; 13049 darwin* | rhapsody*) 13050 case $host_os in 13051 rhapsody* | darwin1.[012]) 13052 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 13053 ;; 13054 *) # Darwin 1.3 on 13055 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13056 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13057 else 13058 case ${MACOSX_DEPLOYMENT_TARGET} in 13059 10.[012]) 13060 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13061 ;; 13062 10.*) 13063 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 13064 ;; 13065 esac 13066 fi 13067 ;; 13068 esac 13069 archive_cmds_need_lc_CXX=no 13070 hardcode_direct_CXX=no 13071 hardcode_automatic_CXX=yes 13072 hardcode_shlibpath_var_CXX=unsupported 13073 whole_archive_flag_spec_CXX='' 13074 link_all_deplibs_CXX=yes 13075 13076 if test "$GXX" = yes ; then 13077 lt_int_apple_cc_single_mod=no 13078 output_verbose_link_cmd='echo' 13079 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 13080 lt_int_apple_cc_single_mod=yes 13081 fi 13082 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13083 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13084 else 13085 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' 13086 fi 13087 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13088 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13089 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13090 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13091 else 13092 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13093 fi 13094 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}' 13095 else 13096 case $cc_basename in 13097 xlc*) 13098 output_verbose_link_cmd='echo' 13099 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 13100 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13101 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13102 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13103 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}' 13104 ;; 13105 *) 13106 ld_shlibs_CXX=no 13107 ;; 13108 esac 13109 fi 13110 ;; 13111 13112 dgux*) 13113 case $cc_basename in 13114 ec++*) 13115 # FIXME: insert proper C++ library support 13116 ld_shlibs_CXX=no 13117 ;; 13118 ghcx*) 13119 # Green Hills C++ Compiler 13120 # FIXME: insert proper C++ library support 13121 ld_shlibs_CXX=no 13122 ;; 13123 *) 13124 # FIXME: insert proper C++ library support 13125 ld_shlibs_CXX=no 13126 ;; 13127 esac 13128 ;; 13129 freebsd[12]*) 13130 # C++ shared libraries reported to be fairly broken before switch to ELF 13131 ld_shlibs_CXX=no 13132 ;; 13133 freebsd-elf*) 13134 archive_cmds_need_lc_CXX=no 13135 ;; 13136 freebsd* | dragonfly*) 13137 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13138 # conventions 13139 ld_shlibs_CXX=yes 13140 ;; 13141 gnu*) 13142 ;; 13143 hpux9*) 13144 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13145 hardcode_libdir_separator_CXX=: 13146 export_dynamic_flag_spec_CXX='${wl}-E' 13147 hardcode_direct_CXX=yes 13148 hardcode_minus_L_CXX=yes # Not in the search PATH, 13149 # but as the default 13150 # location of the library. 13151 13152 case $cc_basename in 13153 CC*) 13154 # FIXME: insert proper C++ library support 13155 ld_shlibs_CXX=no 13156 ;; 13157 aCC*) 13158 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' 13159 # Commands to make compiler produce verbose output that lists 13160 # what "hidden" libraries, object files and flags are used when 13161 # linking a shared library. 13162 # 13163 # There doesn't appear to be a way to prevent this compiler from 13164 # explicitly linking system object files so we need to strip them 13165 # from the output so that they don't get included in the library 13166 # dependencies. 13167 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' 13168 ;; 13169 *) 13170 if test "$GXX" = yes; then 13171 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' 13172 else 13173 # FIXME: insert proper C++ library support 13174 ld_shlibs_CXX=no 13175 fi 13176 ;; 13177 esac 13178 ;; 13179 hpux10*|hpux11*) 13180 if test $with_gnu_ld = no; then 13181 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13182 hardcode_libdir_separator_CXX=: 13183 13184 case $host_cpu in 13185 hppa*64*|ia64*) 13186 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 13187 ;; 13188 *) 13189 export_dynamic_flag_spec_CXX='${wl}-E' 13190 ;; 13191 esac 13192 fi 13193 case $host_cpu in 13194 hppa*64*|ia64*) 13195 hardcode_direct_CXX=no 13196 hardcode_shlibpath_var_CXX=no 13197 ;; 13198 *) 13199 hardcode_direct_CXX=yes 13200 hardcode_minus_L_CXX=yes # Not in the search PATH, 13201 # but as the default 13202 # location of the library. 13203 ;; 13204 esac 13205 13206 case $cc_basename in 13207 CC*) 13208 # FIXME: insert proper C++ library support 13209 ld_shlibs_CXX=no 13210 ;; 13211 aCC*) 13212 case $host_cpu in 13213 hppa*64*) 13214 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13215 ;; 13216 ia64*) 13217 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13218 ;; 13219 *) 13220 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13221 ;; 13222 esac 13223 # Commands to make compiler produce verbose output that lists 13224 # what "hidden" libraries, object files and flags are used when 13225 # linking a shared library. 13226 # 13227 # There doesn't appear to be a way to prevent this compiler from 13228 # explicitly linking system object files so we need to strip them 13229 # from the output so that they don't get included in the library 13230 # dependencies. 13231 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' 13232 ;; 13233 *) 13234 if test "$GXX" = yes; then 13235 if test $with_gnu_ld = no; then 13236 case $host_cpu in 13237 hppa*64*) 13238 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13239 ;; 13240 ia64*) 13241 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13242 ;; 13243 *) 13244 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' 13245 ;; 13246 esac 13247 fi 13248 else 13249 # FIXME: insert proper C++ library support 13250 ld_shlibs_CXX=no 13251 fi 13252 ;; 13253 esac 13254 ;; 13255 interix3*) 13256 hardcode_direct_CXX=no 13257 hardcode_shlibpath_var_CXX=no 13258 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13259 export_dynamic_flag_spec_CXX='${wl}-E' 13260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13261 # Instead, shared libraries are loaded at an image base (0x10000000 by 13262 # default) and relocated if they conflict, which is a slow very memory 13263 # consuming and fragmenting process. To avoid this, we pick a random, 13264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13265 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13266 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' 13267 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' 13268 ;; 13269 irix5* | irix6*) 13270 case $cc_basename in 13271 CC*) 13272 # SGI C++ 13273 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' 13274 13275 # Archives containing C++ object files must be created using 13276 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13277 # necessary to make sure instantiated templates are included 13278 # in the archive. 13279 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13280 ;; 13281 *) 13282 if test "$GXX" = yes; then 13283 if test "$with_gnu_ld" = no; then 13284 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' 13285 else 13286 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' 13287 fi 13288 fi 13289 link_all_deplibs_CXX=yes 13290 ;; 13291 esac 13292 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13293 hardcode_libdir_separator_CXX=: 13294 ;; 13295 linux* | k*bsd*-gnu) 13296 case $cc_basename in 13297 KCC*) 13298 # Kuck and Associates, Inc. (KAI) C++ Compiler 13299 13300 # KCC will only create a shared library if the output file 13301 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13302 # to its proper name (with version) after linking. 13303 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' 13304 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' 13305 # Commands to make compiler produce verbose output that lists 13306 # what "hidden" libraries, object files and flags are used when 13307 # linking a shared library. 13308 # 13309 # There doesn't appear to be a way to prevent this compiler from 13310 # explicitly linking system object files so we need to strip them 13311 # from the output so that they don't get included in the library 13312 # dependencies. 13313 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' 13314 13315 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 13316 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13317 13318 # Archives containing C++ object files must be created using 13319 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13320 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13321 ;; 13322 icpc*) 13323 # Intel C++ 13324 with_gnu_ld=yes 13325 # version 8.0 and above of icpc choke on multiply defined symbols 13326 # if we add $predep_objects and $postdep_objects, however 7.1 and 13327 # earlier do not add the objects themselves. 13328 case `$CC -V 2>&1` in 13329 *"Version 7."*) 13330 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13331 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' 13332 ;; 13333 *) # Version 8.0 or newer 13334 tmp_idyn= 13335 case $host_cpu in 13336 ia64*) tmp_idyn=' -i_dynamic';; 13337 esac 13338 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13339 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' 13340 ;; 13341 esac 13342 archive_cmds_need_lc_CXX=no 13343 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13345 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13346 ;; 13347 pgCC*) 13348 # Portland Group C++ compiler 13349 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13350 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' 13351 13352 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13353 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13354 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' 13355 ;; 13356 cxx*) 13357 # Compaq C++ 13358 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13359 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' 13360 13361 runpath_var=LD_RUN_PATH 13362 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13363 hardcode_libdir_separator_CXX=: 13364 13365 # Commands to make compiler produce verbose output that lists 13366 # what "hidden" libraries, object files and flags are used when 13367 # linking a shared library. 13368 # 13369 # There doesn't appear to be a way to prevent this compiler from 13370 # explicitly linking system object files so we need to strip them 13371 # from the output so that they don't get included in the library 13372 # dependencies. 13373 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' 13374 ;; 13375 esac 13376 ;; 13377 lynxos*) 13378 # FIXME: insert proper C++ library support 13379 ld_shlibs_CXX=no 13380 ;; 13381 m88k*) 13382 # FIXME: insert proper C++ library support 13383 ld_shlibs_CXX=no 13384 ;; 13385 mvs*) 13386 case $cc_basename in 13387 cxx*) 13388 # FIXME: insert proper C++ library support 13389 ld_shlibs_CXX=no 13390 ;; 13391 *) 13392 # FIXME: insert proper C++ library support 13393 ld_shlibs_CXX=no 13394 ;; 13395 esac 13396 ;; 13397 netbsd* | netbsdelf*-gnu) 13398 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13399 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13400 wlarc= 13401 hardcode_libdir_flag_spec_CXX='-R$libdir' 13402 hardcode_direct_CXX=yes 13403 hardcode_shlibpath_var_CXX=no 13404 fi 13405 # Workaround some broken pre-1.5 toolchains 13406 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13407 ;; 13408 openbsd2*) 13409 # C++ shared libraries are fairly broken 13410 ld_shlibs_CXX=no 13411 ;; 13412 openbsd*) 13413 hardcode_direct_CXX=yes 13414 hardcode_shlibpath_var_CXX=no 13415 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13416 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13417 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13418 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13419 export_dynamic_flag_spec_CXX='${wl}-E' 13420 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13421 fi 13422 output_verbose_link_cmd='echo' 13423 ;; 13424 osf3*) 13425 case $cc_basename in 13426 KCC*) 13427 # Kuck and Associates, Inc. (KAI) C++ Compiler 13428 13429 # KCC will only create a shared library if the output file 13430 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13431 # to its proper name (with version) after linking. 13432 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' 13433 13434 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13435 hardcode_libdir_separator_CXX=: 13436 13437 # Archives containing C++ object files must be created using 13438 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13439 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13440 13441 ;; 13442 RCC*) 13443 # Rational C++ 2.4.1 13444 # FIXME: insert proper C++ library support 13445 ld_shlibs_CXX=no 13446 ;; 13447 cxx*) 13448 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13449 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' 13450 13451 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13452 hardcode_libdir_separator_CXX=: 13453 13454 # Commands to make compiler produce verbose output that lists 13455 # what "hidden" libraries, object files and flags are used when 13456 # linking a shared library. 13457 # 13458 # There doesn't appear to be a way to prevent this compiler from 13459 # explicitly linking system object files so we need to strip them 13460 # from the output so that they don't get included in the library 13461 # dependencies. 13462 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' 13463 ;; 13464 *) 13465 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13466 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13467 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' 13468 13469 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13470 hardcode_libdir_separator_CXX=: 13471 13472 # Commands to make compiler produce verbose output that lists 13473 # what "hidden" libraries, object files and flags are used when 13474 # linking a shared library. 13475 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13476 13477 else 13478 # FIXME: insert proper C++ library support 13479 ld_shlibs_CXX=no 13480 fi 13481 ;; 13482 esac 13483 ;; 13484 osf4* | osf5*) 13485 case $cc_basename in 13486 KCC*) 13487 # Kuck and Associates, Inc. (KAI) C++ Compiler 13488 13489 # KCC will only create a shared library if the output file 13490 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13491 # to its proper name (with version) after linking. 13492 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' 13493 13494 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13495 hardcode_libdir_separator_CXX=: 13496 13497 # Archives containing C++ object files must be created using 13498 # the KAI C++ compiler. 13499 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 13500 ;; 13501 RCC*) 13502 # Rational C++ 2.4.1 13503 # FIXME: insert proper C++ library support 13504 ld_shlibs_CXX=no 13505 ;; 13506 cxx*) 13507 allow_undefined_flag_CXX=' -expect_unresolved \*' 13508 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' 13509 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13510 echo "-hidden">> $lib.exp~ 13511 $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~ 13512 $rm $lib.exp' 13513 13514 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13515 hardcode_libdir_separator_CXX=: 13516 13517 # Commands to make compiler produce verbose output that lists 13518 # what "hidden" libraries, object files and flags are used when 13519 # linking a shared library. 13520 # 13521 # There doesn't appear to be a way to prevent this compiler from 13522 # explicitly linking system object files so we need to strip them 13523 # from the output so that they don't get included in the library 13524 # dependencies. 13525 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' 13526 ;; 13527 *) 13528 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13529 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13530 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' 13531 13532 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13533 hardcode_libdir_separator_CXX=: 13534 13535 # Commands to make compiler produce verbose output that lists 13536 # what "hidden" libraries, object files and flags are used when 13537 # linking a shared library. 13538 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13539 13540 else 13541 # FIXME: insert proper C++ library support 13542 ld_shlibs_CXX=no 13543 fi 13544 ;; 13545 esac 13546 ;; 13547 psos*) 13548 # FIXME: insert proper C++ library support 13549 ld_shlibs_CXX=no 13550 ;; 13551 sunos4*) 13552 case $cc_basename in 13553 CC*) 13554 # Sun C++ 4.x 13555 # FIXME: insert proper C++ library support 13556 ld_shlibs_CXX=no 13557 ;; 13558 lcc*) 13559 # Lucid 13560 # FIXME: insert proper C++ library support 13561 ld_shlibs_CXX=no 13562 ;; 13563 *) 13564 # FIXME: insert proper C++ library support 13565 ld_shlibs_CXX=no 13566 ;; 13567 esac 13568 ;; 13569 solaris*) 13570 case $cc_basename in 13571 CC*) 13572 # Sun C++ 4.2, 5.x and Centerline C++ 13573 archive_cmds_need_lc_CXX=yes 13574 no_undefined_flag_CXX=' -zdefs' 13575 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13576 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13577 $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' 13578 13579 hardcode_libdir_flag_spec_CXX='-R$libdir' 13580 hardcode_shlibpath_var_CXX=no 13581 case $host_os in 13582 solaris2.[0-5] | solaris2.[0-5].*) ;; 13583 *) 13584 # The C++ compiler is used as linker so we must use $wl 13585 # flag to pass the commands to the underlying system 13586 # linker. We must also pass each convience library through 13587 # to the system linker between allextract/defaultextract. 13588 # The C++ compiler will combine linker options so we 13589 # cannot just pass the convience library names through 13590 # without $wl. 13591 # Supported since Solaris 2.6 (maybe 2.5.1?) 13592 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 13593 ;; 13594 esac 13595 link_all_deplibs_CXX=yes 13596 13597 output_verbose_link_cmd='echo' 13598 13599 # Archives containing C++ object files must be created using 13600 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13601 # necessary to make sure instantiated templates are included 13602 # in the archive. 13603 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13604 ;; 13605 gcx*) 13606 # Green Hills C++ Compiler 13607 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13608 13609 # The C++ compiler must be used to create the archive. 13610 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13611 ;; 13612 *) 13613 # GNU C++ compiler with Solaris linker 13614 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13615 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13616 if $CC --version | grep -v '^2\.7' > /dev/null; then 13617 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13618 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13619 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13620 13621 # Commands to make compiler produce verbose output that lists 13622 # what "hidden" libraries, object files and flags are used when 13623 # linking a shared library. 13624 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13625 else 13626 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13627 # platform. 13628 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13629 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13630 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13631 13632 # Commands to make compiler produce verbose output that lists 13633 # what "hidden" libraries, object files and flags are used when 13634 # linking a shared library. 13635 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13636 fi 13637 13638 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13639 fi 13640 ;; 13641 esac 13642 ;; 13643 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13644 no_undefined_flag_CXX='${wl}-z,text' 13645 archive_cmds_need_lc_CXX=no 13646 hardcode_shlibpath_var_CXX=no 13647 runpath_var='LD_RUN_PATH' 13648 13649 case $cc_basename in 13650 CC*) 13651 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13652 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13653 ;; 13654 *) 13655 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13656 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13657 ;; 13658 esac 13659 ;; 13660 sysv5* | sco3.2v5* | sco5v6*) 13661 # Note: We can NOT use -z defs as we might desire, because we do not 13662 # link with -lc, and that would cause any symbols used from libc to 13663 # always be unresolved, which means just about no library would 13664 # ever link correctly. If we're not using GNU ld we use -z text 13665 # though, which does catch some bad symbols but isn't as heavy-handed 13666 # as -z defs. 13667 # For security reasons, it is highly recommended that you always 13668 # use absolute paths for naming shared libraries, and exclude the 13669 # DT_RUNPATH tag from executables and libraries. But doing so 13670 # requires that you compile everything twice, which is a pain. 13671 # So that behaviour is only enabled if SCOABSPATH is set to a 13672 # non-empty value in the environment. Most likely only useful for 13673 # creating official distributions of packages. 13674 # This is a hack until libtool officially supports absolute path 13675 # names for shared libraries. 13676 no_undefined_flag_CXX='${wl}-z,text' 13677 allow_undefined_flag_CXX='${wl}-z,nodefs' 13678 archive_cmds_need_lc_CXX=no 13679 hardcode_shlibpath_var_CXX=no 13680 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 13681 hardcode_libdir_separator_CXX=':' 13682 link_all_deplibs_CXX=yes 13683 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13684 runpath_var='LD_RUN_PATH' 13685 13686 case $cc_basename in 13687 CC*) 13688 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13689 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13690 ;; 13691 *) 13692 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13693 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13694 ;; 13695 esac 13696 ;; 13697 tandem*) 13698 case $cc_basename in 13699 NCC*) 13700 # NonStop-UX NCC 3.20 13701 # FIXME: insert proper C++ library support 13702 ld_shlibs_CXX=no 13703 ;; 13704 *) 13705 # FIXME: insert proper C++ library support 13706 ld_shlibs_CXX=no 13707 ;; 13708 esac 13709 ;; 13710 vxworks*) 13711 # FIXME: insert proper C++ library support 13712 ld_shlibs_CXX=no 13713 ;; 13714 *) 13715 # FIXME: insert proper C++ library support 13716 ld_shlibs_CXX=no 13717 ;; 13718esac 13719{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13720echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13721test "$ld_shlibs_CXX" = no && can_build_shared=no 13722 13723GCC_CXX="$GXX" 13724LD_CXX="$LD" 13725 13726 13727cat > conftest.$ac_ext <<EOF 13728class Foo 13729{ 13730public: 13731 Foo (void) { a = 0; } 13732private: 13733 int a; 13734}; 13735EOF 13736 13737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13738 (eval $ac_compile) 2>&5 13739 ac_status=$? 13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13741 (exit $ac_status); }; then 13742 # Parse the compiler output and extract the necessary 13743 # objects, libraries and library flags. 13744 13745 # Sentinel used to keep track of whether or not we are before 13746 # the conftest object file. 13747 pre_test_object_deps_done=no 13748 13749 # The `*' in the case matches for architectures that use `case' in 13750 # $output_verbose_cmd can trigger glob expansion during the loop 13751 # eval without this substitution. 13752 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 13753 13754 for p in `eval $output_verbose_link_cmd`; do 13755 case $p in 13756 13757 -L* | -R* | -l*) 13758 # Some compilers place space between "-{L,R}" and the path. 13759 # Remove the space. 13760 if test $p = "-L" \ 13761 || test $p = "-R"; then 13762 prev=$p 13763 continue 13764 else 13765 prev= 13766 fi 13767 13768 if test "$pre_test_object_deps_done" = no; then 13769 case $p in 13770 -L* | -R*) 13771 # Internal compiler library paths should come after those 13772 # provided the user. The postdeps already come after the 13773 # user supplied libs so there is no need to process them. 13774 if test -z "$compiler_lib_search_path_CXX"; then 13775 compiler_lib_search_path_CXX="${prev}${p}" 13776 else 13777 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13778 fi 13779 ;; 13780 # The "-l" case would never come before the object being 13781 # linked, so don't bother handling this case. 13782 esac 13783 else 13784 if test -z "$postdeps_CXX"; then 13785 postdeps_CXX="${prev}${p}" 13786 else 13787 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13788 fi 13789 fi 13790 ;; 13791 13792 *.$objext) 13793 # This assumes that the test object file only shows up 13794 # once in the compiler output. 13795 if test "$p" = "conftest.$objext"; then 13796 pre_test_object_deps_done=yes 13797 continue 13798 fi 13799 13800 if test "$pre_test_object_deps_done" = no; then 13801 if test -z "$predep_objects_CXX"; then 13802 predep_objects_CXX="$p" 13803 else 13804 predep_objects_CXX="$predep_objects_CXX $p" 13805 fi 13806 else 13807 if test -z "$postdep_objects_CXX"; then 13808 postdep_objects_CXX="$p" 13809 else 13810 postdep_objects_CXX="$postdep_objects_CXX $p" 13811 fi 13812 fi 13813 ;; 13814 13815 *) ;; # Ignore the rest. 13816 13817 esac 13818 done 13819 13820 # Clean up. 13821 rm -f a.out a.exe 13822else 13823 echo "libtool.m4: error: problem compiling CXX test program" 13824fi 13825 13826$rm -f confest.$objext 13827 13828# PORTME: override above test on systems where it is broken 13829case $host_os in 13830interix3*) 13831 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13832 # hack all around it, let's just trust "g++" to DTRT. 13833 predep_objects_CXX= 13834 postdep_objects_CXX= 13835 postdeps_CXX= 13836 ;; 13837 13838solaris*) 13839 case $cc_basename in 13840 CC*) 13841 # Adding this requires a known-good setup of shared libraries for 13842 # Sun compiler versions before 5.6, else PIC objects from an old 13843 # archive will be linked into the output, leading to subtle bugs. 13844 postdeps_CXX='-lCstd -lCrun' 13845 ;; 13846 esac 13847 ;; 13848esac 13849 13850 13851case " $postdeps_CXX " in 13852*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13853esac 13854 13855lt_prog_compiler_wl_CXX= 13856lt_prog_compiler_pic_CXX= 13857lt_prog_compiler_static_CXX= 13858 13859{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13860echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13861 13862 # C++ specific cases for pic, static, wl, etc. 13863 if test "$GXX" = yes; then 13864 lt_prog_compiler_wl_CXX='-Wl,' 13865 lt_prog_compiler_static_CXX='-static' 13866 13867 case $host_os in 13868 aix*) 13869 # All AIX code is PIC. 13870 if test "$host_cpu" = ia64; then 13871 # AIX 5 now supports IA64 processor 13872 lt_prog_compiler_static_CXX='-Bstatic' 13873 fi 13874 ;; 13875 amigaos*) 13876 # FIXME: we need at least 68020 code to build shared libraries, but 13877 # adding the `-m68020' flag to GCC prevents building anything better, 13878 # like `-m68040'. 13879 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13880 ;; 13881 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13882 # PIC is the default for these OSes. 13883 ;; 13884 mingw* | os2* | pw32*) 13885 # This hack is so that the source file can tell whether it is being 13886 # built for inclusion in a dll (and should export symbols for example). 13887 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13888 ;; 13889 darwin* | rhapsody*) 13890 # PIC is the default on this platform 13891 # Common symbols not allowed in MH_DYLIB files 13892 lt_prog_compiler_pic_CXX='-fno-common' 13893 ;; 13894 *djgpp*) 13895 # DJGPP does not support shared libraries at all 13896 lt_prog_compiler_pic_CXX= 13897 ;; 13898 interix3*) 13899 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13900 # Instead, we relocate shared libraries at runtime. 13901 ;; 13902 sysv4*MP*) 13903 if test -d /usr/nec; then 13904 lt_prog_compiler_pic_CXX=-Kconform_pic 13905 fi 13906 ;; 13907 hpux*) 13908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13909 # not for PA HP-UX. 13910 case $host_cpu in 13911 hppa*64*|ia64*) 13912 ;; 13913 *) 13914 lt_prog_compiler_pic_CXX='-fPIC' 13915 ;; 13916 esac 13917 ;; 13918 *) 13919 lt_prog_compiler_pic_CXX='-fPIC' 13920 ;; 13921 esac 13922 else 13923 case $host_os in 13924 aix4* | aix5*) 13925 # All AIX code is PIC. 13926 if test "$host_cpu" = ia64; then 13927 # AIX 5 now supports IA64 processor 13928 lt_prog_compiler_static_CXX='-Bstatic' 13929 else 13930 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13931 fi 13932 ;; 13933 chorus*) 13934 case $cc_basename in 13935 cxch68*) 13936 # Green Hills C++ Compiler 13937 # _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" 13938 ;; 13939 esac 13940 ;; 13941 darwin*) 13942 # PIC is the default on this platform 13943 # Common symbols not allowed in MH_DYLIB files 13944 case $cc_basename in 13945 xlc*) 13946 lt_prog_compiler_pic_CXX='-qnocommon' 13947 lt_prog_compiler_wl_CXX='-Wl,' 13948 ;; 13949 esac 13950 ;; 13951 dgux*) 13952 case $cc_basename in 13953 ec++*) 13954 lt_prog_compiler_pic_CXX='-KPIC' 13955 ;; 13956 ghcx*) 13957 # Green Hills C++ Compiler 13958 lt_prog_compiler_pic_CXX='-pic' 13959 ;; 13960 *) 13961 ;; 13962 esac 13963 ;; 13964 freebsd* | dragonfly*) 13965 # FreeBSD uses GNU C++ 13966 ;; 13967 hpux9* | hpux10* | hpux11*) 13968 case $cc_basename in 13969 CC*) 13970 lt_prog_compiler_wl_CXX='-Wl,' 13971 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13972 if test "$host_cpu" != ia64; then 13973 lt_prog_compiler_pic_CXX='+Z' 13974 fi 13975 ;; 13976 aCC*) 13977 lt_prog_compiler_wl_CXX='-Wl,' 13978 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13979 case $host_cpu in 13980 hppa*64*|ia64*) 13981 # +Z the default 13982 ;; 13983 *) 13984 lt_prog_compiler_pic_CXX='+Z' 13985 ;; 13986 esac 13987 ;; 13988 *) 13989 ;; 13990 esac 13991 ;; 13992 interix*) 13993 # This is c89, which is MS Visual C++ (no shared libs) 13994 # Anyone wants to do a port? 13995 ;; 13996 irix5* | irix6* | nonstopux*) 13997 case $cc_basename in 13998 CC*) 13999 lt_prog_compiler_wl_CXX='-Wl,' 14000 lt_prog_compiler_static_CXX='-non_shared' 14001 # CC pic flag -KPIC is the default. 14002 ;; 14003 *) 14004 ;; 14005 esac 14006 ;; 14007 linux* | k*bsd*-gnu) 14008 case $cc_basename in 14009 KCC*) 14010 # KAI C++ Compiler 14011 lt_prog_compiler_wl_CXX='--backend -Wl,' 14012 lt_prog_compiler_pic_CXX='-fPIC' 14013 ;; 14014 icpc* | ecpc*) 14015 # Intel C++ 14016 lt_prog_compiler_wl_CXX='-Wl,' 14017 lt_prog_compiler_pic_CXX='-KPIC' 14018 lt_prog_compiler_static_CXX='-static' 14019 ;; 14020 pgCC*) 14021 # Portland Group C++ compiler. 14022 lt_prog_compiler_wl_CXX='-Wl,' 14023 lt_prog_compiler_pic_CXX='-fpic' 14024 lt_prog_compiler_static_CXX='-Bstatic' 14025 ;; 14026 cxx*) 14027 # Compaq C++ 14028 # Make sure the PIC flag is empty. It appears that all Alpha 14029 # Linux and Compaq Tru64 Unix objects are PIC. 14030 lt_prog_compiler_pic_CXX= 14031 lt_prog_compiler_static_CXX='-non_shared' 14032 ;; 14033 *) 14034 ;; 14035 esac 14036 ;; 14037 lynxos*) 14038 ;; 14039 m88k*) 14040 ;; 14041 mvs*) 14042 case $cc_basename in 14043 cxx*) 14044 lt_prog_compiler_pic_CXX='-W c,exportall' 14045 ;; 14046 *) 14047 ;; 14048 esac 14049 ;; 14050 netbsd* | netbsdelf*-gnu) 14051 ;; 14052 osf3* | osf4* | osf5*) 14053 case $cc_basename in 14054 KCC*) 14055 lt_prog_compiler_wl_CXX='--backend -Wl,' 14056 ;; 14057 RCC*) 14058 # Rational C++ 2.4.1 14059 lt_prog_compiler_pic_CXX='-pic' 14060 ;; 14061 cxx*) 14062 # Digital/Compaq C++ 14063 lt_prog_compiler_wl_CXX='-Wl,' 14064 # Make sure the PIC flag is empty. It appears that all Alpha 14065 # Linux and Compaq Tru64 Unix objects are PIC. 14066 lt_prog_compiler_pic_CXX= 14067 lt_prog_compiler_static_CXX='-non_shared' 14068 ;; 14069 *) 14070 ;; 14071 esac 14072 ;; 14073 psos*) 14074 ;; 14075 solaris*) 14076 case $cc_basename in 14077 CC*) 14078 # Sun C++ 4.2, 5.x and Centerline C++ 14079 lt_prog_compiler_pic_CXX='-KPIC' 14080 lt_prog_compiler_static_CXX='-Bstatic' 14081 lt_prog_compiler_wl_CXX='-Qoption ld ' 14082 ;; 14083 gcx*) 14084 # Green Hills C++ Compiler 14085 lt_prog_compiler_pic_CXX='-PIC' 14086 ;; 14087 *) 14088 ;; 14089 esac 14090 ;; 14091 sunos4*) 14092 case $cc_basename in 14093 CC*) 14094 # Sun C++ 4.x 14095 lt_prog_compiler_pic_CXX='-pic' 14096 lt_prog_compiler_static_CXX='-Bstatic' 14097 ;; 14098 lcc*) 14099 # Lucid 14100 lt_prog_compiler_pic_CXX='-pic' 14101 ;; 14102 *) 14103 ;; 14104 esac 14105 ;; 14106 tandem*) 14107 case $cc_basename in 14108 NCC*) 14109 # NonStop-UX NCC 3.20 14110 lt_prog_compiler_pic_CXX='-KPIC' 14111 ;; 14112 *) 14113 ;; 14114 esac 14115 ;; 14116 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14117 case $cc_basename in 14118 CC*) 14119 lt_prog_compiler_wl_CXX='-Wl,' 14120 lt_prog_compiler_pic_CXX='-KPIC' 14121 lt_prog_compiler_static_CXX='-Bstatic' 14122 ;; 14123 esac 14124 ;; 14125 vxworks*) 14126 ;; 14127 *) 14128 lt_prog_compiler_can_build_shared_CXX=no 14129 ;; 14130 esac 14131 fi 14132 14133{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 14134echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 14135 14136# 14137# Check to make sure the PIC flag actually works. 14138# 14139if test -n "$lt_prog_compiler_pic_CXX"; then 14140 14141{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14142echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 14143if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 14144 echo $ECHO_N "(cached) $ECHO_C" >&6 14145else 14146 lt_prog_compiler_pic_works_CXX=no 14147 ac_outfile=conftest.$ac_objext 14148 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14149 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14150 # Insert the option either (1) after the last *FLAGS variable, or 14151 # (2) before a word containing "conftest.", or (3) at the end. 14152 # Note that $ac_compile itself does not contain backslashes and begins 14153 # with a dollar sign (not a hyphen), so the echo should work correctly. 14154 # The option is referenced via a variable to avoid confusing sed. 14155 lt_compile=`echo "$ac_compile" | $SED \ 14156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14158 -e 's:$: $lt_compiler_flag:'` 14159 (eval echo "\"\$as_me:14159: $lt_compile\"" >&5) 14160 (eval "$lt_compile" 2>conftest.err) 14161 ac_status=$? 14162 cat conftest.err >&5 14163 echo "$as_me:14163: \$? = $ac_status" >&5 14164 if (exit $ac_status) && test -s "$ac_outfile"; then 14165 # The compiler can only warn and ignore the option if not recognized 14166 # So say no if there are warnings other than the usual output. 14167 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14169 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14170 lt_prog_compiler_pic_works_CXX=yes 14171 fi 14172 fi 14173 $rm conftest* 14174 14175fi 14176{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 14177echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 14178 14179if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 14180 case $lt_prog_compiler_pic_CXX in 14181 "" | " "*) ;; 14182 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14183 esac 14184else 14185 lt_prog_compiler_pic_CXX= 14186 lt_prog_compiler_can_build_shared_CXX=no 14187fi 14188 14189fi 14190case $host_os in 14191 # For platforms which do not support PIC, -DPIC is meaningless: 14192 *djgpp*) 14193 lt_prog_compiler_pic_CXX= 14194 ;; 14195 *) 14196 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14197 ;; 14198esac 14199 14200# 14201# Check to make sure the static flag actually works. 14202# 14203wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14204{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14205echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14206if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 14207 echo $ECHO_N "(cached) $ECHO_C" >&6 14208else 14209 lt_prog_compiler_static_works_CXX=no 14210 save_LDFLAGS="$LDFLAGS" 14211 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14212 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14213 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14214 # The linker can only warn and ignore the option if not recognized 14215 # So say no if there are warnings 14216 if test -s conftest.err; then 14217 # Append any errors to the config.log. 14218 cat conftest.err 1>&5 14219 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14221 if diff conftest.exp conftest.er2 >/dev/null; then 14222 lt_prog_compiler_static_works_CXX=yes 14223 fi 14224 else 14225 lt_prog_compiler_static_works_CXX=yes 14226 fi 14227 fi 14228 $rm conftest* 14229 LDFLAGS="$save_LDFLAGS" 14230 14231fi 14232{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 14233echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 14234 14235if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 14236 : 14237else 14238 lt_prog_compiler_static_CXX= 14239fi 14240 14241 14242{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14243echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14244if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14245 echo $ECHO_N "(cached) $ECHO_C" >&6 14246else 14247 lt_cv_prog_compiler_c_o_CXX=no 14248 $rm -r conftest 2>/dev/null 14249 mkdir conftest 14250 cd conftest 14251 mkdir out 14252 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14253 14254 lt_compiler_flag="-o out/conftest2.$ac_objext" 14255 # Insert the option either (1) after the last *FLAGS variable, or 14256 # (2) before a word containing "conftest.", or (3) at the end. 14257 # Note that $ac_compile itself does not contain backslashes and begins 14258 # with a dollar sign (not a hyphen), so the echo should work correctly. 14259 lt_compile=`echo "$ac_compile" | $SED \ 14260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14262 -e 's:$: $lt_compiler_flag:'` 14263 (eval echo "\"\$as_me:14263: $lt_compile\"" >&5) 14264 (eval "$lt_compile" 2>out/conftest.err) 14265 ac_status=$? 14266 cat out/conftest.err >&5 14267 echo "$as_me:14267: \$? = $ac_status" >&5 14268 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14269 then 14270 # The compiler can only warn and ignore the option if not recognized 14271 # So say no if there are warnings 14272 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14273 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14274 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14275 lt_cv_prog_compiler_c_o_CXX=yes 14276 fi 14277 fi 14278 chmod u+w . 2>&5 14279 $rm conftest* 14280 # SGI C++ compiler will create directory out/ii_files/ for 14281 # template instantiation 14282 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14283 $rm out/* && rmdir out 14284 cd .. 14285 rmdir conftest 14286 $rm conftest* 14287 14288fi 14289{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14290echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 14291 14292 14293hard_links="nottested" 14294if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14295 # do not overwrite the value of need_locks provided by the user 14296 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14297echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14298 hard_links=yes 14299 $rm conftest* 14300 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14301 touch conftest.a 14302 ln conftest.a conftest.b 2>&5 || hard_links=no 14303 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14304 { echo "$as_me:$LINENO: result: $hard_links" >&5 14305echo "${ECHO_T}$hard_links" >&6; } 14306 if test "$hard_links" = no; then 14307 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14308echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14309 need_locks=warn 14310 fi 14311else 14312 need_locks=no 14313fi 14314 14315{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14316echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14317 14318 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14319 case $host_os in 14320 aix4* | aix5*) 14321 # If we're using GNU nm, then we don't want the "-C" option. 14322 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14323 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14324 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' 14325 else 14326 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' 14327 fi 14328 ;; 14329 pw32*) 14330 export_symbols_cmds_CXX="$ltdll_cmds" 14331 ;; 14332 cygwin* | mingw*) 14333 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' 14334 ;; 14335 linux* | k*bsd*-gnu) 14336 link_all_deplibs_CXX=no 14337 ;; 14338 *) 14339 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14340 ;; 14341 esac 14342 14343{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14344echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 14345test "$ld_shlibs_CXX" = no && can_build_shared=no 14346 14347# 14348# Do we need to explicitly link libc? 14349# 14350case "x$archive_cmds_need_lc_CXX" in 14351x|xyes) 14352 # Assume -lc should be added 14353 archive_cmds_need_lc_CXX=yes 14354 14355 if test "$enable_shared" = yes && test "$GCC" = yes; then 14356 case $archive_cmds_CXX in 14357 *'~'*) 14358 # FIXME: we may have to deal with multi-command sequences. 14359 ;; 14360 '$CC '*) 14361 # Test whether the compiler implicitly links with -lc since on some 14362 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14363 # to ld, don't add -lc before -lgcc. 14364 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14365echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14366 $rm conftest* 14367 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14368 14369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14370 (eval $ac_compile) 2>&5 14371 ac_status=$? 14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14373 (exit $ac_status); } 2>conftest.err; then 14374 soname=conftest 14375 lib=conftest 14376 libobjs=conftest.$ac_objext 14377 deplibs= 14378 wl=$lt_prog_compiler_wl_CXX 14379 pic_flag=$lt_prog_compiler_pic_CXX 14380 compiler_flags=-v 14381 linker_flags=-v 14382 verstring= 14383 output_objdir=. 14384 libname=conftest 14385 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14386 allow_undefined_flag_CXX= 14387 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14388 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14389 ac_status=$? 14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14391 (exit $ac_status); } 14392 then 14393 archive_cmds_need_lc_CXX=no 14394 else 14395 archive_cmds_need_lc_CXX=yes 14396 fi 14397 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14398 else 14399 cat conftest.err 1>&5 14400 fi 14401 $rm conftest* 14402 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 14403echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 14404 ;; 14405 esac 14406 fi 14407 ;; 14408esac 14409 14410{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14411echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14412library_names_spec= 14413libname_spec='lib$name' 14414soname_spec= 14415shrext_cmds=".so" 14416postinstall_cmds= 14417postuninstall_cmds= 14418finish_cmds= 14419finish_eval= 14420shlibpath_var= 14421shlibpath_overrides_runpath=unknown 14422version_type=none 14423dynamic_linker="$host_os ld.so" 14424sys_lib_dlsearch_path_spec="/lib /usr/lib" 14425if test "$GCC" = yes; then 14426 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14427 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14428 # if the path contains ";" then we assume it to be the separator 14429 # otherwise default to the standard path separator (i.e. ":") - it is 14430 # assumed that no part of a normal pathname contains ";" but that should 14431 # okay in the real world where ";" in dirpaths is itself problematic. 14432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14433 else 14434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14435 fi 14436else 14437 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14438fi 14439need_lib_prefix=unknown 14440hardcode_into_libs=no 14441 14442# when you set need_version to no, make sure it does not cause -set_version 14443# flags to be left without arguments 14444need_version=unknown 14445 14446case $host_os in 14447aix3*) 14448 version_type=linux 14449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14450 shlibpath_var=LIBPATH 14451 14452 # AIX 3 has no versioning support, so we append a major version to the name. 14453 soname_spec='${libname}${release}${shared_ext}$major' 14454 ;; 14455 14456aix4* | aix5*) 14457 version_type=linux 14458 need_lib_prefix=no 14459 need_version=no 14460 hardcode_into_libs=yes 14461 if test "$host_cpu" = ia64; then 14462 # AIX 5 supports IA64 14463 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14464 shlibpath_var=LD_LIBRARY_PATH 14465 else 14466 # With GCC up to 2.95.x, collect2 would create an import file 14467 # for dependence libraries. The import file would start with 14468 # the line `#! .'. This would cause the generated library to 14469 # depend on `.', always an invalid library. This was fixed in 14470 # development snapshots of GCC prior to 3.0. 14471 case $host_os in 14472 aix4 | aix4.[01] | aix4.[01].*) 14473 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14474 echo ' yes ' 14475 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14476 : 14477 else 14478 can_build_shared=no 14479 fi 14480 ;; 14481 esac 14482 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14483 # soname into executable. Probably we can add versioning support to 14484 # collect2, so additional links can be useful in future. 14485 if test "$aix_use_runtimelinking" = yes; then 14486 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14487 # instead of lib<name>.a to let people know that these are not 14488 # typical AIX shared libraries. 14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14490 else 14491 # We preserve .a as extension for shared libraries through AIX4.2 14492 # and later when we are not doing run time linking. 14493 library_names_spec='${libname}${release}.a $libname.a' 14494 soname_spec='${libname}${release}${shared_ext}$major' 14495 fi 14496 shlibpath_var=LIBPATH 14497 fi 14498 ;; 14499 14500amigaos*) 14501 library_names_spec='$libname.ixlibrary $libname.a' 14502 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14503 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' 14504 ;; 14505 14506beos*) 14507 library_names_spec='${libname}${shared_ext}' 14508 dynamic_linker="$host_os ld.so" 14509 shlibpath_var=LIBRARY_PATH 14510 ;; 14511 14512bsdi[45]*) 14513 version_type=linux 14514 need_version=no 14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14516 soname_spec='${libname}${release}${shared_ext}$major' 14517 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14518 shlibpath_var=LD_LIBRARY_PATH 14519 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14520 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14521 # the default ld.so.conf also contains /usr/contrib/lib and 14522 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14523 # libtool to hard-code these into programs 14524 ;; 14525 14526cygwin* | mingw* | pw32*) 14527 version_type=windows 14528 shrext_cmds=".dll" 14529 need_version=no 14530 need_lib_prefix=no 14531 14532 case $GCC,$host_os in 14533 yes,cygwin* | yes,mingw* | yes,pw32*) 14534 library_names_spec='$libname.dll.a' 14535 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14536 postinstall_cmds='base_file=`basename \${file}`~ 14537 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14538 dldir=$destdir/`dirname \$dlpath`~ 14539 test -d \$dldir || mkdir -p \$dldir~ 14540 $install_prog $dir/$dlname \$dldir/$dlname~ 14541 chmod a+x \$dldir/$dlname' 14542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14543 dlpath=$dir/\$dldll~ 14544 $rm \$dlpath' 14545 shlibpath_overrides_runpath=yes 14546 14547 case $host_os in 14548 cygwin*) 14549 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14550 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14551 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14552 ;; 14553 mingw*) 14554 # MinGW DLLs use traditional 'lib' prefix 14555 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14556 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14557 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14558 # It is most probably a Windows format PATH printed by 14559 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14560 # path with ; separators, and with drive letters. We can handle the 14561 # drive letters (cygwin fileutils understands them), so leave them, 14562 # especially as we might pass files found there to a mingw objdump, 14563 # which wouldn't understand a cygwinified path. Ahh. 14564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14565 else 14566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14567 fi 14568 ;; 14569 pw32*) 14570 # pw32 DLLs use 'pw' prefix rather than 'lib' 14571 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14572 ;; 14573 esac 14574 ;; 14575 14576 *) 14577 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14578 ;; 14579 esac 14580 dynamic_linker='Win32 ld.exe' 14581 # FIXME: first we should search . and the directory the executable is in 14582 shlibpath_var=PATH 14583 ;; 14584 14585darwin* | rhapsody*) 14586 dynamic_linker="$host_os dyld" 14587 version_type=darwin 14588 need_lib_prefix=no 14589 need_version=no 14590 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14591 soname_spec='${libname}${release}${major}$shared_ext' 14592 shlibpath_overrides_runpath=yes 14593 shlibpath_var=DYLD_LIBRARY_PATH 14594 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14595 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14596 if test "$GCC" = yes; then 14597 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 14598 else 14599 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14600 fi 14601 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14602 ;; 14603 14604dgux*) 14605 version_type=linux 14606 need_lib_prefix=no 14607 need_version=no 14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14609 soname_spec='${libname}${release}${shared_ext}$major' 14610 shlibpath_var=LD_LIBRARY_PATH 14611 ;; 14612 14613freebsd1*) 14614 dynamic_linker=no 14615 ;; 14616 14617freebsd* | dragonfly*) 14618 # DragonFly does not have aout. When/if they implement a new 14619 # versioning mechanism, adjust this. 14620 if test -x /usr/bin/objformat; then 14621 objformat=`/usr/bin/objformat` 14622 else 14623 case $host_os in 14624 freebsd[123]*) objformat=aout ;; 14625 *) objformat=elf ;; 14626 esac 14627 fi 14628 version_type=freebsd-$objformat 14629 case $version_type in 14630 freebsd-elf*) 14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14632 need_version=no 14633 need_lib_prefix=no 14634 ;; 14635 freebsd-*) 14636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14637 need_version=yes 14638 ;; 14639 esac 14640 shlibpath_var=LD_LIBRARY_PATH 14641 case $host_os in 14642 freebsd2*) 14643 shlibpath_overrides_runpath=yes 14644 ;; 14645 freebsd3.[01]* | freebsdelf3.[01]*) 14646 shlibpath_overrides_runpath=yes 14647 hardcode_into_libs=yes 14648 ;; 14649 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14650 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14651 shlibpath_overrides_runpath=no 14652 hardcode_into_libs=yes 14653 ;; 14654 freebsd*) # from 4.6 on 14655 shlibpath_overrides_runpath=yes 14656 hardcode_into_libs=yes 14657 ;; 14658 esac 14659 ;; 14660 14661gnu*) 14662 version_type=linux 14663 need_lib_prefix=no 14664 need_version=no 14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14666 soname_spec='${libname}${release}${shared_ext}$major' 14667 shlibpath_var=LD_LIBRARY_PATH 14668 hardcode_into_libs=yes 14669 ;; 14670 14671hpux9* | hpux10* | hpux11*) 14672 # Give a soname corresponding to the major version so that dld.sl refuses to 14673 # link against other versions. 14674 version_type=sunos 14675 need_lib_prefix=no 14676 need_version=no 14677 case $host_cpu in 14678 ia64*) 14679 shrext_cmds='.so' 14680 hardcode_into_libs=yes 14681 dynamic_linker="$host_os dld.so" 14682 shlibpath_var=LD_LIBRARY_PATH 14683 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14685 soname_spec='${libname}${release}${shared_ext}$major' 14686 if test "X$HPUX_IA64_MODE" = X32; then 14687 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14688 else 14689 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14690 fi 14691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14692 ;; 14693 hppa*64*) 14694 shrext_cmds='.sl' 14695 hardcode_into_libs=yes 14696 dynamic_linker="$host_os dld.sl" 14697 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14700 soname_spec='${libname}${release}${shared_ext}$major' 14701 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14703 ;; 14704 *) 14705 shrext_cmds='.sl' 14706 dynamic_linker="$host_os dld.sl" 14707 shlibpath_var=SHLIB_PATH 14708 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14710 soname_spec='${libname}${release}${shared_ext}$major' 14711 ;; 14712 esac 14713 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14714 postinstall_cmds='chmod 555 $lib' 14715 ;; 14716 14717interix3*) 14718 version_type=linux 14719 need_lib_prefix=no 14720 need_version=no 14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14722 soname_spec='${libname}${release}${shared_ext}$major' 14723 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14724 shlibpath_var=LD_LIBRARY_PATH 14725 shlibpath_overrides_runpath=no 14726 hardcode_into_libs=yes 14727 ;; 14728 14729irix5* | irix6* | nonstopux*) 14730 case $host_os in 14731 nonstopux*) version_type=nonstopux ;; 14732 *) 14733 if test "$lt_cv_prog_gnu_ld" = yes; then 14734 version_type=linux 14735 else 14736 version_type=irix 14737 fi ;; 14738 esac 14739 need_lib_prefix=no 14740 need_version=no 14741 soname_spec='${libname}${release}${shared_ext}$major' 14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14743 case $host_os in 14744 irix5* | nonstopux*) 14745 libsuff= shlibsuff= 14746 ;; 14747 *) 14748 case $LD in # libtool.m4 will add one of these switches to LD 14749 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14750 libsuff= shlibsuff= libmagic=32-bit;; 14751 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14752 libsuff=32 shlibsuff=N32 libmagic=N32;; 14753 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14754 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14755 *) libsuff= shlibsuff= libmagic=never-match;; 14756 esac 14757 ;; 14758 esac 14759 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14760 shlibpath_overrides_runpath=no 14761 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14762 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14763 hardcode_into_libs=yes 14764 ;; 14765 14766# No shared lib support for Linux oldld, aout, or coff. 14767linux*oldld* | linux*aout* | linux*coff*) 14768 dynamic_linker=no 14769 ;; 14770 14771# This must be Linux ELF. 14772linux* | k*bsd*-gnu) 14773 version_type=linux 14774 need_lib_prefix=no 14775 need_version=no 14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14777 soname_spec='${libname}${release}${shared_ext}$major' 14778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14779 shlibpath_var=LD_LIBRARY_PATH 14780 shlibpath_overrides_runpath=no 14781 # This implies no fast_install, which is unacceptable. 14782 # Some rework will be needed to allow for fast_install 14783 # before this can be enabled. 14784 hardcode_into_libs=yes 14785 14786 # Append ld.so.conf contents to the search path 14787 if test -f /etc/ld.so.conf; then 14788 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14789 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14790 fi 14791 14792 # We used to test for /lib/ld.so.1 and disable shared libraries on 14793 # powerpc, because MkLinux only supported shared libraries with the 14794 # GNU dynamic linker. Since this was broken with cross compilers, 14795 # most powerpc-linux boxes support dynamic linking these days and 14796 # people can always --disable-shared, the test was removed, and we 14797 # assume the GNU/Linux dynamic linker is in use. 14798 dynamic_linker='GNU/Linux ld.so' 14799 ;; 14800 14801netbsdelf*-gnu) 14802 version_type=linux 14803 need_lib_prefix=no 14804 need_version=no 14805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14806 soname_spec='${libname}${release}${shared_ext}$major' 14807 shlibpath_var=LD_LIBRARY_PATH 14808 shlibpath_overrides_runpath=no 14809 hardcode_into_libs=yes 14810 dynamic_linker='NetBSD ld.elf_so' 14811 ;; 14812 14813netbsd*) 14814 version_type=sunos 14815 need_lib_prefix=no 14816 need_version=no 14817 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14820 dynamic_linker='NetBSD (a.out) ld.so' 14821 else 14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14823 soname_spec='${libname}${release}${shared_ext}$major' 14824 dynamic_linker='NetBSD ld.elf_so' 14825 fi 14826 shlibpath_var=LD_LIBRARY_PATH 14827 shlibpath_overrides_runpath=yes 14828 hardcode_into_libs=yes 14829 ;; 14830 14831newsos6) 14832 version_type=linux 14833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14834 shlibpath_var=LD_LIBRARY_PATH 14835 shlibpath_overrides_runpath=yes 14836 ;; 14837 14838nto-qnx*) 14839 version_type=linux 14840 need_lib_prefix=no 14841 need_version=no 14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14843 soname_spec='${libname}${release}${shared_ext}$major' 14844 shlibpath_var=LD_LIBRARY_PATH 14845 shlibpath_overrides_runpath=yes 14846 ;; 14847 14848openbsd*) 14849 version_type=sunos 14850 sys_lib_dlsearch_path_spec="/usr/lib" 14851 need_lib_prefix=no 14852 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14853 case $host_os in 14854 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14855 *) need_version=no ;; 14856 esac 14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14859 shlibpath_var=LD_LIBRARY_PATH 14860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14861 case $host_os in 14862 openbsd2.[89] | openbsd2.[89].*) 14863 shlibpath_overrides_runpath=no 14864 ;; 14865 *) 14866 shlibpath_overrides_runpath=yes 14867 ;; 14868 esac 14869 else 14870 shlibpath_overrides_runpath=yes 14871 fi 14872 ;; 14873 14874os2*) 14875 libname_spec='$name' 14876 shrext_cmds=".dll" 14877 need_lib_prefix=no 14878 library_names_spec='$libname${shared_ext} $libname.a' 14879 dynamic_linker='OS/2 ld.exe' 14880 shlibpath_var=LIBPATH 14881 ;; 14882 14883osf3* | osf4* | osf5*) 14884 version_type=osf 14885 need_lib_prefix=no 14886 need_version=no 14887 soname_spec='${libname}${release}${shared_ext}$major' 14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14889 shlibpath_var=LD_LIBRARY_PATH 14890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14891 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14892 ;; 14893 14894solaris*) 14895 version_type=linux 14896 need_lib_prefix=no 14897 need_version=no 14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14899 soname_spec='${libname}${release}${shared_ext}$major' 14900 shlibpath_var=LD_LIBRARY_PATH 14901 shlibpath_overrides_runpath=yes 14902 hardcode_into_libs=yes 14903 # ldd complains unless libraries are executable 14904 postinstall_cmds='chmod +x $lib' 14905 ;; 14906 14907sunos4*) 14908 version_type=sunos 14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14910 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14911 shlibpath_var=LD_LIBRARY_PATH 14912 shlibpath_overrides_runpath=yes 14913 if test "$with_gnu_ld" = yes; then 14914 need_lib_prefix=no 14915 fi 14916 need_version=yes 14917 ;; 14918 14919sysv4 | sysv4.3*) 14920 version_type=linux 14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14922 soname_spec='${libname}${release}${shared_ext}$major' 14923 shlibpath_var=LD_LIBRARY_PATH 14924 case $host_vendor in 14925 sni) 14926 shlibpath_overrides_runpath=no 14927 need_lib_prefix=no 14928 export_dynamic_flag_spec='${wl}-Blargedynsym' 14929 runpath_var=LD_RUN_PATH 14930 ;; 14931 siemens) 14932 need_lib_prefix=no 14933 ;; 14934 motorola) 14935 need_lib_prefix=no 14936 need_version=no 14937 shlibpath_overrides_runpath=no 14938 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14939 ;; 14940 esac 14941 ;; 14942 14943sysv4*MP*) 14944 if test -d /usr/nec ;then 14945 version_type=linux 14946 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14947 soname_spec='$libname${shared_ext}.$major' 14948 shlibpath_var=LD_LIBRARY_PATH 14949 fi 14950 ;; 14951 14952sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14953 version_type=freebsd-elf 14954 need_lib_prefix=no 14955 need_version=no 14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14957 soname_spec='${libname}${release}${shared_ext}$major' 14958 shlibpath_var=LD_LIBRARY_PATH 14959 hardcode_into_libs=yes 14960 if test "$with_gnu_ld" = yes; then 14961 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14962 shlibpath_overrides_runpath=no 14963 else 14964 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14965 shlibpath_overrides_runpath=yes 14966 case $host_os in 14967 sco3.2v5*) 14968 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14969 ;; 14970 esac 14971 fi 14972 sys_lib_dlsearch_path_spec='/usr/lib' 14973 ;; 14974 14975uts4*) 14976 version_type=linux 14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14978 soname_spec='${libname}${release}${shared_ext}$major' 14979 shlibpath_var=LD_LIBRARY_PATH 14980 ;; 14981 14982*) 14983 dynamic_linker=no 14984 ;; 14985esac 14986{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14987echo "${ECHO_T}$dynamic_linker" >&6; } 14988test "$dynamic_linker" = no && can_build_shared=no 14989 14990variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14991if test "$GCC" = yes; then 14992 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14993fi 14994 14995{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14996echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 14997hardcode_action_CXX= 14998if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14999 test -n "$runpath_var_CXX" || \ 15000 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15001 15002 # We can hardcode non-existant directories. 15003 if test "$hardcode_direct_CXX" != no && 15004 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15005 # have to relink, otherwise we might link with an installed library 15006 # when we should be linking with a yet-to-be-installed one 15007 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15008 test "$hardcode_minus_L_CXX" != no; then 15009 # Linking always hardcodes the temporary library directory. 15010 hardcode_action_CXX=relink 15011 else 15012 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15013 hardcode_action_CXX=immediate 15014 fi 15015else 15016 # We cannot hardcode anything, or else we can only hardcode existing 15017 # directories. 15018 hardcode_action_CXX=unsupported 15019fi 15020{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 15021echo "${ECHO_T}$hardcode_action_CXX" >&6; } 15022 15023if test "$hardcode_action_CXX" = relink; then 15024 # Fast installation is not supported 15025 enable_fast_install=no 15026elif test "$shlibpath_overrides_runpath" = yes || 15027 test "$enable_shared" = no; then 15028 # Fast installation is not necessary 15029 enable_fast_install=needless 15030fi 15031 15032 15033# The else clause should only fire when bootstrapping the 15034# libtool distribution, otherwise you forgot to ship ltmain.sh 15035# with your package, and you will get complaints that there are 15036# no rules to generate ltmain.sh. 15037if test -f "$ltmain"; then 15038 # See if we are running on zsh, and set the options which allow our commands through 15039 # without removal of \ escapes. 15040 if test -n "${ZSH_VERSION+set}" ; then 15041 setopt NO_GLOB_SUBST 15042 fi 15043 # Now quote all the things that may contain metacharacters while being 15044 # careful not to overquote the AC_SUBSTed values. We take copies of the 15045 # variables and quote the copies for generation of the libtool script. 15046 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15047 SED SHELL STRIP \ 15048 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15049 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15050 deplibs_check_method reload_flag reload_cmds need_locks \ 15051 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15052 lt_cv_sys_global_symbol_to_c_name_address \ 15053 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15054 old_postinstall_cmds old_postuninstall_cmds \ 15055 compiler_CXX \ 15056 CC_CXX \ 15057 LD_CXX \ 15058 lt_prog_compiler_wl_CXX \ 15059 lt_prog_compiler_pic_CXX \ 15060 lt_prog_compiler_static_CXX \ 15061 lt_prog_compiler_no_builtin_flag_CXX \ 15062 export_dynamic_flag_spec_CXX \ 15063 thread_safe_flag_spec_CXX \ 15064 whole_archive_flag_spec_CXX \ 15065 enable_shared_with_static_runtimes_CXX \ 15066 old_archive_cmds_CXX \ 15067 old_archive_from_new_cmds_CXX \ 15068 predep_objects_CXX \ 15069 postdep_objects_CXX \ 15070 predeps_CXX \ 15071 postdeps_CXX \ 15072 compiler_lib_search_path_CXX \ 15073 archive_cmds_CXX \ 15074 archive_expsym_cmds_CXX \ 15075 postinstall_cmds_CXX \ 15076 postuninstall_cmds_CXX \ 15077 old_archive_from_expsyms_cmds_CXX \ 15078 allow_undefined_flag_CXX \ 15079 no_undefined_flag_CXX \ 15080 export_symbols_cmds_CXX \ 15081 hardcode_libdir_flag_spec_CXX \ 15082 hardcode_libdir_flag_spec_ld_CXX \ 15083 hardcode_libdir_separator_CXX \ 15084 hardcode_automatic_CXX \ 15085 module_cmds_CXX \ 15086 module_expsym_cmds_CXX \ 15087 lt_cv_prog_compiler_c_o_CXX \ 15088 exclude_expsyms_CXX \ 15089 include_expsyms_CXX; do 15090 15091 case $var in 15092 old_archive_cmds_CXX | \ 15093 old_archive_from_new_cmds_CXX | \ 15094 archive_cmds_CXX | \ 15095 archive_expsym_cmds_CXX | \ 15096 module_cmds_CXX | \ 15097 module_expsym_cmds_CXX | \ 15098 old_archive_from_expsyms_cmds_CXX | \ 15099 export_symbols_cmds_CXX | \ 15100 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15101 postinstall_cmds | postuninstall_cmds | \ 15102 old_postinstall_cmds | old_postuninstall_cmds | \ 15103 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15104 # Double-quote double-evaled strings. 15105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15106 ;; 15107 *) 15108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15109 ;; 15110 esac 15111 done 15112 15113 case $lt_echo in 15114 *'\$0 --fallback-echo"') 15115 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15116 ;; 15117 esac 15118 15119cfgfile="$ofile" 15120 15121 cat <<__EOF__ >> "$cfgfile" 15122# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15123 15124# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15125 15126# Shell to use when invoking shell scripts. 15127SHELL=$lt_SHELL 15128 15129# Whether or not to build shared libraries. 15130build_libtool_libs=$enable_shared 15131 15132# Whether or not to build static libraries. 15133build_old_libs=$enable_static 15134 15135# Whether or not to add -lc for building shared libraries. 15136build_libtool_need_lc=$archive_cmds_need_lc_CXX 15137 15138# Whether or not to disallow shared libs when runtime libs are static 15139allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 15140 15141# Whether or not to optimize for fast installation. 15142fast_install=$enable_fast_install 15143 15144# The host system. 15145host_alias=$host_alias 15146host=$host 15147host_os=$host_os 15148 15149# The build system. 15150build_alias=$build_alias 15151build=$build 15152build_os=$build_os 15153 15154# An echo program that does not interpret backslashes. 15155echo=$lt_echo 15156 15157# The archiver. 15158AR=$lt_AR 15159AR_FLAGS=$lt_AR_FLAGS 15160 15161# A C compiler. 15162LTCC=$lt_LTCC 15163 15164# LTCC compiler flags. 15165LTCFLAGS=$lt_LTCFLAGS 15166 15167# A language-specific compiler. 15168CC=$lt_compiler_CXX 15169 15170# Is the compiler the GNU C compiler? 15171with_gcc=$GCC_CXX 15172 15173# An ERE matcher. 15174EGREP=$lt_EGREP 15175 15176# The linker used to build libraries. 15177LD=$lt_LD_CXX 15178 15179# Whether we need hard or soft links. 15180LN_S=$lt_LN_S 15181 15182# A BSD-compatible nm program. 15183NM=$lt_NM 15184 15185# A symbol stripping program 15186STRIP=$lt_STRIP 15187 15188# Used to examine libraries when file_magic_cmd begins "file" 15189MAGIC_CMD=$MAGIC_CMD 15190 15191# Used on cygwin: DLL creation program. 15192DLLTOOL="$DLLTOOL" 15193 15194# Used on cygwin: object dumper. 15195OBJDUMP="$OBJDUMP" 15196 15197# Used on cygwin: assembler. 15198AS="$AS" 15199 15200# The name of the directory that contains temporary libtool files. 15201objdir=$objdir 15202 15203# How to create reloadable object files. 15204reload_flag=$lt_reload_flag 15205reload_cmds=$lt_reload_cmds 15206 15207# How to pass a linker flag through the compiler. 15208wl=$lt_lt_prog_compiler_wl_CXX 15209 15210# Object file suffix (normally "o"). 15211objext="$ac_objext" 15212 15213# Old archive suffix (normally "a"). 15214libext="$libext" 15215 15216# Shared library suffix (normally ".so"). 15217shrext_cmds='$shrext_cmds' 15218 15219# Executable file suffix (normally ""). 15220exeext="$exeext" 15221 15222# Additional compiler flags for building library objects. 15223pic_flag=$lt_lt_prog_compiler_pic_CXX 15224pic_mode=$pic_mode 15225 15226# What is the maximum length of a command? 15227max_cmd_len=$lt_cv_sys_max_cmd_len 15228 15229# Does compiler simultaneously support -c and -o options? 15230compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 15231 15232# Must we lock files when doing compilation? 15233need_locks=$lt_need_locks 15234 15235# Do we need the lib prefix for modules? 15236need_lib_prefix=$need_lib_prefix 15237 15238# Do we need a version for libraries? 15239need_version=$need_version 15240 15241# Whether dlopen is supported. 15242dlopen_support=$enable_dlopen 15243 15244# Whether dlopen of programs is supported. 15245dlopen_self=$enable_dlopen_self 15246 15247# Whether dlopen of statically linked programs is supported. 15248dlopen_self_static=$enable_dlopen_self_static 15249 15250# Compiler flag to prevent dynamic linking. 15251link_static_flag=$lt_lt_prog_compiler_static_CXX 15252 15253# Compiler flag to turn off builtin functions. 15254no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 15255 15256# Compiler flag to allow reflexive dlopens. 15257export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 15258 15259# Compiler flag to generate shared objects directly from archives. 15260whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 15261 15262# Compiler flag to generate thread-safe objects. 15263thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 15264 15265# Library versioning type. 15266version_type=$version_type 15267 15268# Format of library name prefix. 15269libname_spec=$lt_libname_spec 15270 15271# List of archive names. First name is the real one, the rest are links. 15272# The last name is the one that the linker finds with -lNAME. 15273library_names_spec=$lt_library_names_spec 15274 15275# The coded name of the library, if different from the real name. 15276soname_spec=$lt_soname_spec 15277 15278# Commands used to build and install an old-style archive. 15279RANLIB=$lt_RANLIB 15280old_archive_cmds=$lt_old_archive_cmds_CXX 15281old_postinstall_cmds=$lt_old_postinstall_cmds 15282old_postuninstall_cmds=$lt_old_postuninstall_cmds 15283 15284# Create an old-style archive from a shared archive. 15285old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 15286 15287# Create a temporary old-style archive to link instead of a shared archive. 15288old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 15289 15290# Commands used to build and install a shared archive. 15291archive_cmds=$lt_archive_cmds_CXX 15292archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 15293postinstall_cmds=$lt_postinstall_cmds 15294postuninstall_cmds=$lt_postuninstall_cmds 15295 15296# Commands used to build a loadable module (assumed same as above if empty) 15297module_cmds=$lt_module_cmds_CXX 15298module_expsym_cmds=$lt_module_expsym_cmds_CXX 15299 15300# Commands to strip libraries. 15301old_striplib=$lt_old_striplib 15302striplib=$lt_striplib 15303 15304# Dependencies to place before the objects being linked to create a 15305# shared library. 15306predep_objects=$lt_predep_objects_CXX 15307 15308# Dependencies to place after the objects being linked to create a 15309# shared library. 15310postdep_objects=$lt_postdep_objects_CXX 15311 15312# Dependencies to place before the objects being linked to create a 15313# shared library. 15314predeps=$lt_predeps_CXX 15315 15316# Dependencies to place after the objects being linked to create a 15317# shared library. 15318postdeps=$lt_postdeps_CXX 15319 15320# The library search path used internally by the compiler when linking 15321# a shared library. 15322compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 15323 15324# Method to check whether dependent libraries are shared objects. 15325deplibs_check_method=$lt_deplibs_check_method 15326 15327# Command to use when deplibs_check_method == file_magic. 15328file_magic_cmd=$lt_file_magic_cmd 15329 15330# Flag that allows shared libraries with undefined symbols to be built. 15331allow_undefined_flag=$lt_allow_undefined_flag_CXX 15332 15333# Flag that forces no undefined symbols. 15334no_undefined_flag=$lt_no_undefined_flag_CXX 15335 15336# Commands used to finish a libtool library installation in a directory. 15337finish_cmds=$lt_finish_cmds 15338 15339# Same as above, but a single script fragment to be evaled but not shown. 15340finish_eval=$lt_finish_eval 15341 15342# Take the output of nm and produce a listing of raw symbols and C names. 15343global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15344 15345# Transform the output of nm in a proper C declaration 15346global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15347 15348# Transform the output of nm in a C name address pair 15349global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15350 15351# This is the shared library runtime path variable. 15352runpath_var=$runpath_var 15353 15354# This is the shared library path variable. 15355shlibpath_var=$shlibpath_var 15356 15357# Is shlibpath searched before the hard-coded library search path? 15358shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15359 15360# How to hardcode a shared library path into an executable. 15361hardcode_action=$hardcode_action_CXX 15362 15363# Whether we should hardcode library paths into libraries. 15364hardcode_into_libs=$hardcode_into_libs 15365 15366# Flag to hardcode \$libdir into a binary during linking. 15367# This must work even if \$libdir does not exist. 15368hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 15369 15370# If ld is used when linking, flag to hardcode \$libdir into 15371# a binary during linking. This must work even if \$libdir does 15372# not exist. 15373hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 15374 15375# Whether we need a single -rpath flag with a separated argument. 15376hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 15377 15378# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15379# resulting binary. 15380hardcode_direct=$hardcode_direct_CXX 15381 15382# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15383# resulting binary. 15384hardcode_minus_L=$hardcode_minus_L_CXX 15385 15386# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15387# the resulting binary. 15388hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 15389 15390# Set to yes if building a shared library automatically hardcodes DIR into the library 15391# and all subsequent libraries and executables linked against it. 15392hardcode_automatic=$hardcode_automatic_CXX 15393 15394# Variables whose values should be saved in libtool wrapper scripts and 15395# restored at relink time. 15396variables_saved_for_relink="$variables_saved_for_relink" 15397 15398# Whether libtool must link a program against all its dependency libraries. 15399link_all_deplibs=$link_all_deplibs_CXX 15400 15401# Compile-time system search path for libraries 15402sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15403 15404# Run-time system search path for libraries 15405sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15406 15407# Fix the shell variable \$srcfile for the compiler. 15408fix_srcfile_path="$fix_srcfile_path_CXX" 15409 15410# Set to yes if exported symbols are required. 15411always_export_symbols=$always_export_symbols_CXX 15412 15413# The commands to list exported symbols. 15414export_symbols_cmds=$lt_export_symbols_cmds_CXX 15415 15416# The commands to extract the exported symbol list from a shared archive. 15417extract_expsyms_cmds=$lt_extract_expsyms_cmds 15418 15419# Symbols that should not be listed in the preloaded symbols. 15420exclude_expsyms=$lt_exclude_expsyms_CXX 15421 15422# Symbols that must always be exported. 15423include_expsyms=$lt_include_expsyms_CXX 15424 15425# ### END LIBTOOL TAG CONFIG: $tagname 15426 15427__EOF__ 15428 15429 15430else 15431 # If there is no Makefile yet, we rely on a make rule to execute 15432 # `config.status --recheck' to rerun these tests and create the 15433 # libtool script then. 15434 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15435 if test -f "$ltmain_in"; then 15436 test -f Makefile && make "$ltmain" 15437 fi 15438fi 15439 15440 15441ac_ext=c 15442ac_cpp='$CPP $CPPFLAGS' 15443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15445ac_compiler_gnu=$ac_cv_c_compiler_gnu 15446 15447CC=$lt_save_CC 15448LDCXX=$LD 15449LD=$lt_save_LD 15450GCC=$lt_save_GCC 15451with_gnu_ldcxx=$with_gnu_ld 15452with_gnu_ld=$lt_save_with_gnu_ld 15453lt_cv_path_LDCXX=$lt_cv_path_LD 15454lt_cv_path_LD=$lt_save_path_LD 15455lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15456lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15457 15458 else 15459 tagname="" 15460 fi 15461 ;; 15462 15463 F77) 15464 if test -n "$F77" && test "X$F77" != "Xno"; then 15465 15466ac_ext=f 15467ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 15468ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15469ac_compiler_gnu=$ac_cv_f77_compiler_gnu 15470 15471 15472archive_cmds_need_lc_F77=no 15473allow_undefined_flag_F77= 15474always_export_symbols_F77=no 15475archive_expsym_cmds_F77= 15476export_dynamic_flag_spec_F77= 15477hardcode_direct_F77=no 15478hardcode_libdir_flag_spec_F77= 15479hardcode_libdir_flag_spec_ld_F77= 15480hardcode_libdir_separator_F77= 15481hardcode_minus_L_F77=no 15482hardcode_automatic_F77=no 15483module_cmds_F77= 15484module_expsym_cmds_F77= 15485link_all_deplibs_F77=unknown 15486old_archive_cmds_F77=$old_archive_cmds 15487no_undefined_flag_F77= 15488whole_archive_flag_spec_F77= 15489enable_shared_with_static_runtimes_F77=no 15490 15491# Source file extension for f77 test sources. 15492ac_ext=f 15493 15494# Object file extension for compiled f77 test sources. 15495objext=o 15496objext_F77=$objext 15497 15498# Code to be used in simple compile tests 15499lt_simple_compile_test_code=" subroutine t\n return\n end\n" 15500 15501# Code to be used in simple link tests 15502lt_simple_link_test_code=" program t\n end\n" 15503 15504# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15505 15506# If no C compiler was specified, use CC. 15507LTCC=${LTCC-"$CC"} 15508 15509# If no C compiler flags were specified, use CFLAGS. 15510LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15511 15512# Allow CC to be a program name with arguments. 15513compiler=$CC 15514 15515 15516# save warnings/boilerplate of simple test code 15517ac_outfile=conftest.$ac_objext 15518printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15519eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15520_lt_compiler_boilerplate=`cat conftest.err` 15521$rm conftest* 15522 15523ac_outfile=conftest.$ac_objext 15524printf "$lt_simple_link_test_code" >conftest.$ac_ext 15525eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15526_lt_linker_boilerplate=`cat conftest.err` 15527$rm conftest* 15528 15529 15530# Allow CC to be a program name with arguments. 15531lt_save_CC="$CC" 15532CC=${F77-"f77"} 15533compiler=$CC 15534compiler_F77=$CC 15535for cc_temp in $compiler""; do 15536 case $cc_temp in 15537 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15538 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15539 \-*) ;; 15540 *) break;; 15541 esac 15542done 15543cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15544 15545 15546{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 15547echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 15548{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 15549echo "${ECHO_T}$can_build_shared" >&6; } 15550 15551{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 15552echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 15553test "$can_build_shared" = "no" && enable_shared=no 15554 15555# On AIX, shared libraries and static libraries use the same namespace, and 15556# are all built from PIC. 15557case $host_os in 15558aix3*) 15559 test "$enable_shared" = yes && enable_static=no 15560 if test -n "$RANLIB"; then 15561 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15562 postinstall_cmds='$RANLIB $lib' 15563 fi 15564 ;; 15565aix4* | aix5*) 15566 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 15567 test "$enable_shared" = yes && enable_static=no 15568 fi 15569 ;; 15570esac 15571{ echo "$as_me:$LINENO: result: $enable_shared" >&5 15572echo "${ECHO_T}$enable_shared" >&6; } 15573 15574{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 15575echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 15576# Make sure either enable_shared or enable_static is yes. 15577test "$enable_shared" = yes || enable_static=yes 15578{ echo "$as_me:$LINENO: result: $enable_static" >&5 15579echo "${ECHO_T}$enable_static" >&6; } 15580 15581GCC_F77="$G77" 15582LD_F77="$LD" 15583 15584lt_prog_compiler_wl_F77= 15585lt_prog_compiler_pic_F77= 15586lt_prog_compiler_static_F77= 15587 15588{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15589echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 15590 15591 if test "$GCC" = yes; then 15592 lt_prog_compiler_wl_F77='-Wl,' 15593 lt_prog_compiler_static_F77='-static' 15594 15595 case $host_os in 15596 aix*) 15597 # All AIX code is PIC. 15598 if test "$host_cpu" = ia64; then 15599 # AIX 5 now supports IA64 processor 15600 lt_prog_compiler_static_F77='-Bstatic' 15601 fi 15602 ;; 15603 15604 amigaos*) 15605 # FIXME: we need at least 68020 code to build shared libraries, but 15606 # adding the `-m68020' flag to GCC prevents building anything better, 15607 # like `-m68040'. 15608 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 15609 ;; 15610 15611 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15612 # PIC is the default for these OSes. 15613 ;; 15614 15615 mingw* | pw32* | os2*) 15616 # This hack is so that the source file can tell whether it is being 15617 # built for inclusion in a dll (and should export symbols for example). 15618 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15619 ;; 15620 15621 darwin* | rhapsody*) 15622 # PIC is the default on this platform 15623 # Common symbols not allowed in MH_DYLIB files 15624 lt_prog_compiler_pic_F77='-fno-common' 15625 ;; 15626 15627 interix3*) 15628 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15629 # Instead, we relocate shared libraries at runtime. 15630 ;; 15631 15632 msdosdjgpp*) 15633 # Just because we use GCC doesn't mean we suddenly get shared libraries 15634 # on systems that don't support them. 15635 lt_prog_compiler_can_build_shared_F77=no 15636 enable_shared=no 15637 ;; 15638 15639 sysv4*MP*) 15640 if test -d /usr/nec; then 15641 lt_prog_compiler_pic_F77=-Kconform_pic 15642 fi 15643 ;; 15644 15645 hpux*) 15646 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15647 # not for PA HP-UX. 15648 case $host_cpu in 15649 hppa*64*|ia64*) 15650 # +Z the default 15651 ;; 15652 *) 15653 lt_prog_compiler_pic_F77='-fPIC' 15654 ;; 15655 esac 15656 ;; 15657 15658 *) 15659 lt_prog_compiler_pic_F77='-fPIC' 15660 ;; 15661 esac 15662 else 15663 # PORTME Check for flag to pass linker flags through the system compiler. 15664 case $host_os in 15665 aix*) 15666 lt_prog_compiler_wl_F77='-Wl,' 15667 if test "$host_cpu" = ia64; then 15668 # AIX 5 now supports IA64 processor 15669 lt_prog_compiler_static_F77='-Bstatic' 15670 else 15671 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15672 fi 15673 ;; 15674 darwin*) 15675 # PIC is the default on this platform 15676 # Common symbols not allowed in MH_DYLIB files 15677 case $cc_basename in 15678 xlc*) 15679 lt_prog_compiler_pic_F77='-qnocommon' 15680 lt_prog_compiler_wl_F77='-Wl,' 15681 ;; 15682 esac 15683 ;; 15684 15685 mingw* | pw32* | os2*) 15686 # This hack is so that the source file can tell whether it is being 15687 # built for inclusion in a dll (and should export symbols for example). 15688 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15689 ;; 15690 15691 hpux9* | hpux10* | hpux11*) 15692 lt_prog_compiler_wl_F77='-Wl,' 15693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15694 # not for PA HP-UX. 15695 case $host_cpu in 15696 hppa*64*|ia64*) 15697 # +Z the default 15698 ;; 15699 *) 15700 lt_prog_compiler_pic_F77='+Z' 15701 ;; 15702 esac 15703 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15704 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15705 ;; 15706 15707 irix5* | irix6* | nonstopux*) 15708 lt_prog_compiler_wl_F77='-Wl,' 15709 # PIC (with -KPIC) is the default. 15710 lt_prog_compiler_static_F77='-non_shared' 15711 ;; 15712 15713 newsos6) 15714 lt_prog_compiler_pic_F77='-KPIC' 15715 lt_prog_compiler_static_F77='-Bstatic' 15716 ;; 15717 15718 linux* | k*bsd*-gnu) 15719 case $cc_basename in 15720 icc* | ecc*) 15721 lt_prog_compiler_wl_F77='-Wl,' 15722 lt_prog_compiler_pic_F77='-KPIC' 15723 lt_prog_compiler_static_F77='-static' 15724 ;; 15725 pgcc* | pgf77* | pgf90* | pgf95*) 15726 # Portland Group compilers (*not* the Pentium gcc compiler, 15727 # which looks to be a dead project) 15728 lt_prog_compiler_wl_F77='-Wl,' 15729 lt_prog_compiler_pic_F77='-fpic' 15730 lt_prog_compiler_static_F77='-Bstatic' 15731 ;; 15732 ccc*) 15733 lt_prog_compiler_wl_F77='-Wl,' 15734 # All Alpha code is PIC. 15735 lt_prog_compiler_static_F77='-non_shared' 15736 ;; 15737 esac 15738 ;; 15739 15740 osf3* | osf4* | osf5*) 15741 lt_prog_compiler_wl_F77='-Wl,' 15742 # All OSF/1 code is PIC. 15743 lt_prog_compiler_static_F77='-non_shared' 15744 ;; 15745 15746 solaris*) 15747 lt_prog_compiler_pic_F77='-KPIC' 15748 lt_prog_compiler_static_F77='-Bstatic' 15749 case $cc_basename in 15750 f77* | f90* | f95*) 15751 lt_prog_compiler_wl_F77='-Qoption ld ';; 15752 *) 15753 lt_prog_compiler_wl_F77='-Wl,';; 15754 esac 15755 ;; 15756 15757 sunos4*) 15758 lt_prog_compiler_wl_F77='-Qoption ld ' 15759 lt_prog_compiler_pic_F77='-PIC' 15760 lt_prog_compiler_static_F77='-Bstatic' 15761 ;; 15762 15763 sysv4 | sysv4.2uw2* | sysv4.3*) 15764 lt_prog_compiler_wl_F77='-Wl,' 15765 lt_prog_compiler_pic_F77='-KPIC' 15766 lt_prog_compiler_static_F77='-Bstatic' 15767 ;; 15768 15769 sysv4*MP*) 15770 if test -d /usr/nec ;then 15771 lt_prog_compiler_pic_F77='-Kconform_pic' 15772 lt_prog_compiler_static_F77='-Bstatic' 15773 fi 15774 ;; 15775 15776 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15777 lt_prog_compiler_wl_F77='-Wl,' 15778 lt_prog_compiler_pic_F77='-KPIC' 15779 lt_prog_compiler_static_F77='-Bstatic' 15780 ;; 15781 15782 unicos*) 15783 lt_prog_compiler_wl_F77='-Wl,' 15784 lt_prog_compiler_can_build_shared_F77=no 15785 ;; 15786 15787 uts4*) 15788 lt_prog_compiler_pic_F77='-pic' 15789 lt_prog_compiler_static_F77='-Bstatic' 15790 ;; 15791 15792 *) 15793 lt_prog_compiler_can_build_shared_F77=no 15794 ;; 15795 esac 15796 fi 15797 15798{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15799echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 15800 15801# 15802# Check to make sure the PIC flag actually works. 15803# 15804if test -n "$lt_prog_compiler_pic_F77"; then 15805 15806{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15807echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 15808if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 15809 echo $ECHO_N "(cached) $ECHO_C" >&6 15810else 15811 lt_prog_compiler_pic_works_F77=no 15812 ac_outfile=conftest.$ac_objext 15813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15814 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15815 # Insert the option either (1) after the last *FLAGS variable, or 15816 # (2) before a word containing "conftest.", or (3) at the end. 15817 # Note that $ac_compile itself does not contain backslashes and begins 15818 # with a dollar sign (not a hyphen), so the echo should work correctly. 15819 # The option is referenced via a variable to avoid confusing sed. 15820 lt_compile=`echo "$ac_compile" | $SED \ 15821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15823 -e 's:$: $lt_compiler_flag:'` 15824 (eval echo "\"\$as_me:15824: $lt_compile\"" >&5) 15825 (eval "$lt_compile" 2>conftest.err) 15826 ac_status=$? 15827 cat conftest.err >&5 15828 echo "$as_me:15828: \$? = $ac_status" >&5 15829 if (exit $ac_status) && test -s "$ac_outfile"; then 15830 # The compiler can only warn and ignore the option if not recognized 15831 # So say no if there are warnings other than the usual output. 15832 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15835 lt_prog_compiler_pic_works_F77=yes 15836 fi 15837 fi 15838 $rm conftest* 15839 15840fi 15841{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 15842echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 15843 15844if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 15845 case $lt_prog_compiler_pic_F77 in 15846 "" | " "*) ;; 15847 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15848 esac 15849else 15850 lt_prog_compiler_pic_F77= 15851 lt_prog_compiler_can_build_shared_F77=no 15852fi 15853 15854fi 15855case $host_os in 15856 # For platforms which do not support PIC, -DPIC is meaningless: 15857 *djgpp*) 15858 lt_prog_compiler_pic_F77= 15859 ;; 15860 *) 15861 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15862 ;; 15863esac 15864 15865# 15866# Check to make sure the static flag actually works. 15867# 15868wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 15869{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15870echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 15871if test "${lt_prog_compiler_static_works_F77+set}" = set; then 15872 echo $ECHO_N "(cached) $ECHO_C" >&6 15873else 15874 lt_prog_compiler_static_works_F77=no 15875 save_LDFLAGS="$LDFLAGS" 15876 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15877 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15879 # The linker can only warn and ignore the option if not recognized 15880 # So say no if there are warnings 15881 if test -s conftest.err; then 15882 # Append any errors to the config.log. 15883 cat conftest.err 1>&5 15884 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15886 if diff conftest.exp conftest.er2 >/dev/null; then 15887 lt_prog_compiler_static_works_F77=yes 15888 fi 15889 else 15890 lt_prog_compiler_static_works_F77=yes 15891 fi 15892 fi 15893 $rm conftest* 15894 LDFLAGS="$save_LDFLAGS" 15895 15896fi 15897{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 15898echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 15899 15900if test x"$lt_prog_compiler_static_works_F77" = xyes; then 15901 : 15902else 15903 lt_prog_compiler_static_F77= 15904fi 15905 15906 15907{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15908echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 15909if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 15910 echo $ECHO_N "(cached) $ECHO_C" >&6 15911else 15912 lt_cv_prog_compiler_c_o_F77=no 15913 $rm -r conftest 2>/dev/null 15914 mkdir conftest 15915 cd conftest 15916 mkdir out 15917 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15918 15919 lt_compiler_flag="-o out/conftest2.$ac_objext" 15920 # Insert the option either (1) after the last *FLAGS variable, or 15921 # (2) before a word containing "conftest.", or (3) at the end. 15922 # Note that $ac_compile itself does not contain backslashes and begins 15923 # with a dollar sign (not a hyphen), so the echo should work correctly. 15924 lt_compile=`echo "$ac_compile" | $SED \ 15925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15927 -e 's:$: $lt_compiler_flag:'` 15928 (eval echo "\"\$as_me:15928: $lt_compile\"" >&5) 15929 (eval "$lt_compile" 2>out/conftest.err) 15930 ac_status=$? 15931 cat out/conftest.err >&5 15932 echo "$as_me:15932: \$? = $ac_status" >&5 15933 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15934 then 15935 # The compiler can only warn and ignore the option if not recognized 15936 # So say no if there are warnings 15937 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15940 lt_cv_prog_compiler_c_o_F77=yes 15941 fi 15942 fi 15943 chmod u+w . 2>&5 15944 $rm conftest* 15945 # SGI C++ compiler will create directory out/ii_files/ for 15946 # template instantiation 15947 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15948 $rm out/* && rmdir out 15949 cd .. 15950 rmdir conftest 15951 $rm conftest* 15952 15953fi 15954{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 15955echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 15956 15957 15958hard_links="nottested" 15959if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 15960 # do not overwrite the value of need_locks provided by the user 15961 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15962echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 15963 hard_links=yes 15964 $rm conftest* 15965 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15966 touch conftest.a 15967 ln conftest.a conftest.b 2>&5 || hard_links=no 15968 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15969 { echo "$as_me:$LINENO: result: $hard_links" >&5 15970echo "${ECHO_T}$hard_links" >&6; } 15971 if test "$hard_links" = no; then 15972 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15973echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15974 need_locks=warn 15975 fi 15976else 15977 need_locks=no 15978fi 15979 15980{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15981echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 15982 15983 runpath_var= 15984 allow_undefined_flag_F77= 15985 enable_shared_with_static_runtimes_F77=no 15986 archive_cmds_F77= 15987 archive_expsym_cmds_F77= 15988 old_archive_From_new_cmds_F77= 15989 old_archive_from_expsyms_cmds_F77= 15990 export_dynamic_flag_spec_F77= 15991 whole_archive_flag_spec_F77= 15992 thread_safe_flag_spec_F77= 15993 hardcode_libdir_flag_spec_F77= 15994 hardcode_libdir_flag_spec_ld_F77= 15995 hardcode_libdir_separator_F77= 15996 hardcode_direct_F77=no 15997 hardcode_minus_L_F77=no 15998 hardcode_shlibpath_var_F77=unsupported 15999 link_all_deplibs_F77=unknown 16000 hardcode_automatic_F77=no 16001 module_cmds_F77= 16002 module_expsym_cmds_F77= 16003 always_export_symbols_F77=no 16004 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16005 # include_expsyms should be a list of space-separated symbols to be *always* 16006 # included in the symbol list 16007 include_expsyms_F77= 16008 # exclude_expsyms can be an extended regexp of symbols to exclude 16009 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16010 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16011 # as well as any symbol that contains `d'. 16012 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 16013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16014 # platforms (ab)use it in PIC code, but their linkers get confused if 16015 # the symbol is explicitly referenced. Since portable code cannot 16016 # rely on this symbol name, it's probably fine to never include it in 16017 # preloaded symbol tables. 16018 extract_expsyms_cmds= 16019 # Just being paranoid about ensuring that cc_basename is set. 16020 for cc_temp in $compiler""; do 16021 case $cc_temp in 16022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16024 \-*) ;; 16025 *) break;; 16026 esac 16027done 16028cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16029 16030 case $host_os in 16031 cygwin* | mingw* | pw32*) 16032 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16033 # When not using gcc, we currently assume that we are using 16034 # Microsoft Visual C++. 16035 if test "$GCC" != yes; then 16036 with_gnu_ld=no 16037 fi 16038 ;; 16039 interix*) 16040 # we just hope/assume this is gcc and not c89 (= MSVC++) 16041 with_gnu_ld=yes 16042 ;; 16043 openbsd*) 16044 with_gnu_ld=no 16045 ;; 16046 esac 16047 16048 ld_shlibs_F77=yes 16049 if test "$with_gnu_ld" = yes; then 16050 # If archive_cmds runs LD, not CC, wlarc should be empty 16051 wlarc='${wl}' 16052 16053 # Set some defaults for GNU ld with shared library support. These 16054 # are reset later if shared libraries are not supported. Putting them 16055 # here allows them to be overridden if necessary. 16056 runpath_var=LD_RUN_PATH 16057 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 16058 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 16059 # ancient GNU ld didn't support --whole-archive et. al. 16060 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16061 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16062 else 16063 whole_archive_flag_spec_F77= 16064 fi 16065 supports_anon_versioning=no 16066 case `$LD -v 2>/dev/null` in 16067 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16068 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16069 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16070 *\ 2.11.*) ;; # other 2.11 versions 16071 *) supports_anon_versioning=yes ;; 16072 esac 16073 16074 # See if GNU ld supports shared libraries. 16075 case $host_os in 16076 aix3* | aix4* | aix5*) 16077 # On AIX/PPC, the GNU linker is very broken 16078 if test "$host_cpu" != ia64; then 16079 ld_shlibs_F77=no 16080 cat <<EOF 1>&2 16081 16082*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16083*** to be unable to reliably create shared libraries on AIX. 16084*** Therefore, libtool is disabling shared libraries support. If you 16085*** really care for shared libraries, you may want to modify your PATH 16086*** so that a non-GNU linker is found, and then restart. 16087 16088EOF 16089 fi 16090 ;; 16091 16092 amigaos*) 16093 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)' 16094 hardcode_libdir_flag_spec_F77='-L$libdir' 16095 hardcode_minus_L_F77=yes 16096 16097 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16098 # that the semantics of dynamic libraries on AmigaOS, at least up 16099 # to version 4, is to share data among multiple programs linked 16100 # with the same dynamic library. Since this doesn't match the 16101 # behavior of shared libraries on other platforms, we can't use 16102 # them. 16103 ld_shlibs_F77=no 16104 ;; 16105 16106 beos*) 16107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16108 allow_undefined_flag_F77=unsupported 16109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16110 # support --undefined. This deserves some investigation. FIXME 16111 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16112 else 16113 ld_shlibs_F77=no 16114 fi 16115 ;; 16116 16117 cygwin* | mingw* | pw32*) 16118 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 16119 # as there is no search path for DLLs. 16120 hardcode_libdir_flag_spec_F77='-L$libdir' 16121 allow_undefined_flag_F77=unsupported 16122 always_export_symbols_F77=no 16123 enable_shared_with_static_runtimes_F77=yes 16124 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16125 16126 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16127 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16128 # If the export-symbols file already is a .def file (1st line 16129 # is EXPORTS), use it as is; otherwise, prepend... 16130 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16131 cp $export_symbols $output_objdir/$soname.def; 16132 else 16133 echo EXPORTS > $output_objdir/$soname.def; 16134 cat $export_symbols >> $output_objdir/$soname.def; 16135 fi~ 16136 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16137 else 16138 ld_shlibs_F77=no 16139 fi 16140 ;; 16141 16142 interix3*) 16143 hardcode_direct_F77=no 16144 hardcode_shlibpath_var_F77=no 16145 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16146 export_dynamic_flag_spec_F77='${wl}-E' 16147 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16148 # Instead, shared libraries are loaded at an image base (0x10000000 by 16149 # default) and relocated if they conflict, which is a slow very memory 16150 # consuming and fragmenting process. To avoid this, we pick a random, 16151 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16152 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16153 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' 16154 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' 16155 ;; 16156 16157 linux* | k*bsd*-gnu) 16158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16159 tmp_addflag= 16160 case $cc_basename,$host_cpu in 16161 pgcc*) # Portland Group C compiler 16162 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' 16163 tmp_addflag=' $pic_flag' 16164 ;; 16165 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16166 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' 16167 tmp_addflag=' $pic_flag -Mnomain' ;; 16168 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16169 tmp_addflag=' -i_dynamic' ;; 16170 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16171 tmp_addflag=' -i_dynamic -nofor_main' ;; 16172 ifc* | ifort*) # Intel Fortran compiler 16173 tmp_addflag=' -nofor_main' ;; 16174 esac 16175 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16176 16177 if test $supports_anon_versioning = yes; then 16178 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 16179 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16180 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16181 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16182 fi 16183 link_all_deplibs_F77=no 16184 else 16185 ld_shlibs_F77=no 16186 fi 16187 ;; 16188 16189 netbsd* | netbsdelf*-gnu) 16190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16191 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16192 wlarc= 16193 else 16194 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16195 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16196 fi 16197 ;; 16198 16199 solaris*) 16200 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16201 ld_shlibs_F77=no 16202 cat <<EOF 1>&2 16203 16204*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16205*** create shared libraries on Solaris systems. Therefore, libtool 16206*** is disabling shared libraries support. We urge you to upgrade GNU 16207*** binutils to release 2.9.1 or newer. Another option is to modify 16208*** your PATH or compiler configuration so that the native linker is 16209*** used, and then restart. 16210 16211EOF 16212 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16213 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16214 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16215 else 16216 ld_shlibs_F77=no 16217 fi 16218 ;; 16219 16220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16221 case `$LD -v 2>&1` in 16222 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16223 ld_shlibs_F77=no 16224 cat <<_LT_EOF 1>&2 16225 16226*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16227*** reliably create shared libraries on SCO systems. Therefore, libtool 16228*** is disabling shared libraries support. We urge you to upgrade GNU 16229*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16230*** your PATH or compiler configuration so that the native linker is 16231*** used, and then restart. 16232 16233_LT_EOF 16234 ;; 16235 *) 16236 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16237 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16238 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16239 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16240 else 16241 ld_shlibs_F77=no 16242 fi 16243 ;; 16244 esac 16245 ;; 16246 16247 sunos4*) 16248 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16249 wlarc= 16250 hardcode_direct_F77=yes 16251 hardcode_shlibpath_var_F77=no 16252 ;; 16253 16254 *) 16255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16256 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16257 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16258 else 16259 ld_shlibs_F77=no 16260 fi 16261 ;; 16262 esac 16263 16264 if test "$ld_shlibs_F77" = no; then 16265 runpath_var= 16266 hardcode_libdir_flag_spec_F77= 16267 export_dynamic_flag_spec_F77= 16268 whole_archive_flag_spec_F77= 16269 fi 16270 else 16271 # PORTME fill in a description of your system's linker (not GNU ld) 16272 case $host_os in 16273 aix3*) 16274 allow_undefined_flag_F77=unsupported 16275 always_export_symbols_F77=yes 16276 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' 16277 # Note: this linker hardcodes the directories in LIBPATH if there 16278 # are no directories specified by -L. 16279 hardcode_minus_L_F77=yes 16280 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16281 # Neither direct hardcoding nor static linking is supported with a 16282 # broken collect2. 16283 hardcode_direct_F77=unsupported 16284 fi 16285 ;; 16286 16287 aix4* | aix5*) 16288 if test "$host_cpu" = ia64; then 16289 # On IA64, the linker does run time linking by default, so we don't 16290 # have to do anything special. 16291 aix_use_runtimelinking=no 16292 exp_sym_flag='-Bexport' 16293 no_entry_flag="" 16294 else 16295 # If we're using GNU nm, then we don't want the "-C" option. 16296 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16297 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16298 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' 16299 else 16300 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' 16301 fi 16302 aix_use_runtimelinking=no 16303 16304 # Test if we are trying to use run time linking or normal 16305 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16306 # need to do runtime linking. 16307 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16308 for ld_flag in $LDFLAGS; do 16309 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16310 aix_use_runtimelinking=yes 16311 break 16312 fi 16313 done 16314 ;; 16315 esac 16316 16317 exp_sym_flag='-bexport' 16318 no_entry_flag='-bnoentry' 16319 fi 16320 16321 # When large executables or shared objects are built, AIX ld can 16322 # have problems creating the table of contents. If linking a library 16323 # or program results in "error TOC overflow" add -mminimal-toc to 16324 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16325 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16326 16327 archive_cmds_F77='' 16328 hardcode_direct_F77=yes 16329 hardcode_libdir_separator_F77=':' 16330 link_all_deplibs_F77=yes 16331 16332 if test "$GCC" = yes; then 16333 case $host_os in aix4.[012]|aix4.[012].*) 16334 # We only want to do this on AIX 4.2 and lower, the check 16335 # below for broken collect2 doesn't work under 4.3+ 16336 collect2name=`${CC} -print-prog-name=collect2` 16337 if test -f "$collect2name" && \ 16338 strings "$collect2name" | grep resolve_lib_name >/dev/null 16339 then 16340 # We have reworked collect2 16341 hardcode_direct_F77=yes 16342 else 16343 # We have old collect2 16344 hardcode_direct_F77=unsupported 16345 # It fails to find uninstalled libraries when the uninstalled 16346 # path is not listed in the libpath. Setting hardcode_minus_L 16347 # to unsupported forces relinking 16348 hardcode_minus_L_F77=yes 16349 hardcode_libdir_flag_spec_F77='-L$libdir' 16350 hardcode_libdir_separator_F77= 16351 fi 16352 ;; 16353 esac 16354 shared_flag='-shared' 16355 if test "$aix_use_runtimelinking" = yes; then 16356 shared_flag="$shared_flag "'${wl}-G' 16357 fi 16358 else 16359 # not using gcc 16360 if test "$host_cpu" = ia64; then 16361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16362 # chokes on -Wl,-G. The following line is correct: 16363 shared_flag='-G' 16364 else 16365 if test "$aix_use_runtimelinking" = yes; then 16366 shared_flag='${wl}-G' 16367 else 16368 shared_flag='${wl}-bM:SRE' 16369 fi 16370 fi 16371 fi 16372 16373 # It seems that -bexpall does not export symbols beginning with 16374 # underscore (_), so it is better to generate a list of symbols to export. 16375 always_export_symbols_F77=yes 16376 if test "$aix_use_runtimelinking" = yes; then 16377 # Warning - without using the other runtime loading flags (-brtl), 16378 # -berok will link without error, but may produce a broken library. 16379 allow_undefined_flag_F77='-berok' 16380 # Determine the default libpath from the value encoded in an empty executable. 16381 cat >conftest.$ac_ext <<_ACEOF 16382 program main 16383 16384 end 16385_ACEOF 16386rm -f conftest.$ac_objext conftest$ac_exeext 16387if { (ac_try="$ac_link" 16388case "(($ac_try" in 16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16390 *) ac_try_echo=$ac_try;; 16391esac 16392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16393 (eval "$ac_link") 2>conftest.er1 16394 ac_status=$? 16395 grep -v '^ *+' conftest.er1 >conftest.err 16396 rm -f conftest.er1 16397 cat conftest.err >&5 16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16399 (exit $ac_status); } && { 16400 test -z "$ac_f77_werror_flag" || 16401 test ! -s conftest.err 16402 } && test -s conftest$ac_exeext && 16403 $as_test_x conftest$ac_exeext; then 16404 16405aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16406}'` 16407# Check for a 64-bit object if we didn't find anything. 16408if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16409}'`; fi 16410else 16411 echo "$as_me: failed program was:" >&5 16412sed 's/^/| /' conftest.$ac_ext >&5 16413 16414 16415fi 16416 16417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16418 conftest$ac_exeext conftest.$ac_ext 16419if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16420 16421 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16422 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" 16423 else 16424 if test "$host_cpu" = ia64; then 16425 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 16426 allow_undefined_flag_F77="-z nodefs" 16427 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" 16428 else 16429 # Determine the default libpath from the value encoded in an empty executable. 16430 cat >conftest.$ac_ext <<_ACEOF 16431 program main 16432 16433 end 16434_ACEOF 16435rm -f conftest.$ac_objext conftest$ac_exeext 16436if { (ac_try="$ac_link" 16437case "(($ac_try" in 16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16439 *) ac_try_echo=$ac_try;; 16440esac 16441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16442 (eval "$ac_link") 2>conftest.er1 16443 ac_status=$? 16444 grep -v '^ *+' conftest.er1 >conftest.err 16445 rm -f conftest.er1 16446 cat conftest.err >&5 16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16448 (exit $ac_status); } && { 16449 test -z "$ac_f77_werror_flag" || 16450 test ! -s conftest.err 16451 } && test -s conftest$ac_exeext && 16452 $as_test_x conftest$ac_exeext; then 16453 16454aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16455}'` 16456# Check for a 64-bit object if we didn't find anything. 16457if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16458}'`; fi 16459else 16460 echo "$as_me: failed program was:" >&5 16461sed 's/^/| /' conftest.$ac_ext >&5 16462 16463 16464fi 16465 16466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16467 conftest$ac_exeext conftest.$ac_ext 16468if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16469 16470 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16471 # Warning - without using the other run time loading flags, 16472 # -berok will link without error, but may produce a broken library. 16473 no_undefined_flag_F77=' ${wl}-bernotok' 16474 allow_undefined_flag_F77=' ${wl}-berok' 16475 # Exported symbols can be pulled into shared objects from archives 16476 whole_archive_flag_spec_F77='$convenience' 16477 archive_cmds_need_lc_F77=yes 16478 # This is similar to how AIX traditionally builds its shared libraries. 16479 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' 16480 fi 16481 fi 16482 ;; 16483 16484 amigaos*) 16485 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)' 16486 hardcode_libdir_flag_spec_F77='-L$libdir' 16487 hardcode_minus_L_F77=yes 16488 # see comment about different semantics on the GNU ld section 16489 ld_shlibs_F77=no 16490 ;; 16491 16492 bsdi[45]*) 16493 export_dynamic_flag_spec_F77=-rdynamic 16494 ;; 16495 16496 cygwin* | mingw* | pw32*) 16497 # When not using gcc, we currently assume that we are using 16498 # Microsoft Visual C++. 16499 # hardcode_libdir_flag_spec is actually meaningless, as there is 16500 # no search path for DLLs. 16501 hardcode_libdir_flag_spec_F77=' ' 16502 allow_undefined_flag_F77=unsupported 16503 # Tell ltmain to make .lib files, not .a files. 16504 libext=lib 16505 # Tell ltmain to make .dll files, not .so files. 16506 shrext_cmds=".dll" 16507 # FIXME: Setting linknames here is a bad hack. 16508 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16509 # The linker will automatically build a .lib file if we build a DLL. 16510 old_archive_From_new_cmds_F77='true' 16511 # FIXME: Should let the user specify the lib program. 16512 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 16513 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 16514 enable_shared_with_static_runtimes_F77=yes 16515 ;; 16516 16517 darwin* | rhapsody*) 16518 case $host_os in 16519 rhapsody* | darwin1.[012]) 16520 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 16521 ;; 16522 *) # Darwin 1.3 on 16523 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16524 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16525 else 16526 case ${MACOSX_DEPLOYMENT_TARGET} in 16527 10.[012]) 16528 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16529 ;; 16530 10.*) 16531 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 16532 ;; 16533 esac 16534 fi 16535 ;; 16536 esac 16537 archive_cmds_need_lc_F77=no 16538 hardcode_direct_F77=no 16539 hardcode_automatic_F77=yes 16540 hardcode_shlibpath_var_F77=unsupported 16541 whole_archive_flag_spec_F77='' 16542 link_all_deplibs_F77=yes 16543 if test "$GCC" = yes ; then 16544 output_verbose_link_cmd='echo' 16545 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16546 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16547 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16548 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16549 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}' 16550 else 16551 case $cc_basename in 16552 xlc*) 16553 output_verbose_link_cmd='echo' 16554 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16555 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16556 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16557 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16558 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}' 16559 ;; 16560 *) 16561 ld_shlibs_F77=no 16562 ;; 16563 esac 16564 fi 16565 ;; 16566 16567 dgux*) 16568 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16569 hardcode_libdir_flag_spec_F77='-L$libdir' 16570 hardcode_shlibpath_var_F77=no 16571 ;; 16572 16573 freebsd1*) 16574 ld_shlibs_F77=no 16575 ;; 16576 16577 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16578 # support. Future versions do this automatically, but an explicit c++rt0.o 16579 # does not break anything, and helps significantly (at the cost of a little 16580 # extra space). 16581 freebsd2.2*) 16582 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16583 hardcode_libdir_flag_spec_F77='-R$libdir' 16584 hardcode_direct_F77=yes 16585 hardcode_shlibpath_var_F77=no 16586 ;; 16587 16588 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16589 freebsd2*) 16590 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16591 hardcode_direct_F77=yes 16592 hardcode_minus_L_F77=yes 16593 hardcode_shlibpath_var_F77=no 16594 ;; 16595 16596 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16597 freebsd* | dragonfly*) 16598 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16599 hardcode_libdir_flag_spec_F77='-R$libdir' 16600 hardcode_direct_F77=yes 16601 hardcode_shlibpath_var_F77=no 16602 ;; 16603 16604 hpux9*) 16605 if test "$GCC" = yes; then 16606 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' 16607 else 16608 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' 16609 fi 16610 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16611 hardcode_libdir_separator_F77=: 16612 hardcode_direct_F77=yes 16613 16614 # hardcode_minus_L: Not really in the search PATH, 16615 # but as the default location of the library. 16616 hardcode_minus_L_F77=yes 16617 export_dynamic_flag_spec_F77='${wl}-E' 16618 ;; 16619 16620 hpux10*) 16621 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16622 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16623 else 16624 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16625 fi 16626 if test "$with_gnu_ld" = no; then 16627 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16628 hardcode_libdir_separator_F77=: 16629 16630 hardcode_direct_F77=yes 16631 export_dynamic_flag_spec_F77='${wl}-E' 16632 16633 # hardcode_minus_L: Not really in the search PATH, 16634 # but as the default location of the library. 16635 hardcode_minus_L_F77=yes 16636 fi 16637 ;; 16638 16639 hpux11*) 16640 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16641 case $host_cpu in 16642 hppa*64*) 16643 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16644 ;; 16645 ia64*) 16646 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16647 ;; 16648 *) 16649 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16650 ;; 16651 esac 16652 else 16653 case $host_cpu in 16654 hppa*64*) 16655 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16656 ;; 16657 ia64*) 16658 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16659 ;; 16660 *) 16661 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16662 ;; 16663 esac 16664 fi 16665 if test "$with_gnu_ld" = no; then 16666 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16667 hardcode_libdir_separator_F77=: 16668 16669 case $host_cpu in 16670 hppa*64*|ia64*) 16671 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 16672 hardcode_direct_F77=no 16673 hardcode_shlibpath_var_F77=no 16674 ;; 16675 *) 16676 hardcode_direct_F77=yes 16677 export_dynamic_flag_spec_F77='${wl}-E' 16678 16679 # hardcode_minus_L: Not really in the search PATH, 16680 # but as the default location of the library. 16681 hardcode_minus_L_F77=yes 16682 ;; 16683 esac 16684 fi 16685 ;; 16686 16687 irix5* | irix6* | nonstopux*) 16688 if test "$GCC" = yes; then 16689 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' 16690 else 16691 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' 16692 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 16693 fi 16694 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16695 hardcode_libdir_separator_F77=: 16696 link_all_deplibs_F77=yes 16697 ;; 16698 16699 netbsd* | netbsdelf*-gnu) 16700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16701 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16702 else 16703 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16704 fi 16705 hardcode_libdir_flag_spec_F77='-R$libdir' 16706 hardcode_direct_F77=yes 16707 hardcode_shlibpath_var_F77=no 16708 ;; 16709 16710 newsos6) 16711 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16712 hardcode_direct_F77=yes 16713 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16714 hardcode_libdir_separator_F77=: 16715 hardcode_shlibpath_var_F77=no 16716 ;; 16717 16718 openbsd*) 16719 hardcode_direct_F77=yes 16720 hardcode_shlibpath_var_F77=no 16721 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16722 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16723 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16724 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16725 export_dynamic_flag_spec_F77='${wl}-E' 16726 else 16727 case $host_os in 16728 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16729 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16730 hardcode_libdir_flag_spec_F77='-R$libdir' 16731 ;; 16732 *) 16733 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16734 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16735 ;; 16736 esac 16737 fi 16738 ;; 16739 16740 os2*) 16741 hardcode_libdir_flag_spec_F77='-L$libdir' 16742 hardcode_minus_L_F77=yes 16743 allow_undefined_flag_F77=unsupported 16744 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' 16745 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16746 ;; 16747 16748 osf3*) 16749 if test "$GCC" = yes; then 16750 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16751 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' 16752 else 16753 allow_undefined_flag_F77=' -expect_unresolved \*' 16754 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' 16755 fi 16756 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16757 hardcode_libdir_separator_F77=: 16758 ;; 16759 16760 osf4* | osf5*) # as osf3* with the addition of -msym flag 16761 if test "$GCC" = yes; then 16762 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16763 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' 16764 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16765 else 16766 allow_undefined_flag_F77=' -expect_unresolved \*' 16767 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' 16768 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~ 16769 $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' 16770 16771 # Both c and cxx compiler support -rpath directly 16772 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16773 fi 16774 hardcode_libdir_separator_F77=: 16775 ;; 16776 16777 solaris*) 16778 no_undefined_flag_F77=' -z text' 16779 if test "$GCC" = yes; then 16780 wlarc='${wl}' 16781 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16782 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16783 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16784 else 16785 wlarc='' 16786 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16787 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16788 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16789 fi 16790 hardcode_libdir_flag_spec_F77='-R$libdir' 16791 hardcode_shlibpath_var_F77=no 16792 case $host_os in 16793 solaris2.[0-5] | solaris2.[0-5].*) ;; 16794 *) 16795 # The compiler driver will combine linker options so we 16796 # cannot just pass the convience library names through 16797 # without $wl, iff we do not link with $LD. 16798 # Luckily, gcc supports the same syntax we need for Sun Studio. 16799 # Supported since Solaris 2.6 (maybe 2.5.1?) 16800 case $wlarc in 16801 '') 16802 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 16803 *) 16804 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 16805 esac ;; 16806 esac 16807 link_all_deplibs_F77=yes 16808 ;; 16809 16810 sunos4*) 16811 if test "x$host_vendor" = xsequent; then 16812 # Use $CC to link under sequent, because it throws in some extra .o 16813 # files that make .init and .fini sections work. 16814 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16815 else 16816 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16817 fi 16818 hardcode_libdir_flag_spec_F77='-L$libdir' 16819 hardcode_direct_F77=yes 16820 hardcode_minus_L_F77=yes 16821 hardcode_shlibpath_var_F77=no 16822 ;; 16823 16824 sysv4) 16825 case $host_vendor in 16826 sni) 16827 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16828 hardcode_direct_F77=yes # is this really true??? 16829 ;; 16830 siemens) 16831 ## LD is ld it makes a PLAMLIB 16832 ## CC just makes a GrossModule. 16833 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16834 reload_cmds_F77='$CC -r -o $output$reload_objs' 16835 hardcode_direct_F77=no 16836 ;; 16837 motorola) 16838 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16839 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16840 ;; 16841 esac 16842 runpath_var='LD_RUN_PATH' 16843 hardcode_shlibpath_var_F77=no 16844 ;; 16845 16846 sysv4.3*) 16847 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16848 hardcode_shlibpath_var_F77=no 16849 export_dynamic_flag_spec_F77='-Bexport' 16850 ;; 16851 16852 sysv4*MP*) 16853 if test -d /usr/nec; then 16854 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16855 hardcode_shlibpath_var_F77=no 16856 runpath_var=LD_RUN_PATH 16857 hardcode_runpath_var=yes 16858 ld_shlibs_F77=yes 16859 fi 16860 ;; 16861 16862 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16863 no_undefined_flag_F77='${wl}-z,text' 16864 archive_cmds_need_lc_F77=no 16865 hardcode_shlibpath_var_F77=no 16866 runpath_var='LD_RUN_PATH' 16867 16868 if test "$GCC" = yes; then 16869 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16870 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16871 else 16872 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16873 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16874 fi 16875 ;; 16876 16877 sysv5* | sco3.2v5* | sco5v6*) 16878 # Note: We can NOT use -z defs as we might desire, because we do not 16879 # link with -lc, and that would cause any symbols used from libc to 16880 # always be unresolved, which means just about no library would 16881 # ever link correctly. If we're not using GNU ld we use -z text 16882 # though, which does catch some bad symbols but isn't as heavy-handed 16883 # as -z defs. 16884 no_undefined_flag_F77='${wl}-z,text' 16885 allow_undefined_flag_F77='${wl}-z,nodefs' 16886 archive_cmds_need_lc_F77=no 16887 hardcode_shlibpath_var_F77=no 16888 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16889 hardcode_libdir_separator_F77=':' 16890 link_all_deplibs_F77=yes 16891 export_dynamic_flag_spec_F77='${wl}-Bexport' 16892 runpath_var='LD_RUN_PATH' 16893 16894 if test "$GCC" = yes; then 16895 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16896 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16897 else 16898 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16899 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16900 fi 16901 ;; 16902 16903 uts4*) 16904 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16905 hardcode_libdir_flag_spec_F77='-L$libdir' 16906 hardcode_shlibpath_var_F77=no 16907 ;; 16908 16909 *) 16910 ld_shlibs_F77=no 16911 ;; 16912 esac 16913 fi 16914 16915{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16916echo "${ECHO_T}$ld_shlibs_F77" >&6; } 16917test "$ld_shlibs_F77" = no && can_build_shared=no 16918 16919# 16920# Do we need to explicitly link libc? 16921# 16922case "x$archive_cmds_need_lc_F77" in 16923x|xyes) 16924 # Assume -lc should be added 16925 archive_cmds_need_lc_F77=yes 16926 16927 if test "$enable_shared" = yes && test "$GCC" = yes; then 16928 case $archive_cmds_F77 in 16929 *'~'*) 16930 # FIXME: we may have to deal with multi-command sequences. 16931 ;; 16932 '$CC '*) 16933 # Test whether the compiler implicitly links with -lc since on some 16934 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16935 # to ld, don't add -lc before -lgcc. 16936 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16937echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 16938 $rm conftest* 16939 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16940 16941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16942 (eval $ac_compile) 2>&5 16943 ac_status=$? 16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16945 (exit $ac_status); } 2>conftest.err; then 16946 soname=conftest 16947 lib=conftest 16948 libobjs=conftest.$ac_objext 16949 deplibs= 16950 wl=$lt_prog_compiler_wl_F77 16951 pic_flag=$lt_prog_compiler_pic_F77 16952 compiler_flags=-v 16953 linker_flags=-v 16954 verstring= 16955 output_objdir=. 16956 libname=conftest 16957 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16958 allow_undefined_flag_F77= 16959 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16960 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16961 ac_status=$? 16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16963 (exit $ac_status); } 16964 then 16965 archive_cmds_need_lc_F77=no 16966 else 16967 archive_cmds_need_lc_F77=yes 16968 fi 16969 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16970 else 16971 cat conftest.err 1>&5 16972 fi 16973 $rm conftest* 16974 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16975echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 16976 ;; 16977 esac 16978 fi 16979 ;; 16980esac 16981 16982{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16983echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 16984library_names_spec= 16985libname_spec='lib$name' 16986soname_spec= 16987shrext_cmds=".so" 16988postinstall_cmds= 16989postuninstall_cmds= 16990finish_cmds= 16991finish_eval= 16992shlibpath_var= 16993shlibpath_overrides_runpath=unknown 16994version_type=none 16995dynamic_linker="$host_os ld.so" 16996sys_lib_dlsearch_path_spec="/lib /usr/lib" 16997if test "$GCC" = yes; then 16998 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16999 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17000 # if the path contains ";" then we assume it to be the separator 17001 # otherwise default to the standard path separator (i.e. ":") - it is 17002 # assumed that no part of a normal pathname contains ";" but that should 17003 # okay in the real world where ";" in dirpaths is itself problematic. 17004 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17005 else 17006 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17007 fi 17008else 17009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17010fi 17011need_lib_prefix=unknown 17012hardcode_into_libs=no 17013 17014# when you set need_version to no, make sure it does not cause -set_version 17015# flags to be left without arguments 17016need_version=unknown 17017 17018case $host_os in 17019aix3*) 17020 version_type=linux 17021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17022 shlibpath_var=LIBPATH 17023 17024 # AIX 3 has no versioning support, so we append a major version to the name. 17025 soname_spec='${libname}${release}${shared_ext}$major' 17026 ;; 17027 17028aix4* | aix5*) 17029 version_type=linux 17030 need_lib_prefix=no 17031 need_version=no 17032 hardcode_into_libs=yes 17033 if test "$host_cpu" = ia64; then 17034 # AIX 5 supports IA64 17035 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17036 shlibpath_var=LD_LIBRARY_PATH 17037 else 17038 # With GCC up to 2.95.x, collect2 would create an import file 17039 # for dependence libraries. The import file would start with 17040 # the line `#! .'. This would cause the generated library to 17041 # depend on `.', always an invalid library. This was fixed in 17042 # development snapshots of GCC prior to 3.0. 17043 case $host_os in 17044 aix4 | aix4.[01] | aix4.[01].*) 17045 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17046 echo ' yes ' 17047 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17048 : 17049 else 17050 can_build_shared=no 17051 fi 17052 ;; 17053 esac 17054 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17055 # soname into executable. Probably we can add versioning support to 17056 # collect2, so additional links can be useful in future. 17057 if test "$aix_use_runtimelinking" = yes; then 17058 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17059 # instead of lib<name>.a to let people know that these are not 17060 # typical AIX shared libraries. 17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17062 else 17063 # We preserve .a as extension for shared libraries through AIX4.2 17064 # and later when we are not doing run time linking. 17065 library_names_spec='${libname}${release}.a $libname.a' 17066 soname_spec='${libname}${release}${shared_ext}$major' 17067 fi 17068 shlibpath_var=LIBPATH 17069 fi 17070 ;; 17071 17072amigaos*) 17073 library_names_spec='$libname.ixlibrary $libname.a' 17074 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17075 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' 17076 ;; 17077 17078beos*) 17079 library_names_spec='${libname}${shared_ext}' 17080 dynamic_linker="$host_os ld.so" 17081 shlibpath_var=LIBRARY_PATH 17082 ;; 17083 17084bsdi[45]*) 17085 version_type=linux 17086 need_version=no 17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17088 soname_spec='${libname}${release}${shared_ext}$major' 17089 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17090 shlibpath_var=LD_LIBRARY_PATH 17091 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17092 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17093 # the default ld.so.conf also contains /usr/contrib/lib and 17094 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17095 # libtool to hard-code these into programs 17096 ;; 17097 17098cygwin* | mingw* | pw32*) 17099 version_type=windows 17100 shrext_cmds=".dll" 17101 need_version=no 17102 need_lib_prefix=no 17103 17104 case $GCC,$host_os in 17105 yes,cygwin* | yes,mingw* | yes,pw32*) 17106 library_names_spec='$libname.dll.a' 17107 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17108 postinstall_cmds='base_file=`basename \${file}`~ 17109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17110 dldir=$destdir/`dirname \$dlpath`~ 17111 test -d \$dldir || mkdir -p \$dldir~ 17112 $install_prog $dir/$dlname \$dldir/$dlname~ 17113 chmod a+x \$dldir/$dlname' 17114 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17115 dlpath=$dir/\$dldll~ 17116 $rm \$dlpath' 17117 shlibpath_overrides_runpath=yes 17118 17119 case $host_os in 17120 cygwin*) 17121 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17122 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17123 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17124 ;; 17125 mingw*) 17126 # MinGW DLLs use traditional 'lib' prefix 17127 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17128 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17129 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17130 # It is most probably a Windows format PATH printed by 17131 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17132 # path with ; separators, and with drive letters. We can handle the 17133 # drive letters (cygwin fileutils understands them), so leave them, 17134 # especially as we might pass files found there to a mingw objdump, 17135 # which wouldn't understand a cygwinified path. Ahh. 17136 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17137 else 17138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17139 fi 17140 ;; 17141 pw32*) 17142 # pw32 DLLs use 'pw' prefix rather than 'lib' 17143 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17144 ;; 17145 esac 17146 ;; 17147 17148 *) 17149 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17150 ;; 17151 esac 17152 dynamic_linker='Win32 ld.exe' 17153 # FIXME: first we should search . and the directory the executable is in 17154 shlibpath_var=PATH 17155 ;; 17156 17157darwin* | rhapsody*) 17158 dynamic_linker="$host_os dyld" 17159 version_type=darwin 17160 need_lib_prefix=no 17161 need_version=no 17162 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17163 soname_spec='${libname}${release}${major}$shared_ext' 17164 shlibpath_overrides_runpath=yes 17165 shlibpath_var=DYLD_LIBRARY_PATH 17166 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17167 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17168 if test "$GCC" = yes; then 17169 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 17170 else 17171 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17172 fi 17173 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17174 ;; 17175 17176dgux*) 17177 version_type=linux 17178 need_lib_prefix=no 17179 need_version=no 17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17181 soname_spec='${libname}${release}${shared_ext}$major' 17182 shlibpath_var=LD_LIBRARY_PATH 17183 ;; 17184 17185freebsd1*) 17186 dynamic_linker=no 17187 ;; 17188 17189freebsd* | dragonfly*) 17190 # DragonFly does not have aout. When/if they implement a new 17191 # versioning mechanism, adjust this. 17192 if test -x /usr/bin/objformat; then 17193 objformat=`/usr/bin/objformat` 17194 else 17195 case $host_os in 17196 freebsd[123]*) objformat=aout ;; 17197 *) objformat=elf ;; 17198 esac 17199 fi 17200 version_type=freebsd-$objformat 17201 case $version_type in 17202 freebsd-elf*) 17203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17204 need_version=no 17205 need_lib_prefix=no 17206 ;; 17207 freebsd-*) 17208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17209 need_version=yes 17210 ;; 17211 esac 17212 shlibpath_var=LD_LIBRARY_PATH 17213 case $host_os in 17214 freebsd2*) 17215 shlibpath_overrides_runpath=yes 17216 ;; 17217 freebsd3.[01]* | freebsdelf3.[01]*) 17218 shlibpath_overrides_runpath=yes 17219 hardcode_into_libs=yes 17220 ;; 17221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17223 shlibpath_overrides_runpath=no 17224 hardcode_into_libs=yes 17225 ;; 17226 freebsd*) # from 4.6 on 17227 shlibpath_overrides_runpath=yes 17228 hardcode_into_libs=yes 17229 ;; 17230 esac 17231 ;; 17232 17233gnu*) 17234 version_type=linux 17235 need_lib_prefix=no 17236 need_version=no 17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17238 soname_spec='${libname}${release}${shared_ext}$major' 17239 shlibpath_var=LD_LIBRARY_PATH 17240 hardcode_into_libs=yes 17241 ;; 17242 17243hpux9* | hpux10* | hpux11*) 17244 # Give a soname corresponding to the major version so that dld.sl refuses to 17245 # link against other versions. 17246 version_type=sunos 17247 need_lib_prefix=no 17248 need_version=no 17249 case $host_cpu in 17250 ia64*) 17251 shrext_cmds='.so' 17252 hardcode_into_libs=yes 17253 dynamic_linker="$host_os dld.so" 17254 shlibpath_var=LD_LIBRARY_PATH 17255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17257 soname_spec='${libname}${release}${shared_ext}$major' 17258 if test "X$HPUX_IA64_MODE" = X32; then 17259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17260 else 17261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17262 fi 17263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17264 ;; 17265 hppa*64*) 17266 shrext_cmds='.sl' 17267 hardcode_into_libs=yes 17268 dynamic_linker="$host_os dld.sl" 17269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17272 soname_spec='${libname}${release}${shared_ext}$major' 17273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17275 ;; 17276 *) 17277 shrext_cmds='.sl' 17278 dynamic_linker="$host_os dld.sl" 17279 shlibpath_var=SHLIB_PATH 17280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17282 soname_spec='${libname}${release}${shared_ext}$major' 17283 ;; 17284 esac 17285 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17286 postinstall_cmds='chmod 555 $lib' 17287 ;; 17288 17289interix3*) 17290 version_type=linux 17291 need_lib_prefix=no 17292 need_version=no 17293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17294 soname_spec='${libname}${release}${shared_ext}$major' 17295 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17296 shlibpath_var=LD_LIBRARY_PATH 17297 shlibpath_overrides_runpath=no 17298 hardcode_into_libs=yes 17299 ;; 17300 17301irix5* | irix6* | nonstopux*) 17302 case $host_os in 17303 nonstopux*) version_type=nonstopux ;; 17304 *) 17305 if test "$lt_cv_prog_gnu_ld" = yes; then 17306 version_type=linux 17307 else 17308 version_type=irix 17309 fi ;; 17310 esac 17311 need_lib_prefix=no 17312 need_version=no 17313 soname_spec='${libname}${release}${shared_ext}$major' 17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17315 case $host_os in 17316 irix5* | nonstopux*) 17317 libsuff= shlibsuff= 17318 ;; 17319 *) 17320 case $LD in # libtool.m4 will add one of these switches to LD 17321 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17322 libsuff= shlibsuff= libmagic=32-bit;; 17323 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17324 libsuff=32 shlibsuff=N32 libmagic=N32;; 17325 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17326 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17327 *) libsuff= shlibsuff= libmagic=never-match;; 17328 esac 17329 ;; 17330 esac 17331 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17332 shlibpath_overrides_runpath=no 17333 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17334 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17335 hardcode_into_libs=yes 17336 ;; 17337 17338# No shared lib support for Linux oldld, aout, or coff. 17339linux*oldld* | linux*aout* | linux*coff*) 17340 dynamic_linker=no 17341 ;; 17342 17343# This must be Linux ELF. 17344linux* | k*bsd*-gnu) 17345 version_type=linux 17346 need_lib_prefix=no 17347 need_version=no 17348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17349 soname_spec='${libname}${release}${shared_ext}$major' 17350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17351 shlibpath_var=LD_LIBRARY_PATH 17352 shlibpath_overrides_runpath=no 17353 # This implies no fast_install, which is unacceptable. 17354 # Some rework will be needed to allow for fast_install 17355 # before this can be enabled. 17356 hardcode_into_libs=yes 17357 17358 # Append ld.so.conf contents to the search path 17359 if test -f /etc/ld.so.conf; then 17360 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17361 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17362 fi 17363 17364 # We used to test for /lib/ld.so.1 and disable shared libraries on 17365 # powerpc, because MkLinux only supported shared libraries with the 17366 # GNU dynamic linker. Since this was broken with cross compilers, 17367 # most powerpc-linux boxes support dynamic linking these days and 17368 # people can always --disable-shared, the test was removed, and we 17369 # assume the GNU/Linux dynamic linker is in use. 17370 dynamic_linker='GNU/Linux ld.so' 17371 ;; 17372 17373netbsdelf*-gnu) 17374 version_type=linux 17375 need_lib_prefix=no 17376 need_version=no 17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17378 soname_spec='${libname}${release}${shared_ext}$major' 17379 shlibpath_var=LD_LIBRARY_PATH 17380 shlibpath_overrides_runpath=no 17381 hardcode_into_libs=yes 17382 dynamic_linker='NetBSD ld.elf_so' 17383 ;; 17384 17385netbsd*) 17386 version_type=sunos 17387 need_lib_prefix=no 17388 need_version=no 17389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17392 dynamic_linker='NetBSD (a.out) ld.so' 17393 else 17394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17395 soname_spec='${libname}${release}${shared_ext}$major' 17396 dynamic_linker='NetBSD ld.elf_so' 17397 fi 17398 shlibpath_var=LD_LIBRARY_PATH 17399 shlibpath_overrides_runpath=yes 17400 hardcode_into_libs=yes 17401 ;; 17402 17403newsos6) 17404 version_type=linux 17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17406 shlibpath_var=LD_LIBRARY_PATH 17407 shlibpath_overrides_runpath=yes 17408 ;; 17409 17410nto-qnx*) 17411 version_type=linux 17412 need_lib_prefix=no 17413 need_version=no 17414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17415 soname_spec='${libname}${release}${shared_ext}$major' 17416 shlibpath_var=LD_LIBRARY_PATH 17417 shlibpath_overrides_runpath=yes 17418 ;; 17419 17420openbsd*) 17421 version_type=sunos 17422 sys_lib_dlsearch_path_spec="/usr/lib" 17423 need_lib_prefix=no 17424 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17425 case $host_os in 17426 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17427 *) need_version=no ;; 17428 esac 17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17431 shlibpath_var=LD_LIBRARY_PATH 17432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17433 case $host_os in 17434 openbsd2.[89] | openbsd2.[89].*) 17435 shlibpath_overrides_runpath=no 17436 ;; 17437 *) 17438 shlibpath_overrides_runpath=yes 17439 ;; 17440 esac 17441 else 17442 shlibpath_overrides_runpath=yes 17443 fi 17444 ;; 17445 17446os2*) 17447 libname_spec='$name' 17448 shrext_cmds=".dll" 17449 need_lib_prefix=no 17450 library_names_spec='$libname${shared_ext} $libname.a' 17451 dynamic_linker='OS/2 ld.exe' 17452 shlibpath_var=LIBPATH 17453 ;; 17454 17455osf3* | osf4* | osf5*) 17456 version_type=osf 17457 need_lib_prefix=no 17458 need_version=no 17459 soname_spec='${libname}${release}${shared_ext}$major' 17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17461 shlibpath_var=LD_LIBRARY_PATH 17462 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17463 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17464 ;; 17465 17466solaris*) 17467 version_type=linux 17468 need_lib_prefix=no 17469 need_version=no 17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17471 soname_spec='${libname}${release}${shared_ext}$major' 17472 shlibpath_var=LD_LIBRARY_PATH 17473 shlibpath_overrides_runpath=yes 17474 hardcode_into_libs=yes 17475 # ldd complains unless libraries are executable 17476 postinstall_cmds='chmod +x $lib' 17477 ;; 17478 17479sunos4*) 17480 version_type=sunos 17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17482 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17483 shlibpath_var=LD_LIBRARY_PATH 17484 shlibpath_overrides_runpath=yes 17485 if test "$with_gnu_ld" = yes; then 17486 need_lib_prefix=no 17487 fi 17488 need_version=yes 17489 ;; 17490 17491sysv4 | sysv4.3*) 17492 version_type=linux 17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17494 soname_spec='${libname}${release}${shared_ext}$major' 17495 shlibpath_var=LD_LIBRARY_PATH 17496 case $host_vendor in 17497 sni) 17498 shlibpath_overrides_runpath=no 17499 need_lib_prefix=no 17500 export_dynamic_flag_spec='${wl}-Blargedynsym' 17501 runpath_var=LD_RUN_PATH 17502 ;; 17503 siemens) 17504 need_lib_prefix=no 17505 ;; 17506 motorola) 17507 need_lib_prefix=no 17508 need_version=no 17509 shlibpath_overrides_runpath=no 17510 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17511 ;; 17512 esac 17513 ;; 17514 17515sysv4*MP*) 17516 if test -d /usr/nec ;then 17517 version_type=linux 17518 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17519 soname_spec='$libname${shared_ext}.$major' 17520 shlibpath_var=LD_LIBRARY_PATH 17521 fi 17522 ;; 17523 17524sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17525 version_type=freebsd-elf 17526 need_lib_prefix=no 17527 need_version=no 17528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17529 soname_spec='${libname}${release}${shared_ext}$major' 17530 shlibpath_var=LD_LIBRARY_PATH 17531 hardcode_into_libs=yes 17532 if test "$with_gnu_ld" = yes; then 17533 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17534 shlibpath_overrides_runpath=no 17535 else 17536 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17537 shlibpath_overrides_runpath=yes 17538 case $host_os in 17539 sco3.2v5*) 17540 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17541 ;; 17542 esac 17543 fi 17544 sys_lib_dlsearch_path_spec='/usr/lib' 17545 ;; 17546 17547uts4*) 17548 version_type=linux 17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17550 soname_spec='${libname}${release}${shared_ext}$major' 17551 shlibpath_var=LD_LIBRARY_PATH 17552 ;; 17553 17554*) 17555 dynamic_linker=no 17556 ;; 17557esac 17558{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17559echo "${ECHO_T}$dynamic_linker" >&6; } 17560test "$dynamic_linker" = no && can_build_shared=no 17561 17562variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17563if test "$GCC" = yes; then 17564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17565fi 17566 17567{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17568echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 17569hardcode_action_F77= 17570if test -n "$hardcode_libdir_flag_spec_F77" || \ 17571 test -n "$runpath_var_F77" || \ 17572 test "X$hardcode_automatic_F77" = "Xyes" ; then 17573 17574 # We can hardcode non-existant directories. 17575 if test "$hardcode_direct_F77" != no && 17576 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17577 # have to relink, otherwise we might link with an installed library 17578 # when we should be linking with a yet-to-be-installed one 17579 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 17580 test "$hardcode_minus_L_F77" != no; then 17581 # Linking always hardcodes the temporary library directory. 17582 hardcode_action_F77=relink 17583 else 17584 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17585 hardcode_action_F77=immediate 17586 fi 17587else 17588 # We cannot hardcode anything, or else we can only hardcode existing 17589 # directories. 17590 hardcode_action_F77=unsupported 17591fi 17592{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 17593echo "${ECHO_T}$hardcode_action_F77" >&6; } 17594 17595if test "$hardcode_action_F77" = relink; then 17596 # Fast installation is not supported 17597 enable_fast_install=no 17598elif test "$shlibpath_overrides_runpath" = yes || 17599 test "$enable_shared" = no; then 17600 # Fast installation is not necessary 17601 enable_fast_install=needless 17602fi 17603 17604 17605# The else clause should only fire when bootstrapping the 17606# libtool distribution, otherwise you forgot to ship ltmain.sh 17607# with your package, and you will get complaints that there are 17608# no rules to generate ltmain.sh. 17609if test -f "$ltmain"; then 17610 # See if we are running on zsh, and set the options which allow our commands through 17611 # without removal of \ escapes. 17612 if test -n "${ZSH_VERSION+set}" ; then 17613 setopt NO_GLOB_SUBST 17614 fi 17615 # Now quote all the things that may contain metacharacters while being 17616 # careful not to overquote the AC_SUBSTed values. We take copies of the 17617 # variables and quote the copies for generation of the libtool script. 17618 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17619 SED SHELL STRIP \ 17620 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17621 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17622 deplibs_check_method reload_flag reload_cmds need_locks \ 17623 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17624 lt_cv_sys_global_symbol_to_c_name_address \ 17625 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17626 old_postinstall_cmds old_postuninstall_cmds \ 17627 compiler_F77 \ 17628 CC_F77 \ 17629 LD_F77 \ 17630 lt_prog_compiler_wl_F77 \ 17631 lt_prog_compiler_pic_F77 \ 17632 lt_prog_compiler_static_F77 \ 17633 lt_prog_compiler_no_builtin_flag_F77 \ 17634 export_dynamic_flag_spec_F77 \ 17635 thread_safe_flag_spec_F77 \ 17636 whole_archive_flag_spec_F77 \ 17637 enable_shared_with_static_runtimes_F77 \ 17638 old_archive_cmds_F77 \ 17639 old_archive_from_new_cmds_F77 \ 17640 predep_objects_F77 \ 17641 postdep_objects_F77 \ 17642 predeps_F77 \ 17643 postdeps_F77 \ 17644 compiler_lib_search_path_F77 \ 17645 archive_cmds_F77 \ 17646 archive_expsym_cmds_F77 \ 17647 postinstall_cmds_F77 \ 17648 postuninstall_cmds_F77 \ 17649 old_archive_from_expsyms_cmds_F77 \ 17650 allow_undefined_flag_F77 \ 17651 no_undefined_flag_F77 \ 17652 export_symbols_cmds_F77 \ 17653 hardcode_libdir_flag_spec_F77 \ 17654 hardcode_libdir_flag_spec_ld_F77 \ 17655 hardcode_libdir_separator_F77 \ 17656 hardcode_automatic_F77 \ 17657 module_cmds_F77 \ 17658 module_expsym_cmds_F77 \ 17659 lt_cv_prog_compiler_c_o_F77 \ 17660 exclude_expsyms_F77 \ 17661 include_expsyms_F77; do 17662 17663 case $var in 17664 old_archive_cmds_F77 | \ 17665 old_archive_from_new_cmds_F77 | \ 17666 archive_cmds_F77 | \ 17667 archive_expsym_cmds_F77 | \ 17668 module_cmds_F77 | \ 17669 module_expsym_cmds_F77 | \ 17670 old_archive_from_expsyms_cmds_F77 | \ 17671 export_symbols_cmds_F77 | \ 17672 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17673 postinstall_cmds | postuninstall_cmds | \ 17674 old_postinstall_cmds | old_postuninstall_cmds | \ 17675 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17676 # Double-quote double-evaled strings. 17677 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17678 ;; 17679 *) 17680 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17681 ;; 17682 esac 17683 done 17684 17685 case $lt_echo in 17686 *'\$0 --fallback-echo"') 17687 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17688 ;; 17689 esac 17690 17691cfgfile="$ofile" 17692 17693 cat <<__EOF__ >> "$cfgfile" 17694# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17695 17696# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17697 17698# Shell to use when invoking shell scripts. 17699SHELL=$lt_SHELL 17700 17701# Whether or not to build shared libraries. 17702build_libtool_libs=$enable_shared 17703 17704# Whether or not to build static libraries. 17705build_old_libs=$enable_static 17706 17707# Whether or not to add -lc for building shared libraries. 17708build_libtool_need_lc=$archive_cmds_need_lc_F77 17709 17710# Whether or not to disallow shared libs when runtime libs are static 17711allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17712 17713# Whether or not to optimize for fast installation. 17714fast_install=$enable_fast_install 17715 17716# The host system. 17717host_alias=$host_alias 17718host=$host 17719host_os=$host_os 17720 17721# The build system. 17722build_alias=$build_alias 17723build=$build 17724build_os=$build_os 17725 17726# An echo program that does not interpret backslashes. 17727echo=$lt_echo 17728 17729# The archiver. 17730AR=$lt_AR 17731AR_FLAGS=$lt_AR_FLAGS 17732 17733# A C compiler. 17734LTCC=$lt_LTCC 17735 17736# LTCC compiler flags. 17737LTCFLAGS=$lt_LTCFLAGS 17738 17739# A language-specific compiler. 17740CC=$lt_compiler_F77 17741 17742# Is the compiler the GNU C compiler? 17743with_gcc=$GCC_F77 17744 17745# An ERE matcher. 17746EGREP=$lt_EGREP 17747 17748# The linker used to build libraries. 17749LD=$lt_LD_F77 17750 17751# Whether we need hard or soft links. 17752LN_S=$lt_LN_S 17753 17754# A BSD-compatible nm program. 17755NM=$lt_NM 17756 17757# A symbol stripping program 17758STRIP=$lt_STRIP 17759 17760# Used to examine libraries when file_magic_cmd begins "file" 17761MAGIC_CMD=$MAGIC_CMD 17762 17763# Used on cygwin: DLL creation program. 17764DLLTOOL="$DLLTOOL" 17765 17766# Used on cygwin: object dumper. 17767OBJDUMP="$OBJDUMP" 17768 17769# Used on cygwin: assembler. 17770AS="$AS" 17771 17772# The name of the directory that contains temporary libtool files. 17773objdir=$objdir 17774 17775# How to create reloadable object files. 17776reload_flag=$lt_reload_flag 17777reload_cmds=$lt_reload_cmds 17778 17779# How to pass a linker flag through the compiler. 17780wl=$lt_lt_prog_compiler_wl_F77 17781 17782# Object file suffix (normally "o"). 17783objext="$ac_objext" 17784 17785# Old archive suffix (normally "a"). 17786libext="$libext" 17787 17788# Shared library suffix (normally ".so"). 17789shrext_cmds='$shrext_cmds' 17790 17791# Executable file suffix (normally ""). 17792exeext="$exeext" 17793 17794# Additional compiler flags for building library objects. 17795pic_flag=$lt_lt_prog_compiler_pic_F77 17796pic_mode=$pic_mode 17797 17798# What is the maximum length of a command? 17799max_cmd_len=$lt_cv_sys_max_cmd_len 17800 17801# Does compiler simultaneously support -c and -o options? 17802compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17803 17804# Must we lock files when doing compilation? 17805need_locks=$lt_need_locks 17806 17807# Do we need the lib prefix for modules? 17808need_lib_prefix=$need_lib_prefix 17809 17810# Do we need a version for libraries? 17811need_version=$need_version 17812 17813# Whether dlopen is supported. 17814dlopen_support=$enable_dlopen 17815 17816# Whether dlopen of programs is supported. 17817dlopen_self=$enable_dlopen_self 17818 17819# Whether dlopen of statically linked programs is supported. 17820dlopen_self_static=$enable_dlopen_self_static 17821 17822# Compiler flag to prevent dynamic linking. 17823link_static_flag=$lt_lt_prog_compiler_static_F77 17824 17825# Compiler flag to turn off builtin functions. 17826no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17827 17828# Compiler flag to allow reflexive dlopens. 17829export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17830 17831# Compiler flag to generate shared objects directly from archives. 17832whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17833 17834# Compiler flag to generate thread-safe objects. 17835thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17836 17837# Library versioning type. 17838version_type=$version_type 17839 17840# Format of library name prefix. 17841libname_spec=$lt_libname_spec 17842 17843# List of archive names. First name is the real one, the rest are links. 17844# The last name is the one that the linker finds with -lNAME. 17845library_names_spec=$lt_library_names_spec 17846 17847# The coded name of the library, if different from the real name. 17848soname_spec=$lt_soname_spec 17849 17850# Commands used to build and install an old-style archive. 17851RANLIB=$lt_RANLIB 17852old_archive_cmds=$lt_old_archive_cmds_F77 17853old_postinstall_cmds=$lt_old_postinstall_cmds 17854old_postuninstall_cmds=$lt_old_postuninstall_cmds 17855 17856# Create an old-style archive from a shared archive. 17857old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17858 17859# Create a temporary old-style archive to link instead of a shared archive. 17860old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17861 17862# Commands used to build and install a shared archive. 17863archive_cmds=$lt_archive_cmds_F77 17864archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17865postinstall_cmds=$lt_postinstall_cmds 17866postuninstall_cmds=$lt_postuninstall_cmds 17867 17868# Commands used to build a loadable module (assumed same as above if empty) 17869module_cmds=$lt_module_cmds_F77 17870module_expsym_cmds=$lt_module_expsym_cmds_F77 17871 17872# Commands to strip libraries. 17873old_striplib=$lt_old_striplib 17874striplib=$lt_striplib 17875 17876# Dependencies to place before the objects being linked to create a 17877# shared library. 17878predep_objects=$lt_predep_objects_F77 17879 17880# Dependencies to place after the objects being linked to create a 17881# shared library. 17882postdep_objects=$lt_postdep_objects_F77 17883 17884# Dependencies to place before the objects being linked to create a 17885# shared library. 17886predeps=$lt_predeps_F77 17887 17888# Dependencies to place after the objects being linked to create a 17889# shared library. 17890postdeps=$lt_postdeps_F77 17891 17892# The library search path used internally by the compiler when linking 17893# a shared library. 17894compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17895 17896# Method to check whether dependent libraries are shared objects. 17897deplibs_check_method=$lt_deplibs_check_method 17898 17899# Command to use when deplibs_check_method == file_magic. 17900file_magic_cmd=$lt_file_magic_cmd 17901 17902# Flag that allows shared libraries with undefined symbols to be built. 17903allow_undefined_flag=$lt_allow_undefined_flag_F77 17904 17905# Flag that forces no undefined symbols. 17906no_undefined_flag=$lt_no_undefined_flag_F77 17907 17908# Commands used to finish a libtool library installation in a directory. 17909finish_cmds=$lt_finish_cmds 17910 17911# Same as above, but a single script fragment to be evaled but not shown. 17912finish_eval=$lt_finish_eval 17913 17914# Take the output of nm and produce a listing of raw symbols and C names. 17915global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17916 17917# Transform the output of nm in a proper C declaration 17918global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17919 17920# Transform the output of nm in a C name address pair 17921global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17922 17923# This is the shared library runtime path variable. 17924runpath_var=$runpath_var 17925 17926# This is the shared library path variable. 17927shlibpath_var=$shlibpath_var 17928 17929# Is shlibpath searched before the hard-coded library search path? 17930shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17931 17932# How to hardcode a shared library path into an executable. 17933hardcode_action=$hardcode_action_F77 17934 17935# Whether we should hardcode library paths into libraries. 17936hardcode_into_libs=$hardcode_into_libs 17937 17938# Flag to hardcode \$libdir into a binary during linking. 17939# This must work even if \$libdir does not exist. 17940hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17941 17942# If ld is used when linking, flag to hardcode \$libdir into 17943# a binary during linking. This must work even if \$libdir does 17944# not exist. 17945hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17946 17947# Whether we need a single -rpath flag with a separated argument. 17948hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17949 17950# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17951# resulting binary. 17952hardcode_direct=$hardcode_direct_F77 17953 17954# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17955# resulting binary. 17956hardcode_minus_L=$hardcode_minus_L_F77 17957 17958# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17959# the resulting binary. 17960hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17961 17962# Set to yes if building a shared library automatically hardcodes DIR into the library 17963# and all subsequent libraries and executables linked against it. 17964hardcode_automatic=$hardcode_automatic_F77 17965 17966# Variables whose values should be saved in libtool wrapper scripts and 17967# restored at relink time. 17968variables_saved_for_relink="$variables_saved_for_relink" 17969 17970# Whether libtool must link a program against all its dependency libraries. 17971link_all_deplibs=$link_all_deplibs_F77 17972 17973# Compile-time system search path for libraries 17974sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17975 17976# Run-time system search path for libraries 17977sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17978 17979# Fix the shell variable \$srcfile for the compiler. 17980fix_srcfile_path="$fix_srcfile_path_F77" 17981 17982# Set to yes if exported symbols are required. 17983always_export_symbols=$always_export_symbols_F77 17984 17985# The commands to list exported symbols. 17986export_symbols_cmds=$lt_export_symbols_cmds_F77 17987 17988# The commands to extract the exported symbol list from a shared archive. 17989extract_expsyms_cmds=$lt_extract_expsyms_cmds 17990 17991# Symbols that should not be listed in the preloaded symbols. 17992exclude_expsyms=$lt_exclude_expsyms_F77 17993 17994# Symbols that must always be exported. 17995include_expsyms=$lt_include_expsyms_F77 17996 17997# ### END LIBTOOL TAG CONFIG: $tagname 17998 17999__EOF__ 18000 18001 18002else 18003 # If there is no Makefile yet, we rely on a make rule to execute 18004 # `config.status --recheck' to rerun these tests and create the 18005 # libtool script then. 18006 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18007 if test -f "$ltmain_in"; then 18008 test -f Makefile && make "$ltmain" 18009 fi 18010fi 18011 18012 18013ac_ext=c 18014ac_cpp='$CPP $CPPFLAGS' 18015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18017ac_compiler_gnu=$ac_cv_c_compiler_gnu 18018 18019CC="$lt_save_CC" 18020 18021 else 18022 tagname="" 18023 fi 18024 ;; 18025 18026 GCJ) 18027 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 18028 18029 18030# Source file extension for Java test sources. 18031ac_ext=java 18032 18033# Object file extension for compiled Java test sources. 18034objext=o 18035objext_GCJ=$objext 18036 18037# Code to be used in simple compile tests 18038lt_simple_compile_test_code="class foo {}\n" 18039 18040# Code to be used in simple link tests 18041lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 18042 18043# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18044 18045# If no C compiler was specified, use CC. 18046LTCC=${LTCC-"$CC"} 18047 18048# If no C compiler flags were specified, use CFLAGS. 18049LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18050 18051# Allow CC to be a program name with arguments. 18052compiler=$CC 18053 18054 18055# save warnings/boilerplate of simple test code 18056ac_outfile=conftest.$ac_objext 18057printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18058eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18059_lt_compiler_boilerplate=`cat conftest.err` 18060$rm conftest* 18061 18062ac_outfile=conftest.$ac_objext 18063printf "$lt_simple_link_test_code" >conftest.$ac_ext 18064eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18065_lt_linker_boilerplate=`cat conftest.err` 18066$rm conftest* 18067 18068 18069# Allow CC to be a program name with arguments. 18070lt_save_CC="$CC" 18071CC=${GCJ-"gcj"} 18072compiler=$CC 18073compiler_GCJ=$CC 18074for cc_temp in $compiler""; do 18075 case $cc_temp in 18076 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18077 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18078 \-*) ;; 18079 *) break;; 18080 esac 18081done 18082cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18083 18084 18085# GCJ did not exist at the time GCC didn't implicitly link libc in. 18086archive_cmds_need_lc_GCJ=no 18087 18088old_archive_cmds_GCJ=$old_archive_cmds 18089 18090 18091lt_prog_compiler_no_builtin_flag_GCJ= 18092 18093if test "$GCC" = yes; then 18094 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 18095 18096 18097{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 18098echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 18099if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 18100 echo $ECHO_N "(cached) $ECHO_C" >&6 18101else 18102 lt_cv_prog_compiler_rtti_exceptions=no 18103 ac_outfile=conftest.$ac_objext 18104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18105 lt_compiler_flag="-fno-rtti -fno-exceptions" 18106 # Insert the option either (1) after the last *FLAGS variable, or 18107 # (2) before a word containing "conftest.", or (3) at the end. 18108 # Note that $ac_compile itself does not contain backslashes and begins 18109 # with a dollar sign (not a hyphen), so the echo should work correctly. 18110 # The option is referenced via a variable to avoid confusing sed. 18111 lt_compile=`echo "$ac_compile" | $SED \ 18112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18114 -e 's:$: $lt_compiler_flag:'` 18115 (eval echo "\"\$as_me:18115: $lt_compile\"" >&5) 18116 (eval "$lt_compile" 2>conftest.err) 18117 ac_status=$? 18118 cat conftest.err >&5 18119 echo "$as_me:18119: \$? = $ac_status" >&5 18120 if (exit $ac_status) && test -s "$ac_outfile"; then 18121 # The compiler can only warn and ignore the option if not recognized 18122 # So say no if there are warnings other than the usual output. 18123 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 18124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18126 lt_cv_prog_compiler_rtti_exceptions=yes 18127 fi 18128 fi 18129 $rm conftest* 18130 18131fi 18132{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 18133echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 18134 18135if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 18136 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 18137else 18138 : 18139fi 18140 18141fi 18142 18143lt_prog_compiler_wl_GCJ= 18144lt_prog_compiler_pic_GCJ= 18145lt_prog_compiler_static_GCJ= 18146 18147{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 18148echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 18149 18150 if test "$GCC" = yes; then 18151 lt_prog_compiler_wl_GCJ='-Wl,' 18152 lt_prog_compiler_static_GCJ='-static' 18153 18154 case $host_os in 18155 aix*) 18156 # All AIX code is PIC. 18157 if test "$host_cpu" = ia64; then 18158 # AIX 5 now supports IA64 processor 18159 lt_prog_compiler_static_GCJ='-Bstatic' 18160 fi 18161 ;; 18162 18163 amigaos*) 18164 # FIXME: we need at least 68020 code to build shared libraries, but 18165 # adding the `-m68020' flag to GCC prevents building anything better, 18166 # like `-m68040'. 18167 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 18168 ;; 18169 18170 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 18171 # PIC is the default for these OSes. 18172 ;; 18173 18174 mingw* | pw32* | os2*) 18175 # This hack is so that the source file can tell whether it is being 18176 # built for inclusion in a dll (and should export symbols for example). 18177 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18178 ;; 18179 18180 darwin* | rhapsody*) 18181 # PIC is the default on this platform 18182 # Common symbols not allowed in MH_DYLIB files 18183 lt_prog_compiler_pic_GCJ='-fno-common' 18184 ;; 18185 18186 interix3*) 18187 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 18188 # Instead, we relocate shared libraries at runtime. 18189 ;; 18190 18191 msdosdjgpp*) 18192 # Just because we use GCC doesn't mean we suddenly get shared libraries 18193 # on systems that don't support them. 18194 lt_prog_compiler_can_build_shared_GCJ=no 18195 enable_shared=no 18196 ;; 18197 18198 sysv4*MP*) 18199 if test -d /usr/nec; then 18200 lt_prog_compiler_pic_GCJ=-Kconform_pic 18201 fi 18202 ;; 18203 18204 hpux*) 18205 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18206 # not for PA HP-UX. 18207 case $host_cpu in 18208 hppa*64*|ia64*) 18209 # +Z the default 18210 ;; 18211 *) 18212 lt_prog_compiler_pic_GCJ='-fPIC' 18213 ;; 18214 esac 18215 ;; 18216 18217 *) 18218 lt_prog_compiler_pic_GCJ='-fPIC' 18219 ;; 18220 esac 18221 else 18222 # PORTME Check for flag to pass linker flags through the system compiler. 18223 case $host_os in 18224 aix*) 18225 lt_prog_compiler_wl_GCJ='-Wl,' 18226 if test "$host_cpu" = ia64; then 18227 # AIX 5 now supports IA64 processor 18228 lt_prog_compiler_static_GCJ='-Bstatic' 18229 else 18230 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 18231 fi 18232 ;; 18233 darwin*) 18234 # PIC is the default on this platform 18235 # Common symbols not allowed in MH_DYLIB files 18236 case $cc_basename in 18237 xlc*) 18238 lt_prog_compiler_pic_GCJ='-qnocommon' 18239 lt_prog_compiler_wl_GCJ='-Wl,' 18240 ;; 18241 esac 18242 ;; 18243 18244 mingw* | pw32* | os2*) 18245 # This hack is so that the source file can tell whether it is being 18246 # built for inclusion in a dll (and should export symbols for example). 18247 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18248 ;; 18249 18250 hpux9* | hpux10* | hpux11*) 18251 lt_prog_compiler_wl_GCJ='-Wl,' 18252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18253 # not for PA HP-UX. 18254 case $host_cpu in 18255 hppa*64*|ia64*) 18256 # +Z the default 18257 ;; 18258 *) 18259 lt_prog_compiler_pic_GCJ='+Z' 18260 ;; 18261 esac 18262 # Is there a better lt_prog_compiler_static that works with the bundled CC? 18263 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 18264 ;; 18265 18266 irix5* | irix6* | nonstopux*) 18267 lt_prog_compiler_wl_GCJ='-Wl,' 18268 # PIC (with -KPIC) is the default. 18269 lt_prog_compiler_static_GCJ='-non_shared' 18270 ;; 18271 18272 newsos6) 18273 lt_prog_compiler_pic_GCJ='-KPIC' 18274 lt_prog_compiler_static_GCJ='-Bstatic' 18275 ;; 18276 18277 linux* | k*bsd*-gnu) 18278 case $cc_basename in 18279 icc* | ecc*) 18280 lt_prog_compiler_wl_GCJ='-Wl,' 18281 lt_prog_compiler_pic_GCJ='-KPIC' 18282 lt_prog_compiler_static_GCJ='-static' 18283 ;; 18284 pgcc* | pgf77* | pgf90* | pgf95*) 18285 # Portland Group compilers (*not* the Pentium gcc compiler, 18286 # which looks to be a dead project) 18287 lt_prog_compiler_wl_GCJ='-Wl,' 18288 lt_prog_compiler_pic_GCJ='-fpic' 18289 lt_prog_compiler_static_GCJ='-Bstatic' 18290 ;; 18291 ccc*) 18292 lt_prog_compiler_wl_GCJ='-Wl,' 18293 # All Alpha code is PIC. 18294 lt_prog_compiler_static_GCJ='-non_shared' 18295 ;; 18296 esac 18297 ;; 18298 18299 osf3* | osf4* | osf5*) 18300 lt_prog_compiler_wl_GCJ='-Wl,' 18301 # All OSF/1 code is PIC. 18302 lt_prog_compiler_static_GCJ='-non_shared' 18303 ;; 18304 18305 solaris*) 18306 lt_prog_compiler_pic_GCJ='-KPIC' 18307 lt_prog_compiler_static_GCJ='-Bstatic' 18308 case $cc_basename in 18309 f77* | f90* | f95*) 18310 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 18311 *) 18312 lt_prog_compiler_wl_GCJ='-Wl,';; 18313 esac 18314 ;; 18315 18316 sunos4*) 18317 lt_prog_compiler_wl_GCJ='-Qoption ld ' 18318 lt_prog_compiler_pic_GCJ='-PIC' 18319 lt_prog_compiler_static_GCJ='-Bstatic' 18320 ;; 18321 18322 sysv4 | sysv4.2uw2* | sysv4.3*) 18323 lt_prog_compiler_wl_GCJ='-Wl,' 18324 lt_prog_compiler_pic_GCJ='-KPIC' 18325 lt_prog_compiler_static_GCJ='-Bstatic' 18326 ;; 18327 18328 sysv4*MP*) 18329 if test -d /usr/nec ;then 18330 lt_prog_compiler_pic_GCJ='-Kconform_pic' 18331 lt_prog_compiler_static_GCJ='-Bstatic' 18332 fi 18333 ;; 18334 18335 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 18336 lt_prog_compiler_wl_GCJ='-Wl,' 18337 lt_prog_compiler_pic_GCJ='-KPIC' 18338 lt_prog_compiler_static_GCJ='-Bstatic' 18339 ;; 18340 18341 unicos*) 18342 lt_prog_compiler_wl_GCJ='-Wl,' 18343 lt_prog_compiler_can_build_shared_GCJ=no 18344 ;; 18345 18346 uts4*) 18347 lt_prog_compiler_pic_GCJ='-pic' 18348 lt_prog_compiler_static_GCJ='-Bstatic' 18349 ;; 18350 18351 *) 18352 lt_prog_compiler_can_build_shared_GCJ=no 18353 ;; 18354 esac 18355 fi 18356 18357{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 18358echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 18359 18360# 18361# Check to make sure the PIC flag actually works. 18362# 18363if test -n "$lt_prog_compiler_pic_GCJ"; then 18364 18365{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 18366echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 18367if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 18368 echo $ECHO_N "(cached) $ECHO_C" >&6 18369else 18370 lt_prog_compiler_pic_works_GCJ=no 18371 ac_outfile=conftest.$ac_objext 18372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18373 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 18374 # Insert the option either (1) after the last *FLAGS variable, or 18375 # (2) before a word containing "conftest.", or (3) at the end. 18376 # Note that $ac_compile itself does not contain backslashes and begins 18377 # with a dollar sign (not a hyphen), so the echo should work correctly. 18378 # The option is referenced via a variable to avoid confusing sed. 18379 lt_compile=`echo "$ac_compile" | $SED \ 18380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18382 -e 's:$: $lt_compiler_flag:'` 18383 (eval echo "\"\$as_me:18383: $lt_compile\"" >&5) 18384 (eval "$lt_compile" 2>conftest.err) 18385 ac_status=$? 18386 cat conftest.err >&5 18387 echo "$as_me:18387: \$? = $ac_status" >&5 18388 if (exit $ac_status) && test -s "$ac_outfile"; then 18389 # The compiler can only warn and ignore the option if not recognized 18390 # So say no if there are warnings other than the usual output. 18391 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 18392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18394 lt_prog_compiler_pic_works_GCJ=yes 18395 fi 18396 fi 18397 $rm conftest* 18398 18399fi 18400{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 18401echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 18402 18403if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 18404 case $lt_prog_compiler_pic_GCJ in 18405 "" | " "*) ;; 18406 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 18407 esac 18408else 18409 lt_prog_compiler_pic_GCJ= 18410 lt_prog_compiler_can_build_shared_GCJ=no 18411fi 18412 18413fi 18414case $host_os in 18415 # For platforms which do not support PIC, -DPIC is meaningless: 18416 *djgpp*) 18417 lt_prog_compiler_pic_GCJ= 18418 ;; 18419 *) 18420 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 18421 ;; 18422esac 18423 18424# 18425# Check to make sure the static flag actually works. 18426# 18427wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 18428{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 18429echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 18430if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 18431 echo $ECHO_N "(cached) $ECHO_C" >&6 18432else 18433 lt_prog_compiler_static_works_GCJ=no 18434 save_LDFLAGS="$LDFLAGS" 18435 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 18436 printf "$lt_simple_link_test_code" > conftest.$ac_ext 18437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18438 # The linker can only warn and ignore the option if not recognized 18439 # So say no if there are warnings 18440 if test -s conftest.err; then 18441 # Append any errors to the config.log. 18442 cat conftest.err 1>&5 18443 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 18444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18445 if diff conftest.exp conftest.er2 >/dev/null; then 18446 lt_prog_compiler_static_works_GCJ=yes 18447 fi 18448 else 18449 lt_prog_compiler_static_works_GCJ=yes 18450 fi 18451 fi 18452 $rm conftest* 18453 LDFLAGS="$save_LDFLAGS" 18454 18455fi 18456{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 18457echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 18458 18459if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 18460 : 18461else 18462 lt_prog_compiler_static_GCJ= 18463fi 18464 18465 18466{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 18467echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 18468if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 18469 echo $ECHO_N "(cached) $ECHO_C" >&6 18470else 18471 lt_cv_prog_compiler_c_o_GCJ=no 18472 $rm -r conftest 2>/dev/null 18473 mkdir conftest 18474 cd conftest 18475 mkdir out 18476 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18477 18478 lt_compiler_flag="-o out/conftest2.$ac_objext" 18479 # Insert the option either (1) after the last *FLAGS variable, or 18480 # (2) before a word containing "conftest.", or (3) at the end. 18481 # Note that $ac_compile itself does not contain backslashes and begins 18482 # with a dollar sign (not a hyphen), so the echo should work correctly. 18483 lt_compile=`echo "$ac_compile" | $SED \ 18484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18486 -e 's:$: $lt_compiler_flag:'` 18487 (eval echo "\"\$as_me:18487: $lt_compile\"" >&5) 18488 (eval "$lt_compile" 2>out/conftest.err) 18489 ac_status=$? 18490 cat out/conftest.err >&5 18491 echo "$as_me:18491: \$? = $ac_status" >&5 18492 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18493 then 18494 # The compiler can only warn and ignore the option if not recognized 18495 # So say no if there are warnings 18496 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 18497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18499 lt_cv_prog_compiler_c_o_GCJ=yes 18500 fi 18501 fi 18502 chmod u+w . 2>&5 18503 $rm conftest* 18504 # SGI C++ compiler will create directory out/ii_files/ for 18505 # template instantiation 18506 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 18507 $rm out/* && rmdir out 18508 cd .. 18509 rmdir conftest 18510 $rm conftest* 18511 18512fi 18513{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 18514echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 18515 18516 18517hard_links="nottested" 18518if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 18519 # do not overwrite the value of need_locks provided by the user 18520 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 18521echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 18522 hard_links=yes 18523 $rm conftest* 18524 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18525 touch conftest.a 18526 ln conftest.a conftest.b 2>&5 || hard_links=no 18527 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18528 { echo "$as_me:$LINENO: result: $hard_links" >&5 18529echo "${ECHO_T}$hard_links" >&6; } 18530 if test "$hard_links" = no; then 18531 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 18532echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 18533 need_locks=warn 18534 fi 18535else 18536 need_locks=no 18537fi 18538 18539{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18540echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 18541 18542 runpath_var= 18543 allow_undefined_flag_GCJ= 18544 enable_shared_with_static_runtimes_GCJ=no 18545 archive_cmds_GCJ= 18546 archive_expsym_cmds_GCJ= 18547 old_archive_From_new_cmds_GCJ= 18548 old_archive_from_expsyms_cmds_GCJ= 18549 export_dynamic_flag_spec_GCJ= 18550 whole_archive_flag_spec_GCJ= 18551 thread_safe_flag_spec_GCJ= 18552 hardcode_libdir_flag_spec_GCJ= 18553 hardcode_libdir_flag_spec_ld_GCJ= 18554 hardcode_libdir_separator_GCJ= 18555 hardcode_direct_GCJ=no 18556 hardcode_minus_L_GCJ=no 18557 hardcode_shlibpath_var_GCJ=unsupported 18558 link_all_deplibs_GCJ=unknown 18559 hardcode_automatic_GCJ=no 18560 module_cmds_GCJ= 18561 module_expsym_cmds_GCJ= 18562 always_export_symbols_GCJ=no 18563 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18564 # include_expsyms should be a list of space-separated symbols to be *always* 18565 # included in the symbol list 18566 include_expsyms_GCJ= 18567 # exclude_expsyms can be an extended regexp of symbols to exclude 18568 # it will be wrapped by ` (' and `)$', so one must not match beginning or 18569 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 18570 # as well as any symbol that contains `d'. 18571 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 18572 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18573 # platforms (ab)use it in PIC code, but their linkers get confused if 18574 # the symbol is explicitly referenced. Since portable code cannot 18575 # rely on this symbol name, it's probably fine to never include it in 18576 # preloaded symbol tables. 18577 extract_expsyms_cmds= 18578 # Just being paranoid about ensuring that cc_basename is set. 18579 for cc_temp in $compiler""; do 18580 case $cc_temp in 18581 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18582 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18583 \-*) ;; 18584 *) break;; 18585 esac 18586done 18587cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18588 18589 case $host_os in 18590 cygwin* | mingw* | pw32*) 18591 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18592 # When not using gcc, we currently assume that we are using 18593 # Microsoft Visual C++. 18594 if test "$GCC" != yes; then 18595 with_gnu_ld=no 18596 fi 18597 ;; 18598 interix*) 18599 # we just hope/assume this is gcc and not c89 (= MSVC++) 18600 with_gnu_ld=yes 18601 ;; 18602 openbsd*) 18603 with_gnu_ld=no 18604 ;; 18605 esac 18606 18607 ld_shlibs_GCJ=yes 18608 if test "$with_gnu_ld" = yes; then 18609 # If archive_cmds runs LD, not CC, wlarc should be empty 18610 wlarc='${wl}' 18611 18612 # Set some defaults for GNU ld with shared library support. These 18613 # are reset later if shared libraries are not supported. Putting them 18614 # here allows them to be overridden if necessary. 18615 runpath_var=LD_RUN_PATH 18616 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 18617 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 18618 # ancient GNU ld didn't support --whole-archive et. al. 18619 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 18620 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18621 else 18622 whole_archive_flag_spec_GCJ= 18623 fi 18624 supports_anon_versioning=no 18625 case `$LD -v 2>/dev/null` in 18626 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18627 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18628 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18629 *\ 2.11.*) ;; # other 2.11 versions 18630 *) supports_anon_versioning=yes ;; 18631 esac 18632 18633 # See if GNU ld supports shared libraries. 18634 case $host_os in 18635 aix3* | aix4* | aix5*) 18636 # On AIX/PPC, the GNU linker is very broken 18637 if test "$host_cpu" != ia64; then 18638 ld_shlibs_GCJ=no 18639 cat <<EOF 1>&2 18640 18641*** Warning: the GNU linker, at least up to release 2.9.1, is reported 18642*** to be unable to reliably create shared libraries on AIX. 18643*** Therefore, libtool is disabling shared libraries support. If you 18644*** really care for shared libraries, you may want to modify your PATH 18645*** so that a non-GNU linker is found, and then restart. 18646 18647EOF 18648 fi 18649 ;; 18650 18651 amigaos*) 18652 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)' 18653 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18654 hardcode_minus_L_GCJ=yes 18655 18656 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 18657 # that the semantics of dynamic libraries on AmigaOS, at least up 18658 # to version 4, is to share data among multiple programs linked 18659 # with the same dynamic library. Since this doesn't match the 18660 # behavior of shared libraries on other platforms, we can't use 18661 # them. 18662 ld_shlibs_GCJ=no 18663 ;; 18664 18665 beos*) 18666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18667 allow_undefined_flag_GCJ=unsupported 18668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18669 # support --undefined. This deserves some investigation. FIXME 18670 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18671 else 18672 ld_shlibs_GCJ=no 18673 fi 18674 ;; 18675 18676 cygwin* | mingw* | pw32*) 18677 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 18678 # as there is no search path for DLLs. 18679 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18680 allow_undefined_flag_GCJ=unsupported 18681 always_export_symbols_GCJ=no 18682 enable_shared_with_static_runtimes_GCJ=yes 18683 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 18684 18685 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18686 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18687 # If the export-symbols file already is a .def file (1st line 18688 # is EXPORTS), use it as is; otherwise, prepend... 18689 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18690 cp $export_symbols $output_objdir/$soname.def; 18691 else 18692 echo EXPORTS > $output_objdir/$soname.def; 18693 cat $export_symbols >> $output_objdir/$soname.def; 18694 fi~ 18695 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18696 else 18697 ld_shlibs_GCJ=no 18698 fi 18699 ;; 18700 18701 interix3*) 18702 hardcode_direct_GCJ=no 18703 hardcode_shlibpath_var_GCJ=no 18704 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18705 export_dynamic_flag_spec_GCJ='${wl}-E' 18706 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18707 # Instead, shared libraries are loaded at an image base (0x10000000 by 18708 # default) and relocated if they conflict, which is a slow very memory 18709 # consuming and fragmenting process. To avoid this, we pick a random, 18710 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18711 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18712 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' 18713 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' 18714 ;; 18715 18716 linux* | k*bsd*-gnu) 18717 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18718 tmp_addflag= 18719 case $cc_basename,$host_cpu in 18720 pgcc*) # Portland Group C compiler 18721 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' 18722 tmp_addflag=' $pic_flag' 18723 ;; 18724 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18725 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' 18726 tmp_addflag=' $pic_flag -Mnomain' ;; 18727 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18728 tmp_addflag=' -i_dynamic' ;; 18729 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18730 tmp_addflag=' -i_dynamic -nofor_main' ;; 18731 ifc* | ifort*) # Intel Fortran compiler 18732 tmp_addflag=' -nofor_main' ;; 18733 esac 18734 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18735 18736 if test $supports_anon_versioning = yes; then 18737 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 18738 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18739 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18740 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18741 fi 18742 link_all_deplibs_GCJ=no 18743 else 18744 ld_shlibs_GCJ=no 18745 fi 18746 ;; 18747 18748 netbsd* | netbsdelf*-gnu) 18749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18750 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18751 wlarc= 18752 else 18753 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18754 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18755 fi 18756 ;; 18757 18758 solaris*) 18759 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18760 ld_shlibs_GCJ=no 18761 cat <<EOF 1>&2 18762 18763*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18764*** create shared libraries on Solaris systems. Therefore, libtool 18765*** is disabling shared libraries support. We urge you to upgrade GNU 18766*** binutils to release 2.9.1 or newer. Another option is to modify 18767*** your PATH or compiler configuration so that the native linker is 18768*** used, and then restart. 18769 18770EOF 18771 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18772 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18773 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18774 else 18775 ld_shlibs_GCJ=no 18776 fi 18777 ;; 18778 18779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18780 case `$LD -v 2>&1` in 18781 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18782 ld_shlibs_GCJ=no 18783 cat <<_LT_EOF 1>&2 18784 18785*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 18786*** reliably create shared libraries on SCO systems. Therefore, libtool 18787*** is disabling shared libraries support. We urge you to upgrade GNU 18788*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18789*** your PATH or compiler configuration so that the native linker is 18790*** used, and then restart. 18791 18792_LT_EOF 18793 ;; 18794 *) 18795 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18796 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 18797 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 18798 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 18799 else 18800 ld_shlibs_GCJ=no 18801 fi 18802 ;; 18803 esac 18804 ;; 18805 18806 sunos4*) 18807 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18808 wlarc= 18809 hardcode_direct_GCJ=yes 18810 hardcode_shlibpath_var_GCJ=no 18811 ;; 18812 18813 *) 18814 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18815 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18816 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18817 else 18818 ld_shlibs_GCJ=no 18819 fi 18820 ;; 18821 esac 18822 18823 if test "$ld_shlibs_GCJ" = no; then 18824 runpath_var= 18825 hardcode_libdir_flag_spec_GCJ= 18826 export_dynamic_flag_spec_GCJ= 18827 whole_archive_flag_spec_GCJ= 18828 fi 18829 else 18830 # PORTME fill in a description of your system's linker (not GNU ld) 18831 case $host_os in 18832 aix3*) 18833 allow_undefined_flag_GCJ=unsupported 18834 always_export_symbols_GCJ=yes 18835 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' 18836 # Note: this linker hardcodes the directories in LIBPATH if there 18837 # are no directories specified by -L. 18838 hardcode_minus_L_GCJ=yes 18839 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 18840 # Neither direct hardcoding nor static linking is supported with a 18841 # broken collect2. 18842 hardcode_direct_GCJ=unsupported 18843 fi 18844 ;; 18845 18846 aix4* | aix5*) 18847 if test "$host_cpu" = ia64; then 18848 # On IA64, the linker does run time linking by default, so we don't 18849 # have to do anything special. 18850 aix_use_runtimelinking=no 18851 exp_sym_flag='-Bexport' 18852 no_entry_flag="" 18853 else 18854 # If we're using GNU nm, then we don't want the "-C" option. 18855 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18856 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18857 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' 18858 else 18859 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' 18860 fi 18861 aix_use_runtimelinking=no 18862 18863 # Test if we are trying to use run time linking or normal 18864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18865 # need to do runtime linking. 18866 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 18867 for ld_flag in $LDFLAGS; do 18868 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18869 aix_use_runtimelinking=yes 18870 break 18871 fi 18872 done 18873 ;; 18874 esac 18875 18876 exp_sym_flag='-bexport' 18877 no_entry_flag='-bnoentry' 18878 fi 18879 18880 # When large executables or shared objects are built, AIX ld can 18881 # have problems creating the table of contents. If linking a library 18882 # or program results in "error TOC overflow" add -mminimal-toc to 18883 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18884 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18885 18886 archive_cmds_GCJ='' 18887 hardcode_direct_GCJ=yes 18888 hardcode_libdir_separator_GCJ=':' 18889 link_all_deplibs_GCJ=yes 18890 18891 if test "$GCC" = yes; then 18892 case $host_os in aix4.[012]|aix4.[012].*) 18893 # We only want to do this on AIX 4.2 and lower, the check 18894 # below for broken collect2 doesn't work under 4.3+ 18895 collect2name=`${CC} -print-prog-name=collect2` 18896 if test -f "$collect2name" && \ 18897 strings "$collect2name" | grep resolve_lib_name >/dev/null 18898 then 18899 # We have reworked collect2 18900 hardcode_direct_GCJ=yes 18901 else 18902 # We have old collect2 18903 hardcode_direct_GCJ=unsupported 18904 # It fails to find uninstalled libraries when the uninstalled 18905 # path is not listed in the libpath. Setting hardcode_minus_L 18906 # to unsupported forces relinking 18907 hardcode_minus_L_GCJ=yes 18908 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18909 hardcode_libdir_separator_GCJ= 18910 fi 18911 ;; 18912 esac 18913 shared_flag='-shared' 18914 if test "$aix_use_runtimelinking" = yes; then 18915 shared_flag="$shared_flag "'${wl}-G' 18916 fi 18917 else 18918 # not using gcc 18919 if test "$host_cpu" = ia64; then 18920 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18921 # chokes on -Wl,-G. The following line is correct: 18922 shared_flag='-G' 18923 else 18924 if test "$aix_use_runtimelinking" = yes; then 18925 shared_flag='${wl}-G' 18926 else 18927 shared_flag='${wl}-bM:SRE' 18928 fi 18929 fi 18930 fi 18931 18932 # It seems that -bexpall does not export symbols beginning with 18933 # underscore (_), so it is better to generate a list of symbols to export. 18934 always_export_symbols_GCJ=yes 18935 if test "$aix_use_runtimelinking" = yes; then 18936 # Warning - without using the other runtime loading flags (-brtl), 18937 # -berok will link without error, but may produce a broken library. 18938 allow_undefined_flag_GCJ='-berok' 18939 # Determine the default libpath from the value encoded in an empty executable. 18940 cat >conftest.$ac_ext <<_ACEOF 18941/* confdefs.h. */ 18942_ACEOF 18943cat confdefs.h >>conftest.$ac_ext 18944cat >>conftest.$ac_ext <<_ACEOF 18945/* end confdefs.h. */ 18946 18947int 18948main () 18949{ 18950 18951 ; 18952 return 0; 18953} 18954_ACEOF 18955rm -f conftest.$ac_objext conftest$ac_exeext 18956if { (ac_try="$ac_link" 18957case "(($ac_try" in 18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18959 *) ac_try_echo=$ac_try;; 18960esac 18961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18962 (eval "$ac_link") 2>conftest.er1 18963 ac_status=$? 18964 grep -v '^ *+' conftest.er1 >conftest.err 18965 rm -f conftest.er1 18966 cat conftest.err >&5 18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18968 (exit $ac_status); } && { 18969 test -z "$ac_c_werror_flag" || 18970 test ! -s conftest.err 18971 } && test -s conftest$ac_exeext && 18972 $as_test_x conftest$ac_exeext; then 18973 18974aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18975}'` 18976# Check for a 64-bit object if we didn't find anything. 18977if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18978}'`; fi 18979else 18980 echo "$as_me: failed program was:" >&5 18981sed 's/^/| /' conftest.$ac_ext >&5 18982 18983 18984fi 18985 18986rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18987 conftest$ac_exeext conftest.$ac_ext 18988if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18989 18990 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18991 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" 18992 else 18993 if test "$host_cpu" = ia64; then 18994 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18995 allow_undefined_flag_GCJ="-z nodefs" 18996 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" 18997 else 18998 # Determine the default libpath from the value encoded in an empty executable. 18999 cat >conftest.$ac_ext <<_ACEOF 19000/* confdefs.h. */ 19001_ACEOF 19002cat confdefs.h >>conftest.$ac_ext 19003cat >>conftest.$ac_ext <<_ACEOF 19004/* end confdefs.h. */ 19005 19006int 19007main () 19008{ 19009 19010 ; 19011 return 0; 19012} 19013_ACEOF 19014rm -f conftest.$ac_objext conftest$ac_exeext 19015if { (ac_try="$ac_link" 19016case "(($ac_try" in 19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19018 *) ac_try_echo=$ac_try;; 19019esac 19020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19021 (eval "$ac_link") 2>conftest.er1 19022 ac_status=$? 19023 grep -v '^ *+' conftest.er1 >conftest.err 19024 rm -f conftest.er1 19025 cat conftest.err >&5 19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19027 (exit $ac_status); } && { 19028 test -z "$ac_c_werror_flag" || 19029 test ! -s conftest.err 19030 } && test -s conftest$ac_exeext && 19031 $as_test_x conftest$ac_exeext; then 19032 19033aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 19034}'` 19035# Check for a 64-bit object if we didn't find anything. 19036if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 19037}'`; fi 19038else 19039 echo "$as_me: failed program was:" >&5 19040sed 's/^/| /' conftest.$ac_ext >&5 19041 19042 19043fi 19044 19045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19046 conftest$ac_exeext conftest.$ac_ext 19047if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 19048 19049 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 19050 # Warning - without using the other run time loading flags, 19051 # -berok will link without error, but may produce a broken library. 19052 no_undefined_flag_GCJ=' ${wl}-bernotok' 19053 allow_undefined_flag_GCJ=' ${wl}-berok' 19054 # Exported symbols can be pulled into shared objects from archives 19055 whole_archive_flag_spec_GCJ='$convenience' 19056 archive_cmds_need_lc_GCJ=yes 19057 # This is similar to how AIX traditionally builds its shared libraries. 19058 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' 19059 fi 19060 fi 19061 ;; 19062 19063 amigaos*) 19064 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)' 19065 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19066 hardcode_minus_L_GCJ=yes 19067 # see comment about different semantics on the GNU ld section 19068 ld_shlibs_GCJ=no 19069 ;; 19070 19071 bsdi[45]*) 19072 export_dynamic_flag_spec_GCJ=-rdynamic 19073 ;; 19074 19075 cygwin* | mingw* | pw32*) 19076 # When not using gcc, we currently assume that we are using 19077 # Microsoft Visual C++. 19078 # hardcode_libdir_flag_spec is actually meaningless, as there is 19079 # no search path for DLLs. 19080 hardcode_libdir_flag_spec_GCJ=' ' 19081 allow_undefined_flag_GCJ=unsupported 19082 # Tell ltmain to make .lib files, not .a files. 19083 libext=lib 19084 # Tell ltmain to make .dll files, not .so files. 19085 shrext_cmds=".dll" 19086 # FIXME: Setting linknames here is a bad hack. 19087 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 19088 # The linker will automatically build a .lib file if we build a DLL. 19089 old_archive_From_new_cmds_GCJ='true' 19090 # FIXME: Should let the user specify the lib program. 19091 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 19092 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 19093 enable_shared_with_static_runtimes_GCJ=yes 19094 ;; 19095 19096 darwin* | rhapsody*) 19097 case $host_os in 19098 rhapsody* | darwin1.[012]) 19099 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 19100 ;; 19101 *) # Darwin 1.3 on 19102 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 19103 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 19104 else 19105 case ${MACOSX_DEPLOYMENT_TARGET} in 19106 10.[012]) 19107 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 19108 ;; 19109 10.*) 19110 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 19111 ;; 19112 esac 19113 fi 19114 ;; 19115 esac 19116 archive_cmds_need_lc_GCJ=no 19117 hardcode_direct_GCJ=no 19118 hardcode_automatic_GCJ=yes 19119 hardcode_shlibpath_var_GCJ=unsupported 19120 whole_archive_flag_spec_GCJ='' 19121 link_all_deplibs_GCJ=yes 19122 if test "$GCC" = yes ; then 19123 output_verbose_link_cmd='echo' 19124 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 19125 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 19126 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 19127 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19128 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}' 19129 else 19130 case $cc_basename in 19131 xlc*) 19132 output_verbose_link_cmd='echo' 19133 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 19134 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 19135 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 19136 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19137 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}' 19138 ;; 19139 *) 19140 ld_shlibs_GCJ=no 19141 ;; 19142 esac 19143 fi 19144 ;; 19145 19146 dgux*) 19147 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19148 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19149 hardcode_shlibpath_var_GCJ=no 19150 ;; 19151 19152 freebsd1*) 19153 ld_shlibs_GCJ=no 19154 ;; 19155 19156 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 19157 # support. Future versions do this automatically, but an explicit c++rt0.o 19158 # does not break anything, and helps significantly (at the cost of a little 19159 # extra space). 19160 freebsd2.2*) 19161 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 19162 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19163 hardcode_direct_GCJ=yes 19164 hardcode_shlibpath_var_GCJ=no 19165 ;; 19166 19167 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 19168 freebsd2*) 19169 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19170 hardcode_direct_GCJ=yes 19171 hardcode_minus_L_GCJ=yes 19172 hardcode_shlibpath_var_GCJ=no 19173 ;; 19174 19175 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 19176 freebsd* | dragonfly*) 19177 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 19178 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19179 hardcode_direct_GCJ=yes 19180 hardcode_shlibpath_var_GCJ=no 19181 ;; 19182 19183 hpux9*) 19184 if test "$GCC" = yes; then 19185 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' 19186 else 19187 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' 19188 fi 19189 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19190 hardcode_libdir_separator_GCJ=: 19191 hardcode_direct_GCJ=yes 19192 19193 # hardcode_minus_L: Not really in the search PATH, 19194 # but as the default location of the library. 19195 hardcode_minus_L_GCJ=yes 19196 export_dynamic_flag_spec_GCJ='${wl}-E' 19197 ;; 19198 19199 hpux10*) 19200 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19201 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19202 else 19203 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 19204 fi 19205 if test "$with_gnu_ld" = no; then 19206 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19207 hardcode_libdir_separator_GCJ=: 19208 19209 hardcode_direct_GCJ=yes 19210 export_dynamic_flag_spec_GCJ='${wl}-E' 19211 19212 # hardcode_minus_L: Not really in the search PATH, 19213 # but as the default location of the library. 19214 hardcode_minus_L_GCJ=yes 19215 fi 19216 ;; 19217 19218 hpux11*) 19219 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19220 case $host_cpu in 19221 hppa*64*) 19222 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19223 ;; 19224 ia64*) 19225 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19226 ;; 19227 *) 19228 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19229 ;; 19230 esac 19231 else 19232 case $host_cpu in 19233 hppa*64*) 19234 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19235 ;; 19236 ia64*) 19237 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19238 ;; 19239 *) 19240 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19241 ;; 19242 esac 19243 fi 19244 if test "$with_gnu_ld" = no; then 19245 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19246 hardcode_libdir_separator_GCJ=: 19247 19248 case $host_cpu in 19249 hppa*64*|ia64*) 19250 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 19251 hardcode_direct_GCJ=no 19252 hardcode_shlibpath_var_GCJ=no 19253 ;; 19254 *) 19255 hardcode_direct_GCJ=yes 19256 export_dynamic_flag_spec_GCJ='${wl}-E' 19257 19258 # hardcode_minus_L: Not really in the search PATH, 19259 # but as the default location of the library. 19260 hardcode_minus_L_GCJ=yes 19261 ;; 19262 esac 19263 fi 19264 ;; 19265 19266 irix5* | irix6* | nonstopux*) 19267 if test "$GCC" = yes; then 19268 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' 19269 else 19270 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' 19271 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 19272 fi 19273 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19274 hardcode_libdir_separator_GCJ=: 19275 link_all_deplibs_GCJ=yes 19276 ;; 19277 19278 netbsd* | netbsdelf*-gnu) 19279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19280 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19281 else 19282 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19283 fi 19284 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19285 hardcode_direct_GCJ=yes 19286 hardcode_shlibpath_var_GCJ=no 19287 ;; 19288 19289 newsos6) 19290 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19291 hardcode_direct_GCJ=yes 19292 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19293 hardcode_libdir_separator_GCJ=: 19294 hardcode_shlibpath_var_GCJ=no 19295 ;; 19296 19297 openbsd*) 19298 hardcode_direct_GCJ=yes 19299 hardcode_shlibpath_var_GCJ=no 19300 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19301 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19302 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 19303 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19304 export_dynamic_flag_spec_GCJ='${wl}-E' 19305 else 19306 case $host_os in 19307 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 19308 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19309 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19310 ;; 19311 *) 19312 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19313 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19314 ;; 19315 esac 19316 fi 19317 ;; 19318 19319 os2*) 19320 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19321 hardcode_minus_L_GCJ=yes 19322 allow_undefined_flag_GCJ=unsupported 19323 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' 19324 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 19325 ;; 19326 19327 osf3*) 19328 if test "$GCC" = yes; then 19329 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19330 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' 19331 else 19332 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19333 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' 19334 fi 19335 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19336 hardcode_libdir_separator_GCJ=: 19337 ;; 19338 19339 osf4* | osf5*) # as osf3* with the addition of -msym flag 19340 if test "$GCC" = yes; then 19341 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19342 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' 19343 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19344 else 19345 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19346 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' 19347 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~ 19348 $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' 19349 19350 # Both c and cxx compiler support -rpath directly 19351 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 19352 fi 19353 hardcode_libdir_separator_GCJ=: 19354 ;; 19355 19356 solaris*) 19357 no_undefined_flag_GCJ=' -z text' 19358 if test "$GCC" = yes; then 19359 wlarc='${wl}' 19360 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19361 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19362 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 19363 else 19364 wlarc='' 19365 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19366 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19367 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19368 fi 19369 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19370 hardcode_shlibpath_var_GCJ=no 19371 case $host_os in 19372 solaris2.[0-5] | solaris2.[0-5].*) ;; 19373 *) 19374 # The compiler driver will combine linker options so we 19375 # cannot just pass the convience library names through 19376 # without $wl, iff we do not link with $LD. 19377 # Luckily, gcc supports the same syntax we need for Sun Studio. 19378 # Supported since Solaris 2.6 (maybe 2.5.1?) 19379 case $wlarc in 19380 '') 19381 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 19382 *) 19383 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 19384 esac ;; 19385 esac 19386 link_all_deplibs_GCJ=yes 19387 ;; 19388 19389 sunos4*) 19390 if test "x$host_vendor" = xsequent; then 19391 # Use $CC to link under sequent, because it throws in some extra .o 19392 # files that make .init and .fini sections work. 19393 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 19394 else 19395 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19396 fi 19397 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19398 hardcode_direct_GCJ=yes 19399 hardcode_minus_L_GCJ=yes 19400 hardcode_shlibpath_var_GCJ=no 19401 ;; 19402 19403 sysv4) 19404 case $host_vendor in 19405 sni) 19406 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19407 hardcode_direct_GCJ=yes # is this really true??? 19408 ;; 19409 siemens) 19410 ## LD is ld it makes a PLAMLIB 19411 ## CC just makes a GrossModule. 19412 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19413 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 19414 hardcode_direct_GCJ=no 19415 ;; 19416 motorola) 19417 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19418 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 19419 ;; 19420 esac 19421 runpath_var='LD_RUN_PATH' 19422 hardcode_shlibpath_var_GCJ=no 19423 ;; 19424 19425 sysv4.3*) 19426 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19427 hardcode_shlibpath_var_GCJ=no 19428 export_dynamic_flag_spec_GCJ='-Bexport' 19429 ;; 19430 19431 sysv4*MP*) 19432 if test -d /usr/nec; then 19433 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19434 hardcode_shlibpath_var_GCJ=no 19435 runpath_var=LD_RUN_PATH 19436 hardcode_runpath_var=yes 19437 ld_shlibs_GCJ=yes 19438 fi 19439 ;; 19440 19441 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 19442 no_undefined_flag_GCJ='${wl}-z,text' 19443 archive_cmds_need_lc_GCJ=no 19444 hardcode_shlibpath_var_GCJ=no 19445 runpath_var='LD_RUN_PATH' 19446 19447 if test "$GCC" = yes; then 19448 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19449 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19450 else 19451 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19452 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19453 fi 19454 ;; 19455 19456 sysv5* | sco3.2v5* | sco5v6*) 19457 # Note: We can NOT use -z defs as we might desire, because we do not 19458 # link with -lc, and that would cause any symbols used from libc to 19459 # always be unresolved, which means just about no library would 19460 # ever link correctly. If we're not using GNU ld we use -z text 19461 # though, which does catch some bad symbols but isn't as heavy-handed 19462 # as -z defs. 19463 no_undefined_flag_GCJ='${wl}-z,text' 19464 allow_undefined_flag_GCJ='${wl}-z,nodefs' 19465 archive_cmds_need_lc_GCJ=no 19466 hardcode_shlibpath_var_GCJ=no 19467 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 19468 hardcode_libdir_separator_GCJ=':' 19469 link_all_deplibs_GCJ=yes 19470 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 19471 runpath_var='LD_RUN_PATH' 19472 19473 if test "$GCC" = yes; then 19474 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19475 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19476 else 19477 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19478 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19479 fi 19480 ;; 19481 19482 uts4*) 19483 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19484 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19485 hardcode_shlibpath_var_GCJ=no 19486 ;; 19487 19488 *) 19489 ld_shlibs_GCJ=no 19490 ;; 19491 esac 19492 fi 19493 19494{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 19495echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 19496test "$ld_shlibs_GCJ" = no && can_build_shared=no 19497 19498# 19499# Do we need to explicitly link libc? 19500# 19501case "x$archive_cmds_need_lc_GCJ" in 19502x|xyes) 19503 # Assume -lc should be added 19504 archive_cmds_need_lc_GCJ=yes 19505 19506 if test "$enable_shared" = yes && test "$GCC" = yes; then 19507 case $archive_cmds_GCJ in 19508 *'~'*) 19509 # FIXME: we may have to deal with multi-command sequences. 19510 ;; 19511 '$CC '*) 19512 # Test whether the compiler implicitly links with -lc since on some 19513 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19514 # to ld, don't add -lc before -lgcc. 19515 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 19516echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 19517 $rm conftest* 19518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 19519 19520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19521 (eval $ac_compile) 2>&5 19522 ac_status=$? 19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19524 (exit $ac_status); } 2>conftest.err; then 19525 soname=conftest 19526 lib=conftest 19527 libobjs=conftest.$ac_objext 19528 deplibs= 19529 wl=$lt_prog_compiler_wl_GCJ 19530 pic_flag=$lt_prog_compiler_pic_GCJ 19531 compiler_flags=-v 19532 linker_flags=-v 19533 verstring= 19534 output_objdir=. 19535 libname=conftest 19536 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 19537 allow_undefined_flag_GCJ= 19538 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 19539 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 19540 ac_status=$? 19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19542 (exit $ac_status); } 19543 then 19544 archive_cmds_need_lc_GCJ=no 19545 else 19546 archive_cmds_need_lc_GCJ=yes 19547 fi 19548 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 19549 else 19550 cat conftest.err 1>&5 19551 fi 19552 $rm conftest* 19553 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 19554echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 19555 ;; 19556 esac 19557 fi 19558 ;; 19559esac 19560 19561{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 19562echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 19563library_names_spec= 19564libname_spec='lib$name' 19565soname_spec= 19566shrext_cmds=".so" 19567postinstall_cmds= 19568postuninstall_cmds= 19569finish_cmds= 19570finish_eval= 19571shlibpath_var= 19572shlibpath_overrides_runpath=unknown 19573version_type=none 19574dynamic_linker="$host_os ld.so" 19575sys_lib_dlsearch_path_spec="/lib /usr/lib" 19576if test "$GCC" = yes; then 19577 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19578 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 19579 # if the path contains ";" then we assume it to be the separator 19580 # otherwise default to the standard path separator (i.e. ":") - it is 19581 # assumed that no part of a normal pathname contains ";" but that should 19582 # okay in the real world where ";" in dirpaths is itself problematic. 19583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19584 else 19585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19586 fi 19587else 19588 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19589fi 19590need_lib_prefix=unknown 19591hardcode_into_libs=no 19592 19593# when you set need_version to no, make sure it does not cause -set_version 19594# flags to be left without arguments 19595need_version=unknown 19596 19597case $host_os in 19598aix3*) 19599 version_type=linux 19600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19601 shlibpath_var=LIBPATH 19602 19603 # AIX 3 has no versioning support, so we append a major version to the name. 19604 soname_spec='${libname}${release}${shared_ext}$major' 19605 ;; 19606 19607aix4* | aix5*) 19608 version_type=linux 19609 need_lib_prefix=no 19610 need_version=no 19611 hardcode_into_libs=yes 19612 if test "$host_cpu" = ia64; then 19613 # AIX 5 supports IA64 19614 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19615 shlibpath_var=LD_LIBRARY_PATH 19616 else 19617 # With GCC up to 2.95.x, collect2 would create an import file 19618 # for dependence libraries. The import file would start with 19619 # the line `#! .'. This would cause the generated library to 19620 # depend on `.', always an invalid library. This was fixed in 19621 # development snapshots of GCC prior to 3.0. 19622 case $host_os in 19623 aix4 | aix4.[01] | aix4.[01].*) 19624 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19625 echo ' yes ' 19626 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 19627 : 19628 else 19629 can_build_shared=no 19630 fi 19631 ;; 19632 esac 19633 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19634 # soname into executable. Probably we can add versioning support to 19635 # collect2, so additional links can be useful in future. 19636 if test "$aix_use_runtimelinking" = yes; then 19637 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19638 # instead of lib<name>.a to let people know that these are not 19639 # typical AIX shared libraries. 19640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19641 else 19642 # We preserve .a as extension for shared libraries through AIX4.2 19643 # and later when we are not doing run time linking. 19644 library_names_spec='${libname}${release}.a $libname.a' 19645 soname_spec='${libname}${release}${shared_ext}$major' 19646 fi 19647 shlibpath_var=LIBPATH 19648 fi 19649 ;; 19650 19651amigaos*) 19652 library_names_spec='$libname.ixlibrary $libname.a' 19653 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19654 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' 19655 ;; 19656 19657beos*) 19658 library_names_spec='${libname}${shared_ext}' 19659 dynamic_linker="$host_os ld.so" 19660 shlibpath_var=LIBRARY_PATH 19661 ;; 19662 19663bsdi[45]*) 19664 version_type=linux 19665 need_version=no 19666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19667 soname_spec='${libname}${release}${shared_ext}$major' 19668 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19669 shlibpath_var=LD_LIBRARY_PATH 19670 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19671 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19672 # the default ld.so.conf also contains /usr/contrib/lib and 19673 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19674 # libtool to hard-code these into programs 19675 ;; 19676 19677cygwin* | mingw* | pw32*) 19678 version_type=windows 19679 shrext_cmds=".dll" 19680 need_version=no 19681 need_lib_prefix=no 19682 19683 case $GCC,$host_os in 19684 yes,cygwin* | yes,mingw* | yes,pw32*) 19685 library_names_spec='$libname.dll.a' 19686 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19687 postinstall_cmds='base_file=`basename \${file}`~ 19688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19689 dldir=$destdir/`dirname \$dlpath`~ 19690 test -d \$dldir || mkdir -p \$dldir~ 19691 $install_prog $dir/$dlname \$dldir/$dlname~ 19692 chmod a+x \$dldir/$dlname' 19693 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19694 dlpath=$dir/\$dldll~ 19695 $rm \$dlpath' 19696 shlibpath_overrides_runpath=yes 19697 19698 case $host_os in 19699 cygwin*) 19700 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19701 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19702 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19703 ;; 19704 mingw*) 19705 # MinGW DLLs use traditional 'lib' prefix 19706 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19708 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19709 # It is most probably a Windows format PATH printed by 19710 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19711 # path with ; separators, and with drive letters. We can handle the 19712 # drive letters (cygwin fileutils understands them), so leave them, 19713 # especially as we might pass files found there to a mingw objdump, 19714 # which wouldn't understand a cygwinified path. Ahh. 19715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19716 else 19717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19718 fi 19719 ;; 19720 pw32*) 19721 # pw32 DLLs use 'pw' prefix rather than 'lib' 19722 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19723 ;; 19724 esac 19725 ;; 19726 19727 *) 19728 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19729 ;; 19730 esac 19731 dynamic_linker='Win32 ld.exe' 19732 # FIXME: first we should search . and the directory the executable is in 19733 shlibpath_var=PATH 19734 ;; 19735 19736darwin* | rhapsody*) 19737 dynamic_linker="$host_os dyld" 19738 version_type=darwin 19739 need_lib_prefix=no 19740 need_version=no 19741 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19742 soname_spec='${libname}${release}${major}$shared_ext' 19743 shlibpath_overrides_runpath=yes 19744 shlibpath_var=DYLD_LIBRARY_PATH 19745 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19746 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 19747 if test "$GCC" = yes; then 19748 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 19749 else 19750 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 19751 fi 19752 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19753 ;; 19754 19755dgux*) 19756 version_type=linux 19757 need_lib_prefix=no 19758 need_version=no 19759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19760 soname_spec='${libname}${release}${shared_ext}$major' 19761 shlibpath_var=LD_LIBRARY_PATH 19762 ;; 19763 19764freebsd1*) 19765 dynamic_linker=no 19766 ;; 19767 19768freebsd* | dragonfly*) 19769 # DragonFly does not have aout. When/if they implement a new 19770 # versioning mechanism, adjust this. 19771 if test -x /usr/bin/objformat; then 19772 objformat=`/usr/bin/objformat` 19773 else 19774 case $host_os in 19775 freebsd[123]*) objformat=aout ;; 19776 *) objformat=elf ;; 19777 esac 19778 fi 19779 version_type=freebsd-$objformat 19780 case $version_type in 19781 freebsd-elf*) 19782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19783 need_version=no 19784 need_lib_prefix=no 19785 ;; 19786 freebsd-*) 19787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19788 need_version=yes 19789 ;; 19790 esac 19791 shlibpath_var=LD_LIBRARY_PATH 19792 case $host_os in 19793 freebsd2*) 19794 shlibpath_overrides_runpath=yes 19795 ;; 19796 freebsd3.[01]* | freebsdelf3.[01]*) 19797 shlibpath_overrides_runpath=yes 19798 hardcode_into_libs=yes 19799 ;; 19800 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19801 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19802 shlibpath_overrides_runpath=no 19803 hardcode_into_libs=yes 19804 ;; 19805 freebsd*) # from 4.6 on 19806 shlibpath_overrides_runpath=yes 19807 hardcode_into_libs=yes 19808 ;; 19809 esac 19810 ;; 19811 19812gnu*) 19813 version_type=linux 19814 need_lib_prefix=no 19815 need_version=no 19816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19817 soname_spec='${libname}${release}${shared_ext}$major' 19818 shlibpath_var=LD_LIBRARY_PATH 19819 hardcode_into_libs=yes 19820 ;; 19821 19822hpux9* | hpux10* | hpux11*) 19823 # Give a soname corresponding to the major version so that dld.sl refuses to 19824 # link against other versions. 19825 version_type=sunos 19826 need_lib_prefix=no 19827 need_version=no 19828 case $host_cpu in 19829 ia64*) 19830 shrext_cmds='.so' 19831 hardcode_into_libs=yes 19832 dynamic_linker="$host_os dld.so" 19833 shlibpath_var=LD_LIBRARY_PATH 19834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19836 soname_spec='${libname}${release}${shared_ext}$major' 19837 if test "X$HPUX_IA64_MODE" = X32; then 19838 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19839 else 19840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19841 fi 19842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19843 ;; 19844 hppa*64*) 19845 shrext_cmds='.sl' 19846 hardcode_into_libs=yes 19847 dynamic_linker="$host_os dld.sl" 19848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19851 soname_spec='${libname}${release}${shared_ext}$major' 19852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19854 ;; 19855 *) 19856 shrext_cmds='.sl' 19857 dynamic_linker="$host_os dld.sl" 19858 shlibpath_var=SHLIB_PATH 19859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19861 soname_spec='${libname}${release}${shared_ext}$major' 19862 ;; 19863 esac 19864 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19865 postinstall_cmds='chmod 555 $lib' 19866 ;; 19867 19868interix3*) 19869 version_type=linux 19870 need_lib_prefix=no 19871 need_version=no 19872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19873 soname_spec='${libname}${release}${shared_ext}$major' 19874 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19875 shlibpath_var=LD_LIBRARY_PATH 19876 shlibpath_overrides_runpath=no 19877 hardcode_into_libs=yes 19878 ;; 19879 19880irix5* | irix6* | nonstopux*) 19881 case $host_os in 19882 nonstopux*) version_type=nonstopux ;; 19883 *) 19884 if test "$lt_cv_prog_gnu_ld" = yes; then 19885 version_type=linux 19886 else 19887 version_type=irix 19888 fi ;; 19889 esac 19890 need_lib_prefix=no 19891 need_version=no 19892 soname_spec='${libname}${release}${shared_ext}$major' 19893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19894 case $host_os in 19895 irix5* | nonstopux*) 19896 libsuff= shlibsuff= 19897 ;; 19898 *) 19899 case $LD in # libtool.m4 will add one of these switches to LD 19900 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19901 libsuff= shlibsuff= libmagic=32-bit;; 19902 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19903 libsuff=32 shlibsuff=N32 libmagic=N32;; 19904 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19905 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19906 *) libsuff= shlibsuff= libmagic=never-match;; 19907 esac 19908 ;; 19909 esac 19910 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19911 shlibpath_overrides_runpath=no 19912 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19913 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19914 hardcode_into_libs=yes 19915 ;; 19916 19917# No shared lib support for Linux oldld, aout, or coff. 19918linux*oldld* | linux*aout* | linux*coff*) 19919 dynamic_linker=no 19920 ;; 19921 19922# This must be Linux ELF. 19923linux* | k*bsd*-gnu) 19924 version_type=linux 19925 need_lib_prefix=no 19926 need_version=no 19927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19928 soname_spec='${libname}${release}${shared_ext}$major' 19929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19930 shlibpath_var=LD_LIBRARY_PATH 19931 shlibpath_overrides_runpath=no 19932 # This implies no fast_install, which is unacceptable. 19933 # Some rework will be needed to allow for fast_install 19934 # before this can be enabled. 19935 hardcode_into_libs=yes 19936 19937 # Append ld.so.conf contents to the search path 19938 if test -f /etc/ld.so.conf; then 19939 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 19940 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19941 fi 19942 19943 # We used to test for /lib/ld.so.1 and disable shared libraries on 19944 # powerpc, because MkLinux only supported shared libraries with the 19945 # GNU dynamic linker. Since this was broken with cross compilers, 19946 # most powerpc-linux boxes support dynamic linking these days and 19947 # people can always --disable-shared, the test was removed, and we 19948 # assume the GNU/Linux dynamic linker is in use. 19949 dynamic_linker='GNU/Linux ld.so' 19950 ;; 19951 19952netbsdelf*-gnu) 19953 version_type=linux 19954 need_lib_prefix=no 19955 need_version=no 19956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19957 soname_spec='${libname}${release}${shared_ext}$major' 19958 shlibpath_var=LD_LIBRARY_PATH 19959 shlibpath_overrides_runpath=no 19960 hardcode_into_libs=yes 19961 dynamic_linker='NetBSD ld.elf_so' 19962 ;; 19963 19964netbsd*) 19965 version_type=sunos 19966 need_lib_prefix=no 19967 need_version=no 19968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19971 dynamic_linker='NetBSD (a.out) ld.so' 19972 else 19973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19974 soname_spec='${libname}${release}${shared_ext}$major' 19975 dynamic_linker='NetBSD ld.elf_so' 19976 fi 19977 shlibpath_var=LD_LIBRARY_PATH 19978 shlibpath_overrides_runpath=yes 19979 hardcode_into_libs=yes 19980 ;; 19981 19982newsos6) 19983 version_type=linux 19984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19985 shlibpath_var=LD_LIBRARY_PATH 19986 shlibpath_overrides_runpath=yes 19987 ;; 19988 19989nto-qnx*) 19990 version_type=linux 19991 need_lib_prefix=no 19992 need_version=no 19993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19994 soname_spec='${libname}${release}${shared_ext}$major' 19995 shlibpath_var=LD_LIBRARY_PATH 19996 shlibpath_overrides_runpath=yes 19997 ;; 19998 19999openbsd*) 20000 version_type=sunos 20001 sys_lib_dlsearch_path_spec="/usr/lib" 20002 need_lib_prefix=no 20003 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 20004 case $host_os in 20005 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 20006 *) need_version=no ;; 20007 esac 20008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20010 shlibpath_var=LD_LIBRARY_PATH 20011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20012 case $host_os in 20013 openbsd2.[89] | openbsd2.[89].*) 20014 shlibpath_overrides_runpath=no 20015 ;; 20016 *) 20017 shlibpath_overrides_runpath=yes 20018 ;; 20019 esac 20020 else 20021 shlibpath_overrides_runpath=yes 20022 fi 20023 ;; 20024 20025os2*) 20026 libname_spec='$name' 20027 shrext_cmds=".dll" 20028 need_lib_prefix=no 20029 library_names_spec='$libname${shared_ext} $libname.a' 20030 dynamic_linker='OS/2 ld.exe' 20031 shlibpath_var=LIBPATH 20032 ;; 20033 20034osf3* | osf4* | osf5*) 20035 version_type=osf 20036 need_lib_prefix=no 20037 need_version=no 20038 soname_spec='${libname}${release}${shared_ext}$major' 20039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20040 shlibpath_var=LD_LIBRARY_PATH 20041 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20042 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 20043 ;; 20044 20045solaris*) 20046 version_type=linux 20047 need_lib_prefix=no 20048 need_version=no 20049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20050 soname_spec='${libname}${release}${shared_ext}$major' 20051 shlibpath_var=LD_LIBRARY_PATH 20052 shlibpath_overrides_runpath=yes 20053 hardcode_into_libs=yes 20054 # ldd complains unless libraries are executable 20055 postinstall_cmds='chmod +x $lib' 20056 ;; 20057 20058sunos4*) 20059 version_type=sunos 20060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20061 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20062 shlibpath_var=LD_LIBRARY_PATH 20063 shlibpath_overrides_runpath=yes 20064 if test "$with_gnu_ld" = yes; then 20065 need_lib_prefix=no 20066 fi 20067 need_version=yes 20068 ;; 20069 20070sysv4 | sysv4.3*) 20071 version_type=linux 20072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20073 soname_spec='${libname}${release}${shared_ext}$major' 20074 shlibpath_var=LD_LIBRARY_PATH 20075 case $host_vendor in 20076 sni) 20077 shlibpath_overrides_runpath=no 20078 need_lib_prefix=no 20079 export_dynamic_flag_spec='${wl}-Blargedynsym' 20080 runpath_var=LD_RUN_PATH 20081 ;; 20082 siemens) 20083 need_lib_prefix=no 20084 ;; 20085 motorola) 20086 need_lib_prefix=no 20087 need_version=no 20088 shlibpath_overrides_runpath=no 20089 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20090 ;; 20091 esac 20092 ;; 20093 20094sysv4*MP*) 20095 if test -d /usr/nec ;then 20096 version_type=linux 20097 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 20098 soname_spec='$libname${shared_ext}.$major' 20099 shlibpath_var=LD_LIBRARY_PATH 20100 fi 20101 ;; 20102 20103sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20104 version_type=freebsd-elf 20105 need_lib_prefix=no 20106 need_version=no 20107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20108 soname_spec='${libname}${release}${shared_ext}$major' 20109 shlibpath_var=LD_LIBRARY_PATH 20110 hardcode_into_libs=yes 20111 if test "$with_gnu_ld" = yes; then 20112 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20113 shlibpath_overrides_runpath=no 20114 else 20115 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20116 shlibpath_overrides_runpath=yes 20117 case $host_os in 20118 sco3.2v5*) 20119 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20120 ;; 20121 esac 20122 fi 20123 sys_lib_dlsearch_path_spec='/usr/lib' 20124 ;; 20125 20126uts4*) 20127 version_type=linux 20128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20129 soname_spec='${libname}${release}${shared_ext}$major' 20130 shlibpath_var=LD_LIBRARY_PATH 20131 ;; 20132 20133*) 20134 dynamic_linker=no 20135 ;; 20136esac 20137{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 20138echo "${ECHO_T}$dynamic_linker" >&6; } 20139test "$dynamic_linker" = no && can_build_shared=no 20140 20141variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20142if test "$GCC" = yes; then 20143 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20144fi 20145 20146{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 20147echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 20148hardcode_action_GCJ= 20149if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 20150 test -n "$runpath_var_GCJ" || \ 20151 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 20152 20153 # We can hardcode non-existant directories. 20154 if test "$hardcode_direct_GCJ" != no && 20155 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20156 # have to relink, otherwise we might link with an installed library 20157 # when we should be linking with a yet-to-be-installed one 20158 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 20159 test "$hardcode_minus_L_GCJ" != no; then 20160 # Linking always hardcodes the temporary library directory. 20161 hardcode_action_GCJ=relink 20162 else 20163 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20164 hardcode_action_GCJ=immediate 20165 fi 20166else 20167 # We cannot hardcode anything, or else we can only hardcode existing 20168 # directories. 20169 hardcode_action_GCJ=unsupported 20170fi 20171{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 20172echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 20173 20174if test "$hardcode_action_GCJ" = relink; then 20175 # Fast installation is not supported 20176 enable_fast_install=no 20177elif test "$shlibpath_overrides_runpath" = yes || 20178 test "$enable_shared" = no; then 20179 # Fast installation is not necessary 20180 enable_fast_install=needless 20181fi 20182 20183 20184# The else clause should only fire when bootstrapping the 20185# libtool distribution, otherwise you forgot to ship ltmain.sh 20186# with your package, and you will get complaints that there are 20187# no rules to generate ltmain.sh. 20188if test -f "$ltmain"; then 20189 # See if we are running on zsh, and set the options which allow our commands through 20190 # without removal of \ escapes. 20191 if test -n "${ZSH_VERSION+set}" ; then 20192 setopt NO_GLOB_SUBST 20193 fi 20194 # Now quote all the things that may contain metacharacters while being 20195 # careful not to overquote the AC_SUBSTed values. We take copies of the 20196 # variables and quote the copies for generation of the libtool script. 20197 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20198 SED SHELL STRIP \ 20199 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20200 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20201 deplibs_check_method reload_flag reload_cmds need_locks \ 20202 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20203 lt_cv_sys_global_symbol_to_c_name_address \ 20204 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20205 old_postinstall_cmds old_postuninstall_cmds \ 20206 compiler_GCJ \ 20207 CC_GCJ \ 20208 LD_GCJ \ 20209 lt_prog_compiler_wl_GCJ \ 20210 lt_prog_compiler_pic_GCJ \ 20211 lt_prog_compiler_static_GCJ \ 20212 lt_prog_compiler_no_builtin_flag_GCJ \ 20213 export_dynamic_flag_spec_GCJ \ 20214 thread_safe_flag_spec_GCJ \ 20215 whole_archive_flag_spec_GCJ \ 20216 enable_shared_with_static_runtimes_GCJ \ 20217 old_archive_cmds_GCJ \ 20218 old_archive_from_new_cmds_GCJ \ 20219 predep_objects_GCJ \ 20220 postdep_objects_GCJ \ 20221 predeps_GCJ \ 20222 postdeps_GCJ \ 20223 compiler_lib_search_path_GCJ \ 20224 archive_cmds_GCJ \ 20225 archive_expsym_cmds_GCJ \ 20226 postinstall_cmds_GCJ \ 20227 postuninstall_cmds_GCJ \ 20228 old_archive_from_expsyms_cmds_GCJ \ 20229 allow_undefined_flag_GCJ \ 20230 no_undefined_flag_GCJ \ 20231 export_symbols_cmds_GCJ \ 20232 hardcode_libdir_flag_spec_GCJ \ 20233 hardcode_libdir_flag_spec_ld_GCJ \ 20234 hardcode_libdir_separator_GCJ \ 20235 hardcode_automatic_GCJ \ 20236 module_cmds_GCJ \ 20237 module_expsym_cmds_GCJ \ 20238 lt_cv_prog_compiler_c_o_GCJ \ 20239 exclude_expsyms_GCJ \ 20240 include_expsyms_GCJ; do 20241 20242 case $var in 20243 old_archive_cmds_GCJ | \ 20244 old_archive_from_new_cmds_GCJ | \ 20245 archive_cmds_GCJ | \ 20246 archive_expsym_cmds_GCJ | \ 20247 module_cmds_GCJ | \ 20248 module_expsym_cmds_GCJ | \ 20249 old_archive_from_expsyms_cmds_GCJ | \ 20250 export_symbols_cmds_GCJ | \ 20251 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20252 postinstall_cmds | postuninstall_cmds | \ 20253 old_postinstall_cmds | old_postuninstall_cmds | \ 20254 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20255 # Double-quote double-evaled strings. 20256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20257 ;; 20258 *) 20259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20260 ;; 20261 esac 20262 done 20263 20264 case $lt_echo in 20265 *'\$0 --fallback-echo"') 20266 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20267 ;; 20268 esac 20269 20270cfgfile="$ofile" 20271 20272 cat <<__EOF__ >> "$cfgfile" 20273# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20274 20275# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20276 20277# Shell to use when invoking shell scripts. 20278SHELL=$lt_SHELL 20279 20280# Whether or not to build shared libraries. 20281build_libtool_libs=$enable_shared 20282 20283# Whether or not to build static libraries. 20284build_old_libs=$enable_static 20285 20286# Whether or not to add -lc for building shared libraries. 20287build_libtool_need_lc=$archive_cmds_need_lc_GCJ 20288 20289# Whether or not to disallow shared libs when runtime libs are static 20290allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 20291 20292# Whether or not to optimize for fast installation. 20293fast_install=$enable_fast_install 20294 20295# The host system. 20296host_alias=$host_alias 20297host=$host 20298host_os=$host_os 20299 20300# The build system. 20301build_alias=$build_alias 20302build=$build 20303build_os=$build_os 20304 20305# An echo program that does not interpret backslashes. 20306echo=$lt_echo 20307 20308# The archiver. 20309AR=$lt_AR 20310AR_FLAGS=$lt_AR_FLAGS 20311 20312# A C compiler. 20313LTCC=$lt_LTCC 20314 20315# LTCC compiler flags. 20316LTCFLAGS=$lt_LTCFLAGS 20317 20318# A language-specific compiler. 20319CC=$lt_compiler_GCJ 20320 20321# Is the compiler the GNU C compiler? 20322with_gcc=$GCC_GCJ 20323 20324# An ERE matcher. 20325EGREP=$lt_EGREP 20326 20327# The linker used to build libraries. 20328LD=$lt_LD_GCJ 20329 20330# Whether we need hard or soft links. 20331LN_S=$lt_LN_S 20332 20333# A BSD-compatible nm program. 20334NM=$lt_NM 20335 20336# A symbol stripping program 20337STRIP=$lt_STRIP 20338 20339# Used to examine libraries when file_magic_cmd begins "file" 20340MAGIC_CMD=$MAGIC_CMD 20341 20342# Used on cygwin: DLL creation program. 20343DLLTOOL="$DLLTOOL" 20344 20345# Used on cygwin: object dumper. 20346OBJDUMP="$OBJDUMP" 20347 20348# Used on cygwin: assembler. 20349AS="$AS" 20350 20351# The name of the directory that contains temporary libtool files. 20352objdir=$objdir 20353 20354# How to create reloadable object files. 20355reload_flag=$lt_reload_flag 20356reload_cmds=$lt_reload_cmds 20357 20358# How to pass a linker flag through the compiler. 20359wl=$lt_lt_prog_compiler_wl_GCJ 20360 20361# Object file suffix (normally "o"). 20362objext="$ac_objext" 20363 20364# Old archive suffix (normally "a"). 20365libext="$libext" 20366 20367# Shared library suffix (normally ".so"). 20368shrext_cmds='$shrext_cmds' 20369 20370# Executable file suffix (normally ""). 20371exeext="$exeext" 20372 20373# Additional compiler flags for building library objects. 20374pic_flag=$lt_lt_prog_compiler_pic_GCJ 20375pic_mode=$pic_mode 20376 20377# What is the maximum length of a command? 20378max_cmd_len=$lt_cv_sys_max_cmd_len 20379 20380# Does compiler simultaneously support -c and -o options? 20381compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 20382 20383# Must we lock files when doing compilation? 20384need_locks=$lt_need_locks 20385 20386# Do we need the lib prefix for modules? 20387need_lib_prefix=$need_lib_prefix 20388 20389# Do we need a version for libraries? 20390need_version=$need_version 20391 20392# Whether dlopen is supported. 20393dlopen_support=$enable_dlopen 20394 20395# Whether dlopen of programs is supported. 20396dlopen_self=$enable_dlopen_self 20397 20398# Whether dlopen of statically linked programs is supported. 20399dlopen_self_static=$enable_dlopen_self_static 20400 20401# Compiler flag to prevent dynamic linking. 20402link_static_flag=$lt_lt_prog_compiler_static_GCJ 20403 20404# Compiler flag to turn off builtin functions. 20405no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 20406 20407# Compiler flag to allow reflexive dlopens. 20408export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 20409 20410# Compiler flag to generate shared objects directly from archives. 20411whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 20412 20413# Compiler flag to generate thread-safe objects. 20414thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 20415 20416# Library versioning type. 20417version_type=$version_type 20418 20419# Format of library name prefix. 20420libname_spec=$lt_libname_spec 20421 20422# List of archive names. First name is the real one, the rest are links. 20423# The last name is the one that the linker finds with -lNAME. 20424library_names_spec=$lt_library_names_spec 20425 20426# The coded name of the library, if different from the real name. 20427soname_spec=$lt_soname_spec 20428 20429# Commands used to build and install an old-style archive. 20430RANLIB=$lt_RANLIB 20431old_archive_cmds=$lt_old_archive_cmds_GCJ 20432old_postinstall_cmds=$lt_old_postinstall_cmds 20433old_postuninstall_cmds=$lt_old_postuninstall_cmds 20434 20435# Create an old-style archive from a shared archive. 20436old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 20437 20438# Create a temporary old-style archive to link instead of a shared archive. 20439old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 20440 20441# Commands used to build and install a shared archive. 20442archive_cmds=$lt_archive_cmds_GCJ 20443archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 20444postinstall_cmds=$lt_postinstall_cmds 20445postuninstall_cmds=$lt_postuninstall_cmds 20446 20447# Commands used to build a loadable module (assumed same as above if empty) 20448module_cmds=$lt_module_cmds_GCJ 20449module_expsym_cmds=$lt_module_expsym_cmds_GCJ 20450 20451# Commands to strip libraries. 20452old_striplib=$lt_old_striplib 20453striplib=$lt_striplib 20454 20455# Dependencies to place before the objects being linked to create a 20456# shared library. 20457predep_objects=$lt_predep_objects_GCJ 20458 20459# Dependencies to place after the objects being linked to create a 20460# shared library. 20461postdep_objects=$lt_postdep_objects_GCJ 20462 20463# Dependencies to place before the objects being linked to create a 20464# shared library. 20465predeps=$lt_predeps_GCJ 20466 20467# Dependencies to place after the objects being linked to create a 20468# shared library. 20469postdeps=$lt_postdeps_GCJ 20470 20471# The library search path used internally by the compiler when linking 20472# a shared library. 20473compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 20474 20475# Method to check whether dependent libraries are shared objects. 20476deplibs_check_method=$lt_deplibs_check_method 20477 20478# Command to use when deplibs_check_method == file_magic. 20479file_magic_cmd=$lt_file_magic_cmd 20480 20481# Flag that allows shared libraries with undefined symbols to be built. 20482allow_undefined_flag=$lt_allow_undefined_flag_GCJ 20483 20484# Flag that forces no undefined symbols. 20485no_undefined_flag=$lt_no_undefined_flag_GCJ 20486 20487# Commands used to finish a libtool library installation in a directory. 20488finish_cmds=$lt_finish_cmds 20489 20490# Same as above, but a single script fragment to be evaled but not shown. 20491finish_eval=$lt_finish_eval 20492 20493# Take the output of nm and produce a listing of raw symbols and C names. 20494global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20495 20496# Transform the output of nm in a proper C declaration 20497global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20498 20499# Transform the output of nm in a C name address pair 20500global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20501 20502# This is the shared library runtime path variable. 20503runpath_var=$runpath_var 20504 20505# This is the shared library path variable. 20506shlibpath_var=$shlibpath_var 20507 20508# Is shlibpath searched before the hard-coded library search path? 20509shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20510 20511# How to hardcode a shared library path into an executable. 20512hardcode_action=$hardcode_action_GCJ 20513 20514# Whether we should hardcode library paths into libraries. 20515hardcode_into_libs=$hardcode_into_libs 20516 20517# Flag to hardcode \$libdir into a binary during linking. 20518# This must work even if \$libdir does not exist. 20519hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 20520 20521# If ld is used when linking, flag to hardcode \$libdir into 20522# a binary during linking. This must work even if \$libdir does 20523# not exist. 20524hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 20525 20526# Whether we need a single -rpath flag with a separated argument. 20527hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 20528 20529# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20530# resulting binary. 20531hardcode_direct=$hardcode_direct_GCJ 20532 20533# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20534# resulting binary. 20535hardcode_minus_L=$hardcode_minus_L_GCJ 20536 20537# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20538# the resulting binary. 20539hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 20540 20541# Set to yes if building a shared library automatically hardcodes DIR into the library 20542# and all subsequent libraries and executables linked against it. 20543hardcode_automatic=$hardcode_automatic_GCJ 20544 20545# Variables whose values should be saved in libtool wrapper scripts and 20546# restored at relink time. 20547variables_saved_for_relink="$variables_saved_for_relink" 20548 20549# Whether libtool must link a program against all its dependency libraries. 20550link_all_deplibs=$link_all_deplibs_GCJ 20551 20552# Compile-time system search path for libraries 20553sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20554 20555# Run-time system search path for libraries 20556sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20557 20558# Fix the shell variable \$srcfile for the compiler. 20559fix_srcfile_path="$fix_srcfile_path_GCJ" 20560 20561# Set to yes if exported symbols are required. 20562always_export_symbols=$always_export_symbols_GCJ 20563 20564# The commands to list exported symbols. 20565export_symbols_cmds=$lt_export_symbols_cmds_GCJ 20566 20567# The commands to extract the exported symbol list from a shared archive. 20568extract_expsyms_cmds=$lt_extract_expsyms_cmds 20569 20570# Symbols that should not be listed in the preloaded symbols. 20571exclude_expsyms=$lt_exclude_expsyms_GCJ 20572 20573# Symbols that must always be exported. 20574include_expsyms=$lt_include_expsyms_GCJ 20575 20576# ### END LIBTOOL TAG CONFIG: $tagname 20577 20578__EOF__ 20579 20580 20581else 20582 # If there is no Makefile yet, we rely on a make rule to execute 20583 # `config.status --recheck' to rerun these tests and create the 20584 # libtool script then. 20585 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20586 if test -f "$ltmain_in"; then 20587 test -f Makefile && make "$ltmain" 20588 fi 20589fi 20590 20591 20592ac_ext=c 20593ac_cpp='$CPP $CPPFLAGS' 20594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20596ac_compiler_gnu=$ac_cv_c_compiler_gnu 20597 20598CC="$lt_save_CC" 20599 20600 else 20601 tagname="" 20602 fi 20603 ;; 20604 20605 RC) 20606 20607 20608# Source file extension for RC test sources. 20609ac_ext=rc 20610 20611# Object file extension for compiled RC test sources. 20612objext=o 20613objext_RC=$objext 20614 20615# Code to be used in simple compile tests 20616lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 20617 20618# Code to be used in simple link tests 20619lt_simple_link_test_code="$lt_simple_compile_test_code" 20620 20621# ltmain only uses $CC for tagged configurations so make sure $CC is set. 20622 20623# If no C compiler was specified, use CC. 20624LTCC=${LTCC-"$CC"} 20625 20626# If no C compiler flags were specified, use CFLAGS. 20627LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20628 20629# Allow CC to be a program name with arguments. 20630compiler=$CC 20631 20632 20633# save warnings/boilerplate of simple test code 20634ac_outfile=conftest.$ac_objext 20635printf "$lt_simple_compile_test_code" >conftest.$ac_ext 20636eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20637_lt_compiler_boilerplate=`cat conftest.err` 20638$rm conftest* 20639 20640ac_outfile=conftest.$ac_objext 20641printf "$lt_simple_link_test_code" >conftest.$ac_ext 20642eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20643_lt_linker_boilerplate=`cat conftest.err` 20644$rm conftest* 20645 20646 20647# Allow CC to be a program name with arguments. 20648lt_save_CC="$CC" 20649CC=${RC-"windres"} 20650compiler=$CC 20651compiler_RC=$CC 20652for cc_temp in $compiler""; do 20653 case $cc_temp in 20654 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20655 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20656 \-*) ;; 20657 *) break;; 20658 esac 20659done 20660cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20661 20662lt_cv_prog_compiler_c_o_RC=yes 20663 20664# The else clause should only fire when bootstrapping the 20665# libtool distribution, otherwise you forgot to ship ltmain.sh 20666# with your package, and you will get complaints that there are 20667# no rules to generate ltmain.sh. 20668if test -f "$ltmain"; then 20669 # See if we are running on zsh, and set the options which allow our commands through 20670 # without removal of \ escapes. 20671 if test -n "${ZSH_VERSION+set}" ; then 20672 setopt NO_GLOB_SUBST 20673 fi 20674 # Now quote all the things that may contain metacharacters while being 20675 # careful not to overquote the AC_SUBSTed values. We take copies of the 20676 # variables and quote the copies for generation of the libtool script. 20677 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20678 SED SHELL STRIP \ 20679 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20680 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20681 deplibs_check_method reload_flag reload_cmds need_locks \ 20682 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20683 lt_cv_sys_global_symbol_to_c_name_address \ 20684 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20685 old_postinstall_cmds old_postuninstall_cmds \ 20686 compiler_RC \ 20687 CC_RC \ 20688 LD_RC \ 20689 lt_prog_compiler_wl_RC \ 20690 lt_prog_compiler_pic_RC \ 20691 lt_prog_compiler_static_RC \ 20692 lt_prog_compiler_no_builtin_flag_RC \ 20693 export_dynamic_flag_spec_RC \ 20694 thread_safe_flag_spec_RC \ 20695 whole_archive_flag_spec_RC \ 20696 enable_shared_with_static_runtimes_RC \ 20697 old_archive_cmds_RC \ 20698 old_archive_from_new_cmds_RC \ 20699 predep_objects_RC \ 20700 postdep_objects_RC \ 20701 predeps_RC \ 20702 postdeps_RC \ 20703 compiler_lib_search_path_RC \ 20704 archive_cmds_RC \ 20705 archive_expsym_cmds_RC \ 20706 postinstall_cmds_RC \ 20707 postuninstall_cmds_RC \ 20708 old_archive_from_expsyms_cmds_RC \ 20709 allow_undefined_flag_RC \ 20710 no_undefined_flag_RC \ 20711 export_symbols_cmds_RC \ 20712 hardcode_libdir_flag_spec_RC \ 20713 hardcode_libdir_flag_spec_ld_RC \ 20714 hardcode_libdir_separator_RC \ 20715 hardcode_automatic_RC \ 20716 module_cmds_RC \ 20717 module_expsym_cmds_RC \ 20718 lt_cv_prog_compiler_c_o_RC \ 20719 exclude_expsyms_RC \ 20720 include_expsyms_RC; do 20721 20722 case $var in 20723 old_archive_cmds_RC | \ 20724 old_archive_from_new_cmds_RC | \ 20725 archive_cmds_RC | \ 20726 archive_expsym_cmds_RC | \ 20727 module_cmds_RC | \ 20728 module_expsym_cmds_RC | \ 20729 old_archive_from_expsyms_cmds_RC | \ 20730 export_symbols_cmds_RC | \ 20731 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20732 postinstall_cmds | postuninstall_cmds | \ 20733 old_postinstall_cmds | old_postuninstall_cmds | \ 20734 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20735 # Double-quote double-evaled strings. 20736 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20737 ;; 20738 *) 20739 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20740 ;; 20741 esac 20742 done 20743 20744 case $lt_echo in 20745 *'\$0 --fallback-echo"') 20746 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20747 ;; 20748 esac 20749 20750cfgfile="$ofile" 20751 20752 cat <<__EOF__ >> "$cfgfile" 20753# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20754 20755# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20756 20757# Shell to use when invoking shell scripts. 20758SHELL=$lt_SHELL 20759 20760# Whether or not to build shared libraries. 20761build_libtool_libs=$enable_shared 20762 20763# Whether or not to build static libraries. 20764build_old_libs=$enable_static 20765 20766# Whether or not to add -lc for building shared libraries. 20767build_libtool_need_lc=$archive_cmds_need_lc_RC 20768 20769# Whether or not to disallow shared libs when runtime libs are static 20770allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 20771 20772# Whether or not to optimize for fast installation. 20773fast_install=$enable_fast_install 20774 20775# The host system. 20776host_alias=$host_alias 20777host=$host 20778host_os=$host_os 20779 20780# The build system. 20781build_alias=$build_alias 20782build=$build 20783build_os=$build_os 20784 20785# An echo program that does not interpret backslashes. 20786echo=$lt_echo 20787 20788# The archiver. 20789AR=$lt_AR 20790AR_FLAGS=$lt_AR_FLAGS 20791 20792# A C compiler. 20793LTCC=$lt_LTCC 20794 20795# LTCC compiler flags. 20796LTCFLAGS=$lt_LTCFLAGS 20797 20798# A language-specific compiler. 20799CC=$lt_compiler_RC 20800 20801# Is the compiler the GNU C compiler? 20802with_gcc=$GCC_RC 20803 20804# An ERE matcher. 20805EGREP=$lt_EGREP 20806 20807# The linker used to build libraries. 20808LD=$lt_LD_RC 20809 20810# Whether we need hard or soft links. 20811LN_S=$lt_LN_S 20812 20813# A BSD-compatible nm program. 20814NM=$lt_NM 20815 20816# A symbol stripping program 20817STRIP=$lt_STRIP 20818 20819# Used to examine libraries when file_magic_cmd begins "file" 20820MAGIC_CMD=$MAGIC_CMD 20821 20822# Used on cygwin: DLL creation program. 20823DLLTOOL="$DLLTOOL" 20824 20825# Used on cygwin: object dumper. 20826OBJDUMP="$OBJDUMP" 20827 20828# Used on cygwin: assembler. 20829AS="$AS" 20830 20831# The name of the directory that contains temporary libtool files. 20832objdir=$objdir 20833 20834# How to create reloadable object files. 20835reload_flag=$lt_reload_flag 20836reload_cmds=$lt_reload_cmds 20837 20838# How to pass a linker flag through the compiler. 20839wl=$lt_lt_prog_compiler_wl_RC 20840 20841# Object file suffix (normally "o"). 20842objext="$ac_objext" 20843 20844# Old archive suffix (normally "a"). 20845libext="$libext" 20846 20847# Shared library suffix (normally ".so"). 20848shrext_cmds='$shrext_cmds' 20849 20850# Executable file suffix (normally ""). 20851exeext="$exeext" 20852 20853# Additional compiler flags for building library objects. 20854pic_flag=$lt_lt_prog_compiler_pic_RC 20855pic_mode=$pic_mode 20856 20857# What is the maximum length of a command? 20858max_cmd_len=$lt_cv_sys_max_cmd_len 20859 20860# Does compiler simultaneously support -c and -o options? 20861compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 20862 20863# Must we lock files when doing compilation? 20864need_locks=$lt_need_locks 20865 20866# Do we need the lib prefix for modules? 20867need_lib_prefix=$need_lib_prefix 20868 20869# Do we need a version for libraries? 20870need_version=$need_version 20871 20872# Whether dlopen is supported. 20873dlopen_support=$enable_dlopen 20874 20875# Whether dlopen of programs is supported. 20876dlopen_self=$enable_dlopen_self 20877 20878# Whether dlopen of statically linked programs is supported. 20879dlopen_self_static=$enable_dlopen_self_static 20880 20881# Compiler flag to prevent dynamic linking. 20882link_static_flag=$lt_lt_prog_compiler_static_RC 20883 20884# Compiler flag to turn off builtin functions. 20885no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 20886 20887# Compiler flag to allow reflexive dlopens. 20888export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 20889 20890# Compiler flag to generate shared objects directly from archives. 20891whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 20892 20893# Compiler flag to generate thread-safe objects. 20894thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 20895 20896# Library versioning type. 20897version_type=$version_type 20898 20899# Format of library name prefix. 20900libname_spec=$lt_libname_spec 20901 20902# List of archive names. First name is the real one, the rest are links. 20903# The last name is the one that the linker finds with -lNAME. 20904library_names_spec=$lt_library_names_spec 20905 20906# The coded name of the library, if different from the real name. 20907soname_spec=$lt_soname_spec 20908 20909# Commands used to build and install an old-style archive. 20910RANLIB=$lt_RANLIB 20911old_archive_cmds=$lt_old_archive_cmds_RC 20912old_postinstall_cmds=$lt_old_postinstall_cmds 20913old_postuninstall_cmds=$lt_old_postuninstall_cmds 20914 20915# Create an old-style archive from a shared archive. 20916old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20917 20918# Create a temporary old-style archive to link instead of a shared archive. 20919old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20920 20921# Commands used to build and install a shared archive. 20922archive_cmds=$lt_archive_cmds_RC 20923archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20924postinstall_cmds=$lt_postinstall_cmds 20925postuninstall_cmds=$lt_postuninstall_cmds 20926 20927# Commands used to build a loadable module (assumed same as above if empty) 20928module_cmds=$lt_module_cmds_RC 20929module_expsym_cmds=$lt_module_expsym_cmds_RC 20930 20931# Commands to strip libraries. 20932old_striplib=$lt_old_striplib 20933striplib=$lt_striplib 20934 20935# Dependencies to place before the objects being linked to create a 20936# shared library. 20937predep_objects=$lt_predep_objects_RC 20938 20939# Dependencies to place after the objects being linked to create a 20940# shared library. 20941postdep_objects=$lt_postdep_objects_RC 20942 20943# Dependencies to place before the objects being linked to create a 20944# shared library. 20945predeps=$lt_predeps_RC 20946 20947# Dependencies to place after the objects being linked to create a 20948# shared library. 20949postdeps=$lt_postdeps_RC 20950 20951# The library search path used internally by the compiler when linking 20952# a shared library. 20953compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20954 20955# Method to check whether dependent libraries are shared objects. 20956deplibs_check_method=$lt_deplibs_check_method 20957 20958# Command to use when deplibs_check_method == file_magic. 20959file_magic_cmd=$lt_file_magic_cmd 20960 20961# Flag that allows shared libraries with undefined symbols to be built. 20962allow_undefined_flag=$lt_allow_undefined_flag_RC 20963 20964# Flag that forces no undefined symbols. 20965no_undefined_flag=$lt_no_undefined_flag_RC 20966 20967# Commands used to finish a libtool library installation in a directory. 20968finish_cmds=$lt_finish_cmds 20969 20970# Same as above, but a single script fragment to be evaled but not shown. 20971finish_eval=$lt_finish_eval 20972 20973# Take the output of nm and produce a listing of raw symbols and C names. 20974global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20975 20976# Transform the output of nm in a proper C declaration 20977global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20978 20979# Transform the output of nm in a C name address pair 20980global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20981 20982# This is the shared library runtime path variable. 20983runpath_var=$runpath_var 20984 20985# This is the shared library path variable. 20986shlibpath_var=$shlibpath_var 20987 20988# Is shlibpath searched before the hard-coded library search path? 20989shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20990 20991# How to hardcode a shared library path into an executable. 20992hardcode_action=$hardcode_action_RC 20993 20994# Whether we should hardcode library paths into libraries. 20995hardcode_into_libs=$hardcode_into_libs 20996 20997# Flag to hardcode \$libdir into a binary during linking. 20998# This must work even if \$libdir does not exist. 20999hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 21000 21001# If ld is used when linking, flag to hardcode \$libdir into 21002# a binary during linking. This must work even if \$libdir does 21003# not exist. 21004hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 21005 21006# Whether we need a single -rpath flag with a separated argument. 21007hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 21008 21009# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 21010# resulting binary. 21011hardcode_direct=$hardcode_direct_RC 21012 21013# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 21014# resulting binary. 21015hardcode_minus_L=$hardcode_minus_L_RC 21016 21017# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 21018# the resulting binary. 21019hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 21020 21021# Set to yes if building a shared library automatically hardcodes DIR into the library 21022# and all subsequent libraries and executables linked against it. 21023hardcode_automatic=$hardcode_automatic_RC 21024 21025# Variables whose values should be saved in libtool wrapper scripts and 21026# restored at relink time. 21027variables_saved_for_relink="$variables_saved_for_relink" 21028 21029# Whether libtool must link a program against all its dependency libraries. 21030link_all_deplibs=$link_all_deplibs_RC 21031 21032# Compile-time system search path for libraries 21033sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21034 21035# Run-time system search path for libraries 21036sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21037 21038# Fix the shell variable \$srcfile for the compiler. 21039fix_srcfile_path="$fix_srcfile_path_RC" 21040 21041# Set to yes if exported symbols are required. 21042always_export_symbols=$always_export_symbols_RC 21043 21044# The commands to list exported symbols. 21045export_symbols_cmds=$lt_export_symbols_cmds_RC 21046 21047# The commands to extract the exported symbol list from a shared archive. 21048extract_expsyms_cmds=$lt_extract_expsyms_cmds 21049 21050# Symbols that should not be listed in the preloaded symbols. 21051exclude_expsyms=$lt_exclude_expsyms_RC 21052 21053# Symbols that must always be exported. 21054include_expsyms=$lt_include_expsyms_RC 21055 21056# ### END LIBTOOL TAG CONFIG: $tagname 21057 21058__EOF__ 21059 21060 21061else 21062 # If there is no Makefile yet, we rely on a make rule to execute 21063 # `config.status --recheck' to rerun these tests and create the 21064 # libtool script then. 21065 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 21066 if test -f "$ltmain_in"; then 21067 test -f Makefile && make "$ltmain" 21068 fi 21069fi 21070 21071 21072ac_ext=c 21073ac_cpp='$CPP $CPPFLAGS' 21074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21076ac_compiler_gnu=$ac_cv_c_compiler_gnu 21077 21078CC="$lt_save_CC" 21079 21080 ;; 21081 21082 *) 21083 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 21084echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 21085 { (exit 1); exit 1; }; } 21086 ;; 21087 esac 21088 21089 # Append the new tag name to the list of available tags. 21090 if test -n "$tagname" ; then 21091 available_tags="$available_tags $tagname" 21092 fi 21093 fi 21094 done 21095 IFS="$lt_save_ifs" 21096 21097 # Now substitute the updated list of available tags. 21098 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 21099 mv "${ofile}T" "$ofile" 21100 chmod +x "$ofile" 21101 else 21102 rm -f "${ofile}T" 21103 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 21104echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 21105 { (exit 1); exit 1; }; } 21106 fi 21107fi 21108 21109 21110 21111# This can be used to rebuild libtool when needed 21112LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 21113 21114# Always use our own libtool. 21115LIBTOOL='$(SHELL) $(top_builddir)/libtool' 21116 21117# Prevent multiple expansion 21118 21119 21120 21121 21122 21123 21124 21125 21126 21127 21128 21129 21130 21131 21132 21133 21134 21135 21136 21137 21138 21139# cross-compile checks 21140if test x"${build}" != x"${host}"; 21141then 21142 if test -n "$ac_tool_prefix"; then 21143 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 21144set dummy ${ac_tool_prefix}windres; ac_word=$2 21145{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21147if test "${ac_cv_prog_WINDRES+set}" = set; then 21148 echo $ECHO_N "(cached) $ECHO_C" >&6 21149else 21150 if test -n "$WINDRES"; then 21151 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 21152else 21153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21154for as_dir in $PATH 21155do 21156 IFS=$as_save_IFS 21157 test -z "$as_dir" && as_dir=. 21158 for ac_exec_ext in '' $ac_executable_extensions; do 21159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21160 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 21161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21162 break 2 21163 fi 21164done 21165done 21166IFS=$as_save_IFS 21167 21168fi 21169fi 21170WINDRES=$ac_cv_prog_WINDRES 21171if test -n "$WINDRES"; then 21172 { echo "$as_me:$LINENO: result: $WINDRES" >&5 21173echo "${ECHO_T}$WINDRES" >&6; } 21174else 21175 { echo "$as_me:$LINENO: result: no" >&5 21176echo "${ECHO_T}no" >&6; } 21177fi 21178 21179 21180fi 21181if test -z "$ac_cv_prog_WINDRES"; then 21182 ac_ct_WINDRES=$WINDRES 21183 # Extract the first word of "windres", so it can be a program name with args. 21184set dummy windres; ac_word=$2 21185{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21187if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then 21188 echo $ECHO_N "(cached) $ECHO_C" >&6 21189else 21190 if test -n "$ac_ct_WINDRES"; then 21191 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 21192else 21193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21194for as_dir in $PATH 21195do 21196 IFS=$as_save_IFS 21197 test -z "$as_dir" && as_dir=. 21198 for ac_exec_ext in '' $ac_executable_extensions; do 21199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21200 ac_cv_prog_ac_ct_WINDRES="windres" 21201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21202 break 2 21203 fi 21204done 21205done 21206IFS=$as_save_IFS 21207 21208fi 21209fi 21210ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 21211if test -n "$ac_ct_WINDRES"; then 21212 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 21213echo "${ECHO_T}$ac_ct_WINDRES" >&6; } 21214else 21215 { echo "$as_me:$LINENO: result: no" >&5 21216echo "${ECHO_T}no" >&6; } 21217fi 21218 21219 if test "x$ac_ct_WINDRES" = x; then 21220 WINDRES=":" 21221 else 21222 case $cross_compiling:$ac_tool_warned in 21223yes:) 21224{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 21225whose name does not start with the host triplet. If you think this 21226configuration is useful to you, please write to autoconf@gnu.org." >&5 21227echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 21228whose name does not start with the host triplet. If you think this 21229configuration is useful to you, please write to autoconf@gnu.org." >&2;} 21230ac_tool_warned=yes ;; 21231esac 21232 WINDRES=$ac_ct_WINDRES 21233 fi 21234else 21235 WINDRES="$ac_cv_prog_WINDRES" 21236fi 21237 21238 21239 21240if test "" = ""; then 21241 WIN32BUILD_TRUE= 21242 WIN32BUILD_FALSE='#' 21243else 21244 WIN32BUILD_TRUE='#' 21245 WIN32BUILD_FALSE= 21246fi 21247 21248fi 21249 21250 21251 21252# Check whether --with-wxdir was given. 21253if test "${with_wxdir+set}" = set; then 21254 withval=$with_wxdir; wx_config_name="$withval/wx-config" 21255 wx_config_args="--inplace" 21256fi 21257 21258 21259# Check whether --with-wx-config was given. 21260if test "${with_wx_config+set}" = set; then 21261 withval=$with_wx_config; wx_config_name="$withval" 21262fi 21263 21264 21265# Check whether --with-wx-prefix was given. 21266if test "${with_wx_prefix+set}" = set; then 21267 withval=$with_wx_prefix; wx_config_prefix="$withval" 21268else 21269 wx_config_prefix="" 21270fi 21271 21272 21273# Check whether --with-wx-exec-prefix was given. 21274if test "${with_wx_exec_prefix+set}" = set; then 21275 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval" 21276else 21277 wx_config_exec_prefix="" 21278fi 21279 21280 21281 21282 if test x${WX_CONFIG_NAME+set} != xset ; then 21283 WX_CONFIG_NAME=wx-config 21284 fi 21285 21286 if test "x$wx_config_name" != x ; then 21287 WX_CONFIG_NAME="$wx_config_name" 21288 fi 21289 21290 if test x$wx_config_exec_prefix != x ; then 21291 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix" 21292 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin" 21293 fi 21294 if test x$wx_config_prefix != x ; then 21295 wx_config_args="$wx_config_args --prefix=$wx_config_prefix" 21296 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin" 21297 fi 21298 if test "$cross_compiling" = "yes"; then 21299 wx_config_args="$wx_config_args --host=$host_alias" 21300 fi 21301 21302 if test -x "$WX_CONFIG_NAME" ; then 21303 { echo "$as_me:$LINENO: checking for wx-config" >&5 21304echo $ECHO_N "checking for wx-config... $ECHO_C" >&6; } 21305 WX_CONFIG_PATH="$WX_CONFIG_NAME" 21306 { echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5 21307echo "${ECHO_T}$WX_CONFIG_PATH" >&6; } 21308 else 21309 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args. 21310set dummy $WX_CONFIG_NAME; ac_word=$2 21311{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21313if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then 21314 echo $ECHO_N "(cached) $ECHO_C" >&6 21315else 21316 case $WX_CONFIG_PATH in 21317 [\\/]* | ?:[\\/]*) 21318 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path. 21319 ;; 21320 *) 21321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21322as_dummy=""$WX_LOOKUP_PATH:$PATH"" 21323for as_dir in $as_dummy 21324do 21325 IFS=$as_save_IFS 21326 test -z "$as_dir" && as_dir=. 21327 for ac_exec_ext in '' $ac_executable_extensions; do 21328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21329 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext" 21330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21331 break 2 21332 fi 21333done 21334done 21335IFS=$as_save_IFS 21336 21337 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no" 21338 ;; 21339esac 21340fi 21341WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH 21342if test -n "$WX_CONFIG_PATH"; then 21343 { echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5 21344echo "${ECHO_T}$WX_CONFIG_PATH" >&6; } 21345else 21346 { echo "$as_me:$LINENO: result: no" >&5 21347echo "${ECHO_T}no" >&6; } 21348fi 21349 21350 21351 fi 21352 21353 if test "$WX_CONFIG_PATH" != "no" ; then 21354 WX_VERSION="" 21355 21356 min_wx_version=2.6.0 21357 if test -z "" ; then 21358 { echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5 21359echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6; } 21360 else 21361 { echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ()" >&5 21362echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ()... $ECHO_C" >&6; } 21363 fi 21364 21365 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args xrc,std" 21366 21367 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null` 21368 wx_config_major_version=`echo $WX_VERSION | \ 21369 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 21370 wx_config_minor_version=`echo $WX_VERSION | \ 21371 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 21372 wx_config_micro_version=`echo $WX_VERSION | \ 21373 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 21374 21375 wx_requested_major_version=`echo $min_wx_version | \ 21376 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 21377 wx_requested_minor_version=`echo $min_wx_version | \ 21378 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 21379 wx_requested_micro_version=`echo $min_wx_version | \ 21380 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 21381 21382 21383 wx_ver_ok="" 21384 if test "x$WX_VERSION" != x ; then 21385 if test $wx_config_major_version -gt $wx_requested_major_version; then 21386 wx_ver_ok=yes 21387 else 21388 if test $wx_config_major_version -eq $wx_requested_major_version; then 21389 if test $wx_config_minor_version -gt $wx_requested_minor_version; then 21390 wx_ver_ok=yes 21391 else 21392 if test $wx_config_minor_version -eq $wx_requested_minor_version; then 21393 if test $wx_config_micro_version -ge $wx_requested_micro_version; then 21394 wx_ver_ok=yes 21395 fi 21396 fi 21397 fi 21398 fi 21399 fi 21400 fi 21401 21402 21403 if test -n "$wx_ver_ok"; then 21404 21405 { echo "$as_me:$LINENO: result: yes (version $WX_VERSION)" >&5 21406echo "${ECHO_T}yes (version $WX_VERSION)" >&6; } 21407 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs` 21408 21409 { echo "$as_me:$LINENO: checking for wxWidgets static library" >&5 21410echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6; } 21411 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null` 21412 if test "x$WX_LIBS_STATIC" = "x"; then 21413 { echo "$as_me:$LINENO: result: no" >&5 21414echo "${ECHO_T}no" >&6; } 21415 else 21416 { echo "$as_me:$LINENO: result: yes" >&5 21417echo "${ECHO_T}yes" >&6; } 21418 fi 21419 21420 wx_has_cppflags="" 21421 if test $wx_config_major_version -gt 2; then 21422 wx_has_cppflags=yes 21423 else 21424 if test $wx_config_major_version -eq 2; then 21425 if test $wx_config_minor_version -gt 2; then 21426 wx_has_cppflags=yes 21427 else 21428 if test $wx_config_minor_version -eq 2; then 21429 if test $wx_config_micro_version -ge 6; then 21430 wx_has_cppflags=yes 21431 fi 21432 fi 21433 fi 21434 fi 21435 fi 21436 21437 if test "x$wx_has_cppflags" = x ; then 21438 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags` 21439 WX_CPPFLAGS=$WX_CFLAGS 21440 WX_CXXFLAGS=$WX_CFLAGS 21441 21442 WX_CFLAGS_ONLY=$WX_CFLAGS 21443 WX_CXXFLAGS_ONLY=$WX_CFLAGS 21444 else 21445 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags` 21446 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags` 21447 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags` 21448 21449 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"` 21450 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"` 21451 fi 21452 21453 wxWin=1 21454 21455 else 21456 21457 if test "x$WX_VERSION" = x; then 21458 { echo "$as_me:$LINENO: result: no" >&5 21459echo "${ECHO_T}no" >&6; } 21460 else 21461 { echo "$as_me:$LINENO: result: no (version $WX_VERSION is not new enough)" >&5 21462echo "${ECHO_T}no (version $WX_VERSION is not new enough)" >&6; } 21463 fi 21464 21465 WX_CFLAGS="" 21466 WX_CPPFLAGS="" 21467 WX_CXXFLAGS="" 21468 WX_LIBS="" 21469 WX_LIBS_STATIC="" 21470 : 21471 21472 fi 21473 else 21474 21475 WX_CFLAGS="" 21476 WX_CPPFLAGS="" 21477 WX_CXXFLAGS="" 21478 WX_LIBS="" 21479 WX_LIBS_STATIC="" 21480 : 21481 21482 fi 21483 21484 21485 21486 21487 21488 21489 21490 21491 21492 21493 if test "$wxWin" != 1; then 21494 { { echo "$as_me:$LINENO: error: 21495 wxWindows must be installed on your system. 21496 21497 Please check that wx-config is in path, the directory 21498 where wxWindows libraries are installed (returned by 21499 'wx-config --libs' or 'wx-config --static --libs' command) 21500 is in LD_LIBRARY_PATH or equivalent variable and 21501 wxWindows version is 2.6.0 or above. 21502 " >&5 21503echo "$as_me: error: 21504 wxWindows must be installed on your system. 21505 21506 Please check that wx-config is in path, the directory 21507 where wxWindows libraries are installed (returned by 21508 'wx-config --libs' or 'wx-config --static --libs' command) 21509 is in LD_LIBRARY_PATH or equivalent variable and 21510 wxWindows version is 2.6.0 or above. 21511 " >&2;} 21512 { (exit 1); exit 1; }; } 21513 fi 21514 21515# Extract the first word of "wxrc --version", so it can be a program name with args. 21516set dummy wxrc --version; ac_word=$2 21517{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21519if test "${ac_cv_path_WXRC+set}" = set; then 21520 echo $ECHO_N "(cached) $ECHO_C" >&6 21521else 21522 case $WXRC in 21523 [\\/]* | ?:[\\/]*) 21524 ac_cv_path_WXRC="$WXRC" # Let the user override the test with a path. 21525 ;; 21526 *) 21527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21528for as_dir in $PATH 21529do 21530 IFS=$as_save_IFS 21531 test -z "$as_dir" && as_dir=. 21532 for ac_exec_ext in '' $ac_executable_extensions; do 21533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21534 ac_cv_path_WXRC="$as_dir/$ac_word$ac_exec_ext" 21535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21536 break 2 21537 fi 21538done 21539done 21540IFS=$as_save_IFS 21541 21542 ;; 21543esac 21544fi 21545WXRC=$ac_cv_path_WXRC 21546if test -n "$WXRC"; then 21547 { echo "$as_me:$LINENO: result: $WXRC" >&5 21548echo "${ECHO_T}$WXRC" >&6; } 21549else 21550 { echo "$as_me:$LINENO: result: no" >&5 21551echo "${ECHO_T}no" >&6; } 21552fi 21553 21554 21555 if test "x$WXRC" = "x"; then 21556 { { echo "$as_me:$LINENO: error: 21557 wxrc could not be found. This program gets build together with wxWidgets. 21558 Please make sure wxrc is within your path. 21559 " >&5 21560echo "$as_me: error: 21561 wxrc could not be found. This program gets build together with wxWidgets. 21562 Please make sure wxrc is within your path. 21563 " >&2;} 21564 { (exit 1); exit 1; }; } 21565 fi 21566 21567ac_config_files="$ac_config_files Makefile languages/Makefile languages/cs/Makefile languages/de/Makefile languages/es/Makefile languages/fr/Makefile languages/hu/Makefile languages/id/Makefile languages/pl/Makefile languages/pt_BR/Makefile languages/nl/Makefile languages/ru/Makefile languages/tr/Makefile man/Makefile man/man1/Makefile man/pt_BR/Makefile man/pt_BR/man1/Makefile resources/Makefile resources/xpm/Makefile resources/xpm/big/Makefile resources/xpm/small/Makefile resources/RipStop/Makefile resources/RipStop/menubar/Makefile resources/RipStop/toolbar/Makefile resources/RipStop/preview/Makefile resources/RipStop/svg/Makefile resources/RipStop/icon/Makefile resources/RipStop/logo/Makefile src/Makefile" 21568 21569cat >confcache <<\_ACEOF 21570# This file is a shell script that caches the results of configure 21571# tests run on this system so they can be shared between configure 21572# scripts and configure runs, see configure's option --config-cache. 21573# It is not useful on other systems. If it contains results you don't 21574# want to keep, you may remove or edit it. 21575# 21576# config.status only pays attention to the cache file if you give it 21577# the --recheck option to rerun configure. 21578# 21579# `ac_cv_env_foo' variables (set or unset) will be overridden when 21580# loading this file, other *unset* `ac_cv_foo' will be assigned the 21581# following values. 21582 21583_ACEOF 21584 21585# The following way of writing the cache mishandles newlines in values, 21586# but we know of no workaround that is simple, portable, and efficient. 21587# So, we kill variables containing newlines. 21588# Ultrix sh set writes to stderr and can't be redirected directly, 21589# and sets the high bit in the cache file unless we assign to the vars. 21590( 21591 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21592 eval ac_val=\$$ac_var 21593 case $ac_val in #( 21594 *${as_nl}*) 21595 case $ac_var in #( 21596 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21597echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21598 esac 21599 case $ac_var in #( 21600 _ | IFS | as_nl) ;; #( 21601 *) $as_unset $ac_var ;; 21602 esac ;; 21603 esac 21604 done 21605 21606 (set) 2>&1 | 21607 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21608 *${as_nl}ac_space=\ *) 21609 # `set' does not quote correctly, so add quotes (double-quote 21610 # substitution turns \\\\ into \\, and sed turns \\ into \). 21611 sed -n \ 21612 "s/'/'\\\\''/g; 21613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21614 ;; #( 21615 *) 21616 # `set' quotes correctly as required by POSIX, so do not add quotes. 21617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21618 ;; 21619 esac | 21620 sort 21621) | 21622 sed ' 21623 /^ac_cv_env_/b end 21624 t clear 21625 :clear 21626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21627 t end 21628 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21629 :end' >>confcache 21630if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21631 if test -w "$cache_file"; then 21632 test "x$cache_file" != "x/dev/null" && 21633 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21634echo "$as_me: updating cache $cache_file" >&6;} 21635 cat confcache >$cache_file 21636 else 21637 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21638echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21639 fi 21640fi 21641rm -f confcache 21642 21643test "x$prefix" = xNONE && prefix=$ac_default_prefix 21644# Let make expand exec_prefix. 21645test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21646 21647DEFS=-DHAVE_CONFIG_H 21648 21649ac_libobjs= 21650ac_ltlibobjs= 21651for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21652 # 1. Remove the extension, and $U if already installed. 21653 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21654 ac_i=`echo "$ac_i" | sed "$ac_script"` 21655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21656 # will be set to the directory where LIBOBJS objects are built. 21657 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21658 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21659done 21660LIBOBJS=$ac_libobjs 21661 21662LTLIBOBJS=$ac_ltlibobjs 21663 21664 21665if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21666 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21667Usually this means the macro was only invoked conditionally." >&5 21668echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21669Usually this means the macro was only invoked conditionally." >&2;} 21670 { (exit 1); exit 1; }; } 21671fi 21672if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 21673 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined. 21674Usually this means the macro was only invoked conditionally." >&5 21675echo "$as_me: error: conditional \"DEBUG\" was never defined. 21676Usually this means the macro was only invoked conditionally." >&2;} 21677 { (exit 1); exit 1; }; } 21678fi 21679if test -z "${XRCMODE_TRUE}" && test -z "${XRCMODE_FALSE}"; then 21680 { { echo "$as_me:$LINENO: error: conditional \"XRCMODE\" was never defined. 21681Usually this means the macro was only invoked conditionally." >&5 21682echo "$as_me: error: conditional \"XRCMODE\" was never defined. 21683Usually this means the macro was only invoked conditionally." >&2;} 21684 { (exit 1); exit 1; }; } 21685fi 21686if test -z "${NOXRCMODE_TRUE}" && test -z "${NOXRCMODE_FALSE}"; then 21687 { { echo "$as_me:$LINENO: error: conditional \"NOXRCMODE\" was never defined. 21688Usually this means the macro was only invoked conditionally." >&5 21689echo "$as_me: error: conditional \"NOXRCMODE\" was never defined. 21690Usually this means the macro was only invoked conditionally." >&2;} 21691 { (exit 1); exit 1; }; } 21692fi 21693if test -z "${WIN32BUILD_TRUE}" && test -z "${WIN32BUILD_FALSE}"; then 21694 { { echo "$as_me:$LINENO: error: conditional \"WIN32BUILD\" was never defined. 21695Usually this means the macro was only invoked conditionally." >&5 21696echo "$as_me: error: conditional \"WIN32BUILD\" was never defined. 21697Usually this means the macro was only invoked conditionally." >&2;} 21698 { (exit 1); exit 1; }; } 21699fi 21700if test -z "${PORTABLE_TRUE}" && test -z "${PORTABLE_FALSE}"; then 21701 { { echo "$as_me:$LINENO: error: conditional \"PORTABLE\" was never defined. 21702Usually this means the macro was only invoked conditionally." >&5 21703echo "$as_me: error: conditional \"PORTABLE\" was never defined. 21704Usually this means the macro was only invoked conditionally." >&2;} 21705 { (exit 1); exit 1; }; } 21706fi 21707if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21708 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21709Usually this means the macro was only invoked conditionally." >&5 21710echo "$as_me: error: conditional \"AMDEP\" was never defined. 21711Usually this means the macro was only invoked conditionally." >&2;} 21712 { (exit 1); exit 1; }; } 21713fi 21714if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21715 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21716Usually this means the macro was only invoked conditionally." >&5 21717echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21718Usually this means the macro was only invoked conditionally." >&2;} 21719 { (exit 1); exit 1; }; } 21720fi 21721if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21722 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21723Usually this means the macro was only invoked conditionally." >&5 21724echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21725Usually this means the macro was only invoked conditionally." >&2;} 21726 { (exit 1); exit 1; }; } 21727fi 21728if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21729 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21730Usually this means the macro was only invoked conditionally." >&5 21731echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21732Usually this means the macro was only invoked conditionally." >&2;} 21733 { (exit 1); exit 1; }; } 21734fi 21735if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21736 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21737Usually this means the macro was only invoked conditionally." >&5 21738echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21739Usually this means the macro was only invoked conditionally." >&2;} 21740 { (exit 1); exit 1; }; } 21741fi 21742if test -z "${WIN32BUILD_TRUE}" && test -z "${WIN32BUILD_FALSE}"; then 21743 { { echo "$as_me:$LINENO: error: conditional \"WIN32BUILD\" was never defined. 21744Usually this means the macro was only invoked conditionally." >&5 21745echo "$as_me: error: conditional \"WIN32BUILD\" was never defined. 21746Usually this means the macro was only invoked conditionally." >&2;} 21747 { (exit 1); exit 1; }; } 21748fi 21749 21750: ${CONFIG_STATUS=./config.status} 21751ac_clean_files_save=$ac_clean_files 21752ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21753{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21754echo "$as_me: creating $CONFIG_STATUS" >&6;} 21755cat >$CONFIG_STATUS <<_ACEOF 21756#! $SHELL 21757# Generated by $as_me. 21758# Run this file to recreate the current configuration. 21759# Compiler output produced by configure, useful for debugging 21760# configure, is in config.log if it exists. 21761 21762debug=false 21763ac_cs_recheck=false 21764ac_cs_silent=false 21765SHELL=\${CONFIG_SHELL-$SHELL} 21766_ACEOF 21767 21768cat >>$CONFIG_STATUS <<\_ACEOF 21769## --------------------- ## 21770## M4sh Initialization. ## 21771## --------------------- ## 21772 21773# Be more Bourne compatible 21774DUALCASE=1; export DUALCASE # for MKS sh 21775if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21776 emulate sh 21777 NULLCMD=: 21778 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21779 # is contrary to our usage. Disable this feature. 21780 alias -g '${1+"$@"}'='"$@"' 21781 setopt NO_GLOB_SUBST 21782else 21783 case `(set -o) 2>/dev/null` in 21784 *posix*) set -o posix ;; 21785esac 21786 21787fi 21788 21789 21790 21791 21792# PATH needs CR 21793# Avoid depending upon Character Ranges. 21794as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21795as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21796as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21797as_cr_digits='0123456789' 21798as_cr_alnum=$as_cr_Letters$as_cr_digits 21799 21800# The user is always right. 21801if test "${PATH_SEPARATOR+set}" != set; then 21802 echo "#! /bin/sh" >conf$$.sh 21803 echo "exit 0" >>conf$$.sh 21804 chmod +x conf$$.sh 21805 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21806 PATH_SEPARATOR=';' 21807 else 21808 PATH_SEPARATOR=: 21809 fi 21810 rm -f conf$$.sh 21811fi 21812 21813# Support unset when possible. 21814if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21815 as_unset=unset 21816else 21817 as_unset=false 21818fi 21819 21820 21821# IFS 21822# We need space, tab and new line, in precisely that order. Quoting is 21823# there to prevent editors from complaining about space-tab. 21824# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21825# splitting by setting IFS to empty value.) 21826as_nl=' 21827' 21828IFS=" "" $as_nl" 21829 21830# Find who we are. Look in the path if we contain no directory separator. 21831case $0 in 21832 *[\\/]* ) as_myself=$0 ;; 21833 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21834for as_dir in $PATH 21835do 21836 IFS=$as_save_IFS 21837 test -z "$as_dir" && as_dir=. 21838 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21839done 21840IFS=$as_save_IFS 21841 21842 ;; 21843esac 21844# We did not find ourselves, most probably we were run as `sh COMMAND' 21845# in which case we are not to be found in the path. 21846if test "x$as_myself" = x; then 21847 as_myself=$0 21848fi 21849if test ! -f "$as_myself"; then 21850 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21851 { (exit 1); exit 1; } 21852fi 21853 21854# Work around bugs in pre-3.0 UWIN ksh. 21855for as_var in ENV MAIL MAILPATH 21856do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21857done 21858PS1='$ ' 21859PS2='> ' 21860PS4='+ ' 21861 21862# NLS nuisances. 21863for as_var in \ 21864 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21865 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21866 LC_TELEPHONE LC_TIME 21867do 21868 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21869 eval $as_var=C; export $as_var 21870 else 21871 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21872 fi 21873done 21874 21875# Required to use basename. 21876if expr a : '\(a\)' >/dev/null 2>&1 && 21877 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21878 as_expr=expr 21879else 21880 as_expr=false 21881fi 21882 21883if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21884 as_basename=basename 21885else 21886 as_basename=false 21887fi 21888 21889 21890# Name of the executable. 21891as_me=`$as_basename -- "$0" || 21892$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21893 X"$0" : 'X\(//\)$' \| \ 21894 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21895echo X/"$0" | 21896 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21897 s//\1/ 21898 q 21899 } 21900 /^X\/\(\/\/\)$/{ 21901 s//\1/ 21902 q 21903 } 21904 /^X\/\(\/\).*/{ 21905 s//\1/ 21906 q 21907 } 21908 s/.*/./; q'` 21909 21910# CDPATH. 21911$as_unset CDPATH 21912 21913 21914 21915 as_lineno_1=$LINENO 21916 as_lineno_2=$LINENO 21917 test "x$as_lineno_1" != "x$as_lineno_2" && 21918 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21919 21920 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21921 # uniformly replaced by the line number. The first 'sed' inserts a 21922 # line-number line after each line using $LINENO; the second 'sed' 21923 # does the real work. The second script uses 'N' to pair each 21924 # line-number line with the line containing $LINENO, and appends 21925 # trailing '-' during substitution so that $LINENO is not a special 21926 # case at line end. 21927 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21928 # scripts with optimization help from Paolo Bonzini. Blame Lee 21929 # E. McMahon (1931-1989) for sed's syntax. :-) 21930 sed -n ' 21931 p 21932 /[$]LINENO/= 21933 ' <$as_myself | 21934 sed ' 21935 s/[$]LINENO.*/&-/ 21936 t lineno 21937 b 21938 :lineno 21939 N 21940 :loop 21941 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21942 t loop 21943 s/-\n.*// 21944 ' >$as_me.lineno && 21945 chmod +x "$as_me.lineno" || 21946 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21947 { (exit 1); exit 1; }; } 21948 21949 # Don't try to exec as it changes $[0], causing all sort of problems 21950 # (the dirname of $[0] is not the place where we might find the 21951 # original and so on. Autoconf is especially sensitive to this). 21952 . "./$as_me.lineno" 21953 # Exit status is that of the last command. 21954 exit 21955} 21956 21957 21958if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21959 as_dirname=dirname 21960else 21961 as_dirname=false 21962fi 21963 21964ECHO_C= ECHO_N= ECHO_T= 21965case `echo -n x` in 21966-n*) 21967 case `echo 'x\c'` in 21968 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21969 *) ECHO_C='\c';; 21970 esac;; 21971*) 21972 ECHO_N='-n';; 21973esac 21974 21975if expr a : '\(a\)' >/dev/null 2>&1 && 21976 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21977 as_expr=expr 21978else 21979 as_expr=false 21980fi 21981 21982rm -f conf$$ conf$$.exe conf$$.file 21983if test -d conf$$.dir; then 21984 rm -f conf$$.dir/conf$$.file 21985else 21986 rm -f conf$$.dir 21987 mkdir conf$$.dir 21988fi 21989echo >conf$$.file 21990if ln -s conf$$.file conf$$ 2>/dev/null; then 21991 as_ln_s='ln -s' 21992 # ... but there are two gotchas: 21993 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21994 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21995 # In both cases, we have to default to `cp -p'. 21996 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21997 as_ln_s='cp -p' 21998elif ln conf$$.file conf$$ 2>/dev/null; then 21999 as_ln_s=ln 22000else 22001 as_ln_s='cp -p' 22002fi 22003rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22004rmdir conf$$.dir 2>/dev/null 22005 22006if mkdir -p . 2>/dev/null; then 22007 as_mkdir_p=: 22008else 22009 test -d ./-p && rmdir ./-p 22010 as_mkdir_p=false 22011fi 22012 22013if test -x / >/dev/null 2>&1; then 22014 as_test_x='test -x' 22015else 22016 if ls -dL / >/dev/null 2>&1; then 22017 as_ls_L_option=L 22018 else 22019 as_ls_L_option= 22020 fi 22021 as_test_x=' 22022 eval sh -c '\'' 22023 if test -d "$1"; then 22024 test -d "$1/."; 22025 else 22026 case $1 in 22027 -*)set "./$1";; 22028 esac; 22029 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22030 ???[sx]*):;;*)false;;esac;fi 22031 '\'' sh 22032 ' 22033fi 22034as_executable_p=$as_test_x 22035 22036# Sed expression to map a string onto a valid CPP name. 22037as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22038 22039# Sed expression to map a string onto a valid variable name. 22040as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22041 22042 22043exec 6>&1 22044 22045# Save the log message, to keep $[0] and so on meaningful, and to 22046# report actual input values of CONFIG_FILES etc. instead of their 22047# values after options handling. 22048ac_log=" 22049This file was extended by $as_me, which was 22050generated by GNU Autoconf 2.61. Invocation command line was 22051 22052 CONFIG_FILES = $CONFIG_FILES 22053 CONFIG_HEADERS = $CONFIG_HEADERS 22054 CONFIG_LINKS = $CONFIG_LINKS 22055 CONFIG_COMMANDS = $CONFIG_COMMANDS 22056 $ $0 $@ 22057 22058on `(hostname || uname -n) 2>/dev/null | sed 1q` 22059" 22060 22061_ACEOF 22062 22063cat >>$CONFIG_STATUS <<_ACEOF 22064# Files that config.status was made for. 22065config_files="$ac_config_files" 22066config_headers="$ac_config_headers" 22067config_commands="$ac_config_commands" 22068 22069_ACEOF 22070 22071cat >>$CONFIG_STATUS <<\_ACEOF 22072ac_cs_usage="\ 22073\`$as_me' instantiates files from templates according to the 22074current configuration. 22075 22076Usage: $0 [OPTIONS] [FILE]... 22077 22078 -h, --help print this help, then exit 22079 -V, --version print version number and configuration settings, then exit 22080 -q, --quiet do not print progress messages 22081 -d, --debug don't remove temporary files 22082 --recheck update $as_me by reconfiguring in the same conditions 22083 --file=FILE[:TEMPLATE] 22084 instantiate the configuration file FILE 22085 --header=FILE[:TEMPLATE] 22086 instantiate the configuration header FILE 22087 22088Configuration files: 22089$config_files 22090 22091Configuration headers: 22092$config_headers 22093 22094Configuration commands: 22095$config_commands 22096 22097Report bugs to <bug-autoconf@gnu.org>." 22098 22099_ACEOF 22100cat >>$CONFIG_STATUS <<_ACEOF 22101ac_cs_version="\\ 22102config.status 22103configured by $0, generated by GNU Autoconf 2.61, 22104 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22105 22106Copyright (C) 2006 Free Software Foundation, Inc. 22107This config.status script is free software; the Free Software Foundation 22108gives unlimited permission to copy, distribute and modify it." 22109 22110ac_pwd='$ac_pwd' 22111srcdir='$srcdir' 22112INSTALL='$INSTALL' 22113_ACEOF 22114 22115cat >>$CONFIG_STATUS <<\_ACEOF 22116# If no file are specified by the user, then we need to provide default 22117# value. By we need to know if files were specified by the user. 22118ac_need_defaults=: 22119while test $# != 0 22120do 22121 case $1 in 22122 --*=*) 22123 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22124 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22125 ac_shift=: 22126 ;; 22127 *) 22128 ac_option=$1 22129 ac_optarg=$2 22130 ac_shift=shift 22131 ;; 22132 esac 22133 22134 case $ac_option in 22135 # Handling of the options. 22136 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22137 ac_cs_recheck=: ;; 22138 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22139 echo "$ac_cs_version"; exit ;; 22140 --debug | --debu | --deb | --de | --d | -d ) 22141 debug=: ;; 22142 --file | --fil | --fi | --f ) 22143 $ac_shift 22144 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22145 ac_need_defaults=false;; 22146 --header | --heade | --head | --hea ) 22147 $ac_shift 22148 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22149 ac_need_defaults=false;; 22150 --he | --h) 22151 # Conflict between --help and --header 22152 { echo "$as_me: error: ambiguous option: $1 22153Try \`$0 --help' for more information." >&2 22154 { (exit 1); exit 1; }; };; 22155 --help | --hel | -h ) 22156 echo "$ac_cs_usage"; exit ;; 22157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22158 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22159 ac_cs_silent=: ;; 22160 22161 # This is an error. 22162 -*) { echo "$as_me: error: unrecognized option: $1 22163Try \`$0 --help' for more information." >&2 22164 { (exit 1); exit 1; }; } ;; 22165 22166 *) ac_config_targets="$ac_config_targets $1" 22167 ac_need_defaults=false ;; 22168 22169 esac 22170 shift 22171done 22172 22173ac_configure_extra_args= 22174 22175if $ac_cs_silent; then 22176 exec 6>/dev/null 22177 ac_configure_extra_args="$ac_configure_extra_args --silent" 22178fi 22179 22180_ACEOF 22181cat >>$CONFIG_STATUS <<_ACEOF 22182if \$ac_cs_recheck; then 22183 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22184 CONFIG_SHELL=$SHELL 22185 export CONFIG_SHELL 22186 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22187fi 22188 22189_ACEOF 22190cat >>$CONFIG_STATUS <<\_ACEOF 22191exec 5>>config.log 22192{ 22193 echo 22194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22195## Running $as_me. ## 22196_ASBOX 22197 echo "$ac_log" 22198} >&5 22199 22200_ACEOF 22201cat >>$CONFIG_STATUS <<_ACEOF 22202# 22203# INIT-COMMANDS 22204# 22205AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22206 22207_ACEOF 22208 22209cat >>$CONFIG_STATUS <<\_ACEOF 22210 22211# Handling of arguments. 22212for ac_config_target in $ac_config_targets 22213do 22214 case $ac_config_target in 22215 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22216 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22217 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22218 "languages/Makefile") CONFIG_FILES="$CONFIG_FILES languages/Makefile" ;; 22219 "languages/cs/Makefile") CONFIG_FILES="$CONFIG_FILES languages/cs/Makefile" ;; 22220 "languages/de/Makefile") CONFIG_FILES="$CONFIG_FILES languages/de/Makefile" ;; 22221 "languages/es/Makefile") CONFIG_FILES="$CONFIG_FILES languages/es/Makefile" ;; 22222 "languages/fr/Makefile") CONFIG_FILES="$CONFIG_FILES languages/fr/Makefile" ;; 22223 "languages/hu/Makefile") CONFIG_FILES="$CONFIG_FILES languages/hu/Makefile" ;; 22224 "languages/id/Makefile") CONFIG_FILES="$CONFIG_FILES languages/id/Makefile" ;; 22225 "languages/pl/Makefile") CONFIG_FILES="$CONFIG_FILES languages/pl/Makefile" ;; 22226 "languages/pt_BR/Makefile") CONFIG_FILES="$CONFIG_FILES languages/pt_BR/Makefile" ;; 22227 "languages/nl/Makefile") CONFIG_FILES="$CONFIG_FILES languages/nl/Makefile" ;; 22228 "languages/ru/Makefile") CONFIG_FILES="$CONFIG_FILES languages/ru/Makefile" ;; 22229 "languages/tr/Makefile") CONFIG_FILES="$CONFIG_FILES languages/tr/Makefile" ;; 22230 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22231 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;; 22232 "man/pt_BR/Makefile") CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;; 22233 "man/pt_BR/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/pt_BR/man1/Makefile" ;; 22234 "resources/Makefile") CONFIG_FILES="$CONFIG_FILES resources/Makefile" ;; 22235 "resources/xpm/Makefile") CONFIG_FILES="$CONFIG_FILES resources/xpm/Makefile" ;; 22236 "resources/xpm/big/Makefile") CONFIG_FILES="$CONFIG_FILES resources/xpm/big/Makefile" ;; 22237 "resources/xpm/small/Makefile") CONFIG_FILES="$CONFIG_FILES resources/xpm/small/Makefile" ;; 22238 "resources/RipStop/Makefile") CONFIG_FILES="$CONFIG_FILES resources/RipStop/Makefile" ;; 22239 "resources/RipStop/menubar/Makefile") CONFIG_FILES="$CONFIG_FILES resources/RipStop/menubar/Makefile" ;; 22240 "resources/RipStop/toolbar/Makefile") CONFIG_FILES="$CONFIG_FILES resources/RipStop/toolbar/Makefile" ;; 22241 "resources/RipStop/preview/Makefile") CONFIG_FILES="$CONFIG_FILES resources/RipStop/preview/Makefile" ;; 22242 "resources/RipStop/svg/Makefile") CONFIG_FILES="$CONFIG_FILES resources/RipStop/svg/Makefile" ;; 22243 "resources/RipStop/icon/Makefile") CONFIG_FILES="$CONFIG_FILES resources/RipStop/icon/Makefile" ;; 22244 "resources/RipStop/logo/Makefile") CONFIG_FILES="$CONFIG_FILES resources/RipStop/logo/Makefile" ;; 22245 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22246 22247 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22248echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22249 { (exit 1); exit 1; }; };; 22250 esac 22251done 22252 22253 22254# If the user did not use the arguments to specify the items to instantiate, 22255# then the envvar interface is used. Set only those that are not. 22256# We use the long form for the default assignment because of an extremely 22257# bizarre bug on SunOS 4.1.3. 22258if $ac_need_defaults; then 22259 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22260 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22261 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22262fi 22263 22264# Have a temporary directory for convenience. Make it in the build tree 22265# simply because there is no reason against having it here, and in addition, 22266# creating and moving files from /tmp can sometimes cause problems. 22267# Hook for its removal unless debugging. 22268# Note that there is a small window in which the directory will not be cleaned: 22269# after its creation but before its name has been assigned to `$tmp'. 22270$debug || 22271{ 22272 tmp= 22273 trap 'exit_status=$? 22274 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22275' 0 22276 trap '{ (exit 1); exit 1; }' 1 2 13 15 22277} 22278# Create a (secure) tmp directory for tmp files. 22279 22280{ 22281 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22282 test -n "$tmp" && test -d "$tmp" 22283} || 22284{ 22285 tmp=./conf$$-$RANDOM 22286 (umask 077 && mkdir "$tmp") 22287} || 22288{ 22289 echo "$me: cannot create a temporary directory in ." >&2 22290 { (exit 1); exit 1; } 22291} 22292 22293# 22294# Set up the sed scripts for CONFIG_FILES section. 22295# 22296 22297# No need to generate the scripts if there are no CONFIG_FILES. 22298# This happens for instance when ./config.status config.h 22299if test -n "$CONFIG_FILES"; then 22300 22301_ACEOF 22302 22303 22304 22305ac_delim='%!_!# ' 22306for ac_last_try in false false false false false :; do 22307 cat >conf$$subs.sed <<_ACEOF 22308SHELL!$SHELL$ac_delim 22309PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22310PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22311PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22312PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22313PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22314PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22315exec_prefix!$exec_prefix$ac_delim 22316prefix!$prefix$ac_delim 22317program_transform_name!$program_transform_name$ac_delim 22318bindir!$bindir$ac_delim 22319sbindir!$sbindir$ac_delim 22320libexecdir!$libexecdir$ac_delim 22321datarootdir!$datarootdir$ac_delim 22322datadir!$datadir$ac_delim 22323sysconfdir!$sysconfdir$ac_delim 22324sharedstatedir!$sharedstatedir$ac_delim 22325localstatedir!$localstatedir$ac_delim 22326includedir!$includedir$ac_delim 22327oldincludedir!$oldincludedir$ac_delim 22328docdir!$docdir$ac_delim 22329infodir!$infodir$ac_delim 22330htmldir!$htmldir$ac_delim 22331dvidir!$dvidir$ac_delim 22332pdfdir!$pdfdir$ac_delim 22333psdir!$psdir$ac_delim 22334libdir!$libdir$ac_delim 22335localedir!$localedir$ac_delim 22336mandir!$mandir$ac_delim 22337DEFS!$DEFS$ac_delim 22338ECHO_C!$ECHO_C$ac_delim 22339ECHO_N!$ECHO_N$ac_delim 22340ECHO_T!$ECHO_T$ac_delim 22341LIBS!$LIBS$ac_delim 22342build_alias!$build_alias$ac_delim 22343host_alias!$host_alias$ac_delim 22344target_alias!$target_alias$ac_delim 22345INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22346INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22347INSTALL_DATA!$INSTALL_DATA$ac_delim 22348CYGPATH_W!$CYGPATH_W$ac_delim 22349PACKAGE!$PACKAGE$ac_delim 22350VERSION!$VERSION$ac_delim 22351ACLOCAL!$ACLOCAL$ac_delim 22352AUTOCONF!$AUTOCONF$ac_delim 22353AUTOMAKE!$AUTOMAKE$ac_delim 22354AUTOHEADER!$AUTOHEADER$ac_delim 22355MAKEINFO!$MAKEINFO$ac_delim 22356AMTAR!$AMTAR$ac_delim 22357install_sh!$install_sh$ac_delim 22358STRIP!$STRIP$ac_delim 22359INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 22360mkdir_p!$mkdir_p$ac_delim 22361AWK!$AWK$ac_delim 22362SET_MAKE!$SET_MAKE$ac_delim 22363am__leading_dot!$am__leading_dot$ac_delim 22364MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 22365MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 22366MAINT!$MAINT$ac_delim 22367DEBUG_TRUE!$DEBUG_TRUE$ac_delim 22368DEBUG_FALSE!$DEBUG_FALSE$ac_delim 22369XRCMODE_TRUE!$XRCMODE_TRUE$ac_delim 22370XRCMODE_FALSE!$XRCMODE_FALSE$ac_delim 22371NOXRCMODE_TRUE!$NOXRCMODE_TRUE$ac_delim 22372NOXRCMODE_FALSE!$NOXRCMODE_FALSE$ac_delim 22373WIN32BUILD_TRUE!$WIN32BUILD_TRUE$ac_delim 22374WIN32BUILD_FALSE!$WIN32BUILD_FALSE$ac_delim 22375PORTABLE_TRUE!$PORTABLE_TRUE$ac_delim 22376PORTABLE_FALSE!$PORTABLE_FALSE$ac_delim 22377CC!$CC$ac_delim 22378CFLAGS!$CFLAGS$ac_delim 22379LDFLAGS!$LDFLAGS$ac_delim 22380CPPFLAGS!$CPPFLAGS$ac_delim 22381ac_ct_CC!$ac_ct_CC$ac_delim 22382EXEEXT!$EXEEXT$ac_delim 22383OBJEXT!$OBJEXT$ac_delim 22384DEPDIR!$DEPDIR$ac_delim 22385am__include!$am__include$ac_delim 22386am__quote!$am__quote$ac_delim 22387AMDEP_TRUE!$AMDEP_TRUE$ac_delim 22388AMDEP_FALSE!$AMDEP_FALSE$ac_delim 22389AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 22390CCDEPMODE!$CCDEPMODE$ac_delim 22391am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 22392am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 22393CPP!$CPP$ac_delim 22394GREP!$GREP$ac_delim 22395EGREP!$EGREP$ac_delim 22396CXX!$CXX$ac_delim 22397CXXFLAGS!$CXXFLAGS$ac_delim 22398ac_ct_CXX!$ac_ct_CXX$ac_delim 22399CXXDEPMODE!$CXXDEPMODE$ac_delim 22400am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 22401am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 22402build!$build$ac_delim 22403build_cpu!$build_cpu$ac_delim 22404build_vendor!$build_vendor$ac_delim 22405_ACEOF 22406 22407 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22408 break 22409 elif $ac_last_try; then 22410 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22411echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22412 { (exit 1); exit 1; }; } 22413 else 22414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22415 fi 22416done 22417 22418ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22419if test -n "$ac_eof"; then 22420 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22421 ac_eof=`expr $ac_eof + 1` 22422fi 22423 22424cat >>$CONFIG_STATUS <<_ACEOF 22425cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22426/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22427_ACEOF 22428sed ' 22429s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22430s/^/s,@/; s/!/@,|#_!!_#|/ 22431:n 22432t n 22433s/'"$ac_delim"'$/,g/; t 22434s/$/\\/; p 22435N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22436' >>$CONFIG_STATUS <conf$$subs.sed 22437rm -f conf$$subs.sed 22438cat >>$CONFIG_STATUS <<_ACEOF 22439CEOF$ac_eof 22440_ACEOF 22441 22442 22443ac_delim='%!_!# ' 22444for ac_last_try in false false false false false :; do 22445 cat >conf$$subs.sed <<_ACEOF 22446build_os!$build_os$ac_delim 22447host!$host$ac_delim 22448host_cpu!$host_cpu$ac_delim 22449host_vendor!$host_vendor$ac_delim 22450host_os!$host_os$ac_delim 22451LN_S!$LN_S$ac_delim 22452ECHO!$ECHO$ac_delim 22453AR!$AR$ac_delim 22454RANLIB!$RANLIB$ac_delim 22455CXXCPP!$CXXCPP$ac_delim 22456F77!$F77$ac_delim 22457FFLAGS!$FFLAGS$ac_delim 22458ac_ct_F77!$ac_ct_F77$ac_delim 22459LIBTOOL!$LIBTOOL$ac_delim 22460WINDRES!$WINDRES$ac_delim 22461WX_CONFIG_PATH!$WX_CONFIG_PATH$ac_delim 22462WX_CPPFLAGS!$WX_CPPFLAGS$ac_delim 22463WX_CFLAGS!$WX_CFLAGS$ac_delim 22464WX_CXXFLAGS!$WX_CXXFLAGS$ac_delim 22465WX_CFLAGS_ONLY!$WX_CFLAGS_ONLY$ac_delim 22466WX_CXXFLAGS_ONLY!$WX_CXXFLAGS_ONLY$ac_delim 22467WX_LIBS!$WX_LIBS$ac_delim 22468WX_LIBS_STATIC!$WX_LIBS_STATIC$ac_delim 22469WX_VERSION!$WX_VERSION$ac_delim 22470WXRC!$WXRC$ac_delim 22471LIBOBJS!$LIBOBJS$ac_delim 22472LTLIBOBJS!$LTLIBOBJS$ac_delim 22473_ACEOF 22474 22475 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then 22476 break 22477 elif $ac_last_try; then 22478 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22479echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22480 { (exit 1); exit 1; }; } 22481 else 22482 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22483 fi 22484done 22485 22486ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22487if test -n "$ac_eof"; then 22488 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22489 ac_eof=`expr $ac_eof + 1` 22490fi 22491 22492cat >>$CONFIG_STATUS <<_ACEOF 22493cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22494/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22495_ACEOF 22496sed ' 22497s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22498s/^/s,@/; s/!/@,|#_!!_#|/ 22499:n 22500t n 22501s/'"$ac_delim"'$/,g/; t 22502s/$/\\/; p 22503N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22504' >>$CONFIG_STATUS <conf$$subs.sed 22505rm -f conf$$subs.sed 22506cat >>$CONFIG_STATUS <<_ACEOF 22507:end 22508s/|#_!!_#|//g 22509CEOF$ac_eof 22510_ACEOF 22511 22512 22513# VPATH may cause trouble with some makes, so we remove $(srcdir), 22514# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22515# trailing colons and then remove the whole line if VPATH becomes empty 22516# (actually we leave an empty line to preserve line numbers). 22517if test "x$srcdir" = x.; then 22518 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22519s/:*\$(srcdir):*/:/ 22520s/:*\${srcdir}:*/:/ 22521s/:*@srcdir@:*/:/ 22522s/^\([^=]*=[ ]*\):*/\1/ 22523s/:*$// 22524s/^[^=]*=[ ]*$// 22525}' 22526fi 22527 22528cat >>$CONFIG_STATUS <<\_ACEOF 22529fi # test -n "$CONFIG_FILES" 22530 22531 22532for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22533do 22534 case $ac_tag in 22535 :[FHLC]) ac_mode=$ac_tag; continue;; 22536 esac 22537 case $ac_mode$ac_tag in 22538 :[FHL]*:*);; 22539 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22540echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22541 { (exit 1); exit 1; }; };; 22542 :[FH]-) ac_tag=-:-;; 22543 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22544 esac 22545 ac_save_IFS=$IFS 22546 IFS=: 22547 set x $ac_tag 22548 IFS=$ac_save_IFS 22549 shift 22550 ac_file=$1 22551 shift 22552 22553 case $ac_mode in 22554 :L) ac_source=$1;; 22555 :[FH]) 22556 ac_file_inputs= 22557 for ac_f 22558 do 22559 case $ac_f in 22560 -) ac_f="$tmp/stdin";; 22561 *) # Look for the file first in the build tree, then in the source tree 22562 # (if the path is not absolute). The absolute path cannot be DOS-style, 22563 # because $ac_f cannot contain `:'. 22564 test -f "$ac_f" || 22565 case $ac_f in 22566 [\\/$]*) false;; 22567 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22568 esac || 22569 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22570echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22571 { (exit 1); exit 1; }; };; 22572 esac 22573 ac_file_inputs="$ac_file_inputs $ac_f" 22574 done 22575 22576 # Let's still pretend it is `configure' which instantiates (i.e., don't 22577 # use $as_me), people would be surprised to read: 22578 # /* config.h. Generated by config.status. */ 22579 configure_input="Generated from "`IFS=: 22580 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22581 if test x"$ac_file" != x-; then 22582 configure_input="$ac_file. $configure_input" 22583 { echo "$as_me:$LINENO: creating $ac_file" >&5 22584echo "$as_me: creating $ac_file" >&6;} 22585 fi 22586 22587 case $ac_tag in 22588 *:-:* | *:-) cat >"$tmp/stdin";; 22589 esac 22590 ;; 22591 esac 22592 22593 ac_dir=`$as_dirname -- "$ac_file" || 22594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22595 X"$ac_file" : 'X\(//\)[^/]' \| \ 22596 X"$ac_file" : 'X\(//\)$' \| \ 22597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22598echo X"$ac_file" | 22599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22600 s//\1/ 22601 q 22602 } 22603 /^X\(\/\/\)[^/].*/{ 22604 s//\1/ 22605 q 22606 } 22607 /^X\(\/\/\)$/{ 22608 s//\1/ 22609 q 22610 } 22611 /^X\(\/\).*/{ 22612 s//\1/ 22613 q 22614 } 22615 s/.*/./; q'` 22616 { as_dir="$ac_dir" 22617 case $as_dir in #( 22618 -*) as_dir=./$as_dir;; 22619 esac 22620 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22621 as_dirs= 22622 while :; do 22623 case $as_dir in #( 22624 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22625 *) as_qdir=$as_dir;; 22626 esac 22627 as_dirs="'$as_qdir' $as_dirs" 22628 as_dir=`$as_dirname -- "$as_dir" || 22629$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22630 X"$as_dir" : 'X\(//\)[^/]' \| \ 22631 X"$as_dir" : 'X\(//\)$' \| \ 22632 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22633echo X"$as_dir" | 22634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22635 s//\1/ 22636 q 22637 } 22638 /^X\(\/\/\)[^/].*/{ 22639 s//\1/ 22640 q 22641 } 22642 /^X\(\/\/\)$/{ 22643 s//\1/ 22644 q 22645 } 22646 /^X\(\/\).*/{ 22647 s//\1/ 22648 q 22649 } 22650 s/.*/./; q'` 22651 test -d "$as_dir" && break 22652 done 22653 test -z "$as_dirs" || eval "mkdir $as_dirs" 22654 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22655echo "$as_me: error: cannot create directory $as_dir" >&2;} 22656 { (exit 1); exit 1; }; }; } 22657 ac_builddir=. 22658 22659case "$ac_dir" in 22660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22661*) 22662 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22663 # A ".." for each directory in $ac_dir_suffix. 22664 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22665 case $ac_top_builddir_sub in 22666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22668 esac ;; 22669esac 22670ac_abs_top_builddir=$ac_pwd 22671ac_abs_builddir=$ac_pwd$ac_dir_suffix 22672# for backward compatibility: 22673ac_top_builddir=$ac_top_build_prefix 22674 22675case $srcdir in 22676 .) # We are building in place. 22677 ac_srcdir=. 22678 ac_top_srcdir=$ac_top_builddir_sub 22679 ac_abs_top_srcdir=$ac_pwd ;; 22680 [\\/]* | ?:[\\/]* ) # Absolute name. 22681 ac_srcdir=$srcdir$ac_dir_suffix; 22682 ac_top_srcdir=$srcdir 22683 ac_abs_top_srcdir=$srcdir ;; 22684 *) # Relative name. 22685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22686 ac_top_srcdir=$ac_top_build_prefix$srcdir 22687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22688esac 22689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22690 22691 22692 case $ac_mode in 22693 :F) 22694 # 22695 # CONFIG_FILE 22696 # 22697 22698 case $INSTALL in 22699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22701 esac 22702_ACEOF 22703 22704cat >>$CONFIG_STATUS <<\_ACEOF 22705# If the template does not know about datarootdir, expand it. 22706# FIXME: This hack should be removed a few years after 2.60. 22707ac_datarootdir_hack=; ac_datarootdir_seen= 22708 22709case `sed -n '/datarootdir/ { 22710 p 22711 q 22712} 22713/@datadir@/p 22714/@docdir@/p 22715/@infodir@/p 22716/@localedir@/p 22717/@mandir@/p 22718' $ac_file_inputs` in 22719*datarootdir*) ac_datarootdir_seen=yes;; 22720*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22721 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22722echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22723_ACEOF 22724cat >>$CONFIG_STATUS <<_ACEOF 22725 ac_datarootdir_hack=' 22726 s&@datadir@&$datadir&g 22727 s&@docdir@&$docdir&g 22728 s&@infodir@&$infodir&g 22729 s&@localedir@&$localedir&g 22730 s&@mandir@&$mandir&g 22731 s&\\\${datarootdir}&$datarootdir&g' ;; 22732esac 22733_ACEOF 22734 22735# Neutralize VPATH when `$srcdir' = `.'. 22736# Shell code in configure.ac might set extrasub. 22737# FIXME: do we really want to maintain this feature? 22738cat >>$CONFIG_STATUS <<_ACEOF 22739 sed "$ac_vpsub 22740$extrasub 22741_ACEOF 22742cat >>$CONFIG_STATUS <<\_ACEOF 22743:t 22744/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22745s&@configure_input@&$configure_input&;t t 22746s&@top_builddir@&$ac_top_builddir_sub&;t t 22747s&@srcdir@&$ac_srcdir&;t t 22748s&@abs_srcdir@&$ac_abs_srcdir&;t t 22749s&@top_srcdir@&$ac_top_srcdir&;t t 22750s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22751s&@builddir@&$ac_builddir&;t t 22752s&@abs_builddir@&$ac_abs_builddir&;t t 22753s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22754s&@INSTALL@&$ac_INSTALL&;t t 22755$ac_datarootdir_hack 22756" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22757 22758test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22759 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22760 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22761 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22762which seems to be undefined. Please make sure it is defined." >&5 22763echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22764which seems to be undefined. Please make sure it is defined." >&2;} 22765 22766 rm -f "$tmp/stdin" 22767 case $ac_file in 22768 -) cat "$tmp/out"; rm -f "$tmp/out";; 22769 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22770 esac 22771 ;; 22772 :H) 22773 # 22774 # CONFIG_HEADER 22775 # 22776_ACEOF 22777 22778# Transform confdefs.h into a sed script `conftest.defines', that 22779# substitutes the proper values into config.h.in to produce config.h. 22780rm -f conftest.defines conftest.tail 22781# First, append a space to every undef/define line, to ease matching. 22782echo 's/$/ /' >conftest.defines 22783# Then, protect against being on the right side of a sed subst, or in 22784# an unquoted here document, in config.status. If some macros were 22785# called several times there might be several #defines for the same 22786# symbol, which is useless. But do not sort them, since the last 22787# AC_DEFINE must be honored. 22788ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22789# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22790# NAME is the cpp macro being defined, VALUE is the value it is being given. 22791# PARAMS is the parameter list in the macro definition--in most cases, it's 22792# just an empty string. 22793ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22794ac_dB='\\)[ (].*,\\1define\\2' 22795ac_dC=' ' 22796ac_dD=' ,' 22797 22798uniq confdefs.h | 22799 sed -n ' 22800 t rset 22801 :rset 22802 s/^[ ]*#[ ]*define[ ][ ]*// 22803 t ok 22804 d 22805 :ok 22806 s/[\\&,]/\\&/g 22807 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22808 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22809 ' >>conftest.defines 22810 22811# Remove the space that was appended to ease matching. 22812# Then replace #undef with comments. This is necessary, for 22813# example, in the case of _POSIX_SOURCE, which is predefined and required 22814# on some systems where configure will not decide to define it. 22815# (The regexp can be short, since the line contains either #define or #undef.) 22816echo 's/ $// 22817s,^[ #]*u.*,/* & */,' >>conftest.defines 22818 22819# Break up conftest.defines: 22820ac_max_sed_lines=50 22821 22822# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22823# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22824# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22825# et cetera. 22826ac_in='$ac_file_inputs' 22827ac_out='"$tmp/out1"' 22828ac_nxt='"$tmp/out2"' 22829 22830while : 22831do 22832 # Write a here document: 22833 cat >>$CONFIG_STATUS <<_ACEOF 22834 # First, check the format of the line: 22835 cat >"\$tmp/defines.sed" <<\\CEOF 22836/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22837/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22838b 22839:def 22840_ACEOF 22841 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22842 echo 'CEOF 22843 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22844 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22845 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22846 grep . conftest.tail >/dev/null || break 22847 rm -f conftest.defines 22848 mv conftest.tail conftest.defines 22849done 22850rm -f conftest.defines conftest.tail 22851 22852echo "ac_result=$ac_in" >>$CONFIG_STATUS 22853cat >>$CONFIG_STATUS <<\_ACEOF 22854 if test x"$ac_file" != x-; then 22855 echo "/* $configure_input */" >"$tmp/config.h" 22856 cat "$ac_result" >>"$tmp/config.h" 22857 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22858 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22859echo "$as_me: $ac_file is unchanged" >&6;} 22860 else 22861 rm -f $ac_file 22862 mv "$tmp/config.h" $ac_file 22863 fi 22864 else 22865 echo "/* $configure_input */" 22866 cat "$ac_result" 22867 fi 22868 rm -f "$tmp/out12" 22869# Compute $ac_file's index in $config_headers. 22870_am_stamp_count=1 22871for _am_header in $config_headers :; do 22872 case $_am_header in 22873 $ac_file | $ac_file:* ) 22874 break ;; 22875 * ) 22876 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22877 esac 22878done 22879echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 22880$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22881 X$ac_file : 'X\(//\)[^/]' \| \ 22882 X$ac_file : 'X\(//\)$' \| \ 22883 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 22884echo X$ac_file | 22885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22886 s//\1/ 22887 q 22888 } 22889 /^X\(\/\/\)[^/].*/{ 22890 s//\1/ 22891 q 22892 } 22893 /^X\(\/\/\)$/{ 22894 s//\1/ 22895 q 22896 } 22897 /^X\(\/\).*/{ 22898 s//\1/ 22899 q 22900 } 22901 s/.*/./; q'`/stamp-h$_am_stamp_count 22902 ;; 22903 22904 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22905echo "$as_me: executing $ac_file commands" >&6;} 22906 ;; 22907 esac 22908 22909 22910 case $ac_file$ac_mode in 22911 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22912 # Strip MF so we end up with the name of the file. 22913 mf=`echo "$mf" | sed -e 's/:.*$//'` 22914 # Check whether this is an Automake generated Makefile or not. 22915 # We used to match only the files named `Makefile.in', but 22916 # some people rename them; so instead we look at the file content. 22917 # Grep'ing the first line is not enough: some people post-process 22918 # each Makefile.in and add a new line on top of each file to say so. 22919 # So let's grep whole file. 22920 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 22921 dirpart=`$as_dirname -- "$mf" || 22922$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22923 X"$mf" : 'X\(//\)[^/]' \| \ 22924 X"$mf" : 'X\(//\)$' \| \ 22925 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22926echo X"$mf" | 22927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22928 s//\1/ 22929 q 22930 } 22931 /^X\(\/\/\)[^/].*/{ 22932 s//\1/ 22933 q 22934 } 22935 /^X\(\/\/\)$/{ 22936 s//\1/ 22937 q 22938 } 22939 /^X\(\/\).*/{ 22940 s//\1/ 22941 q 22942 } 22943 s/.*/./; q'` 22944 else 22945 continue 22946 fi 22947 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 22948 # Extract the definition of DEP_FILES from the Makefile without 22949 # running `make'. 22950 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22951 test -z "$DEPDIR" && continue 22952 # When using ansi2knr, U may be empty or an underscore; expand it 22953 U=`sed -n 's/^U = //p' < "$mf"` 22954 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 22955 # We invoke sed twice because it is the simplest approach to 22956 # changing $(DEPDIR) to its actual value in the expansion. 22957 for file in `sed -n ' 22958 /^DEP_FILES = .*\\\\$/ { 22959 s/^DEP_FILES = // 22960 :loop 22961 s/\\\\$// 22962 p 22963 n 22964 /\\\\$/ b loop 22965 p 22966 } 22967 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 22968 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22969 # Make sure the directory exists. 22970 test -f "$dirpart/$file" && continue 22971 fdir=`$as_dirname -- "$file" || 22972$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22973 X"$file" : 'X\(//\)[^/]' \| \ 22974 X"$file" : 'X\(//\)$' \| \ 22975 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22976echo X"$file" | 22977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22978 s//\1/ 22979 q 22980 } 22981 /^X\(\/\/\)[^/].*/{ 22982 s//\1/ 22983 q 22984 } 22985 /^X\(\/\/\)$/{ 22986 s//\1/ 22987 q 22988 } 22989 /^X\(\/\).*/{ 22990 s//\1/ 22991 q 22992 } 22993 s/.*/./; q'` 22994 { as_dir=$dirpart/$fdir 22995 case $as_dir in #( 22996 -*) as_dir=./$as_dir;; 22997 esac 22998 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22999 as_dirs= 23000 while :; do 23001 case $as_dir in #( 23002 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23003 *) as_qdir=$as_dir;; 23004 esac 23005 as_dirs="'$as_qdir' $as_dirs" 23006 as_dir=`$as_dirname -- "$as_dir" || 23007$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23008 X"$as_dir" : 'X\(//\)[^/]' \| \ 23009 X"$as_dir" : 'X\(//\)$' \| \ 23010 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23011echo X"$as_dir" | 23012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23013 s//\1/ 23014 q 23015 } 23016 /^X\(\/\/\)[^/].*/{ 23017 s//\1/ 23018 q 23019 } 23020 /^X\(\/\/\)$/{ 23021 s//\1/ 23022 q 23023 } 23024 /^X\(\/\).*/{ 23025 s//\1/ 23026 q 23027 } 23028 s/.*/./; q'` 23029 test -d "$as_dir" && break 23030 done 23031 test -z "$as_dirs" || eval "mkdir $as_dirs" 23032 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23033echo "$as_me: error: cannot create directory $as_dir" >&2;} 23034 { (exit 1); exit 1; }; }; } 23035 # echo "creating $dirpart/$file" 23036 echo '# dummy' > "$dirpart/$file" 23037 done 23038done 23039 ;; 23040 23041 esac 23042done # for ac_tag 23043 23044 23045{ (exit 0); exit 0; } 23046_ACEOF 23047chmod +x $CONFIG_STATUS 23048ac_clean_files=$ac_clean_files_save 23049 23050 23051# configure is writing to config.log, and then calls config.status. 23052# config.status does its own redirection, appending to config.log. 23053# Unfortunately, on DOS this fails, as config.log is still kept open 23054# by configure, so config.status won't be able to write to it; its 23055# output is simply discarded. So we exec the FD to /dev/null, 23056# effectively closing config.log, so it can be properly (re)opened and 23057# appended to by config.status. When coming back to configure, we 23058# need to make the FD available again. 23059if test "$no_create" != yes; then 23060 ac_cs_success=: 23061 ac_config_status_args= 23062 test "$silent" = yes && 23063 ac_config_status_args="$ac_config_status_args --quiet" 23064 exec 5>/dev/null 23065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23066 exec 5>>config.log 23067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23068 # would make configure fail if this is the last instruction. 23069 $ac_cs_success || { (exit 1); exit 1; } 23070fi 23071 23072