1#! /bin/sh 2# From configure.ac Revision: 1.47 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for tvmet 1.7.2. 5# 6# Report bugs to <opetzold@users.sourceforge.net>. 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12## --------------------- ## 13## M4sh Initialization. ## 14## --------------------- ## 15 16# Be more Bourne compatible 17DUALCASE=1; export DUALCASE # for MKS sh 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 emulate sh 20 NULLCMD=: 21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # is contrary to our usage. Disable this feature. 23 alias -g '${1+"$@"}'='"$@"' 24 setopt NO_GLOB_SUBST 25else 26 case `(set -o) 2>/dev/null` in 27 *posix*) set -o posix ;; 28esac 29 30fi 31 32 33 34 35# PATH needs CR 36# Avoid depending upon Character Ranges. 37as_cr_letters='abcdefghijklmnopqrstuvwxyz' 38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 39as_cr_Letters=$as_cr_letters$as_cr_LETTERS 40as_cr_digits='0123456789' 41as_cr_alnum=$as_cr_Letters$as_cr_digits 42 43# The user is always right. 44if test "${PATH_SEPARATOR+set}" != set; then 45 echo "#! /bin/sh" >conf$$.sh 46 echo "exit 0" >>conf$$.sh 47 chmod +x conf$$.sh 48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 49 PATH_SEPARATOR=';' 50 else 51 PATH_SEPARATOR=: 52 fi 53 rm -f conf$$.sh 54fi 55 56# Support unset when possible. 57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 58 as_unset=unset 59else 60 as_unset=false 61fi 62 63 64# IFS 65# We need space, tab and new line, in precisely that order. Quoting is 66# there to prevent editors from complaining about space-tab. 67# (If _AS_PATH_WALK were called with IFS unset, it would disable word 68# splitting by setting IFS to empty value.) 69as_nl=' 70' 71IFS=" "" $as_nl" 72 73# Find who we are. Look in the path if we contain no directory separator. 74case $0 in 75 *[\\/]* ) as_myself=$0 ;; 76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 77for as_dir in $PATH 78do 79 IFS=$as_save_IFS 80 test -z "$as_dir" && as_dir=. 81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 82done 83IFS=$as_save_IFS 84 85 ;; 86esac 87# We did not find ourselves, most probably we were run as `sh COMMAND' 88# in which case we are not to be found in the path. 89if test "x$as_myself" = x; then 90 as_myself=$0 91fi 92if test ! -f "$as_myself"; then 93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 94 { (exit 1); exit 1; } 95fi 96 97# Work around bugs in pre-3.0 UWIN ksh. 98for as_var in ENV MAIL MAILPATH 99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 100done 101PS1='$ ' 102PS2='> ' 103PS4='+ ' 104 105# NLS nuisances. 106for as_var in \ 107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 109 LC_TELEPHONE LC_TIME 110do 111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 112 eval $as_var=C; export $as_var 113 else 114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 115 fi 116done 117 118# Required to use basename. 119if expr a : '\(a\)' >/dev/null 2>&1 && 120 test "X`expr 00001 : '.*\(...\)'`" = X001; then 121 as_expr=expr 122else 123 as_expr=false 124fi 125 126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 127 as_basename=basename 128else 129 as_basename=false 130fi 131 132 133# Name of the executable. 134as_me=`$as_basename -- "$0" || 135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 136 X"$0" : 'X\(//\)$' \| \ 137 X"$0" : 'X\(/\)' \| . 2>/dev/null || 138echo X/"$0" | 139 sed '/^.*\/\([^/][^/]*\)\/*$/{ 140 s//\1/ 141 q 142 } 143 /^X\/\(\/\/\)$/{ 144 s//\1/ 145 q 146 } 147 /^X\/\(\/\).*/{ 148 s//\1/ 149 q 150 } 151 s/.*/./; q'` 152 153# CDPATH. 154$as_unset CDPATH 155 156 157if test "x$CONFIG_SHELL" = x; then 158 if (eval ":") 2>/dev/null; then 159 as_have_required=yes 160else 161 as_have_required=no 162fi 163 164 if test $as_have_required = yes && (eval ": 165(as_func_return () { 166 (exit \$1) 167} 168as_func_success () { 169 as_func_return 0 170} 171as_func_failure () { 172 as_func_return 1 173} 174as_func_ret_success () { 175 return 0 176} 177as_func_ret_failure () { 178 return 1 179} 180 181exitcode=0 182if as_func_success; then 183 : 184else 185 exitcode=1 186 echo as_func_success failed. 187fi 188 189if as_func_failure; then 190 exitcode=1 191 echo as_func_failure succeeded. 192fi 193 194if as_func_ret_success; then 195 : 196else 197 exitcode=1 198 echo as_func_ret_success failed. 199fi 200 201if as_func_ret_failure; then 202 exitcode=1 203 echo as_func_ret_failure succeeded. 204fi 205 206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 207 : 208else 209 exitcode=1 210 echo positional parameters were not saved. 211fi 212 213test \$exitcode = 0) || { (exit 1); exit 1; } 214 215( 216 as_lineno_1=\$LINENO 217 as_lineno_2=\$LINENO 218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 220") 2> /dev/null; then 221 : 222else 223 as_candidate_shells= 224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 226do 227 IFS=$as_save_IFS 228 test -z "$as_dir" && as_dir=. 229 case $as_dir in 230 /*) 231 for as_base in sh bash ksh sh5; do 232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 233 done;; 234 esac 235done 236IFS=$as_save_IFS 237 238 239 for as_shell in $as_candidate_shells $SHELL; do 240 # Try only shells that exist, to save several forks. 241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 242 { ("$as_shell") 2> /dev/null <<\_ASEOF 243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 244 emulate sh 245 NULLCMD=: 246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 247 # is contrary to our usage. Disable this feature. 248 alias -g '${1+"$@"}'='"$@"' 249 setopt NO_GLOB_SUBST 250else 251 case `(set -o) 2>/dev/null` in 252 *posix*) set -o posix ;; 253esac 254 255fi 256 257 258: 259_ASEOF 260}; then 261 CONFIG_SHELL=$as_shell 262 as_have_required=yes 263 if { "$as_shell" 2> /dev/null <<\_ASEOF 264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 265 emulate sh 266 NULLCMD=: 267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 268 # is contrary to our usage. Disable this feature. 269 alias -g '${1+"$@"}'='"$@"' 270 setopt NO_GLOB_SUBST 271else 272 case `(set -o) 2>/dev/null` in 273 *posix*) set -o posix ;; 274esac 275 276fi 277 278 279: 280(as_func_return () { 281 (exit $1) 282} 283as_func_success () { 284 as_func_return 0 285} 286as_func_failure () { 287 as_func_return 1 288} 289as_func_ret_success () { 290 return 0 291} 292as_func_ret_failure () { 293 return 1 294} 295 296exitcode=0 297if as_func_success; then 298 : 299else 300 exitcode=1 301 echo as_func_success failed. 302fi 303 304if as_func_failure; then 305 exitcode=1 306 echo as_func_failure succeeded. 307fi 308 309if as_func_ret_success; then 310 : 311else 312 exitcode=1 313 echo as_func_ret_success failed. 314fi 315 316if as_func_ret_failure; then 317 exitcode=1 318 echo as_func_ret_failure succeeded. 319fi 320 321if ( set x; as_func_ret_success y && test x = "$1" ); then 322 : 323else 324 exitcode=1 325 echo positional parameters were not saved. 326fi 327 328test $exitcode = 0) || { (exit 1); exit 1; } 329 330( 331 as_lineno_1=$LINENO 332 as_lineno_2=$LINENO 333 test "x$as_lineno_1" != "x$as_lineno_2" && 334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 335 336_ASEOF 337}; then 338 break 339fi 340 341fi 342 343 done 344 345 if test "x$CONFIG_SHELL" != x; then 346 for as_var in BASH_ENV ENV 347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 348 done 349 export CONFIG_SHELL 350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 351fi 352 353 354 if test $as_have_required = no; then 355 echo This script requires a shell more modern than all the 356 echo shells that I found on your system. Please install a 357 echo modern shell, or manually run the script under such a 358 echo shell if you do have one. 359 { (exit 1); exit 1; } 360fi 361 362 363fi 364 365fi 366 367 368 369(eval "as_func_return () { 370 (exit \$1) 371} 372as_func_success () { 373 as_func_return 0 374} 375as_func_failure () { 376 as_func_return 1 377} 378as_func_ret_success () { 379 return 0 380} 381as_func_ret_failure () { 382 return 1 383} 384 385exitcode=0 386if as_func_success; then 387 : 388else 389 exitcode=1 390 echo as_func_success failed. 391fi 392 393if as_func_failure; then 394 exitcode=1 395 echo as_func_failure succeeded. 396fi 397 398if as_func_ret_success; then 399 : 400else 401 exitcode=1 402 echo as_func_ret_success failed. 403fi 404 405if as_func_ret_failure; then 406 exitcode=1 407 echo as_func_ret_failure succeeded. 408fi 409 410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 411 : 412else 413 exitcode=1 414 echo positional parameters were not saved. 415fi 416 417test \$exitcode = 0") || { 418 echo No shell found that supports shell functions. 419 echo Please tell autoconf@gnu.org about your system, 420 echo including any error possibly output before this 421 echo message 422} 423 424 425 426 as_lineno_1=$LINENO 427 as_lineno_2=$LINENO 428 test "x$as_lineno_1" != "x$as_lineno_2" && 429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 430 431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 432 # uniformly replaced by the line number. The first 'sed' inserts a 433 # line-number line after each line using $LINENO; the second 'sed' 434 # does the real work. The second script uses 'N' to pair each 435 # line-number line with the line containing $LINENO, and appends 436 # trailing '-' during substitution so that $LINENO is not a special 437 # case at line end. 438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 439 # scripts with optimization help from Paolo Bonzini. Blame Lee 440 # E. McMahon (1931-1989) for sed's syntax. :-) 441 sed -n ' 442 p 443 /[$]LINENO/= 444 ' <$as_myself | 445 sed ' 446 s/[$]LINENO.*/&-/ 447 t lineno 448 b 449 :lineno 450 N 451 :loop 452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 453 t loop 454 s/-\n.*// 455 ' >$as_me.lineno && 456 chmod +x "$as_me.lineno" || 457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 458 { (exit 1); exit 1; }; } 459 460 # Don't try to exec as it changes $[0], causing all sort of problems 461 # (the dirname of $[0] is not the place where we might find the 462 # original and so on. Autoconf is especially sensitive to this). 463 . "./$as_me.lineno" 464 # Exit status is that of the last command. 465 exit 466} 467 468 469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 470 as_dirname=dirname 471else 472 as_dirname=false 473fi 474 475ECHO_C= ECHO_N= ECHO_T= 476case `echo -n x` in 477-n*) 478 case `echo 'x\c'` in 479 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 480 *) ECHO_C='\c';; 481 esac;; 482*) 483 ECHO_N='-n';; 484esac 485 486if expr a : '\(a\)' >/dev/null 2>&1 && 487 test "X`expr 00001 : '.*\(...\)'`" = X001; then 488 as_expr=expr 489else 490 as_expr=false 491fi 492 493rm -f conf$$ conf$$.exe conf$$.file 494if test -d conf$$.dir; then 495 rm -f conf$$.dir/conf$$.file 496else 497 rm -f conf$$.dir 498 mkdir conf$$.dir 499fi 500echo >conf$$.file 501if ln -s conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s='ln -s' 503 # ... but there are two gotchas: 504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 506 # In both cases, we have to default to `cp -p'. 507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 508 as_ln_s='cp -p' 509elif ln conf$$.file conf$$ 2>/dev/null; then 510 as_ln_s=ln 511else 512 as_ln_s='cp -p' 513fi 514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 515rmdir conf$$.dir 2>/dev/null 516 517if mkdir -p . 2>/dev/null; then 518 as_mkdir_p=: 519else 520 test -d ./-p && rmdir ./-p 521 as_mkdir_p=false 522fi 523 524if test -x / >/dev/null 2>&1; then 525 as_test_x='test -x' 526else 527 if ls -dL / >/dev/null 2>&1; then 528 as_ls_L_option=L 529 else 530 as_ls_L_option= 531 fi 532 as_test_x=' 533 eval sh -c '\'' 534 if test -d "$1"; then 535 test -d "$1/."; 536 else 537 case $1 in 538 -*)set "./$1";; 539 esac; 540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 541 ???[sx]*):;;*)false;;esac;fi 542 '\'' sh 543 ' 544fi 545as_executable_p=$as_test_x 546 547# Sed expression to map a string onto a valid CPP name. 548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 549 550# Sed expression to map a string onto a valid variable name. 551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 552 553 554 555 556# Check that we are running under the correct shell. 557SHELL=${CONFIG_SHELL-/bin/sh} 558 559case X$ECHO in 560X*--fallback-echo) 561 # Remove one level of quotation (which was required for Make). 562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 563 ;; 564esac 565 566echo=${ECHO-echo} 567if test "X$1" = X--no-reexec; then 568 # Discard the --no-reexec flag, and continue. 569 shift 570elif test "X$1" = X--fallback-echo; then 571 # Avoid inline document here, it may be left over 572 : 573elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 574 # Yippee, $echo works! 575 : 576else 577 # Restart under the correct shell. 578 exec $SHELL "$0" --no-reexec ${1+"$@"} 579fi 580 581if test "X$1" = X--fallback-echo; then 582 # used as fallback echo 583 shift 584 cat <<EOF 585$* 586EOF 587 exit 0 588fi 589 590# The HP-UX ksh and POSIX shell print the target directory to stdout 591# if CDPATH is set. 592(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 593 594if test -z "$ECHO"; then 595if test "X${echo_test_string+set}" != Xset; then 596# find a string as large as possible, as long as the shell can cope with it 597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 599 if (echo_test_string=`eval $cmd`) 2>/dev/null && 600 echo_test_string=`eval $cmd` && 601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 602 then 603 break 604 fi 605 done 606fi 607 608if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 610 test "X$echo_testing_string" = "X$echo_test_string"; then 611 : 612else 613 # The Solaris, AIX, and Digital Unix default echo programs unquote 614 # backslashes. This makes it impossible to quote backslashes using 615 # echo "$something" | sed 's/\\/\\\\/g' 616 # 617 # So, first we look for a working echo in the user's PATH. 618 619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 620 for dir in $PATH /usr/ucb; do 621 IFS="$lt_save_ifs" 622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 625 test "X$echo_testing_string" = "X$echo_test_string"; then 626 echo="$dir/echo" 627 break 628 fi 629 done 630 IFS="$lt_save_ifs" 631 632 if test "X$echo" = Xecho; then 633 # We didn't find a better echo, so look for alternatives. 634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 # This shell has a builtin print -r that does the trick. 638 echo='print -r' 639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 640 test "X$CONFIG_SHELL" != X/bin/ksh; then 641 # If we have ksh, try running configure again with it. 642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 643 export ORIGINAL_CONFIG_SHELL 644 CONFIG_SHELL=/bin/ksh 645 export CONFIG_SHELL 646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 647 else 648 # Try using printf. 649 echo='printf %s\n' 650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 652 test "X$echo_testing_string" = "X$echo_test_string"; then 653 # Cool, printf works 654 : 655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 656 test "X$echo_testing_string" = 'X\t' && 657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 658 test "X$echo_testing_string" = "X$echo_test_string"; then 659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 660 export CONFIG_SHELL 661 SHELL="$CONFIG_SHELL" 662 export SHELL 663 echo="$CONFIG_SHELL $0 --fallback-echo" 664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 665 test "X$echo_testing_string" = 'X\t' && 666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 667 test "X$echo_testing_string" = "X$echo_test_string"; then 668 echo="$CONFIG_SHELL $0 --fallback-echo" 669 else 670 # maybe with a smaller string... 671 prev=: 672 673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 675 then 676 break 677 fi 678 prev="$cmd" 679 done 680 681 if test "$prev" != 'sed 50q "$0"'; then 682 echo_test_string=`eval $prev` 683 export echo_test_string 684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 685 else 686 # Oops. We lost completely, so just stick with echo. 687 echo=echo 688 fi 689 fi 690 fi 691 fi 692fi 693fi 694 695# Copy echo and quote the copy suitably for passing to libtool from 696# the Makefile, instead of quoting the original, which is used later. 697ECHO=$echo 698if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 700fi 701 702 703 704 705tagnames=${tagnames+${tagnames},}CXX 706 707tagnames=${tagnames+${tagnames},}F77 708 709exec 7<&0 </dev/null 6>&1 710 711# Name of the host. 712# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 713# so uname gets run too. 714ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 715 716# 717# Initializations. 718# 719ac_default_prefix=/usr/local 720ac_clean_files= 721ac_config_libobj_dir=. 722LIBOBJS= 723cross_compiling=no 724subdirs= 725MFLAGS= 726MAKEFLAGS= 727SHELL=${CONFIG_SHELL-/bin/sh} 728 729# Identity of this package. 730PACKAGE_NAME='tvmet' 731PACKAGE_TARNAME='tvmet' 732PACKAGE_VERSION='1.7.2' 733PACKAGE_STRING='tvmet 1.7.2' 734PACKAGE_BUGREPORT='opetzold@users.sourceforge.net' 735 736# Factoring default headers for most tests. 737ac_includes_default="\ 738#include <stdio.h> 739#ifdef HAVE_SYS_TYPES_H 740# include <sys/types.h> 741#endif 742#ifdef HAVE_SYS_STAT_H 743# include <sys/stat.h> 744#endif 745#ifdef STDC_HEADERS 746# include <stdlib.h> 747# include <stddef.h> 748#else 749# ifdef HAVE_STDLIB_H 750# include <stdlib.h> 751# endif 752#endif 753#ifdef HAVE_STRING_H 754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 755# include <memory.h> 756# endif 757# include <string.h> 758#endif 759#ifdef HAVE_STRINGS_H 760# include <strings.h> 761#endif 762#ifdef HAVE_INTTYPES_H 763# include <inttypes.h> 764#endif 765#ifdef HAVE_STDINT_H 766# include <stdint.h> 767#endif 768#ifdef HAVE_UNISTD_H 769# include <unistd.h> 770#endif" 771 772ac_subst_vars='SHELL 773PATH_SEPARATOR 774PACKAGE_NAME 775PACKAGE_TARNAME 776PACKAGE_VERSION 777PACKAGE_STRING 778PACKAGE_BUGREPORT 779exec_prefix 780prefix 781program_transform_name 782bindir 783sbindir 784libexecdir 785datarootdir 786datadir 787sysconfdir 788sharedstatedir 789localstatedir 790includedir 791oldincludedir 792docdir 793infodir 794htmldir 795dvidir 796pdfdir 797psdir 798libdir 799localedir 800mandir 801DEFS 802ECHO_C 803ECHO_N 804ECHO_T 805LIBS 806build_alias 807host_alias 808target_alias 809build 810build_cpu 811build_vendor 812build_os 813host 814host_cpu 815host_vendor 816host_os 817INSTALL_PROGRAM 818INSTALL_SCRIPT 819INSTALL_DATA 820am__isrc 821CYGPATH_W 822PACKAGE 823VERSION 824ACLOCAL 825AUTOCONF 826AUTOMAKE 827AUTOHEADER 828MAKEINFO 829install_sh 830STRIP 831INSTALL_STRIP_PROGRAM 832mkdir_p 833AWK 834SET_MAKE 835am__leading_dot 836AMTAR 837am__tar 838am__untar 839MAINTAINER_MODE_TRUE 840MAINTAINER_MODE_FALSE 841MAINT 842CXX_OPTIMIZE_FLAGS 843CXX_DEBUG_FLAGS 844CXX_WARN_FLAGS 845DOXYGEN 846DOXYGEN_HAVE_DOT 847CONFIG_DOC_TRUE 848CONFIG_DOC_FALSE 849LATEX_BATCHMODE 850LATEX_MODE 851CPPUNIT_CONFIG 852CPPUNIT_CFLAGS 853CPPUNIT_LIBS 854CONFIG_CPPUNIT_TRUE 855CONFIG_CPPUNIT_FALSE 856CXX 857CXXFLAGS 858LDFLAGS 859CPPFLAGS 860ac_ct_CXX 861EXEEXT 862OBJEXT 863DEPDIR 864am__include 865am__quote 866AMDEP_TRUE 867AMDEP_FALSE 868AMDEPBACKSLASH 869CXXDEPMODE 870am__fastdepCXX_TRUE 871am__fastdepCXX_FALSE 872LN_S 873CC 874CFLAGS 875ac_ct_CC 876CCDEPMODE 877am__fastdepCC_TRUE 878am__fastdepCC_FALSE 879GREP 880EGREP 881ECHO 882AR 883RANLIB 884CPP 885CXXCPP 886F77 887FFLAGS 888ac_ct_F77 889LIBTOOL 890LIBOBJS 891LTLIBOBJS' 892ac_subst_files='' 893 ac_precious_vars='build_alias 894host_alias 895target_alias 896CXX 897CXXFLAGS 898LDFLAGS 899LIBS 900CPPFLAGS 901CCC 902CC 903CFLAGS 904CPP 905CXXCPP 906F77 907FFLAGS' 908 909 910# Initialize some variables set by options. 911ac_init_help= 912ac_init_version=false 913# The variables have the same names as the options, with 914# dashes changed to underlines. 915cache_file=/dev/null 916exec_prefix=NONE 917no_create= 918no_recursion= 919prefix=NONE 920program_prefix=NONE 921program_suffix=NONE 922program_transform_name=s,x,x, 923silent= 924site= 925srcdir= 926verbose= 927x_includes=NONE 928x_libraries=NONE 929 930# Installation directory options. 931# These are left unexpanded so users can "make install exec_prefix=/foo" 932# and all the variables that are supposed to be based on exec_prefix 933# by default will actually change. 934# Use braces instead of parens because sh, perl, etc. also accept them. 935# (The list follows the same order as the GNU Coding Standards.) 936bindir='${exec_prefix}/bin' 937sbindir='${exec_prefix}/sbin' 938libexecdir='${exec_prefix}/libexec' 939datarootdir='${prefix}/share' 940datadir='${datarootdir}' 941sysconfdir='${prefix}/etc' 942sharedstatedir='${prefix}/com' 943localstatedir='${prefix}/var' 944includedir='${prefix}/include' 945oldincludedir='/usr/include' 946docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 947infodir='${datarootdir}/info' 948htmldir='${docdir}' 949dvidir='${docdir}' 950pdfdir='${docdir}' 951psdir='${docdir}' 952libdir='${exec_prefix}/lib' 953localedir='${datarootdir}/locale' 954mandir='${datarootdir}/man' 955 956ac_prev= 957ac_dashdash= 958for ac_option 959do 960 # If the previous option needs an argument, assign it. 961 if test -n "$ac_prev"; then 962 eval $ac_prev=\$ac_option 963 ac_prev= 964 continue 965 fi 966 967 case $ac_option in 968 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 969 *) ac_optarg=yes ;; 970 esac 971 972 # Accept the important Cygnus configure options, so we can diagnose typos. 973 974 case $ac_dashdash$ac_option in 975 --) 976 ac_dashdash=yes ;; 977 978 -bindir | --bindir | --bindi | --bind | --bin | --bi) 979 ac_prev=bindir ;; 980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 981 bindir=$ac_optarg ;; 982 983 -build | --build | --buil | --bui | --bu) 984 ac_prev=build_alias ;; 985 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 986 build_alias=$ac_optarg ;; 987 988 -cache-file | --cache-file | --cache-fil | --cache-fi \ 989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 990 ac_prev=cache_file ;; 991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 993 cache_file=$ac_optarg ;; 994 995 --config-cache | -C) 996 cache_file=config.cache ;; 997 998 -datadir | --datadir | --datadi | --datad) 999 ac_prev=datadir ;; 1000 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1001 datadir=$ac_optarg ;; 1002 1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1004 | --dataroo | --dataro | --datar) 1005 ac_prev=datarootdir ;; 1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1008 datarootdir=$ac_optarg ;; 1009 1010 -disable-* | --disable-*) 1011 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1012 # Reject names that are not valid shell variable names. 1013 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1015 { (exit 1); exit 1; }; } 1016 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1017 eval enable_$ac_feature=no ;; 1018 1019 -docdir | --docdir | --docdi | --doc | --do) 1020 ac_prev=docdir ;; 1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1022 docdir=$ac_optarg ;; 1023 1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1025 ac_prev=dvidir ;; 1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1027 dvidir=$ac_optarg ;; 1028 1029 -enable-* | --enable-*) 1030 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1031 # Reject names that are not valid shell variable names. 1032 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1034 { (exit 1); exit 1; }; } 1035 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1036 eval enable_$ac_feature=\$ac_optarg ;; 1037 1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1040 | --exec | --exe | --ex) 1041 ac_prev=exec_prefix ;; 1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1044 | --exec=* | --exe=* | --ex=*) 1045 exec_prefix=$ac_optarg ;; 1046 1047 -gas | --gas | --ga | --g) 1048 # Obsolete; use --with-gas. 1049 with_gas=yes ;; 1050 1051 -help | --help | --hel | --he | -h) 1052 ac_init_help=long ;; 1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1054 ac_init_help=recursive ;; 1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1056 ac_init_help=short ;; 1057 1058 -host | --host | --hos | --ho) 1059 ac_prev=host_alias ;; 1060 -host=* | --host=* | --hos=* | --ho=*) 1061 host_alias=$ac_optarg ;; 1062 1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1064 ac_prev=htmldir ;; 1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1066 | --ht=*) 1067 htmldir=$ac_optarg ;; 1068 1069 -includedir | --includedir | --includedi | --included | --include \ 1070 | --includ | --inclu | --incl | --inc) 1071 ac_prev=includedir ;; 1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1073 | --includ=* | --inclu=* | --incl=* | --inc=*) 1074 includedir=$ac_optarg ;; 1075 1076 -infodir | --infodir | --infodi | --infod | --info | --inf) 1077 ac_prev=infodir ;; 1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1079 infodir=$ac_optarg ;; 1080 1081 -libdir | --libdir | --libdi | --libd) 1082 ac_prev=libdir ;; 1083 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1084 libdir=$ac_optarg ;; 1085 1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1087 | --libexe | --libex | --libe) 1088 ac_prev=libexecdir ;; 1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1090 | --libexe=* | --libex=* | --libe=*) 1091 libexecdir=$ac_optarg ;; 1092 1093 -localedir | --localedir | --localedi | --localed | --locale) 1094 ac_prev=localedir ;; 1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1096 localedir=$ac_optarg ;; 1097 1098 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1099 | --localstate | --localstat | --localsta | --localst | --locals) 1100 ac_prev=localstatedir ;; 1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1103 localstatedir=$ac_optarg ;; 1104 1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1106 ac_prev=mandir ;; 1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1108 mandir=$ac_optarg ;; 1109 1110 -nfp | --nfp | --nf) 1111 # Obsolete; use --without-fp. 1112 with_fp=no ;; 1113 1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1115 | --no-cr | --no-c | -n) 1116 no_create=yes ;; 1117 1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1120 no_recursion=yes ;; 1121 1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1124 | --oldin | --oldi | --old | --ol | --o) 1125 ac_prev=oldincludedir ;; 1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1129 oldincludedir=$ac_optarg ;; 1130 1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1132 ac_prev=prefix ;; 1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1134 prefix=$ac_optarg ;; 1135 1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1137 | --program-pre | --program-pr | --program-p) 1138 ac_prev=program_prefix ;; 1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1141 program_prefix=$ac_optarg ;; 1142 1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1144 | --program-suf | --program-su | --program-s) 1145 ac_prev=program_suffix ;; 1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1148 program_suffix=$ac_optarg ;; 1149 1150 -program-transform-name | --program-transform-name \ 1151 | --program-transform-nam | --program-transform-na \ 1152 | --program-transform-n | --program-transform- \ 1153 | --program-transform | --program-transfor \ 1154 | --program-transfo | --program-transf \ 1155 | --program-trans | --program-tran \ 1156 | --progr-tra | --program-tr | --program-t) 1157 ac_prev=program_transform_name ;; 1158 -program-transform-name=* | --program-transform-name=* \ 1159 | --program-transform-nam=* | --program-transform-na=* \ 1160 | --program-transform-n=* | --program-transform-=* \ 1161 | --program-transform=* | --program-transfor=* \ 1162 | --program-transfo=* | --program-transf=* \ 1163 | --program-trans=* | --program-tran=* \ 1164 | --progr-tra=* | --program-tr=* | --program-t=*) 1165 program_transform_name=$ac_optarg ;; 1166 1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1168 ac_prev=pdfdir ;; 1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1170 pdfdir=$ac_optarg ;; 1171 1172 -psdir | --psdir | --psdi | --psd | --ps) 1173 ac_prev=psdir ;; 1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1175 psdir=$ac_optarg ;; 1176 1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1178 | -silent | --silent | --silen | --sile | --sil) 1179 silent=yes ;; 1180 1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1182 ac_prev=sbindir ;; 1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1184 | --sbi=* | --sb=*) 1185 sbindir=$ac_optarg ;; 1186 1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1189 | --sharedst | --shareds | --shared | --share | --shar \ 1190 | --sha | --sh) 1191 ac_prev=sharedstatedir ;; 1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1195 | --sha=* | --sh=*) 1196 sharedstatedir=$ac_optarg ;; 1197 1198 -site | --site | --sit) 1199 ac_prev=site ;; 1200 -site=* | --site=* | --sit=*) 1201 site=$ac_optarg ;; 1202 1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1204 ac_prev=srcdir ;; 1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1206 srcdir=$ac_optarg ;; 1207 1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1209 | --syscon | --sysco | --sysc | --sys | --sy) 1210 ac_prev=sysconfdir ;; 1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1213 sysconfdir=$ac_optarg ;; 1214 1215 -target | --target | --targe | --targ | --tar | --ta | --t) 1216 ac_prev=target_alias ;; 1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1218 target_alias=$ac_optarg ;; 1219 1220 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1221 verbose=yes ;; 1222 1223 -version | --version | --versio | --versi | --vers | -V) 1224 ac_init_version=: ;; 1225 1226 -with-* | --with-*) 1227 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1228 # Reject names that are not valid shell variable names. 1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1230 { echo "$as_me: error: invalid package name: $ac_package" >&2 1231 { (exit 1); exit 1; }; } 1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1233 eval with_$ac_package=\$ac_optarg ;; 1234 1235 -without-* | --without-*) 1236 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1237 # Reject names that are not valid shell variable names. 1238 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1239 { echo "$as_me: error: invalid package name: $ac_package" >&2 1240 { (exit 1); exit 1; }; } 1241 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1242 eval with_$ac_package=no ;; 1243 1244 --x) 1245 # Obsolete; use --with-x. 1246 with_x=yes ;; 1247 1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1249 | --x-incl | --x-inc | --x-in | --x-i) 1250 ac_prev=x_includes ;; 1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1253 x_includes=$ac_optarg ;; 1254 1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1257 ac_prev=x_libraries ;; 1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1260 x_libraries=$ac_optarg ;; 1261 1262 -*) { echo "$as_me: error: unrecognized option: $ac_option 1263Try \`$0 --help' for more information." >&2 1264 { (exit 1); exit 1; }; } 1265 ;; 1266 1267 *=*) 1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1269 # Reject names that are not valid shell variable names. 1270 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1271 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1272 { (exit 1); exit 1; }; } 1273 eval $ac_envvar=\$ac_optarg 1274 export $ac_envvar ;; 1275 1276 *) 1277 # FIXME: should be removed in autoconf 3.0. 1278 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1280 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1281 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1282 ;; 1283 1284 esac 1285done 1286 1287if test -n "$ac_prev"; then 1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1289 { echo "$as_me: error: missing argument to $ac_option" >&2 1290 { (exit 1); exit 1; }; } 1291fi 1292 1293# Be sure to have absolute directory names. 1294for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1295 datadir sysconfdir sharedstatedir localstatedir includedir \ 1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1297 libdir localedir mandir 1298do 1299 eval ac_val=\$$ac_var 1300 case $ac_val in 1301 [\\/$]* | ?:[\\/]* ) continue;; 1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1303 esac 1304 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1305 { (exit 1); exit 1; }; } 1306done 1307 1308# There might be people who depend on the old broken behavior: `$host' 1309# used to hold the argument of --host etc. 1310# FIXME: To remove some day. 1311build=$build_alias 1312host=$host_alias 1313target=$target_alias 1314 1315# FIXME: To remove some day. 1316if test "x$host_alias" != x; then 1317 if test "x$build_alias" = x; then 1318 cross_compiling=maybe 1319 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1320 If a cross compiler is detected then cross compile mode will be used." >&2 1321 elif test "x$build_alias" != "x$host_alias"; then 1322 cross_compiling=yes 1323 fi 1324fi 1325 1326ac_tool_prefix= 1327test -n "$host_alias" && ac_tool_prefix=$host_alias- 1328 1329test "$silent" = yes && exec 6>/dev/null 1330 1331 1332ac_pwd=`pwd` && test -n "$ac_pwd" && 1333ac_ls_di=`ls -di .` && 1334ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1335 { echo "$as_me: error: Working directory cannot be determined" >&2 1336 { (exit 1); exit 1; }; } 1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1338 { echo "$as_me: error: pwd does not report name of working directory" >&2 1339 { (exit 1); exit 1; }; } 1340 1341 1342# Find the source files, if location was not specified. 1343if test -z "$srcdir"; then 1344 ac_srcdir_defaulted=yes 1345 # Try the directory containing this script, then the parent directory. 1346 ac_confdir=`$as_dirname -- "$0" || 1347$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1348 X"$0" : 'X\(//\)[^/]' \| \ 1349 X"$0" : 'X\(//\)$' \| \ 1350 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1351echo X"$0" | 1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\/\)[^/].*/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\/\)$/{ 1361 s//\1/ 1362 q 1363 } 1364 /^X\(\/\).*/{ 1365 s//\1/ 1366 q 1367 } 1368 s/.*/./; q'` 1369 srcdir=$ac_confdir 1370 if test ! -r "$srcdir/$ac_unique_file"; then 1371 srcdir=.. 1372 fi 1373else 1374 ac_srcdir_defaulted=no 1375fi 1376if test ! -r "$srcdir/$ac_unique_file"; then 1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1378 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1379 { (exit 1); exit 1; }; } 1380fi 1381ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1382ac_abs_confdir=`( 1383 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1384 { (exit 1); exit 1; }; } 1385 pwd)` 1386# When building in place, set srcdir=. 1387if test "$ac_abs_confdir" = "$ac_pwd"; then 1388 srcdir=. 1389fi 1390# Remove unnecessary trailing slashes from srcdir. 1391# Double slashes in file names in object file debugging info 1392# mess up M-x gdb in Emacs. 1393case $srcdir in 1394*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1395esac 1396for ac_var in $ac_precious_vars; do 1397 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1398 eval ac_env_${ac_var}_value=\$${ac_var} 1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1400 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1401done 1402 1403# 1404# Report the --help message. 1405# 1406if test "$ac_init_help" = "long"; then 1407 # Omit some internal or obsolete options to make the list less imposing. 1408 # This message is too long to be a string in the A/UX 3.1 sh. 1409 cat <<_ACEOF 1410\`configure' configures tvmet 1.7.2 to adapt to many kinds of systems. 1411 1412Usage: $0 [OPTION]... [VAR=VALUE]... 1413 1414To assign environment variables (e.g., CC, CFLAGS...), specify them as 1415VAR=VALUE. See below for descriptions of some of the useful variables. 1416 1417Defaults for the options are specified in brackets. 1418 1419Configuration: 1420 -h, --help display this help and exit 1421 --help=short display options specific to this package 1422 --help=recursive display the short help of all the included packages 1423 -V, --version display version information and exit 1424 -q, --quiet, --silent do not print \`checking...' messages 1425 --cache-file=FILE cache test results in FILE [disabled] 1426 -C, --config-cache alias for \`--cache-file=config.cache' 1427 -n, --no-create do not create output files 1428 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1429 1430Installation directories: 1431 --prefix=PREFIX install architecture-independent files in PREFIX 1432 [$ac_default_prefix] 1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1434 [PREFIX] 1435 1436By default, \`make install' will install all the files in 1437\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1438an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1439for instance \`--prefix=\$HOME'. 1440 1441For better control, use the options below. 1442 1443Fine tuning of the installation directories: 1444 --bindir=DIR user executables [EPREFIX/bin] 1445 --sbindir=DIR system admin executables [EPREFIX/sbin] 1446 --libexecdir=DIR program executables [EPREFIX/libexec] 1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1450 --libdir=DIR object code libraries [EPREFIX/lib] 1451 --includedir=DIR C header files [PREFIX/include] 1452 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1455 --infodir=DIR info documentation [DATAROOTDIR/info] 1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1457 --mandir=DIR man documentation [DATAROOTDIR/man] 1458 --docdir=DIR documentation root [DATAROOTDIR/doc/tvmet] 1459 --htmldir=DIR html documentation [DOCDIR] 1460 --dvidir=DIR dvi documentation [DOCDIR] 1461 --pdfdir=DIR pdf documentation [DOCDIR] 1462 --psdir=DIR ps documentation [DOCDIR] 1463_ACEOF 1464 1465 cat <<\_ACEOF 1466 1467Program names: 1468 --program-prefix=PREFIX prepend PREFIX to installed program names 1469 --program-suffix=SUFFIX append SUFFIX to installed program names 1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1471 1472System types: 1473 --build=BUILD configure for building on BUILD [guessed] 1474 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1475_ACEOF 1476fi 1477 1478if test -n "$ac_init_help"; then 1479 case $ac_init_help in 1480 short | recursive ) echo "Configuration of tvmet 1.7.2:";; 1481 esac 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 1490Options of tvmet: 1491 --enable-optimize enable compiler optimization flags 1492 --enable-debug enable compiler debug flags 1493 --enable-warnings enable compiler warning flags 1494 --enable-docs build documentation 1495 --enable-verbose-latex Uses LaTeX non-stop mode 1496 --disable-cppunit disable unit tests using cppunit 1497 --disable-dependency-tracking speeds up one-time build 1498 --enable-dependency-tracking do not reject slow dependency extractors 1499 --enable-shared[=PKGS] build shared libraries [default=yes] 1500 --enable-static[=PKGS] build static libraries [default=yes] 1501 --enable-fast-install[=PKGS] 1502 optimize for fast installation [default=yes] 1503 --disable-libtool-lock avoid locking (might break parallel builds) 1504 1505Optional Packages: 1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1508 --with-cxx=compiler set specific C++ compiler and options (e.g. g++ (default), KCC, icc, pgCC) 1509 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) 1510 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) 1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1512 --with-pic try to use only PIC/non-PIC objects [default=use 1513 both] 1514 --with-tags[=TAGS] include additional configurations [automatic] 1515 1516Some influential environment variables: 1517 CXX C++ compiler command 1518 CXXFLAGS C++ compiler flags 1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1520 nonstandard directory <lib dir> 1521 LIBS libraries to pass to the linker, e.g. -l<library> 1522 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1523 you have headers in a nonstandard directory <include dir> 1524 CC C compiler command 1525 CFLAGS C compiler flags 1526 CPP C preprocessor 1527 CXXCPP C++ preprocessor 1528 F77 Fortran 77 compiler command 1529 FFLAGS Fortran 77 compiler flags 1530 1531Use these variables to override the choices made by `configure' or to help 1532it to find libraries and programs with nonstandard names/locations. 1533 1534Report bugs to <opetzold@users.sourceforge.net>. 1535_ACEOF 1536ac_status=$? 1537fi 1538 1539if test "$ac_init_help" = "recursive"; then 1540 # If there are subdirs, report their specific --help. 1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1542 test -d "$ac_dir" || continue 1543 ac_builddir=. 1544 1545case "$ac_dir" in 1546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1547*) 1548 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1549 # A ".." for each directory in $ac_dir_suffix. 1550 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1551 case $ac_top_builddir_sub in 1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1554 esac ;; 1555esac 1556ac_abs_top_builddir=$ac_pwd 1557ac_abs_builddir=$ac_pwd$ac_dir_suffix 1558# for backward compatibility: 1559ac_top_builddir=$ac_top_build_prefix 1560 1561case $srcdir in 1562 .) # We are building in place. 1563 ac_srcdir=. 1564 ac_top_srcdir=$ac_top_builddir_sub 1565 ac_abs_top_srcdir=$ac_pwd ;; 1566 [\\/]* | ?:[\\/]* ) # Absolute name. 1567 ac_srcdir=$srcdir$ac_dir_suffix; 1568 ac_top_srcdir=$srcdir 1569 ac_abs_top_srcdir=$srcdir ;; 1570 *) # Relative name. 1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1572 ac_top_srcdir=$ac_top_build_prefix$srcdir 1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1574esac 1575ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1576 1577 cd "$ac_dir" || { ac_status=$?; continue; } 1578 # Check for guested configure. 1579 if test -f "$ac_srcdir/configure.gnu"; then 1580 echo && 1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1582 elif test -f "$ac_srcdir/configure"; then 1583 echo && 1584 $SHELL "$ac_srcdir/configure" --help=recursive 1585 else 1586 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1587 fi || ac_status=$? 1588 cd "$ac_pwd" || { ac_status=$?; break; } 1589 done 1590fi 1591 1592test -n "$ac_init_help" && exit $ac_status 1593if $ac_init_version; then 1594 cat <<\_ACEOF 1595tvmet configure 1.7.2 1596generated by GNU Autoconf 2.61 1597 1598Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15992002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1600This configure script is free software; the Free Software Foundation 1601gives unlimited permission to copy, distribute and modify it. 1602_ACEOF 1603 exit 1604fi 1605cat >config.log <<_ACEOF 1606This file contains any messages produced by compilers while 1607running configure, to aid debugging if configure makes a mistake. 1608 1609It was created by tvmet $as_me 1.7.2, which was 1610generated by GNU Autoconf 2.61. Invocation command line was 1611 1612 $ $0 $@ 1613 1614_ACEOF 1615exec 5>>config.log 1616{ 1617cat <<_ASUNAME 1618## --------- ## 1619## Platform. ## 1620## --------- ## 1621 1622hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1623uname -m = `(uname -m) 2>/dev/null || echo unknown` 1624uname -r = `(uname -r) 2>/dev/null || echo unknown` 1625uname -s = `(uname -s) 2>/dev/null || echo unknown` 1626uname -v = `(uname -v) 2>/dev/null || echo unknown` 1627 1628/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1629/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1630 1631/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1632/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1633/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1634/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1635/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1636/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1637/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1638 1639_ASUNAME 1640 1641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1642for as_dir in $PATH 1643do 1644 IFS=$as_save_IFS 1645 test -z "$as_dir" && as_dir=. 1646 echo "PATH: $as_dir" 1647done 1648IFS=$as_save_IFS 1649 1650} >&5 1651 1652cat >&5 <<_ACEOF 1653 1654 1655## ----------- ## 1656## Core tests. ## 1657## ----------- ## 1658 1659_ACEOF 1660 1661 1662# Keep a trace of the command line. 1663# Strip out --no-create and --no-recursion so they do not pile up. 1664# Strip out --silent because we don't want to record it for future runs. 1665# Also quote any args containing shell meta-characters. 1666# Make two passes to allow for proper duplicate-argument suppression. 1667ac_configure_args= 1668ac_configure_args0= 1669ac_configure_args1= 1670ac_must_keep_next=false 1671for ac_pass in 1 2 1672do 1673 for ac_arg 1674 do 1675 case $ac_arg in 1676 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1678 | -silent | --silent | --silen | --sile | --sil) 1679 continue ;; 1680 *\'*) 1681 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1682 esac 1683 case $ac_pass in 1684 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1685 2) 1686 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1687 if test $ac_must_keep_next = true; then 1688 ac_must_keep_next=false # Got value, back to normal. 1689 else 1690 case $ac_arg in 1691 *=* | --config-cache | -C | -disable-* | --disable-* \ 1692 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1693 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1694 | -with-* | --with-* | -without-* | --without-* | --x) 1695 case "$ac_configure_args0 " in 1696 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1697 esac 1698 ;; 1699 -* ) ac_must_keep_next=true ;; 1700 esac 1701 fi 1702 ac_configure_args="$ac_configure_args '$ac_arg'" 1703 ;; 1704 esac 1705 done 1706done 1707$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1708$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1709 1710# When interrupted or exit'd, cleanup temporary files, and complete 1711# config.log. We remove comments because anyway the quotes in there 1712# would cause problems or look ugly. 1713# WARNING: Use '\'' to represent an apostrophe within the trap. 1714# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1715trap 'exit_status=$? 1716 # Save into config.log some information that might help in debugging. 1717 { 1718 echo 1719 1720 cat <<\_ASBOX 1721## ---------------- ## 1722## Cache variables. ## 1723## ---------------- ## 1724_ASBOX 1725 echo 1726 # The following way of writing the cache mishandles newlines in values, 1727( 1728 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1729 eval ac_val=\$$ac_var 1730 case $ac_val in #( 1731 *${as_nl}*) 1732 case $ac_var in #( 1733 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1734echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1735 esac 1736 case $ac_var in #( 1737 _ | IFS | as_nl) ;; #( 1738 *) $as_unset $ac_var ;; 1739 esac ;; 1740 esac 1741 done 1742 (set) 2>&1 | 1743 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1744 *${as_nl}ac_space=\ *) 1745 sed -n \ 1746 "s/'\''/'\''\\\\'\'''\''/g; 1747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1748 ;; #( 1749 *) 1750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1751 ;; 1752 esac | 1753 sort 1754) 1755 echo 1756 1757 cat <<\_ASBOX 1758## ----------------- ## 1759## Output variables. ## 1760## ----------------- ## 1761_ASBOX 1762 echo 1763 for ac_var in $ac_subst_vars 1764 do 1765 eval ac_val=\$$ac_var 1766 case $ac_val in 1767 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1768 esac 1769 echo "$ac_var='\''$ac_val'\''" 1770 done | sort 1771 echo 1772 1773 if test -n "$ac_subst_files"; then 1774 cat <<\_ASBOX 1775## ------------------- ## 1776## File substitutions. ## 1777## ------------------- ## 1778_ASBOX 1779 echo 1780 for ac_var in $ac_subst_files 1781 do 1782 eval ac_val=\$$ac_var 1783 case $ac_val in 1784 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1785 esac 1786 echo "$ac_var='\''$ac_val'\''" 1787 done | sort 1788 echo 1789 fi 1790 1791 if test -s confdefs.h; then 1792 cat <<\_ASBOX 1793## ----------- ## 1794## confdefs.h. ## 1795## ----------- ## 1796_ASBOX 1797 echo 1798 cat confdefs.h 1799 echo 1800 fi 1801 test "$ac_signal" != 0 && 1802 echo "$as_me: caught signal $ac_signal" 1803 echo "$as_me: exit $exit_status" 1804 } >&5 1805 rm -f core *.core core.conftest.* && 1806 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1807 exit $exit_status 1808' 0 1809for ac_signal in 1 2 13 15; do 1810 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1811done 1812ac_signal=0 1813 1814# confdefs.h avoids OS command line length limits that DEFS can exceed. 1815rm -f -r conftest* confdefs.h 1816 1817# Predefined preprocessor variables. 1818 1819cat >>confdefs.h <<_ACEOF 1820#define PACKAGE_NAME "$PACKAGE_NAME" 1821_ACEOF 1822 1823 1824cat >>confdefs.h <<_ACEOF 1825#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1826_ACEOF 1827 1828 1829cat >>confdefs.h <<_ACEOF 1830#define PACKAGE_VERSION "$PACKAGE_VERSION" 1831_ACEOF 1832 1833 1834cat >>confdefs.h <<_ACEOF 1835#define PACKAGE_STRING "$PACKAGE_STRING" 1836_ACEOF 1837 1838 1839cat >>confdefs.h <<_ACEOF 1840#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1841_ACEOF 1842 1843 1844# Let the site file select an alternate cache file if it wants to. 1845# Prefer explicitly selected file to automatically selected ones. 1846if test -n "$CONFIG_SITE"; then 1847 set x "$CONFIG_SITE" 1848elif test "x$prefix" != xNONE; then 1849 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1850else 1851 set x "$ac_default_prefix/share/config.site" \ 1852 "$ac_default_prefix/etc/config.site" 1853fi 1854shift 1855for ac_site_file 1856do 1857 if test -r "$ac_site_file"; then 1858 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1859echo "$as_me: loading site script $ac_site_file" >&6;} 1860 sed 's/^/| /' "$ac_site_file" >&5 1861 . "$ac_site_file" 1862 fi 1863done 1864 1865 1866# Check that the precious variables saved in the cache have kept the same 1867# value. 1868ac_cache_corrupted=false 1869for ac_var in $ac_precious_vars; do 1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1871 eval ac_new_set=\$ac_env_${ac_var}_set 1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1873 eval ac_new_val=\$ac_env_${ac_var}_value 1874 case $ac_old_set,$ac_new_set in 1875 set,) 1876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1877echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1878 ac_cache_corrupted=: ;; 1879 ,set) 1880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1881echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1882 ac_cache_corrupted=: ;; 1883 ,);; 1884 *) 1885 if test "x$ac_old_val" != "x$ac_new_val"; then 1886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1887echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1889echo "$as_me: former value: $ac_old_val" >&2;} 1890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1891echo "$as_me: current value: $ac_new_val" >&2;} 1892 ac_cache_corrupted=: 1893 fi;; 1894 esac 1895 # Pass precious variables to config.status. 1896 if test "$ac_new_set" = set; then 1897 case $ac_new_val in 1898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1899 *) ac_arg=$ac_var=$ac_new_val ;; 1900 esac 1901 case " $ac_configure_args " in 1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1904 esac 1905 fi 1906done 1907if $ac_cache_corrupted; then 1908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1909echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1911echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1912 { (exit 1); exit 1; }; } 1913fi 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939ac_ext=c 1940ac_cpp='$CPP $CPPFLAGS' 1941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1943ac_compiler_gnu=$ac_cv_c_compiler_gnu 1944 1945 1946 1947 1948{ echo "$as_me:$LINENO: result: Configure Tiny Vector Matrix using Expression Templates library 1.7.2" >&5 1949echo "${ECHO_T}Configure Tiny Vector Matrix using Expression Templates library 1.7.2" >&6; } 1950 1951 1952ac_aux_dir= 1953for ac_dir in config "$srcdir"/config; do 1954 if test -f "$ac_dir/install-sh"; then 1955 ac_aux_dir=$ac_dir 1956 ac_install_sh="$ac_aux_dir/install-sh -c" 1957 break 1958 elif test -f "$ac_dir/install.sh"; then 1959 ac_aux_dir=$ac_dir 1960 ac_install_sh="$ac_aux_dir/install.sh -c" 1961 break 1962 elif test -f "$ac_dir/shtool"; then 1963 ac_aux_dir=$ac_dir 1964 ac_install_sh="$ac_aux_dir/shtool install -c" 1965 break 1966 fi 1967done 1968if test -z "$ac_aux_dir"; then 1969 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 1970echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} 1971 { (exit 1); exit 1; }; } 1972fi 1973 1974# These three variables are undocumented and unsupported, 1975# and are intended to be withdrawn in a future Autoconf release. 1976# They can cause serious problems if a builder's source tree is in a directory 1977# whose full name contains unusual characters. 1978ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1979ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1980ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1981 1982 1983ac_config_headers="$ac_config_headers config/config.h" 1984 1985 1986 1987# Make sure we can run config.sub. 1988$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1989 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1990echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1991 { (exit 1); exit 1; }; } 1992 1993{ echo "$as_me:$LINENO: checking build system type" >&5 1994echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1995if test "${ac_cv_build+set}" = set; then 1996 echo $ECHO_N "(cached) $ECHO_C" >&6 1997else 1998 ac_build_alias=$build_alias 1999test "x$ac_build_alias" = x && 2000 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2001test "x$ac_build_alias" = x && 2002 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2003echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2004 { (exit 1); exit 1; }; } 2005ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2006 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2007echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2008 { (exit 1); exit 1; }; } 2009 2010fi 2011{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2012echo "${ECHO_T}$ac_cv_build" >&6; } 2013case $ac_cv_build in 2014*-*-*) ;; 2015*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2016echo "$as_me: error: invalid value of canonical build" >&2;} 2017 { (exit 1); exit 1; }; };; 2018esac 2019build=$ac_cv_build 2020ac_save_IFS=$IFS; IFS='-' 2021set x $ac_cv_build 2022shift 2023build_cpu=$1 2024build_vendor=$2 2025shift; shift 2026# Remember, the first character of IFS is used to create $*, 2027# except with old shells: 2028build_os=$* 2029IFS=$ac_save_IFS 2030case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2031 2032 2033{ echo "$as_me:$LINENO: checking host system type" >&5 2034echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2035if test "${ac_cv_host+set}" = set; then 2036 echo $ECHO_N "(cached) $ECHO_C" >&6 2037else 2038 if test "x$host_alias" = x; then 2039 ac_cv_host=$ac_cv_build 2040else 2041 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2042 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2043echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2044 { (exit 1); exit 1; }; } 2045fi 2046 2047fi 2048{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2049echo "${ECHO_T}$ac_cv_host" >&6; } 2050case $ac_cv_host in 2051*-*-*) ;; 2052*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2053echo "$as_me: error: invalid value of canonical host" >&2;} 2054 { (exit 1); exit 1; }; };; 2055esac 2056host=$ac_cv_host 2057ac_save_IFS=$IFS; IFS='-' 2058set x $ac_cv_host 2059shift 2060host_cpu=$1 2061host_vendor=$2 2062shift; shift 2063# Remember, the first character of IFS is used to create $*, 2064# except with old shells: 2065host_os=$* 2066IFS=$ac_save_IFS 2067case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2068 2069 2070 2071 2072am__api_version='1.10' 2073 2074# Find a good install program. We prefer a C program (faster), 2075# so one script is as good as another. But avoid the broken or 2076# incompatible versions: 2077# SysV /etc/install, /usr/sbin/install 2078# SunOS /usr/etc/install 2079# IRIX /sbin/install 2080# AIX /bin/install 2081# AmigaOS /C/install, which installs bootblocks on floppy discs 2082# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2083# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2084# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2085# OS/2's system install, which has a completely different semantic 2086# ./install, which can be erroneously created by make from ./install.sh. 2087{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2088echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2089if test -z "$INSTALL"; then 2090if test "${ac_cv_path_install+set}" = set; then 2091 echo $ECHO_N "(cached) $ECHO_C" >&6 2092else 2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2094for as_dir in $PATH 2095do 2096 IFS=$as_save_IFS 2097 test -z "$as_dir" && as_dir=. 2098 # Account for people who put trailing slashes in PATH elements. 2099case $as_dir/ in 2100 ./ | .// | /cC/* | \ 2101 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2102 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2103 /usr/ucb/* ) ;; 2104 *) 2105 # OSF1 and SCO ODT 3.0 have their own names for install. 2106 # Don't use installbsd from OSF since it installs stuff as root 2107 # by default. 2108 for ac_prog in ginstall scoinst install; do 2109 for ac_exec_ext in '' $ac_executable_extensions; do 2110 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2111 if test $ac_prog = install && 2112 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2113 # AIX install. It has an incompatible calling convention. 2114 : 2115 elif test $ac_prog = install && 2116 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2117 # program-specific install script used by HP pwplus--don't use. 2118 : 2119 else 2120 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2121 break 3 2122 fi 2123 fi 2124 done 2125 done 2126 ;; 2127esac 2128done 2129IFS=$as_save_IFS 2130 2131 2132fi 2133 if test "${ac_cv_path_install+set}" = set; then 2134 INSTALL=$ac_cv_path_install 2135 else 2136 # As a last resort, use the slow shell script. Don't cache a 2137 # value for INSTALL within a source directory, because that will 2138 # break other packages using the cache if that directory is 2139 # removed, or if the value is a relative name. 2140 INSTALL=$ac_install_sh 2141 fi 2142fi 2143{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2144echo "${ECHO_T}$INSTALL" >&6; } 2145 2146# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2147# It thinks the first close brace ends the variable substitution. 2148test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2149 2150test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2151 2152test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2153 2154{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2155echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2156# Just in case 2157sleep 1 2158echo timestamp > conftest.file 2159# Do `set' in a subshell so we don't clobber the current shell's 2160# arguments. Must try -L first in case configure is actually a 2161# symlink; some systems play weird games with the mod time of symlinks 2162# (eg FreeBSD returns the mod time of the symlink's containing 2163# directory). 2164if ( 2165 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2166 if test "$*" = "X"; then 2167 # -L didn't work. 2168 set X `ls -t $srcdir/configure conftest.file` 2169 fi 2170 rm -f conftest.file 2171 if test "$*" != "X $srcdir/configure conftest.file" \ 2172 && test "$*" != "X conftest.file $srcdir/configure"; then 2173 2174 # If neither matched, then we have a broken ls. This can happen 2175 # if, for instance, CONFIG_SHELL is bash and it inherits a 2176 # broken ls alias from the environment. This has actually 2177 # happened. Such a system could not be considered "sane". 2178 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2179alias in your environment" >&5 2180echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2181alias in your environment" >&2;} 2182 { (exit 1); exit 1; }; } 2183 fi 2184 2185 test "$2" = conftest.file 2186 ) 2187then 2188 # Ok. 2189 : 2190else 2191 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2192Check your system clock" >&5 2193echo "$as_me: error: newly created file is older than distributed files! 2194Check your system clock" >&2;} 2195 { (exit 1); exit 1; }; } 2196fi 2197{ echo "$as_me:$LINENO: result: yes" >&5 2198echo "${ECHO_T}yes" >&6; } 2199test "$program_prefix" != NONE && 2200 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2201# Use a double $ so make ignores it. 2202test "$program_suffix" != NONE && 2203 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2204# Double any \ or $. echo might interpret backslashes. 2205# By default was `s,x,x', remove it if useless. 2206cat <<\_ACEOF >conftest.sed 2207s/[\\$]/&&/g;s/;s,x,x,$// 2208_ACEOF 2209program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2210rm -f conftest.sed 2211 2212# expand $ac_aux_dir to an absolute path 2213am_aux_dir=`cd $ac_aux_dir && pwd` 2214 2215test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2216# Use eval to expand $SHELL 2217if eval "$MISSING --run true"; then 2218 am_missing_run="$MISSING --run " 2219else 2220 am_missing_run= 2221 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2222echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2223fi 2224 2225{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2226echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2227if test -z "$MKDIR_P"; then 2228 if test "${ac_cv_path_mkdir+set}" = set; then 2229 echo $ECHO_N "(cached) $ECHO_C" >&6 2230else 2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2232for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2233do 2234 IFS=$as_save_IFS 2235 test -z "$as_dir" && as_dir=. 2236 for ac_prog in mkdir gmkdir; do 2237 for ac_exec_ext in '' $ac_executable_extensions; do 2238 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2239 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2240 'mkdir (GNU coreutils) '* | \ 2241 'mkdir (coreutils) '* | \ 2242 'mkdir (fileutils) '4.1*) 2243 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2244 break 3;; 2245 esac 2246 done 2247 done 2248done 2249IFS=$as_save_IFS 2250 2251fi 2252 2253 if test "${ac_cv_path_mkdir+set}" = set; then 2254 MKDIR_P="$ac_cv_path_mkdir -p" 2255 else 2256 # As a last resort, use the slow shell script. Don't cache a 2257 # value for MKDIR_P within a source directory, because that will 2258 # break other packages using the cache if that directory is 2259 # removed, or if the value is a relative name. 2260 test -d ./--version && rmdir ./--version 2261 MKDIR_P="$ac_install_sh -d" 2262 fi 2263fi 2264{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2265echo "${ECHO_T}$MKDIR_P" >&6; } 2266 2267mkdir_p="$MKDIR_P" 2268case $mkdir_p in 2269 [\\/$]* | ?:[\\/]*) ;; 2270 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2271esac 2272 2273for ac_prog in gawk mawk nawk awk 2274do 2275 # Extract the first word of "$ac_prog", so it can be a program name with args. 2276set dummy $ac_prog; ac_word=$2 2277{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2279if test "${ac_cv_prog_AWK+set}" = set; then 2280 echo $ECHO_N "(cached) $ECHO_C" >&6 2281else 2282 if test -n "$AWK"; then 2283 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2284else 2285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2286for as_dir in $PATH 2287do 2288 IFS=$as_save_IFS 2289 test -z "$as_dir" && as_dir=. 2290 for ac_exec_ext in '' $ac_executable_extensions; do 2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2292 ac_cv_prog_AWK="$ac_prog" 2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2294 break 2 2295 fi 2296done 2297done 2298IFS=$as_save_IFS 2299 2300fi 2301fi 2302AWK=$ac_cv_prog_AWK 2303if test -n "$AWK"; then 2304 { echo "$as_me:$LINENO: result: $AWK" >&5 2305echo "${ECHO_T}$AWK" >&6; } 2306else 2307 { echo "$as_me:$LINENO: result: no" >&5 2308echo "${ECHO_T}no" >&6; } 2309fi 2310 2311 2312 test -n "$AWK" && break 2313done 2314 2315{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2316echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2317set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2318if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2319 echo $ECHO_N "(cached) $ECHO_C" >&6 2320else 2321 cat >conftest.make <<\_ACEOF 2322SHELL = /bin/sh 2323all: 2324 @echo '@@@%%%=$(MAKE)=@@@%%%' 2325_ACEOF 2326# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2327case `${MAKE-make} -f conftest.make 2>/dev/null` in 2328 *@@@%%%=?*=@@@%%%*) 2329 eval ac_cv_prog_make_${ac_make}_set=yes;; 2330 *) 2331 eval ac_cv_prog_make_${ac_make}_set=no;; 2332esac 2333rm -f conftest.make 2334fi 2335if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2336 { echo "$as_me:$LINENO: result: yes" >&5 2337echo "${ECHO_T}yes" >&6; } 2338 SET_MAKE= 2339else 2340 { echo "$as_me:$LINENO: result: no" >&5 2341echo "${ECHO_T}no" >&6; } 2342 SET_MAKE="MAKE=${MAKE-make}" 2343fi 2344 2345rm -rf .tst 2>/dev/null 2346mkdir .tst 2>/dev/null 2347if test -d .tst; then 2348 am__leading_dot=. 2349else 2350 am__leading_dot=_ 2351fi 2352rmdir .tst 2>/dev/null 2353 2354if test "`cd $srcdir && pwd`" != "`pwd`"; then 2355 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2356 # is not polluted with repeated "-I." 2357 am__isrc=' -I$(srcdir)' 2358 # test to see if srcdir already configured 2359 if test -f $srcdir/config.status; then 2360 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2361echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2362 { (exit 1); exit 1; }; } 2363 fi 2364fi 2365 2366# test whether we have cygpath 2367if test -z "$CYGPATH_W"; then 2368 if (cygpath --version) >/dev/null 2>/dev/null; then 2369 CYGPATH_W='cygpath -w' 2370 else 2371 CYGPATH_W=echo 2372 fi 2373fi 2374 2375 2376# Define the identity of the package. 2377 PACKAGE='tvmet' 2378 VERSION='1.7.2' 2379 2380 2381# Some tools Automake needs. 2382 2383ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2384 2385 2386AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2387 2388 2389AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2390 2391 2392AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2393 2394 2395MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2396 2397install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2398 2399# Installed binaries are usually stripped using `strip' when the user 2400# run `make install-strip'. However `strip' might not be the right 2401# tool to use in cross-compilation environments, therefore Automake 2402# will honor the `STRIP' environment variable to overrule this program. 2403if test "$cross_compiling" != no; then 2404 if test -n "$ac_tool_prefix"; then 2405 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2406set dummy ${ac_tool_prefix}strip; ac_word=$2 2407{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2409if test "${ac_cv_prog_STRIP+set}" = set; then 2410 echo $ECHO_N "(cached) $ECHO_C" >&6 2411else 2412 if test -n "$STRIP"; then 2413 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2414else 2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2416for as_dir in $PATH 2417do 2418 IFS=$as_save_IFS 2419 test -z "$as_dir" && as_dir=. 2420 for ac_exec_ext in '' $ac_executable_extensions; do 2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2422 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2424 break 2 2425 fi 2426done 2427done 2428IFS=$as_save_IFS 2429 2430fi 2431fi 2432STRIP=$ac_cv_prog_STRIP 2433if test -n "$STRIP"; then 2434 { echo "$as_me:$LINENO: result: $STRIP" >&5 2435echo "${ECHO_T}$STRIP" >&6; } 2436else 2437 { echo "$as_me:$LINENO: result: no" >&5 2438echo "${ECHO_T}no" >&6; } 2439fi 2440 2441 2442fi 2443if test -z "$ac_cv_prog_STRIP"; then 2444 ac_ct_STRIP=$STRIP 2445 # Extract the first word of "strip", so it can be a program name with args. 2446set dummy strip; ac_word=$2 2447{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2449if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2450 echo $ECHO_N "(cached) $ECHO_C" >&6 2451else 2452 if test -n "$ac_ct_STRIP"; then 2453 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2454else 2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2456for as_dir in $PATH 2457do 2458 IFS=$as_save_IFS 2459 test -z "$as_dir" && as_dir=. 2460 for ac_exec_ext in '' $ac_executable_extensions; do 2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2462 ac_cv_prog_ac_ct_STRIP="strip" 2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2464 break 2 2465 fi 2466done 2467done 2468IFS=$as_save_IFS 2469 2470fi 2471fi 2472ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2473if test -n "$ac_ct_STRIP"; then 2474 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2475echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2476else 2477 { echo "$as_me:$LINENO: result: no" >&5 2478echo "${ECHO_T}no" >&6; } 2479fi 2480 2481 if test "x$ac_ct_STRIP" = x; then 2482 STRIP=":" 2483 else 2484 case $cross_compiling:$ac_tool_warned in 2485yes:) 2486{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2487whose name does not start with the host triplet. If you think this 2488configuration is useful to you, please write to autoconf@gnu.org." >&5 2489echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2490whose name does not start with the host triplet. If you think this 2491configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2492ac_tool_warned=yes ;; 2493esac 2494 STRIP=$ac_ct_STRIP 2495 fi 2496else 2497 STRIP="$ac_cv_prog_STRIP" 2498fi 2499 2500fi 2501INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2502 2503# We need awk for the "check" target. The system "awk" is bad on 2504# some platforms. 2505# Always define AMTAR for backward compatibility. 2506 2507AMTAR=${AMTAR-"${am_missing_run}tar"} 2508 2509am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2510 2511 2512 2513 2514 2515 2516 2517{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2518echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2519 # Check whether --enable-maintainer-mode was given. 2520if test "${enable_maintainer_mode+set}" = set; then 2521 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2522else 2523 USE_MAINTAINER_MODE=no 2524fi 2525 2526 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2527echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2528 if test $USE_MAINTAINER_MODE = yes; then 2529 MAINTAINER_MODE_TRUE= 2530 MAINTAINER_MODE_FALSE='#' 2531else 2532 MAINTAINER_MODE_TRUE='#' 2533 MAINTAINER_MODE_FALSE= 2534fi 2535 2536 MAINT=$MAINTAINER_MODE_TRUE 2537 2538 2539 2540 2541# Declare variables which we want substituted in the Makefile.in's 2542 2543 2544 2545 2546 2547# Check whether --enable-tvmet was given. 2548if test "${enable_tvmet+set}" = set; then 2549 enableval=$enable_tvmet; 2550fi 2551 2552 2553 2554{ echo "$as_me:$LINENO: checking for compiler" >&5 2555echo $ECHO_N "checking for compiler... $ECHO_C" >&6; } 2556 2557# Check whether --with-cxx was given. 2558if test "${with_cxx+set}" = set; then 2559 withval=$with_cxx; case "$withval" in 2560 KCC*) # KAI C++ http://www.kai.com/ 2561 { echo "$as_me:$LINENO: result: KAI C++" >&5 2562echo "${ECHO_T}KAI C++" >&6; } 2563 CXX_OPTIMIZE_FLAGS="-DTVMET_OPTIMIZE +K3 -O3 -fast --inline_keyword_space_time=10000" 2564 CXX_DEBUG_FLAGS="-g +K0 -DTVMET_DEBUG" 2565 CXX_WARN_FLAGS="" 2566 ;; 2567 g++*|gcc*) # gcc http://gcc.gnu.org/ 2568 { echo "$as_me:$LINENO: result: GNU C++" >&5 2569echo "${ECHO_T}GNU C++" >&6; } 2570 cxxwith=`echo $withval | sed -e 's/ /@/'` 2571 case "$cxxwith" in 2572 *:*@*) # Full initialization syntax 2573 CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)@.*/\1/p'` 2574 CXXFLAGS=`echo "$cxxwith" | sed -n -e 's/.*:.*@\(.*\)/\1/p'` 2575 ;; 2576 *:*) # Simple initialization syntax 2577 CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)/\1/p'` 2578 CXXFLAGS="" 2579 ;; 2580 *) # Default values 2581 CXX="g++" 2582 CXXFLAGS="" 2583 ;; 2584 esac 2585 CXX_OPTIMIZE_FLAGS="-DTVMET_OPTIMIZE -O2 -finline-limit=5000 -ftemplate-depth-200 -fomit-frame-pointer" 2586 CXX_DEBUG_FLAGS="-g -O1 -DTVMET_DEBUG" 2587 CXX_WARN_FLAGS="-W -Wall -Winline" 2588 2589 # paranoia on older gcc versions 2590 gxx_version=`$CXX -v 2>&1 | grep "^.*g.. version" | \ 2591 sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//'` 2592 2593 case "$gxx_version" in 2594 1.* | 2.[0123456789].*) 2595 { { echo "$as_me:$LINENO: error: g++ version $gxx_version will probably fail to compile tvmet" >&5 2596echo "$as_me: error: g++ version $gxx_version will probably fail to compile tvmet" >&2;} 2597 { (exit 1); exit 1; }; } 2598 ;; 2599 esac 2600 ;; 2601 icc) # Intel C++ compiler http://www.intel.com/ 2602 { echo "$as_me:$LINENO: result: Intel C++" >&5 2603echo "${ECHO_T}Intel C++" >&6; } 2604 cxxwith=`echo $withval | sed -e 's/ /@/'` 2605 case "$cxxwith" in 2606 *:*@*) # Full initialization syntax 2607 CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)@.*/\1/p'` 2608 CXXFLAGS=`echo "$cxxwith" | sed -n -e 's/.*:.*@\(.*\)/\1/p'` 2609 ;; 2610 *:*) # Simple initialization syntax 2611 CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)/\1/p'` 2612 CXXFLAGS="" 2613 ;; 2614 *) # Default values 2615 CXX="icc" 2616 CXXFLAGS="" 2617 ;; 2618 esac 2619 CXX_OPTIMIZE_FLAGS="-DTVMET_OPTIMIZE -O2 -fp_port -Qoption,c,-ip_ninl_max_total_stats=3000" 2620 CXX_DEBUG_FLAGS="-g -O0 -DTVMET_DEBUG" 2621 CXX_WARN_FLAGS="-Wall" 2622 ;; 2623 pgCC*) # Portland group http://www.pgroup.com/ 2624 { echo "$as_me:$LINENO: result: Portland Group C++" >&5 2625echo "${ECHO_T}Portland Group C++" >&6; } 2626 cxxwith=`echo $withval | sed -e 's/ /@/'` 2627 case "$cxxwith" in 2628 *:*@*) # Full initialization syntax 2629 CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)@.*/\1/p'` 2630 CXXFLAGS=`echo "$cxxwith" | sed -n -e 's/.*:.*@\(.*\)/\1/p'` 2631 ;; 2632 *:*) # Simple initialization syntax 2633 CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)/\1/p'` 2634 CXXFLAGS="" 2635 ;; 2636 *) # Default values 2637 CXX="pgCC" 2638 CXXFLAGS="" 2639 ;; 2640 esac 2641 CXX_OPTIMIZE_FLAGS="-DTVMET_OPTIMIZE -O4 -Mnoframe -Mnodepchk -Minline=levels:25" 2642 CXX_DEBUG_FLAGS="-g -O0 -DTVMET_DEBUG" 2643 CXX_WARN_FLAGS="" 2644 ;; 2645 *) 2646 { echo "$as_me:$LINENO: WARNING: --with-cxx: unknown c++ compiler $withval" >&5 2647echo "$as_me: WARNING: --with-cxx: unknown c++ compiler $withval" >&2;} 2648 ;; 2649 esac 2650else 2651 2652 { echo "$as_me:$LINENO: result: GNU C++ (default)" >&5 2653echo "${ECHO_T}GNU C++ (default)" >&6; } 2654 cxxwith=`echo $withval | sed -e 's/ /@/'` 2655 case "$cxxwith" in 2656 *:*@*) # Full initialization syntax 2657 CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)@.*/\1/p'` 2658 CXXFLAGS=`echo "$cxxwith" | sed -n -e 's/.*:.*@\(.*\)/\1/p'` 2659 ;; 2660 *:*) # Simple initialization syntax 2661 CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)/\1/p'` 2662 CXXFLAGS="" 2663 ;; 2664 *) # Default values 2665 CXX="g++" 2666 CXXFLAGS="" 2667 ;; 2668 esac 2669 CXX_OPTIMIZE_FLAGS="-DTVMET_OPTIMIZE -O2 -finline-limit=5000 -ftemplate-depth-200 -fomit-frame-pointer" 2670 CXX_DEBUG_FLAGS="-g -O1 -DTVMET_DEBUG" 2671 CXX_WARN_FLAGS="-W -Wall -Winline" 2672 2673fi 2674 2675 2676 2677{ echo "$as_me:$LINENO: checking for compiler optimizations" >&5 2678echo $ECHO_N "checking for compiler optimizations... $ECHO_C" >&6; } 2679tvmet_optimize=0 2680# Check whether --enable-optimize was given. 2681if test "${enable_optimize+set}" = set; then 2682 enableval=$enable_optimize; if test "$enableval" = yes; then 2683 { echo "$as_me:$LINENO: result: yes" >&5 2684echo "${ECHO_T}yes" >&6; } 2685 CXXFLAGS="$CXXFLAGS $CXX_OPTIMIZE_FLAGS" 2686 tvmet_optimize=1 2687 else 2688 { echo "$as_me:$LINENO: result: no" >&5 2689echo "${ECHO_T}no" >&6; } 2690 fi 2691else 2692 2693 { echo "$as_me:$LINENO: result: no" >&5 2694echo "${ECHO_T}no" >&6; } 2695 2696fi 2697 2698 2699 2700if test $tvmet_optimize -eq 1; then 2701 { echo "$as_me:$LINENO: checking for compiler platform-specific optimizations" >&5 2702echo $ECHO_N "checking for compiler platform-specific optimizations... $ECHO_C" >&6; } 2703 case "$build_os" in 2704 *linux*) 2705 case "$CXX" in 2706 g++) 2707 { echo "$as_me:$LINENO: result: GNU/Linux (CPU=$build_cpu) using GNU GCC" >&5 2708echo "${ECHO_T}GNU/Linux (CPU=$build_cpu) using GNU GCC" >&6; } 2709 # specifying -march=cpu-type implies -mcpu=cpu-type. 2710 case "$build_cpu" in 2711 i386|i486) 2712 CXXFLAGS="$CXXFLAGS -malign-double -march=i386" 2713 ;; 2714 i586) 2715 CXXFLAGS="$CXXFLAGS -malign-double -march=i586 -msse" 2716 ;; 2717 i686) 2718 CXXFLAGS="$CXXFLAGS -malign-double -march=i686 -msse2" 2719 ;; 2720 k6*) 2721 CXXFLAGS="$CXXFLAGS -malign-double -march=k6 -m3dnow" 2722 esac 2723 ;; 2724 icc) 2725 { echo "$as_me:$LINENO: result: GNU/Linux (CPU=$build_cpu) using Intel CC" >&5 2726echo "${ECHO_T}GNU/Linux (CPU=$build_cpu) using Intel CC" >&6; } 2727 case "$build_cpu" in 2728 i586) 2729 # Intel Pentium Pro, Intel Pentium II, and Intel Pentium III processors 2730 CXXFLAGS="$CXXFLAGS -tpp6" 2731 ;; 2732 i686) 2733 # Intel Pentium 4 processors 2734 CXXFLAGS="$CXXFLAGS -tpp7" 2735 ;; 2736 esac 2737 ;; 2738 esac 2739 ;; 2740 *) 2741 { echo "$as_me:$LINENO: result: tvmet has not been tuned for this platform" >&5 2742echo "${ECHO_T}tvmet has not been tuned for this platform" >&6; } 2743 ;; 2744 esac 2745fi 2746 2747 2748{ echo "$as_me:$LINENO: checking for compiler debug flags" >&5 2749echo $ECHO_N "checking for compiler debug flags... $ECHO_C" >&6; } 2750# Check whether --enable-debug was given. 2751if test "${enable_debug+set}" = set; then 2752 enableval=$enable_debug; if test "$enableval" = yes; then 2753 { echo "$as_me:$LINENO: result: yes" >&5 2754echo "${ECHO_T}yes" >&6; } 2755 CXXFLAGS="$CXXFLAGS $CXX_DEBUG_FLAGS" 2756 fi 2757else 2758 2759 { echo "$as_me:$LINENO: result: no" >&5 2760echo "${ECHO_T}no" >&6; } 2761 2762fi 2763 2764 2765 2766{ echo "$as_me:$LINENO: checking for compiler warn flags" >&5 2767echo $ECHO_N "checking for compiler warn flags... $ECHO_C" >&6; } 2768# Check whether --enable-warnings was given. 2769if test "${enable_warnings+set}" = set; then 2770 enableval=$enable_warnings; if test "$enableval" = yes; then 2771 { echo "$as_me:$LINENO: result: yes" >&5 2772echo "${ECHO_T}yes" >&6; } 2773 CXXFLAGS="$CXXFLAGS $CXX_WARN_FLAGS" 2774 fi 2775else 2776 2777 { echo "$as_me:$LINENO: result: no" >&5 2778echo "${ECHO_T}no" >&6; } 2779 2780fi 2781 2782 2783 2784 2785 { echo "$as_me:$LINENO: checking for documentation" >&5 2786echo $ECHO_N "checking for documentation... $ECHO_C" >&6; } 2787 # Check whether --enable-docs was given. 2788if test "${enable_docs+set}" = set; then 2789 enableval=$enable_docs; case "$enableval" in 2790 y | yes) CONFIG_DOC=yes ;; 2791 *) unset CONFIG_DOC ;; 2792 esac 2793fi 2794 2795 { echo "$as_me:$LINENO: result: ${CONFIG_DOC:-no}" >&5 2796echo "${ECHO_T}${CONFIG_DOC:-no}" >&6; } 2797 2798 { echo "$as_me:$LINENO: checking whether using LaTeX non-stop mode" >&5 2799echo $ECHO_N "checking whether using LaTeX non-stop mode... $ECHO_C" >&6; } 2800 # Check whether --enable-verbose-latex was given. 2801if test "${enable_verbose_latex+set}" = set; then 2802 enableval=$enable_verbose_latex; case "$enableval" in 2803 y | yes) CONFIG_DOC_LATEX_NONSTOP=yes ;; 2804 *) unset CONFIG_DOC_LATEX_NONSTOP ;; 2805 esac 2806fi 2807 2808 { echo "$as_me:$LINENO: result: ${CONFIG_DOC_LATEX_NONSTOP:-no}" >&5 2809echo "${ECHO_T}${CONFIG_DOC_LATEX_NONSTOP:-no}" >&6; } 2810 2811 if test x${CONFIG_DOC_LATEX_NONSTOP} = xyes; then 2812 LATEX_BATCHMODE=NO 2813 LATEX_MODE=nonstopmode 2814 else 2815 LATEX_BATCHMODE=YES 2816 LATEX_MODE=batchmode 2817 fi 2818 2819 # Extract the first word of "doxygen", so it can be a program name with args. 2820set dummy doxygen; 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_DOXYGEN+set}" = set; then 2824 echo $ECHO_N "(cached) $ECHO_C" >&6 2825else 2826 if test -n "$DOXYGEN"; then 2827 ac_cv_prog_DOXYGEN="$DOXYGEN" # 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_DOXYGEN="doxygen" 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 2846DOXYGEN=$ac_cv_prog_DOXYGEN 2847if test -n "$DOXYGEN"; then 2848 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 2849echo "${ECHO_T}$DOXYGEN" >&6; } 2850else 2851 { echo "$as_me:$LINENO: result: no" >&5 2852echo "${ECHO_T}no" >&6; } 2853fi 2854 2855 2856 if test x${CONFIG_DOC} = xyes -a x"$DOXYGEN" = x; then 2857 { { echo "$as_me:$LINENO: error: missing the doxygen tools to generate the documentation." >&5 2858echo "$as_me: error: missing the doxygen tools to generate the documentation." >&2;} 2859 { (exit 1); exit 1; }; } 2860 fi 2861 2862 # Extract the first word of "dot", so it can be a program name with args. 2863set dummy dot; ac_word=$2 2864{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2866if test "${ac_cv_prog_DOXYGEN_HAVE_DOT+set}" = set; then 2867 echo $ECHO_N "(cached) $ECHO_C" >&6 2868else 2869 if test -n "$DOXYGEN_HAVE_DOT"; then 2870 ac_cv_prog_DOXYGEN_HAVE_DOT="$DOXYGEN_HAVE_DOT" # Let the user override the test. 2871else 2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2873for as_dir in $PATH 2874do 2875 IFS=$as_save_IFS 2876 test -z "$as_dir" && as_dir=. 2877 for ac_exec_ext in '' $ac_executable_extensions; do 2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2879 ac_cv_prog_DOXYGEN_HAVE_DOT="yes" 2880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2881 break 2 2882 fi 2883done 2884done 2885IFS=$as_save_IFS 2886 2887 test -z "$ac_cv_prog_DOXYGEN_HAVE_DOT" && ac_cv_prog_DOXYGEN_HAVE_DOT="no" 2888fi 2889fi 2890DOXYGEN_HAVE_DOT=$ac_cv_prog_DOXYGEN_HAVE_DOT 2891if test -n "$DOXYGEN_HAVE_DOT"; then 2892 { echo "$as_me:$LINENO: result: $DOXYGEN_HAVE_DOT" >&5 2893echo "${ECHO_T}$DOXYGEN_HAVE_DOT" >&6; } 2894else 2895 { echo "$as_me:$LINENO: result: no" >&5 2896echo "${ECHO_T}no" >&6; } 2897fi 2898 2899 2900 2901 if test x"$CONFIG_DOC" = xyes; then 2902 CONFIG_DOC_TRUE= 2903 CONFIG_DOC_FALSE='#' 2904else 2905 CONFIG_DOC_TRUE='#' 2906 CONFIG_DOC_FALSE= 2907fi 2908 2909 2910 2911 2912 2913 2914 2915 2916oopattern_config_cppunit=yes 2917# Check whether --enable-cppunit was given. 2918if test "${enable_cppunit+set}" = set; then 2919 enableval=$enable_cppunit; oopattern_config_cppunit=$enableval 2920fi 2921 2922 2923 2924if test x"$oopattern_config_cppunit" = xyes; then 2925 2926 2927 2928 2929# Check whether --with-cppunit-prefix was given. 2930if test "${with_cppunit_prefix+set}" = set; then 2931 withval=$with_cppunit_prefix; cppunit_config_prefix="$withval" 2932else 2933 cppunit_config_prefix="" 2934fi 2935 2936 2937# Check whether --with-cppunit-exec-prefix was given. 2938if test "${with_cppunit_exec_prefix+set}" = set; then 2939 withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval" 2940else 2941 cppunit_config_exec_prefix="" 2942fi 2943 2944 2945 if test x$cppunit_config_exec_prefix != x ; then 2946 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" 2947 if test x${CPPUNIT_CONFIG+set} != xset ; then 2948 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config 2949 fi 2950 fi 2951 if test x$cppunit_config_prefix != x ; then 2952 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" 2953 if test x${CPPUNIT_CONFIG+set} != xset ; then 2954 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config 2955 fi 2956 fi 2957 2958 # Extract the first word of "cppunit-config", so it can be a program name with args. 2959set dummy cppunit-config; ac_word=$2 2960{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2962if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then 2963 echo $ECHO_N "(cached) $ECHO_C" >&6 2964else 2965 case $CPPUNIT_CONFIG in 2966 [\\/]* | ?:[\\/]*) 2967 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. 2968 ;; 2969 *) 2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2971for as_dir in $PATH 2972do 2973 IFS=$as_save_IFS 2974 test -z "$as_dir" && as_dir=. 2975 for ac_exec_ext in '' $ac_executable_extensions; do 2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2977 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 2978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2979 break 2 2980 fi 2981done 2982done 2983IFS=$as_save_IFS 2984 2985 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" 2986 ;; 2987esac 2988fi 2989CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG 2990if test -n "$CPPUNIT_CONFIG"; then 2991 { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 2992echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; } 2993else 2994 { echo "$as_me:$LINENO: result: no" >&5 2995echo "${ECHO_T}no" >&6; } 2996fi 2997 2998 2999 cppunit_version_min=1.8.0 3000 3001 { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 3002echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; } 3003 no_cppunit="" 3004 if test "$CPPUNIT_CONFIG" = "no" ; then 3005 { echo "$as_me:$LINENO: result: no" >&5 3006echo "${ECHO_T}no" >&6; } 3007 no_cppunit=yes 3008 else 3009 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` 3010 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` 3011 cppunit_version=`$CPPUNIT_CONFIG --version` 3012 3013 cppunit_major_version=`echo $cppunit_version | \ 3014 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 3015 cppunit_minor_version=`echo $cppunit_version | \ 3016 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 3017 cppunit_micro_version=`echo $cppunit_version | \ 3018 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 3019 3020 cppunit_major_min=`echo $cppunit_version_min | \ 3021 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 3022 if test "x${cppunit_major_min}" = "x" ; then 3023 cppunit_major_min=0 3024 fi 3025 3026 cppunit_minor_min=`echo $cppunit_version_min | \ 3027 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 3028 if test "x${cppunit_minor_min}" = "x" ; then 3029 cppunit_minor_min=0 3030 fi 3031 3032 cppunit_micro_min=`echo $cppunit_version_min | \ 3033 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 3034 if test "x${cppunit_micro_min}" = "x" ; then 3035 cppunit_micro_min=0 3036 fi 3037 3038 cppunit_version_proper=`expr \ 3039 $cppunit_major_version \> $cppunit_major_min \| \ 3040 $cppunit_major_version \= $cppunit_major_min \& \ 3041 $cppunit_minor_version \> $cppunit_minor_min \| \ 3042 $cppunit_major_version \= $cppunit_major_min \& \ 3043 $cppunit_minor_version \= $cppunit_minor_min \& \ 3044 $cppunit_micro_version \>= $cppunit_micro_min ` 3045 3046 if test "$cppunit_version_proper" = "1" ; then 3047 { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 3048echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; } 3049 else 3050 { echo "$as_me:$LINENO: result: no" >&5 3051echo "${ECHO_T}no" >&6; } 3052 no_cppunit=yes 3053 fi 3054 fi 3055 3056 if test "x$no_cppunit" = x ; then 3057 : 3058 else 3059 CPPUNIT_CFLAGS="" 3060 CPPUNIT_LIBS="" 3061 : 3062 fi 3063 3064 3065 3066 3067 3068 if test "x$no_cppunit" = xyes; then 3069 CONFIG_CPPUNIT=no 3070 else 3071 CONFIG_CPPUNIT=yes 3072 fi 3073 3074fi 3075{ echo "$as_me:$LINENO: checking for libcppunit support" >&5 3076echo $ECHO_N "checking for libcppunit support... $ECHO_C" >&6; } 3077if test "x${oopattern_config_cppunit}" = xyes -a "x$CONFIG_CPPUNIT" = xyes; then 3078 CONFIG_CPPUNIT=yes 3079 { echo "$as_me:$LINENO: result: yes" >&5 3080echo "${ECHO_T}yes" >&6; } 3081else 3082 CONFIG_CPPUNIT=no 3083 { echo "$as_me:$LINENO: result: no" >&5 3084echo "${ECHO_T}no" >&6; } 3085fi 3086 if test x"$CONFIG_CPPUNIT" = xyes; then 3087 CONFIG_CPPUNIT_TRUE= 3088 CONFIG_CPPUNIT_FALSE='#' 3089else 3090 CONFIG_CPPUNIT_TRUE='#' 3091 CONFIG_CPPUNIT_FALSE= 3092fi 3093 3094 3095 3096# Find a good install program. We prefer a C program (faster), 3097# so one script is as good as another. But avoid the broken or 3098# incompatible versions: 3099# SysV /etc/install, /usr/sbin/install 3100# SunOS /usr/etc/install 3101# IRIX /sbin/install 3102# AIX /bin/install 3103# AmigaOS /C/install, which installs bootblocks on floppy discs 3104# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3105# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3106# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3107# OS/2's system install, which has a completely different semantic 3108# ./install, which can be erroneously created by make from ./install.sh. 3109{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3110echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3111if test -z "$INSTALL"; then 3112if test "${ac_cv_path_install+set}" = set; then 3113 echo $ECHO_N "(cached) $ECHO_C" >&6 3114else 3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3116for as_dir in $PATH 3117do 3118 IFS=$as_save_IFS 3119 test -z "$as_dir" && as_dir=. 3120 # Account for people who put trailing slashes in PATH elements. 3121case $as_dir/ in 3122 ./ | .// | /cC/* | \ 3123 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3124 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3125 /usr/ucb/* ) ;; 3126 *) 3127 # OSF1 and SCO ODT 3.0 have their own names for install. 3128 # Don't use installbsd from OSF since it installs stuff as root 3129 # by default. 3130 for ac_prog in ginstall scoinst install; do 3131 for ac_exec_ext in '' $ac_executable_extensions; do 3132 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3133 if test $ac_prog = install && 3134 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3135 # AIX install. It has an incompatible calling convention. 3136 : 3137 elif test $ac_prog = install && 3138 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3139 # program-specific install script used by HP pwplus--don't use. 3140 : 3141 else 3142 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3143 break 3 3144 fi 3145 fi 3146 done 3147 done 3148 ;; 3149esac 3150done 3151IFS=$as_save_IFS 3152 3153 3154fi 3155 if test "${ac_cv_path_install+set}" = set; then 3156 INSTALL=$ac_cv_path_install 3157 else 3158 # As a last resort, use the slow shell script. Don't cache a 3159 # value for INSTALL within a source directory, because that will 3160 # break other packages using the cache if that directory is 3161 # removed, or if the value is a relative name. 3162 INSTALL=$ac_install_sh 3163 fi 3164fi 3165{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3166echo "${ECHO_T}$INSTALL" >&6; } 3167 3168# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3169# It thinks the first close brace ends the variable substitution. 3170test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3171 3172test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3173 3174test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3175 3176{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3177echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3178set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3179if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3180 echo $ECHO_N "(cached) $ECHO_C" >&6 3181else 3182 cat >conftest.make <<\_ACEOF 3183SHELL = /bin/sh 3184all: 3185 @echo '@@@%%%=$(MAKE)=@@@%%%' 3186_ACEOF 3187# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3188case `${MAKE-make} -f conftest.make 2>/dev/null` in 3189 *@@@%%%=?*=@@@%%%*) 3190 eval ac_cv_prog_make_${ac_make}_set=yes;; 3191 *) 3192 eval ac_cv_prog_make_${ac_make}_set=no;; 3193esac 3194rm -f conftest.make 3195fi 3196if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3197 { echo "$as_me:$LINENO: result: yes" >&5 3198echo "${ECHO_T}yes" >&6; } 3199 SET_MAKE= 3200else 3201 { echo "$as_me:$LINENO: result: no" >&5 3202echo "${ECHO_T}no" >&6; } 3203 SET_MAKE="MAKE=${MAKE-make}" 3204fi 3205 3206ac_ext=cpp 3207ac_cpp='$CXXCPP $CPPFLAGS' 3208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3211 3212ac_ext=cpp 3213ac_cpp='$CXXCPP $CPPFLAGS' 3214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3217if test -z "$CXX"; then 3218 if test -n "$CCC"; then 3219 CXX=$CCC 3220 else 3221 if test -n "$ac_tool_prefix"; then 3222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3223 do 3224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3225set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3226{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3228if test "${ac_cv_prog_CXX+set}" = set; then 3229 echo $ECHO_N "(cached) $ECHO_C" >&6 3230else 3231 if test -n "$CXX"; then 3232 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3233else 3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3235for as_dir in $PATH 3236do 3237 IFS=$as_save_IFS 3238 test -z "$as_dir" && as_dir=. 3239 for ac_exec_ext in '' $ac_executable_extensions; do 3240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3241 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3243 break 2 3244 fi 3245done 3246done 3247IFS=$as_save_IFS 3248 3249fi 3250fi 3251CXX=$ac_cv_prog_CXX 3252if test -n "$CXX"; then 3253 { echo "$as_me:$LINENO: result: $CXX" >&5 3254echo "${ECHO_T}$CXX" >&6; } 3255else 3256 { echo "$as_me:$LINENO: result: no" >&5 3257echo "${ECHO_T}no" >&6; } 3258fi 3259 3260 3261 test -n "$CXX" && break 3262 done 3263fi 3264if test -z "$CXX"; then 3265 ac_ct_CXX=$CXX 3266 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3267do 3268 # Extract the first word of "$ac_prog", so it can be a program name with args. 3269set dummy $ac_prog; ac_word=$2 3270{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3272if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3273 echo $ECHO_N "(cached) $ECHO_C" >&6 3274else 3275 if test -n "$ac_ct_CXX"; then 3276 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3277else 3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3279for as_dir in $PATH 3280do 3281 IFS=$as_save_IFS 3282 test -z "$as_dir" && as_dir=. 3283 for ac_exec_ext in '' $ac_executable_extensions; do 3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3285 ac_cv_prog_ac_ct_CXX="$ac_prog" 3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3287 break 2 3288 fi 3289done 3290done 3291IFS=$as_save_IFS 3292 3293fi 3294fi 3295ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3296if test -n "$ac_ct_CXX"; then 3297 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3298echo "${ECHO_T}$ac_ct_CXX" >&6; } 3299else 3300 { echo "$as_me:$LINENO: result: no" >&5 3301echo "${ECHO_T}no" >&6; } 3302fi 3303 3304 3305 test -n "$ac_ct_CXX" && break 3306done 3307 3308 if test "x$ac_ct_CXX" = x; then 3309 CXX="g++" 3310 else 3311 case $cross_compiling:$ac_tool_warned in 3312yes:) 3313{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3314whose name does not start with the host triplet. If you think this 3315configuration is useful to you, please write to autoconf@gnu.org." >&5 3316echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3317whose name does not start with the host triplet. If you think this 3318configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3319ac_tool_warned=yes ;; 3320esac 3321 CXX=$ac_ct_CXX 3322 fi 3323fi 3324 3325 fi 3326fi 3327# Provide some information about the compiler. 3328echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3329ac_compiler=`set X $ac_compile; echo $2` 3330{ (ac_try="$ac_compiler --version >&5" 3331case "(($ac_try" in 3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3333 *) ac_try_echo=$ac_try;; 3334esac 3335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3336 (eval "$ac_compiler --version >&5") 2>&5 3337 ac_status=$? 3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); } 3340{ (ac_try="$ac_compiler -v >&5" 3341case "(($ac_try" in 3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3343 *) ac_try_echo=$ac_try;; 3344esac 3345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3346 (eval "$ac_compiler -v >&5") 2>&5 3347 ac_status=$? 3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3349 (exit $ac_status); } 3350{ (ac_try="$ac_compiler -V >&5" 3351case "(($ac_try" in 3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3353 *) ac_try_echo=$ac_try;; 3354esac 3355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3356 (eval "$ac_compiler -V >&5") 2>&5 3357 ac_status=$? 3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3359 (exit $ac_status); } 3360 3361cat >conftest.$ac_ext <<_ACEOF 3362/* confdefs.h. */ 3363_ACEOF 3364cat confdefs.h >>conftest.$ac_ext 3365cat >>conftest.$ac_ext <<_ACEOF 3366/* end confdefs.h. */ 3367 3368int 3369main () 3370{ 3371 3372 ; 3373 return 0; 3374} 3375_ACEOF 3376ac_clean_files_save=$ac_clean_files 3377ac_clean_files="$ac_clean_files a.out a.exe b.out" 3378# Try to create an executable without -o first, disregard a.out. 3379# It will help us diagnose broken compilers, and finding out an intuition 3380# of exeext. 3381{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 3382echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } 3383ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3384# 3385# List of possible output files, starting from the most likely. 3386# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3387# only as a last resort. b.out is created by i960 compilers. 3388ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3389# 3390# The IRIX 6 linker writes into existing files which may not be 3391# executable, retaining their permissions. Remove them first so a 3392# subsequent execution test works. 3393ac_rmfiles= 3394for ac_file in $ac_files 3395do 3396 case $ac_file in 3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3398 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3399 esac 3400done 3401rm -f $ac_rmfiles 3402 3403if { (ac_try="$ac_link_default" 3404case "(($ac_try" in 3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3406 *) ac_try_echo=$ac_try;; 3407esac 3408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3409 (eval "$ac_link_default") 2>&5 3410 ac_status=$? 3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3412 (exit $ac_status); }; then 3413 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3414# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3415# in a Makefile. We should not override ac_cv_exeext if it was cached, 3416# so that the user can short-circuit this test for compilers unknown to 3417# Autoconf. 3418for ac_file in $ac_files '' 3419do 3420 test -f "$ac_file" || continue 3421 case $ac_file in 3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3423 ;; 3424 [ab].out ) 3425 # We found the default executable, but exeext='' is most 3426 # certainly right. 3427 break;; 3428 *.* ) 3429 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3430 then :; else 3431 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3432 fi 3433 # We set ac_cv_exeext here because the later test for it is not 3434 # safe: cross compilers may not add the suffix if given an `-o' 3435 # argument, so we may need to know it at that point already. 3436 # Even if this section looks crufty: it has the advantage of 3437 # actually working. 3438 break;; 3439 * ) 3440 break;; 3441 esac 3442done 3443test "$ac_cv_exeext" = no && ac_cv_exeext= 3444 3445else 3446 ac_file='' 3447fi 3448 3449{ echo "$as_me:$LINENO: result: $ac_file" >&5 3450echo "${ECHO_T}$ac_file" >&6; } 3451if test -z "$ac_file"; then 3452 echo "$as_me: failed program was:" >&5 3453sed 's/^/| /' conftest.$ac_ext >&5 3454 3455{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 3456See \`config.log' for more details." >&5 3457echo "$as_me: error: C++ compiler cannot create executables 3458See \`config.log' for more details." >&2;} 3459 { (exit 77); exit 77; }; } 3460fi 3461 3462ac_exeext=$ac_cv_exeext 3463 3464# Check that the compiler produces executables we can run. If not, either 3465# the compiler is broken, or we cross compile. 3466{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 3467echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } 3468# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3469# If not cross compiling, check that we can run a simple program. 3470if test "$cross_compiling" != yes; then 3471 if { ac_try='./$ac_file' 3472 { (case "(($ac_try" in 3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3474 *) ac_try_echo=$ac_try;; 3475esac 3476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3477 (eval "$ac_try") 2>&5 3478 ac_status=$? 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3480 (exit $ac_status); }; }; then 3481 cross_compiling=no 3482 else 3483 if test "$cross_compiling" = maybe; then 3484 cross_compiling=yes 3485 else 3486 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 3487If you meant to cross compile, use \`--host'. 3488See \`config.log' for more details." >&5 3489echo "$as_me: error: cannot run C++ compiled programs. 3490If you meant to cross compile, use \`--host'. 3491See \`config.log' for more details." >&2;} 3492 { (exit 1); exit 1; }; } 3493 fi 3494 fi 3495fi 3496{ echo "$as_me:$LINENO: result: yes" >&5 3497echo "${ECHO_T}yes" >&6; } 3498 3499rm -f a.out a.exe conftest$ac_cv_exeext b.out 3500ac_clean_files=$ac_clean_files_save 3501# Check that the compiler produces executables we can run. If not, either 3502# the compiler is broken, or we cross compile. 3503{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3504echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3505{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3506echo "${ECHO_T}$cross_compiling" >&6; } 3507 3508{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3509echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3510if { (ac_try="$ac_link" 3511case "(($ac_try" in 3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3513 *) ac_try_echo=$ac_try;; 3514esac 3515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3516 (eval "$ac_link") 2>&5 3517 ac_status=$? 3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3519 (exit $ac_status); }; then 3520 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3521# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3522# work properly (i.e., refer to `conftest.exe'), while it won't with 3523# `rm'. 3524for ac_file in conftest.exe conftest conftest.*; do 3525 test -f "$ac_file" || continue 3526 case $ac_file in 3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3528 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3529 break;; 3530 * ) break;; 3531 esac 3532done 3533else 3534 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3535See \`config.log' for more details." >&5 3536echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3537See \`config.log' for more details." >&2;} 3538 { (exit 1); exit 1; }; } 3539fi 3540 3541rm -f conftest$ac_cv_exeext 3542{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3543echo "${ECHO_T}$ac_cv_exeext" >&6; } 3544 3545rm -f conftest.$ac_ext 3546EXEEXT=$ac_cv_exeext 3547ac_exeext=$EXEEXT 3548{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3549echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3550if test "${ac_cv_objext+set}" = set; then 3551 echo $ECHO_N "(cached) $ECHO_C" >&6 3552else 3553 cat >conftest.$ac_ext <<_ACEOF 3554/* confdefs.h. */ 3555_ACEOF 3556cat confdefs.h >>conftest.$ac_ext 3557cat >>conftest.$ac_ext <<_ACEOF 3558/* end confdefs.h. */ 3559 3560int 3561main () 3562{ 3563 3564 ; 3565 return 0; 3566} 3567_ACEOF 3568rm -f conftest.o conftest.obj 3569if { (ac_try="$ac_compile" 3570case "(($ac_try" in 3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3572 *) ac_try_echo=$ac_try;; 3573esac 3574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3575 (eval "$ac_compile") 2>&5 3576 ac_status=$? 3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3578 (exit $ac_status); }; then 3579 for ac_file in conftest.o conftest.obj conftest.*; do 3580 test -f "$ac_file" || continue; 3581 case $ac_file in 3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3583 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3584 break;; 3585 esac 3586done 3587else 3588 echo "$as_me: failed program was:" >&5 3589sed 's/^/| /' conftest.$ac_ext >&5 3590 3591{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3592See \`config.log' for more details." >&5 3593echo "$as_me: error: cannot compute suffix of object files: cannot compile 3594See \`config.log' for more details." >&2;} 3595 { (exit 1); exit 1; }; } 3596fi 3597 3598rm -f conftest.$ac_cv_objext conftest.$ac_ext 3599fi 3600{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3601echo "${ECHO_T}$ac_cv_objext" >&6; } 3602OBJEXT=$ac_cv_objext 3603ac_objext=$OBJEXT 3604{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3605echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 3606if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3607 echo $ECHO_N "(cached) $ECHO_C" >&6 3608else 3609 cat >conftest.$ac_ext <<_ACEOF 3610/* confdefs.h. */ 3611_ACEOF 3612cat confdefs.h >>conftest.$ac_ext 3613cat >>conftest.$ac_ext <<_ACEOF 3614/* end confdefs.h. */ 3615 3616int 3617main () 3618{ 3619#ifndef __GNUC__ 3620 choke me 3621#endif 3622 3623 ; 3624 return 0; 3625} 3626_ACEOF 3627rm -f conftest.$ac_objext 3628if { (ac_try="$ac_compile" 3629case "(($ac_try" in 3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3631 *) ac_try_echo=$ac_try;; 3632esac 3633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3634 (eval "$ac_compile") 2>conftest.er1 3635 ac_status=$? 3636 grep -v '^ *+' conftest.er1 >conftest.err 3637 rm -f conftest.er1 3638 cat conftest.err >&5 3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3640 (exit $ac_status); } && { 3641 test -z "$ac_cxx_werror_flag" || 3642 test ! -s conftest.err 3643 } && test -s conftest.$ac_objext; then 3644 ac_compiler_gnu=yes 3645else 3646 echo "$as_me: failed program was:" >&5 3647sed 's/^/| /' conftest.$ac_ext >&5 3648 3649 ac_compiler_gnu=no 3650fi 3651 3652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3653ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3654 3655fi 3656{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3657echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3658GXX=`test $ac_compiler_gnu = yes && echo yes` 3659ac_test_CXXFLAGS=${CXXFLAGS+set} 3660ac_save_CXXFLAGS=$CXXFLAGS 3661{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3662echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3663if test "${ac_cv_prog_cxx_g+set}" = set; then 3664 echo $ECHO_N "(cached) $ECHO_C" >&6 3665else 3666 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3667 ac_cxx_werror_flag=yes 3668 ac_cv_prog_cxx_g=no 3669 CXXFLAGS="-g" 3670 cat >conftest.$ac_ext <<_ACEOF 3671/* confdefs.h. */ 3672_ACEOF 3673cat confdefs.h >>conftest.$ac_ext 3674cat >>conftest.$ac_ext <<_ACEOF 3675/* end confdefs.h. */ 3676 3677int 3678main () 3679{ 3680 3681 ; 3682 return 0; 3683} 3684_ACEOF 3685rm -f conftest.$ac_objext 3686if { (ac_try="$ac_compile" 3687case "(($ac_try" in 3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3689 *) ac_try_echo=$ac_try;; 3690esac 3691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3692 (eval "$ac_compile") 2>conftest.er1 3693 ac_status=$? 3694 grep -v '^ *+' conftest.er1 >conftest.err 3695 rm -f conftest.er1 3696 cat conftest.err >&5 3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3698 (exit $ac_status); } && { 3699 test -z "$ac_cxx_werror_flag" || 3700 test ! -s conftest.err 3701 } && test -s conftest.$ac_objext; then 3702 ac_cv_prog_cxx_g=yes 3703else 3704 echo "$as_me: failed program was:" >&5 3705sed 's/^/| /' conftest.$ac_ext >&5 3706 3707 CXXFLAGS="" 3708 cat >conftest.$ac_ext <<_ACEOF 3709/* confdefs.h. */ 3710_ACEOF 3711cat confdefs.h >>conftest.$ac_ext 3712cat >>conftest.$ac_ext <<_ACEOF 3713/* end confdefs.h. */ 3714 3715int 3716main () 3717{ 3718 3719 ; 3720 return 0; 3721} 3722_ACEOF 3723rm -f conftest.$ac_objext 3724if { (ac_try="$ac_compile" 3725case "(($ac_try" in 3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3727 *) ac_try_echo=$ac_try;; 3728esac 3729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3730 (eval "$ac_compile") 2>conftest.er1 3731 ac_status=$? 3732 grep -v '^ *+' conftest.er1 >conftest.err 3733 rm -f conftest.er1 3734 cat conftest.err >&5 3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3736 (exit $ac_status); } && { 3737 test -z "$ac_cxx_werror_flag" || 3738 test ! -s conftest.err 3739 } && test -s conftest.$ac_objext; then 3740 : 3741else 3742 echo "$as_me: failed program was:" >&5 3743sed 's/^/| /' conftest.$ac_ext >&5 3744 3745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3746 CXXFLAGS="-g" 3747 cat >conftest.$ac_ext <<_ACEOF 3748/* confdefs.h. */ 3749_ACEOF 3750cat confdefs.h >>conftest.$ac_ext 3751cat >>conftest.$ac_ext <<_ACEOF 3752/* end confdefs.h. */ 3753 3754int 3755main () 3756{ 3757 3758 ; 3759 return 0; 3760} 3761_ACEOF 3762rm -f conftest.$ac_objext 3763if { (ac_try="$ac_compile" 3764case "(($ac_try" in 3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3766 *) ac_try_echo=$ac_try;; 3767esac 3768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3769 (eval "$ac_compile") 2>conftest.er1 3770 ac_status=$? 3771 grep -v '^ *+' conftest.er1 >conftest.err 3772 rm -f conftest.er1 3773 cat conftest.err >&5 3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3775 (exit $ac_status); } && { 3776 test -z "$ac_cxx_werror_flag" || 3777 test ! -s conftest.err 3778 } && test -s conftest.$ac_objext; then 3779 ac_cv_prog_cxx_g=yes 3780else 3781 echo "$as_me: failed program was:" >&5 3782sed 's/^/| /' conftest.$ac_ext >&5 3783 3784 3785fi 3786 3787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3788fi 3789 3790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3791fi 3792 3793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3794 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3795fi 3796{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3797echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3798if test "$ac_test_CXXFLAGS" = set; then 3799 CXXFLAGS=$ac_save_CXXFLAGS 3800elif test $ac_cv_prog_cxx_g = yes; then 3801 if test "$GXX" = yes; then 3802 CXXFLAGS="-g -O2" 3803 else 3804 CXXFLAGS="-g" 3805 fi 3806else 3807 if test "$GXX" = yes; then 3808 CXXFLAGS="-O2" 3809 else 3810 CXXFLAGS= 3811 fi 3812fi 3813ac_ext=cpp 3814ac_cpp='$CXXCPP $CPPFLAGS' 3815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3818DEPDIR="${am__leading_dot}deps" 3819 3820ac_config_commands="$ac_config_commands depfiles" 3821 3822 3823am_make=${MAKE-make} 3824cat > confinc << 'END' 3825am__doit: 3826 @echo done 3827.PHONY: am__doit 3828END 3829# If we don't find an include directive, just comment out the code. 3830{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3831echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3832am__include="#" 3833am__quote= 3834_am_result=none 3835# First try GNU make style include. 3836echo "include confinc" > confmf 3837# We grep out `Entering directory' and `Leaving directory' 3838# messages which can occur if `w' ends up in MAKEFLAGS. 3839# In particular we don't look at `^make:' because GNU make might 3840# be invoked under some other name (usually "gmake"), in which 3841# case it prints its new name instead of `make'. 3842if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3843 am__include=include 3844 am__quote= 3845 _am_result=GNU 3846fi 3847# Now try BSD make style include. 3848if test "$am__include" = "#"; then 3849 echo '.include "confinc"' > confmf 3850 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3851 am__include=.include 3852 am__quote="\"" 3853 _am_result=BSD 3854 fi 3855fi 3856 3857 3858{ echo "$as_me:$LINENO: result: $_am_result" >&5 3859echo "${ECHO_T}$_am_result" >&6; } 3860rm -f confinc confmf 3861 3862# Check whether --enable-dependency-tracking was given. 3863if test "${enable_dependency_tracking+set}" = set; then 3864 enableval=$enable_dependency_tracking; 3865fi 3866 3867if test "x$enable_dependency_tracking" != xno; then 3868 am_depcomp="$ac_aux_dir/depcomp" 3869 AMDEPBACKSLASH='\' 3870fi 3871 if test "x$enable_dependency_tracking" != xno; then 3872 AMDEP_TRUE= 3873 AMDEP_FALSE='#' 3874else 3875 AMDEP_TRUE='#' 3876 AMDEP_FALSE= 3877fi 3878 3879 3880 3881depcc="$CXX" am_compiler_list= 3882 3883{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3884echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3885if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3886 echo $ECHO_N "(cached) $ECHO_C" >&6 3887else 3888 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3889 # We make a subdir and do the tests there. Otherwise we can end up 3890 # making bogus files that we don't know about and never remove. For 3891 # instance it was reported that on HP-UX the gcc test will end up 3892 # making a dummy file named `D' -- because `-MD' means `put the output 3893 # in D'. 3894 mkdir conftest.dir 3895 # Copy depcomp to subdir because otherwise we won't find it if we're 3896 # using a relative directory. 3897 cp "$am_depcomp" conftest.dir 3898 cd conftest.dir 3899 # We will build objects and dependencies in a subdirectory because 3900 # it helps to detect inapplicable dependency modes. For instance 3901 # both Tru64's cc and ICC support -MD to output dependencies as a 3902 # side effect of compilation, but ICC will put the dependencies in 3903 # the current directory while Tru64 will put them in the object 3904 # directory. 3905 mkdir sub 3906 3907 am_cv_CXX_dependencies_compiler_type=none 3908 if test "$am_compiler_list" = ""; then 3909 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3910 fi 3911 for depmode in $am_compiler_list; do 3912 # Setup a source with many dependencies, because some compilers 3913 # like to wrap large dependency lists on column 80 (with \), and 3914 # we should not choose a depcomp mode which is confused by this. 3915 # 3916 # We need to recreate these files for each test, as the compiler may 3917 # overwrite some of them when testing with obscure command lines. 3918 # This happens at least with the AIX C compiler. 3919 : > sub/conftest.c 3920 for i in 1 2 3 4 5 6; do 3921 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3922 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3923 # Solaris 8's {/usr,}/bin/sh. 3924 touch sub/conftst$i.h 3925 done 3926 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3927 3928 case $depmode in 3929 nosideeffect) 3930 # after this tag, mechanisms are not by side-effect, so they'll 3931 # only be used when explicitly requested 3932 if test "x$enable_dependency_tracking" = xyes; then 3933 continue 3934 else 3935 break 3936 fi 3937 ;; 3938 none) break ;; 3939 esac 3940 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3941 # mode. It turns out that the SunPro C++ compiler does not properly 3942 # handle `-M -o', and we need to detect this. 3943 if depmode=$depmode \ 3944 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3945 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3946 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3947 >/dev/null 2>conftest.err && 3948 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3949 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3950 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3951 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3952 # icc doesn't choke on unknown options, it will just issue warnings 3953 # or remarks (even with -Werror). So we grep stderr for any message 3954 # that says an option was ignored or not supported. 3955 # When given -MP, icc 7.0 and 7.1 complain thusly: 3956 # icc: Command line warning: ignoring option '-M'; no argument required 3957 # The diagnosis changed in icc 8.0: 3958 # icc: Command line remark: option '-MP' not supported 3959 if (grep 'ignoring option' conftest.err || 3960 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3961 am_cv_CXX_dependencies_compiler_type=$depmode 3962 break 3963 fi 3964 fi 3965 done 3966 3967 cd .. 3968 rm -rf conftest.dir 3969else 3970 am_cv_CXX_dependencies_compiler_type=none 3971fi 3972 3973fi 3974{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3975echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 3976CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3977 3978 if 3979 test "x$enable_dependency_tracking" != xno \ 3980 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3981 am__fastdepCXX_TRUE= 3982 am__fastdepCXX_FALSE='#' 3983else 3984 am__fastdepCXX_TRUE='#' 3985 am__fastdepCXX_FALSE= 3986fi 3987 3988 3989{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 3990echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 3991LN_S=$as_ln_s 3992if test "$LN_S" = "ln -s"; then 3993 { echo "$as_me:$LINENO: result: yes" >&5 3994echo "${ECHO_T}yes" >&6; } 3995else 3996 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3997echo "${ECHO_T}no, using $LN_S" >&6; } 3998fi 3999 4000 4001 4002# Check whether --enable-shared was given. 4003if test "${enable_shared+set}" = set; then 4004 enableval=$enable_shared; p=${PACKAGE-default} 4005 case $enableval in 4006 yes) enable_shared=yes ;; 4007 no) enable_shared=no ;; 4008 *) 4009 enable_shared=no 4010 # Look at the argument we got. We use all the common list separators. 4011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4012 for pkg in $enableval; do 4013 IFS="$lt_save_ifs" 4014 if test "X$pkg" = "X$p"; then 4015 enable_shared=yes 4016 fi 4017 done 4018 IFS="$lt_save_ifs" 4019 ;; 4020 esac 4021else 4022 enable_shared=yes 4023fi 4024 4025 4026# Check whether --enable-static was given. 4027if test "${enable_static+set}" = set; then 4028 enableval=$enable_static; p=${PACKAGE-default} 4029 case $enableval in 4030 yes) enable_static=yes ;; 4031 no) enable_static=no ;; 4032 *) 4033 enable_static=no 4034 # Look at the argument we got. We use all the common list separators. 4035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4036 for pkg in $enableval; do 4037 IFS="$lt_save_ifs" 4038 if test "X$pkg" = "X$p"; then 4039 enable_static=yes 4040 fi 4041 done 4042 IFS="$lt_save_ifs" 4043 ;; 4044 esac 4045else 4046 enable_static=yes 4047fi 4048 4049 4050# Check whether --enable-fast-install was given. 4051if test "${enable_fast_install+set}" = set; then 4052 enableval=$enable_fast_install; p=${PACKAGE-default} 4053 case $enableval in 4054 yes) enable_fast_install=yes ;; 4055 no) enable_fast_install=no ;; 4056 *) 4057 enable_fast_install=no 4058 # Look at the argument we got. We use all the common list separators. 4059 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4060 for pkg in $enableval; do 4061 IFS="$lt_save_ifs" 4062 if test "X$pkg" = "X$p"; then 4063 enable_fast_install=yes 4064 fi 4065 done 4066 IFS="$lt_save_ifs" 4067 ;; 4068 esac 4069else 4070 enable_fast_install=yes 4071fi 4072 4073 4074ac_ext=c 4075ac_cpp='$CPP $CPPFLAGS' 4076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4078ac_compiler_gnu=$ac_cv_c_compiler_gnu 4079if test -n "$ac_tool_prefix"; then 4080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4081set dummy ${ac_tool_prefix}gcc; ac_word=$2 4082{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4084if test "${ac_cv_prog_CC+set}" = set; then 4085 echo $ECHO_N "(cached) $ECHO_C" >&6 4086else 4087 if test -n "$CC"; then 4088 ac_cv_prog_CC="$CC" # Let the user override the test. 4089else 4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4091for as_dir in $PATH 4092do 4093 IFS=$as_save_IFS 4094 test -z "$as_dir" && as_dir=. 4095 for ac_exec_ext in '' $ac_executable_extensions; do 4096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4097 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4099 break 2 4100 fi 4101done 4102done 4103IFS=$as_save_IFS 4104 4105fi 4106fi 4107CC=$ac_cv_prog_CC 4108if test -n "$CC"; then 4109 { echo "$as_me:$LINENO: result: $CC" >&5 4110echo "${ECHO_T}$CC" >&6; } 4111else 4112 { echo "$as_me:$LINENO: result: no" >&5 4113echo "${ECHO_T}no" >&6; } 4114fi 4115 4116 4117fi 4118if test -z "$ac_cv_prog_CC"; then 4119 ac_ct_CC=$CC 4120 # Extract the first word of "gcc", so it can be a program name with args. 4121set dummy gcc; ac_word=$2 4122{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4124if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4125 echo $ECHO_N "(cached) $ECHO_C" >&6 4126else 4127 if test -n "$ac_ct_CC"; then 4128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4129else 4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4131for as_dir in $PATH 4132do 4133 IFS=$as_save_IFS 4134 test -z "$as_dir" && as_dir=. 4135 for ac_exec_ext in '' $ac_executable_extensions; do 4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4137 ac_cv_prog_ac_ct_CC="gcc" 4138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4139 break 2 4140 fi 4141done 4142done 4143IFS=$as_save_IFS 4144 4145fi 4146fi 4147ac_ct_CC=$ac_cv_prog_ac_ct_CC 4148if test -n "$ac_ct_CC"; then 4149 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4150echo "${ECHO_T}$ac_ct_CC" >&6; } 4151else 4152 { echo "$as_me:$LINENO: result: no" >&5 4153echo "${ECHO_T}no" >&6; } 4154fi 4155 4156 if test "x$ac_ct_CC" = x; then 4157 CC="" 4158 else 4159 case $cross_compiling:$ac_tool_warned in 4160yes:) 4161{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4162whose name does not start with the host triplet. If you think this 4163configuration is useful to you, please write to autoconf@gnu.org." >&5 4164echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4165whose name does not start with the host triplet. If you think this 4166configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4167ac_tool_warned=yes ;; 4168esac 4169 CC=$ac_ct_CC 4170 fi 4171else 4172 CC="$ac_cv_prog_CC" 4173fi 4174 4175if test -z "$CC"; then 4176 if test -n "$ac_tool_prefix"; then 4177 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4178set dummy ${ac_tool_prefix}cc; ac_word=$2 4179{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4181if test "${ac_cv_prog_CC+set}" = set; then 4182 echo $ECHO_N "(cached) $ECHO_C" >&6 4183else 4184 if test -n "$CC"; then 4185 ac_cv_prog_CC="$CC" # Let the user override the test. 4186else 4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4188for as_dir in $PATH 4189do 4190 IFS=$as_save_IFS 4191 test -z "$as_dir" && as_dir=. 4192 for ac_exec_ext in '' $ac_executable_extensions; do 4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4194 ac_cv_prog_CC="${ac_tool_prefix}cc" 4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4196 break 2 4197 fi 4198done 4199done 4200IFS=$as_save_IFS 4201 4202fi 4203fi 4204CC=$ac_cv_prog_CC 4205if test -n "$CC"; then 4206 { echo "$as_me:$LINENO: result: $CC" >&5 4207echo "${ECHO_T}$CC" >&6; } 4208else 4209 { echo "$as_me:$LINENO: result: no" >&5 4210echo "${ECHO_T}no" >&6; } 4211fi 4212 4213 4214 fi 4215fi 4216if test -z "$CC"; then 4217 # Extract the first word of "cc", so it can be a program name with args. 4218set dummy cc; ac_word=$2 4219{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4221if test "${ac_cv_prog_CC+set}" = set; then 4222 echo $ECHO_N "(cached) $ECHO_C" >&6 4223else 4224 if test -n "$CC"; then 4225 ac_cv_prog_CC="$CC" # Let the user override the test. 4226else 4227 ac_prog_rejected=no 4228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4229for as_dir in $PATH 4230do 4231 IFS=$as_save_IFS 4232 test -z "$as_dir" && as_dir=. 4233 for ac_exec_ext in '' $ac_executable_extensions; do 4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4235 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4236 ac_prog_rejected=yes 4237 continue 4238 fi 4239 ac_cv_prog_CC="cc" 4240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4241 break 2 4242 fi 4243done 4244done 4245IFS=$as_save_IFS 4246 4247if test $ac_prog_rejected = yes; then 4248 # We found a bogon in the path, so make sure we never use it. 4249 set dummy $ac_cv_prog_CC 4250 shift 4251 if test $# != 0; then 4252 # We chose a different compiler from the bogus one. 4253 # However, it has the same basename, so the bogon will be chosen 4254 # first if we set CC to just the basename; use the full file name. 4255 shift 4256 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4257 fi 4258fi 4259fi 4260fi 4261CC=$ac_cv_prog_CC 4262if test -n "$CC"; then 4263 { echo "$as_me:$LINENO: result: $CC" >&5 4264echo "${ECHO_T}$CC" >&6; } 4265else 4266 { echo "$as_me:$LINENO: result: no" >&5 4267echo "${ECHO_T}no" >&6; } 4268fi 4269 4270 4271fi 4272if test -z "$CC"; then 4273 if test -n "$ac_tool_prefix"; then 4274 for ac_prog in cl.exe 4275 do 4276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4277set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4278{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4280if test "${ac_cv_prog_CC+set}" = set; then 4281 echo $ECHO_N "(cached) $ECHO_C" >&6 4282else 4283 if test -n "$CC"; then 4284 ac_cv_prog_CC="$CC" # Let the user override the test. 4285else 4286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4287for as_dir in $PATH 4288do 4289 IFS=$as_save_IFS 4290 test -z "$as_dir" && as_dir=. 4291 for ac_exec_ext in '' $ac_executable_extensions; do 4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4293 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4295 break 2 4296 fi 4297done 4298done 4299IFS=$as_save_IFS 4300 4301fi 4302fi 4303CC=$ac_cv_prog_CC 4304if test -n "$CC"; then 4305 { echo "$as_me:$LINENO: result: $CC" >&5 4306echo "${ECHO_T}$CC" >&6; } 4307else 4308 { echo "$as_me:$LINENO: result: no" >&5 4309echo "${ECHO_T}no" >&6; } 4310fi 4311 4312 4313 test -n "$CC" && break 4314 done 4315fi 4316if test -z "$CC"; then 4317 ac_ct_CC=$CC 4318 for ac_prog in cl.exe 4319do 4320 # Extract the first word of "$ac_prog", so it can be a program name with args. 4321set dummy $ac_prog; ac_word=$2 4322{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4324if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4325 echo $ECHO_N "(cached) $ECHO_C" >&6 4326else 4327 if test -n "$ac_ct_CC"; then 4328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4329else 4330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4331for as_dir in $PATH 4332do 4333 IFS=$as_save_IFS 4334 test -z "$as_dir" && as_dir=. 4335 for ac_exec_ext in '' $ac_executable_extensions; do 4336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4337 ac_cv_prog_ac_ct_CC="$ac_prog" 4338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4339 break 2 4340 fi 4341done 4342done 4343IFS=$as_save_IFS 4344 4345fi 4346fi 4347ac_ct_CC=$ac_cv_prog_ac_ct_CC 4348if test -n "$ac_ct_CC"; then 4349 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4350echo "${ECHO_T}$ac_ct_CC" >&6; } 4351else 4352 { echo "$as_me:$LINENO: result: no" >&5 4353echo "${ECHO_T}no" >&6; } 4354fi 4355 4356 4357 test -n "$ac_ct_CC" && break 4358done 4359 4360 if test "x$ac_ct_CC" = x; then 4361 CC="" 4362 else 4363 case $cross_compiling:$ac_tool_warned in 4364yes:) 4365{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4366whose name does not start with the host triplet. If you think this 4367configuration is useful to you, please write to autoconf@gnu.org." >&5 4368echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4369whose name does not start with the host triplet. If you think this 4370configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4371ac_tool_warned=yes ;; 4372esac 4373 CC=$ac_ct_CC 4374 fi 4375fi 4376 4377fi 4378 4379 4380test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4381See \`config.log' for more details." >&5 4382echo "$as_me: error: no acceptable C compiler found in \$PATH 4383See \`config.log' for more details." >&2;} 4384 { (exit 1); exit 1; }; } 4385 4386# Provide some information about the compiler. 4387echo "$as_me:$LINENO: checking for C compiler version" >&5 4388ac_compiler=`set X $ac_compile; echo $2` 4389{ (ac_try="$ac_compiler --version >&5" 4390case "(($ac_try" in 4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4392 *) ac_try_echo=$ac_try;; 4393esac 4394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4395 (eval "$ac_compiler --version >&5") 2>&5 4396 ac_status=$? 4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4398 (exit $ac_status); } 4399{ (ac_try="$ac_compiler -v >&5" 4400case "(($ac_try" in 4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4402 *) ac_try_echo=$ac_try;; 4403esac 4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4405 (eval "$ac_compiler -v >&5") 2>&5 4406 ac_status=$? 4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4408 (exit $ac_status); } 4409{ (ac_try="$ac_compiler -V >&5" 4410case "(($ac_try" in 4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4412 *) ac_try_echo=$ac_try;; 4413esac 4414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4415 (eval "$ac_compiler -V >&5") 2>&5 4416 ac_status=$? 4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4418 (exit $ac_status); } 4419 4420{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4421echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 4422if test "${ac_cv_c_compiler_gnu+set}" = set; then 4423 echo $ECHO_N "(cached) $ECHO_C" >&6 4424else 4425 cat >conftest.$ac_ext <<_ACEOF 4426/* confdefs.h. */ 4427_ACEOF 4428cat confdefs.h >>conftest.$ac_ext 4429cat >>conftest.$ac_ext <<_ACEOF 4430/* end confdefs.h. */ 4431 4432int 4433main () 4434{ 4435#ifndef __GNUC__ 4436 choke me 4437#endif 4438 4439 ; 4440 return 0; 4441} 4442_ACEOF 4443rm -f conftest.$ac_objext 4444if { (ac_try="$ac_compile" 4445case "(($ac_try" in 4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4447 *) ac_try_echo=$ac_try;; 4448esac 4449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4450 (eval "$ac_compile") 2>conftest.er1 4451 ac_status=$? 4452 grep -v '^ *+' conftest.er1 >conftest.err 4453 rm -f conftest.er1 4454 cat conftest.err >&5 4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4456 (exit $ac_status); } && { 4457 test -z "$ac_c_werror_flag" || 4458 test ! -s conftest.err 4459 } && test -s conftest.$ac_objext; then 4460 ac_compiler_gnu=yes 4461else 4462 echo "$as_me: failed program was:" >&5 4463sed 's/^/| /' conftest.$ac_ext >&5 4464 4465 ac_compiler_gnu=no 4466fi 4467 4468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4469ac_cv_c_compiler_gnu=$ac_compiler_gnu 4470 4471fi 4472{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4473echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 4474GCC=`test $ac_compiler_gnu = yes && echo yes` 4475ac_test_CFLAGS=${CFLAGS+set} 4476ac_save_CFLAGS=$CFLAGS 4477{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4478echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 4479if test "${ac_cv_prog_cc_g+set}" = set; then 4480 echo $ECHO_N "(cached) $ECHO_C" >&6 4481else 4482 ac_save_c_werror_flag=$ac_c_werror_flag 4483 ac_c_werror_flag=yes 4484 ac_cv_prog_cc_g=no 4485 CFLAGS="-g" 4486 cat >conftest.$ac_ext <<_ACEOF 4487/* confdefs.h. */ 4488_ACEOF 4489cat confdefs.h >>conftest.$ac_ext 4490cat >>conftest.$ac_ext <<_ACEOF 4491/* end confdefs.h. */ 4492 4493int 4494main () 4495{ 4496 4497 ; 4498 return 0; 4499} 4500_ACEOF 4501rm -f conftest.$ac_objext 4502if { (ac_try="$ac_compile" 4503case "(($ac_try" in 4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4505 *) ac_try_echo=$ac_try;; 4506esac 4507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4508 (eval "$ac_compile") 2>conftest.er1 4509 ac_status=$? 4510 grep -v '^ *+' conftest.er1 >conftest.err 4511 rm -f conftest.er1 4512 cat conftest.err >&5 4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4514 (exit $ac_status); } && { 4515 test -z "$ac_c_werror_flag" || 4516 test ! -s conftest.err 4517 } && test -s conftest.$ac_objext; then 4518 ac_cv_prog_cc_g=yes 4519else 4520 echo "$as_me: failed program was:" >&5 4521sed 's/^/| /' conftest.$ac_ext >&5 4522 4523 CFLAGS="" 4524 cat >conftest.$ac_ext <<_ACEOF 4525/* confdefs.h. */ 4526_ACEOF 4527cat confdefs.h >>conftest.$ac_ext 4528cat >>conftest.$ac_ext <<_ACEOF 4529/* end confdefs.h. */ 4530 4531int 4532main () 4533{ 4534 4535 ; 4536 return 0; 4537} 4538_ACEOF 4539rm -f conftest.$ac_objext 4540if { (ac_try="$ac_compile" 4541case "(($ac_try" in 4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4543 *) ac_try_echo=$ac_try;; 4544esac 4545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4546 (eval "$ac_compile") 2>conftest.er1 4547 ac_status=$? 4548 grep -v '^ *+' conftest.er1 >conftest.err 4549 rm -f conftest.er1 4550 cat conftest.err >&5 4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4552 (exit $ac_status); } && { 4553 test -z "$ac_c_werror_flag" || 4554 test ! -s conftest.err 4555 } && test -s conftest.$ac_objext; then 4556 : 4557else 4558 echo "$as_me: failed program was:" >&5 4559sed 's/^/| /' conftest.$ac_ext >&5 4560 4561 ac_c_werror_flag=$ac_save_c_werror_flag 4562 CFLAGS="-g" 4563 cat >conftest.$ac_ext <<_ACEOF 4564/* confdefs.h. */ 4565_ACEOF 4566cat confdefs.h >>conftest.$ac_ext 4567cat >>conftest.$ac_ext <<_ACEOF 4568/* end confdefs.h. */ 4569 4570int 4571main () 4572{ 4573 4574 ; 4575 return 0; 4576} 4577_ACEOF 4578rm -f conftest.$ac_objext 4579if { (ac_try="$ac_compile" 4580case "(($ac_try" in 4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4582 *) ac_try_echo=$ac_try;; 4583esac 4584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4585 (eval "$ac_compile") 2>conftest.er1 4586 ac_status=$? 4587 grep -v '^ *+' conftest.er1 >conftest.err 4588 rm -f conftest.er1 4589 cat conftest.err >&5 4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4591 (exit $ac_status); } && { 4592 test -z "$ac_c_werror_flag" || 4593 test ! -s conftest.err 4594 } && test -s conftest.$ac_objext; then 4595 ac_cv_prog_cc_g=yes 4596else 4597 echo "$as_me: failed program was:" >&5 4598sed 's/^/| /' conftest.$ac_ext >&5 4599 4600 4601fi 4602 4603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4604fi 4605 4606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4607fi 4608 4609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4610 ac_c_werror_flag=$ac_save_c_werror_flag 4611fi 4612{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4613echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 4614if test "$ac_test_CFLAGS" = set; then 4615 CFLAGS=$ac_save_CFLAGS 4616elif test $ac_cv_prog_cc_g = yes; then 4617 if test "$GCC" = yes; then 4618 CFLAGS="-g -O2" 4619 else 4620 CFLAGS="-g" 4621 fi 4622else 4623 if test "$GCC" = yes; then 4624 CFLAGS="-O2" 4625 else 4626 CFLAGS= 4627 fi 4628fi 4629{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4630echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 4631if test "${ac_cv_prog_cc_c89+set}" = set; then 4632 echo $ECHO_N "(cached) $ECHO_C" >&6 4633else 4634 ac_cv_prog_cc_c89=no 4635ac_save_CC=$CC 4636cat >conftest.$ac_ext <<_ACEOF 4637/* confdefs.h. */ 4638_ACEOF 4639cat confdefs.h >>conftest.$ac_ext 4640cat >>conftest.$ac_ext <<_ACEOF 4641/* end confdefs.h. */ 4642#include <stdarg.h> 4643#include <stdio.h> 4644#include <sys/types.h> 4645#include <sys/stat.h> 4646/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4647struct buf { int x; }; 4648FILE * (*rcsopen) (struct buf *, struct stat *, int); 4649static char *e (p, i) 4650 char **p; 4651 int i; 4652{ 4653 return p[i]; 4654} 4655static char *f (char * (*g) (char **, int), char **p, ...) 4656{ 4657 char *s; 4658 va_list v; 4659 va_start (v,p); 4660 s = g (p, va_arg (v,int)); 4661 va_end (v); 4662 return s; 4663} 4664 4665/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4666 function prototypes and stuff, but not '\xHH' hex character constants. 4667 These don't provoke an error unfortunately, instead are silently treated 4668 as 'x'. The following induces an error, until -std is added to get 4669 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4670 array size at least. It's necessary to write '\x00'==0 to get something 4671 that's true only with -std. */ 4672int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4673 4674/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4675 inside strings and character constants. */ 4676#define FOO(x) 'x' 4677int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4678 4679int test (int i, double x); 4680struct s1 {int (*f) (int a);}; 4681struct s2 {int (*f) (double a);}; 4682int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4683int argc; 4684char **argv; 4685int 4686main () 4687{ 4688return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4689 ; 4690 return 0; 4691} 4692_ACEOF 4693for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4694 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4695do 4696 CC="$ac_save_CC $ac_arg" 4697 rm -f conftest.$ac_objext 4698if { (ac_try="$ac_compile" 4699case "(($ac_try" in 4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4701 *) ac_try_echo=$ac_try;; 4702esac 4703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4704 (eval "$ac_compile") 2>conftest.er1 4705 ac_status=$? 4706 grep -v '^ *+' conftest.er1 >conftest.err 4707 rm -f conftest.er1 4708 cat conftest.err >&5 4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4710 (exit $ac_status); } && { 4711 test -z "$ac_c_werror_flag" || 4712 test ! -s conftest.err 4713 } && test -s conftest.$ac_objext; then 4714 ac_cv_prog_cc_c89=$ac_arg 4715else 4716 echo "$as_me: failed program was:" >&5 4717sed 's/^/| /' conftest.$ac_ext >&5 4718 4719 4720fi 4721 4722rm -f core conftest.err conftest.$ac_objext 4723 test "x$ac_cv_prog_cc_c89" != "xno" && break 4724done 4725rm -f conftest.$ac_ext 4726CC=$ac_save_CC 4727 4728fi 4729# AC_CACHE_VAL 4730case "x$ac_cv_prog_cc_c89" in 4731 x) 4732 { echo "$as_me:$LINENO: result: none needed" >&5 4733echo "${ECHO_T}none needed" >&6; } ;; 4734 xno) 4735 { echo "$as_me:$LINENO: result: unsupported" >&5 4736echo "${ECHO_T}unsupported" >&6; } ;; 4737 *) 4738 CC="$CC $ac_cv_prog_cc_c89" 4739 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4740echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 4741esac 4742 4743 4744ac_ext=cpp 4745ac_cpp='$CXXCPP $CPPFLAGS' 4746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4749 4750depcc="$CC" am_compiler_list= 4751 4752{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4753echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4754if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4755 echo $ECHO_N "(cached) $ECHO_C" >&6 4756else 4757 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4758 # We make a subdir and do the tests there. Otherwise we can end up 4759 # making bogus files that we don't know about and never remove. For 4760 # instance it was reported that on HP-UX the gcc test will end up 4761 # making a dummy file named `D' -- because `-MD' means `put the output 4762 # in D'. 4763 mkdir conftest.dir 4764 # Copy depcomp to subdir because otherwise we won't find it if we're 4765 # using a relative directory. 4766 cp "$am_depcomp" conftest.dir 4767 cd conftest.dir 4768 # We will build objects and dependencies in a subdirectory because 4769 # it helps to detect inapplicable dependency modes. For instance 4770 # both Tru64's cc and ICC support -MD to output dependencies as a 4771 # side effect of compilation, but ICC will put the dependencies in 4772 # the current directory while Tru64 will put them in the object 4773 # directory. 4774 mkdir sub 4775 4776 am_cv_CC_dependencies_compiler_type=none 4777 if test "$am_compiler_list" = ""; then 4778 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4779 fi 4780 for depmode in $am_compiler_list; do 4781 # Setup a source with many dependencies, because some compilers 4782 # like to wrap large dependency lists on column 80 (with \), and 4783 # we should not choose a depcomp mode which is confused by this. 4784 # 4785 # We need to recreate these files for each test, as the compiler may 4786 # overwrite some of them when testing with obscure command lines. 4787 # This happens at least with the AIX C compiler. 4788 : > sub/conftest.c 4789 for i in 1 2 3 4 5 6; do 4790 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4791 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4792 # Solaris 8's {/usr,}/bin/sh. 4793 touch sub/conftst$i.h 4794 done 4795 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4796 4797 case $depmode in 4798 nosideeffect) 4799 # after this tag, mechanisms are not by side-effect, so they'll 4800 # only be used when explicitly requested 4801 if test "x$enable_dependency_tracking" = xyes; then 4802 continue 4803 else 4804 break 4805 fi 4806 ;; 4807 none) break ;; 4808 esac 4809 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4810 # mode. It turns out that the SunPro C++ compiler does not properly 4811 # handle `-M -o', and we need to detect this. 4812 if depmode=$depmode \ 4813 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4814 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4815 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4816 >/dev/null 2>conftest.err && 4817 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4818 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4819 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4820 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4821 # icc doesn't choke on unknown options, it will just issue warnings 4822 # or remarks (even with -Werror). So we grep stderr for any message 4823 # that says an option was ignored or not supported. 4824 # When given -MP, icc 7.0 and 7.1 complain thusly: 4825 # icc: Command line warning: ignoring option '-M'; no argument required 4826 # The diagnosis changed in icc 8.0: 4827 # icc: Command line remark: option '-MP' not supported 4828 if (grep 'ignoring option' conftest.err || 4829 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4830 am_cv_CC_dependencies_compiler_type=$depmode 4831 break 4832 fi 4833 fi 4834 done 4835 4836 cd .. 4837 rm -rf conftest.dir 4838else 4839 am_cv_CC_dependencies_compiler_type=none 4840fi 4841 4842fi 4843{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4844echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4845CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4846 4847 if 4848 test "x$enable_dependency_tracking" != xno \ 4849 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4850 am__fastdepCC_TRUE= 4851 am__fastdepCC_FALSE='#' 4852else 4853 am__fastdepCC_TRUE='#' 4854 am__fastdepCC_FALSE= 4855fi 4856 4857 4858{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4859echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 4860if test "${lt_cv_path_SED+set}" = set; then 4861 echo $ECHO_N "(cached) $ECHO_C" >&6 4862else 4863 # Loop through the user's path and test for sed and gsed. 4864# Then use that list of sed's as ones to test for truncation. 4865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4866for as_dir in $PATH 4867do 4868 IFS=$as_save_IFS 4869 test -z "$as_dir" && as_dir=. 4870 for lt_ac_prog in sed gsed; do 4871 for ac_exec_ext in '' $ac_executable_extensions; do 4872 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4873 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4874 fi 4875 done 4876 done 4877done 4878lt_ac_max=0 4879lt_ac_count=0 4880# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4881# along with /bin/sed that truncates output. 4882for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4883 test ! -f $lt_ac_sed && continue 4884 cat /dev/null > conftest.in 4885 lt_ac_count=0 4886 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4887 # Check for GNU sed and select it if it is found. 4888 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4889 lt_cv_path_SED=$lt_ac_sed 4890 break 4891 fi 4892 while true; do 4893 cat conftest.in conftest.in >conftest.tmp 4894 mv conftest.tmp conftest.in 4895 cp conftest.in conftest.nl 4896 echo >>conftest.nl 4897 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4898 cmp -s conftest.out conftest.nl || break 4899 # 10000 chars as input seems more than enough 4900 test $lt_ac_count -gt 10 && break 4901 lt_ac_count=`expr $lt_ac_count + 1` 4902 if test $lt_ac_count -gt $lt_ac_max; then 4903 lt_ac_max=$lt_ac_count 4904 lt_cv_path_SED=$lt_ac_sed 4905 fi 4906 done 4907done 4908 4909fi 4910 4911SED=$lt_cv_path_SED 4912{ echo "$as_me:$LINENO: result: $SED" >&5 4913echo "${ECHO_T}$SED" >&6; } 4914 4915{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4916echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4917if test "${ac_cv_path_GREP+set}" = set; then 4918 echo $ECHO_N "(cached) $ECHO_C" >&6 4919else 4920 # Extract the first word of "grep ggrep" to use in msg output 4921if test -z "$GREP"; then 4922set dummy grep ggrep; ac_prog_name=$2 4923if test "${ac_cv_path_GREP+set}" = set; then 4924 echo $ECHO_N "(cached) $ECHO_C" >&6 4925else 4926 ac_path_GREP_found=false 4927# Loop through the user's path and test for each of PROGNAME-LIST 4928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4929for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4930do 4931 IFS=$as_save_IFS 4932 test -z "$as_dir" && as_dir=. 4933 for ac_prog in grep ggrep; do 4934 for ac_exec_ext in '' $ac_executable_extensions; do 4935 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4936 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4937 # Check for GNU ac_path_GREP and select it if it is found. 4938 # Check for GNU $ac_path_GREP 4939case `"$ac_path_GREP" --version 2>&1` in 4940*GNU*) 4941 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4942*) 4943 ac_count=0 4944 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4945 while : 4946 do 4947 cat "conftest.in" "conftest.in" >"conftest.tmp" 4948 mv "conftest.tmp" "conftest.in" 4949 cp "conftest.in" "conftest.nl" 4950 echo 'GREP' >> "conftest.nl" 4951 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4953 ac_count=`expr $ac_count + 1` 4954 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4955 # Best one so far, save it but keep looking for a better one 4956 ac_cv_path_GREP="$ac_path_GREP" 4957 ac_path_GREP_max=$ac_count 4958 fi 4959 # 10*(2^10) chars as input seems more than enough 4960 test $ac_count -gt 10 && break 4961 done 4962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4963esac 4964 4965 4966 $ac_path_GREP_found && break 3 4967 done 4968done 4969 4970done 4971IFS=$as_save_IFS 4972 4973 4974fi 4975 4976GREP="$ac_cv_path_GREP" 4977if test -z "$GREP"; then 4978 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4979echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4980 { (exit 1); exit 1; }; } 4981fi 4982 4983else 4984 ac_cv_path_GREP=$GREP 4985fi 4986 4987 4988fi 4989{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4990echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4991 GREP="$ac_cv_path_GREP" 4992 4993 4994{ echo "$as_me:$LINENO: checking for egrep" >&5 4995echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4996if test "${ac_cv_path_EGREP+set}" = set; then 4997 echo $ECHO_N "(cached) $ECHO_C" >&6 4998else 4999 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5000 then ac_cv_path_EGREP="$GREP -E" 5001 else 5002 # Extract the first word of "egrep" to use in msg output 5003if test -z "$EGREP"; then 5004set dummy egrep; ac_prog_name=$2 5005if test "${ac_cv_path_EGREP+set}" = set; then 5006 echo $ECHO_N "(cached) $ECHO_C" >&6 5007else 5008 ac_path_EGREP_found=false 5009# Loop through the user's path and test for each of PROGNAME-LIST 5010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5011for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5012do 5013 IFS=$as_save_IFS 5014 test -z "$as_dir" && as_dir=. 5015 for ac_prog in egrep; do 5016 for ac_exec_ext in '' $ac_executable_extensions; do 5017 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5018 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5019 # Check for GNU ac_path_EGREP and select it if it is found. 5020 # Check for GNU $ac_path_EGREP 5021case `"$ac_path_EGREP" --version 2>&1` in 5022*GNU*) 5023 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5024*) 5025 ac_count=0 5026 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5027 while : 5028 do 5029 cat "conftest.in" "conftest.in" >"conftest.tmp" 5030 mv "conftest.tmp" "conftest.in" 5031 cp "conftest.in" "conftest.nl" 5032 echo 'EGREP' >> "conftest.nl" 5033 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5035 ac_count=`expr $ac_count + 1` 5036 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5037 # Best one so far, save it but keep looking for a better one 5038 ac_cv_path_EGREP="$ac_path_EGREP" 5039 ac_path_EGREP_max=$ac_count 5040 fi 5041 # 10*(2^10) chars as input seems more than enough 5042 test $ac_count -gt 10 && break 5043 done 5044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5045esac 5046 5047 5048 $ac_path_EGREP_found && break 3 5049 done 5050done 5051 5052done 5053IFS=$as_save_IFS 5054 5055 5056fi 5057 5058EGREP="$ac_cv_path_EGREP" 5059if test -z "$EGREP"; then 5060 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5061echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5062 { (exit 1); exit 1; }; } 5063fi 5064 5065else 5066 ac_cv_path_EGREP=$EGREP 5067fi 5068 5069 5070 fi 5071fi 5072{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 5073echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 5074 EGREP="$ac_cv_path_EGREP" 5075 5076 5077 5078# Check whether --with-gnu-ld was given. 5079if test "${with_gnu_ld+set}" = set; then 5080 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5081else 5082 with_gnu_ld=no 5083fi 5084 5085ac_prog=ld 5086if test "$GCC" = yes; then 5087 # Check if gcc -print-prog-name=ld gives a path. 5088 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5089echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 5090 case $host in 5091 *-*-mingw*) 5092 # gcc leaves a trailing carriage return which upsets mingw 5093 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5094 *) 5095 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5096 esac 5097 case $ac_prog in 5098 # Accept absolute paths. 5099 [\\/]* | ?:[\\/]*) 5100 re_direlt='/[^/][^/]*/\.\./' 5101 # Canonicalize the pathname of ld 5102 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5103 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5104 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5105 done 5106 test -z "$LD" && LD="$ac_prog" 5107 ;; 5108 "") 5109 # If it fails, then pretend we aren't using GCC. 5110 ac_prog=ld 5111 ;; 5112 *) 5113 # If it is relative, then search for the first ld in PATH. 5114 with_gnu_ld=unknown 5115 ;; 5116 esac 5117elif test "$with_gnu_ld" = yes; then 5118 { echo "$as_me:$LINENO: checking for GNU ld" >&5 5119echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 5120else 5121 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5122echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 5123fi 5124if test "${lt_cv_path_LD+set}" = set; then 5125 echo $ECHO_N "(cached) $ECHO_C" >&6 5126else 5127 if test -z "$LD"; then 5128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5129 for ac_dir in $PATH; do 5130 IFS="$lt_save_ifs" 5131 test -z "$ac_dir" && ac_dir=. 5132 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5133 lt_cv_path_LD="$ac_dir/$ac_prog" 5134 # Check to see if the program is GNU ld. I'd rather use --version, 5135 # but apparently some variants of GNU ld only accept -v. 5136 # Break only if it was the GNU/non-GNU ld that we prefer. 5137 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5138 *GNU* | *'with BFD'*) 5139 test "$with_gnu_ld" != no && break 5140 ;; 5141 *) 5142 test "$with_gnu_ld" != yes && break 5143 ;; 5144 esac 5145 fi 5146 done 5147 IFS="$lt_save_ifs" 5148else 5149 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5150fi 5151fi 5152 5153LD="$lt_cv_path_LD" 5154if test -n "$LD"; then 5155 { echo "$as_me:$LINENO: result: $LD" >&5 5156echo "${ECHO_T}$LD" >&6; } 5157else 5158 { echo "$as_me:$LINENO: result: no" >&5 5159echo "${ECHO_T}no" >&6; } 5160fi 5161test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5162echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5163 { (exit 1); exit 1; }; } 5164{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5165echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 5166if test "${lt_cv_prog_gnu_ld+set}" = set; then 5167 echo $ECHO_N "(cached) $ECHO_C" >&6 5168else 5169 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5170case `$LD -v 2>&1 </dev/null` in 5171*GNU* | *'with BFD'*) 5172 lt_cv_prog_gnu_ld=yes 5173 ;; 5174*) 5175 lt_cv_prog_gnu_ld=no 5176 ;; 5177esac 5178fi 5179{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5180echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 5181with_gnu_ld=$lt_cv_prog_gnu_ld 5182 5183 5184{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5185echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 5186if test "${lt_cv_ld_reload_flag+set}" = set; then 5187 echo $ECHO_N "(cached) $ECHO_C" >&6 5188else 5189 lt_cv_ld_reload_flag='-r' 5190fi 5191{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5192echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 5193reload_flag=$lt_cv_ld_reload_flag 5194case $reload_flag in 5195"" | " "*) ;; 5196*) reload_flag=" $reload_flag" ;; 5197esac 5198reload_cmds='$LD$reload_flag -o $output$reload_objs' 5199case $host_os in 5200 darwin*) 5201 if test "$GCC" = yes; then 5202 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5203 else 5204 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5205 fi 5206 ;; 5207esac 5208 5209{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5210echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5211if test "${lt_cv_path_NM+set}" = set; then 5212 echo $ECHO_N "(cached) $ECHO_C" >&6 5213else 5214 if test -n "$NM"; then 5215 # Let the user override the test. 5216 lt_cv_path_NM="$NM" 5217else 5218 lt_nm_to_check="${ac_tool_prefix}nm" 5219 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5220 lt_nm_to_check="$lt_nm_to_check nm" 5221 fi 5222 for lt_tmp_nm in $lt_nm_to_check; do 5223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5224 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5225 IFS="$lt_save_ifs" 5226 test -z "$ac_dir" && ac_dir=. 5227 tmp_nm="$ac_dir/$lt_tmp_nm" 5228 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5229 # Check to see if the nm accepts a BSD-compat flag. 5230 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5231 # nm: unknown option "B" ignored 5232 # Tru64's nm complains that /dev/null is an invalid object file 5233 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5234 */dev/null* | *'Invalid file or object type'*) 5235 lt_cv_path_NM="$tmp_nm -B" 5236 break 5237 ;; 5238 *) 5239 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5240 */dev/null*) 5241 lt_cv_path_NM="$tmp_nm -p" 5242 break 5243 ;; 5244 *) 5245 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5246 continue # so that we can try to find one that supports BSD flags 5247 ;; 5248 esac 5249 ;; 5250 esac 5251 fi 5252 done 5253 IFS="$lt_save_ifs" 5254 done 5255 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5256fi 5257fi 5258{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5259echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5260NM="$lt_cv_path_NM" 5261 5262{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 5263echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 5264if test "${lt_cv_deplibs_check_method+set}" = set; then 5265 echo $ECHO_N "(cached) $ECHO_C" >&6 5266else 5267 lt_cv_file_magic_cmd='$MAGIC_CMD' 5268lt_cv_file_magic_test_file= 5269lt_cv_deplibs_check_method='unknown' 5270# Need to set the preceding variable on all platforms that support 5271# interlibrary dependencies. 5272# 'none' -- dependencies not supported. 5273# `unknown' -- same as none, but documents that we really don't know. 5274# 'pass_all' -- all dependencies passed with no checks. 5275# 'test_compile' -- check by making test program. 5276# 'file_magic [[regex]]' -- check by looking for files in library path 5277# which responds to the $file_magic_cmd with a given extended regex. 5278# If you have `file' or equivalent on your system and you're not sure 5279# whether `pass_all' will *always* work, you probably want this one. 5280 5281case $host_os in 5282aix4* | aix5*) 5283 lt_cv_deplibs_check_method=pass_all 5284 ;; 5285 5286beos*) 5287 lt_cv_deplibs_check_method=pass_all 5288 ;; 5289 5290bsdi[45]*) 5291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5292 lt_cv_file_magic_cmd='/usr/bin/file -L' 5293 lt_cv_file_magic_test_file=/shlib/libc.so 5294 ;; 5295 5296cygwin*) 5297 # func_win32_libid is a shell function defined in ltmain.sh 5298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5299 lt_cv_file_magic_cmd='func_win32_libid' 5300 ;; 5301 5302mingw* | pw32*) 5303 # Base MSYS/MinGW do not provide the 'file' command needed by 5304 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 5305 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5306 lt_cv_file_magic_cmd='$OBJDUMP -f' 5307 ;; 5308 5309darwin* | rhapsody*) 5310 lt_cv_deplibs_check_method=pass_all 5311 ;; 5312 5313freebsd* | dragonfly*) 5314 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5315 case $host_cpu in 5316 i*86 ) 5317 # Not sure whether the presence of OpenBSD here was a mistake. 5318 # Let's accept both of them until this is cleared up. 5319 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5320 lt_cv_file_magic_cmd=/usr/bin/file 5321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5322 ;; 5323 esac 5324 else 5325 lt_cv_deplibs_check_method=pass_all 5326 fi 5327 ;; 5328 5329gnu*) 5330 lt_cv_deplibs_check_method=pass_all 5331 ;; 5332 5333hpux10.20* | hpux11*) 5334 lt_cv_file_magic_cmd=/usr/bin/file 5335 case $host_cpu in 5336 ia64*) 5337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5338 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5339 ;; 5340 hppa*64*) 5341 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]' 5342 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5343 ;; 5344 *) 5345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5346 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5347 ;; 5348 esac 5349 ;; 5350 5351interix3*) 5352 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5354 ;; 5355 5356irix5* | irix6* | nonstopux*) 5357 case $LD in 5358 *-32|*"-32 ") libmagic=32-bit;; 5359 *-n32|*"-n32 ") libmagic=N32;; 5360 *-64|*"-64 ") libmagic=64-bit;; 5361 *) libmagic=never-match;; 5362 esac 5363 lt_cv_deplibs_check_method=pass_all 5364 ;; 5365 5366# This must be Linux ELF. 5367linux* | k*bsd*-gnu) 5368 lt_cv_deplibs_check_method=pass_all 5369 ;; 5370 5371netbsd* | netbsdelf*-gnu) 5372 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5374 else 5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5376 fi 5377 ;; 5378 5379newos6*) 5380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5381 lt_cv_file_magic_cmd=/usr/bin/file 5382 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5383 ;; 5384 5385nto-qnx*) 5386 lt_cv_deplibs_check_method=unknown 5387 ;; 5388 5389openbsd*) 5390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5392 else 5393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5394 fi 5395 ;; 5396 5397osf3* | osf4* | osf5*) 5398 lt_cv_deplibs_check_method=pass_all 5399 ;; 5400 5401solaris*) 5402 lt_cv_deplibs_check_method=pass_all 5403 ;; 5404 5405sysv4 | sysv4.3*) 5406 case $host_vendor in 5407 motorola) 5408 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]' 5409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5410 ;; 5411 ncr) 5412 lt_cv_deplibs_check_method=pass_all 5413 ;; 5414 sequent) 5415 lt_cv_file_magic_cmd='/bin/file' 5416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5417 ;; 5418 sni) 5419 lt_cv_file_magic_cmd='/bin/file' 5420 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5421 lt_cv_file_magic_test_file=/lib/libc.so 5422 ;; 5423 siemens) 5424 lt_cv_deplibs_check_method=pass_all 5425 ;; 5426 pc) 5427 lt_cv_deplibs_check_method=pass_all 5428 ;; 5429 esac 5430 ;; 5431 5432sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5433 lt_cv_deplibs_check_method=pass_all 5434 ;; 5435esac 5436 5437fi 5438{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5439echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 5440file_magic_cmd=$lt_cv_file_magic_cmd 5441deplibs_check_method=$lt_cv_deplibs_check_method 5442test -z "$deplibs_check_method" && deplibs_check_method=unknown 5443 5444 5445 5446 5447# If no C compiler was specified, use CC. 5448LTCC=${LTCC-"$CC"} 5449 5450# If no C compiler flags were specified, use CFLAGS. 5451LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5452 5453# Allow CC to be a program name with arguments. 5454compiler=$CC 5455 5456 5457# Check whether --enable-libtool-lock was given. 5458if test "${enable_libtool_lock+set}" = set; then 5459 enableval=$enable_libtool_lock; 5460fi 5461 5462test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5463 5464# Some flags need to be propagated to the compiler or linker for good 5465# libtool support. 5466case $host in 5467ia64-*-hpux*) 5468 # Find out which ABI we are using. 5469 echo 'int i;' > conftest.$ac_ext 5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5471 (eval $ac_compile) 2>&5 5472 ac_status=$? 5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5474 (exit $ac_status); }; then 5475 case `/usr/bin/file conftest.$ac_objext` in 5476 *ELF-32*) 5477 HPUX_IA64_MODE="32" 5478 ;; 5479 *ELF-64*) 5480 HPUX_IA64_MODE="64" 5481 ;; 5482 esac 5483 fi 5484 rm -rf conftest* 5485 ;; 5486*-*-irix6*) 5487 # Find out which ABI we are using. 5488 echo '#line 5488 "configure"' > conftest.$ac_ext 5489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5490 (eval $ac_compile) 2>&5 5491 ac_status=$? 5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5493 (exit $ac_status); }; then 5494 if test "$lt_cv_prog_gnu_ld" = yes; then 5495 case `/usr/bin/file conftest.$ac_objext` in 5496 *32-bit*) 5497 LD="${LD-ld} -melf32bsmip" 5498 ;; 5499 *N32*) 5500 LD="${LD-ld} -melf32bmipn32" 5501 ;; 5502 *64-bit*) 5503 LD="${LD-ld} -melf64bmip" 5504 ;; 5505 esac 5506 else 5507 case `/usr/bin/file conftest.$ac_objext` in 5508 *32-bit*) 5509 LD="${LD-ld} -32" 5510 ;; 5511 *N32*) 5512 LD="${LD-ld} -n32" 5513 ;; 5514 *64-bit*) 5515 LD="${LD-ld} -64" 5516 ;; 5517 esac 5518 fi 5519 fi 5520 rm -rf conftest* 5521 ;; 5522 5523x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5524 # Find out which ABI we are using. 5525 echo 'int i;' > conftest.$ac_ext 5526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5527 (eval $ac_compile) 2>&5 5528 ac_status=$? 5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5530 (exit $ac_status); }; then 5531 case `/usr/bin/file conftest.o` in 5532 *32-bit*) 5533 case $host in 5534 x86_64-*linux*) 5535 LD="${LD-ld} -m elf_i386" 5536 ;; 5537 ppc64-*linux*|powerpc64-*linux*) 5538 LD="${LD-ld} -m elf32ppclinux" 5539 ;; 5540 s390x-*linux*) 5541 LD="${LD-ld} -m elf_s390" 5542 ;; 5543 sparc64-*linux*) 5544 LD="${LD-ld} -m elf32_sparc" 5545 ;; 5546 esac 5547 ;; 5548 *64-bit*) 5549 case $host in 5550 x86_64-*linux*) 5551 LD="${LD-ld} -m elf_x86_64" 5552 ;; 5553 ppc*-*linux*|powerpc*-*linux*) 5554 LD="${LD-ld} -m elf64ppc" 5555 ;; 5556 s390*-*linux*) 5557 LD="${LD-ld} -m elf64_s390" 5558 ;; 5559 sparc*-*linux*) 5560 LD="${LD-ld} -m elf64_sparc" 5561 ;; 5562 esac 5563 ;; 5564 esac 5565 fi 5566 rm -rf conftest* 5567 ;; 5568 5569*-*-sco3.2v5*) 5570 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5571 SAVE_CFLAGS="$CFLAGS" 5572 CFLAGS="$CFLAGS -belf" 5573 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5574echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 5575if test "${lt_cv_cc_needs_belf+set}" = set; then 5576 echo $ECHO_N "(cached) $ECHO_C" >&6 5577else 5578 ac_ext=c 5579ac_cpp='$CPP $CPPFLAGS' 5580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5582ac_compiler_gnu=$ac_cv_c_compiler_gnu 5583 5584 cat >conftest.$ac_ext <<_ACEOF 5585/* confdefs.h. */ 5586_ACEOF 5587cat confdefs.h >>conftest.$ac_ext 5588cat >>conftest.$ac_ext <<_ACEOF 5589/* end confdefs.h. */ 5590 5591int 5592main () 5593{ 5594 5595 ; 5596 return 0; 5597} 5598_ACEOF 5599rm -f conftest.$ac_objext conftest$ac_exeext 5600if { (ac_try="$ac_link" 5601case "(($ac_try" in 5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5603 *) ac_try_echo=$ac_try;; 5604esac 5605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5606 (eval "$ac_link") 2>conftest.er1 5607 ac_status=$? 5608 grep -v '^ *+' conftest.er1 >conftest.err 5609 rm -f conftest.er1 5610 cat conftest.err >&5 5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5612 (exit $ac_status); } && { 5613 test -z "$ac_c_werror_flag" || 5614 test ! -s conftest.err 5615 } && test -s conftest$ac_exeext && 5616 $as_test_x conftest$ac_exeext; then 5617 lt_cv_cc_needs_belf=yes 5618else 5619 echo "$as_me: failed program was:" >&5 5620sed 's/^/| /' conftest.$ac_ext >&5 5621 5622 lt_cv_cc_needs_belf=no 5623fi 5624 5625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5626 conftest$ac_exeext conftest.$ac_ext 5627 ac_ext=c 5628ac_cpp='$CPP $CPPFLAGS' 5629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5631ac_compiler_gnu=$ac_cv_c_compiler_gnu 5632 5633fi 5634{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5635echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 5636 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5637 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5638 CFLAGS="$SAVE_CFLAGS" 5639 fi 5640 ;; 5641sparc*-*solaris*) 5642 # Find out which ABI we are using. 5643 echo 'int i;' > conftest.$ac_ext 5644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5645 (eval $ac_compile) 2>&5 5646 ac_status=$? 5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5648 (exit $ac_status); }; then 5649 case `/usr/bin/file conftest.o` in 5650 *64-bit*) 5651 case $lt_cv_prog_gnu_ld in 5652 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5653 *) LD="${LD-ld} -64" ;; 5654 esac 5655 ;; 5656 esac 5657 fi 5658 rm -rf conftest* 5659 ;; 5660 5661 5662esac 5663 5664need_locks="$enable_libtool_lock" 5665 5666 5667ac_ext=c 5668ac_cpp='$CPP $CPPFLAGS' 5669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5671ac_compiler_gnu=$ac_cv_c_compiler_gnu 5672{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5673echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5674# On Suns, sometimes $CPP names a directory. 5675if test -n "$CPP" && test -d "$CPP"; then 5676 CPP= 5677fi 5678if test -z "$CPP"; then 5679 if test "${ac_cv_prog_CPP+set}" = set; then 5680 echo $ECHO_N "(cached) $ECHO_C" >&6 5681else 5682 # Double quotes because CPP needs to be expanded 5683 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5684 do 5685 ac_preproc_ok=false 5686for ac_c_preproc_warn_flag in '' yes 5687do 5688 # Use a header file that comes with gcc, so configuring glibc 5689 # with a fresh cross-compiler works. 5690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5691 # <limits.h> exists even on freestanding compilers. 5692 # On the NeXT, cc -E runs the code through the compiler's parser, 5693 # not just through cpp. "Syntax error" is here to catch this case. 5694 cat >conftest.$ac_ext <<_ACEOF 5695/* confdefs.h. */ 5696_ACEOF 5697cat confdefs.h >>conftest.$ac_ext 5698cat >>conftest.$ac_ext <<_ACEOF 5699/* end confdefs.h. */ 5700#ifdef __STDC__ 5701# include <limits.h> 5702#else 5703# include <assert.h> 5704#endif 5705 Syntax error 5706_ACEOF 5707if { (ac_try="$ac_cpp conftest.$ac_ext" 5708case "(($ac_try" in 5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5710 *) ac_try_echo=$ac_try;; 5711esac 5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5714 ac_status=$? 5715 grep -v '^ *+' conftest.er1 >conftest.err 5716 rm -f conftest.er1 5717 cat conftest.err >&5 5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5719 (exit $ac_status); } >/dev/null && { 5720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5721 test ! -s conftest.err 5722 }; then 5723 : 5724else 5725 echo "$as_me: failed program was:" >&5 5726sed 's/^/| /' conftest.$ac_ext >&5 5727 5728 # Broken: fails on valid input. 5729continue 5730fi 5731 5732rm -f conftest.err conftest.$ac_ext 5733 5734 # OK, works on sane cases. Now check whether nonexistent headers 5735 # can be detected and how. 5736 cat >conftest.$ac_ext <<_ACEOF 5737/* confdefs.h. */ 5738_ACEOF 5739cat confdefs.h >>conftest.$ac_ext 5740cat >>conftest.$ac_ext <<_ACEOF 5741/* end confdefs.h. */ 5742#include <ac_nonexistent.h> 5743_ACEOF 5744if { (ac_try="$ac_cpp conftest.$ac_ext" 5745case "(($ac_try" in 5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5747 *) ac_try_echo=$ac_try;; 5748esac 5749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5751 ac_status=$? 5752 grep -v '^ *+' conftest.er1 >conftest.err 5753 rm -f conftest.er1 5754 cat conftest.err >&5 5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5756 (exit $ac_status); } >/dev/null && { 5757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5758 test ! -s conftest.err 5759 }; then 5760 # Broken: success on invalid input. 5761continue 5762else 5763 echo "$as_me: failed program was:" >&5 5764sed 's/^/| /' conftest.$ac_ext >&5 5765 5766 # Passes both tests. 5767ac_preproc_ok=: 5768break 5769fi 5770 5771rm -f conftest.err conftest.$ac_ext 5772 5773done 5774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5775rm -f conftest.err conftest.$ac_ext 5776if $ac_preproc_ok; then 5777 break 5778fi 5779 5780 done 5781 ac_cv_prog_CPP=$CPP 5782 5783fi 5784 CPP=$ac_cv_prog_CPP 5785else 5786 ac_cv_prog_CPP=$CPP 5787fi 5788{ echo "$as_me:$LINENO: result: $CPP" >&5 5789echo "${ECHO_T}$CPP" >&6; } 5790ac_preproc_ok=false 5791for ac_c_preproc_warn_flag in '' yes 5792do 5793 # Use a header file that comes with gcc, so configuring glibc 5794 # with a fresh cross-compiler works. 5795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5796 # <limits.h> exists even on freestanding compilers. 5797 # On the NeXT, cc -E runs the code through the compiler's parser, 5798 # not just through cpp. "Syntax error" is here to catch this case. 5799 cat >conftest.$ac_ext <<_ACEOF 5800/* confdefs.h. */ 5801_ACEOF 5802cat confdefs.h >>conftest.$ac_ext 5803cat >>conftest.$ac_ext <<_ACEOF 5804/* end confdefs.h. */ 5805#ifdef __STDC__ 5806# include <limits.h> 5807#else 5808# include <assert.h> 5809#endif 5810 Syntax error 5811_ACEOF 5812if { (ac_try="$ac_cpp conftest.$ac_ext" 5813case "(($ac_try" in 5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5815 *) ac_try_echo=$ac_try;; 5816esac 5817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5819 ac_status=$? 5820 grep -v '^ *+' conftest.er1 >conftest.err 5821 rm -f conftest.er1 5822 cat conftest.err >&5 5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5824 (exit $ac_status); } >/dev/null && { 5825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5826 test ! -s conftest.err 5827 }; then 5828 : 5829else 5830 echo "$as_me: failed program was:" >&5 5831sed 's/^/| /' conftest.$ac_ext >&5 5832 5833 # Broken: fails on valid input. 5834continue 5835fi 5836 5837rm -f conftest.err conftest.$ac_ext 5838 5839 # OK, works on sane cases. Now check whether nonexistent headers 5840 # can be detected and how. 5841 cat >conftest.$ac_ext <<_ACEOF 5842/* confdefs.h. */ 5843_ACEOF 5844cat confdefs.h >>conftest.$ac_ext 5845cat >>conftest.$ac_ext <<_ACEOF 5846/* end confdefs.h. */ 5847#include <ac_nonexistent.h> 5848_ACEOF 5849if { (ac_try="$ac_cpp conftest.$ac_ext" 5850case "(($ac_try" in 5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5852 *) ac_try_echo=$ac_try;; 5853esac 5854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5856 ac_status=$? 5857 grep -v '^ *+' conftest.er1 >conftest.err 5858 rm -f conftest.er1 5859 cat conftest.err >&5 5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5861 (exit $ac_status); } >/dev/null && { 5862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5863 test ! -s conftest.err 5864 }; then 5865 # Broken: success on invalid input. 5866continue 5867else 5868 echo "$as_me: failed program was:" >&5 5869sed 's/^/| /' conftest.$ac_ext >&5 5870 5871 # Passes both tests. 5872ac_preproc_ok=: 5873break 5874fi 5875 5876rm -f conftest.err conftest.$ac_ext 5877 5878done 5879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5880rm -f conftest.err conftest.$ac_ext 5881if $ac_preproc_ok; then 5882 : 5883else 5884 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5885See \`config.log' for more details." >&5 5886echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5887See \`config.log' for more details." >&2;} 5888 { (exit 1); exit 1; }; } 5889fi 5890 5891ac_ext=c 5892ac_cpp='$CPP $CPPFLAGS' 5893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5895ac_compiler_gnu=$ac_cv_c_compiler_gnu 5896 5897 5898{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5899echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5900if test "${ac_cv_header_stdc+set}" = set; then 5901 echo $ECHO_N "(cached) $ECHO_C" >&6 5902else 5903 cat >conftest.$ac_ext <<_ACEOF 5904/* confdefs.h. */ 5905_ACEOF 5906cat confdefs.h >>conftest.$ac_ext 5907cat >>conftest.$ac_ext <<_ACEOF 5908/* end confdefs.h. */ 5909#include <stdlib.h> 5910#include <stdarg.h> 5911#include <string.h> 5912#include <float.h> 5913 5914int 5915main () 5916{ 5917 5918 ; 5919 return 0; 5920} 5921_ACEOF 5922rm -f conftest.$ac_objext 5923if { (ac_try="$ac_compile" 5924case "(($ac_try" in 5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5926 *) ac_try_echo=$ac_try;; 5927esac 5928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5929 (eval "$ac_compile") 2>conftest.er1 5930 ac_status=$? 5931 grep -v '^ *+' conftest.er1 >conftest.err 5932 rm -f conftest.er1 5933 cat conftest.err >&5 5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5935 (exit $ac_status); } && { 5936 test -z "$ac_c_werror_flag" || 5937 test ! -s conftest.err 5938 } && test -s conftest.$ac_objext; then 5939 ac_cv_header_stdc=yes 5940else 5941 echo "$as_me: failed program was:" >&5 5942sed 's/^/| /' conftest.$ac_ext >&5 5943 5944 ac_cv_header_stdc=no 5945fi 5946 5947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5948 5949if test $ac_cv_header_stdc = yes; then 5950 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5951 cat >conftest.$ac_ext <<_ACEOF 5952/* confdefs.h. */ 5953_ACEOF 5954cat confdefs.h >>conftest.$ac_ext 5955cat >>conftest.$ac_ext <<_ACEOF 5956/* end confdefs.h. */ 5957#include <string.h> 5958 5959_ACEOF 5960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5961 $EGREP "memchr" >/dev/null 2>&1; then 5962 : 5963else 5964 ac_cv_header_stdc=no 5965fi 5966rm -f conftest* 5967 5968fi 5969 5970if test $ac_cv_header_stdc = yes; then 5971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5972 cat >conftest.$ac_ext <<_ACEOF 5973/* confdefs.h. */ 5974_ACEOF 5975cat confdefs.h >>conftest.$ac_ext 5976cat >>conftest.$ac_ext <<_ACEOF 5977/* end confdefs.h. */ 5978#include <stdlib.h> 5979 5980_ACEOF 5981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5982 $EGREP "free" >/dev/null 2>&1; then 5983 : 5984else 5985 ac_cv_header_stdc=no 5986fi 5987rm -f conftest* 5988 5989fi 5990 5991if test $ac_cv_header_stdc = yes; then 5992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5993 if test "$cross_compiling" = yes; then 5994 : 5995else 5996 cat >conftest.$ac_ext <<_ACEOF 5997/* confdefs.h. */ 5998_ACEOF 5999cat confdefs.h >>conftest.$ac_ext 6000cat >>conftest.$ac_ext <<_ACEOF 6001/* end confdefs.h. */ 6002#include <ctype.h> 6003#include <stdlib.h> 6004#if ((' ' & 0x0FF) == 0x020) 6005# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6006# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6007#else 6008# define ISLOWER(c) \ 6009 (('a' <= (c) && (c) <= 'i') \ 6010 || ('j' <= (c) && (c) <= 'r') \ 6011 || ('s' <= (c) && (c) <= 'z')) 6012# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6013#endif 6014 6015#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6016int 6017main () 6018{ 6019 int i; 6020 for (i = 0; i < 256; i++) 6021 if (XOR (islower (i), ISLOWER (i)) 6022 || toupper (i) != TOUPPER (i)) 6023 return 2; 6024 return 0; 6025} 6026_ACEOF 6027rm -f conftest$ac_exeext 6028if { (ac_try="$ac_link" 6029case "(($ac_try" in 6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6031 *) ac_try_echo=$ac_try;; 6032esac 6033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6034 (eval "$ac_link") 2>&5 6035 ac_status=$? 6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6038 { (case "(($ac_try" in 6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6040 *) ac_try_echo=$ac_try;; 6041esac 6042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6043 (eval "$ac_try") 2>&5 6044 ac_status=$? 6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6046 (exit $ac_status); }; }; then 6047 : 6048else 6049 echo "$as_me: program exited with status $ac_status" >&5 6050echo "$as_me: failed program was:" >&5 6051sed 's/^/| /' conftest.$ac_ext >&5 6052 6053( exit $ac_status ) 6054ac_cv_header_stdc=no 6055fi 6056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6057fi 6058 6059 6060fi 6061fi 6062{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6063echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 6064if test $ac_cv_header_stdc = yes; then 6065 6066cat >>confdefs.h <<\_ACEOF 6067#define STDC_HEADERS 1 6068_ACEOF 6069 6070fi 6071 6072# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6083 inttypes.h stdint.h unistd.h 6084do 6085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6086{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6089 echo $ECHO_N "(cached) $ECHO_C" >&6 6090else 6091 cat >conftest.$ac_ext <<_ACEOF 6092/* confdefs.h. */ 6093_ACEOF 6094cat confdefs.h >>conftest.$ac_ext 6095cat >>conftest.$ac_ext <<_ACEOF 6096/* end confdefs.h. */ 6097$ac_includes_default 6098 6099#include <$ac_header> 6100_ACEOF 6101rm -f conftest.$ac_objext 6102if { (ac_try="$ac_compile" 6103case "(($ac_try" in 6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6105 *) ac_try_echo=$ac_try;; 6106esac 6107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6108 (eval "$ac_compile") 2>conftest.er1 6109 ac_status=$? 6110 grep -v '^ *+' conftest.er1 >conftest.err 6111 rm -f conftest.er1 6112 cat conftest.err >&5 6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6114 (exit $ac_status); } && { 6115 test -z "$ac_c_werror_flag" || 6116 test ! -s conftest.err 6117 } && test -s conftest.$ac_objext; then 6118 eval "$as_ac_Header=yes" 6119else 6120 echo "$as_me: failed program was:" >&5 6121sed 's/^/| /' conftest.$ac_ext >&5 6122 6123 eval "$as_ac_Header=no" 6124fi 6125 6126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6127fi 6128ac_res=`eval echo '${'$as_ac_Header'}'` 6129 { echo "$as_me:$LINENO: result: $ac_res" >&5 6130echo "${ECHO_T}$ac_res" >&6; } 6131if test `eval echo '${'$as_ac_Header'}'` = yes; then 6132 cat >>confdefs.h <<_ACEOF 6133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6134_ACEOF 6135 6136fi 6137 6138done 6139 6140 6141 6142for ac_header in dlfcn.h 6143do 6144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6146 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6149 echo $ECHO_N "(cached) $ECHO_C" >&6 6150fi 6151ac_res=`eval echo '${'$as_ac_Header'}'` 6152 { echo "$as_me:$LINENO: result: $ac_res" >&5 6153echo "${ECHO_T}$ac_res" >&6; } 6154else 6155 # Is the header compilable? 6156{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6158cat >conftest.$ac_ext <<_ACEOF 6159/* confdefs.h. */ 6160_ACEOF 6161cat confdefs.h >>conftest.$ac_ext 6162cat >>conftest.$ac_ext <<_ACEOF 6163/* end confdefs.h. */ 6164$ac_includes_default 6165#include <$ac_header> 6166_ACEOF 6167rm -f conftest.$ac_objext 6168if { (ac_try="$ac_compile" 6169case "(($ac_try" in 6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6171 *) ac_try_echo=$ac_try;; 6172esac 6173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6174 (eval "$ac_compile") 2>conftest.er1 6175 ac_status=$? 6176 grep -v '^ *+' conftest.er1 >conftest.err 6177 rm -f conftest.er1 6178 cat conftest.err >&5 6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6180 (exit $ac_status); } && { 6181 test -z "$ac_c_werror_flag" || 6182 test ! -s conftest.err 6183 } && test -s conftest.$ac_objext; then 6184 ac_header_compiler=yes 6185else 6186 echo "$as_me: failed program was:" >&5 6187sed 's/^/| /' conftest.$ac_ext >&5 6188 6189 ac_header_compiler=no 6190fi 6191 6192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6193{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6194echo "${ECHO_T}$ac_header_compiler" >&6; } 6195 6196# Is the header present? 6197{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6199cat >conftest.$ac_ext <<_ACEOF 6200/* confdefs.h. */ 6201_ACEOF 6202cat confdefs.h >>conftest.$ac_ext 6203cat >>conftest.$ac_ext <<_ACEOF 6204/* end confdefs.h. */ 6205#include <$ac_header> 6206_ACEOF 6207if { (ac_try="$ac_cpp conftest.$ac_ext" 6208case "(($ac_try" in 6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6210 *) ac_try_echo=$ac_try;; 6211esac 6212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6214 ac_status=$? 6215 grep -v '^ *+' conftest.er1 >conftest.err 6216 rm -f conftest.er1 6217 cat conftest.err >&5 6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6219 (exit $ac_status); } >/dev/null && { 6220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6221 test ! -s conftest.err 6222 }; then 6223 ac_header_preproc=yes 6224else 6225 echo "$as_me: failed program was:" >&5 6226sed 's/^/| /' conftest.$ac_ext >&5 6227 6228 ac_header_preproc=no 6229fi 6230 6231rm -f conftest.err conftest.$ac_ext 6232{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6233echo "${ECHO_T}$ac_header_preproc" >&6; } 6234 6235# So? What about this header? 6236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6237 yes:no: ) 6238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6239echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6241echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6242 ac_header_preproc=yes 6243 ;; 6244 no:yes:* ) 6245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6246echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6248echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6250echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6252echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6254echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6256echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6257 ( cat <<\_ASBOX 6258## --------------------------------------------- ## 6259## Report this to opetzold@users.sourceforge.net ## 6260## --------------------------------------------- ## 6261_ASBOX 6262 ) | sed "s/^/$as_me: WARNING: /" >&2 6263 ;; 6264esac 6265{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6268 echo $ECHO_N "(cached) $ECHO_C" >&6 6269else 6270 eval "$as_ac_Header=\$ac_header_preproc" 6271fi 6272ac_res=`eval echo '${'$as_ac_Header'}'` 6273 { echo "$as_me:$LINENO: result: $ac_res" >&5 6274echo "${ECHO_T}$ac_res" >&6; } 6275 6276fi 6277if test `eval echo '${'$as_ac_Header'}'` = yes; then 6278 cat >>confdefs.h <<_ACEOF 6279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6280_ACEOF 6281 6282fi 6283 6284done 6285 6286 6287 6288if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6289 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6290 (test "X$CXX" != "Xg++"))) ; then 6291 ac_ext=cpp 6292ac_cpp='$CXXCPP $CPPFLAGS' 6293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6296{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6297echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6298if test -z "$CXXCPP"; then 6299 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6300 echo $ECHO_N "(cached) $ECHO_C" >&6 6301else 6302 # Double quotes because CXXCPP needs to be expanded 6303 for CXXCPP in "$CXX -E" "/lib/cpp" 6304 do 6305 ac_preproc_ok=false 6306for ac_cxx_preproc_warn_flag in '' yes 6307do 6308 # Use a header file that comes with gcc, so configuring glibc 6309 # with a fresh cross-compiler works. 6310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6311 # <limits.h> exists even on freestanding compilers. 6312 # On the NeXT, cc -E runs the code through the compiler's parser, 6313 # not just through cpp. "Syntax error" is here to catch this case. 6314 cat >conftest.$ac_ext <<_ACEOF 6315/* confdefs.h. */ 6316_ACEOF 6317cat confdefs.h >>conftest.$ac_ext 6318cat >>conftest.$ac_ext <<_ACEOF 6319/* end confdefs.h. */ 6320#ifdef __STDC__ 6321# include <limits.h> 6322#else 6323# include <assert.h> 6324#endif 6325 Syntax error 6326_ACEOF 6327if { (ac_try="$ac_cpp conftest.$ac_ext" 6328case "(($ac_try" in 6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6330 *) ac_try_echo=$ac_try;; 6331esac 6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6334 ac_status=$? 6335 grep -v '^ *+' conftest.er1 >conftest.err 6336 rm -f conftest.er1 6337 cat conftest.err >&5 6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6339 (exit $ac_status); } >/dev/null && { 6340 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6341 test ! -s conftest.err 6342 }; then 6343 : 6344else 6345 echo "$as_me: failed program was:" >&5 6346sed 's/^/| /' conftest.$ac_ext >&5 6347 6348 # Broken: fails on valid input. 6349continue 6350fi 6351 6352rm -f conftest.err conftest.$ac_ext 6353 6354 # OK, works on sane cases. Now check whether nonexistent headers 6355 # can be detected and how. 6356 cat >conftest.$ac_ext <<_ACEOF 6357/* confdefs.h. */ 6358_ACEOF 6359cat confdefs.h >>conftest.$ac_ext 6360cat >>conftest.$ac_ext <<_ACEOF 6361/* end confdefs.h. */ 6362#include <ac_nonexistent.h> 6363_ACEOF 6364if { (ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 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); } >/dev/null && { 6377 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6378 test ! -s conftest.err 6379 }; then 6380 # Broken: success on invalid input. 6381continue 6382else 6383 echo "$as_me: failed program was:" >&5 6384sed 's/^/| /' conftest.$ac_ext >&5 6385 6386 # Passes both tests. 6387ac_preproc_ok=: 6388break 6389fi 6390 6391rm -f conftest.err conftest.$ac_ext 6392 6393done 6394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6395rm -f conftest.err conftest.$ac_ext 6396if $ac_preproc_ok; then 6397 break 6398fi 6399 6400 done 6401 ac_cv_prog_CXXCPP=$CXXCPP 6402 6403fi 6404 CXXCPP=$ac_cv_prog_CXXCPP 6405else 6406 ac_cv_prog_CXXCPP=$CXXCPP 6407fi 6408{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6409echo "${ECHO_T}$CXXCPP" >&6; } 6410ac_preproc_ok=false 6411for ac_cxx_preproc_warn_flag in '' yes 6412do 6413 # Use a header file that comes with gcc, so configuring glibc 6414 # with a fresh cross-compiler works. 6415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6416 # <limits.h> exists even on freestanding compilers. 6417 # On the NeXT, cc -E runs the code through the compiler's parser, 6418 # not just through cpp. "Syntax error" is here to catch this case. 6419 cat >conftest.$ac_ext <<_ACEOF 6420/* confdefs.h. */ 6421_ACEOF 6422cat confdefs.h >>conftest.$ac_ext 6423cat >>conftest.$ac_ext <<_ACEOF 6424/* end confdefs.h. */ 6425#ifdef __STDC__ 6426# include <limits.h> 6427#else 6428# include <assert.h> 6429#endif 6430 Syntax error 6431_ACEOF 6432if { (ac_try="$ac_cpp conftest.$ac_ext" 6433case "(($ac_try" in 6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6435 *) ac_try_echo=$ac_try;; 6436esac 6437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6439 ac_status=$? 6440 grep -v '^ *+' conftest.er1 >conftest.err 6441 rm -f conftest.er1 6442 cat conftest.err >&5 6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6444 (exit $ac_status); } >/dev/null && { 6445 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6446 test ! -s conftest.err 6447 }; then 6448 : 6449else 6450 echo "$as_me: failed program was:" >&5 6451sed 's/^/| /' conftest.$ac_ext >&5 6452 6453 # Broken: fails on valid input. 6454continue 6455fi 6456 6457rm -f conftest.err conftest.$ac_ext 6458 6459 # OK, works on sane cases. Now check whether nonexistent headers 6460 # can be detected and how. 6461 cat >conftest.$ac_ext <<_ACEOF 6462/* confdefs.h. */ 6463_ACEOF 6464cat confdefs.h >>conftest.$ac_ext 6465cat >>conftest.$ac_ext <<_ACEOF 6466/* end confdefs.h. */ 6467#include <ac_nonexistent.h> 6468_ACEOF 6469if { (ac_try="$ac_cpp conftest.$ac_ext" 6470case "(($ac_try" in 6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6472 *) ac_try_echo=$ac_try;; 6473esac 6474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6476 ac_status=$? 6477 grep -v '^ *+' conftest.er1 >conftest.err 6478 rm -f conftest.er1 6479 cat conftest.err >&5 6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6481 (exit $ac_status); } >/dev/null && { 6482 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6483 test ! -s conftest.err 6484 }; then 6485 # Broken: success on invalid input. 6486continue 6487else 6488 echo "$as_me: failed program was:" >&5 6489sed 's/^/| /' conftest.$ac_ext >&5 6490 6491 # Passes both tests. 6492ac_preproc_ok=: 6493break 6494fi 6495 6496rm -f conftest.err conftest.$ac_ext 6497 6498done 6499# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6500rm -f conftest.err conftest.$ac_ext 6501if $ac_preproc_ok; then 6502 : 6503else 6504 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6505See \`config.log' for more details." >&5 6506echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6507See \`config.log' for more details." >&2;} 6508 { (exit 1); exit 1; }; } 6509fi 6510 6511ac_ext=cpp 6512ac_cpp='$CXXCPP $CPPFLAGS' 6513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6516 6517fi 6518 6519 6520ac_ext=f 6521ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6522ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6523ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6524if test -n "$ac_tool_prefix"; then 6525 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 6526 do 6527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6528set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6529{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6531if test "${ac_cv_prog_F77+set}" = set; then 6532 echo $ECHO_N "(cached) $ECHO_C" >&6 6533else 6534 if test -n "$F77"; then 6535 ac_cv_prog_F77="$F77" # Let the user override the test. 6536else 6537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6538for as_dir in $PATH 6539do 6540 IFS=$as_save_IFS 6541 test -z "$as_dir" && as_dir=. 6542 for ac_exec_ext in '' $ac_executable_extensions; do 6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6544 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6546 break 2 6547 fi 6548done 6549done 6550IFS=$as_save_IFS 6551 6552fi 6553fi 6554F77=$ac_cv_prog_F77 6555if test -n "$F77"; then 6556 { echo "$as_me:$LINENO: result: $F77" >&5 6557echo "${ECHO_T}$F77" >&6; } 6558else 6559 { echo "$as_me:$LINENO: result: no" >&5 6560echo "${ECHO_T}no" >&6; } 6561fi 6562 6563 6564 test -n "$F77" && break 6565 done 6566fi 6567if test -z "$F77"; then 6568 ac_ct_F77=$F77 6569 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 6570do 6571 # Extract the first word of "$ac_prog", so it can be a program name with args. 6572set dummy $ac_prog; ac_word=$2 6573{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6575if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6576 echo $ECHO_N "(cached) $ECHO_C" >&6 6577else 6578 if test -n "$ac_ct_F77"; then 6579 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6580else 6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6582for as_dir in $PATH 6583do 6584 IFS=$as_save_IFS 6585 test -z "$as_dir" && as_dir=. 6586 for ac_exec_ext in '' $ac_executable_extensions; do 6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6588 ac_cv_prog_ac_ct_F77="$ac_prog" 6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6590 break 2 6591 fi 6592done 6593done 6594IFS=$as_save_IFS 6595 6596fi 6597fi 6598ac_ct_F77=$ac_cv_prog_ac_ct_F77 6599if test -n "$ac_ct_F77"; then 6600 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6601echo "${ECHO_T}$ac_ct_F77" >&6; } 6602else 6603 { echo "$as_me:$LINENO: result: no" >&5 6604echo "${ECHO_T}no" >&6; } 6605fi 6606 6607 6608 test -n "$ac_ct_F77" && break 6609done 6610 6611 if test "x$ac_ct_F77" = x; then 6612 F77="" 6613 else 6614 case $cross_compiling:$ac_tool_warned in 6615yes:) 6616{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6617whose name does not start with the host triplet. If you think this 6618configuration is useful to you, please write to autoconf@gnu.org." >&5 6619echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6620whose name does not start with the host triplet. If you think this 6621configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6622ac_tool_warned=yes ;; 6623esac 6624 F77=$ac_ct_F77 6625 fi 6626fi 6627 6628 6629# Provide some information about the compiler. 6630echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6631ac_compiler=`set X $ac_compile; echo $2` 6632{ (ac_try="$ac_compiler --version >&5" 6633case "(($ac_try" in 6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6635 *) ac_try_echo=$ac_try;; 6636esac 6637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6638 (eval "$ac_compiler --version >&5") 2>&5 6639 ac_status=$? 6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6641 (exit $ac_status); } 6642{ (ac_try="$ac_compiler -v >&5" 6643case "(($ac_try" in 6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6645 *) ac_try_echo=$ac_try;; 6646esac 6647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6648 (eval "$ac_compiler -v >&5") 2>&5 6649 ac_status=$? 6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6651 (exit $ac_status); } 6652{ (ac_try="$ac_compiler -V >&5" 6653case "(($ac_try" in 6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6655 *) ac_try_echo=$ac_try;; 6656esac 6657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6658 (eval "$ac_compiler -V >&5") 2>&5 6659 ac_status=$? 6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6661 (exit $ac_status); } 6662rm -f a.out 6663 6664# If we don't use `.F' as extension, the preprocessor is not run on the 6665# input file. (Note that this only needs to work for GNU compilers.) 6666ac_save_ext=$ac_ext 6667ac_ext=F 6668{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6669echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6670if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6671 echo $ECHO_N "(cached) $ECHO_C" >&6 6672else 6673 cat >conftest.$ac_ext <<_ACEOF 6674 program main 6675#ifndef __GNUC__ 6676 choke me 6677#endif 6678 6679 end 6680_ACEOF 6681rm -f conftest.$ac_objext 6682if { (ac_try="$ac_compile" 6683case "(($ac_try" in 6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6685 *) ac_try_echo=$ac_try;; 6686esac 6687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6688 (eval "$ac_compile") 2>conftest.er1 6689 ac_status=$? 6690 grep -v '^ *+' conftest.er1 >conftest.err 6691 rm -f conftest.er1 6692 cat conftest.err >&5 6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6694 (exit $ac_status); } && { 6695 test -z "$ac_f77_werror_flag" || 6696 test ! -s conftest.err 6697 } && test -s conftest.$ac_objext; then 6698 ac_compiler_gnu=yes 6699else 6700 echo "$as_me: failed program was:" >&5 6701sed 's/^/| /' conftest.$ac_ext >&5 6702 6703 ac_compiler_gnu=no 6704fi 6705 6706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6707ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6708 6709fi 6710{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6711echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6712ac_ext=$ac_save_ext 6713ac_test_FFLAGS=${FFLAGS+set} 6714ac_save_FFLAGS=$FFLAGS 6715FFLAGS= 6716{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6717echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6718if test "${ac_cv_prog_f77_g+set}" = set; then 6719 echo $ECHO_N "(cached) $ECHO_C" >&6 6720else 6721 FFLAGS=-g 6722cat >conftest.$ac_ext <<_ACEOF 6723 program main 6724 6725 end 6726_ACEOF 6727rm -f conftest.$ac_objext 6728if { (ac_try="$ac_compile" 6729case "(($ac_try" in 6730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6731 *) ac_try_echo=$ac_try;; 6732esac 6733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6734 (eval "$ac_compile") 2>conftest.er1 6735 ac_status=$? 6736 grep -v '^ *+' conftest.er1 >conftest.err 6737 rm -f conftest.er1 6738 cat conftest.err >&5 6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6740 (exit $ac_status); } && { 6741 test -z "$ac_f77_werror_flag" || 6742 test ! -s conftest.err 6743 } && test -s conftest.$ac_objext; then 6744 ac_cv_prog_f77_g=yes 6745else 6746 echo "$as_me: failed program was:" >&5 6747sed 's/^/| /' conftest.$ac_ext >&5 6748 6749 ac_cv_prog_f77_g=no 6750fi 6751 6752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6753 6754fi 6755{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6756echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6757if test "$ac_test_FFLAGS" = set; then 6758 FFLAGS=$ac_save_FFLAGS 6759elif test $ac_cv_prog_f77_g = yes; then 6760 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6761 FFLAGS="-g -O2" 6762 else 6763 FFLAGS="-g" 6764 fi 6765else 6766 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6767 FFLAGS="-O2" 6768 else 6769 FFLAGS= 6770 fi 6771fi 6772 6773G77=`test $ac_compiler_gnu = yes && echo yes` 6774ac_ext=cpp 6775ac_cpp='$CXXCPP $CPPFLAGS' 6776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6779 6780 6781 6782# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6783 6784# find the maximum length of command line arguments 6785{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6786echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6787if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6788 echo $ECHO_N "(cached) $ECHO_C" >&6 6789else 6790 i=0 6791 teststring="ABCD" 6792 6793 case $build_os in 6794 msdosdjgpp*) 6795 # On DJGPP, this test can blow up pretty badly due to problems in libc 6796 # (any single argument exceeding 2000 bytes causes a buffer overrun 6797 # during glob expansion). Even if it were fixed, the result of this 6798 # check would be larger than it should be. 6799 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6800 ;; 6801 6802 gnu*) 6803 # Under GNU Hurd, this test is not required because there is 6804 # no limit to the length of command line arguments. 6805 # Libtool will interpret -1 as no limit whatsoever 6806 lt_cv_sys_max_cmd_len=-1; 6807 ;; 6808 6809 cygwin* | mingw*) 6810 # On Win9x/ME, this test blows up -- it succeeds, but takes 6811 # about 5 minutes as the teststring grows exponentially. 6812 # Worse, since 9x/ME are not pre-emptively multitasking, 6813 # you end up with a "frozen" computer, even though with patience 6814 # the test eventually succeeds (with a max line length of 256k). 6815 # Instead, let's just punt: use the minimum linelength reported by 6816 # all of the supported platforms: 8192 (on NT/2K/XP). 6817 lt_cv_sys_max_cmd_len=8192; 6818 ;; 6819 6820 amigaos*) 6821 # On AmigaOS with pdksh, this test takes hours, literally. 6822 # So we just punt and use a minimum line length of 8192. 6823 lt_cv_sys_max_cmd_len=8192; 6824 ;; 6825 6826 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6827 # This has been around since 386BSD, at least. Likely further. 6828 if test -x /sbin/sysctl; then 6829 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6830 elif test -x /usr/sbin/sysctl; then 6831 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6832 else 6833 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6834 fi 6835 # And add a safety zone 6836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6838 ;; 6839 6840 interix*) 6841 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6842 lt_cv_sys_max_cmd_len=196608 6843 ;; 6844 6845 osf*) 6846 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6847 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6848 # nice to cause kernel panics so lets avoid the loop below. 6849 # First set a reasonable default. 6850 lt_cv_sys_max_cmd_len=16384 6851 # 6852 if test -x /sbin/sysconfig; then 6853 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6854 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6855 esac 6856 fi 6857 ;; 6858 sco3.2v5*) 6859 lt_cv_sys_max_cmd_len=102400 6860 ;; 6861 sysv5* | sco5v6* | sysv4.2uw2*) 6862 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6863 if test -n "$kargmax"; then 6864 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6865 else 6866 lt_cv_sys_max_cmd_len=32768 6867 fi 6868 ;; 6869 *) 6870 # If test is not a shell built-in, we'll probably end up computing a 6871 # maximum length that is only half of the actual maximum length, but 6872 # we can't tell. 6873 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6874 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6875 = "XX$teststring") >/dev/null 2>&1 && 6876 new_result=`expr "X$teststring" : ".*" 2>&1` && 6877 lt_cv_sys_max_cmd_len=$new_result && 6878 test $i != 17 # 1/2 MB should be enough 6879 do 6880 i=`expr $i + 1` 6881 teststring=$teststring$teststring 6882 done 6883 teststring= 6884 # Add a significant safety factor because C++ compilers can tack on massive 6885 # amounts of additional arguments before passing them to the linker. 6886 # It appears as though 1/2 is a usable value. 6887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6888 ;; 6889 esac 6890 6891fi 6892 6893if test -n $lt_cv_sys_max_cmd_len ; then 6894 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6895echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6896else 6897 { echo "$as_me:$LINENO: result: none" >&5 6898echo "${ECHO_T}none" >&6; } 6899fi 6900 6901 6902 6903 6904# Check for command to grab the raw symbol name followed by C symbol from nm. 6905{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6906echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6907if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6908 echo $ECHO_N "(cached) $ECHO_C" >&6 6909else 6910 6911# These are sane defaults that work on at least a few old systems. 6912# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6913 6914# Character class describing NM global symbol codes. 6915symcode='[BCDEGRST]' 6916 6917# Regexp to match symbols that can be accessed directly from C. 6918sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6919 6920# Transform an extracted symbol line into a proper C declaration 6921lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6922 6923# Transform an extracted symbol line into symbol name and symbol address 6924lt_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'" 6925 6926# Define system-specific variables. 6927case $host_os in 6928aix*) 6929 symcode='[BCDT]' 6930 ;; 6931cygwin* | mingw* | pw32*) 6932 symcode='[ABCDGISTW]' 6933 ;; 6934hpux*) # Its linker distinguishes data from code symbols 6935 if test "$host_cpu" = ia64; then 6936 symcode='[ABCDEGRST]' 6937 fi 6938 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6939 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'" 6940 ;; 6941linux* | k*bsd*-gnu) 6942 if test "$host_cpu" = ia64; then 6943 symcode='[ABCDGIRSTW]' 6944 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6945 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'" 6946 fi 6947 ;; 6948irix* | nonstopux*) 6949 symcode='[BCDEGRST]' 6950 ;; 6951osf*) 6952 symcode='[BCDEGQRST]' 6953 ;; 6954solaris*) 6955 symcode='[BDRT]' 6956 ;; 6957sco3.2v5*) 6958 symcode='[DT]' 6959 ;; 6960sysv4.2uw2*) 6961 symcode='[DT]' 6962 ;; 6963sysv5* | sco5v6* | unixware* | OpenUNIX*) 6964 symcode='[ABDT]' 6965 ;; 6966sysv4) 6967 symcode='[DFNSTU]' 6968 ;; 6969esac 6970 6971# Handle CRLF in mingw tool chain 6972opt_cr= 6973case $build_os in 6974mingw*) 6975 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6976 ;; 6977esac 6978 6979# If we're using GNU nm, then use its standard symbol codes. 6980case `$NM -V 2>&1` in 6981*GNU* | *'with BFD'*) 6982 symcode='[ABCDGIRSTW]' ;; 6983esac 6984 6985# Try without a prefix undercore, then with it. 6986for ac_symprfx in "" "_"; do 6987 6988 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6989 symxfrm="\\1 $ac_symprfx\\2 \\2" 6990 6991 # Write the raw and C identifiers. 6992 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6993 6994 # Check to see that the pipe works correctly. 6995 pipe_works=no 6996 6997 rm -f conftest* 6998 cat > conftest.$ac_ext <<EOF 6999#ifdef __cplusplus 7000extern "C" { 7001#endif 7002char nm_test_var; 7003void nm_test_func(){} 7004#ifdef __cplusplus 7005} 7006#endif 7007int main(){nm_test_var='a';nm_test_func();return(0);} 7008EOF 7009 7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7011 (eval $ac_compile) 2>&5 7012 ac_status=$? 7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7014 (exit $ac_status); }; then 7015 # Now try to grab the symbols. 7016 nlist=conftest.nm 7017 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7018 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7019 ac_status=$? 7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7021 (exit $ac_status); } && test -s "$nlist"; then 7022 # Try sorting and uniquifying the output. 7023 if sort "$nlist" | uniq > "$nlist"T; then 7024 mv -f "$nlist"T "$nlist" 7025 else 7026 rm -f "$nlist"T 7027 fi 7028 7029 # Make sure that we snagged all the symbols we need. 7030 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7031 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7032 cat <<EOF > conftest.$ac_ext 7033#ifdef __cplusplus 7034extern "C" { 7035#endif 7036 7037EOF 7038 # Now generate the symbol file. 7039 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7040 7041 cat <<EOF >> conftest.$ac_ext 7042#if defined (__STDC__) && __STDC__ 7043# define lt_ptr_t void * 7044#else 7045# define lt_ptr_t char * 7046# define const 7047#endif 7048 7049/* The mapping between symbol names and symbols. */ 7050const struct { 7051 const char *name; 7052 lt_ptr_t address; 7053} 7054lt_preloaded_symbols[] = 7055{ 7056EOF 7057 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7058 cat <<\EOF >> conftest.$ac_ext 7059 {0, (lt_ptr_t) 0} 7060}; 7061 7062#ifdef __cplusplus 7063} 7064#endif 7065EOF 7066 # Now try linking the two files. 7067 mv conftest.$ac_objext conftstm.$ac_objext 7068 lt_save_LIBS="$LIBS" 7069 lt_save_CFLAGS="$CFLAGS" 7070 LIBS="conftstm.$ac_objext" 7071 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7073 (eval $ac_link) 2>&5 7074 ac_status=$? 7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7076 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7077 pipe_works=yes 7078 fi 7079 LIBS="$lt_save_LIBS" 7080 CFLAGS="$lt_save_CFLAGS" 7081 else 7082 echo "cannot find nm_test_func in $nlist" >&5 7083 fi 7084 else 7085 echo "cannot find nm_test_var in $nlist" >&5 7086 fi 7087 else 7088 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7089 fi 7090 else 7091 echo "$progname: failed program was:" >&5 7092 cat conftest.$ac_ext >&5 7093 fi 7094 rm -f conftest* conftst* 7095 7096 # Do not use the global_symbol_pipe unless it works. 7097 if test "$pipe_works" = yes; then 7098 break 7099 else 7100 lt_cv_sys_global_symbol_pipe= 7101 fi 7102done 7103 7104fi 7105 7106if test -z "$lt_cv_sys_global_symbol_pipe"; then 7107 lt_cv_sys_global_symbol_to_cdecl= 7108fi 7109if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7110 { echo "$as_me:$LINENO: result: failed" >&5 7111echo "${ECHO_T}failed" >&6; } 7112else 7113 { echo "$as_me:$LINENO: result: ok" >&5 7114echo "${ECHO_T}ok" >&6; } 7115fi 7116 7117{ echo "$as_me:$LINENO: checking for objdir" >&5 7118echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7119if test "${lt_cv_objdir+set}" = set; then 7120 echo $ECHO_N "(cached) $ECHO_C" >&6 7121else 7122 rm -f .libs 2>/dev/null 7123mkdir .libs 2>/dev/null 7124if test -d .libs; then 7125 lt_cv_objdir=.libs 7126else 7127 # MS-DOS does not allow filenames that begin with a dot. 7128 lt_cv_objdir=_libs 7129fi 7130rmdir .libs 2>/dev/null 7131fi 7132{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7133echo "${ECHO_T}$lt_cv_objdir" >&6; } 7134objdir=$lt_cv_objdir 7135 7136 7137 7138 7139 7140case $host_os in 7141aix3*) 7142 # AIX sometimes has problems with the GCC collect2 program. For some 7143 # reason, if we set the COLLECT_NAMES environment variable, the problems 7144 # vanish in a puff of smoke. 7145 if test "X${COLLECT_NAMES+set}" != Xset; then 7146 COLLECT_NAMES= 7147 export COLLECT_NAMES 7148 fi 7149 ;; 7150esac 7151 7152# Sed substitution that helps us do robust quoting. It backslashifies 7153# metacharacters that are still active within double-quoted strings. 7154Xsed='sed -e 1s/^X//' 7155sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7156 7157# Same as above, but do not quote variable references. 7158double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7159 7160# Sed substitution to delay expansion of an escaped shell variable in a 7161# double_quote_subst'ed string. 7162delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7163 7164# Sed substitution to avoid accidental globbing in evaled expressions 7165no_glob_subst='s/\*/\\\*/g' 7166 7167# Constants: 7168rm="rm -f" 7169 7170# Global variables: 7171default_ofile=libtool 7172can_build_shared=yes 7173 7174# All known linkers require a `.a' archive for static linking (except MSVC, 7175# which needs '.lib'). 7176libext=a 7177ltmain="$ac_aux_dir/ltmain.sh" 7178ofile="$default_ofile" 7179with_gnu_ld="$lt_cv_prog_gnu_ld" 7180 7181if test -n "$ac_tool_prefix"; then 7182 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7183set dummy ${ac_tool_prefix}ar; ac_word=$2 7184{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7186if test "${ac_cv_prog_AR+set}" = set; then 7187 echo $ECHO_N "(cached) $ECHO_C" >&6 7188else 7189 if test -n "$AR"; then 7190 ac_cv_prog_AR="$AR" # Let the user override the test. 7191else 7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7193for as_dir in $PATH 7194do 7195 IFS=$as_save_IFS 7196 test -z "$as_dir" && as_dir=. 7197 for ac_exec_ext in '' $ac_executable_extensions; do 7198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7199 ac_cv_prog_AR="${ac_tool_prefix}ar" 7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7201 break 2 7202 fi 7203done 7204done 7205IFS=$as_save_IFS 7206 7207fi 7208fi 7209AR=$ac_cv_prog_AR 7210if test -n "$AR"; then 7211 { echo "$as_me:$LINENO: result: $AR" >&5 7212echo "${ECHO_T}$AR" >&6; } 7213else 7214 { echo "$as_me:$LINENO: result: no" >&5 7215echo "${ECHO_T}no" >&6; } 7216fi 7217 7218 7219fi 7220if test -z "$ac_cv_prog_AR"; then 7221 ac_ct_AR=$AR 7222 # Extract the first word of "ar", so it can be a program name with args. 7223set dummy ar; ac_word=$2 7224{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7226if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7227 echo $ECHO_N "(cached) $ECHO_C" >&6 7228else 7229 if test -n "$ac_ct_AR"; then 7230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7231else 7232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7233for as_dir in $PATH 7234do 7235 IFS=$as_save_IFS 7236 test -z "$as_dir" && as_dir=. 7237 for ac_exec_ext in '' $ac_executable_extensions; do 7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7239 ac_cv_prog_ac_ct_AR="ar" 7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7241 break 2 7242 fi 7243done 7244done 7245IFS=$as_save_IFS 7246 7247fi 7248fi 7249ac_ct_AR=$ac_cv_prog_ac_ct_AR 7250if test -n "$ac_ct_AR"; then 7251 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7252echo "${ECHO_T}$ac_ct_AR" >&6; } 7253else 7254 { echo "$as_me:$LINENO: result: no" >&5 7255echo "${ECHO_T}no" >&6; } 7256fi 7257 7258 if test "x$ac_ct_AR" = x; then 7259 AR="false" 7260 else 7261 case $cross_compiling:$ac_tool_warned in 7262yes:) 7263{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7264whose name does not start with the host triplet. If you think this 7265configuration is useful to you, please write to autoconf@gnu.org." >&5 7266echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7267whose name does not start with the host triplet. If you think this 7268configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7269ac_tool_warned=yes ;; 7270esac 7271 AR=$ac_ct_AR 7272 fi 7273else 7274 AR="$ac_cv_prog_AR" 7275fi 7276 7277if test -n "$ac_tool_prefix"; then 7278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7279set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7280{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7282if test "${ac_cv_prog_RANLIB+set}" = set; then 7283 echo $ECHO_N "(cached) $ECHO_C" >&6 7284else 7285 if test -n "$RANLIB"; then 7286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7287else 7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7289for as_dir in $PATH 7290do 7291 IFS=$as_save_IFS 7292 test -z "$as_dir" && as_dir=. 7293 for ac_exec_ext in '' $ac_executable_extensions; do 7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7297 break 2 7298 fi 7299done 7300done 7301IFS=$as_save_IFS 7302 7303fi 7304fi 7305RANLIB=$ac_cv_prog_RANLIB 7306if test -n "$RANLIB"; then 7307 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7308echo "${ECHO_T}$RANLIB" >&6; } 7309else 7310 { echo "$as_me:$LINENO: result: no" >&5 7311echo "${ECHO_T}no" >&6; } 7312fi 7313 7314 7315fi 7316if test -z "$ac_cv_prog_RANLIB"; then 7317 ac_ct_RANLIB=$RANLIB 7318 # Extract the first word of "ranlib", so it can be a program name with args. 7319set dummy ranlib; ac_word=$2 7320{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7322if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7323 echo $ECHO_N "(cached) $ECHO_C" >&6 7324else 7325 if test -n "$ac_ct_RANLIB"; then 7326 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7327else 7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7329for as_dir in $PATH 7330do 7331 IFS=$as_save_IFS 7332 test -z "$as_dir" && as_dir=. 7333 for ac_exec_ext in '' $ac_executable_extensions; do 7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7335 ac_cv_prog_ac_ct_RANLIB="ranlib" 7336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7337 break 2 7338 fi 7339done 7340done 7341IFS=$as_save_IFS 7342 7343fi 7344fi 7345ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7346if test -n "$ac_ct_RANLIB"; then 7347 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7348echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7349else 7350 { echo "$as_me:$LINENO: result: no" >&5 7351echo "${ECHO_T}no" >&6; } 7352fi 7353 7354 if test "x$ac_ct_RANLIB" = x; then 7355 RANLIB=":" 7356 else 7357 case $cross_compiling:$ac_tool_warned in 7358yes:) 7359{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7360whose name does not start with the host triplet. If you think this 7361configuration is useful to you, please write to autoconf@gnu.org." >&5 7362echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7363whose name does not start with the host triplet. If you think this 7364configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7365ac_tool_warned=yes ;; 7366esac 7367 RANLIB=$ac_ct_RANLIB 7368 fi 7369else 7370 RANLIB="$ac_cv_prog_RANLIB" 7371fi 7372 7373if test -n "$ac_tool_prefix"; then 7374 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7375set dummy ${ac_tool_prefix}strip; ac_word=$2 7376{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7378if test "${ac_cv_prog_STRIP+set}" = set; then 7379 echo $ECHO_N "(cached) $ECHO_C" >&6 7380else 7381 if test -n "$STRIP"; then 7382 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7383else 7384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7385for as_dir in $PATH 7386do 7387 IFS=$as_save_IFS 7388 test -z "$as_dir" && as_dir=. 7389 for ac_exec_ext in '' $ac_executable_extensions; do 7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7391 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7393 break 2 7394 fi 7395done 7396done 7397IFS=$as_save_IFS 7398 7399fi 7400fi 7401STRIP=$ac_cv_prog_STRIP 7402if test -n "$STRIP"; then 7403 { echo "$as_me:$LINENO: result: $STRIP" >&5 7404echo "${ECHO_T}$STRIP" >&6; } 7405else 7406 { echo "$as_me:$LINENO: result: no" >&5 7407echo "${ECHO_T}no" >&6; } 7408fi 7409 7410 7411fi 7412if test -z "$ac_cv_prog_STRIP"; then 7413 ac_ct_STRIP=$STRIP 7414 # Extract the first word of "strip", so it can be a program name with args. 7415set dummy strip; ac_word=$2 7416{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7418if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7419 echo $ECHO_N "(cached) $ECHO_C" >&6 7420else 7421 if test -n "$ac_ct_STRIP"; then 7422 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7423else 7424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7425for as_dir in $PATH 7426do 7427 IFS=$as_save_IFS 7428 test -z "$as_dir" && as_dir=. 7429 for ac_exec_ext in '' $ac_executable_extensions; do 7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7431 ac_cv_prog_ac_ct_STRIP="strip" 7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7433 break 2 7434 fi 7435done 7436done 7437IFS=$as_save_IFS 7438 7439fi 7440fi 7441ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7442if test -n "$ac_ct_STRIP"; then 7443 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7444echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7445else 7446 { echo "$as_me:$LINENO: result: no" >&5 7447echo "${ECHO_T}no" >&6; } 7448fi 7449 7450 if test "x$ac_ct_STRIP" = x; then 7451 STRIP=":" 7452 else 7453 case $cross_compiling:$ac_tool_warned in 7454yes:) 7455{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7456whose name does not start with the host triplet. If you think this 7457configuration is useful to you, please write to autoconf@gnu.org." >&5 7458echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7459whose name does not start with the host triplet. If you think this 7460configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7461ac_tool_warned=yes ;; 7462esac 7463 STRIP=$ac_ct_STRIP 7464 fi 7465else 7466 STRIP="$ac_cv_prog_STRIP" 7467fi 7468 7469 7470old_CC="$CC" 7471old_CFLAGS="$CFLAGS" 7472 7473# Set sane defaults for various variables 7474test -z "$AR" && AR=ar 7475test -z "$AR_FLAGS" && AR_FLAGS=cru 7476test -z "$AS" && AS=as 7477test -z "$CC" && CC=cc 7478test -z "$LTCC" && LTCC=$CC 7479test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7480test -z "$DLLTOOL" && DLLTOOL=dlltool 7481test -z "$LD" && LD=ld 7482test -z "$LN_S" && LN_S="ln -s" 7483test -z "$MAGIC_CMD" && MAGIC_CMD=file 7484test -z "$NM" && NM=nm 7485test -z "$SED" && SED=sed 7486test -z "$OBJDUMP" && OBJDUMP=objdump 7487test -z "$RANLIB" && RANLIB=: 7488test -z "$STRIP" && STRIP=: 7489test -z "$ac_objext" && ac_objext=o 7490 7491# Determine commands to create old-style static archives. 7492old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7493old_postinstall_cmds='chmod 644 $oldlib' 7494old_postuninstall_cmds= 7495 7496if test -n "$RANLIB"; then 7497 case $host_os in 7498 openbsd*) 7499 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7500 ;; 7501 *) 7502 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7503 ;; 7504 esac 7505 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7506fi 7507 7508for cc_temp in $compiler""; do 7509 case $cc_temp in 7510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7512 \-*) ;; 7513 *) break;; 7514 esac 7515done 7516cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7517 7518 7519# Only perform the check for file, if the check method requires it 7520case $deplibs_check_method in 7521file_magic*) 7522 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7523 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7524echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7525if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7526 echo $ECHO_N "(cached) $ECHO_C" >&6 7527else 7528 case $MAGIC_CMD in 7529[\\/*] | ?:[\\/]*) 7530 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7531 ;; 7532*) 7533 lt_save_MAGIC_CMD="$MAGIC_CMD" 7534 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7535 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7536 for ac_dir in $ac_dummy; do 7537 IFS="$lt_save_ifs" 7538 test -z "$ac_dir" && ac_dir=. 7539 if test -f $ac_dir/${ac_tool_prefix}file; then 7540 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7541 if test -n "$file_magic_test_file"; then 7542 case $deplibs_check_method in 7543 "file_magic "*) 7544 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7546 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7547 $EGREP "$file_magic_regex" > /dev/null; then 7548 : 7549 else 7550 cat <<EOF 1>&2 7551 7552*** Warning: the command libtool uses to detect shared libraries, 7553*** $file_magic_cmd, produces output that libtool cannot recognize. 7554*** The result is that libtool may fail to recognize shared libraries 7555*** as such. This will affect the creation of libtool libraries that 7556*** depend on shared libraries, but programs linked with such libtool 7557*** libraries will work regardless of this problem. Nevertheless, you 7558*** may want to report the problem to your system manager and/or to 7559*** bug-libtool@gnu.org 7560 7561EOF 7562 fi ;; 7563 esac 7564 fi 7565 break 7566 fi 7567 done 7568 IFS="$lt_save_ifs" 7569 MAGIC_CMD="$lt_save_MAGIC_CMD" 7570 ;; 7571esac 7572fi 7573 7574MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7575if test -n "$MAGIC_CMD"; then 7576 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7577echo "${ECHO_T}$MAGIC_CMD" >&6; } 7578else 7579 { echo "$as_me:$LINENO: result: no" >&5 7580echo "${ECHO_T}no" >&6; } 7581fi 7582 7583if test -z "$lt_cv_path_MAGIC_CMD"; then 7584 if test -n "$ac_tool_prefix"; then 7585 { echo "$as_me:$LINENO: checking for file" >&5 7586echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7587if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7588 echo $ECHO_N "(cached) $ECHO_C" >&6 7589else 7590 case $MAGIC_CMD in 7591[\\/*] | ?:[\\/]*) 7592 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7593 ;; 7594*) 7595 lt_save_MAGIC_CMD="$MAGIC_CMD" 7596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7597 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7598 for ac_dir in $ac_dummy; do 7599 IFS="$lt_save_ifs" 7600 test -z "$ac_dir" && ac_dir=. 7601 if test -f $ac_dir/file; then 7602 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7603 if test -n "$file_magic_test_file"; then 7604 case $deplibs_check_method in 7605 "file_magic "*) 7606 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7608 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7609 $EGREP "$file_magic_regex" > /dev/null; then 7610 : 7611 else 7612 cat <<EOF 1>&2 7613 7614*** Warning: the command libtool uses to detect shared libraries, 7615*** $file_magic_cmd, produces output that libtool cannot recognize. 7616*** The result is that libtool may fail to recognize shared libraries 7617*** as such. This will affect the creation of libtool libraries that 7618*** depend on shared libraries, but programs linked with such libtool 7619*** libraries will work regardless of this problem. Nevertheless, you 7620*** may want to report the problem to your system manager and/or to 7621*** bug-libtool@gnu.org 7622 7623EOF 7624 fi ;; 7625 esac 7626 fi 7627 break 7628 fi 7629 done 7630 IFS="$lt_save_ifs" 7631 MAGIC_CMD="$lt_save_MAGIC_CMD" 7632 ;; 7633esac 7634fi 7635 7636MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7637if test -n "$MAGIC_CMD"; then 7638 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7639echo "${ECHO_T}$MAGIC_CMD" >&6; } 7640else 7641 { echo "$as_me:$LINENO: result: no" >&5 7642echo "${ECHO_T}no" >&6; } 7643fi 7644 7645 else 7646 MAGIC_CMD=: 7647 fi 7648fi 7649 7650 fi 7651 ;; 7652esac 7653 7654enable_dlopen=no 7655enable_win32_dll=no 7656 7657# Check whether --enable-libtool-lock was given. 7658if test "${enable_libtool_lock+set}" = set; then 7659 enableval=$enable_libtool_lock; 7660fi 7661 7662test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7663 7664 7665# Check whether --with-pic was given. 7666if test "${with_pic+set}" = set; then 7667 withval=$with_pic; pic_mode="$withval" 7668else 7669 pic_mode=default 7670fi 7671 7672test -z "$pic_mode" && pic_mode=default 7673 7674# Use C for the default configuration in the libtool script 7675tagname= 7676lt_save_CC="$CC" 7677ac_ext=c 7678ac_cpp='$CPP $CPPFLAGS' 7679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7681ac_compiler_gnu=$ac_cv_c_compiler_gnu 7682 7683 7684# Source file extension for C test sources. 7685ac_ext=c 7686 7687# Object file extension for compiled C test sources. 7688objext=o 7689objext=$objext 7690 7691# Code to be used in simple compile tests 7692lt_simple_compile_test_code="int some_variable = 0;\n" 7693 7694# Code to be used in simple link tests 7695lt_simple_link_test_code='int main(){return(0);}\n' 7696 7697 7698# If no C compiler was specified, use CC. 7699LTCC=${LTCC-"$CC"} 7700 7701# If no C compiler flags were specified, use CFLAGS. 7702LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7703 7704# Allow CC to be a program name with arguments. 7705compiler=$CC 7706 7707 7708# save warnings/boilerplate of simple test code 7709ac_outfile=conftest.$ac_objext 7710printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7711eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7712_lt_compiler_boilerplate=`cat conftest.err` 7713$rm conftest* 7714 7715ac_outfile=conftest.$ac_objext 7716printf "$lt_simple_link_test_code" >conftest.$ac_ext 7717eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7718_lt_linker_boilerplate=`cat conftest.err` 7719$rm conftest* 7720 7721 7722 7723lt_prog_compiler_no_builtin_flag= 7724 7725if test "$GCC" = yes; then 7726 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7727 7728 7729{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7730echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7731if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7732 echo $ECHO_N "(cached) $ECHO_C" >&6 7733else 7734 lt_cv_prog_compiler_rtti_exceptions=no 7735 ac_outfile=conftest.$ac_objext 7736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7737 lt_compiler_flag="-fno-rtti -fno-exceptions" 7738 # Insert the option either (1) after the last *FLAGS variable, or 7739 # (2) before a word containing "conftest.", or (3) at the end. 7740 # Note that $ac_compile itself does not contain backslashes and begins 7741 # with a dollar sign (not a hyphen), so the echo should work correctly. 7742 # The option is referenced via a variable to avoid confusing sed. 7743 lt_compile=`echo "$ac_compile" | $SED \ 7744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7746 -e 's:$: $lt_compiler_flag:'` 7747 (eval echo "\"\$as_me:7747: $lt_compile\"" >&5) 7748 (eval "$lt_compile" 2>conftest.err) 7749 ac_status=$? 7750 cat conftest.err >&5 7751 echo "$as_me:7751: \$? = $ac_status" >&5 7752 if (exit $ac_status) && test -s "$ac_outfile"; then 7753 # The compiler can only warn and ignore the option if not recognized 7754 # So say no if there are warnings other than the usual output. 7755 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7758 lt_cv_prog_compiler_rtti_exceptions=yes 7759 fi 7760 fi 7761 $rm conftest* 7762 7763fi 7764{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7765echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7766 7767if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7768 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7769else 7770 : 7771fi 7772 7773fi 7774 7775lt_prog_compiler_wl= 7776lt_prog_compiler_pic= 7777lt_prog_compiler_static= 7778 7779{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7780echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7781 7782 if test "$GCC" = yes; then 7783 lt_prog_compiler_wl='-Wl,' 7784 lt_prog_compiler_static='-static' 7785 7786 case $host_os in 7787 aix*) 7788 # All AIX code is PIC. 7789 if test "$host_cpu" = ia64; then 7790 # AIX 5 now supports IA64 processor 7791 lt_prog_compiler_static='-Bstatic' 7792 fi 7793 ;; 7794 7795 amigaos*) 7796 # FIXME: we need at least 68020 code to build shared libraries, but 7797 # adding the `-m68020' flag to GCC prevents building anything better, 7798 # like `-m68040'. 7799 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7800 ;; 7801 7802 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7803 # PIC is the default for these OSes. 7804 ;; 7805 7806 mingw* | pw32* | os2*) 7807 # This hack is so that the source file can tell whether it is being 7808 # built for inclusion in a dll (and should export symbols for example). 7809 lt_prog_compiler_pic='-DDLL_EXPORT' 7810 ;; 7811 7812 darwin* | rhapsody*) 7813 # PIC is the default on this platform 7814 # Common symbols not allowed in MH_DYLIB files 7815 lt_prog_compiler_pic='-fno-common' 7816 ;; 7817 7818 interix3*) 7819 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7820 # Instead, we relocate shared libraries at runtime. 7821 ;; 7822 7823 msdosdjgpp*) 7824 # Just because we use GCC doesn't mean we suddenly get shared libraries 7825 # on systems that don't support them. 7826 lt_prog_compiler_can_build_shared=no 7827 enable_shared=no 7828 ;; 7829 7830 sysv4*MP*) 7831 if test -d /usr/nec; then 7832 lt_prog_compiler_pic=-Kconform_pic 7833 fi 7834 ;; 7835 7836 hpux*) 7837 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7838 # not for PA HP-UX. 7839 case $host_cpu in 7840 hppa*64*|ia64*) 7841 # +Z the default 7842 ;; 7843 *) 7844 lt_prog_compiler_pic='-fPIC' 7845 ;; 7846 esac 7847 ;; 7848 7849 *) 7850 lt_prog_compiler_pic='-fPIC' 7851 ;; 7852 esac 7853 else 7854 # PORTME Check for flag to pass linker flags through the system compiler. 7855 case $host_os in 7856 aix*) 7857 lt_prog_compiler_wl='-Wl,' 7858 if test "$host_cpu" = ia64; then 7859 # AIX 5 now supports IA64 processor 7860 lt_prog_compiler_static='-Bstatic' 7861 else 7862 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7863 fi 7864 ;; 7865 darwin*) 7866 # PIC is the default on this platform 7867 # Common symbols not allowed in MH_DYLIB files 7868 case $cc_basename in 7869 xlc*) 7870 lt_prog_compiler_pic='-qnocommon' 7871 lt_prog_compiler_wl='-Wl,' 7872 ;; 7873 esac 7874 ;; 7875 7876 mingw* | pw32* | os2*) 7877 # This hack is so that the source file can tell whether it is being 7878 # built for inclusion in a dll (and should export symbols for example). 7879 lt_prog_compiler_pic='-DDLL_EXPORT' 7880 ;; 7881 7882 hpux9* | hpux10* | hpux11*) 7883 lt_prog_compiler_wl='-Wl,' 7884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7885 # not for PA HP-UX. 7886 case $host_cpu in 7887 hppa*64*|ia64*) 7888 # +Z the default 7889 ;; 7890 *) 7891 lt_prog_compiler_pic='+Z' 7892 ;; 7893 esac 7894 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7895 lt_prog_compiler_static='${wl}-a ${wl}archive' 7896 ;; 7897 7898 irix5* | irix6* | nonstopux*) 7899 lt_prog_compiler_wl='-Wl,' 7900 # PIC (with -KPIC) is the default. 7901 lt_prog_compiler_static='-non_shared' 7902 ;; 7903 7904 newsos6) 7905 lt_prog_compiler_pic='-KPIC' 7906 lt_prog_compiler_static='-Bstatic' 7907 ;; 7908 7909 linux* | k*bsd*-gnu) 7910 case $cc_basename in 7911 icc* | ecc*) 7912 lt_prog_compiler_wl='-Wl,' 7913 lt_prog_compiler_pic='-KPIC' 7914 lt_prog_compiler_static='-static' 7915 ;; 7916 pgcc* | pgf77* | pgf90* | pgf95*) 7917 # Portland Group compilers (*not* the Pentium gcc compiler, 7918 # which looks to be a dead project) 7919 lt_prog_compiler_wl='-Wl,' 7920 lt_prog_compiler_pic='-fpic' 7921 lt_prog_compiler_static='-Bstatic' 7922 ;; 7923 ccc*) 7924 lt_prog_compiler_wl='-Wl,' 7925 # All Alpha code is PIC. 7926 lt_prog_compiler_static='-non_shared' 7927 ;; 7928 esac 7929 ;; 7930 7931 osf3* | osf4* | osf5*) 7932 lt_prog_compiler_wl='-Wl,' 7933 # All OSF/1 code is PIC. 7934 lt_prog_compiler_static='-non_shared' 7935 ;; 7936 7937 solaris*) 7938 lt_prog_compiler_pic='-KPIC' 7939 lt_prog_compiler_static='-Bstatic' 7940 case $cc_basename in 7941 f77* | f90* | f95*) 7942 lt_prog_compiler_wl='-Qoption ld ';; 7943 *) 7944 lt_prog_compiler_wl='-Wl,';; 7945 esac 7946 ;; 7947 7948 sunos4*) 7949 lt_prog_compiler_wl='-Qoption ld ' 7950 lt_prog_compiler_pic='-PIC' 7951 lt_prog_compiler_static='-Bstatic' 7952 ;; 7953 7954 sysv4 | sysv4.2uw2* | sysv4.3*) 7955 lt_prog_compiler_wl='-Wl,' 7956 lt_prog_compiler_pic='-KPIC' 7957 lt_prog_compiler_static='-Bstatic' 7958 ;; 7959 7960 sysv4*MP*) 7961 if test -d /usr/nec ;then 7962 lt_prog_compiler_pic='-Kconform_pic' 7963 lt_prog_compiler_static='-Bstatic' 7964 fi 7965 ;; 7966 7967 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7968 lt_prog_compiler_wl='-Wl,' 7969 lt_prog_compiler_pic='-KPIC' 7970 lt_prog_compiler_static='-Bstatic' 7971 ;; 7972 7973 unicos*) 7974 lt_prog_compiler_wl='-Wl,' 7975 lt_prog_compiler_can_build_shared=no 7976 ;; 7977 7978 uts4*) 7979 lt_prog_compiler_pic='-pic' 7980 lt_prog_compiler_static='-Bstatic' 7981 ;; 7982 7983 *) 7984 lt_prog_compiler_can_build_shared=no 7985 ;; 7986 esac 7987 fi 7988 7989{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7990echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7991 7992# 7993# Check to make sure the PIC flag actually works. 7994# 7995if test -n "$lt_prog_compiler_pic"; then 7996 7997{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7998echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7999if test "${lt_prog_compiler_pic_works+set}" = set; then 8000 echo $ECHO_N "(cached) $ECHO_C" >&6 8001else 8002 lt_prog_compiler_pic_works=no 8003 ac_outfile=conftest.$ac_objext 8004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8005 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8006 # Insert the option either (1) after the last *FLAGS variable, or 8007 # (2) before a word containing "conftest.", or (3) at the end. 8008 # Note that $ac_compile itself does not contain backslashes and begins 8009 # with a dollar sign (not a hyphen), so the echo should work correctly. 8010 # The option is referenced via a variable to avoid confusing sed. 8011 lt_compile=`echo "$ac_compile" | $SED \ 8012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8014 -e 's:$: $lt_compiler_flag:'` 8015 (eval echo "\"\$as_me:8015: $lt_compile\"" >&5) 8016 (eval "$lt_compile" 2>conftest.err) 8017 ac_status=$? 8018 cat conftest.err >&5 8019 echo "$as_me:8019: \$? = $ac_status" >&5 8020 if (exit $ac_status) && test -s "$ac_outfile"; then 8021 # The compiler can only warn and ignore the option if not recognized 8022 # So say no if there are warnings other than the usual output. 8023 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8026 lt_prog_compiler_pic_works=yes 8027 fi 8028 fi 8029 $rm conftest* 8030 8031fi 8032{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8033echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 8034 8035if test x"$lt_prog_compiler_pic_works" = xyes; then 8036 case $lt_prog_compiler_pic in 8037 "" | " "*) ;; 8038 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8039 esac 8040else 8041 lt_prog_compiler_pic= 8042 lt_prog_compiler_can_build_shared=no 8043fi 8044 8045fi 8046case $host_os in 8047 # For platforms which do not support PIC, -DPIC is meaningless: 8048 *djgpp*) 8049 lt_prog_compiler_pic= 8050 ;; 8051 *) 8052 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8053 ;; 8054esac 8055 8056# 8057# Check to make sure the static flag actually works. 8058# 8059wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8060{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8061echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 8062if test "${lt_prog_compiler_static_works+set}" = set; then 8063 echo $ECHO_N "(cached) $ECHO_C" >&6 8064else 8065 lt_prog_compiler_static_works=no 8066 save_LDFLAGS="$LDFLAGS" 8067 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8068 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8069 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8070 # The linker can only warn and ignore the option if not recognized 8071 # So say no if there are warnings 8072 if test -s conftest.err; then 8073 # Append any errors to the config.log. 8074 cat conftest.err 1>&5 8075 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8077 if diff conftest.exp conftest.er2 >/dev/null; then 8078 lt_prog_compiler_static_works=yes 8079 fi 8080 else 8081 lt_prog_compiler_static_works=yes 8082 fi 8083 fi 8084 $rm conftest* 8085 LDFLAGS="$save_LDFLAGS" 8086 8087fi 8088{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8089echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 8090 8091if test x"$lt_prog_compiler_static_works" = xyes; then 8092 : 8093else 8094 lt_prog_compiler_static= 8095fi 8096 8097 8098{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8099echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8100if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8101 echo $ECHO_N "(cached) $ECHO_C" >&6 8102else 8103 lt_cv_prog_compiler_c_o=no 8104 $rm -r conftest 2>/dev/null 8105 mkdir conftest 8106 cd conftest 8107 mkdir out 8108 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8109 8110 lt_compiler_flag="-o out/conftest2.$ac_objext" 8111 # Insert the option either (1) after the last *FLAGS variable, or 8112 # (2) before a word containing "conftest.", or (3) at the end. 8113 # Note that $ac_compile itself does not contain backslashes and begins 8114 # with a dollar sign (not a hyphen), so the echo should work correctly. 8115 lt_compile=`echo "$ac_compile" | $SED \ 8116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8118 -e 's:$: $lt_compiler_flag:'` 8119 (eval echo "\"\$as_me:8119: $lt_compile\"" >&5) 8120 (eval "$lt_compile" 2>out/conftest.err) 8121 ac_status=$? 8122 cat out/conftest.err >&5 8123 echo "$as_me:8123: \$? = $ac_status" >&5 8124 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8125 then 8126 # The compiler can only warn and ignore the option if not recognized 8127 # So say no if there are warnings 8128 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8129 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8130 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8131 lt_cv_prog_compiler_c_o=yes 8132 fi 8133 fi 8134 chmod u+w . 2>&5 8135 $rm conftest* 8136 # SGI C++ compiler will create directory out/ii_files/ for 8137 # template instantiation 8138 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8139 $rm out/* && rmdir out 8140 cd .. 8141 rmdir conftest 8142 $rm conftest* 8143 8144fi 8145{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8146echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8147 8148 8149hard_links="nottested" 8150if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8151 # do not overwrite the value of need_locks provided by the user 8152 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8153echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 8154 hard_links=yes 8155 $rm conftest* 8156 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8157 touch conftest.a 8158 ln conftest.a conftest.b 2>&5 || hard_links=no 8159 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8160 { echo "$as_me:$LINENO: result: $hard_links" >&5 8161echo "${ECHO_T}$hard_links" >&6; } 8162 if test "$hard_links" = no; then 8163 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8164echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8165 need_locks=warn 8166 fi 8167else 8168 need_locks=no 8169fi 8170 8171{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8172echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 8173 8174 runpath_var= 8175 allow_undefined_flag= 8176 enable_shared_with_static_runtimes=no 8177 archive_cmds= 8178 archive_expsym_cmds= 8179 old_archive_From_new_cmds= 8180 old_archive_from_expsyms_cmds= 8181 export_dynamic_flag_spec= 8182 whole_archive_flag_spec= 8183 thread_safe_flag_spec= 8184 hardcode_libdir_flag_spec= 8185 hardcode_libdir_flag_spec_ld= 8186 hardcode_libdir_separator= 8187 hardcode_direct=no 8188 hardcode_minus_L=no 8189 hardcode_shlibpath_var=unsupported 8190 link_all_deplibs=unknown 8191 hardcode_automatic=no 8192 module_cmds= 8193 module_expsym_cmds= 8194 always_export_symbols=no 8195 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8196 # include_expsyms should be a list of space-separated symbols to be *always* 8197 # included in the symbol list 8198 include_expsyms= 8199 # exclude_expsyms can be an extended regexp of symbols to exclude 8200 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8201 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8202 # as well as any symbol that contains `d'. 8203 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8204 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8205 # platforms (ab)use it in PIC code, but their linkers get confused if 8206 # the symbol is explicitly referenced. Since portable code cannot 8207 # rely on this symbol name, it's probably fine to never include it in 8208 # preloaded symbol tables. 8209 extract_expsyms_cmds= 8210 # Just being paranoid about ensuring that cc_basename is set. 8211 for cc_temp in $compiler""; do 8212 case $cc_temp in 8213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8215 \-*) ;; 8216 *) break;; 8217 esac 8218done 8219cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8220 8221 case $host_os in 8222 cygwin* | mingw* | pw32*) 8223 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8224 # When not using gcc, we currently assume that we are using 8225 # Microsoft Visual C++. 8226 if test "$GCC" != yes; then 8227 with_gnu_ld=no 8228 fi 8229 ;; 8230 interix*) 8231 # we just hope/assume this is gcc and not c89 (= MSVC++) 8232 with_gnu_ld=yes 8233 ;; 8234 openbsd*) 8235 with_gnu_ld=no 8236 ;; 8237 esac 8238 8239 ld_shlibs=yes 8240 if test "$with_gnu_ld" = yes; then 8241 # If archive_cmds runs LD, not CC, wlarc should be empty 8242 wlarc='${wl}' 8243 8244 # Set some defaults for GNU ld with shared library support. These 8245 # are reset later if shared libraries are not supported. Putting them 8246 # here allows them to be overridden if necessary. 8247 runpath_var=LD_RUN_PATH 8248 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8249 export_dynamic_flag_spec='${wl}--export-dynamic' 8250 # ancient GNU ld didn't support --whole-archive et. al. 8251 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8252 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8253 else 8254 whole_archive_flag_spec= 8255 fi 8256 supports_anon_versioning=no 8257 case `$LD -v 2>/dev/null` in 8258 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8259 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8260 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8261 *\ 2.11.*) ;; # other 2.11 versions 8262 *) supports_anon_versioning=yes ;; 8263 esac 8264 8265 # See if GNU ld supports shared libraries. 8266 case $host_os in 8267 aix3* | aix4* | aix5*) 8268 # On AIX/PPC, the GNU linker is very broken 8269 if test "$host_cpu" != ia64; then 8270 ld_shlibs=no 8271 cat <<EOF 1>&2 8272 8273*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8274*** to be unable to reliably create shared libraries on AIX. 8275*** Therefore, libtool is disabling shared libraries support. If you 8276*** really care for shared libraries, you may want to modify your PATH 8277*** so that a non-GNU linker is found, and then restart. 8278 8279EOF 8280 fi 8281 ;; 8282 8283 amigaos*) 8284 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)' 8285 hardcode_libdir_flag_spec='-L$libdir' 8286 hardcode_minus_L=yes 8287 8288 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8289 # that the semantics of dynamic libraries on AmigaOS, at least up 8290 # to version 4, is to share data among multiple programs linked 8291 # with the same dynamic library. Since this doesn't match the 8292 # behavior of shared libraries on other platforms, we can't use 8293 # them. 8294 ld_shlibs=no 8295 ;; 8296 8297 beos*) 8298 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8299 allow_undefined_flag=unsupported 8300 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8301 # support --undefined. This deserves some investigation. FIXME 8302 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8303 else 8304 ld_shlibs=no 8305 fi 8306 ;; 8307 8308 cygwin* | mingw* | pw32*) 8309 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8310 # as there is no search path for DLLs. 8311 hardcode_libdir_flag_spec='-L$libdir' 8312 allow_undefined_flag=unsupported 8313 always_export_symbols=no 8314 enable_shared_with_static_runtimes=yes 8315 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8316 8317 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8319 # If the export-symbols file already is a .def file (1st line 8320 # is EXPORTS), use it as is; otherwise, prepend... 8321 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8322 cp $export_symbols $output_objdir/$soname.def; 8323 else 8324 echo EXPORTS > $output_objdir/$soname.def; 8325 cat $export_symbols >> $output_objdir/$soname.def; 8326 fi~ 8327 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8328 else 8329 ld_shlibs=no 8330 fi 8331 ;; 8332 8333 interix3*) 8334 hardcode_direct=no 8335 hardcode_shlibpath_var=no 8336 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8337 export_dynamic_flag_spec='${wl}-E' 8338 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8339 # Instead, shared libraries are loaded at an image base (0x10000000 by 8340 # default) and relocated if they conflict, which is a slow very memory 8341 # consuming and fragmenting process. To avoid this, we pick a random, 8342 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8343 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8344 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8345 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' 8346 ;; 8347 8348 linux* | k*bsd*-gnu) 8349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8350 tmp_addflag= 8351 case $cc_basename,$host_cpu in 8352 pgcc*) # Portland Group C compiler 8353 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' 8354 tmp_addflag=' $pic_flag' 8355 ;; 8356 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8357 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' 8358 tmp_addflag=' $pic_flag -Mnomain' ;; 8359 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8360 tmp_addflag=' -i_dynamic' ;; 8361 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8362 tmp_addflag=' -i_dynamic -nofor_main' ;; 8363 ifc* | ifort*) # Intel Fortran compiler 8364 tmp_addflag=' -nofor_main' ;; 8365 esac 8366 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8367 8368 if test $supports_anon_versioning = yes; then 8369 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8370 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8371 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8372 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8373 fi 8374 link_all_deplibs=no 8375 else 8376 ld_shlibs=no 8377 fi 8378 ;; 8379 8380 netbsd* | netbsdelf*-gnu) 8381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8382 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8383 wlarc= 8384 else 8385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8386 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8387 fi 8388 ;; 8389 8390 solaris*) 8391 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8392 ld_shlibs=no 8393 cat <<EOF 1>&2 8394 8395*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8396*** create shared libraries on Solaris systems. Therefore, libtool 8397*** is disabling shared libraries support. We urge you to upgrade GNU 8398*** binutils to release 2.9.1 or newer. Another option is to modify 8399*** your PATH or compiler configuration so that the native linker is 8400*** used, and then restart. 8401 8402EOF 8403 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8406 else 8407 ld_shlibs=no 8408 fi 8409 ;; 8410 8411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8412 case `$LD -v 2>&1` in 8413 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8414 ld_shlibs=no 8415 cat <<_LT_EOF 1>&2 8416 8417*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8418*** reliably create shared libraries on SCO systems. Therefore, libtool 8419*** is disabling shared libraries support. We urge you to upgrade GNU 8420*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8421*** your PATH or compiler configuration so that the native linker is 8422*** used, and then restart. 8423 8424_LT_EOF 8425 ;; 8426 *) 8427 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8428 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8430 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8431 else 8432 ld_shlibs=no 8433 fi 8434 ;; 8435 esac 8436 ;; 8437 8438 sunos4*) 8439 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8440 wlarc= 8441 hardcode_direct=yes 8442 hardcode_shlibpath_var=no 8443 ;; 8444 8445 *) 8446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8449 else 8450 ld_shlibs=no 8451 fi 8452 ;; 8453 esac 8454 8455 if test "$ld_shlibs" = no; then 8456 runpath_var= 8457 hardcode_libdir_flag_spec= 8458 export_dynamic_flag_spec= 8459 whole_archive_flag_spec= 8460 fi 8461 else 8462 # PORTME fill in a description of your system's linker (not GNU ld) 8463 case $host_os in 8464 aix3*) 8465 allow_undefined_flag=unsupported 8466 always_export_symbols=yes 8467 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' 8468 # Note: this linker hardcodes the directories in LIBPATH if there 8469 # are no directories specified by -L. 8470 hardcode_minus_L=yes 8471 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8472 # Neither direct hardcoding nor static linking is supported with a 8473 # broken collect2. 8474 hardcode_direct=unsupported 8475 fi 8476 ;; 8477 8478 aix4* | aix5*) 8479 if test "$host_cpu" = ia64; then 8480 # On IA64, the linker does run time linking by default, so we don't 8481 # have to do anything special. 8482 aix_use_runtimelinking=no 8483 exp_sym_flag='-Bexport' 8484 no_entry_flag="" 8485 else 8486 # If we're using GNU nm, then we don't want the "-C" option. 8487 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8488 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8489 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' 8490 else 8491 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' 8492 fi 8493 aix_use_runtimelinking=no 8494 8495 # Test if we are trying to use run time linking or normal 8496 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8497 # need to do runtime linking. 8498 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8499 for ld_flag in $LDFLAGS; do 8500 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8501 aix_use_runtimelinking=yes 8502 break 8503 fi 8504 done 8505 ;; 8506 esac 8507 8508 exp_sym_flag='-bexport' 8509 no_entry_flag='-bnoentry' 8510 fi 8511 8512 # When large executables or shared objects are built, AIX ld can 8513 # have problems creating the table of contents. If linking a library 8514 # or program results in "error TOC overflow" add -mminimal-toc to 8515 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8516 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8517 8518 archive_cmds='' 8519 hardcode_direct=yes 8520 hardcode_libdir_separator=':' 8521 link_all_deplibs=yes 8522 8523 if test "$GCC" = yes; then 8524 case $host_os in aix4.[012]|aix4.[012].*) 8525 # We only want to do this on AIX 4.2 and lower, the check 8526 # below for broken collect2 doesn't work under 4.3+ 8527 collect2name=`${CC} -print-prog-name=collect2` 8528 if test -f "$collect2name" && \ 8529 strings "$collect2name" | grep resolve_lib_name >/dev/null 8530 then 8531 # We have reworked collect2 8532 hardcode_direct=yes 8533 else 8534 # We have old collect2 8535 hardcode_direct=unsupported 8536 # It fails to find uninstalled libraries when the uninstalled 8537 # path is not listed in the libpath. Setting hardcode_minus_L 8538 # to unsupported forces relinking 8539 hardcode_minus_L=yes 8540 hardcode_libdir_flag_spec='-L$libdir' 8541 hardcode_libdir_separator= 8542 fi 8543 ;; 8544 esac 8545 shared_flag='-shared' 8546 if test "$aix_use_runtimelinking" = yes; then 8547 shared_flag="$shared_flag "'${wl}-G' 8548 fi 8549 else 8550 # not using gcc 8551 if test "$host_cpu" = ia64; then 8552 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8553 # chokes on -Wl,-G. The following line is correct: 8554 shared_flag='-G' 8555 else 8556 if test "$aix_use_runtimelinking" = yes; then 8557 shared_flag='${wl}-G' 8558 else 8559 shared_flag='${wl}-bM:SRE' 8560 fi 8561 fi 8562 fi 8563 8564 # It seems that -bexpall does not export symbols beginning with 8565 # underscore (_), so it is better to generate a list of symbols to export. 8566 always_export_symbols=yes 8567 if test "$aix_use_runtimelinking" = yes; then 8568 # Warning - without using the other runtime loading flags (-brtl), 8569 # -berok will link without error, but may produce a broken library. 8570 allow_undefined_flag='-berok' 8571 # Determine the default libpath from the value encoded in an empty executable. 8572 cat >conftest.$ac_ext <<_ACEOF 8573/* confdefs.h. */ 8574_ACEOF 8575cat confdefs.h >>conftest.$ac_ext 8576cat >>conftest.$ac_ext <<_ACEOF 8577/* end confdefs.h. */ 8578 8579int 8580main () 8581{ 8582 8583 ; 8584 return 0; 8585} 8586_ACEOF 8587rm -f conftest.$ac_objext conftest$ac_exeext 8588if { (ac_try="$ac_link" 8589case "(($ac_try" in 8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8591 *) ac_try_echo=$ac_try;; 8592esac 8593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8594 (eval "$ac_link") 2>conftest.er1 8595 ac_status=$? 8596 grep -v '^ *+' conftest.er1 >conftest.err 8597 rm -f conftest.er1 8598 cat conftest.err >&5 8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8600 (exit $ac_status); } && { 8601 test -z "$ac_c_werror_flag" || 8602 test ! -s conftest.err 8603 } && test -s conftest$ac_exeext && 8604 $as_test_x conftest$ac_exeext; then 8605 8606aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8607}'` 8608# Check for a 64-bit object if we didn't find anything. 8609if 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; } 8610}'`; fi 8611else 8612 echo "$as_me: failed program was:" >&5 8613sed 's/^/| /' conftest.$ac_ext >&5 8614 8615 8616fi 8617 8618rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8619 conftest$ac_exeext conftest.$ac_ext 8620if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8621 8622 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8623 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" 8624 else 8625 if test "$host_cpu" = ia64; then 8626 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8627 allow_undefined_flag="-z nodefs" 8628 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" 8629 else 8630 # Determine the default libpath from the value encoded in an empty executable. 8631 cat >conftest.$ac_ext <<_ACEOF 8632/* confdefs.h. */ 8633_ACEOF 8634cat confdefs.h >>conftest.$ac_ext 8635cat >>conftest.$ac_ext <<_ACEOF 8636/* end confdefs.h. */ 8637 8638int 8639main () 8640{ 8641 8642 ; 8643 return 0; 8644} 8645_ACEOF 8646rm -f conftest.$ac_objext conftest$ac_exeext 8647if { (ac_try="$ac_link" 8648case "(($ac_try" in 8649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8650 *) ac_try_echo=$ac_try;; 8651esac 8652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8653 (eval "$ac_link") 2>conftest.er1 8654 ac_status=$? 8655 grep -v '^ *+' conftest.er1 >conftest.err 8656 rm -f conftest.er1 8657 cat conftest.err >&5 8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8659 (exit $ac_status); } && { 8660 test -z "$ac_c_werror_flag" || 8661 test ! -s conftest.err 8662 } && test -s conftest$ac_exeext && 8663 $as_test_x conftest$ac_exeext; then 8664 8665aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8666}'` 8667# Check for a 64-bit object if we didn't find anything. 8668if 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; } 8669}'`; fi 8670else 8671 echo "$as_me: failed program was:" >&5 8672sed 's/^/| /' conftest.$ac_ext >&5 8673 8674 8675fi 8676 8677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8678 conftest$ac_exeext conftest.$ac_ext 8679if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8680 8681 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8682 # Warning - without using the other run time loading flags, 8683 # -berok will link without error, but may produce a broken library. 8684 no_undefined_flag=' ${wl}-bernotok' 8685 allow_undefined_flag=' ${wl}-berok' 8686 # Exported symbols can be pulled into shared objects from archives 8687 whole_archive_flag_spec='$convenience' 8688 archive_cmds_need_lc=yes 8689 # This is similar to how AIX traditionally builds its shared libraries. 8690 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' 8691 fi 8692 fi 8693 ;; 8694 8695 amigaos*) 8696 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)' 8697 hardcode_libdir_flag_spec='-L$libdir' 8698 hardcode_minus_L=yes 8699 # see comment about different semantics on the GNU ld section 8700 ld_shlibs=no 8701 ;; 8702 8703 bsdi[45]*) 8704 export_dynamic_flag_spec=-rdynamic 8705 ;; 8706 8707 cygwin* | mingw* | pw32*) 8708 # When not using gcc, we currently assume that we are using 8709 # Microsoft Visual C++. 8710 # hardcode_libdir_flag_spec is actually meaningless, as there is 8711 # no search path for DLLs. 8712 hardcode_libdir_flag_spec=' ' 8713 allow_undefined_flag=unsupported 8714 # Tell ltmain to make .lib files, not .a files. 8715 libext=lib 8716 # Tell ltmain to make .dll files, not .so files. 8717 shrext_cmds=".dll" 8718 # FIXME: Setting linknames here is a bad hack. 8719 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8720 # The linker will automatically build a .lib file if we build a DLL. 8721 old_archive_From_new_cmds='true' 8722 # FIXME: Should let the user specify the lib program. 8723 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8724 fix_srcfile_path='`cygpath -w "$srcfile"`' 8725 enable_shared_with_static_runtimes=yes 8726 ;; 8727 8728 darwin* | rhapsody*) 8729 case $host_os in 8730 rhapsody* | darwin1.[012]) 8731 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8732 ;; 8733 *) # Darwin 1.3 on 8734 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8735 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8736 else 8737 case ${MACOSX_DEPLOYMENT_TARGET} in 8738 10.[012]) 8739 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8740 ;; 8741 10.*) 8742 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8743 ;; 8744 esac 8745 fi 8746 ;; 8747 esac 8748 archive_cmds_need_lc=no 8749 hardcode_direct=no 8750 hardcode_automatic=yes 8751 hardcode_shlibpath_var=unsupported 8752 whole_archive_flag_spec='' 8753 link_all_deplibs=yes 8754 if test "$GCC" = yes ; then 8755 output_verbose_link_cmd='echo' 8756 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8757 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8758 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8759 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}' 8760 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}' 8761 else 8762 case $cc_basename in 8763 xlc*) 8764 output_verbose_link_cmd='echo' 8765 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8766 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8767 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8768 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}' 8769 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}' 8770 ;; 8771 *) 8772 ld_shlibs=no 8773 ;; 8774 esac 8775 fi 8776 ;; 8777 8778 dgux*) 8779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8780 hardcode_libdir_flag_spec='-L$libdir' 8781 hardcode_shlibpath_var=no 8782 ;; 8783 8784 freebsd1*) 8785 ld_shlibs=no 8786 ;; 8787 8788 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8789 # support. Future versions do this automatically, but an explicit c++rt0.o 8790 # does not break anything, and helps significantly (at the cost of a little 8791 # extra space). 8792 freebsd2.2*) 8793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8794 hardcode_libdir_flag_spec='-R$libdir' 8795 hardcode_direct=yes 8796 hardcode_shlibpath_var=no 8797 ;; 8798 8799 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8800 freebsd2*) 8801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8802 hardcode_direct=yes 8803 hardcode_minus_L=yes 8804 hardcode_shlibpath_var=no 8805 ;; 8806 8807 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8808 freebsd* | dragonfly*) 8809 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8810 hardcode_libdir_flag_spec='-R$libdir' 8811 hardcode_direct=yes 8812 hardcode_shlibpath_var=no 8813 ;; 8814 8815 hpux9*) 8816 if test "$GCC" = yes; then 8817 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' 8818 else 8819 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' 8820 fi 8821 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8822 hardcode_libdir_separator=: 8823 hardcode_direct=yes 8824 8825 # hardcode_minus_L: Not really in the search PATH, 8826 # but as the default location of the library. 8827 hardcode_minus_L=yes 8828 export_dynamic_flag_spec='${wl}-E' 8829 ;; 8830 8831 hpux10*) 8832 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8833 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8834 else 8835 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8836 fi 8837 if test "$with_gnu_ld" = no; then 8838 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8839 hardcode_libdir_separator=: 8840 8841 hardcode_direct=yes 8842 export_dynamic_flag_spec='${wl}-E' 8843 8844 # hardcode_minus_L: Not really in the search PATH, 8845 # but as the default location of the library. 8846 hardcode_minus_L=yes 8847 fi 8848 ;; 8849 8850 hpux11*) 8851 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8852 case $host_cpu in 8853 hppa*64*) 8854 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8855 ;; 8856 ia64*) 8857 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8858 ;; 8859 *) 8860 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8861 ;; 8862 esac 8863 else 8864 case $host_cpu in 8865 hppa*64*) 8866 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8867 ;; 8868 ia64*) 8869 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8870 ;; 8871 *) 8872 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8873 ;; 8874 esac 8875 fi 8876 if test "$with_gnu_ld" = no; then 8877 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8878 hardcode_libdir_separator=: 8879 8880 case $host_cpu in 8881 hppa*64*|ia64*) 8882 hardcode_libdir_flag_spec_ld='+b $libdir' 8883 hardcode_direct=no 8884 hardcode_shlibpath_var=no 8885 ;; 8886 *) 8887 hardcode_direct=yes 8888 export_dynamic_flag_spec='${wl}-E' 8889 8890 # hardcode_minus_L: Not really in the search PATH, 8891 # but as the default location of the library. 8892 hardcode_minus_L=yes 8893 ;; 8894 esac 8895 fi 8896 ;; 8897 8898 irix5* | irix6* | nonstopux*) 8899 if test "$GCC" = yes; then 8900 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' 8901 else 8902 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' 8903 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8904 fi 8905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8906 hardcode_libdir_separator=: 8907 link_all_deplibs=yes 8908 ;; 8909 8910 netbsd* | netbsdelf*-gnu) 8911 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8913 else 8914 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8915 fi 8916 hardcode_libdir_flag_spec='-R$libdir' 8917 hardcode_direct=yes 8918 hardcode_shlibpath_var=no 8919 ;; 8920 8921 newsos6) 8922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8923 hardcode_direct=yes 8924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8925 hardcode_libdir_separator=: 8926 hardcode_shlibpath_var=no 8927 ;; 8928 8929 openbsd*) 8930 hardcode_direct=yes 8931 hardcode_shlibpath_var=no 8932 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8933 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8934 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8935 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8936 export_dynamic_flag_spec='${wl}-E' 8937 else 8938 case $host_os in 8939 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8940 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8941 hardcode_libdir_flag_spec='-R$libdir' 8942 ;; 8943 *) 8944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8946 ;; 8947 esac 8948 fi 8949 ;; 8950 8951 os2*) 8952 hardcode_libdir_flag_spec='-L$libdir' 8953 hardcode_minus_L=yes 8954 allow_undefined_flag=unsupported 8955 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' 8956 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8957 ;; 8958 8959 osf3*) 8960 if test "$GCC" = yes; then 8961 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8962 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' 8963 else 8964 allow_undefined_flag=' -expect_unresolved \*' 8965 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' 8966 fi 8967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8968 hardcode_libdir_separator=: 8969 ;; 8970 8971 osf4* | osf5*) # as osf3* with the addition of -msym flag 8972 if test "$GCC" = yes; then 8973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8974 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' 8975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8976 else 8977 allow_undefined_flag=' -expect_unresolved \*' 8978 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' 8979 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8980 $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' 8981 8982 # Both c and cxx compiler support -rpath directly 8983 hardcode_libdir_flag_spec='-rpath $libdir' 8984 fi 8985 hardcode_libdir_separator=: 8986 ;; 8987 8988 solaris*) 8989 no_undefined_flag=' -z text' 8990 if test "$GCC" = yes; then 8991 wlarc='${wl}' 8992 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8993 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8994 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8995 else 8996 wlarc='' 8997 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8998 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8999 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9000 fi 9001 hardcode_libdir_flag_spec='-R$libdir' 9002 hardcode_shlibpath_var=no 9003 case $host_os in 9004 solaris2.[0-5] | solaris2.[0-5].*) ;; 9005 *) 9006 # The compiler driver will combine linker options so we 9007 # cannot just pass the convience library names through 9008 # without $wl, iff we do not link with $LD. 9009 # Luckily, gcc supports the same syntax we need for Sun Studio. 9010 # Supported since Solaris 2.6 (maybe 2.5.1?) 9011 case $wlarc in 9012 '') 9013 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9014 *) 9015 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' ;; 9016 esac ;; 9017 esac 9018 link_all_deplibs=yes 9019 ;; 9020 9021 sunos4*) 9022 if test "x$host_vendor" = xsequent; then 9023 # Use $CC to link under sequent, because it throws in some extra .o 9024 # files that make .init and .fini sections work. 9025 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9026 else 9027 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9028 fi 9029 hardcode_libdir_flag_spec='-L$libdir' 9030 hardcode_direct=yes 9031 hardcode_minus_L=yes 9032 hardcode_shlibpath_var=no 9033 ;; 9034 9035 sysv4) 9036 case $host_vendor in 9037 sni) 9038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9039 hardcode_direct=yes # is this really true??? 9040 ;; 9041 siemens) 9042 ## LD is ld it makes a PLAMLIB 9043 ## CC just makes a GrossModule. 9044 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9045 reload_cmds='$CC -r -o $output$reload_objs' 9046 hardcode_direct=no 9047 ;; 9048 motorola) 9049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9050 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9051 ;; 9052 esac 9053 runpath_var='LD_RUN_PATH' 9054 hardcode_shlibpath_var=no 9055 ;; 9056 9057 sysv4.3*) 9058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9059 hardcode_shlibpath_var=no 9060 export_dynamic_flag_spec='-Bexport' 9061 ;; 9062 9063 sysv4*MP*) 9064 if test -d /usr/nec; then 9065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9066 hardcode_shlibpath_var=no 9067 runpath_var=LD_RUN_PATH 9068 hardcode_runpath_var=yes 9069 ld_shlibs=yes 9070 fi 9071 ;; 9072 9073 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 9074 no_undefined_flag='${wl}-z,text' 9075 archive_cmds_need_lc=no 9076 hardcode_shlibpath_var=no 9077 runpath_var='LD_RUN_PATH' 9078 9079 if test "$GCC" = yes; then 9080 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9081 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9082 else 9083 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9084 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9085 fi 9086 ;; 9087 9088 sysv5* | sco3.2v5* | sco5v6*) 9089 # Note: We can NOT use -z defs as we might desire, because we do not 9090 # link with -lc, and that would cause any symbols used from libc to 9091 # always be unresolved, which means just about no library would 9092 # ever link correctly. If we're not using GNU ld we use -z text 9093 # though, which does catch some bad symbols but isn't as heavy-handed 9094 # as -z defs. 9095 no_undefined_flag='${wl}-z,text' 9096 allow_undefined_flag='${wl}-z,nodefs' 9097 archive_cmds_need_lc=no 9098 hardcode_shlibpath_var=no 9099 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9100 hardcode_libdir_separator=':' 9101 link_all_deplibs=yes 9102 export_dynamic_flag_spec='${wl}-Bexport' 9103 runpath_var='LD_RUN_PATH' 9104 9105 if test "$GCC" = yes; then 9106 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9107 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9108 else 9109 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9110 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9111 fi 9112 ;; 9113 9114 uts4*) 9115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9116 hardcode_libdir_flag_spec='-L$libdir' 9117 hardcode_shlibpath_var=no 9118 ;; 9119 9120 *) 9121 ld_shlibs=no 9122 ;; 9123 esac 9124 fi 9125 9126{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9127echo "${ECHO_T}$ld_shlibs" >&6; } 9128test "$ld_shlibs" = no && can_build_shared=no 9129 9130# 9131# Do we need to explicitly link libc? 9132# 9133case "x$archive_cmds_need_lc" in 9134x|xyes) 9135 # Assume -lc should be added 9136 archive_cmds_need_lc=yes 9137 9138 if test "$enable_shared" = yes && test "$GCC" = yes; then 9139 case $archive_cmds in 9140 *'~'*) 9141 # FIXME: we may have to deal with multi-command sequences. 9142 ;; 9143 '$CC '*) 9144 # Test whether the compiler implicitly links with -lc since on some 9145 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9146 # to ld, don't add -lc before -lgcc. 9147 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9148echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9149 $rm conftest* 9150 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9151 9152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9153 (eval $ac_compile) 2>&5 9154 ac_status=$? 9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9156 (exit $ac_status); } 2>conftest.err; then 9157 soname=conftest 9158 lib=conftest 9159 libobjs=conftest.$ac_objext 9160 deplibs= 9161 wl=$lt_prog_compiler_wl 9162 pic_flag=$lt_prog_compiler_pic 9163 compiler_flags=-v 9164 linker_flags=-v 9165 verstring= 9166 output_objdir=. 9167 libname=conftest 9168 lt_save_allow_undefined_flag=$allow_undefined_flag 9169 allow_undefined_flag= 9170 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9171 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9172 ac_status=$? 9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9174 (exit $ac_status); } 9175 then 9176 archive_cmds_need_lc=no 9177 else 9178 archive_cmds_need_lc=yes 9179 fi 9180 allow_undefined_flag=$lt_save_allow_undefined_flag 9181 else 9182 cat conftest.err 1>&5 9183 fi 9184 $rm conftest* 9185 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9186echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9187 ;; 9188 esac 9189 fi 9190 ;; 9191esac 9192 9193{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9194echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9195library_names_spec= 9196libname_spec='lib$name' 9197soname_spec= 9198shrext_cmds=".so" 9199postinstall_cmds= 9200postuninstall_cmds= 9201finish_cmds= 9202finish_eval= 9203shlibpath_var= 9204shlibpath_overrides_runpath=unknown 9205version_type=none 9206dynamic_linker="$host_os ld.so" 9207sys_lib_dlsearch_path_spec="/lib /usr/lib" 9208if test "$GCC" = yes; then 9209 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9210 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9211 # if the path contains ";" then we assume it to be the separator 9212 # otherwise default to the standard path separator (i.e. ":") - it is 9213 # assumed that no part of a normal pathname contains ";" but that should 9214 # okay in the real world where ";" in dirpaths is itself problematic. 9215 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9216 else 9217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9218 fi 9219else 9220 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9221fi 9222need_lib_prefix=unknown 9223hardcode_into_libs=no 9224 9225# when you set need_version to no, make sure it does not cause -set_version 9226# flags to be left without arguments 9227need_version=unknown 9228 9229case $host_os in 9230aix3*) 9231 version_type=linux 9232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9233 shlibpath_var=LIBPATH 9234 9235 # AIX 3 has no versioning support, so we append a major version to the name. 9236 soname_spec='${libname}${release}${shared_ext}$major' 9237 ;; 9238 9239aix4* | aix5*) 9240 version_type=linux 9241 need_lib_prefix=no 9242 need_version=no 9243 hardcode_into_libs=yes 9244 if test "$host_cpu" = ia64; then 9245 # AIX 5 supports IA64 9246 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9247 shlibpath_var=LD_LIBRARY_PATH 9248 else 9249 # With GCC up to 2.95.x, collect2 would create an import file 9250 # for dependence libraries. The import file would start with 9251 # the line `#! .'. This would cause the generated library to 9252 # depend on `.', always an invalid library. This was fixed in 9253 # development snapshots of GCC prior to 3.0. 9254 case $host_os in 9255 aix4 | aix4.[01] | aix4.[01].*) 9256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9257 echo ' yes ' 9258 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9259 : 9260 else 9261 can_build_shared=no 9262 fi 9263 ;; 9264 esac 9265 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9266 # soname into executable. Probably we can add versioning support to 9267 # collect2, so additional links can be useful in future. 9268 if test "$aix_use_runtimelinking" = yes; then 9269 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9270 # instead of lib<name>.a to let people know that these are not 9271 # typical AIX shared libraries. 9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9273 else 9274 # We preserve .a as extension for shared libraries through AIX4.2 9275 # and later when we are not doing run time linking. 9276 library_names_spec='${libname}${release}.a $libname.a' 9277 soname_spec='${libname}${release}${shared_ext}$major' 9278 fi 9279 shlibpath_var=LIBPATH 9280 fi 9281 ;; 9282 9283amigaos*) 9284 library_names_spec='$libname.ixlibrary $libname.a' 9285 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9286 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' 9287 ;; 9288 9289beos*) 9290 library_names_spec='${libname}${shared_ext}' 9291 dynamic_linker="$host_os ld.so" 9292 shlibpath_var=LIBRARY_PATH 9293 ;; 9294 9295bsdi[45]*) 9296 version_type=linux 9297 need_version=no 9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9299 soname_spec='${libname}${release}${shared_ext}$major' 9300 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9301 shlibpath_var=LD_LIBRARY_PATH 9302 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9303 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9304 # the default ld.so.conf also contains /usr/contrib/lib and 9305 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9306 # libtool to hard-code these into programs 9307 ;; 9308 9309cygwin* | mingw* | pw32*) 9310 version_type=windows 9311 shrext_cmds=".dll" 9312 need_version=no 9313 need_lib_prefix=no 9314 9315 case $GCC,$host_os in 9316 yes,cygwin* | yes,mingw* | yes,pw32*) 9317 library_names_spec='$libname.dll.a' 9318 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9319 postinstall_cmds='base_file=`basename \${file}`~ 9320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9321 dldir=$destdir/`dirname \$dlpath`~ 9322 test -d \$dldir || mkdir -p \$dldir~ 9323 $install_prog $dir/$dlname \$dldir/$dlname~ 9324 chmod a+x \$dldir/$dlname' 9325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9326 dlpath=$dir/\$dldll~ 9327 $rm \$dlpath' 9328 shlibpath_overrides_runpath=yes 9329 9330 case $host_os in 9331 cygwin*) 9332 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9333 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9334 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9335 ;; 9336 mingw*) 9337 # MinGW DLLs use traditional 'lib' prefix 9338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9339 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9340 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9341 # It is most probably a Windows format PATH printed by 9342 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9343 # path with ; separators, and with drive letters. We can handle the 9344 # drive letters (cygwin fileutils understands them), so leave them, 9345 # especially as we might pass files found there to a mingw objdump, 9346 # which wouldn't understand a cygwinified path. Ahh. 9347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9348 else 9349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9350 fi 9351 ;; 9352 pw32*) 9353 # pw32 DLLs use 'pw' prefix rather than 'lib' 9354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9355 ;; 9356 esac 9357 ;; 9358 9359 *) 9360 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9361 ;; 9362 esac 9363 dynamic_linker='Win32 ld.exe' 9364 # FIXME: first we should search . and the directory the executable is in 9365 shlibpath_var=PATH 9366 ;; 9367 9368darwin* | rhapsody*) 9369 dynamic_linker="$host_os dyld" 9370 version_type=darwin 9371 need_lib_prefix=no 9372 need_version=no 9373 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9374 soname_spec='${libname}${release}${major}$shared_ext' 9375 shlibpath_overrides_runpath=yes 9376 shlibpath_var=DYLD_LIBRARY_PATH 9377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9378 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9379 if test "$GCC" = yes; then 9380 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"` 9381 else 9382 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9383 fi 9384 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9385 ;; 9386 9387dgux*) 9388 version_type=linux 9389 need_lib_prefix=no 9390 need_version=no 9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9392 soname_spec='${libname}${release}${shared_ext}$major' 9393 shlibpath_var=LD_LIBRARY_PATH 9394 ;; 9395 9396freebsd1*) 9397 dynamic_linker=no 9398 ;; 9399 9400freebsd* | dragonfly*) 9401 # DragonFly does not have aout. When/if they implement a new 9402 # versioning mechanism, adjust this. 9403 if test -x /usr/bin/objformat; then 9404 objformat=`/usr/bin/objformat` 9405 else 9406 case $host_os in 9407 freebsd[123]*) objformat=aout ;; 9408 *) objformat=elf ;; 9409 esac 9410 fi 9411 version_type=freebsd-$objformat 9412 case $version_type in 9413 freebsd-elf*) 9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9415 need_version=no 9416 need_lib_prefix=no 9417 ;; 9418 freebsd-*) 9419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9420 need_version=yes 9421 ;; 9422 esac 9423 shlibpath_var=LD_LIBRARY_PATH 9424 case $host_os in 9425 freebsd2*) 9426 shlibpath_overrides_runpath=yes 9427 ;; 9428 freebsd3.[01]* | freebsdelf3.[01]*) 9429 shlibpath_overrides_runpath=yes 9430 hardcode_into_libs=yes 9431 ;; 9432 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9433 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9434 shlibpath_overrides_runpath=no 9435 hardcode_into_libs=yes 9436 ;; 9437 freebsd*) # from 4.6 on 9438 shlibpath_overrides_runpath=yes 9439 hardcode_into_libs=yes 9440 ;; 9441 esac 9442 ;; 9443 9444gnu*) 9445 version_type=linux 9446 need_lib_prefix=no 9447 need_version=no 9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9449 soname_spec='${libname}${release}${shared_ext}$major' 9450 shlibpath_var=LD_LIBRARY_PATH 9451 hardcode_into_libs=yes 9452 ;; 9453 9454hpux9* | hpux10* | hpux11*) 9455 # Give a soname corresponding to the major version so that dld.sl refuses to 9456 # link against other versions. 9457 version_type=sunos 9458 need_lib_prefix=no 9459 need_version=no 9460 case $host_cpu in 9461 ia64*) 9462 shrext_cmds='.so' 9463 hardcode_into_libs=yes 9464 dynamic_linker="$host_os dld.so" 9465 shlibpath_var=LD_LIBRARY_PATH 9466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9468 soname_spec='${libname}${release}${shared_ext}$major' 9469 if test "X$HPUX_IA64_MODE" = X32; then 9470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9471 else 9472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9473 fi 9474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9475 ;; 9476 hppa*64*) 9477 shrext_cmds='.sl' 9478 hardcode_into_libs=yes 9479 dynamic_linker="$host_os dld.sl" 9480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9483 soname_spec='${libname}${release}${shared_ext}$major' 9484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9486 ;; 9487 *) 9488 shrext_cmds='.sl' 9489 dynamic_linker="$host_os dld.sl" 9490 shlibpath_var=SHLIB_PATH 9491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9493 soname_spec='${libname}${release}${shared_ext}$major' 9494 ;; 9495 esac 9496 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9497 postinstall_cmds='chmod 555 $lib' 9498 ;; 9499 9500interix3*) 9501 version_type=linux 9502 need_lib_prefix=no 9503 need_version=no 9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9505 soname_spec='${libname}${release}${shared_ext}$major' 9506 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9507 shlibpath_var=LD_LIBRARY_PATH 9508 shlibpath_overrides_runpath=no 9509 hardcode_into_libs=yes 9510 ;; 9511 9512irix5* | irix6* | nonstopux*) 9513 case $host_os in 9514 nonstopux*) version_type=nonstopux ;; 9515 *) 9516 if test "$lt_cv_prog_gnu_ld" = yes; then 9517 version_type=linux 9518 else 9519 version_type=irix 9520 fi ;; 9521 esac 9522 need_lib_prefix=no 9523 need_version=no 9524 soname_spec='${libname}${release}${shared_ext}$major' 9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9526 case $host_os in 9527 irix5* | nonstopux*) 9528 libsuff= shlibsuff= 9529 ;; 9530 *) 9531 case $LD in # libtool.m4 will add one of these switches to LD 9532 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9533 libsuff= shlibsuff= libmagic=32-bit;; 9534 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9535 libsuff=32 shlibsuff=N32 libmagic=N32;; 9536 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9537 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9538 *) libsuff= shlibsuff= libmagic=never-match;; 9539 esac 9540 ;; 9541 esac 9542 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9543 shlibpath_overrides_runpath=no 9544 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9545 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9546 hardcode_into_libs=yes 9547 ;; 9548 9549# No shared lib support for Linux oldld, aout, or coff. 9550linux*oldld* | linux*aout* | linux*coff*) 9551 dynamic_linker=no 9552 ;; 9553 9554# This must be Linux ELF. 9555linux* | k*bsd*-gnu) 9556 version_type=linux 9557 need_lib_prefix=no 9558 need_version=no 9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9560 soname_spec='${libname}${release}${shared_ext}$major' 9561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9562 shlibpath_var=LD_LIBRARY_PATH 9563 shlibpath_overrides_runpath=no 9564 # This implies no fast_install, which is unacceptable. 9565 # Some rework will be needed to allow for fast_install 9566 # before this can be enabled. 9567 hardcode_into_libs=yes 9568 9569 # Append ld.so.conf contents to the search path 9570 if test -f /etc/ld.so.conf; then 9571 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' ' '` 9572 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9573 fi 9574 9575 # We used to test for /lib/ld.so.1 and disable shared libraries on 9576 # powerpc, because MkLinux only supported shared libraries with the 9577 # GNU dynamic linker. Since this was broken with cross compilers, 9578 # most powerpc-linux boxes support dynamic linking these days and 9579 # people can always --disable-shared, the test was removed, and we 9580 # assume the GNU/Linux dynamic linker is in use. 9581 dynamic_linker='GNU/Linux ld.so' 9582 ;; 9583 9584netbsdelf*-gnu) 9585 version_type=linux 9586 need_lib_prefix=no 9587 need_version=no 9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9589 soname_spec='${libname}${release}${shared_ext}$major' 9590 shlibpath_var=LD_LIBRARY_PATH 9591 shlibpath_overrides_runpath=no 9592 hardcode_into_libs=yes 9593 dynamic_linker='NetBSD ld.elf_so' 9594 ;; 9595 9596netbsd*) 9597 version_type=sunos 9598 need_lib_prefix=no 9599 need_version=no 9600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9603 dynamic_linker='NetBSD (a.out) ld.so' 9604 else 9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9606 soname_spec='${libname}${release}${shared_ext}$major' 9607 dynamic_linker='NetBSD ld.elf_so' 9608 fi 9609 shlibpath_var=LD_LIBRARY_PATH 9610 shlibpath_overrides_runpath=yes 9611 hardcode_into_libs=yes 9612 ;; 9613 9614newsos6) 9615 version_type=linux 9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9617 shlibpath_var=LD_LIBRARY_PATH 9618 shlibpath_overrides_runpath=yes 9619 ;; 9620 9621nto-qnx*) 9622 version_type=linux 9623 need_lib_prefix=no 9624 need_version=no 9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9626 soname_spec='${libname}${release}${shared_ext}$major' 9627 shlibpath_var=LD_LIBRARY_PATH 9628 shlibpath_overrides_runpath=yes 9629 ;; 9630 9631openbsd*) 9632 version_type=sunos 9633 sys_lib_dlsearch_path_spec="/usr/lib" 9634 need_lib_prefix=no 9635 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9636 case $host_os in 9637 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9638 *) need_version=no ;; 9639 esac 9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9642 shlibpath_var=LD_LIBRARY_PATH 9643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9644 case $host_os in 9645 openbsd2.[89] | openbsd2.[89].*) 9646 shlibpath_overrides_runpath=no 9647 ;; 9648 *) 9649 shlibpath_overrides_runpath=yes 9650 ;; 9651 esac 9652 else 9653 shlibpath_overrides_runpath=yes 9654 fi 9655 ;; 9656 9657os2*) 9658 libname_spec='$name' 9659 shrext_cmds=".dll" 9660 need_lib_prefix=no 9661 library_names_spec='$libname${shared_ext} $libname.a' 9662 dynamic_linker='OS/2 ld.exe' 9663 shlibpath_var=LIBPATH 9664 ;; 9665 9666osf3* | osf4* | osf5*) 9667 version_type=osf 9668 need_lib_prefix=no 9669 need_version=no 9670 soname_spec='${libname}${release}${shared_ext}$major' 9671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9672 shlibpath_var=LD_LIBRARY_PATH 9673 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9674 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9675 ;; 9676 9677solaris*) 9678 version_type=linux 9679 need_lib_prefix=no 9680 need_version=no 9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9682 soname_spec='${libname}${release}${shared_ext}$major' 9683 shlibpath_var=LD_LIBRARY_PATH 9684 shlibpath_overrides_runpath=yes 9685 hardcode_into_libs=yes 9686 # ldd complains unless libraries are executable 9687 postinstall_cmds='chmod +x $lib' 9688 ;; 9689 9690sunos4*) 9691 version_type=sunos 9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9693 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9694 shlibpath_var=LD_LIBRARY_PATH 9695 shlibpath_overrides_runpath=yes 9696 if test "$with_gnu_ld" = yes; then 9697 need_lib_prefix=no 9698 fi 9699 need_version=yes 9700 ;; 9701 9702sysv4 | sysv4.3*) 9703 version_type=linux 9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9705 soname_spec='${libname}${release}${shared_ext}$major' 9706 shlibpath_var=LD_LIBRARY_PATH 9707 case $host_vendor in 9708 sni) 9709 shlibpath_overrides_runpath=no 9710 need_lib_prefix=no 9711 export_dynamic_flag_spec='${wl}-Blargedynsym' 9712 runpath_var=LD_RUN_PATH 9713 ;; 9714 siemens) 9715 need_lib_prefix=no 9716 ;; 9717 motorola) 9718 need_lib_prefix=no 9719 need_version=no 9720 shlibpath_overrides_runpath=no 9721 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9722 ;; 9723 esac 9724 ;; 9725 9726sysv4*MP*) 9727 if test -d /usr/nec ;then 9728 version_type=linux 9729 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9730 soname_spec='$libname${shared_ext}.$major' 9731 shlibpath_var=LD_LIBRARY_PATH 9732 fi 9733 ;; 9734 9735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9736 version_type=freebsd-elf 9737 need_lib_prefix=no 9738 need_version=no 9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9740 soname_spec='${libname}${release}${shared_ext}$major' 9741 shlibpath_var=LD_LIBRARY_PATH 9742 hardcode_into_libs=yes 9743 if test "$with_gnu_ld" = yes; then 9744 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9745 shlibpath_overrides_runpath=no 9746 else 9747 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9748 shlibpath_overrides_runpath=yes 9749 case $host_os in 9750 sco3.2v5*) 9751 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9752 ;; 9753 esac 9754 fi 9755 sys_lib_dlsearch_path_spec='/usr/lib' 9756 ;; 9757 9758uts4*) 9759 version_type=linux 9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9761 soname_spec='${libname}${release}${shared_ext}$major' 9762 shlibpath_var=LD_LIBRARY_PATH 9763 ;; 9764 9765*) 9766 dynamic_linker=no 9767 ;; 9768esac 9769{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9770echo "${ECHO_T}$dynamic_linker" >&6; } 9771test "$dynamic_linker" = no && can_build_shared=no 9772 9773variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9774if test "$GCC" = yes; then 9775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9776fi 9777 9778{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9779echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9780hardcode_action= 9781if test -n "$hardcode_libdir_flag_spec" || \ 9782 test -n "$runpath_var" || \ 9783 test "X$hardcode_automatic" = "Xyes" ; then 9784 9785 # We can hardcode non-existant directories. 9786 if test "$hardcode_direct" != no && 9787 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9788 # have to relink, otherwise we might link with an installed library 9789 # when we should be linking with a yet-to-be-installed one 9790 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9791 test "$hardcode_minus_L" != no; then 9792 # Linking always hardcodes the temporary library directory. 9793 hardcode_action=relink 9794 else 9795 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9796 hardcode_action=immediate 9797 fi 9798else 9799 # We cannot hardcode anything, or else we can only hardcode existing 9800 # directories. 9801 hardcode_action=unsupported 9802fi 9803{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9804echo "${ECHO_T}$hardcode_action" >&6; } 9805 9806if test "$hardcode_action" = relink; then 9807 # Fast installation is not supported 9808 enable_fast_install=no 9809elif test "$shlibpath_overrides_runpath" = yes || 9810 test "$enable_shared" = no; then 9811 # Fast installation is not necessary 9812 enable_fast_install=needless 9813fi 9814 9815striplib= 9816old_striplib= 9817{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9818echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9819if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9820 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9821 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9822 { echo "$as_me:$LINENO: result: yes" >&5 9823echo "${ECHO_T}yes" >&6; } 9824else 9825# FIXME - insert some real tests, host_os isn't really good enough 9826 case $host_os in 9827 darwin*) 9828 if test -n "$STRIP" ; then 9829 striplib="$STRIP -x" 9830 { echo "$as_me:$LINENO: result: yes" >&5 9831echo "${ECHO_T}yes" >&6; } 9832 else 9833 { echo "$as_me:$LINENO: result: no" >&5 9834echo "${ECHO_T}no" >&6; } 9835fi 9836 ;; 9837 *) 9838 { echo "$as_me:$LINENO: result: no" >&5 9839echo "${ECHO_T}no" >&6; } 9840 ;; 9841 esac 9842fi 9843 9844if test "x$enable_dlopen" != xyes; then 9845 enable_dlopen=unknown 9846 enable_dlopen_self=unknown 9847 enable_dlopen_self_static=unknown 9848else 9849 lt_cv_dlopen=no 9850 lt_cv_dlopen_libs= 9851 9852 case $host_os in 9853 beos*) 9854 lt_cv_dlopen="load_add_on" 9855 lt_cv_dlopen_libs= 9856 lt_cv_dlopen_self=yes 9857 ;; 9858 9859 mingw* | pw32*) 9860 lt_cv_dlopen="LoadLibrary" 9861 lt_cv_dlopen_libs= 9862 ;; 9863 9864 cygwin*) 9865 lt_cv_dlopen="dlopen" 9866 lt_cv_dlopen_libs= 9867 ;; 9868 9869 darwin*) 9870 # if libdl is installed we need to link against it 9871 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9872echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9873if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9874 echo $ECHO_N "(cached) $ECHO_C" >&6 9875else 9876 ac_check_lib_save_LIBS=$LIBS 9877LIBS="-ldl $LIBS" 9878cat >conftest.$ac_ext <<_ACEOF 9879/* confdefs.h. */ 9880_ACEOF 9881cat confdefs.h >>conftest.$ac_ext 9882cat >>conftest.$ac_ext <<_ACEOF 9883/* end confdefs.h. */ 9884 9885/* Override any GCC internal prototype to avoid an error. 9886 Use char because int might match the return type of a GCC 9887 builtin and then its argument prototype would still apply. */ 9888#ifdef __cplusplus 9889extern "C" 9890#endif 9891char dlopen (); 9892int 9893main () 9894{ 9895return dlopen (); 9896 ; 9897 return 0; 9898} 9899_ACEOF 9900rm -f conftest.$ac_objext conftest$ac_exeext 9901if { (ac_try="$ac_link" 9902case "(($ac_try" in 9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9904 *) ac_try_echo=$ac_try;; 9905esac 9906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9907 (eval "$ac_link") 2>conftest.er1 9908 ac_status=$? 9909 grep -v '^ *+' conftest.er1 >conftest.err 9910 rm -f conftest.er1 9911 cat conftest.err >&5 9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9913 (exit $ac_status); } && { 9914 test -z "$ac_c_werror_flag" || 9915 test ! -s conftest.err 9916 } && test -s conftest$ac_exeext && 9917 $as_test_x conftest$ac_exeext; then 9918 ac_cv_lib_dl_dlopen=yes 9919else 9920 echo "$as_me: failed program was:" >&5 9921sed 's/^/| /' conftest.$ac_ext >&5 9922 9923 ac_cv_lib_dl_dlopen=no 9924fi 9925 9926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9927 conftest$ac_exeext conftest.$ac_ext 9928LIBS=$ac_check_lib_save_LIBS 9929fi 9930{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9931echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9932if test $ac_cv_lib_dl_dlopen = yes; then 9933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9934else 9935 9936 lt_cv_dlopen="dyld" 9937 lt_cv_dlopen_libs= 9938 lt_cv_dlopen_self=yes 9939 9940fi 9941 9942 ;; 9943 9944 *) 9945 { echo "$as_me:$LINENO: checking for shl_load" >&5 9946echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9947if test "${ac_cv_func_shl_load+set}" = set; then 9948 echo $ECHO_N "(cached) $ECHO_C" >&6 9949else 9950 cat >conftest.$ac_ext <<_ACEOF 9951/* confdefs.h. */ 9952_ACEOF 9953cat confdefs.h >>conftest.$ac_ext 9954cat >>conftest.$ac_ext <<_ACEOF 9955/* end confdefs.h. */ 9956/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9957 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9958#define shl_load innocuous_shl_load 9959 9960/* System header to define __stub macros and hopefully few prototypes, 9961 which can conflict with char shl_load (); below. 9962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9963 <limits.h> exists even on freestanding compilers. */ 9964 9965#ifdef __STDC__ 9966# include <limits.h> 9967#else 9968# include <assert.h> 9969#endif 9970 9971#undef shl_load 9972 9973/* Override any GCC internal prototype to avoid an error. 9974 Use char because int might match the return type of a GCC 9975 builtin and then its argument prototype would still apply. */ 9976#ifdef __cplusplus 9977extern "C" 9978#endif 9979char shl_load (); 9980/* The GNU C library defines this for functions which it implements 9981 to always fail with ENOSYS. Some functions are actually named 9982 something starting with __ and the normal name is an alias. */ 9983#if defined __stub_shl_load || defined __stub___shl_load 9984choke me 9985#endif 9986 9987int 9988main () 9989{ 9990return shl_load (); 9991 ; 9992 return 0; 9993} 9994_ACEOF 9995rm -f conftest.$ac_objext conftest$ac_exeext 9996if { (ac_try="$ac_link" 9997case "(($ac_try" in 9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9999 *) ac_try_echo=$ac_try;; 10000esac 10001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10002 (eval "$ac_link") 2>conftest.er1 10003 ac_status=$? 10004 grep -v '^ *+' conftest.er1 >conftest.err 10005 rm -f conftest.er1 10006 cat conftest.err >&5 10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10008 (exit $ac_status); } && { 10009 test -z "$ac_c_werror_flag" || 10010 test ! -s conftest.err 10011 } && test -s conftest$ac_exeext && 10012 $as_test_x conftest$ac_exeext; then 10013 ac_cv_func_shl_load=yes 10014else 10015 echo "$as_me: failed program was:" >&5 10016sed 's/^/| /' conftest.$ac_ext >&5 10017 10018 ac_cv_func_shl_load=no 10019fi 10020 10021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10022 conftest$ac_exeext conftest.$ac_ext 10023fi 10024{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10025echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10026if test $ac_cv_func_shl_load = yes; then 10027 lt_cv_dlopen="shl_load" 10028else 10029 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10030echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10031if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10032 echo $ECHO_N "(cached) $ECHO_C" >&6 10033else 10034 ac_check_lib_save_LIBS=$LIBS 10035LIBS="-ldld $LIBS" 10036cat >conftest.$ac_ext <<_ACEOF 10037/* confdefs.h. */ 10038_ACEOF 10039cat confdefs.h >>conftest.$ac_ext 10040cat >>conftest.$ac_ext <<_ACEOF 10041/* end confdefs.h. */ 10042 10043/* Override any GCC internal prototype to avoid an error. 10044 Use char because int might match the return type of a GCC 10045 builtin and then its argument prototype would still apply. */ 10046#ifdef __cplusplus 10047extern "C" 10048#endif 10049char shl_load (); 10050int 10051main () 10052{ 10053return shl_load (); 10054 ; 10055 return 0; 10056} 10057_ACEOF 10058rm -f conftest.$ac_objext conftest$ac_exeext 10059if { (ac_try="$ac_link" 10060case "(($ac_try" in 10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10062 *) ac_try_echo=$ac_try;; 10063esac 10064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10065 (eval "$ac_link") 2>conftest.er1 10066 ac_status=$? 10067 grep -v '^ *+' conftest.er1 >conftest.err 10068 rm -f conftest.er1 10069 cat conftest.err >&5 10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10071 (exit $ac_status); } && { 10072 test -z "$ac_c_werror_flag" || 10073 test ! -s conftest.err 10074 } && test -s conftest$ac_exeext && 10075 $as_test_x conftest$ac_exeext; then 10076 ac_cv_lib_dld_shl_load=yes 10077else 10078 echo "$as_me: failed program was:" >&5 10079sed 's/^/| /' conftest.$ac_ext >&5 10080 10081 ac_cv_lib_dld_shl_load=no 10082fi 10083 10084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10085 conftest$ac_exeext conftest.$ac_ext 10086LIBS=$ac_check_lib_save_LIBS 10087fi 10088{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10089echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10090if test $ac_cv_lib_dld_shl_load = yes; then 10091 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10092else 10093 { echo "$as_me:$LINENO: checking for dlopen" >&5 10094echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 10095if test "${ac_cv_func_dlopen+set}" = set; then 10096 echo $ECHO_N "(cached) $ECHO_C" >&6 10097else 10098 cat >conftest.$ac_ext <<_ACEOF 10099/* confdefs.h. */ 10100_ACEOF 10101cat confdefs.h >>conftest.$ac_ext 10102cat >>conftest.$ac_ext <<_ACEOF 10103/* end confdefs.h. */ 10104/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10105 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10106#define dlopen innocuous_dlopen 10107 10108/* System header to define __stub macros and hopefully few prototypes, 10109 which can conflict with char dlopen (); below. 10110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10111 <limits.h> exists even on freestanding compilers. */ 10112 10113#ifdef __STDC__ 10114# include <limits.h> 10115#else 10116# include <assert.h> 10117#endif 10118 10119#undef dlopen 10120 10121/* Override any GCC internal prototype to avoid an error. 10122 Use char because int might match the return type of a GCC 10123 builtin and then its argument prototype would still apply. */ 10124#ifdef __cplusplus 10125extern "C" 10126#endif 10127char dlopen (); 10128/* The GNU C library defines this for functions which it implements 10129 to always fail with ENOSYS. Some functions are actually named 10130 something starting with __ and the normal name is an alias. */ 10131#if defined __stub_dlopen || defined __stub___dlopen 10132choke me 10133#endif 10134 10135int 10136main () 10137{ 10138return dlopen (); 10139 ; 10140 return 0; 10141} 10142_ACEOF 10143rm -f conftest.$ac_objext conftest$ac_exeext 10144if { (ac_try="$ac_link" 10145case "(($ac_try" in 10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10147 *) ac_try_echo=$ac_try;; 10148esac 10149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10150 (eval "$ac_link") 2>conftest.er1 10151 ac_status=$? 10152 grep -v '^ *+' conftest.er1 >conftest.err 10153 rm -f conftest.er1 10154 cat conftest.err >&5 10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10156 (exit $ac_status); } && { 10157 test -z "$ac_c_werror_flag" || 10158 test ! -s conftest.err 10159 } && test -s conftest$ac_exeext && 10160 $as_test_x conftest$ac_exeext; then 10161 ac_cv_func_dlopen=yes 10162else 10163 echo "$as_me: failed program was:" >&5 10164sed 's/^/| /' conftest.$ac_ext >&5 10165 10166 ac_cv_func_dlopen=no 10167fi 10168 10169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10170 conftest$ac_exeext conftest.$ac_ext 10171fi 10172{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10173echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10174if test $ac_cv_func_dlopen = yes; then 10175 lt_cv_dlopen="dlopen" 10176else 10177 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10178echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10179if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10180 echo $ECHO_N "(cached) $ECHO_C" >&6 10181else 10182 ac_check_lib_save_LIBS=$LIBS 10183LIBS="-ldl $LIBS" 10184cat >conftest.$ac_ext <<_ACEOF 10185/* confdefs.h. */ 10186_ACEOF 10187cat confdefs.h >>conftest.$ac_ext 10188cat >>conftest.$ac_ext <<_ACEOF 10189/* end confdefs.h. */ 10190 10191/* Override any GCC internal prototype to avoid an error. 10192 Use char because int might match the return type of a GCC 10193 builtin and then its argument prototype would still apply. */ 10194#ifdef __cplusplus 10195extern "C" 10196#endif 10197char dlopen (); 10198int 10199main () 10200{ 10201return dlopen (); 10202 ; 10203 return 0; 10204} 10205_ACEOF 10206rm -f conftest.$ac_objext conftest$ac_exeext 10207if { (ac_try="$ac_link" 10208case "(($ac_try" in 10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10210 *) ac_try_echo=$ac_try;; 10211esac 10212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10213 (eval "$ac_link") 2>conftest.er1 10214 ac_status=$? 10215 grep -v '^ *+' conftest.er1 >conftest.err 10216 rm -f conftest.er1 10217 cat conftest.err >&5 10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10219 (exit $ac_status); } && { 10220 test -z "$ac_c_werror_flag" || 10221 test ! -s conftest.err 10222 } && test -s conftest$ac_exeext && 10223 $as_test_x conftest$ac_exeext; then 10224 ac_cv_lib_dl_dlopen=yes 10225else 10226 echo "$as_me: failed program was:" >&5 10227sed 's/^/| /' conftest.$ac_ext >&5 10228 10229 ac_cv_lib_dl_dlopen=no 10230fi 10231 10232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10233 conftest$ac_exeext conftest.$ac_ext 10234LIBS=$ac_check_lib_save_LIBS 10235fi 10236{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10237echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10238if test $ac_cv_lib_dl_dlopen = yes; then 10239 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10240else 10241 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10242echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10243if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10244 echo $ECHO_N "(cached) $ECHO_C" >&6 10245else 10246 ac_check_lib_save_LIBS=$LIBS 10247LIBS="-lsvld $LIBS" 10248cat >conftest.$ac_ext <<_ACEOF 10249/* confdefs.h. */ 10250_ACEOF 10251cat confdefs.h >>conftest.$ac_ext 10252cat >>conftest.$ac_ext <<_ACEOF 10253/* end confdefs.h. */ 10254 10255/* Override any GCC internal prototype to avoid an error. 10256 Use char because int might match the return type of a GCC 10257 builtin and then its argument prototype would still apply. */ 10258#ifdef __cplusplus 10259extern "C" 10260#endif 10261char dlopen (); 10262int 10263main () 10264{ 10265return dlopen (); 10266 ; 10267 return 0; 10268} 10269_ACEOF 10270rm -f conftest.$ac_objext conftest$ac_exeext 10271if { (ac_try="$ac_link" 10272case "(($ac_try" in 10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10274 *) ac_try_echo=$ac_try;; 10275esac 10276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10277 (eval "$ac_link") 2>conftest.er1 10278 ac_status=$? 10279 grep -v '^ *+' conftest.er1 >conftest.err 10280 rm -f conftest.er1 10281 cat conftest.err >&5 10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10283 (exit $ac_status); } && { 10284 test -z "$ac_c_werror_flag" || 10285 test ! -s conftest.err 10286 } && test -s conftest$ac_exeext && 10287 $as_test_x conftest$ac_exeext; then 10288 ac_cv_lib_svld_dlopen=yes 10289else 10290 echo "$as_me: failed program was:" >&5 10291sed 's/^/| /' conftest.$ac_ext >&5 10292 10293 ac_cv_lib_svld_dlopen=no 10294fi 10295 10296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10297 conftest$ac_exeext conftest.$ac_ext 10298LIBS=$ac_check_lib_save_LIBS 10299fi 10300{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10301echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10302if test $ac_cv_lib_svld_dlopen = yes; then 10303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10304else 10305 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10306echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10307if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10308 echo $ECHO_N "(cached) $ECHO_C" >&6 10309else 10310 ac_check_lib_save_LIBS=$LIBS 10311LIBS="-ldld $LIBS" 10312cat >conftest.$ac_ext <<_ACEOF 10313/* confdefs.h. */ 10314_ACEOF 10315cat confdefs.h >>conftest.$ac_ext 10316cat >>conftest.$ac_ext <<_ACEOF 10317/* end confdefs.h. */ 10318 10319/* Override any GCC internal prototype to avoid an error. 10320 Use char because int might match the return type of a GCC 10321 builtin and then its argument prototype would still apply. */ 10322#ifdef __cplusplus 10323extern "C" 10324#endif 10325char dld_link (); 10326int 10327main () 10328{ 10329return dld_link (); 10330 ; 10331 return 0; 10332} 10333_ACEOF 10334rm -f conftest.$ac_objext conftest$ac_exeext 10335if { (ac_try="$ac_link" 10336case "(($ac_try" in 10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10338 *) ac_try_echo=$ac_try;; 10339esac 10340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10341 (eval "$ac_link") 2>conftest.er1 10342 ac_status=$? 10343 grep -v '^ *+' conftest.er1 >conftest.err 10344 rm -f conftest.er1 10345 cat conftest.err >&5 10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10347 (exit $ac_status); } && { 10348 test -z "$ac_c_werror_flag" || 10349 test ! -s conftest.err 10350 } && test -s conftest$ac_exeext && 10351 $as_test_x conftest$ac_exeext; then 10352 ac_cv_lib_dld_dld_link=yes 10353else 10354 echo "$as_me: failed program was:" >&5 10355sed 's/^/| /' conftest.$ac_ext >&5 10356 10357 ac_cv_lib_dld_dld_link=no 10358fi 10359 10360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10361 conftest$ac_exeext conftest.$ac_ext 10362LIBS=$ac_check_lib_save_LIBS 10363fi 10364{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10365echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10366if test $ac_cv_lib_dld_dld_link = yes; then 10367 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10368fi 10369 10370 10371fi 10372 10373 10374fi 10375 10376 10377fi 10378 10379 10380fi 10381 10382 10383fi 10384 10385 ;; 10386 esac 10387 10388 if test "x$lt_cv_dlopen" != xno; then 10389 enable_dlopen=yes 10390 else 10391 enable_dlopen=no 10392 fi 10393 10394 case $lt_cv_dlopen in 10395 dlopen) 10396 save_CPPFLAGS="$CPPFLAGS" 10397 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10398 10399 save_LDFLAGS="$LDFLAGS" 10400 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10401 10402 save_LIBS="$LIBS" 10403 LIBS="$lt_cv_dlopen_libs $LIBS" 10404 10405 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10406echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10407if test "${lt_cv_dlopen_self+set}" = set; then 10408 echo $ECHO_N "(cached) $ECHO_C" >&6 10409else 10410 if test "$cross_compiling" = yes; then : 10411 lt_cv_dlopen_self=cross 10412else 10413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10414 lt_status=$lt_dlunknown 10415 cat > conftest.$ac_ext <<EOF 10416#line 10416 "configure" 10417#include "confdefs.h" 10418 10419#if HAVE_DLFCN_H 10420#include <dlfcn.h> 10421#endif 10422 10423#include <stdio.h> 10424 10425#ifdef RTLD_GLOBAL 10426# define LT_DLGLOBAL RTLD_GLOBAL 10427#else 10428# ifdef DL_GLOBAL 10429# define LT_DLGLOBAL DL_GLOBAL 10430# else 10431# define LT_DLGLOBAL 0 10432# endif 10433#endif 10434 10435/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10436 find out it does not work in some platform. */ 10437#ifndef LT_DLLAZY_OR_NOW 10438# ifdef RTLD_LAZY 10439# define LT_DLLAZY_OR_NOW RTLD_LAZY 10440# else 10441# ifdef DL_LAZY 10442# define LT_DLLAZY_OR_NOW DL_LAZY 10443# else 10444# ifdef RTLD_NOW 10445# define LT_DLLAZY_OR_NOW RTLD_NOW 10446# else 10447# ifdef DL_NOW 10448# define LT_DLLAZY_OR_NOW DL_NOW 10449# else 10450# define LT_DLLAZY_OR_NOW 0 10451# endif 10452# endif 10453# endif 10454# endif 10455#endif 10456 10457#ifdef __cplusplus 10458extern "C" void exit (int); 10459#endif 10460 10461void fnord() { int i=42;} 10462int main () 10463{ 10464 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10465 int status = $lt_dlunknown; 10466 10467 if (self) 10468 { 10469 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10470 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10471 /* dlclose (self); */ 10472 } 10473 else 10474 puts (dlerror ()); 10475 10476 exit (status); 10477} 10478EOF 10479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10480 (eval $ac_link) 2>&5 10481 ac_status=$? 10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10483 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10484 (./conftest; exit; ) >&5 2>/dev/null 10485 lt_status=$? 10486 case x$lt_status in 10487 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10488 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10489 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10490 esac 10491 else : 10492 # compilation failed 10493 lt_cv_dlopen_self=no 10494 fi 10495fi 10496rm -fr conftest* 10497 10498 10499fi 10500{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10501echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10502 10503 if test "x$lt_cv_dlopen_self" = xyes; then 10504 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10505 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10506echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10507if test "${lt_cv_dlopen_self_static+set}" = set; then 10508 echo $ECHO_N "(cached) $ECHO_C" >&6 10509else 10510 if test "$cross_compiling" = yes; then : 10511 lt_cv_dlopen_self_static=cross 10512else 10513 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10514 lt_status=$lt_dlunknown 10515 cat > conftest.$ac_ext <<EOF 10516#line 10516 "configure" 10517#include "confdefs.h" 10518 10519#if HAVE_DLFCN_H 10520#include <dlfcn.h> 10521#endif 10522 10523#include <stdio.h> 10524 10525#ifdef RTLD_GLOBAL 10526# define LT_DLGLOBAL RTLD_GLOBAL 10527#else 10528# ifdef DL_GLOBAL 10529# define LT_DLGLOBAL DL_GLOBAL 10530# else 10531# define LT_DLGLOBAL 0 10532# endif 10533#endif 10534 10535/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10536 find out it does not work in some platform. */ 10537#ifndef LT_DLLAZY_OR_NOW 10538# ifdef RTLD_LAZY 10539# define LT_DLLAZY_OR_NOW RTLD_LAZY 10540# else 10541# ifdef DL_LAZY 10542# define LT_DLLAZY_OR_NOW DL_LAZY 10543# else 10544# ifdef RTLD_NOW 10545# define LT_DLLAZY_OR_NOW RTLD_NOW 10546# else 10547# ifdef DL_NOW 10548# define LT_DLLAZY_OR_NOW DL_NOW 10549# else 10550# define LT_DLLAZY_OR_NOW 0 10551# endif 10552# endif 10553# endif 10554# endif 10555#endif 10556 10557#ifdef __cplusplus 10558extern "C" void exit (int); 10559#endif 10560 10561void fnord() { int i=42;} 10562int main () 10563{ 10564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10565 int status = $lt_dlunknown; 10566 10567 if (self) 10568 { 10569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10570 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10571 /* dlclose (self); */ 10572 } 10573 else 10574 puts (dlerror ()); 10575 10576 exit (status); 10577} 10578EOF 10579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10580 (eval $ac_link) 2>&5 10581 ac_status=$? 10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10583 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10584 (./conftest; exit; ) >&5 2>/dev/null 10585 lt_status=$? 10586 case x$lt_status in 10587 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10588 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10589 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10590 esac 10591 else : 10592 # compilation failed 10593 lt_cv_dlopen_self_static=no 10594 fi 10595fi 10596rm -fr conftest* 10597 10598 10599fi 10600{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10601echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10602 fi 10603 10604 CPPFLAGS="$save_CPPFLAGS" 10605 LDFLAGS="$save_LDFLAGS" 10606 LIBS="$save_LIBS" 10607 ;; 10608 esac 10609 10610 case $lt_cv_dlopen_self in 10611 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10612 *) enable_dlopen_self=unknown ;; 10613 esac 10614 10615 case $lt_cv_dlopen_self_static in 10616 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10617 *) enable_dlopen_self_static=unknown ;; 10618 esac 10619fi 10620 10621 10622# Report which library types will actually be built 10623{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10624echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10625{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10626echo "${ECHO_T}$can_build_shared" >&6; } 10627 10628{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10629echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10630test "$can_build_shared" = "no" && enable_shared=no 10631 10632# On AIX, shared libraries and static libraries use the same namespace, and 10633# are all built from PIC. 10634case $host_os in 10635aix3*) 10636 test "$enable_shared" = yes && enable_static=no 10637 if test -n "$RANLIB"; then 10638 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10639 postinstall_cmds='$RANLIB $lib' 10640 fi 10641 ;; 10642 10643aix4* | aix5*) 10644 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10645 test "$enable_shared" = yes && enable_static=no 10646 fi 10647 ;; 10648esac 10649{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10650echo "${ECHO_T}$enable_shared" >&6; } 10651 10652{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10653echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10654# Make sure either enable_shared or enable_static is yes. 10655test "$enable_shared" = yes || enable_static=yes 10656{ echo "$as_me:$LINENO: result: $enable_static" >&5 10657echo "${ECHO_T}$enable_static" >&6; } 10658 10659# The else clause should only fire when bootstrapping the 10660# libtool distribution, otherwise you forgot to ship ltmain.sh 10661# with your package, and you will get complaints that there are 10662# no rules to generate ltmain.sh. 10663if test -f "$ltmain"; then 10664 # See if we are running on zsh, and set the options which allow our commands through 10665 # without removal of \ escapes. 10666 if test -n "${ZSH_VERSION+set}" ; then 10667 setopt NO_GLOB_SUBST 10668 fi 10669 # Now quote all the things that may contain metacharacters while being 10670 # careful not to overquote the AC_SUBSTed values. We take copies of the 10671 # variables and quote the copies for generation of the libtool script. 10672 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10673 SED SHELL STRIP \ 10674 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10675 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10676 deplibs_check_method reload_flag reload_cmds need_locks \ 10677 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10678 lt_cv_sys_global_symbol_to_c_name_address \ 10679 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10680 old_postinstall_cmds old_postuninstall_cmds \ 10681 compiler \ 10682 CC \ 10683 LD \ 10684 lt_prog_compiler_wl \ 10685 lt_prog_compiler_pic \ 10686 lt_prog_compiler_static \ 10687 lt_prog_compiler_no_builtin_flag \ 10688 export_dynamic_flag_spec \ 10689 thread_safe_flag_spec \ 10690 whole_archive_flag_spec \ 10691 enable_shared_with_static_runtimes \ 10692 old_archive_cmds \ 10693 old_archive_from_new_cmds \ 10694 predep_objects \ 10695 postdep_objects \ 10696 predeps \ 10697 postdeps \ 10698 compiler_lib_search_path \ 10699 archive_cmds \ 10700 archive_expsym_cmds \ 10701 postinstall_cmds \ 10702 postuninstall_cmds \ 10703 old_archive_from_expsyms_cmds \ 10704 allow_undefined_flag \ 10705 no_undefined_flag \ 10706 export_symbols_cmds \ 10707 hardcode_libdir_flag_spec \ 10708 hardcode_libdir_flag_spec_ld \ 10709 hardcode_libdir_separator \ 10710 hardcode_automatic \ 10711 module_cmds \ 10712 module_expsym_cmds \ 10713 lt_cv_prog_compiler_c_o \ 10714 exclude_expsyms \ 10715 include_expsyms; do 10716 10717 case $var in 10718 old_archive_cmds | \ 10719 old_archive_from_new_cmds | \ 10720 archive_cmds | \ 10721 archive_expsym_cmds | \ 10722 module_cmds | \ 10723 module_expsym_cmds | \ 10724 old_archive_from_expsyms_cmds | \ 10725 export_symbols_cmds | \ 10726 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10727 postinstall_cmds | postuninstall_cmds | \ 10728 old_postinstall_cmds | old_postuninstall_cmds | \ 10729 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10730 # Double-quote double-evaled strings. 10731 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10732 ;; 10733 *) 10734 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10735 ;; 10736 esac 10737 done 10738 10739 case $lt_echo in 10740 *'\$0 --fallback-echo"') 10741 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10742 ;; 10743 esac 10744 10745cfgfile="${ofile}T" 10746 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10747 $rm -f "$cfgfile" 10748 { echo "$as_me:$LINENO: creating $ofile" >&5 10749echo "$as_me: creating $ofile" >&6;} 10750 10751 cat <<__EOF__ >> "$cfgfile" 10752#! $SHELL 10753 10754# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10755# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10756# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10757# 10758# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10759# Free Software Foundation, Inc. 10760# 10761# This file is part of GNU Libtool: 10762# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10763# 10764# This program is free software; you can redistribute it and/or modify 10765# it under the terms of the GNU General Public License as published by 10766# the Free Software Foundation; either version 2 of the License, or 10767# (at your option) any later version. 10768# 10769# This program is distributed in the hope that it will be useful, but 10770# WITHOUT ANY WARRANTY; without even the implied warranty of 10771# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10772# General Public License for more details. 10773# 10774# You should have received a copy of the GNU General Public License 10775# along with this program; if not, write to the Free Software 10776# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10777# 10778# As a special exception to the GNU General Public License, if you 10779# distribute this file as part of a program that contains a 10780# configuration script generated by Autoconf, you may include it under 10781# the same distribution terms that you use for the rest of that program. 10782 10783# A sed program that does not truncate output. 10784SED=$lt_SED 10785 10786# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10787Xsed="$SED -e 1s/^X//" 10788 10789# The HP-UX ksh and POSIX shell print the target directory to stdout 10790# if CDPATH is set. 10791(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10792 10793# The names of the tagged configurations supported by this script. 10794available_tags= 10795 10796# ### BEGIN LIBTOOL CONFIG 10797 10798# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10799 10800# Shell to use when invoking shell scripts. 10801SHELL=$lt_SHELL 10802 10803# Whether or not to build shared libraries. 10804build_libtool_libs=$enable_shared 10805 10806# Whether or not to build static libraries. 10807build_old_libs=$enable_static 10808 10809# Whether or not to add -lc for building shared libraries. 10810build_libtool_need_lc=$archive_cmds_need_lc 10811 10812# Whether or not to disallow shared libs when runtime libs are static 10813allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10814 10815# Whether or not to optimize for fast installation. 10816fast_install=$enable_fast_install 10817 10818# The host system. 10819host_alias=$host_alias 10820host=$host 10821host_os=$host_os 10822 10823# The build system. 10824build_alias=$build_alias 10825build=$build 10826build_os=$build_os 10827 10828# An echo program that does not interpret backslashes. 10829echo=$lt_echo 10830 10831# The archiver. 10832AR=$lt_AR 10833AR_FLAGS=$lt_AR_FLAGS 10834 10835# A C compiler. 10836LTCC=$lt_LTCC 10837 10838# LTCC compiler flags. 10839LTCFLAGS=$lt_LTCFLAGS 10840 10841# A language-specific compiler. 10842CC=$lt_compiler 10843 10844# Is the compiler the GNU C compiler? 10845with_gcc=$GCC 10846 10847# An ERE matcher. 10848EGREP=$lt_EGREP 10849 10850# The linker used to build libraries. 10851LD=$lt_LD 10852 10853# Whether we need hard or soft links. 10854LN_S=$lt_LN_S 10855 10856# A BSD-compatible nm program. 10857NM=$lt_NM 10858 10859# A symbol stripping program 10860STRIP=$lt_STRIP 10861 10862# Used to examine libraries when file_magic_cmd begins "file" 10863MAGIC_CMD=$MAGIC_CMD 10864 10865# Used on cygwin: DLL creation program. 10866DLLTOOL="$DLLTOOL" 10867 10868# Used on cygwin: object dumper. 10869OBJDUMP="$OBJDUMP" 10870 10871# Used on cygwin: assembler. 10872AS="$AS" 10873 10874# The name of the directory that contains temporary libtool files. 10875objdir=$objdir 10876 10877# How to create reloadable object files. 10878reload_flag=$lt_reload_flag 10879reload_cmds=$lt_reload_cmds 10880 10881# How to pass a linker flag through the compiler. 10882wl=$lt_lt_prog_compiler_wl 10883 10884# Object file suffix (normally "o"). 10885objext="$ac_objext" 10886 10887# Old archive suffix (normally "a"). 10888libext="$libext" 10889 10890# Shared library suffix (normally ".so"). 10891shrext_cmds='$shrext_cmds' 10892 10893# Executable file suffix (normally ""). 10894exeext="$exeext" 10895 10896# Additional compiler flags for building library objects. 10897pic_flag=$lt_lt_prog_compiler_pic 10898pic_mode=$pic_mode 10899 10900# What is the maximum length of a command? 10901max_cmd_len=$lt_cv_sys_max_cmd_len 10902 10903# Does compiler simultaneously support -c and -o options? 10904compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10905 10906# Must we lock files when doing compilation? 10907need_locks=$lt_need_locks 10908 10909# Do we need the lib prefix for modules? 10910need_lib_prefix=$need_lib_prefix 10911 10912# Do we need a version for libraries? 10913need_version=$need_version 10914 10915# Whether dlopen is supported. 10916dlopen_support=$enable_dlopen 10917 10918# Whether dlopen of programs is supported. 10919dlopen_self=$enable_dlopen_self 10920 10921# Whether dlopen of statically linked programs is supported. 10922dlopen_self_static=$enable_dlopen_self_static 10923 10924# Compiler flag to prevent dynamic linking. 10925link_static_flag=$lt_lt_prog_compiler_static 10926 10927# Compiler flag to turn off builtin functions. 10928no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10929 10930# Compiler flag to allow reflexive dlopens. 10931export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10932 10933# Compiler flag to generate shared objects directly from archives. 10934whole_archive_flag_spec=$lt_whole_archive_flag_spec 10935 10936# Compiler flag to generate thread-safe objects. 10937thread_safe_flag_spec=$lt_thread_safe_flag_spec 10938 10939# Library versioning type. 10940version_type=$version_type 10941 10942# Format of library name prefix. 10943libname_spec=$lt_libname_spec 10944 10945# List of archive names. First name is the real one, the rest are links. 10946# The last name is the one that the linker finds with -lNAME. 10947library_names_spec=$lt_library_names_spec 10948 10949# The coded name of the library, if different from the real name. 10950soname_spec=$lt_soname_spec 10951 10952# Commands used to build and install an old-style archive. 10953RANLIB=$lt_RANLIB 10954old_archive_cmds=$lt_old_archive_cmds 10955old_postinstall_cmds=$lt_old_postinstall_cmds 10956old_postuninstall_cmds=$lt_old_postuninstall_cmds 10957 10958# Create an old-style archive from a shared archive. 10959old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10960 10961# Create a temporary old-style archive to link instead of a shared archive. 10962old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10963 10964# Commands used to build and install a shared archive. 10965archive_cmds=$lt_archive_cmds 10966archive_expsym_cmds=$lt_archive_expsym_cmds 10967postinstall_cmds=$lt_postinstall_cmds 10968postuninstall_cmds=$lt_postuninstall_cmds 10969 10970# Commands used to build a loadable module (assumed same as above if empty) 10971module_cmds=$lt_module_cmds 10972module_expsym_cmds=$lt_module_expsym_cmds 10973 10974# Commands to strip libraries. 10975old_striplib=$lt_old_striplib 10976striplib=$lt_striplib 10977 10978# Dependencies to place before the objects being linked to create a 10979# shared library. 10980predep_objects=$lt_predep_objects 10981 10982# Dependencies to place after the objects being linked to create a 10983# shared library. 10984postdep_objects=$lt_postdep_objects 10985 10986# Dependencies to place before the objects being linked to create a 10987# shared library. 10988predeps=$lt_predeps 10989 10990# Dependencies to place after the objects being linked to create a 10991# shared library. 10992postdeps=$lt_postdeps 10993 10994# The library search path used internally by the compiler when linking 10995# a shared library. 10996compiler_lib_search_path=$lt_compiler_lib_search_path 10997 10998# Method to check whether dependent libraries are shared objects. 10999deplibs_check_method=$lt_deplibs_check_method 11000 11001# Command to use when deplibs_check_method == file_magic. 11002file_magic_cmd=$lt_file_magic_cmd 11003 11004# Flag that allows shared libraries with undefined symbols to be built. 11005allow_undefined_flag=$lt_allow_undefined_flag 11006 11007# Flag that forces no undefined symbols. 11008no_undefined_flag=$lt_no_undefined_flag 11009 11010# Commands used to finish a libtool library installation in a directory. 11011finish_cmds=$lt_finish_cmds 11012 11013# Same as above, but a single script fragment to be evaled but not shown. 11014finish_eval=$lt_finish_eval 11015 11016# Take the output of nm and produce a listing of raw symbols and C names. 11017global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11018 11019# Transform the output of nm in a proper C declaration 11020global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11021 11022# Transform the output of nm in a C name address pair 11023global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11024 11025# This is the shared library runtime path variable. 11026runpath_var=$runpath_var 11027 11028# This is the shared library path variable. 11029shlibpath_var=$shlibpath_var 11030 11031# Is shlibpath searched before the hard-coded library search path? 11032shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11033 11034# How to hardcode a shared library path into an executable. 11035hardcode_action=$hardcode_action 11036 11037# Whether we should hardcode library paths into libraries. 11038hardcode_into_libs=$hardcode_into_libs 11039 11040# Flag to hardcode \$libdir into a binary during linking. 11041# This must work even if \$libdir does not exist. 11042hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11043 11044# If ld is used when linking, flag to hardcode \$libdir into 11045# a binary during linking. This must work even if \$libdir does 11046# not exist. 11047hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11048 11049# Whether we need a single -rpath flag with a separated argument. 11050hardcode_libdir_separator=$lt_hardcode_libdir_separator 11051 11052# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11053# resulting binary. 11054hardcode_direct=$hardcode_direct 11055 11056# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11057# resulting binary. 11058hardcode_minus_L=$hardcode_minus_L 11059 11060# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11061# the resulting binary. 11062hardcode_shlibpath_var=$hardcode_shlibpath_var 11063 11064# Set to yes if building a shared library automatically hardcodes DIR into the library 11065# and all subsequent libraries and executables linked against it. 11066hardcode_automatic=$hardcode_automatic 11067 11068# Variables whose values should be saved in libtool wrapper scripts and 11069# restored at relink time. 11070variables_saved_for_relink="$variables_saved_for_relink" 11071 11072# Whether libtool must link a program against all its dependency libraries. 11073link_all_deplibs=$link_all_deplibs 11074 11075# Compile-time system search path for libraries 11076sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11077 11078# Run-time system search path for libraries 11079sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11080 11081# Fix the shell variable \$srcfile for the compiler. 11082fix_srcfile_path="$fix_srcfile_path" 11083 11084# Set to yes if exported symbols are required. 11085always_export_symbols=$always_export_symbols 11086 11087# The commands to list exported symbols. 11088export_symbols_cmds=$lt_export_symbols_cmds 11089 11090# The commands to extract the exported symbol list from a shared archive. 11091extract_expsyms_cmds=$lt_extract_expsyms_cmds 11092 11093# Symbols that should not be listed in the preloaded symbols. 11094exclude_expsyms=$lt_exclude_expsyms 11095 11096# Symbols that must always be exported. 11097include_expsyms=$lt_include_expsyms 11098 11099# ### END LIBTOOL CONFIG 11100 11101__EOF__ 11102 11103 11104 case $host_os in 11105 aix3*) 11106 cat <<\EOF >> "$cfgfile" 11107 11108# AIX sometimes has problems with the GCC collect2 program. For some 11109# reason, if we set the COLLECT_NAMES environment variable, the problems 11110# vanish in a puff of smoke. 11111if test "X${COLLECT_NAMES+set}" != Xset; then 11112 COLLECT_NAMES= 11113 export COLLECT_NAMES 11114fi 11115EOF 11116 ;; 11117 esac 11118 11119 # We use sed instead of cat because bash on DJGPP gets confused if 11120 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11121 # text mode, it properly converts lines to CR/LF. This bash problem 11122 # is reportedly fixed, but why not run on old versions too? 11123 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11124 11125 mv -f "$cfgfile" "$ofile" || \ 11126 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11127 chmod +x "$ofile" 11128 11129else 11130 # If there is no Makefile yet, we rely on a make rule to execute 11131 # `config.status --recheck' to rerun these tests and create the 11132 # libtool script then. 11133 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11134 if test -f "$ltmain_in"; then 11135 test -f Makefile && make "$ltmain" 11136 fi 11137fi 11138 11139 11140ac_ext=cpp 11141ac_cpp='$CXXCPP $CPPFLAGS' 11142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11145 11146CC="$lt_save_CC" 11147 11148 11149# Check whether --with-tags was given. 11150if test "${with_tags+set}" = set; then 11151 withval=$with_tags; tagnames="$withval" 11152fi 11153 11154 11155if test -f "$ltmain" && test -n "$tagnames"; then 11156 if test ! -f "${ofile}"; then 11157 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11158echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11159 fi 11160 11161 if test -z "$LTCC"; then 11162 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11163 if test -z "$LTCC"; then 11164 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11165echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11166 else 11167 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11168echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11169 fi 11170 fi 11171 if test -z "$LTCFLAGS"; then 11172 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11173 fi 11174 11175 # Extract list of available tagged configurations in $ofile. 11176 # Note that this assumes the entire list is on one line. 11177 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11178 11179 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11180 for tagname in $tagnames; do 11181 IFS="$lt_save_ifs" 11182 # Check whether tagname contains only valid characters 11183 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11184 "") ;; 11185 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11186echo "$as_me: error: invalid tag name: $tagname" >&2;} 11187 { (exit 1); exit 1; }; } 11188 ;; 11189 esac 11190 11191 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11192 then 11193 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11194echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11195 { (exit 1); exit 1; }; } 11196 fi 11197 11198 # Update the list of available tags. 11199 if test -n "$tagname"; then 11200 echo appending configuration tag \"$tagname\" to $ofile 11201 11202 case $tagname in 11203 CXX) 11204 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11205 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11206 (test "X$CXX" != "Xg++"))) ; then 11207 ac_ext=cpp 11208ac_cpp='$CXXCPP $CPPFLAGS' 11209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11212 11213 11214 11215 11216archive_cmds_need_lc_CXX=no 11217allow_undefined_flag_CXX= 11218always_export_symbols_CXX=no 11219archive_expsym_cmds_CXX= 11220export_dynamic_flag_spec_CXX= 11221hardcode_direct_CXX=no 11222hardcode_libdir_flag_spec_CXX= 11223hardcode_libdir_flag_spec_ld_CXX= 11224hardcode_libdir_separator_CXX= 11225hardcode_minus_L_CXX=no 11226hardcode_shlibpath_var_CXX=unsupported 11227hardcode_automatic_CXX=no 11228module_cmds_CXX= 11229module_expsym_cmds_CXX= 11230link_all_deplibs_CXX=unknown 11231old_archive_cmds_CXX=$old_archive_cmds 11232no_undefined_flag_CXX= 11233whole_archive_flag_spec_CXX= 11234enable_shared_with_static_runtimes_CXX=no 11235 11236# Dependencies to place before and after the object being linked: 11237predep_objects_CXX= 11238postdep_objects_CXX= 11239predeps_CXX= 11240postdeps_CXX= 11241compiler_lib_search_path_CXX= 11242 11243# Source file extension for C++ test sources. 11244ac_ext=cpp 11245 11246# Object file extension for compiled C++ test sources. 11247objext=o 11248objext_CXX=$objext 11249 11250# Code to be used in simple compile tests 11251lt_simple_compile_test_code="int some_variable = 0;\n" 11252 11253# Code to be used in simple link tests 11254lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11255 11256# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11257 11258# If no C compiler was specified, use CC. 11259LTCC=${LTCC-"$CC"} 11260 11261# If no C compiler flags were specified, use CFLAGS. 11262LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11263 11264# Allow CC to be a program name with arguments. 11265compiler=$CC 11266 11267 11268# save warnings/boilerplate of simple test code 11269ac_outfile=conftest.$ac_objext 11270printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11271eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11272_lt_compiler_boilerplate=`cat conftest.err` 11273$rm conftest* 11274 11275ac_outfile=conftest.$ac_objext 11276printf "$lt_simple_link_test_code" >conftest.$ac_ext 11277eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11278_lt_linker_boilerplate=`cat conftest.err` 11279$rm conftest* 11280 11281 11282# Allow CC to be a program name with arguments. 11283lt_save_CC=$CC 11284lt_save_LD=$LD 11285lt_save_GCC=$GCC 11286GCC=$GXX 11287lt_save_with_gnu_ld=$with_gnu_ld 11288lt_save_path_LD=$lt_cv_path_LD 11289if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11290 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11291else 11292 $as_unset lt_cv_prog_gnu_ld 11293fi 11294if test -n "${lt_cv_path_LDCXX+set}"; then 11295 lt_cv_path_LD=$lt_cv_path_LDCXX 11296else 11297 $as_unset lt_cv_path_LD 11298fi 11299test -z "${LDCXX+set}" || LD=$LDCXX 11300CC=${CXX-"c++"} 11301compiler=$CC 11302compiler_CXX=$CC 11303for cc_temp in $compiler""; do 11304 case $cc_temp in 11305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11307 \-*) ;; 11308 *) break;; 11309 esac 11310done 11311cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11312 11313 11314# We don't want -fno-exception wen compiling C++ code, so set the 11315# no_builtin_flag separately 11316if test "$GXX" = yes; then 11317 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11318else 11319 lt_prog_compiler_no_builtin_flag_CXX= 11320fi 11321 11322if test "$GXX" = yes; then 11323 # Set up default GNU C++ configuration 11324 11325 11326# Check whether --with-gnu-ld was given. 11327if test "${with_gnu_ld+set}" = set; then 11328 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11329else 11330 with_gnu_ld=no 11331fi 11332 11333ac_prog=ld 11334if test "$GCC" = yes; then 11335 # Check if gcc -print-prog-name=ld gives a path. 11336 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11337echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11338 case $host in 11339 *-*-mingw*) 11340 # gcc leaves a trailing carriage return which upsets mingw 11341 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11342 *) 11343 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11344 esac 11345 case $ac_prog in 11346 # Accept absolute paths. 11347 [\\/]* | ?:[\\/]*) 11348 re_direlt='/[^/][^/]*/\.\./' 11349 # Canonicalize the pathname of ld 11350 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11351 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11352 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11353 done 11354 test -z "$LD" && LD="$ac_prog" 11355 ;; 11356 "") 11357 # If it fails, then pretend we aren't using GCC. 11358 ac_prog=ld 11359 ;; 11360 *) 11361 # If it is relative, then search for the first ld in PATH. 11362 with_gnu_ld=unknown 11363 ;; 11364 esac 11365elif test "$with_gnu_ld" = yes; then 11366 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11367echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11368else 11369 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11370echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11371fi 11372if test "${lt_cv_path_LD+set}" = set; then 11373 echo $ECHO_N "(cached) $ECHO_C" >&6 11374else 11375 if test -z "$LD"; then 11376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11377 for ac_dir in $PATH; do 11378 IFS="$lt_save_ifs" 11379 test -z "$ac_dir" && ac_dir=. 11380 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11381 lt_cv_path_LD="$ac_dir/$ac_prog" 11382 # Check to see if the program is GNU ld. I'd rather use --version, 11383 # but apparently some variants of GNU ld only accept -v. 11384 # Break only if it was the GNU/non-GNU ld that we prefer. 11385 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11386 *GNU* | *'with BFD'*) 11387 test "$with_gnu_ld" != no && break 11388 ;; 11389 *) 11390 test "$with_gnu_ld" != yes && break 11391 ;; 11392 esac 11393 fi 11394 done 11395 IFS="$lt_save_ifs" 11396else 11397 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11398fi 11399fi 11400 11401LD="$lt_cv_path_LD" 11402if test -n "$LD"; then 11403 { echo "$as_me:$LINENO: result: $LD" >&5 11404echo "${ECHO_T}$LD" >&6; } 11405else 11406 { echo "$as_me:$LINENO: result: no" >&5 11407echo "${ECHO_T}no" >&6; } 11408fi 11409test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11410echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11411 { (exit 1); exit 1; }; } 11412{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11413echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11414if test "${lt_cv_prog_gnu_ld+set}" = set; then 11415 echo $ECHO_N "(cached) $ECHO_C" >&6 11416else 11417 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11418case `$LD -v 2>&1 </dev/null` in 11419*GNU* | *'with BFD'*) 11420 lt_cv_prog_gnu_ld=yes 11421 ;; 11422*) 11423 lt_cv_prog_gnu_ld=no 11424 ;; 11425esac 11426fi 11427{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11428echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11429with_gnu_ld=$lt_cv_prog_gnu_ld 11430 11431 11432 11433 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11434 # archiving commands below assume that GNU ld is being used. 11435 if test "$with_gnu_ld" = yes; then 11436 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11437 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' 11438 11439 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11440 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11441 11442 # If archive_cmds runs LD, not CC, wlarc should be empty 11443 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11444 # investigate it a little bit more. (MM) 11445 wlarc='${wl}' 11446 11447 # ancient GNU ld didn't support --whole-archive et. al. 11448 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11449 grep 'no-whole-archive' > /dev/null; then 11450 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11451 else 11452 whole_archive_flag_spec_CXX= 11453 fi 11454 else 11455 with_gnu_ld=no 11456 wlarc= 11457 11458 # A generic and very simple default shared library creation 11459 # command for GNU C++ for the case where it uses the native 11460 # linker, instead of GNU ld. If possible, this setting should 11461 # overridden to take advantage of the native linker features on 11462 # the platform it is being used on. 11463 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11464 fi 11465 11466 # Commands to make compiler produce verbose output that lists 11467 # what "hidden" libraries, object files and flags are used when 11468 # linking a shared library. 11469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11470 11471else 11472 GXX=no 11473 with_gnu_ld=no 11474 wlarc= 11475fi 11476 11477# PORTME: fill in a description of your system's C++ link characteristics 11478{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11479echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11480ld_shlibs_CXX=yes 11481case $host_os in 11482 aix3*) 11483 # FIXME: insert proper C++ library support 11484 ld_shlibs_CXX=no 11485 ;; 11486 aix4* | aix5*) 11487 if test "$host_cpu" = ia64; then 11488 # On IA64, the linker does run time linking by default, so we don't 11489 # have to do anything special. 11490 aix_use_runtimelinking=no 11491 exp_sym_flag='-Bexport' 11492 no_entry_flag="" 11493 else 11494 aix_use_runtimelinking=no 11495 11496 # Test if we are trying to use run time linking or normal 11497 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11498 # need to do runtime linking. 11499 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11500 for ld_flag in $LDFLAGS; do 11501 case $ld_flag in 11502 *-brtl*) 11503 aix_use_runtimelinking=yes 11504 break 11505 ;; 11506 esac 11507 done 11508 ;; 11509 esac 11510 11511 exp_sym_flag='-bexport' 11512 no_entry_flag='-bnoentry' 11513 fi 11514 11515 # When large executables or shared objects are built, AIX ld can 11516 # have problems creating the table of contents. If linking a library 11517 # or program results in "error TOC overflow" add -mminimal-toc to 11518 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11519 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11520 11521 archive_cmds_CXX='' 11522 hardcode_direct_CXX=yes 11523 hardcode_libdir_separator_CXX=':' 11524 link_all_deplibs_CXX=yes 11525 11526 if test "$GXX" = yes; then 11527 case $host_os in aix4.[012]|aix4.[012].*) 11528 # We only want to do this on AIX 4.2 and lower, the check 11529 # below for broken collect2 doesn't work under 4.3+ 11530 collect2name=`${CC} -print-prog-name=collect2` 11531 if test -f "$collect2name" && \ 11532 strings "$collect2name" | grep resolve_lib_name >/dev/null 11533 then 11534 # We have reworked collect2 11535 hardcode_direct_CXX=yes 11536 else 11537 # We have old collect2 11538 hardcode_direct_CXX=unsupported 11539 # It fails to find uninstalled libraries when the uninstalled 11540 # path is not listed in the libpath. Setting hardcode_minus_L 11541 # to unsupported forces relinking 11542 hardcode_minus_L_CXX=yes 11543 hardcode_libdir_flag_spec_CXX='-L$libdir' 11544 hardcode_libdir_separator_CXX= 11545 fi 11546 ;; 11547 esac 11548 shared_flag='-shared' 11549 if test "$aix_use_runtimelinking" = yes; then 11550 shared_flag="$shared_flag "'${wl}-G' 11551 fi 11552 else 11553 # not using gcc 11554 if test "$host_cpu" = ia64; then 11555 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11556 # chokes on -Wl,-G. The following line is correct: 11557 shared_flag='-G' 11558 else 11559 if test "$aix_use_runtimelinking" = yes; then 11560 shared_flag='${wl}-G' 11561 else 11562 shared_flag='${wl}-bM:SRE' 11563 fi 11564 fi 11565 fi 11566 11567 # It seems that -bexpall does not export symbols beginning with 11568 # underscore (_), so it is better to generate a list of symbols to export. 11569 always_export_symbols_CXX=yes 11570 if test "$aix_use_runtimelinking" = yes; then 11571 # Warning - without using the other runtime loading flags (-brtl), 11572 # -berok will link without error, but may produce a broken library. 11573 allow_undefined_flag_CXX='-berok' 11574 # Determine the default libpath from the value encoded in an empty executable. 11575 cat >conftest.$ac_ext <<_ACEOF 11576/* confdefs.h. */ 11577_ACEOF 11578cat confdefs.h >>conftest.$ac_ext 11579cat >>conftest.$ac_ext <<_ACEOF 11580/* end confdefs.h. */ 11581 11582int 11583main () 11584{ 11585 11586 ; 11587 return 0; 11588} 11589_ACEOF 11590rm -f conftest.$ac_objext conftest$ac_exeext 11591if { (ac_try="$ac_link" 11592case "(($ac_try" in 11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11594 *) ac_try_echo=$ac_try;; 11595esac 11596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11597 (eval "$ac_link") 2>conftest.er1 11598 ac_status=$? 11599 grep -v '^ *+' conftest.er1 >conftest.err 11600 rm -f conftest.er1 11601 cat conftest.err >&5 11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11603 (exit $ac_status); } && { 11604 test -z "$ac_cxx_werror_flag" || 11605 test ! -s conftest.err 11606 } && test -s conftest$ac_exeext && 11607 $as_test_x conftest$ac_exeext; then 11608 11609aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11610}'` 11611# Check for a 64-bit object if we didn't find anything. 11612if 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; } 11613}'`; fi 11614else 11615 echo "$as_me: failed program was:" >&5 11616sed 's/^/| /' conftest.$ac_ext >&5 11617 11618 11619fi 11620 11621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11622 conftest$ac_exeext conftest.$ac_ext 11623if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11624 11625 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11626 11627 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" 11628 else 11629 if test "$host_cpu" = ia64; then 11630 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11631 allow_undefined_flag_CXX="-z nodefs" 11632 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" 11633 else 11634 # Determine the default libpath from the value encoded in an empty executable. 11635 cat >conftest.$ac_ext <<_ACEOF 11636/* confdefs.h. */ 11637_ACEOF 11638cat confdefs.h >>conftest.$ac_ext 11639cat >>conftest.$ac_ext <<_ACEOF 11640/* end confdefs.h. */ 11641 11642int 11643main () 11644{ 11645 11646 ; 11647 return 0; 11648} 11649_ACEOF 11650rm -f conftest.$ac_objext conftest$ac_exeext 11651if { (ac_try="$ac_link" 11652case "(($ac_try" in 11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11654 *) ac_try_echo=$ac_try;; 11655esac 11656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11657 (eval "$ac_link") 2>conftest.er1 11658 ac_status=$? 11659 grep -v '^ *+' conftest.er1 >conftest.err 11660 rm -f conftest.er1 11661 cat conftest.err >&5 11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11663 (exit $ac_status); } && { 11664 test -z "$ac_cxx_werror_flag" || 11665 test ! -s conftest.err 11666 } && test -s conftest$ac_exeext && 11667 $as_test_x conftest$ac_exeext; then 11668 11669aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11670}'` 11671# Check for a 64-bit object if we didn't find anything. 11672if 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; } 11673}'`; fi 11674else 11675 echo "$as_me: failed program was:" >&5 11676sed 's/^/| /' conftest.$ac_ext >&5 11677 11678 11679fi 11680 11681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11682 conftest$ac_exeext conftest.$ac_ext 11683if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11684 11685 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11686 # Warning - without using the other run time loading flags, 11687 # -berok will link without error, but may produce a broken library. 11688 no_undefined_flag_CXX=' ${wl}-bernotok' 11689 allow_undefined_flag_CXX=' ${wl}-berok' 11690 # Exported symbols can be pulled into shared objects from archives 11691 whole_archive_flag_spec_CXX='$convenience' 11692 archive_cmds_need_lc_CXX=yes 11693 # This is similar to how AIX traditionally builds its shared libraries. 11694 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' 11695 fi 11696 fi 11697 ;; 11698 11699 beos*) 11700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11701 allow_undefined_flag_CXX=unsupported 11702 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11703 # support --undefined. This deserves some investigation. FIXME 11704 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11705 else 11706 ld_shlibs_CXX=no 11707 fi 11708 ;; 11709 11710 chorus*) 11711 case $cc_basename in 11712 *) 11713 # FIXME: insert proper C++ library support 11714 ld_shlibs_CXX=no 11715 ;; 11716 esac 11717 ;; 11718 11719 cygwin* | mingw* | pw32*) 11720 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11721 # as there is no search path for DLLs. 11722 hardcode_libdir_flag_spec_CXX='-L$libdir' 11723 allow_undefined_flag_CXX=unsupported 11724 always_export_symbols_CXX=no 11725 enable_shared_with_static_runtimes_CXX=yes 11726 11727 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11728 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' 11729 # If the export-symbols file already is a .def file (1st line 11730 # is EXPORTS), use it as is; otherwise, prepend... 11731 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11732 cp $export_symbols $output_objdir/$soname.def; 11733 else 11734 echo EXPORTS > $output_objdir/$soname.def; 11735 cat $export_symbols >> $output_objdir/$soname.def; 11736 fi~ 11737 $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' 11738 else 11739 ld_shlibs_CXX=no 11740 fi 11741 ;; 11742 darwin* | rhapsody*) 11743 case $host_os in 11744 rhapsody* | darwin1.[012]) 11745 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11746 ;; 11747 *) # Darwin 1.3 on 11748 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11749 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11750 else 11751 case ${MACOSX_DEPLOYMENT_TARGET} in 11752 10.[012]) 11753 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11754 ;; 11755 10.*) 11756 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11757 ;; 11758 esac 11759 fi 11760 ;; 11761 esac 11762 archive_cmds_need_lc_CXX=no 11763 hardcode_direct_CXX=no 11764 hardcode_automatic_CXX=yes 11765 hardcode_shlibpath_var_CXX=unsupported 11766 whole_archive_flag_spec_CXX='' 11767 link_all_deplibs_CXX=yes 11768 11769 if test "$GXX" = yes ; then 11770 lt_int_apple_cc_single_mod=no 11771 output_verbose_link_cmd='echo' 11772 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11773 lt_int_apple_cc_single_mod=yes 11774 fi 11775 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11776 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11777 else 11778 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' 11779 fi 11780 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11781 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11782 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11783 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}' 11784 else 11785 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}' 11786 fi 11787 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}' 11788 else 11789 case $cc_basename in 11790 xlc*) 11791 output_verbose_link_cmd='echo' 11792 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' 11793 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11794 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11795 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}' 11796 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}' 11797 ;; 11798 *) 11799 ld_shlibs_CXX=no 11800 ;; 11801 esac 11802 fi 11803 ;; 11804 11805 dgux*) 11806 case $cc_basename in 11807 ec++*) 11808 # FIXME: insert proper C++ library support 11809 ld_shlibs_CXX=no 11810 ;; 11811 ghcx*) 11812 # Green Hills C++ Compiler 11813 # FIXME: insert proper C++ library support 11814 ld_shlibs_CXX=no 11815 ;; 11816 *) 11817 # FIXME: insert proper C++ library support 11818 ld_shlibs_CXX=no 11819 ;; 11820 esac 11821 ;; 11822 freebsd[12]*) 11823 # C++ shared libraries reported to be fairly broken before switch to ELF 11824 ld_shlibs_CXX=no 11825 ;; 11826 freebsd-elf*) 11827 archive_cmds_need_lc_CXX=no 11828 ;; 11829 freebsd* | dragonfly*) 11830 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11831 # conventions 11832 ld_shlibs_CXX=yes 11833 ;; 11834 gnu*) 11835 ;; 11836 hpux9*) 11837 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11838 hardcode_libdir_separator_CXX=: 11839 export_dynamic_flag_spec_CXX='${wl}-E' 11840 hardcode_direct_CXX=yes 11841 hardcode_minus_L_CXX=yes # Not in the search PATH, 11842 # but as the default 11843 # location of the library. 11844 11845 case $cc_basename in 11846 CC*) 11847 # FIXME: insert proper C++ library support 11848 ld_shlibs_CXX=no 11849 ;; 11850 aCC*) 11851 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' 11852 # Commands to make compiler produce verbose output that lists 11853 # what "hidden" libraries, object files and flags are used when 11854 # linking a shared library. 11855 # 11856 # There doesn't appear to be a way to prevent this compiler from 11857 # explicitly linking system object files so we need to strip them 11858 # from the output so that they don't get included in the library 11859 # dependencies. 11860 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' 11861 ;; 11862 *) 11863 if test "$GXX" = yes; then 11864 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' 11865 else 11866 # FIXME: insert proper C++ library support 11867 ld_shlibs_CXX=no 11868 fi 11869 ;; 11870 esac 11871 ;; 11872 hpux10*|hpux11*) 11873 if test $with_gnu_ld = no; then 11874 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11875 hardcode_libdir_separator_CXX=: 11876 11877 case $host_cpu in 11878 hppa*64*|ia64*) 11879 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11880 ;; 11881 *) 11882 export_dynamic_flag_spec_CXX='${wl}-E' 11883 ;; 11884 esac 11885 fi 11886 case $host_cpu in 11887 hppa*64*|ia64*) 11888 hardcode_direct_CXX=no 11889 hardcode_shlibpath_var_CXX=no 11890 ;; 11891 *) 11892 hardcode_direct_CXX=yes 11893 hardcode_minus_L_CXX=yes # Not in the search PATH, 11894 # but as the default 11895 # location of the library. 11896 ;; 11897 esac 11898 11899 case $cc_basename in 11900 CC*) 11901 # FIXME: insert proper C++ library support 11902 ld_shlibs_CXX=no 11903 ;; 11904 aCC*) 11905 case $host_cpu in 11906 hppa*64*) 11907 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11908 ;; 11909 ia64*) 11910 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11911 ;; 11912 *) 11913 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11914 ;; 11915 esac 11916 # Commands to make compiler produce verbose output that lists 11917 # what "hidden" libraries, object files and flags are used when 11918 # linking a shared library. 11919 # 11920 # There doesn't appear to be a way to prevent this compiler from 11921 # explicitly linking system object files so we need to strip them 11922 # from the output so that they don't get included in the library 11923 # dependencies. 11924 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' 11925 ;; 11926 *) 11927 if test "$GXX" = yes; then 11928 if test $with_gnu_ld = no; then 11929 case $host_cpu in 11930 hppa*64*) 11931 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11932 ;; 11933 ia64*) 11934 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11935 ;; 11936 *) 11937 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' 11938 ;; 11939 esac 11940 fi 11941 else 11942 # FIXME: insert proper C++ library support 11943 ld_shlibs_CXX=no 11944 fi 11945 ;; 11946 esac 11947 ;; 11948 interix3*) 11949 hardcode_direct_CXX=no 11950 hardcode_shlibpath_var_CXX=no 11951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11952 export_dynamic_flag_spec_CXX='${wl}-E' 11953 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11954 # Instead, shared libraries are loaded at an image base (0x10000000 by 11955 # default) and relocated if they conflict, which is a slow very memory 11956 # consuming and fragmenting process. To avoid this, we pick a random, 11957 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11958 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11959 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' 11960 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' 11961 ;; 11962 irix5* | irix6*) 11963 case $cc_basename in 11964 CC*) 11965 # SGI C++ 11966 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' 11967 11968 # Archives containing C++ object files must be created using 11969 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11970 # necessary to make sure instantiated templates are included 11971 # in the archive. 11972 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11973 ;; 11974 *) 11975 if test "$GXX" = yes; then 11976 if test "$with_gnu_ld" = no; then 11977 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' 11978 else 11979 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' 11980 fi 11981 fi 11982 link_all_deplibs_CXX=yes 11983 ;; 11984 esac 11985 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11986 hardcode_libdir_separator_CXX=: 11987 ;; 11988 linux* | k*bsd*-gnu) 11989 case $cc_basename in 11990 KCC*) 11991 # Kuck and Associates, Inc. (KAI) C++ Compiler 11992 11993 # KCC will only create a shared library if the output file 11994 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11995 # to its proper name (with version) after linking. 11996 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' 11997 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' 11998 # Commands to make compiler produce verbose output that lists 11999 # what "hidden" libraries, object files and flags are used when 12000 # linking a shared library. 12001 # 12002 # There doesn't appear to be a way to prevent this compiler from 12003 # explicitly linking system object files so we need to strip them 12004 # from the output so that they don't get included in the library 12005 # dependencies. 12006 output_verbose_link_cmd='templist=`$CC $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' 12007 12008 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12010 12011 # Archives containing C++ object files must be created using 12012 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12013 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12014 ;; 12015 icpc*) 12016 # Intel C++ 12017 with_gnu_ld=yes 12018 # version 8.0 and above of icpc choke on multiply defined symbols 12019 # if we add $predep_objects and $postdep_objects, however 7.1 and 12020 # earlier do not add the objects themselves. 12021 case `$CC -V 2>&1` in 12022 *"Version 7."*) 12023 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12024 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' 12025 ;; 12026 *) # Version 8.0 or newer 12027 tmp_idyn= 12028 case $host_cpu in 12029 ia64*) tmp_idyn=' -i_dynamic';; 12030 esac 12031 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12032 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' 12033 ;; 12034 esac 12035 archive_cmds_need_lc_CXX=no 12036 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12037 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12038 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12039 ;; 12040 pgCC*) 12041 # Portland Group C++ compiler 12042 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12043 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' 12044 12045 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12047 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' 12048 ;; 12049 cxx*) 12050 # Compaq C++ 12051 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12052 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' 12053 12054 runpath_var=LD_RUN_PATH 12055 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12056 hardcode_libdir_separator_CXX=: 12057 12058 # Commands to make compiler produce verbose output that lists 12059 # what "hidden" libraries, object files and flags are used when 12060 # linking a shared library. 12061 # 12062 # There doesn't appear to be a way to prevent this compiler from 12063 # explicitly linking system object files so we need to strip them 12064 # from the output so that they don't get included in the library 12065 # dependencies. 12066 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' 12067 ;; 12068 esac 12069 ;; 12070 lynxos*) 12071 # FIXME: insert proper C++ library support 12072 ld_shlibs_CXX=no 12073 ;; 12074 m88k*) 12075 # FIXME: insert proper C++ library support 12076 ld_shlibs_CXX=no 12077 ;; 12078 mvs*) 12079 case $cc_basename in 12080 cxx*) 12081 # FIXME: insert proper C++ library support 12082 ld_shlibs_CXX=no 12083 ;; 12084 *) 12085 # FIXME: insert proper C++ library support 12086 ld_shlibs_CXX=no 12087 ;; 12088 esac 12089 ;; 12090 netbsd* | netbsdelf*-gnu) 12091 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12092 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12093 wlarc= 12094 hardcode_libdir_flag_spec_CXX='-R$libdir' 12095 hardcode_direct_CXX=yes 12096 hardcode_shlibpath_var_CXX=no 12097 fi 12098 # Workaround some broken pre-1.5 toolchains 12099 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12100 ;; 12101 openbsd2*) 12102 # C++ shared libraries are fairly broken 12103 ld_shlibs_CXX=no 12104 ;; 12105 openbsd*) 12106 hardcode_direct_CXX=yes 12107 hardcode_shlibpath_var_CXX=no 12108 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12109 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12111 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12112 export_dynamic_flag_spec_CXX='${wl}-E' 12113 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12114 fi 12115 output_verbose_link_cmd='echo' 12116 ;; 12117 osf3*) 12118 case $cc_basename in 12119 KCC*) 12120 # Kuck and Associates, Inc. (KAI) C++ Compiler 12121 12122 # KCC will only create a shared library if the output file 12123 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12124 # to its proper name (with version) after linking. 12125 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' 12126 12127 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12128 hardcode_libdir_separator_CXX=: 12129 12130 # Archives containing C++ object files must be created using 12131 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12132 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12133 12134 ;; 12135 RCC*) 12136 # Rational C++ 2.4.1 12137 # FIXME: insert proper C++ library support 12138 ld_shlibs_CXX=no 12139 ;; 12140 cxx*) 12141 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12142 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' 12143 12144 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12145 hardcode_libdir_separator_CXX=: 12146 12147 # Commands to make compiler produce verbose output that lists 12148 # what "hidden" libraries, object files and flags are used when 12149 # linking a shared library. 12150 # 12151 # There doesn't appear to be a way to prevent this compiler from 12152 # explicitly linking system object files so we need to strip them 12153 # from the output so that they don't get included in the library 12154 # dependencies. 12155 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' 12156 ;; 12157 *) 12158 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12160 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' 12161 12162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12163 hardcode_libdir_separator_CXX=: 12164 12165 # Commands to make compiler produce verbose output that lists 12166 # what "hidden" libraries, object files and flags are used when 12167 # linking a shared library. 12168 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12169 12170 else 12171 # FIXME: insert proper C++ library support 12172 ld_shlibs_CXX=no 12173 fi 12174 ;; 12175 esac 12176 ;; 12177 osf4* | osf5*) 12178 case $cc_basename in 12179 KCC*) 12180 # Kuck and Associates, Inc. (KAI) C++ Compiler 12181 12182 # KCC will only create a shared library if the output file 12183 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12184 # to its proper name (with version) after linking. 12185 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' 12186 12187 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12188 hardcode_libdir_separator_CXX=: 12189 12190 # Archives containing C++ object files must be created using 12191 # the KAI C++ compiler. 12192 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12193 ;; 12194 RCC*) 12195 # Rational C++ 2.4.1 12196 # FIXME: insert proper C++ library support 12197 ld_shlibs_CXX=no 12198 ;; 12199 cxx*) 12200 allow_undefined_flag_CXX=' -expect_unresolved \*' 12201 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' 12202 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12203 echo "-hidden">> $lib.exp~ 12204 $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~ 12205 $rm $lib.exp' 12206 12207 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12208 hardcode_libdir_separator_CXX=: 12209 12210 # Commands to make compiler produce verbose output that lists 12211 # what "hidden" libraries, object files and flags are used when 12212 # linking a shared library. 12213 # 12214 # There doesn't appear to be a way to prevent this compiler from 12215 # explicitly linking system object files so we need to strip them 12216 # from the output so that they don't get included in the library 12217 # dependencies. 12218 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' 12219 ;; 12220 *) 12221 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12222 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12223 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' 12224 12225 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12226 hardcode_libdir_separator_CXX=: 12227 12228 # Commands to make compiler produce verbose output that lists 12229 # what "hidden" libraries, object files and flags are used when 12230 # linking a shared library. 12231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12232 12233 else 12234 # FIXME: insert proper C++ library support 12235 ld_shlibs_CXX=no 12236 fi 12237 ;; 12238 esac 12239 ;; 12240 psos*) 12241 # FIXME: insert proper C++ library support 12242 ld_shlibs_CXX=no 12243 ;; 12244 sunos4*) 12245 case $cc_basename in 12246 CC*) 12247 # Sun C++ 4.x 12248 # FIXME: insert proper C++ library support 12249 ld_shlibs_CXX=no 12250 ;; 12251 lcc*) 12252 # Lucid 12253 # FIXME: insert proper C++ library support 12254 ld_shlibs_CXX=no 12255 ;; 12256 *) 12257 # FIXME: insert proper C++ library support 12258 ld_shlibs_CXX=no 12259 ;; 12260 esac 12261 ;; 12262 solaris*) 12263 case $cc_basename in 12264 CC*) 12265 # Sun C++ 4.2, 5.x and Centerline C++ 12266 archive_cmds_need_lc_CXX=yes 12267 no_undefined_flag_CXX=' -zdefs' 12268 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12269 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12270 $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' 12271 12272 hardcode_libdir_flag_spec_CXX='-R$libdir' 12273 hardcode_shlibpath_var_CXX=no 12274 case $host_os in 12275 solaris2.[0-5] | solaris2.[0-5].*) ;; 12276 *) 12277 # The C++ compiler is used as linker so we must use $wl 12278 # flag to pass the commands to the underlying system 12279 # linker. We must also pass each convience library through 12280 # to the system linker between allextract/defaultextract. 12281 # The C++ compiler will combine linker options so we 12282 # cannot just pass the convience library names through 12283 # without $wl. 12284 # Supported since Solaris 2.6 (maybe 2.5.1?) 12285 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' 12286 ;; 12287 esac 12288 link_all_deplibs_CXX=yes 12289 12290 output_verbose_link_cmd='echo' 12291 12292 # Archives containing C++ object files must be created using 12293 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12294 # necessary to make sure instantiated templates are included 12295 # in the archive. 12296 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12297 ;; 12298 gcx*) 12299 # Green Hills C++ Compiler 12300 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12301 12302 # The C++ compiler must be used to create the archive. 12303 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12304 ;; 12305 *) 12306 # GNU C++ compiler with Solaris linker 12307 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12308 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12309 if $CC --version | grep -v '^2\.7' > /dev/null; then 12310 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12311 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12312 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12313 12314 # Commands to make compiler produce verbose output that lists 12315 # what "hidden" libraries, object files and flags are used when 12316 # linking a shared library. 12317 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12318 else 12319 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12320 # platform. 12321 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12322 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12323 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12324 12325 # Commands to make compiler produce verbose output that lists 12326 # what "hidden" libraries, object files and flags are used when 12327 # linking a shared library. 12328 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12329 fi 12330 12331 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12332 fi 12333 ;; 12334 esac 12335 ;; 12336 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12337 no_undefined_flag_CXX='${wl}-z,text' 12338 archive_cmds_need_lc_CXX=no 12339 hardcode_shlibpath_var_CXX=no 12340 runpath_var='LD_RUN_PATH' 12341 12342 case $cc_basename in 12343 CC*) 12344 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12345 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12346 ;; 12347 *) 12348 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12349 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12350 ;; 12351 esac 12352 ;; 12353 sysv5* | sco3.2v5* | sco5v6*) 12354 # Note: We can NOT use -z defs as we might desire, because we do not 12355 # link with -lc, and that would cause any symbols used from libc to 12356 # always be unresolved, which means just about no library would 12357 # ever link correctly. If we're not using GNU ld we use -z text 12358 # though, which does catch some bad symbols but isn't as heavy-handed 12359 # as -z defs. 12360 # For security reasons, it is highly recommended that you always 12361 # use absolute paths for naming shared libraries, and exclude the 12362 # DT_RUNPATH tag from executables and libraries. But doing so 12363 # requires that you compile everything twice, which is a pain. 12364 # So that behaviour is only enabled if SCOABSPATH is set to a 12365 # non-empty value in the environment. Most likely only useful for 12366 # creating official distributions of packages. 12367 # This is a hack until libtool officially supports absolute path 12368 # names for shared libraries. 12369 no_undefined_flag_CXX='${wl}-z,text' 12370 allow_undefined_flag_CXX='${wl}-z,nodefs' 12371 archive_cmds_need_lc_CXX=no 12372 hardcode_shlibpath_var_CXX=no 12373 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12374 hardcode_libdir_separator_CXX=':' 12375 link_all_deplibs_CXX=yes 12376 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12377 runpath_var='LD_RUN_PATH' 12378 12379 case $cc_basename in 12380 CC*) 12381 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12382 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12383 ;; 12384 *) 12385 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12386 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12387 ;; 12388 esac 12389 ;; 12390 tandem*) 12391 case $cc_basename in 12392 NCC*) 12393 # NonStop-UX NCC 3.20 12394 # FIXME: insert proper C++ library support 12395 ld_shlibs_CXX=no 12396 ;; 12397 *) 12398 # FIXME: insert proper C++ library support 12399 ld_shlibs_CXX=no 12400 ;; 12401 esac 12402 ;; 12403 vxworks*) 12404 # FIXME: insert proper C++ library support 12405 ld_shlibs_CXX=no 12406 ;; 12407 *) 12408 # FIXME: insert proper C++ library support 12409 ld_shlibs_CXX=no 12410 ;; 12411esac 12412{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12413echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12414test "$ld_shlibs_CXX" = no && can_build_shared=no 12415 12416GCC_CXX="$GXX" 12417LD_CXX="$LD" 12418 12419 12420cat > conftest.$ac_ext <<EOF 12421class Foo 12422{ 12423public: 12424 Foo (void) { a = 0; } 12425private: 12426 int a; 12427}; 12428EOF 12429 12430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12431 (eval $ac_compile) 2>&5 12432 ac_status=$? 12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12434 (exit $ac_status); }; then 12435 # Parse the compiler output and extract the necessary 12436 # objects, libraries and library flags. 12437 12438 # Sentinel used to keep track of whether or not we are before 12439 # the conftest object file. 12440 pre_test_object_deps_done=no 12441 12442 # The `*' in the case matches for architectures that use `case' in 12443 # $output_verbose_cmd can trigger glob expansion during the loop 12444 # eval without this substitution. 12445 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12446 12447 for p in `eval $output_verbose_link_cmd`; do 12448 case $p in 12449 12450 -L* | -R* | -l*) 12451 # Some compilers place space between "-{L,R}" and the path. 12452 # Remove the space. 12453 if test $p = "-L" \ 12454 || test $p = "-R"; then 12455 prev=$p 12456 continue 12457 else 12458 prev= 12459 fi 12460 12461 if test "$pre_test_object_deps_done" = no; then 12462 case $p in 12463 -L* | -R*) 12464 # Internal compiler library paths should come after those 12465 # provided the user. The postdeps already come after the 12466 # user supplied libs so there is no need to process them. 12467 if test -z "$compiler_lib_search_path_CXX"; then 12468 compiler_lib_search_path_CXX="${prev}${p}" 12469 else 12470 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12471 fi 12472 ;; 12473 # The "-l" case would never come before the object being 12474 # linked, so don't bother handling this case. 12475 esac 12476 else 12477 if test -z "$postdeps_CXX"; then 12478 postdeps_CXX="${prev}${p}" 12479 else 12480 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12481 fi 12482 fi 12483 ;; 12484 12485 *.$objext) 12486 # This assumes that the test object file only shows up 12487 # once in the compiler output. 12488 if test "$p" = "conftest.$objext"; then 12489 pre_test_object_deps_done=yes 12490 continue 12491 fi 12492 12493 if test "$pre_test_object_deps_done" = no; then 12494 if test -z "$predep_objects_CXX"; then 12495 predep_objects_CXX="$p" 12496 else 12497 predep_objects_CXX="$predep_objects_CXX $p" 12498 fi 12499 else 12500 if test -z "$postdep_objects_CXX"; then 12501 postdep_objects_CXX="$p" 12502 else 12503 postdep_objects_CXX="$postdep_objects_CXX $p" 12504 fi 12505 fi 12506 ;; 12507 12508 *) ;; # Ignore the rest. 12509 12510 esac 12511 done 12512 12513 # Clean up. 12514 rm -f a.out a.exe 12515else 12516 echo "libtool.m4: error: problem compiling CXX test program" 12517fi 12518 12519$rm -f confest.$objext 12520 12521# PORTME: override above test on systems where it is broken 12522case $host_os in 12523interix3*) 12524 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12525 # hack all around it, let's just trust "g++" to DTRT. 12526 predep_objects_CXX= 12527 postdep_objects_CXX= 12528 postdeps_CXX= 12529 ;; 12530 12531solaris*) 12532 case $cc_basename in 12533 CC*) 12534 # Adding this requires a known-good setup of shared libraries for 12535 # Sun compiler versions before 5.6, else PIC objects from an old 12536 # archive will be linked into the output, leading to subtle bugs. 12537 postdeps_CXX='-lCstd -lCrun' 12538 ;; 12539 esac 12540 ;; 12541esac 12542 12543 12544case " $postdeps_CXX " in 12545*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12546esac 12547 12548lt_prog_compiler_wl_CXX= 12549lt_prog_compiler_pic_CXX= 12550lt_prog_compiler_static_CXX= 12551 12552{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12553echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12554 12555 # C++ specific cases for pic, static, wl, etc. 12556 if test "$GXX" = yes; then 12557 lt_prog_compiler_wl_CXX='-Wl,' 12558 lt_prog_compiler_static_CXX='-static' 12559 12560 case $host_os in 12561 aix*) 12562 # All AIX code is PIC. 12563 if test "$host_cpu" = ia64; then 12564 # AIX 5 now supports IA64 processor 12565 lt_prog_compiler_static_CXX='-Bstatic' 12566 fi 12567 ;; 12568 amigaos*) 12569 # FIXME: we need at least 68020 code to build shared libraries, but 12570 # adding the `-m68020' flag to GCC prevents building anything better, 12571 # like `-m68040'. 12572 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12573 ;; 12574 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12575 # PIC is the default for these OSes. 12576 ;; 12577 mingw* | os2* | pw32*) 12578 # This hack is so that the source file can tell whether it is being 12579 # built for inclusion in a dll (and should export symbols for example). 12580 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12581 ;; 12582 darwin* | rhapsody*) 12583 # PIC is the default on this platform 12584 # Common symbols not allowed in MH_DYLIB files 12585 lt_prog_compiler_pic_CXX='-fno-common' 12586 ;; 12587 *djgpp*) 12588 # DJGPP does not support shared libraries at all 12589 lt_prog_compiler_pic_CXX= 12590 ;; 12591 interix3*) 12592 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12593 # Instead, we relocate shared libraries at runtime. 12594 ;; 12595 sysv4*MP*) 12596 if test -d /usr/nec; then 12597 lt_prog_compiler_pic_CXX=-Kconform_pic 12598 fi 12599 ;; 12600 hpux*) 12601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12602 # not for PA HP-UX. 12603 case $host_cpu in 12604 hppa*64*|ia64*) 12605 ;; 12606 *) 12607 lt_prog_compiler_pic_CXX='-fPIC' 12608 ;; 12609 esac 12610 ;; 12611 *) 12612 lt_prog_compiler_pic_CXX='-fPIC' 12613 ;; 12614 esac 12615 else 12616 case $host_os in 12617 aix4* | aix5*) 12618 # All AIX code is PIC. 12619 if test "$host_cpu" = ia64; then 12620 # AIX 5 now supports IA64 processor 12621 lt_prog_compiler_static_CXX='-Bstatic' 12622 else 12623 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12624 fi 12625 ;; 12626 chorus*) 12627 case $cc_basename in 12628 cxch68*) 12629 # Green Hills C++ Compiler 12630 # _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" 12631 ;; 12632 esac 12633 ;; 12634 darwin*) 12635 # PIC is the default on this platform 12636 # Common symbols not allowed in MH_DYLIB files 12637 case $cc_basename in 12638 xlc*) 12639 lt_prog_compiler_pic_CXX='-qnocommon' 12640 lt_prog_compiler_wl_CXX='-Wl,' 12641 ;; 12642 esac 12643 ;; 12644 dgux*) 12645 case $cc_basename in 12646 ec++*) 12647 lt_prog_compiler_pic_CXX='-KPIC' 12648 ;; 12649 ghcx*) 12650 # Green Hills C++ Compiler 12651 lt_prog_compiler_pic_CXX='-pic' 12652 ;; 12653 *) 12654 ;; 12655 esac 12656 ;; 12657 freebsd* | dragonfly*) 12658 # FreeBSD uses GNU C++ 12659 ;; 12660 hpux9* | hpux10* | hpux11*) 12661 case $cc_basename in 12662 CC*) 12663 lt_prog_compiler_wl_CXX='-Wl,' 12664 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12665 if test "$host_cpu" != ia64; then 12666 lt_prog_compiler_pic_CXX='+Z' 12667 fi 12668 ;; 12669 aCC*) 12670 lt_prog_compiler_wl_CXX='-Wl,' 12671 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12672 case $host_cpu in 12673 hppa*64*|ia64*) 12674 # +Z the default 12675 ;; 12676 *) 12677 lt_prog_compiler_pic_CXX='+Z' 12678 ;; 12679 esac 12680 ;; 12681 *) 12682 ;; 12683 esac 12684 ;; 12685 interix*) 12686 # This is c89, which is MS Visual C++ (no shared libs) 12687 # Anyone wants to do a port? 12688 ;; 12689 irix5* | irix6* | nonstopux*) 12690 case $cc_basename in 12691 CC*) 12692 lt_prog_compiler_wl_CXX='-Wl,' 12693 lt_prog_compiler_static_CXX='-non_shared' 12694 # CC pic flag -KPIC is the default. 12695 ;; 12696 *) 12697 ;; 12698 esac 12699 ;; 12700 linux* | k*bsd*-gnu) 12701 case $cc_basename in 12702 KCC*) 12703 # KAI C++ Compiler 12704 lt_prog_compiler_wl_CXX='--backend -Wl,' 12705 lt_prog_compiler_pic_CXX='-fPIC' 12706 ;; 12707 icpc* | ecpc*) 12708 # Intel C++ 12709 lt_prog_compiler_wl_CXX='-Wl,' 12710 lt_prog_compiler_pic_CXX='-KPIC' 12711 lt_prog_compiler_static_CXX='-static' 12712 ;; 12713 pgCC*) 12714 # Portland Group C++ compiler. 12715 lt_prog_compiler_wl_CXX='-Wl,' 12716 lt_prog_compiler_pic_CXX='-fpic' 12717 lt_prog_compiler_static_CXX='-Bstatic' 12718 ;; 12719 cxx*) 12720 # Compaq C++ 12721 # Make sure the PIC flag is empty. It appears that all Alpha 12722 # Linux and Compaq Tru64 Unix objects are PIC. 12723 lt_prog_compiler_pic_CXX= 12724 lt_prog_compiler_static_CXX='-non_shared' 12725 ;; 12726 *) 12727 ;; 12728 esac 12729 ;; 12730 lynxos*) 12731 ;; 12732 m88k*) 12733 ;; 12734 mvs*) 12735 case $cc_basename in 12736 cxx*) 12737 lt_prog_compiler_pic_CXX='-W c,exportall' 12738 ;; 12739 *) 12740 ;; 12741 esac 12742 ;; 12743 netbsd* | netbsdelf*-gnu) 12744 ;; 12745 osf3* | osf4* | osf5*) 12746 case $cc_basename in 12747 KCC*) 12748 lt_prog_compiler_wl_CXX='--backend -Wl,' 12749 ;; 12750 RCC*) 12751 # Rational C++ 2.4.1 12752 lt_prog_compiler_pic_CXX='-pic' 12753 ;; 12754 cxx*) 12755 # Digital/Compaq C++ 12756 lt_prog_compiler_wl_CXX='-Wl,' 12757 # Make sure the PIC flag is empty. It appears that all Alpha 12758 # Linux and Compaq Tru64 Unix objects are PIC. 12759 lt_prog_compiler_pic_CXX= 12760 lt_prog_compiler_static_CXX='-non_shared' 12761 ;; 12762 *) 12763 ;; 12764 esac 12765 ;; 12766 psos*) 12767 ;; 12768 solaris*) 12769 case $cc_basename in 12770 CC*) 12771 # Sun C++ 4.2, 5.x and Centerline C++ 12772 lt_prog_compiler_pic_CXX='-KPIC' 12773 lt_prog_compiler_static_CXX='-Bstatic' 12774 lt_prog_compiler_wl_CXX='-Qoption ld ' 12775 ;; 12776 gcx*) 12777 # Green Hills C++ Compiler 12778 lt_prog_compiler_pic_CXX='-PIC' 12779 ;; 12780 *) 12781 ;; 12782 esac 12783 ;; 12784 sunos4*) 12785 case $cc_basename in 12786 CC*) 12787 # Sun C++ 4.x 12788 lt_prog_compiler_pic_CXX='-pic' 12789 lt_prog_compiler_static_CXX='-Bstatic' 12790 ;; 12791 lcc*) 12792 # Lucid 12793 lt_prog_compiler_pic_CXX='-pic' 12794 ;; 12795 *) 12796 ;; 12797 esac 12798 ;; 12799 tandem*) 12800 case $cc_basename in 12801 NCC*) 12802 # NonStop-UX NCC 3.20 12803 lt_prog_compiler_pic_CXX='-KPIC' 12804 ;; 12805 *) 12806 ;; 12807 esac 12808 ;; 12809 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12810 case $cc_basename in 12811 CC*) 12812 lt_prog_compiler_wl_CXX='-Wl,' 12813 lt_prog_compiler_pic_CXX='-KPIC' 12814 lt_prog_compiler_static_CXX='-Bstatic' 12815 ;; 12816 esac 12817 ;; 12818 vxworks*) 12819 ;; 12820 *) 12821 lt_prog_compiler_can_build_shared_CXX=no 12822 ;; 12823 esac 12824 fi 12825 12826{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12827echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12828 12829# 12830# Check to make sure the PIC flag actually works. 12831# 12832if test -n "$lt_prog_compiler_pic_CXX"; then 12833 12834{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12835echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12836if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12837 echo $ECHO_N "(cached) $ECHO_C" >&6 12838else 12839 lt_prog_compiler_pic_works_CXX=no 12840 ac_outfile=conftest.$ac_objext 12841 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12842 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12843 # Insert the option either (1) after the last *FLAGS variable, or 12844 # (2) before a word containing "conftest.", or (3) at the end. 12845 # Note that $ac_compile itself does not contain backslashes and begins 12846 # with a dollar sign (not a hyphen), so the echo should work correctly. 12847 # The option is referenced via a variable to avoid confusing sed. 12848 lt_compile=`echo "$ac_compile" | $SED \ 12849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12851 -e 's:$: $lt_compiler_flag:'` 12852 (eval echo "\"\$as_me:12852: $lt_compile\"" >&5) 12853 (eval "$lt_compile" 2>conftest.err) 12854 ac_status=$? 12855 cat conftest.err >&5 12856 echo "$as_me:12856: \$? = $ac_status" >&5 12857 if (exit $ac_status) && test -s "$ac_outfile"; then 12858 # The compiler can only warn and ignore the option if not recognized 12859 # So say no if there are warnings other than the usual output. 12860 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12862 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12863 lt_prog_compiler_pic_works_CXX=yes 12864 fi 12865 fi 12866 $rm conftest* 12867 12868fi 12869{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12870echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12871 12872if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12873 case $lt_prog_compiler_pic_CXX in 12874 "" | " "*) ;; 12875 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12876 esac 12877else 12878 lt_prog_compiler_pic_CXX= 12879 lt_prog_compiler_can_build_shared_CXX=no 12880fi 12881 12882fi 12883case $host_os in 12884 # For platforms which do not support PIC, -DPIC is meaningless: 12885 *djgpp*) 12886 lt_prog_compiler_pic_CXX= 12887 ;; 12888 *) 12889 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12890 ;; 12891esac 12892 12893# 12894# Check to make sure the static flag actually works. 12895# 12896wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12897{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12898echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12899if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12900 echo $ECHO_N "(cached) $ECHO_C" >&6 12901else 12902 lt_prog_compiler_static_works_CXX=no 12903 save_LDFLAGS="$LDFLAGS" 12904 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12905 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12906 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12907 # The linker can only warn and ignore the option if not recognized 12908 # So say no if there are warnings 12909 if test -s conftest.err; then 12910 # Append any errors to the config.log. 12911 cat conftest.err 1>&5 12912 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12914 if diff conftest.exp conftest.er2 >/dev/null; then 12915 lt_prog_compiler_static_works_CXX=yes 12916 fi 12917 else 12918 lt_prog_compiler_static_works_CXX=yes 12919 fi 12920 fi 12921 $rm conftest* 12922 LDFLAGS="$save_LDFLAGS" 12923 12924fi 12925{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12926echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12927 12928if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12929 : 12930else 12931 lt_prog_compiler_static_CXX= 12932fi 12933 12934 12935{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12936echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12937if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12938 echo $ECHO_N "(cached) $ECHO_C" >&6 12939else 12940 lt_cv_prog_compiler_c_o_CXX=no 12941 $rm -r conftest 2>/dev/null 12942 mkdir conftest 12943 cd conftest 12944 mkdir out 12945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12946 12947 lt_compiler_flag="-o out/conftest2.$ac_objext" 12948 # Insert the option either (1) after the last *FLAGS variable, or 12949 # (2) before a word containing "conftest.", or (3) at the end. 12950 # Note that $ac_compile itself does not contain backslashes and begins 12951 # with a dollar sign (not a hyphen), so the echo should work correctly. 12952 lt_compile=`echo "$ac_compile" | $SED \ 12953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12955 -e 's:$: $lt_compiler_flag:'` 12956 (eval echo "\"\$as_me:12956: $lt_compile\"" >&5) 12957 (eval "$lt_compile" 2>out/conftest.err) 12958 ac_status=$? 12959 cat out/conftest.err >&5 12960 echo "$as_me:12960: \$? = $ac_status" >&5 12961 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12962 then 12963 # The compiler can only warn and ignore the option if not recognized 12964 # So say no if there are warnings 12965 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12966 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12967 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12968 lt_cv_prog_compiler_c_o_CXX=yes 12969 fi 12970 fi 12971 chmod u+w . 2>&5 12972 $rm conftest* 12973 # SGI C++ compiler will create directory out/ii_files/ for 12974 # template instantiation 12975 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12976 $rm out/* && rmdir out 12977 cd .. 12978 rmdir conftest 12979 $rm conftest* 12980 12981fi 12982{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12983echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12984 12985 12986hard_links="nottested" 12987if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12988 # do not overwrite the value of need_locks provided by the user 12989 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12990echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12991 hard_links=yes 12992 $rm conftest* 12993 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12994 touch conftest.a 12995 ln conftest.a conftest.b 2>&5 || hard_links=no 12996 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12997 { echo "$as_me:$LINENO: result: $hard_links" >&5 12998echo "${ECHO_T}$hard_links" >&6; } 12999 if test "$hard_links" = no; then 13000 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13001echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13002 need_locks=warn 13003 fi 13004else 13005 need_locks=no 13006fi 13007 13008{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13009echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13010 13011 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13012 case $host_os in 13013 aix4* | aix5*) 13014 # If we're using GNU nm, then we don't want the "-C" option. 13015 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13016 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13017 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' 13018 else 13019 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' 13020 fi 13021 ;; 13022 pw32*) 13023 export_symbols_cmds_CXX="$ltdll_cmds" 13024 ;; 13025 cygwin* | mingw*) 13026 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' 13027 ;; 13028 linux* | k*bsd*-gnu) 13029 link_all_deplibs_CXX=no 13030 ;; 13031 *) 13032 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13033 ;; 13034 esac 13035 13036{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13037echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13038test "$ld_shlibs_CXX" = no && can_build_shared=no 13039 13040# 13041# Do we need to explicitly link libc? 13042# 13043case "x$archive_cmds_need_lc_CXX" in 13044x|xyes) 13045 # Assume -lc should be added 13046 archive_cmds_need_lc_CXX=yes 13047 13048 if test "$enable_shared" = yes && test "$GCC" = yes; then 13049 case $archive_cmds_CXX in 13050 *'~'*) 13051 # FIXME: we may have to deal with multi-command sequences. 13052 ;; 13053 '$CC '*) 13054 # Test whether the compiler implicitly links with -lc since on some 13055 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13056 # to ld, don't add -lc before -lgcc. 13057 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13058echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 13059 $rm conftest* 13060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13061 13062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13063 (eval $ac_compile) 2>&5 13064 ac_status=$? 13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13066 (exit $ac_status); } 2>conftest.err; then 13067 soname=conftest 13068 lib=conftest 13069 libobjs=conftest.$ac_objext 13070 deplibs= 13071 wl=$lt_prog_compiler_wl_CXX 13072 pic_flag=$lt_prog_compiler_pic_CXX 13073 compiler_flags=-v 13074 linker_flags=-v 13075 verstring= 13076 output_objdir=. 13077 libname=conftest 13078 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13079 allow_undefined_flag_CXX= 13080 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13081 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13082 ac_status=$? 13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13084 (exit $ac_status); } 13085 then 13086 archive_cmds_need_lc_CXX=no 13087 else 13088 archive_cmds_need_lc_CXX=yes 13089 fi 13090 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13091 else 13092 cat conftest.err 1>&5 13093 fi 13094 $rm conftest* 13095 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13096echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 13097 ;; 13098 esac 13099 fi 13100 ;; 13101esac 13102 13103{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13104echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13105library_names_spec= 13106libname_spec='lib$name' 13107soname_spec= 13108shrext_cmds=".so" 13109postinstall_cmds= 13110postuninstall_cmds= 13111finish_cmds= 13112finish_eval= 13113shlibpath_var= 13114shlibpath_overrides_runpath=unknown 13115version_type=none 13116dynamic_linker="$host_os ld.so" 13117sys_lib_dlsearch_path_spec="/lib /usr/lib" 13118if test "$GCC" = yes; then 13119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13120 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13121 # if the path contains ";" then we assume it to be the separator 13122 # otherwise default to the standard path separator (i.e. ":") - it is 13123 # assumed that no part of a normal pathname contains ";" but that should 13124 # okay in the real world where ";" in dirpaths is itself problematic. 13125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13126 else 13127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13128 fi 13129else 13130 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13131fi 13132need_lib_prefix=unknown 13133hardcode_into_libs=no 13134 13135# when you set need_version to no, make sure it does not cause -set_version 13136# flags to be left without arguments 13137need_version=unknown 13138 13139case $host_os in 13140aix3*) 13141 version_type=linux 13142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13143 shlibpath_var=LIBPATH 13144 13145 # AIX 3 has no versioning support, so we append a major version to the name. 13146 soname_spec='${libname}${release}${shared_ext}$major' 13147 ;; 13148 13149aix4* | aix5*) 13150 version_type=linux 13151 need_lib_prefix=no 13152 need_version=no 13153 hardcode_into_libs=yes 13154 if test "$host_cpu" = ia64; then 13155 # AIX 5 supports IA64 13156 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13157 shlibpath_var=LD_LIBRARY_PATH 13158 else 13159 # With GCC up to 2.95.x, collect2 would create an import file 13160 # for dependence libraries. The import file would start with 13161 # the line `#! .'. This would cause the generated library to 13162 # depend on `.', always an invalid library. This was fixed in 13163 # development snapshots of GCC prior to 3.0. 13164 case $host_os in 13165 aix4 | aix4.[01] | aix4.[01].*) 13166 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13167 echo ' yes ' 13168 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13169 : 13170 else 13171 can_build_shared=no 13172 fi 13173 ;; 13174 esac 13175 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13176 # soname into executable. Probably we can add versioning support to 13177 # collect2, so additional links can be useful in future. 13178 if test "$aix_use_runtimelinking" = yes; then 13179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13180 # instead of lib<name>.a to let people know that these are not 13181 # typical AIX shared libraries. 13182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13183 else 13184 # We preserve .a as extension for shared libraries through AIX4.2 13185 # and later when we are not doing run time linking. 13186 library_names_spec='${libname}${release}.a $libname.a' 13187 soname_spec='${libname}${release}${shared_ext}$major' 13188 fi 13189 shlibpath_var=LIBPATH 13190 fi 13191 ;; 13192 13193amigaos*) 13194 library_names_spec='$libname.ixlibrary $libname.a' 13195 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13196 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' 13197 ;; 13198 13199beos*) 13200 library_names_spec='${libname}${shared_ext}' 13201 dynamic_linker="$host_os ld.so" 13202 shlibpath_var=LIBRARY_PATH 13203 ;; 13204 13205bsdi[45]*) 13206 version_type=linux 13207 need_version=no 13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13209 soname_spec='${libname}${release}${shared_ext}$major' 13210 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13211 shlibpath_var=LD_LIBRARY_PATH 13212 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13213 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13214 # the default ld.so.conf also contains /usr/contrib/lib and 13215 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13216 # libtool to hard-code these into programs 13217 ;; 13218 13219cygwin* | mingw* | pw32*) 13220 version_type=windows 13221 shrext_cmds=".dll" 13222 need_version=no 13223 need_lib_prefix=no 13224 13225 case $GCC,$host_os in 13226 yes,cygwin* | yes,mingw* | yes,pw32*) 13227 library_names_spec='$libname.dll.a' 13228 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13229 postinstall_cmds='base_file=`basename \${file}`~ 13230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13231 dldir=$destdir/`dirname \$dlpath`~ 13232 test -d \$dldir || mkdir -p \$dldir~ 13233 $install_prog $dir/$dlname \$dldir/$dlname~ 13234 chmod a+x \$dldir/$dlname' 13235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13236 dlpath=$dir/\$dldll~ 13237 $rm \$dlpath' 13238 shlibpath_overrides_runpath=yes 13239 13240 case $host_os in 13241 cygwin*) 13242 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13243 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13244 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13245 ;; 13246 mingw*) 13247 # MinGW DLLs use traditional 'lib' prefix 13248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13249 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13250 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13251 # It is most probably a Windows format PATH printed by 13252 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13253 # path with ; separators, and with drive letters. We can handle the 13254 # drive letters (cygwin fileutils understands them), so leave them, 13255 # especially as we might pass files found there to a mingw objdump, 13256 # which wouldn't understand a cygwinified path. Ahh. 13257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13258 else 13259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13260 fi 13261 ;; 13262 pw32*) 13263 # pw32 DLLs use 'pw' prefix rather than 'lib' 13264 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13265 ;; 13266 esac 13267 ;; 13268 13269 *) 13270 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13271 ;; 13272 esac 13273 dynamic_linker='Win32 ld.exe' 13274 # FIXME: first we should search . and the directory the executable is in 13275 shlibpath_var=PATH 13276 ;; 13277 13278darwin* | rhapsody*) 13279 dynamic_linker="$host_os dyld" 13280 version_type=darwin 13281 need_lib_prefix=no 13282 need_version=no 13283 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13284 soname_spec='${libname}${release}${major}$shared_ext' 13285 shlibpath_overrides_runpath=yes 13286 shlibpath_var=DYLD_LIBRARY_PATH 13287 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13288 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13289 if test "$GCC" = yes; then 13290 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"` 13291 else 13292 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13293 fi 13294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13295 ;; 13296 13297dgux*) 13298 version_type=linux 13299 need_lib_prefix=no 13300 need_version=no 13301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13302 soname_spec='${libname}${release}${shared_ext}$major' 13303 shlibpath_var=LD_LIBRARY_PATH 13304 ;; 13305 13306freebsd1*) 13307 dynamic_linker=no 13308 ;; 13309 13310freebsd* | dragonfly*) 13311 # DragonFly does not have aout. When/if they implement a new 13312 # versioning mechanism, adjust this. 13313 if test -x /usr/bin/objformat; then 13314 objformat=`/usr/bin/objformat` 13315 else 13316 case $host_os in 13317 freebsd[123]*) objformat=aout ;; 13318 *) objformat=elf ;; 13319 esac 13320 fi 13321 version_type=freebsd-$objformat 13322 case $version_type in 13323 freebsd-elf*) 13324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13325 need_version=no 13326 need_lib_prefix=no 13327 ;; 13328 freebsd-*) 13329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13330 need_version=yes 13331 ;; 13332 esac 13333 shlibpath_var=LD_LIBRARY_PATH 13334 case $host_os in 13335 freebsd2*) 13336 shlibpath_overrides_runpath=yes 13337 ;; 13338 freebsd3.[01]* | freebsdelf3.[01]*) 13339 shlibpath_overrides_runpath=yes 13340 hardcode_into_libs=yes 13341 ;; 13342 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13343 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13344 shlibpath_overrides_runpath=no 13345 hardcode_into_libs=yes 13346 ;; 13347 freebsd*) # from 4.6 on 13348 shlibpath_overrides_runpath=yes 13349 hardcode_into_libs=yes 13350 ;; 13351 esac 13352 ;; 13353 13354gnu*) 13355 version_type=linux 13356 need_lib_prefix=no 13357 need_version=no 13358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13359 soname_spec='${libname}${release}${shared_ext}$major' 13360 shlibpath_var=LD_LIBRARY_PATH 13361 hardcode_into_libs=yes 13362 ;; 13363 13364hpux9* | hpux10* | hpux11*) 13365 # Give a soname corresponding to the major version so that dld.sl refuses to 13366 # link against other versions. 13367 version_type=sunos 13368 need_lib_prefix=no 13369 need_version=no 13370 case $host_cpu in 13371 ia64*) 13372 shrext_cmds='.so' 13373 hardcode_into_libs=yes 13374 dynamic_linker="$host_os dld.so" 13375 shlibpath_var=LD_LIBRARY_PATH 13376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13378 soname_spec='${libname}${release}${shared_ext}$major' 13379 if test "X$HPUX_IA64_MODE" = X32; then 13380 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13381 else 13382 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13383 fi 13384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13385 ;; 13386 hppa*64*) 13387 shrext_cmds='.sl' 13388 hardcode_into_libs=yes 13389 dynamic_linker="$host_os dld.sl" 13390 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13393 soname_spec='${libname}${release}${shared_ext}$major' 13394 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13396 ;; 13397 *) 13398 shrext_cmds='.sl' 13399 dynamic_linker="$host_os dld.sl" 13400 shlibpath_var=SHLIB_PATH 13401 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13403 soname_spec='${libname}${release}${shared_ext}$major' 13404 ;; 13405 esac 13406 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13407 postinstall_cmds='chmod 555 $lib' 13408 ;; 13409 13410interix3*) 13411 version_type=linux 13412 need_lib_prefix=no 13413 need_version=no 13414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13415 soname_spec='${libname}${release}${shared_ext}$major' 13416 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13417 shlibpath_var=LD_LIBRARY_PATH 13418 shlibpath_overrides_runpath=no 13419 hardcode_into_libs=yes 13420 ;; 13421 13422irix5* | irix6* | nonstopux*) 13423 case $host_os in 13424 nonstopux*) version_type=nonstopux ;; 13425 *) 13426 if test "$lt_cv_prog_gnu_ld" = yes; then 13427 version_type=linux 13428 else 13429 version_type=irix 13430 fi ;; 13431 esac 13432 need_lib_prefix=no 13433 need_version=no 13434 soname_spec='${libname}${release}${shared_ext}$major' 13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13436 case $host_os in 13437 irix5* | nonstopux*) 13438 libsuff= shlibsuff= 13439 ;; 13440 *) 13441 case $LD in # libtool.m4 will add one of these switches to LD 13442 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13443 libsuff= shlibsuff= libmagic=32-bit;; 13444 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13445 libsuff=32 shlibsuff=N32 libmagic=N32;; 13446 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13447 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13448 *) libsuff= shlibsuff= libmagic=never-match;; 13449 esac 13450 ;; 13451 esac 13452 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13453 shlibpath_overrides_runpath=no 13454 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13455 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13456 hardcode_into_libs=yes 13457 ;; 13458 13459# No shared lib support for Linux oldld, aout, or coff. 13460linux*oldld* | linux*aout* | linux*coff*) 13461 dynamic_linker=no 13462 ;; 13463 13464# This must be Linux ELF. 13465linux* | k*bsd*-gnu) 13466 version_type=linux 13467 need_lib_prefix=no 13468 need_version=no 13469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13470 soname_spec='${libname}${release}${shared_ext}$major' 13471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13472 shlibpath_var=LD_LIBRARY_PATH 13473 shlibpath_overrides_runpath=no 13474 # This implies no fast_install, which is unacceptable. 13475 # Some rework will be needed to allow for fast_install 13476 # before this can be enabled. 13477 hardcode_into_libs=yes 13478 13479 # Append ld.so.conf contents to the search path 13480 if test -f /etc/ld.so.conf; then 13481 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' ' '` 13482 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13483 fi 13484 13485 # We used to test for /lib/ld.so.1 and disable shared libraries on 13486 # powerpc, because MkLinux only supported shared libraries with the 13487 # GNU dynamic linker. Since this was broken with cross compilers, 13488 # most powerpc-linux boxes support dynamic linking these days and 13489 # people can always --disable-shared, the test was removed, and we 13490 # assume the GNU/Linux dynamic linker is in use. 13491 dynamic_linker='GNU/Linux ld.so' 13492 ;; 13493 13494netbsdelf*-gnu) 13495 version_type=linux 13496 need_lib_prefix=no 13497 need_version=no 13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13499 soname_spec='${libname}${release}${shared_ext}$major' 13500 shlibpath_var=LD_LIBRARY_PATH 13501 shlibpath_overrides_runpath=no 13502 hardcode_into_libs=yes 13503 dynamic_linker='NetBSD ld.elf_so' 13504 ;; 13505 13506netbsd*) 13507 version_type=sunos 13508 need_lib_prefix=no 13509 need_version=no 13510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13513 dynamic_linker='NetBSD (a.out) ld.so' 13514 else 13515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13516 soname_spec='${libname}${release}${shared_ext}$major' 13517 dynamic_linker='NetBSD ld.elf_so' 13518 fi 13519 shlibpath_var=LD_LIBRARY_PATH 13520 shlibpath_overrides_runpath=yes 13521 hardcode_into_libs=yes 13522 ;; 13523 13524newsos6) 13525 version_type=linux 13526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13527 shlibpath_var=LD_LIBRARY_PATH 13528 shlibpath_overrides_runpath=yes 13529 ;; 13530 13531nto-qnx*) 13532 version_type=linux 13533 need_lib_prefix=no 13534 need_version=no 13535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13536 soname_spec='${libname}${release}${shared_ext}$major' 13537 shlibpath_var=LD_LIBRARY_PATH 13538 shlibpath_overrides_runpath=yes 13539 ;; 13540 13541openbsd*) 13542 version_type=sunos 13543 sys_lib_dlsearch_path_spec="/usr/lib" 13544 need_lib_prefix=no 13545 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13546 case $host_os in 13547 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13548 *) need_version=no ;; 13549 esac 13550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13552 shlibpath_var=LD_LIBRARY_PATH 13553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13554 case $host_os in 13555 openbsd2.[89] | openbsd2.[89].*) 13556 shlibpath_overrides_runpath=no 13557 ;; 13558 *) 13559 shlibpath_overrides_runpath=yes 13560 ;; 13561 esac 13562 else 13563 shlibpath_overrides_runpath=yes 13564 fi 13565 ;; 13566 13567os2*) 13568 libname_spec='$name' 13569 shrext_cmds=".dll" 13570 need_lib_prefix=no 13571 library_names_spec='$libname${shared_ext} $libname.a' 13572 dynamic_linker='OS/2 ld.exe' 13573 shlibpath_var=LIBPATH 13574 ;; 13575 13576osf3* | osf4* | osf5*) 13577 version_type=osf 13578 need_lib_prefix=no 13579 need_version=no 13580 soname_spec='${libname}${release}${shared_ext}$major' 13581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13582 shlibpath_var=LD_LIBRARY_PATH 13583 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13584 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13585 ;; 13586 13587solaris*) 13588 version_type=linux 13589 need_lib_prefix=no 13590 need_version=no 13591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13592 soname_spec='${libname}${release}${shared_ext}$major' 13593 shlibpath_var=LD_LIBRARY_PATH 13594 shlibpath_overrides_runpath=yes 13595 hardcode_into_libs=yes 13596 # ldd complains unless libraries are executable 13597 postinstall_cmds='chmod +x $lib' 13598 ;; 13599 13600sunos4*) 13601 version_type=sunos 13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13603 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13604 shlibpath_var=LD_LIBRARY_PATH 13605 shlibpath_overrides_runpath=yes 13606 if test "$with_gnu_ld" = yes; then 13607 need_lib_prefix=no 13608 fi 13609 need_version=yes 13610 ;; 13611 13612sysv4 | sysv4.3*) 13613 version_type=linux 13614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13615 soname_spec='${libname}${release}${shared_ext}$major' 13616 shlibpath_var=LD_LIBRARY_PATH 13617 case $host_vendor in 13618 sni) 13619 shlibpath_overrides_runpath=no 13620 need_lib_prefix=no 13621 export_dynamic_flag_spec='${wl}-Blargedynsym' 13622 runpath_var=LD_RUN_PATH 13623 ;; 13624 siemens) 13625 need_lib_prefix=no 13626 ;; 13627 motorola) 13628 need_lib_prefix=no 13629 need_version=no 13630 shlibpath_overrides_runpath=no 13631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13632 ;; 13633 esac 13634 ;; 13635 13636sysv4*MP*) 13637 if test -d /usr/nec ;then 13638 version_type=linux 13639 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13640 soname_spec='$libname${shared_ext}.$major' 13641 shlibpath_var=LD_LIBRARY_PATH 13642 fi 13643 ;; 13644 13645sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13646 version_type=freebsd-elf 13647 need_lib_prefix=no 13648 need_version=no 13649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13650 soname_spec='${libname}${release}${shared_ext}$major' 13651 shlibpath_var=LD_LIBRARY_PATH 13652 hardcode_into_libs=yes 13653 if test "$with_gnu_ld" = yes; then 13654 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13655 shlibpath_overrides_runpath=no 13656 else 13657 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13658 shlibpath_overrides_runpath=yes 13659 case $host_os in 13660 sco3.2v5*) 13661 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13662 ;; 13663 esac 13664 fi 13665 sys_lib_dlsearch_path_spec='/usr/lib' 13666 ;; 13667 13668uts4*) 13669 version_type=linux 13670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13671 soname_spec='${libname}${release}${shared_ext}$major' 13672 shlibpath_var=LD_LIBRARY_PATH 13673 ;; 13674 13675*) 13676 dynamic_linker=no 13677 ;; 13678esac 13679{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13680echo "${ECHO_T}$dynamic_linker" >&6; } 13681test "$dynamic_linker" = no && can_build_shared=no 13682 13683variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13684if test "$GCC" = yes; then 13685 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13686fi 13687 13688{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13689echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13690hardcode_action_CXX= 13691if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13692 test -n "$runpath_var_CXX" || \ 13693 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13694 13695 # We can hardcode non-existant directories. 13696 if test "$hardcode_direct_CXX" != no && 13697 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13698 # have to relink, otherwise we might link with an installed library 13699 # when we should be linking with a yet-to-be-installed one 13700 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13701 test "$hardcode_minus_L_CXX" != no; then 13702 # Linking always hardcodes the temporary library directory. 13703 hardcode_action_CXX=relink 13704 else 13705 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13706 hardcode_action_CXX=immediate 13707 fi 13708else 13709 # We cannot hardcode anything, or else we can only hardcode existing 13710 # directories. 13711 hardcode_action_CXX=unsupported 13712fi 13713{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13714echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13715 13716if test "$hardcode_action_CXX" = relink; then 13717 # Fast installation is not supported 13718 enable_fast_install=no 13719elif test "$shlibpath_overrides_runpath" = yes || 13720 test "$enable_shared" = no; then 13721 # Fast installation is not necessary 13722 enable_fast_install=needless 13723fi 13724 13725 13726# The else clause should only fire when bootstrapping the 13727# libtool distribution, otherwise you forgot to ship ltmain.sh 13728# with your package, and you will get complaints that there are 13729# no rules to generate ltmain.sh. 13730if test -f "$ltmain"; then 13731 # See if we are running on zsh, and set the options which allow our commands through 13732 # without removal of \ escapes. 13733 if test -n "${ZSH_VERSION+set}" ; then 13734 setopt NO_GLOB_SUBST 13735 fi 13736 # Now quote all the things that may contain metacharacters while being 13737 # careful not to overquote the AC_SUBSTed values. We take copies of the 13738 # variables and quote the copies for generation of the libtool script. 13739 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13740 SED SHELL STRIP \ 13741 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13742 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13743 deplibs_check_method reload_flag reload_cmds need_locks \ 13744 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13745 lt_cv_sys_global_symbol_to_c_name_address \ 13746 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13747 old_postinstall_cmds old_postuninstall_cmds \ 13748 compiler_CXX \ 13749 CC_CXX \ 13750 LD_CXX \ 13751 lt_prog_compiler_wl_CXX \ 13752 lt_prog_compiler_pic_CXX \ 13753 lt_prog_compiler_static_CXX \ 13754 lt_prog_compiler_no_builtin_flag_CXX \ 13755 export_dynamic_flag_spec_CXX \ 13756 thread_safe_flag_spec_CXX \ 13757 whole_archive_flag_spec_CXX \ 13758 enable_shared_with_static_runtimes_CXX \ 13759 old_archive_cmds_CXX \ 13760 old_archive_from_new_cmds_CXX \ 13761 predep_objects_CXX \ 13762 postdep_objects_CXX \ 13763 predeps_CXX \ 13764 postdeps_CXX \ 13765 compiler_lib_search_path_CXX \ 13766 archive_cmds_CXX \ 13767 archive_expsym_cmds_CXX \ 13768 postinstall_cmds_CXX \ 13769 postuninstall_cmds_CXX \ 13770 old_archive_from_expsyms_cmds_CXX \ 13771 allow_undefined_flag_CXX \ 13772 no_undefined_flag_CXX \ 13773 export_symbols_cmds_CXX \ 13774 hardcode_libdir_flag_spec_CXX \ 13775 hardcode_libdir_flag_spec_ld_CXX \ 13776 hardcode_libdir_separator_CXX \ 13777 hardcode_automatic_CXX \ 13778 module_cmds_CXX \ 13779 module_expsym_cmds_CXX \ 13780 lt_cv_prog_compiler_c_o_CXX \ 13781 exclude_expsyms_CXX \ 13782 include_expsyms_CXX; do 13783 13784 case $var in 13785 old_archive_cmds_CXX | \ 13786 old_archive_from_new_cmds_CXX | \ 13787 archive_cmds_CXX | \ 13788 archive_expsym_cmds_CXX | \ 13789 module_cmds_CXX | \ 13790 module_expsym_cmds_CXX | \ 13791 old_archive_from_expsyms_cmds_CXX | \ 13792 export_symbols_cmds_CXX | \ 13793 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13794 postinstall_cmds | postuninstall_cmds | \ 13795 old_postinstall_cmds | old_postuninstall_cmds | \ 13796 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13797 # Double-quote double-evaled strings. 13798 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13799 ;; 13800 *) 13801 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13802 ;; 13803 esac 13804 done 13805 13806 case $lt_echo in 13807 *'\$0 --fallback-echo"') 13808 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13809 ;; 13810 esac 13811 13812cfgfile="$ofile" 13813 13814 cat <<__EOF__ >> "$cfgfile" 13815# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13816 13817# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13818 13819# Shell to use when invoking shell scripts. 13820SHELL=$lt_SHELL 13821 13822# Whether or not to build shared libraries. 13823build_libtool_libs=$enable_shared 13824 13825# Whether or not to build static libraries. 13826build_old_libs=$enable_static 13827 13828# Whether or not to add -lc for building shared libraries. 13829build_libtool_need_lc=$archive_cmds_need_lc_CXX 13830 13831# Whether or not to disallow shared libs when runtime libs are static 13832allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13833 13834# Whether or not to optimize for fast installation. 13835fast_install=$enable_fast_install 13836 13837# The host system. 13838host_alias=$host_alias 13839host=$host 13840host_os=$host_os 13841 13842# The build system. 13843build_alias=$build_alias 13844build=$build 13845build_os=$build_os 13846 13847# An echo program that does not interpret backslashes. 13848echo=$lt_echo 13849 13850# The archiver. 13851AR=$lt_AR 13852AR_FLAGS=$lt_AR_FLAGS 13853 13854# A C compiler. 13855LTCC=$lt_LTCC 13856 13857# LTCC compiler flags. 13858LTCFLAGS=$lt_LTCFLAGS 13859 13860# A language-specific compiler. 13861CC=$lt_compiler_CXX 13862 13863# Is the compiler the GNU C compiler? 13864with_gcc=$GCC_CXX 13865 13866# An ERE matcher. 13867EGREP=$lt_EGREP 13868 13869# The linker used to build libraries. 13870LD=$lt_LD_CXX 13871 13872# Whether we need hard or soft links. 13873LN_S=$lt_LN_S 13874 13875# A BSD-compatible nm program. 13876NM=$lt_NM 13877 13878# A symbol stripping program 13879STRIP=$lt_STRIP 13880 13881# Used to examine libraries when file_magic_cmd begins "file" 13882MAGIC_CMD=$MAGIC_CMD 13883 13884# Used on cygwin: DLL creation program. 13885DLLTOOL="$DLLTOOL" 13886 13887# Used on cygwin: object dumper. 13888OBJDUMP="$OBJDUMP" 13889 13890# Used on cygwin: assembler. 13891AS="$AS" 13892 13893# The name of the directory that contains temporary libtool files. 13894objdir=$objdir 13895 13896# How to create reloadable object files. 13897reload_flag=$lt_reload_flag 13898reload_cmds=$lt_reload_cmds 13899 13900# How to pass a linker flag through the compiler. 13901wl=$lt_lt_prog_compiler_wl_CXX 13902 13903# Object file suffix (normally "o"). 13904objext="$ac_objext" 13905 13906# Old archive suffix (normally "a"). 13907libext="$libext" 13908 13909# Shared library suffix (normally ".so"). 13910shrext_cmds='$shrext_cmds' 13911 13912# Executable file suffix (normally ""). 13913exeext="$exeext" 13914 13915# Additional compiler flags for building library objects. 13916pic_flag=$lt_lt_prog_compiler_pic_CXX 13917pic_mode=$pic_mode 13918 13919# What is the maximum length of a command? 13920max_cmd_len=$lt_cv_sys_max_cmd_len 13921 13922# Does compiler simultaneously support -c and -o options? 13923compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13924 13925# Must we lock files when doing compilation? 13926need_locks=$lt_need_locks 13927 13928# Do we need the lib prefix for modules? 13929need_lib_prefix=$need_lib_prefix 13930 13931# Do we need a version for libraries? 13932need_version=$need_version 13933 13934# Whether dlopen is supported. 13935dlopen_support=$enable_dlopen 13936 13937# Whether dlopen of programs is supported. 13938dlopen_self=$enable_dlopen_self 13939 13940# Whether dlopen of statically linked programs is supported. 13941dlopen_self_static=$enable_dlopen_self_static 13942 13943# Compiler flag to prevent dynamic linking. 13944link_static_flag=$lt_lt_prog_compiler_static_CXX 13945 13946# Compiler flag to turn off builtin functions. 13947no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13948 13949# Compiler flag to allow reflexive dlopens. 13950export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13951 13952# Compiler flag to generate shared objects directly from archives. 13953whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13954 13955# Compiler flag to generate thread-safe objects. 13956thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13957 13958# Library versioning type. 13959version_type=$version_type 13960 13961# Format of library name prefix. 13962libname_spec=$lt_libname_spec 13963 13964# List of archive names. First name is the real one, the rest are links. 13965# The last name is the one that the linker finds with -lNAME. 13966library_names_spec=$lt_library_names_spec 13967 13968# The coded name of the library, if different from the real name. 13969soname_spec=$lt_soname_spec 13970 13971# Commands used to build and install an old-style archive. 13972RANLIB=$lt_RANLIB 13973old_archive_cmds=$lt_old_archive_cmds_CXX 13974old_postinstall_cmds=$lt_old_postinstall_cmds 13975old_postuninstall_cmds=$lt_old_postuninstall_cmds 13976 13977# Create an old-style archive from a shared archive. 13978old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13979 13980# Create a temporary old-style archive to link instead of a shared archive. 13981old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13982 13983# Commands used to build and install a shared archive. 13984archive_cmds=$lt_archive_cmds_CXX 13985archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13986postinstall_cmds=$lt_postinstall_cmds 13987postuninstall_cmds=$lt_postuninstall_cmds 13988 13989# Commands used to build a loadable module (assumed same as above if empty) 13990module_cmds=$lt_module_cmds_CXX 13991module_expsym_cmds=$lt_module_expsym_cmds_CXX 13992 13993# Commands to strip libraries. 13994old_striplib=$lt_old_striplib 13995striplib=$lt_striplib 13996 13997# Dependencies to place before the objects being linked to create a 13998# shared library. 13999predep_objects=$lt_predep_objects_CXX 14000 14001# Dependencies to place after the objects being linked to create a 14002# shared library. 14003postdep_objects=$lt_postdep_objects_CXX 14004 14005# Dependencies to place before the objects being linked to create a 14006# shared library. 14007predeps=$lt_predeps_CXX 14008 14009# Dependencies to place after the objects being linked to create a 14010# shared library. 14011postdeps=$lt_postdeps_CXX 14012 14013# The library search path used internally by the compiler when linking 14014# a shared library. 14015compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14016 14017# Method to check whether dependent libraries are shared objects. 14018deplibs_check_method=$lt_deplibs_check_method 14019 14020# Command to use when deplibs_check_method == file_magic. 14021file_magic_cmd=$lt_file_magic_cmd 14022 14023# Flag that allows shared libraries with undefined symbols to be built. 14024allow_undefined_flag=$lt_allow_undefined_flag_CXX 14025 14026# Flag that forces no undefined symbols. 14027no_undefined_flag=$lt_no_undefined_flag_CXX 14028 14029# Commands used to finish a libtool library installation in a directory. 14030finish_cmds=$lt_finish_cmds 14031 14032# Same as above, but a single script fragment to be evaled but not shown. 14033finish_eval=$lt_finish_eval 14034 14035# Take the output of nm and produce a listing of raw symbols and C names. 14036global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14037 14038# Transform the output of nm in a proper C declaration 14039global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14040 14041# Transform the output of nm in a C name address pair 14042global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14043 14044# This is the shared library runtime path variable. 14045runpath_var=$runpath_var 14046 14047# This is the shared library path variable. 14048shlibpath_var=$shlibpath_var 14049 14050# Is shlibpath searched before the hard-coded library search path? 14051shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14052 14053# How to hardcode a shared library path into an executable. 14054hardcode_action=$hardcode_action_CXX 14055 14056# Whether we should hardcode library paths into libraries. 14057hardcode_into_libs=$hardcode_into_libs 14058 14059# Flag to hardcode \$libdir into a binary during linking. 14060# This must work even if \$libdir does not exist. 14061hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14062 14063# If ld is used when linking, flag to hardcode \$libdir into 14064# a binary during linking. This must work even if \$libdir does 14065# not exist. 14066hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14067 14068# Whether we need a single -rpath flag with a separated argument. 14069hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14070 14071# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14072# resulting binary. 14073hardcode_direct=$hardcode_direct_CXX 14074 14075# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14076# resulting binary. 14077hardcode_minus_L=$hardcode_minus_L_CXX 14078 14079# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14080# the resulting binary. 14081hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14082 14083# Set to yes if building a shared library automatically hardcodes DIR into the library 14084# and all subsequent libraries and executables linked against it. 14085hardcode_automatic=$hardcode_automatic_CXX 14086 14087# Variables whose values should be saved in libtool wrapper scripts and 14088# restored at relink time. 14089variables_saved_for_relink="$variables_saved_for_relink" 14090 14091# Whether libtool must link a program against all its dependency libraries. 14092link_all_deplibs=$link_all_deplibs_CXX 14093 14094# Compile-time system search path for libraries 14095sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14096 14097# Run-time system search path for libraries 14098sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14099 14100# Fix the shell variable \$srcfile for the compiler. 14101fix_srcfile_path="$fix_srcfile_path_CXX" 14102 14103# Set to yes if exported symbols are required. 14104always_export_symbols=$always_export_symbols_CXX 14105 14106# The commands to list exported symbols. 14107export_symbols_cmds=$lt_export_symbols_cmds_CXX 14108 14109# The commands to extract the exported symbol list from a shared archive. 14110extract_expsyms_cmds=$lt_extract_expsyms_cmds 14111 14112# Symbols that should not be listed in the preloaded symbols. 14113exclude_expsyms=$lt_exclude_expsyms_CXX 14114 14115# Symbols that must always be exported. 14116include_expsyms=$lt_include_expsyms_CXX 14117 14118# ### END LIBTOOL TAG CONFIG: $tagname 14119 14120__EOF__ 14121 14122 14123else 14124 # If there is no Makefile yet, we rely on a make rule to execute 14125 # `config.status --recheck' to rerun these tests and create the 14126 # libtool script then. 14127 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14128 if test -f "$ltmain_in"; then 14129 test -f Makefile && make "$ltmain" 14130 fi 14131fi 14132 14133 14134ac_ext=cpp 14135ac_cpp='$CXXCPP $CPPFLAGS' 14136ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14137ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14138ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14139 14140CC=$lt_save_CC 14141LDCXX=$LD 14142LD=$lt_save_LD 14143GCC=$lt_save_GCC 14144with_gnu_ldcxx=$with_gnu_ld 14145with_gnu_ld=$lt_save_with_gnu_ld 14146lt_cv_path_LDCXX=$lt_cv_path_LD 14147lt_cv_path_LD=$lt_save_path_LD 14148lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14149lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14150 14151 else 14152 tagname="" 14153 fi 14154 ;; 14155 14156 F77) 14157 if test -n "$F77" && test "X$F77" != "Xno"; then 14158 14159ac_ext=f 14160ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14161ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14162ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14163 14164 14165archive_cmds_need_lc_F77=no 14166allow_undefined_flag_F77= 14167always_export_symbols_F77=no 14168archive_expsym_cmds_F77= 14169export_dynamic_flag_spec_F77= 14170hardcode_direct_F77=no 14171hardcode_libdir_flag_spec_F77= 14172hardcode_libdir_flag_spec_ld_F77= 14173hardcode_libdir_separator_F77= 14174hardcode_minus_L_F77=no 14175hardcode_automatic_F77=no 14176module_cmds_F77= 14177module_expsym_cmds_F77= 14178link_all_deplibs_F77=unknown 14179old_archive_cmds_F77=$old_archive_cmds 14180no_undefined_flag_F77= 14181whole_archive_flag_spec_F77= 14182enable_shared_with_static_runtimes_F77=no 14183 14184# Source file extension for f77 test sources. 14185ac_ext=f 14186 14187# Object file extension for compiled f77 test sources. 14188objext=o 14189objext_F77=$objext 14190 14191# Code to be used in simple compile tests 14192lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14193 14194# Code to be used in simple link tests 14195lt_simple_link_test_code=" program t\n end\n" 14196 14197# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14198 14199# If no C compiler was specified, use CC. 14200LTCC=${LTCC-"$CC"} 14201 14202# If no C compiler flags were specified, use CFLAGS. 14203LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14204 14205# Allow CC to be a program name with arguments. 14206compiler=$CC 14207 14208 14209# save warnings/boilerplate of simple test code 14210ac_outfile=conftest.$ac_objext 14211printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14212eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14213_lt_compiler_boilerplate=`cat conftest.err` 14214$rm conftest* 14215 14216ac_outfile=conftest.$ac_objext 14217printf "$lt_simple_link_test_code" >conftest.$ac_ext 14218eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14219_lt_linker_boilerplate=`cat conftest.err` 14220$rm conftest* 14221 14222 14223# Allow CC to be a program name with arguments. 14224lt_save_CC="$CC" 14225CC=${F77-"f77"} 14226compiler=$CC 14227compiler_F77=$CC 14228for cc_temp in $compiler""; do 14229 case $cc_temp in 14230 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14231 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14232 \-*) ;; 14233 *) break;; 14234 esac 14235done 14236cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14237 14238 14239{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14240echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14241{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14242echo "${ECHO_T}$can_build_shared" >&6; } 14243 14244{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14245echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14246test "$can_build_shared" = "no" && enable_shared=no 14247 14248# On AIX, shared libraries and static libraries use the same namespace, and 14249# are all built from PIC. 14250case $host_os in 14251aix3*) 14252 test "$enable_shared" = yes && enable_static=no 14253 if test -n "$RANLIB"; then 14254 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14255 postinstall_cmds='$RANLIB $lib' 14256 fi 14257 ;; 14258aix4* | aix5*) 14259 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14260 test "$enable_shared" = yes && enable_static=no 14261 fi 14262 ;; 14263esac 14264{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14265echo "${ECHO_T}$enable_shared" >&6; } 14266 14267{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14268echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14269# Make sure either enable_shared or enable_static is yes. 14270test "$enable_shared" = yes || enable_static=yes 14271{ echo "$as_me:$LINENO: result: $enable_static" >&5 14272echo "${ECHO_T}$enable_static" >&6; } 14273 14274GCC_F77="$G77" 14275LD_F77="$LD" 14276 14277lt_prog_compiler_wl_F77= 14278lt_prog_compiler_pic_F77= 14279lt_prog_compiler_static_F77= 14280 14281{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14282echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14283 14284 if test "$GCC" = yes; then 14285 lt_prog_compiler_wl_F77='-Wl,' 14286 lt_prog_compiler_static_F77='-static' 14287 14288 case $host_os in 14289 aix*) 14290 # All AIX code is PIC. 14291 if test "$host_cpu" = ia64; then 14292 # AIX 5 now supports IA64 processor 14293 lt_prog_compiler_static_F77='-Bstatic' 14294 fi 14295 ;; 14296 14297 amigaos*) 14298 # FIXME: we need at least 68020 code to build shared libraries, but 14299 # adding the `-m68020' flag to GCC prevents building anything better, 14300 # like `-m68040'. 14301 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14302 ;; 14303 14304 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14305 # PIC is the default for these OSes. 14306 ;; 14307 14308 mingw* | pw32* | os2*) 14309 # This hack is so that the source file can tell whether it is being 14310 # built for inclusion in a dll (and should export symbols for example). 14311 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14312 ;; 14313 14314 darwin* | rhapsody*) 14315 # PIC is the default on this platform 14316 # Common symbols not allowed in MH_DYLIB files 14317 lt_prog_compiler_pic_F77='-fno-common' 14318 ;; 14319 14320 interix3*) 14321 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14322 # Instead, we relocate shared libraries at runtime. 14323 ;; 14324 14325 msdosdjgpp*) 14326 # Just because we use GCC doesn't mean we suddenly get shared libraries 14327 # on systems that don't support them. 14328 lt_prog_compiler_can_build_shared_F77=no 14329 enable_shared=no 14330 ;; 14331 14332 sysv4*MP*) 14333 if test -d /usr/nec; then 14334 lt_prog_compiler_pic_F77=-Kconform_pic 14335 fi 14336 ;; 14337 14338 hpux*) 14339 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14340 # not for PA HP-UX. 14341 case $host_cpu in 14342 hppa*64*|ia64*) 14343 # +Z the default 14344 ;; 14345 *) 14346 lt_prog_compiler_pic_F77='-fPIC' 14347 ;; 14348 esac 14349 ;; 14350 14351 *) 14352 lt_prog_compiler_pic_F77='-fPIC' 14353 ;; 14354 esac 14355 else 14356 # PORTME Check for flag to pass linker flags through the system compiler. 14357 case $host_os in 14358 aix*) 14359 lt_prog_compiler_wl_F77='-Wl,' 14360 if test "$host_cpu" = ia64; then 14361 # AIX 5 now supports IA64 processor 14362 lt_prog_compiler_static_F77='-Bstatic' 14363 else 14364 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14365 fi 14366 ;; 14367 darwin*) 14368 # PIC is the default on this platform 14369 # Common symbols not allowed in MH_DYLIB files 14370 case $cc_basename in 14371 xlc*) 14372 lt_prog_compiler_pic_F77='-qnocommon' 14373 lt_prog_compiler_wl_F77='-Wl,' 14374 ;; 14375 esac 14376 ;; 14377 14378 mingw* | pw32* | os2*) 14379 # This hack is so that the source file can tell whether it is being 14380 # built for inclusion in a dll (and should export symbols for example). 14381 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14382 ;; 14383 14384 hpux9* | hpux10* | hpux11*) 14385 lt_prog_compiler_wl_F77='-Wl,' 14386 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14387 # not for PA HP-UX. 14388 case $host_cpu in 14389 hppa*64*|ia64*) 14390 # +Z the default 14391 ;; 14392 *) 14393 lt_prog_compiler_pic_F77='+Z' 14394 ;; 14395 esac 14396 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14397 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14398 ;; 14399 14400 irix5* | irix6* | nonstopux*) 14401 lt_prog_compiler_wl_F77='-Wl,' 14402 # PIC (with -KPIC) is the default. 14403 lt_prog_compiler_static_F77='-non_shared' 14404 ;; 14405 14406 newsos6) 14407 lt_prog_compiler_pic_F77='-KPIC' 14408 lt_prog_compiler_static_F77='-Bstatic' 14409 ;; 14410 14411 linux* | k*bsd*-gnu) 14412 case $cc_basename in 14413 icc* | ecc*) 14414 lt_prog_compiler_wl_F77='-Wl,' 14415 lt_prog_compiler_pic_F77='-KPIC' 14416 lt_prog_compiler_static_F77='-static' 14417 ;; 14418 pgcc* | pgf77* | pgf90* | pgf95*) 14419 # Portland Group compilers (*not* the Pentium gcc compiler, 14420 # which looks to be a dead project) 14421 lt_prog_compiler_wl_F77='-Wl,' 14422 lt_prog_compiler_pic_F77='-fpic' 14423 lt_prog_compiler_static_F77='-Bstatic' 14424 ;; 14425 ccc*) 14426 lt_prog_compiler_wl_F77='-Wl,' 14427 # All Alpha code is PIC. 14428 lt_prog_compiler_static_F77='-non_shared' 14429 ;; 14430 esac 14431 ;; 14432 14433 osf3* | osf4* | osf5*) 14434 lt_prog_compiler_wl_F77='-Wl,' 14435 # All OSF/1 code is PIC. 14436 lt_prog_compiler_static_F77='-non_shared' 14437 ;; 14438 14439 solaris*) 14440 lt_prog_compiler_pic_F77='-KPIC' 14441 lt_prog_compiler_static_F77='-Bstatic' 14442 case $cc_basename in 14443 f77* | f90* | f95*) 14444 lt_prog_compiler_wl_F77='-Qoption ld ';; 14445 *) 14446 lt_prog_compiler_wl_F77='-Wl,';; 14447 esac 14448 ;; 14449 14450 sunos4*) 14451 lt_prog_compiler_wl_F77='-Qoption ld ' 14452 lt_prog_compiler_pic_F77='-PIC' 14453 lt_prog_compiler_static_F77='-Bstatic' 14454 ;; 14455 14456 sysv4 | sysv4.2uw2* | sysv4.3*) 14457 lt_prog_compiler_wl_F77='-Wl,' 14458 lt_prog_compiler_pic_F77='-KPIC' 14459 lt_prog_compiler_static_F77='-Bstatic' 14460 ;; 14461 14462 sysv4*MP*) 14463 if test -d /usr/nec ;then 14464 lt_prog_compiler_pic_F77='-Kconform_pic' 14465 lt_prog_compiler_static_F77='-Bstatic' 14466 fi 14467 ;; 14468 14469 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14470 lt_prog_compiler_wl_F77='-Wl,' 14471 lt_prog_compiler_pic_F77='-KPIC' 14472 lt_prog_compiler_static_F77='-Bstatic' 14473 ;; 14474 14475 unicos*) 14476 lt_prog_compiler_wl_F77='-Wl,' 14477 lt_prog_compiler_can_build_shared_F77=no 14478 ;; 14479 14480 uts4*) 14481 lt_prog_compiler_pic_F77='-pic' 14482 lt_prog_compiler_static_F77='-Bstatic' 14483 ;; 14484 14485 *) 14486 lt_prog_compiler_can_build_shared_F77=no 14487 ;; 14488 esac 14489 fi 14490 14491{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14492echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14493 14494# 14495# Check to make sure the PIC flag actually works. 14496# 14497if test -n "$lt_prog_compiler_pic_F77"; then 14498 14499{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14500echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14501if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14502 echo $ECHO_N "(cached) $ECHO_C" >&6 14503else 14504 lt_prog_compiler_pic_works_F77=no 14505 ac_outfile=conftest.$ac_objext 14506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14507 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14508 # Insert the option either (1) after the last *FLAGS variable, or 14509 # (2) before a word containing "conftest.", or (3) at the end. 14510 # Note that $ac_compile itself does not contain backslashes and begins 14511 # with a dollar sign (not a hyphen), so the echo should work correctly. 14512 # The option is referenced via a variable to avoid confusing sed. 14513 lt_compile=`echo "$ac_compile" | $SED \ 14514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14516 -e 's:$: $lt_compiler_flag:'` 14517 (eval echo "\"\$as_me:14517: $lt_compile\"" >&5) 14518 (eval "$lt_compile" 2>conftest.err) 14519 ac_status=$? 14520 cat conftest.err >&5 14521 echo "$as_me:14521: \$? = $ac_status" >&5 14522 if (exit $ac_status) && test -s "$ac_outfile"; then 14523 # The compiler can only warn and ignore the option if not recognized 14524 # So say no if there are warnings other than the usual output. 14525 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14527 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14528 lt_prog_compiler_pic_works_F77=yes 14529 fi 14530 fi 14531 $rm conftest* 14532 14533fi 14534{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14535echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14536 14537if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14538 case $lt_prog_compiler_pic_F77 in 14539 "" | " "*) ;; 14540 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14541 esac 14542else 14543 lt_prog_compiler_pic_F77= 14544 lt_prog_compiler_can_build_shared_F77=no 14545fi 14546 14547fi 14548case $host_os in 14549 # For platforms which do not support PIC, -DPIC is meaningless: 14550 *djgpp*) 14551 lt_prog_compiler_pic_F77= 14552 ;; 14553 *) 14554 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14555 ;; 14556esac 14557 14558# 14559# Check to make sure the static flag actually works. 14560# 14561wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14562{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14563echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14564if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14565 echo $ECHO_N "(cached) $ECHO_C" >&6 14566else 14567 lt_prog_compiler_static_works_F77=no 14568 save_LDFLAGS="$LDFLAGS" 14569 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14570 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14571 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14572 # The linker can only warn and ignore the option if not recognized 14573 # So say no if there are warnings 14574 if test -s conftest.err; then 14575 # Append any errors to the config.log. 14576 cat conftest.err 1>&5 14577 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14579 if diff conftest.exp conftest.er2 >/dev/null; then 14580 lt_prog_compiler_static_works_F77=yes 14581 fi 14582 else 14583 lt_prog_compiler_static_works_F77=yes 14584 fi 14585 fi 14586 $rm conftest* 14587 LDFLAGS="$save_LDFLAGS" 14588 14589fi 14590{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14591echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14592 14593if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14594 : 14595else 14596 lt_prog_compiler_static_F77= 14597fi 14598 14599 14600{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14601echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14602if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14603 echo $ECHO_N "(cached) $ECHO_C" >&6 14604else 14605 lt_cv_prog_compiler_c_o_F77=no 14606 $rm -r conftest 2>/dev/null 14607 mkdir conftest 14608 cd conftest 14609 mkdir out 14610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14611 14612 lt_compiler_flag="-o out/conftest2.$ac_objext" 14613 # Insert the option either (1) after the last *FLAGS variable, or 14614 # (2) before a word containing "conftest.", or (3) at the end. 14615 # Note that $ac_compile itself does not contain backslashes and begins 14616 # with a dollar sign (not a hyphen), so the echo should work correctly. 14617 lt_compile=`echo "$ac_compile" | $SED \ 14618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14620 -e 's:$: $lt_compiler_flag:'` 14621 (eval echo "\"\$as_me:14621: $lt_compile\"" >&5) 14622 (eval "$lt_compile" 2>out/conftest.err) 14623 ac_status=$? 14624 cat out/conftest.err >&5 14625 echo "$as_me:14625: \$? = $ac_status" >&5 14626 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14627 then 14628 # The compiler can only warn and ignore the option if not recognized 14629 # So say no if there are warnings 14630 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14631 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14632 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14633 lt_cv_prog_compiler_c_o_F77=yes 14634 fi 14635 fi 14636 chmod u+w . 2>&5 14637 $rm conftest* 14638 # SGI C++ compiler will create directory out/ii_files/ for 14639 # template instantiation 14640 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14641 $rm out/* && rmdir out 14642 cd .. 14643 rmdir conftest 14644 $rm conftest* 14645 14646fi 14647{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14648echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14649 14650 14651hard_links="nottested" 14652if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14653 # do not overwrite the value of need_locks provided by the user 14654 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14655echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14656 hard_links=yes 14657 $rm conftest* 14658 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14659 touch conftest.a 14660 ln conftest.a conftest.b 2>&5 || hard_links=no 14661 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14662 { echo "$as_me:$LINENO: result: $hard_links" >&5 14663echo "${ECHO_T}$hard_links" >&6; } 14664 if test "$hard_links" = no; then 14665 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14666echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14667 need_locks=warn 14668 fi 14669else 14670 need_locks=no 14671fi 14672 14673{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14674echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14675 14676 runpath_var= 14677 allow_undefined_flag_F77= 14678 enable_shared_with_static_runtimes_F77=no 14679 archive_cmds_F77= 14680 archive_expsym_cmds_F77= 14681 old_archive_From_new_cmds_F77= 14682 old_archive_from_expsyms_cmds_F77= 14683 export_dynamic_flag_spec_F77= 14684 whole_archive_flag_spec_F77= 14685 thread_safe_flag_spec_F77= 14686 hardcode_libdir_flag_spec_F77= 14687 hardcode_libdir_flag_spec_ld_F77= 14688 hardcode_libdir_separator_F77= 14689 hardcode_direct_F77=no 14690 hardcode_minus_L_F77=no 14691 hardcode_shlibpath_var_F77=unsupported 14692 link_all_deplibs_F77=unknown 14693 hardcode_automatic_F77=no 14694 module_cmds_F77= 14695 module_expsym_cmds_F77= 14696 always_export_symbols_F77=no 14697 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14698 # include_expsyms should be a list of space-separated symbols to be *always* 14699 # included in the symbol list 14700 include_expsyms_F77= 14701 # exclude_expsyms can be an extended regexp of symbols to exclude 14702 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14703 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14704 # as well as any symbol that contains `d'. 14705 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14706 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14707 # platforms (ab)use it in PIC code, but their linkers get confused if 14708 # the symbol is explicitly referenced. Since portable code cannot 14709 # rely on this symbol name, it's probably fine to never include it in 14710 # preloaded symbol tables. 14711 extract_expsyms_cmds= 14712 # Just being paranoid about ensuring that cc_basename is set. 14713 for cc_temp in $compiler""; do 14714 case $cc_temp in 14715 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14716 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14717 \-*) ;; 14718 *) break;; 14719 esac 14720done 14721cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14722 14723 case $host_os in 14724 cygwin* | mingw* | pw32*) 14725 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14726 # When not using gcc, we currently assume that we are using 14727 # Microsoft Visual C++. 14728 if test "$GCC" != yes; then 14729 with_gnu_ld=no 14730 fi 14731 ;; 14732 interix*) 14733 # we just hope/assume this is gcc and not c89 (= MSVC++) 14734 with_gnu_ld=yes 14735 ;; 14736 openbsd*) 14737 with_gnu_ld=no 14738 ;; 14739 esac 14740 14741 ld_shlibs_F77=yes 14742 if test "$with_gnu_ld" = yes; then 14743 # If archive_cmds runs LD, not CC, wlarc should be empty 14744 wlarc='${wl}' 14745 14746 # Set some defaults for GNU ld with shared library support. These 14747 # are reset later if shared libraries are not supported. Putting them 14748 # here allows them to be overridden if necessary. 14749 runpath_var=LD_RUN_PATH 14750 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14751 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14752 # ancient GNU ld didn't support --whole-archive et. al. 14753 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14754 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14755 else 14756 whole_archive_flag_spec_F77= 14757 fi 14758 supports_anon_versioning=no 14759 case `$LD -v 2>/dev/null` in 14760 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14761 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14762 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14763 *\ 2.11.*) ;; # other 2.11 versions 14764 *) supports_anon_versioning=yes ;; 14765 esac 14766 14767 # See if GNU ld supports shared libraries. 14768 case $host_os in 14769 aix3* | aix4* | aix5*) 14770 # On AIX/PPC, the GNU linker is very broken 14771 if test "$host_cpu" != ia64; then 14772 ld_shlibs_F77=no 14773 cat <<EOF 1>&2 14774 14775*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14776*** to be unable to reliably create shared libraries on AIX. 14777*** Therefore, libtool is disabling shared libraries support. If you 14778*** really care for shared libraries, you may want to modify your PATH 14779*** so that a non-GNU linker is found, and then restart. 14780 14781EOF 14782 fi 14783 ;; 14784 14785 amigaos*) 14786 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)' 14787 hardcode_libdir_flag_spec_F77='-L$libdir' 14788 hardcode_minus_L_F77=yes 14789 14790 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14791 # that the semantics of dynamic libraries on AmigaOS, at least up 14792 # to version 4, is to share data among multiple programs linked 14793 # with the same dynamic library. Since this doesn't match the 14794 # behavior of shared libraries on other platforms, we can't use 14795 # them. 14796 ld_shlibs_F77=no 14797 ;; 14798 14799 beos*) 14800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14801 allow_undefined_flag_F77=unsupported 14802 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14803 # support --undefined. This deserves some investigation. FIXME 14804 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14805 else 14806 ld_shlibs_F77=no 14807 fi 14808 ;; 14809 14810 cygwin* | mingw* | pw32*) 14811 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14812 # as there is no search path for DLLs. 14813 hardcode_libdir_flag_spec_F77='-L$libdir' 14814 allow_undefined_flag_F77=unsupported 14815 always_export_symbols_F77=no 14816 enable_shared_with_static_runtimes_F77=yes 14817 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14818 14819 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14820 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14821 # If the export-symbols file already is a .def file (1st line 14822 # is EXPORTS), use it as is; otherwise, prepend... 14823 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14824 cp $export_symbols $output_objdir/$soname.def; 14825 else 14826 echo EXPORTS > $output_objdir/$soname.def; 14827 cat $export_symbols >> $output_objdir/$soname.def; 14828 fi~ 14829 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14830 else 14831 ld_shlibs_F77=no 14832 fi 14833 ;; 14834 14835 interix3*) 14836 hardcode_direct_F77=no 14837 hardcode_shlibpath_var_F77=no 14838 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14839 export_dynamic_flag_spec_F77='${wl}-E' 14840 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14841 # Instead, shared libraries are loaded at an image base (0x10000000 by 14842 # default) and relocated if they conflict, which is a slow very memory 14843 # consuming and fragmenting process. To avoid this, we pick a random, 14844 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14845 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14846 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' 14847 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' 14848 ;; 14849 14850 linux* | k*bsd*-gnu) 14851 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14852 tmp_addflag= 14853 case $cc_basename,$host_cpu in 14854 pgcc*) # Portland Group C compiler 14855 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' 14856 tmp_addflag=' $pic_flag' 14857 ;; 14858 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14859 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' 14860 tmp_addflag=' $pic_flag -Mnomain' ;; 14861 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14862 tmp_addflag=' -i_dynamic' ;; 14863 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14864 tmp_addflag=' -i_dynamic -nofor_main' ;; 14865 ifc* | ifort*) # Intel Fortran compiler 14866 tmp_addflag=' -nofor_main' ;; 14867 esac 14868 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14869 14870 if test $supports_anon_versioning = yes; then 14871 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14872 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14873 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14874 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14875 fi 14876 link_all_deplibs_F77=no 14877 else 14878 ld_shlibs_F77=no 14879 fi 14880 ;; 14881 14882 netbsd* | netbsdelf*-gnu) 14883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14884 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14885 wlarc= 14886 else 14887 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14888 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14889 fi 14890 ;; 14891 14892 solaris*) 14893 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14894 ld_shlibs_F77=no 14895 cat <<EOF 1>&2 14896 14897*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14898*** create shared libraries on Solaris systems. Therefore, libtool 14899*** is disabling shared libraries support. We urge you to upgrade GNU 14900*** binutils to release 2.9.1 or newer. Another option is to modify 14901*** your PATH or compiler configuration so that the native linker is 14902*** used, and then restart. 14903 14904EOF 14905 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14906 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14907 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14908 else 14909 ld_shlibs_F77=no 14910 fi 14911 ;; 14912 14913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14914 case `$LD -v 2>&1` in 14915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14916 ld_shlibs_F77=no 14917 cat <<_LT_EOF 1>&2 14918 14919*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14920*** reliably create shared libraries on SCO systems. Therefore, libtool 14921*** is disabling shared libraries support. We urge you to upgrade GNU 14922*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14923*** your PATH or compiler configuration so that the native linker is 14924*** used, and then restart. 14925 14926_LT_EOF 14927 ;; 14928 *) 14929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14930 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14931 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14932 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14933 else 14934 ld_shlibs_F77=no 14935 fi 14936 ;; 14937 esac 14938 ;; 14939 14940 sunos4*) 14941 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14942 wlarc= 14943 hardcode_direct_F77=yes 14944 hardcode_shlibpath_var_F77=no 14945 ;; 14946 14947 *) 14948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14949 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14950 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14951 else 14952 ld_shlibs_F77=no 14953 fi 14954 ;; 14955 esac 14956 14957 if test "$ld_shlibs_F77" = no; then 14958 runpath_var= 14959 hardcode_libdir_flag_spec_F77= 14960 export_dynamic_flag_spec_F77= 14961 whole_archive_flag_spec_F77= 14962 fi 14963 else 14964 # PORTME fill in a description of your system's linker (not GNU ld) 14965 case $host_os in 14966 aix3*) 14967 allow_undefined_flag_F77=unsupported 14968 always_export_symbols_F77=yes 14969 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' 14970 # Note: this linker hardcodes the directories in LIBPATH if there 14971 # are no directories specified by -L. 14972 hardcode_minus_L_F77=yes 14973 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14974 # Neither direct hardcoding nor static linking is supported with a 14975 # broken collect2. 14976 hardcode_direct_F77=unsupported 14977 fi 14978 ;; 14979 14980 aix4* | aix5*) 14981 if test "$host_cpu" = ia64; then 14982 # On IA64, the linker does run time linking by default, so we don't 14983 # have to do anything special. 14984 aix_use_runtimelinking=no 14985 exp_sym_flag='-Bexport' 14986 no_entry_flag="" 14987 else 14988 # If we're using GNU nm, then we don't want the "-C" option. 14989 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14990 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14991 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' 14992 else 14993 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' 14994 fi 14995 aix_use_runtimelinking=no 14996 14997 # Test if we are trying to use run time linking or normal 14998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14999 # need to do runtime linking. 15000 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15001 for ld_flag in $LDFLAGS; do 15002 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15003 aix_use_runtimelinking=yes 15004 break 15005 fi 15006 done 15007 ;; 15008 esac 15009 15010 exp_sym_flag='-bexport' 15011 no_entry_flag='-bnoentry' 15012 fi 15013 15014 # When large executables or shared objects are built, AIX ld can 15015 # have problems creating the table of contents. If linking a library 15016 # or program results in "error TOC overflow" add -mminimal-toc to 15017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15019 15020 archive_cmds_F77='' 15021 hardcode_direct_F77=yes 15022 hardcode_libdir_separator_F77=':' 15023 link_all_deplibs_F77=yes 15024 15025 if test "$GCC" = yes; then 15026 case $host_os in aix4.[012]|aix4.[012].*) 15027 # We only want to do this on AIX 4.2 and lower, the check 15028 # below for broken collect2 doesn't work under 4.3+ 15029 collect2name=`${CC} -print-prog-name=collect2` 15030 if test -f "$collect2name" && \ 15031 strings "$collect2name" | grep resolve_lib_name >/dev/null 15032 then 15033 # We have reworked collect2 15034 hardcode_direct_F77=yes 15035 else 15036 # We have old collect2 15037 hardcode_direct_F77=unsupported 15038 # It fails to find uninstalled libraries when the uninstalled 15039 # path is not listed in the libpath. Setting hardcode_minus_L 15040 # to unsupported forces relinking 15041 hardcode_minus_L_F77=yes 15042 hardcode_libdir_flag_spec_F77='-L$libdir' 15043 hardcode_libdir_separator_F77= 15044 fi 15045 ;; 15046 esac 15047 shared_flag='-shared' 15048 if test "$aix_use_runtimelinking" = yes; then 15049 shared_flag="$shared_flag "'${wl}-G' 15050 fi 15051 else 15052 # not using gcc 15053 if test "$host_cpu" = ia64; then 15054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15055 # chokes on -Wl,-G. The following line is correct: 15056 shared_flag='-G' 15057 else 15058 if test "$aix_use_runtimelinking" = yes; then 15059 shared_flag='${wl}-G' 15060 else 15061 shared_flag='${wl}-bM:SRE' 15062 fi 15063 fi 15064 fi 15065 15066 # It seems that -bexpall does not export symbols beginning with 15067 # underscore (_), so it is better to generate a list of symbols to export. 15068 always_export_symbols_F77=yes 15069 if test "$aix_use_runtimelinking" = yes; then 15070 # Warning - without using the other runtime loading flags (-brtl), 15071 # -berok will link without error, but may produce a broken library. 15072 allow_undefined_flag_F77='-berok' 15073 # Determine the default libpath from the value encoded in an empty executable. 15074 cat >conftest.$ac_ext <<_ACEOF 15075 program main 15076 15077 end 15078_ACEOF 15079rm -f conftest.$ac_objext conftest$ac_exeext 15080if { (ac_try="$ac_link" 15081case "(($ac_try" in 15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15083 *) ac_try_echo=$ac_try;; 15084esac 15085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15086 (eval "$ac_link") 2>conftest.er1 15087 ac_status=$? 15088 grep -v '^ *+' conftest.er1 >conftest.err 15089 rm -f conftest.er1 15090 cat conftest.err >&5 15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15092 (exit $ac_status); } && { 15093 test -z "$ac_f77_werror_flag" || 15094 test ! -s conftest.err 15095 } && test -s conftest$ac_exeext && 15096 $as_test_x conftest$ac_exeext; then 15097 15098aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15099}'` 15100# Check for a 64-bit object if we didn't find anything. 15101if 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; } 15102}'`; fi 15103else 15104 echo "$as_me: failed program was:" >&5 15105sed 's/^/| /' conftest.$ac_ext >&5 15106 15107 15108fi 15109 15110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15111 conftest$ac_exeext conftest.$ac_ext 15112if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15113 15114 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15115 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" 15116 else 15117 if test "$host_cpu" = ia64; then 15118 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15119 allow_undefined_flag_F77="-z nodefs" 15120 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" 15121 else 15122 # Determine the default libpath from the value encoded in an empty executable. 15123 cat >conftest.$ac_ext <<_ACEOF 15124 program main 15125 15126 end 15127_ACEOF 15128rm -f conftest.$ac_objext conftest$ac_exeext 15129if { (ac_try="$ac_link" 15130case "(($ac_try" in 15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15132 *) ac_try_echo=$ac_try;; 15133esac 15134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15135 (eval "$ac_link") 2>conftest.er1 15136 ac_status=$? 15137 grep -v '^ *+' conftest.er1 >conftest.err 15138 rm -f conftest.er1 15139 cat conftest.err >&5 15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15141 (exit $ac_status); } && { 15142 test -z "$ac_f77_werror_flag" || 15143 test ! -s conftest.err 15144 } && test -s conftest$ac_exeext && 15145 $as_test_x conftest$ac_exeext; then 15146 15147aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15148}'` 15149# Check for a 64-bit object if we didn't find anything. 15150if 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; } 15151}'`; fi 15152else 15153 echo "$as_me: failed program was:" >&5 15154sed 's/^/| /' conftest.$ac_ext >&5 15155 15156 15157fi 15158 15159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15160 conftest$ac_exeext conftest.$ac_ext 15161if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15162 15163 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15164 # Warning - without using the other run time loading flags, 15165 # -berok will link without error, but may produce a broken library. 15166 no_undefined_flag_F77=' ${wl}-bernotok' 15167 allow_undefined_flag_F77=' ${wl}-berok' 15168 # Exported symbols can be pulled into shared objects from archives 15169 whole_archive_flag_spec_F77='$convenience' 15170 archive_cmds_need_lc_F77=yes 15171 # This is similar to how AIX traditionally builds its shared libraries. 15172 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' 15173 fi 15174 fi 15175 ;; 15176 15177 amigaos*) 15178 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)' 15179 hardcode_libdir_flag_spec_F77='-L$libdir' 15180 hardcode_minus_L_F77=yes 15181 # see comment about different semantics on the GNU ld section 15182 ld_shlibs_F77=no 15183 ;; 15184 15185 bsdi[45]*) 15186 export_dynamic_flag_spec_F77=-rdynamic 15187 ;; 15188 15189 cygwin* | mingw* | pw32*) 15190 # When not using gcc, we currently assume that we are using 15191 # Microsoft Visual C++. 15192 # hardcode_libdir_flag_spec is actually meaningless, as there is 15193 # no search path for DLLs. 15194 hardcode_libdir_flag_spec_F77=' ' 15195 allow_undefined_flag_F77=unsupported 15196 # Tell ltmain to make .lib files, not .a files. 15197 libext=lib 15198 # Tell ltmain to make .dll files, not .so files. 15199 shrext_cmds=".dll" 15200 # FIXME: Setting linknames here is a bad hack. 15201 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15202 # The linker will automatically build a .lib file if we build a DLL. 15203 old_archive_From_new_cmds_F77='true' 15204 # FIXME: Should let the user specify the lib program. 15205 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15206 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15207 enable_shared_with_static_runtimes_F77=yes 15208 ;; 15209 15210 darwin* | rhapsody*) 15211 case $host_os in 15212 rhapsody* | darwin1.[012]) 15213 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15214 ;; 15215 *) # Darwin 1.3 on 15216 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15217 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15218 else 15219 case ${MACOSX_DEPLOYMENT_TARGET} in 15220 10.[012]) 15221 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15222 ;; 15223 10.*) 15224 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15225 ;; 15226 esac 15227 fi 15228 ;; 15229 esac 15230 archive_cmds_need_lc_F77=no 15231 hardcode_direct_F77=no 15232 hardcode_automatic_F77=yes 15233 hardcode_shlibpath_var_F77=unsupported 15234 whole_archive_flag_spec_F77='' 15235 link_all_deplibs_F77=yes 15236 if test "$GCC" = yes ; then 15237 output_verbose_link_cmd='echo' 15238 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15239 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15240 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15241 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}' 15242 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}' 15243 else 15244 case $cc_basename in 15245 xlc*) 15246 output_verbose_link_cmd='echo' 15247 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15248 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15249 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15250 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}' 15251 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}' 15252 ;; 15253 *) 15254 ld_shlibs_F77=no 15255 ;; 15256 esac 15257 fi 15258 ;; 15259 15260 dgux*) 15261 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15262 hardcode_libdir_flag_spec_F77='-L$libdir' 15263 hardcode_shlibpath_var_F77=no 15264 ;; 15265 15266 freebsd1*) 15267 ld_shlibs_F77=no 15268 ;; 15269 15270 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15271 # support. Future versions do this automatically, but an explicit c++rt0.o 15272 # does not break anything, and helps significantly (at the cost of a little 15273 # extra space). 15274 freebsd2.2*) 15275 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15276 hardcode_libdir_flag_spec_F77='-R$libdir' 15277 hardcode_direct_F77=yes 15278 hardcode_shlibpath_var_F77=no 15279 ;; 15280 15281 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15282 freebsd2*) 15283 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15284 hardcode_direct_F77=yes 15285 hardcode_minus_L_F77=yes 15286 hardcode_shlibpath_var_F77=no 15287 ;; 15288 15289 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15290 freebsd* | dragonfly*) 15291 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15292 hardcode_libdir_flag_spec_F77='-R$libdir' 15293 hardcode_direct_F77=yes 15294 hardcode_shlibpath_var_F77=no 15295 ;; 15296 15297 hpux9*) 15298 if test "$GCC" = yes; then 15299 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' 15300 else 15301 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' 15302 fi 15303 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15304 hardcode_libdir_separator_F77=: 15305 hardcode_direct_F77=yes 15306 15307 # hardcode_minus_L: Not really in the search PATH, 15308 # but as the default location of the library. 15309 hardcode_minus_L_F77=yes 15310 export_dynamic_flag_spec_F77='${wl}-E' 15311 ;; 15312 15313 hpux10*) 15314 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15315 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15316 else 15317 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15318 fi 15319 if test "$with_gnu_ld" = no; then 15320 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15321 hardcode_libdir_separator_F77=: 15322 15323 hardcode_direct_F77=yes 15324 export_dynamic_flag_spec_F77='${wl}-E' 15325 15326 # hardcode_minus_L: Not really in the search PATH, 15327 # but as the default location of the library. 15328 hardcode_minus_L_F77=yes 15329 fi 15330 ;; 15331 15332 hpux11*) 15333 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15334 case $host_cpu in 15335 hppa*64*) 15336 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15337 ;; 15338 ia64*) 15339 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15340 ;; 15341 *) 15342 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15343 ;; 15344 esac 15345 else 15346 case $host_cpu in 15347 hppa*64*) 15348 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15349 ;; 15350 ia64*) 15351 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15352 ;; 15353 *) 15354 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15355 ;; 15356 esac 15357 fi 15358 if test "$with_gnu_ld" = no; then 15359 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15360 hardcode_libdir_separator_F77=: 15361 15362 case $host_cpu in 15363 hppa*64*|ia64*) 15364 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15365 hardcode_direct_F77=no 15366 hardcode_shlibpath_var_F77=no 15367 ;; 15368 *) 15369 hardcode_direct_F77=yes 15370 export_dynamic_flag_spec_F77='${wl}-E' 15371 15372 # hardcode_minus_L: Not really in the search PATH, 15373 # but as the default location of the library. 15374 hardcode_minus_L_F77=yes 15375 ;; 15376 esac 15377 fi 15378 ;; 15379 15380 irix5* | irix6* | nonstopux*) 15381 if test "$GCC" = yes; then 15382 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' 15383 else 15384 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' 15385 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15386 fi 15387 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15388 hardcode_libdir_separator_F77=: 15389 link_all_deplibs_F77=yes 15390 ;; 15391 15392 netbsd* | netbsdelf*-gnu) 15393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15394 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15395 else 15396 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15397 fi 15398 hardcode_libdir_flag_spec_F77='-R$libdir' 15399 hardcode_direct_F77=yes 15400 hardcode_shlibpath_var_F77=no 15401 ;; 15402 15403 newsos6) 15404 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15405 hardcode_direct_F77=yes 15406 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15407 hardcode_libdir_separator_F77=: 15408 hardcode_shlibpath_var_F77=no 15409 ;; 15410 15411 openbsd*) 15412 hardcode_direct_F77=yes 15413 hardcode_shlibpath_var_F77=no 15414 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15415 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15416 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15417 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15418 export_dynamic_flag_spec_F77='${wl}-E' 15419 else 15420 case $host_os in 15421 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15422 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15423 hardcode_libdir_flag_spec_F77='-R$libdir' 15424 ;; 15425 *) 15426 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15427 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15428 ;; 15429 esac 15430 fi 15431 ;; 15432 15433 os2*) 15434 hardcode_libdir_flag_spec_F77='-L$libdir' 15435 hardcode_minus_L_F77=yes 15436 allow_undefined_flag_F77=unsupported 15437 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' 15438 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15439 ;; 15440 15441 osf3*) 15442 if test "$GCC" = yes; then 15443 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15444 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' 15445 else 15446 allow_undefined_flag_F77=' -expect_unresolved \*' 15447 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' 15448 fi 15449 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15450 hardcode_libdir_separator_F77=: 15451 ;; 15452 15453 osf4* | osf5*) # as osf3* with the addition of -msym flag 15454 if test "$GCC" = yes; then 15455 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15456 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' 15457 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15458 else 15459 allow_undefined_flag_F77=' -expect_unresolved \*' 15460 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' 15461 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~ 15462 $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' 15463 15464 # Both c and cxx compiler support -rpath directly 15465 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15466 fi 15467 hardcode_libdir_separator_F77=: 15468 ;; 15469 15470 solaris*) 15471 no_undefined_flag_F77=' -z text' 15472 if test "$GCC" = yes; then 15473 wlarc='${wl}' 15474 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15475 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15476 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15477 else 15478 wlarc='' 15479 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15480 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15481 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15482 fi 15483 hardcode_libdir_flag_spec_F77='-R$libdir' 15484 hardcode_shlibpath_var_F77=no 15485 case $host_os in 15486 solaris2.[0-5] | solaris2.[0-5].*) ;; 15487 *) 15488 # The compiler driver will combine linker options so we 15489 # cannot just pass the convience library names through 15490 # without $wl, iff we do not link with $LD. 15491 # Luckily, gcc supports the same syntax we need for Sun Studio. 15492 # Supported since Solaris 2.6 (maybe 2.5.1?) 15493 case $wlarc in 15494 '') 15495 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15496 *) 15497 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' ;; 15498 esac ;; 15499 esac 15500 link_all_deplibs_F77=yes 15501 ;; 15502 15503 sunos4*) 15504 if test "x$host_vendor" = xsequent; then 15505 # Use $CC to link under sequent, because it throws in some extra .o 15506 # files that make .init and .fini sections work. 15507 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15508 else 15509 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15510 fi 15511 hardcode_libdir_flag_spec_F77='-L$libdir' 15512 hardcode_direct_F77=yes 15513 hardcode_minus_L_F77=yes 15514 hardcode_shlibpath_var_F77=no 15515 ;; 15516 15517 sysv4) 15518 case $host_vendor in 15519 sni) 15520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15521 hardcode_direct_F77=yes # is this really true??? 15522 ;; 15523 siemens) 15524 ## LD is ld it makes a PLAMLIB 15525 ## CC just makes a GrossModule. 15526 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15527 reload_cmds_F77='$CC -r -o $output$reload_objs' 15528 hardcode_direct_F77=no 15529 ;; 15530 motorola) 15531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15532 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15533 ;; 15534 esac 15535 runpath_var='LD_RUN_PATH' 15536 hardcode_shlibpath_var_F77=no 15537 ;; 15538 15539 sysv4.3*) 15540 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15541 hardcode_shlibpath_var_F77=no 15542 export_dynamic_flag_spec_F77='-Bexport' 15543 ;; 15544 15545 sysv4*MP*) 15546 if test -d /usr/nec; then 15547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15548 hardcode_shlibpath_var_F77=no 15549 runpath_var=LD_RUN_PATH 15550 hardcode_runpath_var=yes 15551 ld_shlibs_F77=yes 15552 fi 15553 ;; 15554 15555 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15556 no_undefined_flag_F77='${wl}-z,text' 15557 archive_cmds_need_lc_F77=no 15558 hardcode_shlibpath_var_F77=no 15559 runpath_var='LD_RUN_PATH' 15560 15561 if test "$GCC" = yes; then 15562 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15563 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15564 else 15565 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15566 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15567 fi 15568 ;; 15569 15570 sysv5* | sco3.2v5* | sco5v6*) 15571 # Note: We can NOT use -z defs as we might desire, because we do not 15572 # link with -lc, and that would cause any symbols used from libc to 15573 # always be unresolved, which means just about no library would 15574 # ever link correctly. If we're not using GNU ld we use -z text 15575 # though, which does catch some bad symbols but isn't as heavy-handed 15576 # as -z defs. 15577 no_undefined_flag_F77='${wl}-z,text' 15578 allow_undefined_flag_F77='${wl}-z,nodefs' 15579 archive_cmds_need_lc_F77=no 15580 hardcode_shlibpath_var_F77=no 15581 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15582 hardcode_libdir_separator_F77=':' 15583 link_all_deplibs_F77=yes 15584 export_dynamic_flag_spec_F77='${wl}-Bexport' 15585 runpath_var='LD_RUN_PATH' 15586 15587 if test "$GCC" = yes; then 15588 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15589 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15590 else 15591 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15592 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15593 fi 15594 ;; 15595 15596 uts4*) 15597 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15598 hardcode_libdir_flag_spec_F77='-L$libdir' 15599 hardcode_shlibpath_var_F77=no 15600 ;; 15601 15602 *) 15603 ld_shlibs_F77=no 15604 ;; 15605 esac 15606 fi 15607 15608{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15609echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15610test "$ld_shlibs_F77" = no && can_build_shared=no 15611 15612# 15613# Do we need to explicitly link libc? 15614# 15615case "x$archive_cmds_need_lc_F77" in 15616x|xyes) 15617 # Assume -lc should be added 15618 archive_cmds_need_lc_F77=yes 15619 15620 if test "$enable_shared" = yes && test "$GCC" = yes; then 15621 case $archive_cmds_F77 in 15622 *'~'*) 15623 # FIXME: we may have to deal with multi-command sequences. 15624 ;; 15625 '$CC '*) 15626 # Test whether the compiler implicitly links with -lc since on some 15627 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15628 # to ld, don't add -lc before -lgcc. 15629 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15630echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15631 $rm conftest* 15632 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15633 15634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15635 (eval $ac_compile) 2>&5 15636 ac_status=$? 15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15638 (exit $ac_status); } 2>conftest.err; then 15639 soname=conftest 15640 lib=conftest 15641 libobjs=conftest.$ac_objext 15642 deplibs= 15643 wl=$lt_prog_compiler_wl_F77 15644 pic_flag=$lt_prog_compiler_pic_F77 15645 compiler_flags=-v 15646 linker_flags=-v 15647 verstring= 15648 output_objdir=. 15649 libname=conftest 15650 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15651 allow_undefined_flag_F77= 15652 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15653 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15654 ac_status=$? 15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15656 (exit $ac_status); } 15657 then 15658 archive_cmds_need_lc_F77=no 15659 else 15660 archive_cmds_need_lc_F77=yes 15661 fi 15662 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15663 else 15664 cat conftest.err 1>&5 15665 fi 15666 $rm conftest* 15667 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15668echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15669 ;; 15670 esac 15671 fi 15672 ;; 15673esac 15674 15675{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15676echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15677library_names_spec= 15678libname_spec='lib$name' 15679soname_spec= 15680shrext_cmds=".so" 15681postinstall_cmds= 15682postuninstall_cmds= 15683finish_cmds= 15684finish_eval= 15685shlibpath_var= 15686shlibpath_overrides_runpath=unknown 15687version_type=none 15688dynamic_linker="$host_os ld.so" 15689sys_lib_dlsearch_path_spec="/lib /usr/lib" 15690if test "$GCC" = yes; then 15691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15692 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15693 # if the path contains ";" then we assume it to be the separator 15694 # otherwise default to the standard path separator (i.e. ":") - it is 15695 # assumed that no part of a normal pathname contains ";" but that should 15696 # okay in the real world where ";" in dirpaths is itself problematic. 15697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15698 else 15699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15700 fi 15701else 15702 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15703fi 15704need_lib_prefix=unknown 15705hardcode_into_libs=no 15706 15707# when you set need_version to no, make sure it does not cause -set_version 15708# flags to be left without arguments 15709need_version=unknown 15710 15711case $host_os in 15712aix3*) 15713 version_type=linux 15714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15715 shlibpath_var=LIBPATH 15716 15717 # AIX 3 has no versioning support, so we append a major version to the name. 15718 soname_spec='${libname}${release}${shared_ext}$major' 15719 ;; 15720 15721aix4* | aix5*) 15722 version_type=linux 15723 need_lib_prefix=no 15724 need_version=no 15725 hardcode_into_libs=yes 15726 if test "$host_cpu" = ia64; then 15727 # AIX 5 supports IA64 15728 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15729 shlibpath_var=LD_LIBRARY_PATH 15730 else 15731 # With GCC up to 2.95.x, collect2 would create an import file 15732 # for dependence libraries. The import file would start with 15733 # the line `#! .'. This would cause the generated library to 15734 # depend on `.', always an invalid library. This was fixed in 15735 # development snapshots of GCC prior to 3.0. 15736 case $host_os in 15737 aix4 | aix4.[01] | aix4.[01].*) 15738 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15739 echo ' yes ' 15740 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15741 : 15742 else 15743 can_build_shared=no 15744 fi 15745 ;; 15746 esac 15747 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15748 # soname into executable. Probably we can add versioning support to 15749 # collect2, so additional links can be useful in future. 15750 if test "$aix_use_runtimelinking" = yes; then 15751 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15752 # instead of lib<name>.a to let people know that these are not 15753 # typical AIX shared libraries. 15754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15755 else 15756 # We preserve .a as extension for shared libraries through AIX4.2 15757 # and later when we are not doing run time linking. 15758 library_names_spec='${libname}${release}.a $libname.a' 15759 soname_spec='${libname}${release}${shared_ext}$major' 15760 fi 15761 shlibpath_var=LIBPATH 15762 fi 15763 ;; 15764 15765amigaos*) 15766 library_names_spec='$libname.ixlibrary $libname.a' 15767 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15768 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' 15769 ;; 15770 15771beos*) 15772 library_names_spec='${libname}${shared_ext}' 15773 dynamic_linker="$host_os ld.so" 15774 shlibpath_var=LIBRARY_PATH 15775 ;; 15776 15777bsdi[45]*) 15778 version_type=linux 15779 need_version=no 15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15781 soname_spec='${libname}${release}${shared_ext}$major' 15782 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15783 shlibpath_var=LD_LIBRARY_PATH 15784 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15785 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15786 # the default ld.so.conf also contains /usr/contrib/lib and 15787 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15788 # libtool to hard-code these into programs 15789 ;; 15790 15791cygwin* | mingw* | pw32*) 15792 version_type=windows 15793 shrext_cmds=".dll" 15794 need_version=no 15795 need_lib_prefix=no 15796 15797 case $GCC,$host_os in 15798 yes,cygwin* | yes,mingw* | yes,pw32*) 15799 library_names_spec='$libname.dll.a' 15800 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15801 postinstall_cmds='base_file=`basename \${file}`~ 15802 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15803 dldir=$destdir/`dirname \$dlpath`~ 15804 test -d \$dldir || mkdir -p \$dldir~ 15805 $install_prog $dir/$dlname \$dldir/$dlname~ 15806 chmod a+x \$dldir/$dlname' 15807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15808 dlpath=$dir/\$dldll~ 15809 $rm \$dlpath' 15810 shlibpath_overrides_runpath=yes 15811 15812 case $host_os in 15813 cygwin*) 15814 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15815 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15816 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15817 ;; 15818 mingw*) 15819 # MinGW DLLs use traditional 'lib' prefix 15820 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15821 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15822 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15823 # It is most probably a Windows format PATH printed by 15824 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15825 # path with ; separators, and with drive letters. We can handle the 15826 # drive letters (cygwin fileutils understands them), so leave them, 15827 # especially as we might pass files found there to a mingw objdump, 15828 # which wouldn't understand a cygwinified path. Ahh. 15829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15830 else 15831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15832 fi 15833 ;; 15834 pw32*) 15835 # pw32 DLLs use 'pw' prefix rather than 'lib' 15836 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15837 ;; 15838 esac 15839 ;; 15840 15841 *) 15842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15843 ;; 15844 esac 15845 dynamic_linker='Win32 ld.exe' 15846 # FIXME: first we should search . and the directory the executable is in 15847 shlibpath_var=PATH 15848 ;; 15849 15850darwin* | rhapsody*) 15851 dynamic_linker="$host_os dyld" 15852 version_type=darwin 15853 need_lib_prefix=no 15854 need_version=no 15855 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15856 soname_spec='${libname}${release}${major}$shared_ext' 15857 shlibpath_overrides_runpath=yes 15858 shlibpath_var=DYLD_LIBRARY_PATH 15859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15860 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15861 if test "$GCC" = yes; then 15862 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"` 15863 else 15864 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15865 fi 15866 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15867 ;; 15868 15869dgux*) 15870 version_type=linux 15871 need_lib_prefix=no 15872 need_version=no 15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15874 soname_spec='${libname}${release}${shared_ext}$major' 15875 shlibpath_var=LD_LIBRARY_PATH 15876 ;; 15877 15878freebsd1*) 15879 dynamic_linker=no 15880 ;; 15881 15882freebsd* | dragonfly*) 15883 # DragonFly does not have aout. When/if they implement a new 15884 # versioning mechanism, adjust this. 15885 if test -x /usr/bin/objformat; then 15886 objformat=`/usr/bin/objformat` 15887 else 15888 case $host_os in 15889 freebsd[123]*) objformat=aout ;; 15890 *) objformat=elf ;; 15891 esac 15892 fi 15893 version_type=freebsd-$objformat 15894 case $version_type in 15895 freebsd-elf*) 15896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15897 need_version=no 15898 need_lib_prefix=no 15899 ;; 15900 freebsd-*) 15901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15902 need_version=yes 15903 ;; 15904 esac 15905 shlibpath_var=LD_LIBRARY_PATH 15906 case $host_os in 15907 freebsd2*) 15908 shlibpath_overrides_runpath=yes 15909 ;; 15910 freebsd3.[01]* | freebsdelf3.[01]*) 15911 shlibpath_overrides_runpath=yes 15912 hardcode_into_libs=yes 15913 ;; 15914 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15915 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15916 shlibpath_overrides_runpath=no 15917 hardcode_into_libs=yes 15918 ;; 15919 freebsd*) # from 4.6 on 15920 shlibpath_overrides_runpath=yes 15921 hardcode_into_libs=yes 15922 ;; 15923 esac 15924 ;; 15925 15926gnu*) 15927 version_type=linux 15928 need_lib_prefix=no 15929 need_version=no 15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15931 soname_spec='${libname}${release}${shared_ext}$major' 15932 shlibpath_var=LD_LIBRARY_PATH 15933 hardcode_into_libs=yes 15934 ;; 15935 15936hpux9* | hpux10* | hpux11*) 15937 # Give a soname corresponding to the major version so that dld.sl refuses to 15938 # link against other versions. 15939 version_type=sunos 15940 need_lib_prefix=no 15941 need_version=no 15942 case $host_cpu in 15943 ia64*) 15944 shrext_cmds='.so' 15945 hardcode_into_libs=yes 15946 dynamic_linker="$host_os dld.so" 15947 shlibpath_var=LD_LIBRARY_PATH 15948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15950 soname_spec='${libname}${release}${shared_ext}$major' 15951 if test "X$HPUX_IA64_MODE" = X32; then 15952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15953 else 15954 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15955 fi 15956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15957 ;; 15958 hppa*64*) 15959 shrext_cmds='.sl' 15960 hardcode_into_libs=yes 15961 dynamic_linker="$host_os dld.sl" 15962 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15965 soname_spec='${libname}${release}${shared_ext}$major' 15966 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15968 ;; 15969 *) 15970 shrext_cmds='.sl' 15971 dynamic_linker="$host_os dld.sl" 15972 shlibpath_var=SHLIB_PATH 15973 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15975 soname_spec='${libname}${release}${shared_ext}$major' 15976 ;; 15977 esac 15978 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15979 postinstall_cmds='chmod 555 $lib' 15980 ;; 15981 15982interix3*) 15983 version_type=linux 15984 need_lib_prefix=no 15985 need_version=no 15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15987 soname_spec='${libname}${release}${shared_ext}$major' 15988 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15989 shlibpath_var=LD_LIBRARY_PATH 15990 shlibpath_overrides_runpath=no 15991 hardcode_into_libs=yes 15992 ;; 15993 15994irix5* | irix6* | nonstopux*) 15995 case $host_os in 15996 nonstopux*) version_type=nonstopux ;; 15997 *) 15998 if test "$lt_cv_prog_gnu_ld" = yes; then 15999 version_type=linux 16000 else 16001 version_type=irix 16002 fi ;; 16003 esac 16004 need_lib_prefix=no 16005 need_version=no 16006 soname_spec='${libname}${release}${shared_ext}$major' 16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16008 case $host_os in 16009 irix5* | nonstopux*) 16010 libsuff= shlibsuff= 16011 ;; 16012 *) 16013 case $LD in # libtool.m4 will add one of these switches to LD 16014 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16015 libsuff= shlibsuff= libmagic=32-bit;; 16016 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16017 libsuff=32 shlibsuff=N32 libmagic=N32;; 16018 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16019 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16020 *) libsuff= shlibsuff= libmagic=never-match;; 16021 esac 16022 ;; 16023 esac 16024 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16025 shlibpath_overrides_runpath=no 16026 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16027 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16028 hardcode_into_libs=yes 16029 ;; 16030 16031# No shared lib support for Linux oldld, aout, or coff. 16032linux*oldld* | linux*aout* | linux*coff*) 16033 dynamic_linker=no 16034 ;; 16035 16036# This must be Linux ELF. 16037linux* | k*bsd*-gnu) 16038 version_type=linux 16039 need_lib_prefix=no 16040 need_version=no 16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16042 soname_spec='${libname}${release}${shared_ext}$major' 16043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16044 shlibpath_var=LD_LIBRARY_PATH 16045 shlibpath_overrides_runpath=no 16046 # This implies no fast_install, which is unacceptable. 16047 # Some rework will be needed to allow for fast_install 16048 # before this can be enabled. 16049 hardcode_into_libs=yes 16050 16051 # Append ld.so.conf contents to the search path 16052 if test -f /etc/ld.so.conf; then 16053 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' ' '` 16054 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16055 fi 16056 16057 # We used to test for /lib/ld.so.1 and disable shared libraries on 16058 # powerpc, because MkLinux only supported shared libraries with the 16059 # GNU dynamic linker. Since this was broken with cross compilers, 16060 # most powerpc-linux boxes support dynamic linking these days and 16061 # people can always --disable-shared, the test was removed, and we 16062 # assume the GNU/Linux dynamic linker is in use. 16063 dynamic_linker='GNU/Linux ld.so' 16064 ;; 16065 16066netbsdelf*-gnu) 16067 version_type=linux 16068 need_lib_prefix=no 16069 need_version=no 16070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16071 soname_spec='${libname}${release}${shared_ext}$major' 16072 shlibpath_var=LD_LIBRARY_PATH 16073 shlibpath_overrides_runpath=no 16074 hardcode_into_libs=yes 16075 dynamic_linker='NetBSD ld.elf_so' 16076 ;; 16077 16078netbsd*) 16079 version_type=sunos 16080 need_lib_prefix=no 16081 need_version=no 16082 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16085 dynamic_linker='NetBSD (a.out) ld.so' 16086 else 16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16088 soname_spec='${libname}${release}${shared_ext}$major' 16089 dynamic_linker='NetBSD ld.elf_so' 16090 fi 16091 shlibpath_var=LD_LIBRARY_PATH 16092 shlibpath_overrides_runpath=yes 16093 hardcode_into_libs=yes 16094 ;; 16095 16096newsos6) 16097 version_type=linux 16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16099 shlibpath_var=LD_LIBRARY_PATH 16100 shlibpath_overrides_runpath=yes 16101 ;; 16102 16103nto-qnx*) 16104 version_type=linux 16105 need_lib_prefix=no 16106 need_version=no 16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16108 soname_spec='${libname}${release}${shared_ext}$major' 16109 shlibpath_var=LD_LIBRARY_PATH 16110 shlibpath_overrides_runpath=yes 16111 ;; 16112 16113openbsd*) 16114 version_type=sunos 16115 sys_lib_dlsearch_path_spec="/usr/lib" 16116 need_lib_prefix=no 16117 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16118 case $host_os in 16119 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16120 *) need_version=no ;; 16121 esac 16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16124 shlibpath_var=LD_LIBRARY_PATH 16125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16126 case $host_os in 16127 openbsd2.[89] | openbsd2.[89].*) 16128 shlibpath_overrides_runpath=no 16129 ;; 16130 *) 16131 shlibpath_overrides_runpath=yes 16132 ;; 16133 esac 16134 else 16135 shlibpath_overrides_runpath=yes 16136 fi 16137 ;; 16138 16139os2*) 16140 libname_spec='$name' 16141 shrext_cmds=".dll" 16142 need_lib_prefix=no 16143 library_names_spec='$libname${shared_ext} $libname.a' 16144 dynamic_linker='OS/2 ld.exe' 16145 shlibpath_var=LIBPATH 16146 ;; 16147 16148osf3* | osf4* | osf5*) 16149 version_type=osf 16150 need_lib_prefix=no 16151 need_version=no 16152 soname_spec='${libname}${release}${shared_ext}$major' 16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16154 shlibpath_var=LD_LIBRARY_PATH 16155 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16156 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16157 ;; 16158 16159solaris*) 16160 version_type=linux 16161 need_lib_prefix=no 16162 need_version=no 16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16164 soname_spec='${libname}${release}${shared_ext}$major' 16165 shlibpath_var=LD_LIBRARY_PATH 16166 shlibpath_overrides_runpath=yes 16167 hardcode_into_libs=yes 16168 # ldd complains unless libraries are executable 16169 postinstall_cmds='chmod +x $lib' 16170 ;; 16171 16172sunos4*) 16173 version_type=sunos 16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16175 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16176 shlibpath_var=LD_LIBRARY_PATH 16177 shlibpath_overrides_runpath=yes 16178 if test "$with_gnu_ld" = yes; then 16179 need_lib_prefix=no 16180 fi 16181 need_version=yes 16182 ;; 16183 16184sysv4 | sysv4.3*) 16185 version_type=linux 16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16187 soname_spec='${libname}${release}${shared_ext}$major' 16188 shlibpath_var=LD_LIBRARY_PATH 16189 case $host_vendor in 16190 sni) 16191 shlibpath_overrides_runpath=no 16192 need_lib_prefix=no 16193 export_dynamic_flag_spec='${wl}-Blargedynsym' 16194 runpath_var=LD_RUN_PATH 16195 ;; 16196 siemens) 16197 need_lib_prefix=no 16198 ;; 16199 motorola) 16200 need_lib_prefix=no 16201 need_version=no 16202 shlibpath_overrides_runpath=no 16203 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16204 ;; 16205 esac 16206 ;; 16207 16208sysv4*MP*) 16209 if test -d /usr/nec ;then 16210 version_type=linux 16211 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16212 soname_spec='$libname${shared_ext}.$major' 16213 shlibpath_var=LD_LIBRARY_PATH 16214 fi 16215 ;; 16216 16217sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16218 version_type=freebsd-elf 16219 need_lib_prefix=no 16220 need_version=no 16221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16222 soname_spec='${libname}${release}${shared_ext}$major' 16223 shlibpath_var=LD_LIBRARY_PATH 16224 hardcode_into_libs=yes 16225 if test "$with_gnu_ld" = yes; then 16226 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16227 shlibpath_overrides_runpath=no 16228 else 16229 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16230 shlibpath_overrides_runpath=yes 16231 case $host_os in 16232 sco3.2v5*) 16233 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16234 ;; 16235 esac 16236 fi 16237 sys_lib_dlsearch_path_spec='/usr/lib' 16238 ;; 16239 16240uts4*) 16241 version_type=linux 16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16243 soname_spec='${libname}${release}${shared_ext}$major' 16244 shlibpath_var=LD_LIBRARY_PATH 16245 ;; 16246 16247*) 16248 dynamic_linker=no 16249 ;; 16250esac 16251{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16252echo "${ECHO_T}$dynamic_linker" >&6; } 16253test "$dynamic_linker" = no && can_build_shared=no 16254 16255variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16256if test "$GCC" = yes; then 16257 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16258fi 16259 16260{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16261echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16262hardcode_action_F77= 16263if test -n "$hardcode_libdir_flag_spec_F77" || \ 16264 test -n "$runpath_var_F77" || \ 16265 test "X$hardcode_automatic_F77" = "Xyes" ; then 16266 16267 # We can hardcode non-existant directories. 16268 if test "$hardcode_direct_F77" != no && 16269 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16270 # have to relink, otherwise we might link with an installed library 16271 # when we should be linking with a yet-to-be-installed one 16272 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16273 test "$hardcode_minus_L_F77" != no; then 16274 # Linking always hardcodes the temporary library directory. 16275 hardcode_action_F77=relink 16276 else 16277 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16278 hardcode_action_F77=immediate 16279 fi 16280else 16281 # We cannot hardcode anything, or else we can only hardcode existing 16282 # directories. 16283 hardcode_action_F77=unsupported 16284fi 16285{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16286echo "${ECHO_T}$hardcode_action_F77" >&6; } 16287 16288if test "$hardcode_action_F77" = relink; then 16289 # Fast installation is not supported 16290 enable_fast_install=no 16291elif test "$shlibpath_overrides_runpath" = yes || 16292 test "$enable_shared" = no; then 16293 # Fast installation is not necessary 16294 enable_fast_install=needless 16295fi 16296 16297 16298# The else clause should only fire when bootstrapping the 16299# libtool distribution, otherwise you forgot to ship ltmain.sh 16300# with your package, and you will get complaints that there are 16301# no rules to generate ltmain.sh. 16302if test -f "$ltmain"; then 16303 # See if we are running on zsh, and set the options which allow our commands through 16304 # without removal of \ escapes. 16305 if test -n "${ZSH_VERSION+set}" ; then 16306 setopt NO_GLOB_SUBST 16307 fi 16308 # Now quote all the things that may contain metacharacters while being 16309 # careful not to overquote the AC_SUBSTed values. We take copies of the 16310 # variables and quote the copies for generation of the libtool script. 16311 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16312 SED SHELL STRIP \ 16313 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16314 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16315 deplibs_check_method reload_flag reload_cmds need_locks \ 16316 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16317 lt_cv_sys_global_symbol_to_c_name_address \ 16318 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16319 old_postinstall_cmds old_postuninstall_cmds \ 16320 compiler_F77 \ 16321 CC_F77 \ 16322 LD_F77 \ 16323 lt_prog_compiler_wl_F77 \ 16324 lt_prog_compiler_pic_F77 \ 16325 lt_prog_compiler_static_F77 \ 16326 lt_prog_compiler_no_builtin_flag_F77 \ 16327 export_dynamic_flag_spec_F77 \ 16328 thread_safe_flag_spec_F77 \ 16329 whole_archive_flag_spec_F77 \ 16330 enable_shared_with_static_runtimes_F77 \ 16331 old_archive_cmds_F77 \ 16332 old_archive_from_new_cmds_F77 \ 16333 predep_objects_F77 \ 16334 postdep_objects_F77 \ 16335 predeps_F77 \ 16336 postdeps_F77 \ 16337 compiler_lib_search_path_F77 \ 16338 archive_cmds_F77 \ 16339 archive_expsym_cmds_F77 \ 16340 postinstall_cmds_F77 \ 16341 postuninstall_cmds_F77 \ 16342 old_archive_from_expsyms_cmds_F77 \ 16343 allow_undefined_flag_F77 \ 16344 no_undefined_flag_F77 \ 16345 export_symbols_cmds_F77 \ 16346 hardcode_libdir_flag_spec_F77 \ 16347 hardcode_libdir_flag_spec_ld_F77 \ 16348 hardcode_libdir_separator_F77 \ 16349 hardcode_automatic_F77 \ 16350 module_cmds_F77 \ 16351 module_expsym_cmds_F77 \ 16352 lt_cv_prog_compiler_c_o_F77 \ 16353 exclude_expsyms_F77 \ 16354 include_expsyms_F77; do 16355 16356 case $var in 16357 old_archive_cmds_F77 | \ 16358 old_archive_from_new_cmds_F77 | \ 16359 archive_cmds_F77 | \ 16360 archive_expsym_cmds_F77 | \ 16361 module_cmds_F77 | \ 16362 module_expsym_cmds_F77 | \ 16363 old_archive_from_expsyms_cmds_F77 | \ 16364 export_symbols_cmds_F77 | \ 16365 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16366 postinstall_cmds | postuninstall_cmds | \ 16367 old_postinstall_cmds | old_postuninstall_cmds | \ 16368 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16369 # Double-quote double-evaled strings. 16370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16371 ;; 16372 *) 16373 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16374 ;; 16375 esac 16376 done 16377 16378 case $lt_echo in 16379 *'\$0 --fallback-echo"') 16380 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16381 ;; 16382 esac 16383 16384cfgfile="$ofile" 16385 16386 cat <<__EOF__ >> "$cfgfile" 16387# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16388 16389# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16390 16391# Shell to use when invoking shell scripts. 16392SHELL=$lt_SHELL 16393 16394# Whether or not to build shared libraries. 16395build_libtool_libs=$enable_shared 16396 16397# Whether or not to build static libraries. 16398build_old_libs=$enable_static 16399 16400# Whether or not to add -lc for building shared libraries. 16401build_libtool_need_lc=$archive_cmds_need_lc_F77 16402 16403# Whether or not to disallow shared libs when runtime libs are static 16404allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16405 16406# Whether or not to optimize for fast installation. 16407fast_install=$enable_fast_install 16408 16409# The host system. 16410host_alias=$host_alias 16411host=$host 16412host_os=$host_os 16413 16414# The build system. 16415build_alias=$build_alias 16416build=$build 16417build_os=$build_os 16418 16419# An echo program that does not interpret backslashes. 16420echo=$lt_echo 16421 16422# The archiver. 16423AR=$lt_AR 16424AR_FLAGS=$lt_AR_FLAGS 16425 16426# A C compiler. 16427LTCC=$lt_LTCC 16428 16429# LTCC compiler flags. 16430LTCFLAGS=$lt_LTCFLAGS 16431 16432# A language-specific compiler. 16433CC=$lt_compiler_F77 16434 16435# Is the compiler the GNU C compiler? 16436with_gcc=$GCC_F77 16437 16438# An ERE matcher. 16439EGREP=$lt_EGREP 16440 16441# The linker used to build libraries. 16442LD=$lt_LD_F77 16443 16444# Whether we need hard or soft links. 16445LN_S=$lt_LN_S 16446 16447# A BSD-compatible nm program. 16448NM=$lt_NM 16449 16450# A symbol stripping program 16451STRIP=$lt_STRIP 16452 16453# Used to examine libraries when file_magic_cmd begins "file" 16454MAGIC_CMD=$MAGIC_CMD 16455 16456# Used on cygwin: DLL creation program. 16457DLLTOOL="$DLLTOOL" 16458 16459# Used on cygwin: object dumper. 16460OBJDUMP="$OBJDUMP" 16461 16462# Used on cygwin: assembler. 16463AS="$AS" 16464 16465# The name of the directory that contains temporary libtool files. 16466objdir=$objdir 16467 16468# How to create reloadable object files. 16469reload_flag=$lt_reload_flag 16470reload_cmds=$lt_reload_cmds 16471 16472# How to pass a linker flag through the compiler. 16473wl=$lt_lt_prog_compiler_wl_F77 16474 16475# Object file suffix (normally "o"). 16476objext="$ac_objext" 16477 16478# Old archive suffix (normally "a"). 16479libext="$libext" 16480 16481# Shared library suffix (normally ".so"). 16482shrext_cmds='$shrext_cmds' 16483 16484# Executable file suffix (normally ""). 16485exeext="$exeext" 16486 16487# Additional compiler flags for building library objects. 16488pic_flag=$lt_lt_prog_compiler_pic_F77 16489pic_mode=$pic_mode 16490 16491# What is the maximum length of a command? 16492max_cmd_len=$lt_cv_sys_max_cmd_len 16493 16494# Does compiler simultaneously support -c and -o options? 16495compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16496 16497# Must we lock files when doing compilation? 16498need_locks=$lt_need_locks 16499 16500# Do we need the lib prefix for modules? 16501need_lib_prefix=$need_lib_prefix 16502 16503# Do we need a version for libraries? 16504need_version=$need_version 16505 16506# Whether dlopen is supported. 16507dlopen_support=$enable_dlopen 16508 16509# Whether dlopen of programs is supported. 16510dlopen_self=$enable_dlopen_self 16511 16512# Whether dlopen of statically linked programs is supported. 16513dlopen_self_static=$enable_dlopen_self_static 16514 16515# Compiler flag to prevent dynamic linking. 16516link_static_flag=$lt_lt_prog_compiler_static_F77 16517 16518# Compiler flag to turn off builtin functions. 16519no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16520 16521# Compiler flag to allow reflexive dlopens. 16522export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16523 16524# Compiler flag to generate shared objects directly from archives. 16525whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16526 16527# Compiler flag to generate thread-safe objects. 16528thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16529 16530# Library versioning type. 16531version_type=$version_type 16532 16533# Format of library name prefix. 16534libname_spec=$lt_libname_spec 16535 16536# List of archive names. First name is the real one, the rest are links. 16537# The last name is the one that the linker finds with -lNAME. 16538library_names_spec=$lt_library_names_spec 16539 16540# The coded name of the library, if different from the real name. 16541soname_spec=$lt_soname_spec 16542 16543# Commands used to build and install an old-style archive. 16544RANLIB=$lt_RANLIB 16545old_archive_cmds=$lt_old_archive_cmds_F77 16546old_postinstall_cmds=$lt_old_postinstall_cmds 16547old_postuninstall_cmds=$lt_old_postuninstall_cmds 16548 16549# Create an old-style archive from a shared archive. 16550old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16551 16552# Create a temporary old-style archive to link instead of a shared archive. 16553old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16554 16555# Commands used to build and install a shared archive. 16556archive_cmds=$lt_archive_cmds_F77 16557archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16558postinstall_cmds=$lt_postinstall_cmds 16559postuninstall_cmds=$lt_postuninstall_cmds 16560 16561# Commands used to build a loadable module (assumed same as above if empty) 16562module_cmds=$lt_module_cmds_F77 16563module_expsym_cmds=$lt_module_expsym_cmds_F77 16564 16565# Commands to strip libraries. 16566old_striplib=$lt_old_striplib 16567striplib=$lt_striplib 16568 16569# Dependencies to place before the objects being linked to create a 16570# shared library. 16571predep_objects=$lt_predep_objects_F77 16572 16573# Dependencies to place after the objects being linked to create a 16574# shared library. 16575postdep_objects=$lt_postdep_objects_F77 16576 16577# Dependencies to place before the objects being linked to create a 16578# shared library. 16579predeps=$lt_predeps_F77 16580 16581# Dependencies to place after the objects being linked to create a 16582# shared library. 16583postdeps=$lt_postdeps_F77 16584 16585# The library search path used internally by the compiler when linking 16586# a shared library. 16587compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16588 16589# Method to check whether dependent libraries are shared objects. 16590deplibs_check_method=$lt_deplibs_check_method 16591 16592# Command to use when deplibs_check_method == file_magic. 16593file_magic_cmd=$lt_file_magic_cmd 16594 16595# Flag that allows shared libraries with undefined symbols to be built. 16596allow_undefined_flag=$lt_allow_undefined_flag_F77 16597 16598# Flag that forces no undefined symbols. 16599no_undefined_flag=$lt_no_undefined_flag_F77 16600 16601# Commands used to finish a libtool library installation in a directory. 16602finish_cmds=$lt_finish_cmds 16603 16604# Same as above, but a single script fragment to be evaled but not shown. 16605finish_eval=$lt_finish_eval 16606 16607# Take the output of nm and produce a listing of raw symbols and C names. 16608global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16609 16610# Transform the output of nm in a proper C declaration 16611global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16612 16613# Transform the output of nm in a C name address pair 16614global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16615 16616# This is the shared library runtime path variable. 16617runpath_var=$runpath_var 16618 16619# This is the shared library path variable. 16620shlibpath_var=$shlibpath_var 16621 16622# Is shlibpath searched before the hard-coded library search path? 16623shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16624 16625# How to hardcode a shared library path into an executable. 16626hardcode_action=$hardcode_action_F77 16627 16628# Whether we should hardcode library paths into libraries. 16629hardcode_into_libs=$hardcode_into_libs 16630 16631# Flag to hardcode \$libdir into a binary during linking. 16632# This must work even if \$libdir does not exist. 16633hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16634 16635# If ld is used when linking, flag to hardcode \$libdir into 16636# a binary during linking. This must work even if \$libdir does 16637# not exist. 16638hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16639 16640# Whether we need a single -rpath flag with a separated argument. 16641hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16642 16643# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16644# resulting binary. 16645hardcode_direct=$hardcode_direct_F77 16646 16647# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16648# resulting binary. 16649hardcode_minus_L=$hardcode_minus_L_F77 16650 16651# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16652# the resulting binary. 16653hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16654 16655# Set to yes if building a shared library automatically hardcodes DIR into the library 16656# and all subsequent libraries and executables linked against it. 16657hardcode_automatic=$hardcode_automatic_F77 16658 16659# Variables whose values should be saved in libtool wrapper scripts and 16660# restored at relink time. 16661variables_saved_for_relink="$variables_saved_for_relink" 16662 16663# Whether libtool must link a program against all its dependency libraries. 16664link_all_deplibs=$link_all_deplibs_F77 16665 16666# Compile-time system search path for libraries 16667sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16668 16669# Run-time system search path for libraries 16670sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16671 16672# Fix the shell variable \$srcfile for the compiler. 16673fix_srcfile_path="$fix_srcfile_path_F77" 16674 16675# Set to yes if exported symbols are required. 16676always_export_symbols=$always_export_symbols_F77 16677 16678# The commands to list exported symbols. 16679export_symbols_cmds=$lt_export_symbols_cmds_F77 16680 16681# The commands to extract the exported symbol list from a shared archive. 16682extract_expsyms_cmds=$lt_extract_expsyms_cmds 16683 16684# Symbols that should not be listed in the preloaded symbols. 16685exclude_expsyms=$lt_exclude_expsyms_F77 16686 16687# Symbols that must always be exported. 16688include_expsyms=$lt_include_expsyms_F77 16689 16690# ### END LIBTOOL TAG CONFIG: $tagname 16691 16692__EOF__ 16693 16694 16695else 16696 # If there is no Makefile yet, we rely on a make rule to execute 16697 # `config.status --recheck' to rerun these tests and create the 16698 # libtool script then. 16699 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16700 if test -f "$ltmain_in"; then 16701 test -f Makefile && make "$ltmain" 16702 fi 16703fi 16704 16705 16706ac_ext=cpp 16707ac_cpp='$CXXCPP $CPPFLAGS' 16708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16711 16712CC="$lt_save_CC" 16713 16714 else 16715 tagname="" 16716 fi 16717 ;; 16718 16719 GCJ) 16720 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16721 16722 16723# Source file extension for Java test sources. 16724ac_ext=java 16725 16726# Object file extension for compiled Java test sources. 16727objext=o 16728objext_GCJ=$objext 16729 16730# Code to be used in simple compile tests 16731lt_simple_compile_test_code="class foo {}\n" 16732 16733# Code to be used in simple link tests 16734lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16735 16736# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16737 16738# If no C compiler was specified, use CC. 16739LTCC=${LTCC-"$CC"} 16740 16741# If no C compiler flags were specified, use CFLAGS. 16742LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16743 16744# Allow CC to be a program name with arguments. 16745compiler=$CC 16746 16747 16748# save warnings/boilerplate of simple test code 16749ac_outfile=conftest.$ac_objext 16750printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16751eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16752_lt_compiler_boilerplate=`cat conftest.err` 16753$rm conftest* 16754 16755ac_outfile=conftest.$ac_objext 16756printf "$lt_simple_link_test_code" >conftest.$ac_ext 16757eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16758_lt_linker_boilerplate=`cat conftest.err` 16759$rm conftest* 16760 16761 16762# Allow CC to be a program name with arguments. 16763lt_save_CC="$CC" 16764CC=${GCJ-"gcj"} 16765compiler=$CC 16766compiler_GCJ=$CC 16767for cc_temp in $compiler""; do 16768 case $cc_temp in 16769 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16770 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16771 \-*) ;; 16772 *) break;; 16773 esac 16774done 16775cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16776 16777 16778# GCJ did not exist at the time GCC didn't implicitly link libc in. 16779archive_cmds_need_lc_GCJ=no 16780 16781old_archive_cmds_GCJ=$old_archive_cmds 16782 16783 16784lt_prog_compiler_no_builtin_flag_GCJ= 16785 16786if test "$GCC" = yes; then 16787 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16788 16789 16790{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16791echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16792if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16793 echo $ECHO_N "(cached) $ECHO_C" >&6 16794else 16795 lt_cv_prog_compiler_rtti_exceptions=no 16796 ac_outfile=conftest.$ac_objext 16797 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16798 lt_compiler_flag="-fno-rtti -fno-exceptions" 16799 # Insert the option either (1) after the last *FLAGS variable, or 16800 # (2) before a word containing "conftest.", or (3) at the end. 16801 # Note that $ac_compile itself does not contain backslashes and begins 16802 # with a dollar sign (not a hyphen), so the echo should work correctly. 16803 # The option is referenced via a variable to avoid confusing sed. 16804 lt_compile=`echo "$ac_compile" | $SED \ 16805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16807 -e 's:$: $lt_compiler_flag:'` 16808 (eval echo "\"\$as_me:16808: $lt_compile\"" >&5) 16809 (eval "$lt_compile" 2>conftest.err) 16810 ac_status=$? 16811 cat conftest.err >&5 16812 echo "$as_me:16812: \$? = $ac_status" >&5 16813 if (exit $ac_status) && test -s "$ac_outfile"; then 16814 # The compiler can only warn and ignore the option if not recognized 16815 # So say no if there are warnings other than the usual output. 16816 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16819 lt_cv_prog_compiler_rtti_exceptions=yes 16820 fi 16821 fi 16822 $rm conftest* 16823 16824fi 16825{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16826echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16827 16828if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16829 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16830else 16831 : 16832fi 16833 16834fi 16835 16836lt_prog_compiler_wl_GCJ= 16837lt_prog_compiler_pic_GCJ= 16838lt_prog_compiler_static_GCJ= 16839 16840{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16841echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16842 16843 if test "$GCC" = yes; then 16844 lt_prog_compiler_wl_GCJ='-Wl,' 16845 lt_prog_compiler_static_GCJ='-static' 16846 16847 case $host_os in 16848 aix*) 16849 # All AIX code is PIC. 16850 if test "$host_cpu" = ia64; then 16851 # AIX 5 now supports IA64 processor 16852 lt_prog_compiler_static_GCJ='-Bstatic' 16853 fi 16854 ;; 16855 16856 amigaos*) 16857 # FIXME: we need at least 68020 code to build shared libraries, but 16858 # adding the `-m68020' flag to GCC prevents building anything better, 16859 # like `-m68040'. 16860 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16861 ;; 16862 16863 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16864 # PIC is the default for these OSes. 16865 ;; 16866 16867 mingw* | pw32* | os2*) 16868 # This hack is so that the source file can tell whether it is being 16869 # built for inclusion in a dll (and should export symbols for example). 16870 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16871 ;; 16872 16873 darwin* | rhapsody*) 16874 # PIC is the default on this platform 16875 # Common symbols not allowed in MH_DYLIB files 16876 lt_prog_compiler_pic_GCJ='-fno-common' 16877 ;; 16878 16879 interix3*) 16880 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16881 # Instead, we relocate shared libraries at runtime. 16882 ;; 16883 16884 msdosdjgpp*) 16885 # Just because we use GCC doesn't mean we suddenly get shared libraries 16886 # on systems that don't support them. 16887 lt_prog_compiler_can_build_shared_GCJ=no 16888 enable_shared=no 16889 ;; 16890 16891 sysv4*MP*) 16892 if test -d /usr/nec; then 16893 lt_prog_compiler_pic_GCJ=-Kconform_pic 16894 fi 16895 ;; 16896 16897 hpux*) 16898 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16899 # not for PA HP-UX. 16900 case $host_cpu in 16901 hppa*64*|ia64*) 16902 # +Z the default 16903 ;; 16904 *) 16905 lt_prog_compiler_pic_GCJ='-fPIC' 16906 ;; 16907 esac 16908 ;; 16909 16910 *) 16911 lt_prog_compiler_pic_GCJ='-fPIC' 16912 ;; 16913 esac 16914 else 16915 # PORTME Check for flag to pass linker flags through the system compiler. 16916 case $host_os in 16917 aix*) 16918 lt_prog_compiler_wl_GCJ='-Wl,' 16919 if test "$host_cpu" = ia64; then 16920 # AIX 5 now supports IA64 processor 16921 lt_prog_compiler_static_GCJ='-Bstatic' 16922 else 16923 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16924 fi 16925 ;; 16926 darwin*) 16927 # PIC is the default on this platform 16928 # Common symbols not allowed in MH_DYLIB files 16929 case $cc_basename in 16930 xlc*) 16931 lt_prog_compiler_pic_GCJ='-qnocommon' 16932 lt_prog_compiler_wl_GCJ='-Wl,' 16933 ;; 16934 esac 16935 ;; 16936 16937 mingw* | pw32* | os2*) 16938 # This hack is so that the source file can tell whether it is being 16939 # built for inclusion in a dll (and should export symbols for example). 16940 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16941 ;; 16942 16943 hpux9* | hpux10* | hpux11*) 16944 lt_prog_compiler_wl_GCJ='-Wl,' 16945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16946 # not for PA HP-UX. 16947 case $host_cpu in 16948 hppa*64*|ia64*) 16949 # +Z the default 16950 ;; 16951 *) 16952 lt_prog_compiler_pic_GCJ='+Z' 16953 ;; 16954 esac 16955 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16956 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16957 ;; 16958 16959 irix5* | irix6* | nonstopux*) 16960 lt_prog_compiler_wl_GCJ='-Wl,' 16961 # PIC (with -KPIC) is the default. 16962 lt_prog_compiler_static_GCJ='-non_shared' 16963 ;; 16964 16965 newsos6) 16966 lt_prog_compiler_pic_GCJ='-KPIC' 16967 lt_prog_compiler_static_GCJ='-Bstatic' 16968 ;; 16969 16970 linux* | k*bsd*-gnu) 16971 case $cc_basename in 16972 icc* | ecc*) 16973 lt_prog_compiler_wl_GCJ='-Wl,' 16974 lt_prog_compiler_pic_GCJ='-KPIC' 16975 lt_prog_compiler_static_GCJ='-static' 16976 ;; 16977 pgcc* | pgf77* | pgf90* | pgf95*) 16978 # Portland Group compilers (*not* the Pentium gcc compiler, 16979 # which looks to be a dead project) 16980 lt_prog_compiler_wl_GCJ='-Wl,' 16981 lt_prog_compiler_pic_GCJ='-fpic' 16982 lt_prog_compiler_static_GCJ='-Bstatic' 16983 ;; 16984 ccc*) 16985 lt_prog_compiler_wl_GCJ='-Wl,' 16986 # All Alpha code is PIC. 16987 lt_prog_compiler_static_GCJ='-non_shared' 16988 ;; 16989 esac 16990 ;; 16991 16992 osf3* | osf4* | osf5*) 16993 lt_prog_compiler_wl_GCJ='-Wl,' 16994 # All OSF/1 code is PIC. 16995 lt_prog_compiler_static_GCJ='-non_shared' 16996 ;; 16997 16998 solaris*) 16999 lt_prog_compiler_pic_GCJ='-KPIC' 17000 lt_prog_compiler_static_GCJ='-Bstatic' 17001 case $cc_basename in 17002 f77* | f90* | f95*) 17003 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17004 *) 17005 lt_prog_compiler_wl_GCJ='-Wl,';; 17006 esac 17007 ;; 17008 17009 sunos4*) 17010 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17011 lt_prog_compiler_pic_GCJ='-PIC' 17012 lt_prog_compiler_static_GCJ='-Bstatic' 17013 ;; 17014 17015 sysv4 | sysv4.2uw2* | sysv4.3*) 17016 lt_prog_compiler_wl_GCJ='-Wl,' 17017 lt_prog_compiler_pic_GCJ='-KPIC' 17018 lt_prog_compiler_static_GCJ='-Bstatic' 17019 ;; 17020 17021 sysv4*MP*) 17022 if test -d /usr/nec ;then 17023 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17024 lt_prog_compiler_static_GCJ='-Bstatic' 17025 fi 17026 ;; 17027 17028 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17029 lt_prog_compiler_wl_GCJ='-Wl,' 17030 lt_prog_compiler_pic_GCJ='-KPIC' 17031 lt_prog_compiler_static_GCJ='-Bstatic' 17032 ;; 17033 17034 unicos*) 17035 lt_prog_compiler_wl_GCJ='-Wl,' 17036 lt_prog_compiler_can_build_shared_GCJ=no 17037 ;; 17038 17039 uts4*) 17040 lt_prog_compiler_pic_GCJ='-pic' 17041 lt_prog_compiler_static_GCJ='-Bstatic' 17042 ;; 17043 17044 *) 17045 lt_prog_compiler_can_build_shared_GCJ=no 17046 ;; 17047 esac 17048 fi 17049 17050{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17051echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 17052 17053# 17054# Check to make sure the PIC flag actually works. 17055# 17056if test -n "$lt_prog_compiler_pic_GCJ"; then 17057 17058{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17059echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17060if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17061 echo $ECHO_N "(cached) $ECHO_C" >&6 17062else 17063 lt_prog_compiler_pic_works_GCJ=no 17064 ac_outfile=conftest.$ac_objext 17065 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17066 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17067 # Insert the option either (1) after the last *FLAGS variable, or 17068 # (2) before a word containing "conftest.", or (3) at the end. 17069 # Note that $ac_compile itself does not contain backslashes and begins 17070 # with a dollar sign (not a hyphen), so the echo should work correctly. 17071 # The option is referenced via a variable to avoid confusing sed. 17072 lt_compile=`echo "$ac_compile" | $SED \ 17073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17075 -e 's:$: $lt_compiler_flag:'` 17076 (eval echo "\"\$as_me:17076: $lt_compile\"" >&5) 17077 (eval "$lt_compile" 2>conftest.err) 17078 ac_status=$? 17079 cat conftest.err >&5 17080 echo "$as_me:17080: \$? = $ac_status" >&5 17081 if (exit $ac_status) && test -s "$ac_outfile"; then 17082 # The compiler can only warn and ignore the option if not recognized 17083 # So say no if there are warnings other than the usual output. 17084 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17086 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17087 lt_prog_compiler_pic_works_GCJ=yes 17088 fi 17089 fi 17090 $rm conftest* 17091 17092fi 17093{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17094echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 17095 17096if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17097 case $lt_prog_compiler_pic_GCJ in 17098 "" | " "*) ;; 17099 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17100 esac 17101else 17102 lt_prog_compiler_pic_GCJ= 17103 lt_prog_compiler_can_build_shared_GCJ=no 17104fi 17105 17106fi 17107case $host_os in 17108 # For platforms which do not support PIC, -DPIC is meaningless: 17109 *djgpp*) 17110 lt_prog_compiler_pic_GCJ= 17111 ;; 17112 *) 17113 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17114 ;; 17115esac 17116 17117# 17118# Check to make sure the static flag actually works. 17119# 17120wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17121{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17122echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17123if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17124 echo $ECHO_N "(cached) $ECHO_C" >&6 17125else 17126 lt_prog_compiler_static_works_GCJ=no 17127 save_LDFLAGS="$LDFLAGS" 17128 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17129 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17130 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17131 # The linker can only warn and ignore the option if not recognized 17132 # So say no if there are warnings 17133 if test -s conftest.err; then 17134 # Append any errors to the config.log. 17135 cat conftest.err 1>&5 17136 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17138 if diff conftest.exp conftest.er2 >/dev/null; then 17139 lt_prog_compiler_static_works_GCJ=yes 17140 fi 17141 else 17142 lt_prog_compiler_static_works_GCJ=yes 17143 fi 17144 fi 17145 $rm conftest* 17146 LDFLAGS="$save_LDFLAGS" 17147 17148fi 17149{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17150echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17151 17152if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17153 : 17154else 17155 lt_prog_compiler_static_GCJ= 17156fi 17157 17158 17159{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17160echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17161if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17162 echo $ECHO_N "(cached) $ECHO_C" >&6 17163else 17164 lt_cv_prog_compiler_c_o_GCJ=no 17165 $rm -r conftest 2>/dev/null 17166 mkdir conftest 17167 cd conftest 17168 mkdir out 17169 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17170 17171 lt_compiler_flag="-o out/conftest2.$ac_objext" 17172 # Insert the option either (1) after the last *FLAGS variable, or 17173 # (2) before a word containing "conftest.", or (3) at the end. 17174 # Note that $ac_compile itself does not contain backslashes and begins 17175 # with a dollar sign (not a hyphen), so the echo should work correctly. 17176 lt_compile=`echo "$ac_compile" | $SED \ 17177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17179 -e 's:$: $lt_compiler_flag:'` 17180 (eval echo "\"\$as_me:17180: $lt_compile\"" >&5) 17181 (eval "$lt_compile" 2>out/conftest.err) 17182 ac_status=$? 17183 cat out/conftest.err >&5 17184 echo "$as_me:17184: \$? = $ac_status" >&5 17185 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17186 then 17187 # The compiler can only warn and ignore the option if not recognized 17188 # So say no if there are warnings 17189 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17192 lt_cv_prog_compiler_c_o_GCJ=yes 17193 fi 17194 fi 17195 chmod u+w . 2>&5 17196 $rm conftest* 17197 # SGI C++ compiler will create directory out/ii_files/ for 17198 # template instantiation 17199 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17200 $rm out/* && rmdir out 17201 cd .. 17202 rmdir conftest 17203 $rm conftest* 17204 17205fi 17206{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17207echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17208 17209 17210hard_links="nottested" 17211if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17212 # do not overwrite the value of need_locks provided by the user 17213 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17214echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17215 hard_links=yes 17216 $rm conftest* 17217 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17218 touch conftest.a 17219 ln conftest.a conftest.b 2>&5 || hard_links=no 17220 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17221 { echo "$as_me:$LINENO: result: $hard_links" >&5 17222echo "${ECHO_T}$hard_links" >&6; } 17223 if test "$hard_links" = no; then 17224 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17225echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17226 need_locks=warn 17227 fi 17228else 17229 need_locks=no 17230fi 17231 17232{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17233echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17234 17235 runpath_var= 17236 allow_undefined_flag_GCJ= 17237 enable_shared_with_static_runtimes_GCJ=no 17238 archive_cmds_GCJ= 17239 archive_expsym_cmds_GCJ= 17240 old_archive_From_new_cmds_GCJ= 17241 old_archive_from_expsyms_cmds_GCJ= 17242 export_dynamic_flag_spec_GCJ= 17243 whole_archive_flag_spec_GCJ= 17244 thread_safe_flag_spec_GCJ= 17245 hardcode_libdir_flag_spec_GCJ= 17246 hardcode_libdir_flag_spec_ld_GCJ= 17247 hardcode_libdir_separator_GCJ= 17248 hardcode_direct_GCJ=no 17249 hardcode_minus_L_GCJ=no 17250 hardcode_shlibpath_var_GCJ=unsupported 17251 link_all_deplibs_GCJ=unknown 17252 hardcode_automatic_GCJ=no 17253 module_cmds_GCJ= 17254 module_expsym_cmds_GCJ= 17255 always_export_symbols_GCJ=no 17256 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17257 # include_expsyms should be a list of space-separated symbols to be *always* 17258 # included in the symbol list 17259 include_expsyms_GCJ= 17260 # exclude_expsyms can be an extended regexp of symbols to exclude 17261 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17262 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17263 # as well as any symbol that contains `d'. 17264 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17265 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17266 # platforms (ab)use it in PIC code, but their linkers get confused if 17267 # the symbol is explicitly referenced. Since portable code cannot 17268 # rely on this symbol name, it's probably fine to never include it in 17269 # preloaded symbol tables. 17270 extract_expsyms_cmds= 17271 # Just being paranoid about ensuring that cc_basename is set. 17272 for cc_temp in $compiler""; do 17273 case $cc_temp in 17274 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17275 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17276 \-*) ;; 17277 *) break;; 17278 esac 17279done 17280cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17281 17282 case $host_os in 17283 cygwin* | mingw* | pw32*) 17284 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17285 # When not using gcc, we currently assume that we are using 17286 # Microsoft Visual C++. 17287 if test "$GCC" != yes; then 17288 with_gnu_ld=no 17289 fi 17290 ;; 17291 interix*) 17292 # we just hope/assume this is gcc and not c89 (= MSVC++) 17293 with_gnu_ld=yes 17294 ;; 17295 openbsd*) 17296 with_gnu_ld=no 17297 ;; 17298 esac 17299 17300 ld_shlibs_GCJ=yes 17301 if test "$with_gnu_ld" = yes; then 17302 # If archive_cmds runs LD, not CC, wlarc should be empty 17303 wlarc='${wl}' 17304 17305 # Set some defaults for GNU ld with shared library support. These 17306 # are reset later if shared libraries are not supported. Putting them 17307 # here allows them to be overridden if necessary. 17308 runpath_var=LD_RUN_PATH 17309 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17310 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17311 # ancient GNU ld didn't support --whole-archive et. al. 17312 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17313 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17314 else 17315 whole_archive_flag_spec_GCJ= 17316 fi 17317 supports_anon_versioning=no 17318 case `$LD -v 2>/dev/null` in 17319 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17320 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17321 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17322 *\ 2.11.*) ;; # other 2.11 versions 17323 *) supports_anon_versioning=yes ;; 17324 esac 17325 17326 # See if GNU ld supports shared libraries. 17327 case $host_os in 17328 aix3* | aix4* | aix5*) 17329 # On AIX/PPC, the GNU linker is very broken 17330 if test "$host_cpu" != ia64; then 17331 ld_shlibs_GCJ=no 17332 cat <<EOF 1>&2 17333 17334*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17335*** to be unable to reliably create shared libraries on AIX. 17336*** Therefore, libtool is disabling shared libraries support. If you 17337*** really care for shared libraries, you may want to modify your PATH 17338*** so that a non-GNU linker is found, and then restart. 17339 17340EOF 17341 fi 17342 ;; 17343 17344 amigaos*) 17345 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)' 17346 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17347 hardcode_minus_L_GCJ=yes 17348 17349 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17350 # that the semantics of dynamic libraries on AmigaOS, at least up 17351 # to version 4, is to share data among multiple programs linked 17352 # with the same dynamic library. Since this doesn't match the 17353 # behavior of shared libraries on other platforms, we can't use 17354 # them. 17355 ld_shlibs_GCJ=no 17356 ;; 17357 17358 beos*) 17359 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17360 allow_undefined_flag_GCJ=unsupported 17361 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17362 # support --undefined. This deserves some investigation. FIXME 17363 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17364 else 17365 ld_shlibs_GCJ=no 17366 fi 17367 ;; 17368 17369 cygwin* | mingw* | pw32*) 17370 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17371 # as there is no search path for DLLs. 17372 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17373 allow_undefined_flag_GCJ=unsupported 17374 always_export_symbols_GCJ=no 17375 enable_shared_with_static_runtimes_GCJ=yes 17376 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17377 17378 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17379 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17380 # If the export-symbols file already is a .def file (1st line 17381 # is EXPORTS), use it as is; otherwise, prepend... 17382 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17383 cp $export_symbols $output_objdir/$soname.def; 17384 else 17385 echo EXPORTS > $output_objdir/$soname.def; 17386 cat $export_symbols >> $output_objdir/$soname.def; 17387 fi~ 17388 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17389 else 17390 ld_shlibs_GCJ=no 17391 fi 17392 ;; 17393 17394 interix3*) 17395 hardcode_direct_GCJ=no 17396 hardcode_shlibpath_var_GCJ=no 17397 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17398 export_dynamic_flag_spec_GCJ='${wl}-E' 17399 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17400 # Instead, shared libraries are loaded at an image base (0x10000000 by 17401 # default) and relocated if they conflict, which is a slow very memory 17402 # consuming and fragmenting process. To avoid this, we pick a random, 17403 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17404 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17405 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' 17406 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' 17407 ;; 17408 17409 linux* | k*bsd*-gnu) 17410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17411 tmp_addflag= 17412 case $cc_basename,$host_cpu in 17413 pgcc*) # Portland Group C compiler 17414 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' 17415 tmp_addflag=' $pic_flag' 17416 ;; 17417 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17418 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' 17419 tmp_addflag=' $pic_flag -Mnomain' ;; 17420 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17421 tmp_addflag=' -i_dynamic' ;; 17422 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17423 tmp_addflag=' -i_dynamic -nofor_main' ;; 17424 ifc* | ifort*) # Intel Fortran compiler 17425 tmp_addflag=' -nofor_main' ;; 17426 esac 17427 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17428 17429 if test $supports_anon_versioning = yes; then 17430 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17431 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17432 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17433 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17434 fi 17435 link_all_deplibs_GCJ=no 17436 else 17437 ld_shlibs_GCJ=no 17438 fi 17439 ;; 17440 17441 netbsd* | netbsdelf*-gnu) 17442 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17443 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17444 wlarc= 17445 else 17446 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17447 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17448 fi 17449 ;; 17450 17451 solaris*) 17452 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17453 ld_shlibs_GCJ=no 17454 cat <<EOF 1>&2 17455 17456*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17457*** create shared libraries on Solaris systems. Therefore, libtool 17458*** is disabling shared libraries support. We urge you to upgrade GNU 17459*** binutils to release 2.9.1 or newer. Another option is to modify 17460*** your PATH or compiler configuration so that the native linker is 17461*** used, and then restart. 17462 17463EOF 17464 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17465 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17466 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17467 else 17468 ld_shlibs_GCJ=no 17469 fi 17470 ;; 17471 17472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17473 case `$LD -v 2>&1` in 17474 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17475 ld_shlibs_GCJ=no 17476 cat <<_LT_EOF 1>&2 17477 17478*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17479*** reliably create shared libraries on SCO systems. Therefore, libtool 17480*** is disabling shared libraries support. We urge you to upgrade GNU 17481*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17482*** your PATH or compiler configuration so that the native linker is 17483*** used, and then restart. 17484 17485_LT_EOF 17486 ;; 17487 *) 17488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17489 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17490 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17491 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17492 else 17493 ld_shlibs_GCJ=no 17494 fi 17495 ;; 17496 esac 17497 ;; 17498 17499 sunos4*) 17500 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17501 wlarc= 17502 hardcode_direct_GCJ=yes 17503 hardcode_shlibpath_var_GCJ=no 17504 ;; 17505 17506 *) 17507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17508 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17509 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17510 else 17511 ld_shlibs_GCJ=no 17512 fi 17513 ;; 17514 esac 17515 17516 if test "$ld_shlibs_GCJ" = no; then 17517 runpath_var= 17518 hardcode_libdir_flag_spec_GCJ= 17519 export_dynamic_flag_spec_GCJ= 17520 whole_archive_flag_spec_GCJ= 17521 fi 17522 else 17523 # PORTME fill in a description of your system's linker (not GNU ld) 17524 case $host_os in 17525 aix3*) 17526 allow_undefined_flag_GCJ=unsupported 17527 always_export_symbols_GCJ=yes 17528 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' 17529 # Note: this linker hardcodes the directories in LIBPATH if there 17530 # are no directories specified by -L. 17531 hardcode_minus_L_GCJ=yes 17532 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17533 # Neither direct hardcoding nor static linking is supported with a 17534 # broken collect2. 17535 hardcode_direct_GCJ=unsupported 17536 fi 17537 ;; 17538 17539 aix4* | aix5*) 17540 if test "$host_cpu" = ia64; then 17541 # On IA64, the linker does run time linking by default, so we don't 17542 # have to do anything special. 17543 aix_use_runtimelinking=no 17544 exp_sym_flag='-Bexport' 17545 no_entry_flag="" 17546 else 17547 # If we're using GNU nm, then we don't want the "-C" option. 17548 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17549 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17550 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' 17551 else 17552 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' 17553 fi 17554 aix_use_runtimelinking=no 17555 17556 # Test if we are trying to use run time linking or normal 17557 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17558 # need to do runtime linking. 17559 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17560 for ld_flag in $LDFLAGS; do 17561 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17562 aix_use_runtimelinking=yes 17563 break 17564 fi 17565 done 17566 ;; 17567 esac 17568 17569 exp_sym_flag='-bexport' 17570 no_entry_flag='-bnoentry' 17571 fi 17572 17573 # When large executables or shared objects are built, AIX ld can 17574 # have problems creating the table of contents. If linking a library 17575 # or program results in "error TOC overflow" add -mminimal-toc to 17576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17578 17579 archive_cmds_GCJ='' 17580 hardcode_direct_GCJ=yes 17581 hardcode_libdir_separator_GCJ=':' 17582 link_all_deplibs_GCJ=yes 17583 17584 if test "$GCC" = yes; then 17585 case $host_os in aix4.[012]|aix4.[012].*) 17586 # We only want to do this on AIX 4.2 and lower, the check 17587 # below for broken collect2 doesn't work under 4.3+ 17588 collect2name=`${CC} -print-prog-name=collect2` 17589 if test -f "$collect2name" && \ 17590 strings "$collect2name" | grep resolve_lib_name >/dev/null 17591 then 17592 # We have reworked collect2 17593 hardcode_direct_GCJ=yes 17594 else 17595 # We have old collect2 17596 hardcode_direct_GCJ=unsupported 17597 # It fails to find uninstalled libraries when the uninstalled 17598 # path is not listed in the libpath. Setting hardcode_minus_L 17599 # to unsupported forces relinking 17600 hardcode_minus_L_GCJ=yes 17601 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17602 hardcode_libdir_separator_GCJ= 17603 fi 17604 ;; 17605 esac 17606 shared_flag='-shared' 17607 if test "$aix_use_runtimelinking" = yes; then 17608 shared_flag="$shared_flag "'${wl}-G' 17609 fi 17610 else 17611 # not using gcc 17612 if test "$host_cpu" = ia64; then 17613 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17614 # chokes on -Wl,-G. The following line is correct: 17615 shared_flag='-G' 17616 else 17617 if test "$aix_use_runtimelinking" = yes; then 17618 shared_flag='${wl}-G' 17619 else 17620 shared_flag='${wl}-bM:SRE' 17621 fi 17622 fi 17623 fi 17624 17625 # It seems that -bexpall does not export symbols beginning with 17626 # underscore (_), so it is better to generate a list of symbols to export. 17627 always_export_symbols_GCJ=yes 17628 if test "$aix_use_runtimelinking" = yes; then 17629 # Warning - without using the other runtime loading flags (-brtl), 17630 # -berok will link without error, but may produce a broken library. 17631 allow_undefined_flag_GCJ='-berok' 17632 # Determine the default libpath from the value encoded in an empty executable. 17633 cat >conftest.$ac_ext <<_ACEOF 17634/* confdefs.h. */ 17635_ACEOF 17636cat confdefs.h >>conftest.$ac_ext 17637cat >>conftest.$ac_ext <<_ACEOF 17638/* end confdefs.h. */ 17639 17640int 17641main () 17642{ 17643 17644 ; 17645 return 0; 17646} 17647_ACEOF 17648rm -f conftest.$ac_objext conftest$ac_exeext 17649if { (ac_try="$ac_link" 17650case "(($ac_try" in 17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17652 *) ac_try_echo=$ac_try;; 17653esac 17654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17655 (eval "$ac_link") 2>conftest.er1 17656 ac_status=$? 17657 grep -v '^ *+' conftest.er1 >conftest.err 17658 rm -f conftest.er1 17659 cat conftest.err >&5 17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17661 (exit $ac_status); } && { 17662 test -z "$ac_cxx_werror_flag" || 17663 test ! -s conftest.err 17664 } && test -s conftest$ac_exeext && 17665 $as_test_x conftest$ac_exeext; then 17666 17667aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17668}'` 17669# Check for a 64-bit object if we didn't find anything. 17670if 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; } 17671}'`; fi 17672else 17673 echo "$as_me: failed program was:" >&5 17674sed 's/^/| /' conftest.$ac_ext >&5 17675 17676 17677fi 17678 17679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17680 conftest$ac_exeext conftest.$ac_ext 17681if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17682 17683 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17684 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" 17685 else 17686 if test "$host_cpu" = ia64; then 17687 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17688 allow_undefined_flag_GCJ="-z nodefs" 17689 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" 17690 else 17691 # Determine the default libpath from the value encoded in an empty executable. 17692 cat >conftest.$ac_ext <<_ACEOF 17693/* confdefs.h. */ 17694_ACEOF 17695cat confdefs.h >>conftest.$ac_ext 17696cat >>conftest.$ac_ext <<_ACEOF 17697/* end confdefs.h. */ 17698 17699int 17700main () 17701{ 17702 17703 ; 17704 return 0; 17705} 17706_ACEOF 17707rm -f conftest.$ac_objext conftest$ac_exeext 17708if { (ac_try="$ac_link" 17709case "(($ac_try" in 17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17711 *) ac_try_echo=$ac_try;; 17712esac 17713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17714 (eval "$ac_link") 2>conftest.er1 17715 ac_status=$? 17716 grep -v '^ *+' conftest.er1 >conftest.err 17717 rm -f conftest.er1 17718 cat conftest.err >&5 17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17720 (exit $ac_status); } && { 17721 test -z "$ac_cxx_werror_flag" || 17722 test ! -s conftest.err 17723 } && test -s conftest$ac_exeext && 17724 $as_test_x conftest$ac_exeext; then 17725 17726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17727}'` 17728# Check for a 64-bit object if we didn't find anything. 17729if 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; } 17730}'`; fi 17731else 17732 echo "$as_me: failed program was:" >&5 17733sed 's/^/| /' conftest.$ac_ext >&5 17734 17735 17736fi 17737 17738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17739 conftest$ac_exeext conftest.$ac_ext 17740if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17741 17742 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17743 # Warning - without using the other run time loading flags, 17744 # -berok will link without error, but may produce a broken library. 17745 no_undefined_flag_GCJ=' ${wl}-bernotok' 17746 allow_undefined_flag_GCJ=' ${wl}-berok' 17747 # Exported symbols can be pulled into shared objects from archives 17748 whole_archive_flag_spec_GCJ='$convenience' 17749 archive_cmds_need_lc_GCJ=yes 17750 # This is similar to how AIX traditionally builds its shared libraries. 17751 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' 17752 fi 17753 fi 17754 ;; 17755 17756 amigaos*) 17757 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)' 17758 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17759 hardcode_minus_L_GCJ=yes 17760 # see comment about different semantics on the GNU ld section 17761 ld_shlibs_GCJ=no 17762 ;; 17763 17764 bsdi[45]*) 17765 export_dynamic_flag_spec_GCJ=-rdynamic 17766 ;; 17767 17768 cygwin* | mingw* | pw32*) 17769 # When not using gcc, we currently assume that we are using 17770 # Microsoft Visual C++. 17771 # hardcode_libdir_flag_spec is actually meaningless, as there is 17772 # no search path for DLLs. 17773 hardcode_libdir_flag_spec_GCJ=' ' 17774 allow_undefined_flag_GCJ=unsupported 17775 # Tell ltmain to make .lib files, not .a files. 17776 libext=lib 17777 # Tell ltmain to make .dll files, not .so files. 17778 shrext_cmds=".dll" 17779 # FIXME: Setting linknames here is a bad hack. 17780 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17781 # The linker will automatically build a .lib file if we build a DLL. 17782 old_archive_From_new_cmds_GCJ='true' 17783 # FIXME: Should let the user specify the lib program. 17784 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17785 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17786 enable_shared_with_static_runtimes_GCJ=yes 17787 ;; 17788 17789 darwin* | rhapsody*) 17790 case $host_os in 17791 rhapsody* | darwin1.[012]) 17792 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17793 ;; 17794 *) # Darwin 1.3 on 17795 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17796 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17797 else 17798 case ${MACOSX_DEPLOYMENT_TARGET} in 17799 10.[012]) 17800 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17801 ;; 17802 10.*) 17803 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17804 ;; 17805 esac 17806 fi 17807 ;; 17808 esac 17809 archive_cmds_need_lc_GCJ=no 17810 hardcode_direct_GCJ=no 17811 hardcode_automatic_GCJ=yes 17812 hardcode_shlibpath_var_GCJ=unsupported 17813 whole_archive_flag_spec_GCJ='' 17814 link_all_deplibs_GCJ=yes 17815 if test "$GCC" = yes ; then 17816 output_verbose_link_cmd='echo' 17817 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17818 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17820 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}' 17821 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}' 17822 else 17823 case $cc_basename in 17824 xlc*) 17825 output_verbose_link_cmd='echo' 17826 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17827 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17829 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}' 17830 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}' 17831 ;; 17832 *) 17833 ld_shlibs_GCJ=no 17834 ;; 17835 esac 17836 fi 17837 ;; 17838 17839 dgux*) 17840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17841 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17842 hardcode_shlibpath_var_GCJ=no 17843 ;; 17844 17845 freebsd1*) 17846 ld_shlibs_GCJ=no 17847 ;; 17848 17849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17850 # support. Future versions do this automatically, but an explicit c++rt0.o 17851 # does not break anything, and helps significantly (at the cost of a little 17852 # extra space). 17853 freebsd2.2*) 17854 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17855 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17856 hardcode_direct_GCJ=yes 17857 hardcode_shlibpath_var_GCJ=no 17858 ;; 17859 17860 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17861 freebsd2*) 17862 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17863 hardcode_direct_GCJ=yes 17864 hardcode_minus_L_GCJ=yes 17865 hardcode_shlibpath_var_GCJ=no 17866 ;; 17867 17868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17869 freebsd* | dragonfly*) 17870 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17871 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17872 hardcode_direct_GCJ=yes 17873 hardcode_shlibpath_var_GCJ=no 17874 ;; 17875 17876 hpux9*) 17877 if test "$GCC" = yes; then 17878 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' 17879 else 17880 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' 17881 fi 17882 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17883 hardcode_libdir_separator_GCJ=: 17884 hardcode_direct_GCJ=yes 17885 17886 # hardcode_minus_L: Not really in the search PATH, 17887 # but as the default location of the library. 17888 hardcode_minus_L_GCJ=yes 17889 export_dynamic_flag_spec_GCJ='${wl}-E' 17890 ;; 17891 17892 hpux10*) 17893 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17894 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17895 else 17896 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17897 fi 17898 if test "$with_gnu_ld" = no; then 17899 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17900 hardcode_libdir_separator_GCJ=: 17901 17902 hardcode_direct_GCJ=yes 17903 export_dynamic_flag_spec_GCJ='${wl}-E' 17904 17905 # hardcode_minus_L: Not really in the search PATH, 17906 # but as the default location of the library. 17907 hardcode_minus_L_GCJ=yes 17908 fi 17909 ;; 17910 17911 hpux11*) 17912 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17913 case $host_cpu in 17914 hppa*64*) 17915 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17916 ;; 17917 ia64*) 17918 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17919 ;; 17920 *) 17921 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17922 ;; 17923 esac 17924 else 17925 case $host_cpu in 17926 hppa*64*) 17927 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17928 ;; 17929 ia64*) 17930 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17931 ;; 17932 *) 17933 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17934 ;; 17935 esac 17936 fi 17937 if test "$with_gnu_ld" = no; then 17938 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17939 hardcode_libdir_separator_GCJ=: 17940 17941 case $host_cpu in 17942 hppa*64*|ia64*) 17943 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17944 hardcode_direct_GCJ=no 17945 hardcode_shlibpath_var_GCJ=no 17946 ;; 17947 *) 17948 hardcode_direct_GCJ=yes 17949 export_dynamic_flag_spec_GCJ='${wl}-E' 17950 17951 # hardcode_minus_L: Not really in the search PATH, 17952 # but as the default location of the library. 17953 hardcode_minus_L_GCJ=yes 17954 ;; 17955 esac 17956 fi 17957 ;; 17958 17959 irix5* | irix6* | nonstopux*) 17960 if test "$GCC" = yes; then 17961 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' 17962 else 17963 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' 17964 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17965 fi 17966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17967 hardcode_libdir_separator_GCJ=: 17968 link_all_deplibs_GCJ=yes 17969 ;; 17970 17971 netbsd* | netbsdelf*-gnu) 17972 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17973 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17974 else 17975 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17976 fi 17977 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17978 hardcode_direct_GCJ=yes 17979 hardcode_shlibpath_var_GCJ=no 17980 ;; 17981 17982 newsos6) 17983 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17984 hardcode_direct_GCJ=yes 17985 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17986 hardcode_libdir_separator_GCJ=: 17987 hardcode_shlibpath_var_GCJ=no 17988 ;; 17989 17990 openbsd*) 17991 hardcode_direct_GCJ=yes 17992 hardcode_shlibpath_var_GCJ=no 17993 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17994 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17995 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17996 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17997 export_dynamic_flag_spec_GCJ='${wl}-E' 17998 else 17999 case $host_os in 18000 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18001 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18002 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18003 ;; 18004 *) 18005 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18007 ;; 18008 esac 18009 fi 18010 ;; 18011 18012 os2*) 18013 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18014 hardcode_minus_L_GCJ=yes 18015 allow_undefined_flag_GCJ=unsupported 18016 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' 18017 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18018 ;; 18019 18020 osf3*) 18021 if test "$GCC" = yes; then 18022 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18023 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' 18024 else 18025 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18026 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' 18027 fi 18028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18029 hardcode_libdir_separator_GCJ=: 18030 ;; 18031 18032 osf4* | osf5*) # as osf3* with the addition of -msym flag 18033 if test "$GCC" = yes; then 18034 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18035 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' 18036 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18037 else 18038 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18039 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' 18040 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~ 18041 $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' 18042 18043 # Both c and cxx compiler support -rpath directly 18044 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18045 fi 18046 hardcode_libdir_separator_GCJ=: 18047 ;; 18048 18049 solaris*) 18050 no_undefined_flag_GCJ=' -z text' 18051 if test "$GCC" = yes; then 18052 wlarc='${wl}' 18053 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18054 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18055 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18056 else 18057 wlarc='' 18058 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18059 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18060 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18061 fi 18062 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18063 hardcode_shlibpath_var_GCJ=no 18064 case $host_os in 18065 solaris2.[0-5] | solaris2.[0-5].*) ;; 18066 *) 18067 # The compiler driver will combine linker options so we 18068 # cannot just pass the convience library names through 18069 # without $wl, iff we do not link with $LD. 18070 # Luckily, gcc supports the same syntax we need for Sun Studio. 18071 # Supported since Solaris 2.6 (maybe 2.5.1?) 18072 case $wlarc in 18073 '') 18074 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18075 *) 18076 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' ;; 18077 esac ;; 18078 esac 18079 link_all_deplibs_GCJ=yes 18080 ;; 18081 18082 sunos4*) 18083 if test "x$host_vendor" = xsequent; then 18084 # Use $CC to link under sequent, because it throws in some extra .o 18085 # files that make .init and .fini sections work. 18086 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18087 else 18088 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18089 fi 18090 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18091 hardcode_direct_GCJ=yes 18092 hardcode_minus_L_GCJ=yes 18093 hardcode_shlibpath_var_GCJ=no 18094 ;; 18095 18096 sysv4) 18097 case $host_vendor in 18098 sni) 18099 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18100 hardcode_direct_GCJ=yes # is this really true??? 18101 ;; 18102 siemens) 18103 ## LD is ld it makes a PLAMLIB 18104 ## CC just makes a GrossModule. 18105 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18106 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18107 hardcode_direct_GCJ=no 18108 ;; 18109 motorola) 18110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18111 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18112 ;; 18113 esac 18114 runpath_var='LD_RUN_PATH' 18115 hardcode_shlibpath_var_GCJ=no 18116 ;; 18117 18118 sysv4.3*) 18119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18120 hardcode_shlibpath_var_GCJ=no 18121 export_dynamic_flag_spec_GCJ='-Bexport' 18122 ;; 18123 18124 sysv4*MP*) 18125 if test -d /usr/nec; then 18126 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18127 hardcode_shlibpath_var_GCJ=no 18128 runpath_var=LD_RUN_PATH 18129 hardcode_runpath_var=yes 18130 ld_shlibs_GCJ=yes 18131 fi 18132 ;; 18133 18134 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18135 no_undefined_flag_GCJ='${wl}-z,text' 18136 archive_cmds_need_lc_GCJ=no 18137 hardcode_shlibpath_var_GCJ=no 18138 runpath_var='LD_RUN_PATH' 18139 18140 if test "$GCC" = yes; then 18141 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18142 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18143 else 18144 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18145 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18146 fi 18147 ;; 18148 18149 sysv5* | sco3.2v5* | sco5v6*) 18150 # Note: We can NOT use -z defs as we might desire, because we do not 18151 # link with -lc, and that would cause any symbols used from libc to 18152 # always be unresolved, which means just about no library would 18153 # ever link correctly. If we're not using GNU ld we use -z text 18154 # though, which does catch some bad symbols but isn't as heavy-handed 18155 # as -z defs. 18156 no_undefined_flag_GCJ='${wl}-z,text' 18157 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18158 archive_cmds_need_lc_GCJ=no 18159 hardcode_shlibpath_var_GCJ=no 18160 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18161 hardcode_libdir_separator_GCJ=':' 18162 link_all_deplibs_GCJ=yes 18163 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18164 runpath_var='LD_RUN_PATH' 18165 18166 if test "$GCC" = yes; then 18167 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18168 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18169 else 18170 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18171 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18172 fi 18173 ;; 18174 18175 uts4*) 18176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18177 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18178 hardcode_shlibpath_var_GCJ=no 18179 ;; 18180 18181 *) 18182 ld_shlibs_GCJ=no 18183 ;; 18184 esac 18185 fi 18186 18187{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18188echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18189test "$ld_shlibs_GCJ" = no && can_build_shared=no 18190 18191# 18192# Do we need to explicitly link libc? 18193# 18194case "x$archive_cmds_need_lc_GCJ" in 18195x|xyes) 18196 # Assume -lc should be added 18197 archive_cmds_need_lc_GCJ=yes 18198 18199 if test "$enable_shared" = yes && test "$GCC" = yes; then 18200 case $archive_cmds_GCJ in 18201 *'~'*) 18202 # FIXME: we may have to deal with multi-command sequences. 18203 ;; 18204 '$CC '*) 18205 # Test whether the compiler implicitly links with -lc since on some 18206 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18207 # to ld, don't add -lc before -lgcc. 18208 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18209echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18210 $rm conftest* 18211 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18212 18213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18214 (eval $ac_compile) 2>&5 18215 ac_status=$? 18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18217 (exit $ac_status); } 2>conftest.err; then 18218 soname=conftest 18219 lib=conftest 18220 libobjs=conftest.$ac_objext 18221 deplibs= 18222 wl=$lt_prog_compiler_wl_GCJ 18223 pic_flag=$lt_prog_compiler_pic_GCJ 18224 compiler_flags=-v 18225 linker_flags=-v 18226 verstring= 18227 output_objdir=. 18228 libname=conftest 18229 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18230 allow_undefined_flag_GCJ= 18231 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18232 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18233 ac_status=$? 18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18235 (exit $ac_status); } 18236 then 18237 archive_cmds_need_lc_GCJ=no 18238 else 18239 archive_cmds_need_lc_GCJ=yes 18240 fi 18241 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18242 else 18243 cat conftest.err 1>&5 18244 fi 18245 $rm conftest* 18246 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18247echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18248 ;; 18249 esac 18250 fi 18251 ;; 18252esac 18253 18254{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18255echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18256library_names_spec= 18257libname_spec='lib$name' 18258soname_spec= 18259shrext_cmds=".so" 18260postinstall_cmds= 18261postuninstall_cmds= 18262finish_cmds= 18263finish_eval= 18264shlibpath_var= 18265shlibpath_overrides_runpath=unknown 18266version_type=none 18267dynamic_linker="$host_os ld.so" 18268sys_lib_dlsearch_path_spec="/lib /usr/lib" 18269if test "$GCC" = yes; then 18270 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18271 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18272 # if the path contains ";" then we assume it to be the separator 18273 # otherwise default to the standard path separator (i.e. ":") - it is 18274 # assumed that no part of a normal pathname contains ";" but that should 18275 # okay in the real world where ";" in dirpaths is itself problematic. 18276 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18277 else 18278 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18279 fi 18280else 18281 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18282fi 18283need_lib_prefix=unknown 18284hardcode_into_libs=no 18285 18286# when you set need_version to no, make sure it does not cause -set_version 18287# flags to be left without arguments 18288need_version=unknown 18289 18290case $host_os in 18291aix3*) 18292 version_type=linux 18293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18294 shlibpath_var=LIBPATH 18295 18296 # AIX 3 has no versioning support, so we append a major version to the name. 18297 soname_spec='${libname}${release}${shared_ext}$major' 18298 ;; 18299 18300aix4* | aix5*) 18301 version_type=linux 18302 need_lib_prefix=no 18303 need_version=no 18304 hardcode_into_libs=yes 18305 if test "$host_cpu" = ia64; then 18306 # AIX 5 supports IA64 18307 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18308 shlibpath_var=LD_LIBRARY_PATH 18309 else 18310 # With GCC up to 2.95.x, collect2 would create an import file 18311 # for dependence libraries. The import file would start with 18312 # the line `#! .'. This would cause the generated library to 18313 # depend on `.', always an invalid library. This was fixed in 18314 # development snapshots of GCC prior to 3.0. 18315 case $host_os in 18316 aix4 | aix4.[01] | aix4.[01].*) 18317 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18318 echo ' yes ' 18319 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18320 : 18321 else 18322 can_build_shared=no 18323 fi 18324 ;; 18325 esac 18326 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18327 # soname into executable. Probably we can add versioning support to 18328 # collect2, so additional links can be useful in future. 18329 if test "$aix_use_runtimelinking" = yes; then 18330 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18331 # instead of lib<name>.a to let people know that these are not 18332 # typical AIX shared libraries. 18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18334 else 18335 # We preserve .a as extension for shared libraries through AIX4.2 18336 # and later when we are not doing run time linking. 18337 library_names_spec='${libname}${release}.a $libname.a' 18338 soname_spec='${libname}${release}${shared_ext}$major' 18339 fi 18340 shlibpath_var=LIBPATH 18341 fi 18342 ;; 18343 18344amigaos*) 18345 library_names_spec='$libname.ixlibrary $libname.a' 18346 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18347 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' 18348 ;; 18349 18350beos*) 18351 library_names_spec='${libname}${shared_ext}' 18352 dynamic_linker="$host_os ld.so" 18353 shlibpath_var=LIBRARY_PATH 18354 ;; 18355 18356bsdi[45]*) 18357 version_type=linux 18358 need_version=no 18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18360 soname_spec='${libname}${release}${shared_ext}$major' 18361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18362 shlibpath_var=LD_LIBRARY_PATH 18363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18365 # the default ld.so.conf also contains /usr/contrib/lib and 18366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18367 # libtool to hard-code these into programs 18368 ;; 18369 18370cygwin* | mingw* | pw32*) 18371 version_type=windows 18372 shrext_cmds=".dll" 18373 need_version=no 18374 need_lib_prefix=no 18375 18376 case $GCC,$host_os in 18377 yes,cygwin* | yes,mingw* | yes,pw32*) 18378 library_names_spec='$libname.dll.a' 18379 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18380 postinstall_cmds='base_file=`basename \${file}`~ 18381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18382 dldir=$destdir/`dirname \$dlpath`~ 18383 test -d \$dldir || mkdir -p \$dldir~ 18384 $install_prog $dir/$dlname \$dldir/$dlname~ 18385 chmod a+x \$dldir/$dlname' 18386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18387 dlpath=$dir/\$dldll~ 18388 $rm \$dlpath' 18389 shlibpath_overrides_runpath=yes 18390 18391 case $host_os in 18392 cygwin*) 18393 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18394 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18395 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18396 ;; 18397 mingw*) 18398 # MinGW DLLs use traditional 'lib' prefix 18399 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18400 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18401 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18402 # It is most probably a Windows format PATH printed by 18403 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18404 # path with ; separators, and with drive letters. We can handle the 18405 # drive letters (cygwin fileutils understands them), so leave them, 18406 # especially as we might pass files found there to a mingw objdump, 18407 # which wouldn't understand a cygwinified path. Ahh. 18408 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18409 else 18410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18411 fi 18412 ;; 18413 pw32*) 18414 # pw32 DLLs use 'pw' prefix rather than 'lib' 18415 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18416 ;; 18417 esac 18418 ;; 18419 18420 *) 18421 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18422 ;; 18423 esac 18424 dynamic_linker='Win32 ld.exe' 18425 # FIXME: first we should search . and the directory the executable is in 18426 shlibpath_var=PATH 18427 ;; 18428 18429darwin* | rhapsody*) 18430 dynamic_linker="$host_os dyld" 18431 version_type=darwin 18432 need_lib_prefix=no 18433 need_version=no 18434 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18435 soname_spec='${libname}${release}${major}$shared_ext' 18436 shlibpath_overrides_runpath=yes 18437 shlibpath_var=DYLD_LIBRARY_PATH 18438 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18439 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18440 if test "$GCC" = yes; then 18441 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"` 18442 else 18443 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18444 fi 18445 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18446 ;; 18447 18448dgux*) 18449 version_type=linux 18450 need_lib_prefix=no 18451 need_version=no 18452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18453 soname_spec='${libname}${release}${shared_ext}$major' 18454 shlibpath_var=LD_LIBRARY_PATH 18455 ;; 18456 18457freebsd1*) 18458 dynamic_linker=no 18459 ;; 18460 18461freebsd* | dragonfly*) 18462 # DragonFly does not have aout. When/if they implement a new 18463 # versioning mechanism, adjust this. 18464 if test -x /usr/bin/objformat; then 18465 objformat=`/usr/bin/objformat` 18466 else 18467 case $host_os in 18468 freebsd[123]*) objformat=aout ;; 18469 *) objformat=elf ;; 18470 esac 18471 fi 18472 version_type=freebsd-$objformat 18473 case $version_type in 18474 freebsd-elf*) 18475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18476 need_version=no 18477 need_lib_prefix=no 18478 ;; 18479 freebsd-*) 18480 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18481 need_version=yes 18482 ;; 18483 esac 18484 shlibpath_var=LD_LIBRARY_PATH 18485 case $host_os in 18486 freebsd2*) 18487 shlibpath_overrides_runpath=yes 18488 ;; 18489 freebsd3.[01]* | freebsdelf3.[01]*) 18490 shlibpath_overrides_runpath=yes 18491 hardcode_into_libs=yes 18492 ;; 18493 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18494 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18495 shlibpath_overrides_runpath=no 18496 hardcode_into_libs=yes 18497 ;; 18498 freebsd*) # from 4.6 on 18499 shlibpath_overrides_runpath=yes 18500 hardcode_into_libs=yes 18501 ;; 18502 esac 18503 ;; 18504 18505gnu*) 18506 version_type=linux 18507 need_lib_prefix=no 18508 need_version=no 18509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18510 soname_spec='${libname}${release}${shared_ext}$major' 18511 shlibpath_var=LD_LIBRARY_PATH 18512 hardcode_into_libs=yes 18513 ;; 18514 18515hpux9* | hpux10* | hpux11*) 18516 # Give a soname corresponding to the major version so that dld.sl refuses to 18517 # link against other versions. 18518 version_type=sunos 18519 need_lib_prefix=no 18520 need_version=no 18521 case $host_cpu in 18522 ia64*) 18523 shrext_cmds='.so' 18524 hardcode_into_libs=yes 18525 dynamic_linker="$host_os dld.so" 18526 shlibpath_var=LD_LIBRARY_PATH 18527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18529 soname_spec='${libname}${release}${shared_ext}$major' 18530 if test "X$HPUX_IA64_MODE" = X32; then 18531 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18532 else 18533 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18534 fi 18535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18536 ;; 18537 hppa*64*) 18538 shrext_cmds='.sl' 18539 hardcode_into_libs=yes 18540 dynamic_linker="$host_os dld.sl" 18541 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18544 soname_spec='${libname}${release}${shared_ext}$major' 18545 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18547 ;; 18548 *) 18549 shrext_cmds='.sl' 18550 dynamic_linker="$host_os dld.sl" 18551 shlibpath_var=SHLIB_PATH 18552 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18554 soname_spec='${libname}${release}${shared_ext}$major' 18555 ;; 18556 esac 18557 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18558 postinstall_cmds='chmod 555 $lib' 18559 ;; 18560 18561interix3*) 18562 version_type=linux 18563 need_lib_prefix=no 18564 need_version=no 18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18566 soname_spec='${libname}${release}${shared_ext}$major' 18567 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18568 shlibpath_var=LD_LIBRARY_PATH 18569 shlibpath_overrides_runpath=no 18570 hardcode_into_libs=yes 18571 ;; 18572 18573irix5* | irix6* | nonstopux*) 18574 case $host_os in 18575 nonstopux*) version_type=nonstopux ;; 18576 *) 18577 if test "$lt_cv_prog_gnu_ld" = yes; then 18578 version_type=linux 18579 else 18580 version_type=irix 18581 fi ;; 18582 esac 18583 need_lib_prefix=no 18584 need_version=no 18585 soname_spec='${libname}${release}${shared_ext}$major' 18586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18587 case $host_os in 18588 irix5* | nonstopux*) 18589 libsuff= shlibsuff= 18590 ;; 18591 *) 18592 case $LD in # libtool.m4 will add one of these switches to LD 18593 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18594 libsuff= shlibsuff= libmagic=32-bit;; 18595 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18596 libsuff=32 shlibsuff=N32 libmagic=N32;; 18597 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18598 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18599 *) libsuff= shlibsuff= libmagic=never-match;; 18600 esac 18601 ;; 18602 esac 18603 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18604 shlibpath_overrides_runpath=no 18605 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18606 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18607 hardcode_into_libs=yes 18608 ;; 18609 18610# No shared lib support for Linux oldld, aout, or coff. 18611linux*oldld* | linux*aout* | linux*coff*) 18612 dynamic_linker=no 18613 ;; 18614 18615# This must be Linux ELF. 18616linux* | k*bsd*-gnu) 18617 version_type=linux 18618 need_lib_prefix=no 18619 need_version=no 18620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18621 soname_spec='${libname}${release}${shared_ext}$major' 18622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18623 shlibpath_var=LD_LIBRARY_PATH 18624 shlibpath_overrides_runpath=no 18625 # This implies no fast_install, which is unacceptable. 18626 # Some rework will be needed to allow for fast_install 18627 # before this can be enabled. 18628 hardcode_into_libs=yes 18629 18630 # Append ld.so.conf contents to the search path 18631 if test -f /etc/ld.so.conf; then 18632 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' ' '` 18633 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18634 fi 18635 18636 # We used to test for /lib/ld.so.1 and disable shared libraries on 18637 # powerpc, because MkLinux only supported shared libraries with the 18638 # GNU dynamic linker. Since this was broken with cross compilers, 18639 # most powerpc-linux boxes support dynamic linking these days and 18640 # people can always --disable-shared, the test was removed, and we 18641 # assume the GNU/Linux dynamic linker is in use. 18642 dynamic_linker='GNU/Linux ld.so' 18643 ;; 18644 18645netbsdelf*-gnu) 18646 version_type=linux 18647 need_lib_prefix=no 18648 need_version=no 18649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18650 soname_spec='${libname}${release}${shared_ext}$major' 18651 shlibpath_var=LD_LIBRARY_PATH 18652 shlibpath_overrides_runpath=no 18653 hardcode_into_libs=yes 18654 dynamic_linker='NetBSD ld.elf_so' 18655 ;; 18656 18657netbsd*) 18658 version_type=sunos 18659 need_lib_prefix=no 18660 need_version=no 18661 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18664 dynamic_linker='NetBSD (a.out) ld.so' 18665 else 18666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18667 soname_spec='${libname}${release}${shared_ext}$major' 18668 dynamic_linker='NetBSD ld.elf_so' 18669 fi 18670 shlibpath_var=LD_LIBRARY_PATH 18671 shlibpath_overrides_runpath=yes 18672 hardcode_into_libs=yes 18673 ;; 18674 18675newsos6) 18676 version_type=linux 18677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18678 shlibpath_var=LD_LIBRARY_PATH 18679 shlibpath_overrides_runpath=yes 18680 ;; 18681 18682nto-qnx*) 18683 version_type=linux 18684 need_lib_prefix=no 18685 need_version=no 18686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18687 soname_spec='${libname}${release}${shared_ext}$major' 18688 shlibpath_var=LD_LIBRARY_PATH 18689 shlibpath_overrides_runpath=yes 18690 ;; 18691 18692openbsd*) 18693 version_type=sunos 18694 sys_lib_dlsearch_path_spec="/usr/lib" 18695 need_lib_prefix=no 18696 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18697 case $host_os in 18698 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18699 *) need_version=no ;; 18700 esac 18701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18703 shlibpath_var=LD_LIBRARY_PATH 18704 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18705 case $host_os in 18706 openbsd2.[89] | openbsd2.[89].*) 18707 shlibpath_overrides_runpath=no 18708 ;; 18709 *) 18710 shlibpath_overrides_runpath=yes 18711 ;; 18712 esac 18713 else 18714 shlibpath_overrides_runpath=yes 18715 fi 18716 ;; 18717 18718os2*) 18719 libname_spec='$name' 18720 shrext_cmds=".dll" 18721 need_lib_prefix=no 18722 library_names_spec='$libname${shared_ext} $libname.a' 18723 dynamic_linker='OS/2 ld.exe' 18724 shlibpath_var=LIBPATH 18725 ;; 18726 18727osf3* | osf4* | osf5*) 18728 version_type=osf 18729 need_lib_prefix=no 18730 need_version=no 18731 soname_spec='${libname}${release}${shared_ext}$major' 18732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18733 shlibpath_var=LD_LIBRARY_PATH 18734 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18735 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18736 ;; 18737 18738solaris*) 18739 version_type=linux 18740 need_lib_prefix=no 18741 need_version=no 18742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18743 soname_spec='${libname}${release}${shared_ext}$major' 18744 shlibpath_var=LD_LIBRARY_PATH 18745 shlibpath_overrides_runpath=yes 18746 hardcode_into_libs=yes 18747 # ldd complains unless libraries are executable 18748 postinstall_cmds='chmod +x $lib' 18749 ;; 18750 18751sunos4*) 18752 version_type=sunos 18753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18755 shlibpath_var=LD_LIBRARY_PATH 18756 shlibpath_overrides_runpath=yes 18757 if test "$with_gnu_ld" = yes; then 18758 need_lib_prefix=no 18759 fi 18760 need_version=yes 18761 ;; 18762 18763sysv4 | sysv4.3*) 18764 version_type=linux 18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18766 soname_spec='${libname}${release}${shared_ext}$major' 18767 shlibpath_var=LD_LIBRARY_PATH 18768 case $host_vendor in 18769 sni) 18770 shlibpath_overrides_runpath=no 18771 need_lib_prefix=no 18772 export_dynamic_flag_spec='${wl}-Blargedynsym' 18773 runpath_var=LD_RUN_PATH 18774 ;; 18775 siemens) 18776 need_lib_prefix=no 18777 ;; 18778 motorola) 18779 need_lib_prefix=no 18780 need_version=no 18781 shlibpath_overrides_runpath=no 18782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18783 ;; 18784 esac 18785 ;; 18786 18787sysv4*MP*) 18788 if test -d /usr/nec ;then 18789 version_type=linux 18790 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18791 soname_spec='$libname${shared_ext}.$major' 18792 shlibpath_var=LD_LIBRARY_PATH 18793 fi 18794 ;; 18795 18796sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18797 version_type=freebsd-elf 18798 need_lib_prefix=no 18799 need_version=no 18800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18801 soname_spec='${libname}${release}${shared_ext}$major' 18802 shlibpath_var=LD_LIBRARY_PATH 18803 hardcode_into_libs=yes 18804 if test "$with_gnu_ld" = yes; then 18805 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18806 shlibpath_overrides_runpath=no 18807 else 18808 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18809 shlibpath_overrides_runpath=yes 18810 case $host_os in 18811 sco3.2v5*) 18812 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18813 ;; 18814 esac 18815 fi 18816 sys_lib_dlsearch_path_spec='/usr/lib' 18817 ;; 18818 18819uts4*) 18820 version_type=linux 18821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18822 soname_spec='${libname}${release}${shared_ext}$major' 18823 shlibpath_var=LD_LIBRARY_PATH 18824 ;; 18825 18826*) 18827 dynamic_linker=no 18828 ;; 18829esac 18830{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18831echo "${ECHO_T}$dynamic_linker" >&6; } 18832test "$dynamic_linker" = no && can_build_shared=no 18833 18834variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18835if test "$GCC" = yes; then 18836 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18837fi 18838 18839{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18840echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18841hardcode_action_GCJ= 18842if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18843 test -n "$runpath_var_GCJ" || \ 18844 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18845 18846 # We can hardcode non-existant directories. 18847 if test "$hardcode_direct_GCJ" != no && 18848 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18849 # have to relink, otherwise we might link with an installed library 18850 # when we should be linking with a yet-to-be-installed one 18851 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18852 test "$hardcode_minus_L_GCJ" != no; then 18853 # Linking always hardcodes the temporary library directory. 18854 hardcode_action_GCJ=relink 18855 else 18856 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18857 hardcode_action_GCJ=immediate 18858 fi 18859else 18860 # We cannot hardcode anything, or else we can only hardcode existing 18861 # directories. 18862 hardcode_action_GCJ=unsupported 18863fi 18864{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18865echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18866 18867if test "$hardcode_action_GCJ" = relink; then 18868 # Fast installation is not supported 18869 enable_fast_install=no 18870elif test "$shlibpath_overrides_runpath" = yes || 18871 test "$enable_shared" = no; then 18872 # Fast installation is not necessary 18873 enable_fast_install=needless 18874fi 18875 18876 18877# The else clause should only fire when bootstrapping the 18878# libtool distribution, otherwise you forgot to ship ltmain.sh 18879# with your package, and you will get complaints that there are 18880# no rules to generate ltmain.sh. 18881if test -f "$ltmain"; then 18882 # See if we are running on zsh, and set the options which allow our commands through 18883 # without removal of \ escapes. 18884 if test -n "${ZSH_VERSION+set}" ; then 18885 setopt NO_GLOB_SUBST 18886 fi 18887 # Now quote all the things that may contain metacharacters while being 18888 # careful not to overquote the AC_SUBSTed values. We take copies of the 18889 # variables and quote the copies for generation of the libtool script. 18890 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18891 SED SHELL STRIP \ 18892 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18893 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18894 deplibs_check_method reload_flag reload_cmds need_locks \ 18895 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18896 lt_cv_sys_global_symbol_to_c_name_address \ 18897 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18898 old_postinstall_cmds old_postuninstall_cmds \ 18899 compiler_GCJ \ 18900 CC_GCJ \ 18901 LD_GCJ \ 18902 lt_prog_compiler_wl_GCJ \ 18903 lt_prog_compiler_pic_GCJ \ 18904 lt_prog_compiler_static_GCJ \ 18905 lt_prog_compiler_no_builtin_flag_GCJ \ 18906 export_dynamic_flag_spec_GCJ \ 18907 thread_safe_flag_spec_GCJ \ 18908 whole_archive_flag_spec_GCJ \ 18909 enable_shared_with_static_runtimes_GCJ \ 18910 old_archive_cmds_GCJ \ 18911 old_archive_from_new_cmds_GCJ \ 18912 predep_objects_GCJ \ 18913 postdep_objects_GCJ \ 18914 predeps_GCJ \ 18915 postdeps_GCJ \ 18916 compiler_lib_search_path_GCJ \ 18917 archive_cmds_GCJ \ 18918 archive_expsym_cmds_GCJ \ 18919 postinstall_cmds_GCJ \ 18920 postuninstall_cmds_GCJ \ 18921 old_archive_from_expsyms_cmds_GCJ \ 18922 allow_undefined_flag_GCJ \ 18923 no_undefined_flag_GCJ \ 18924 export_symbols_cmds_GCJ \ 18925 hardcode_libdir_flag_spec_GCJ \ 18926 hardcode_libdir_flag_spec_ld_GCJ \ 18927 hardcode_libdir_separator_GCJ \ 18928 hardcode_automatic_GCJ \ 18929 module_cmds_GCJ \ 18930 module_expsym_cmds_GCJ \ 18931 lt_cv_prog_compiler_c_o_GCJ \ 18932 exclude_expsyms_GCJ \ 18933 include_expsyms_GCJ; do 18934 18935 case $var in 18936 old_archive_cmds_GCJ | \ 18937 old_archive_from_new_cmds_GCJ | \ 18938 archive_cmds_GCJ | \ 18939 archive_expsym_cmds_GCJ | \ 18940 module_cmds_GCJ | \ 18941 module_expsym_cmds_GCJ | \ 18942 old_archive_from_expsyms_cmds_GCJ | \ 18943 export_symbols_cmds_GCJ | \ 18944 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18945 postinstall_cmds | postuninstall_cmds | \ 18946 old_postinstall_cmds | old_postuninstall_cmds | \ 18947 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18948 # Double-quote double-evaled strings. 18949 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18950 ;; 18951 *) 18952 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18953 ;; 18954 esac 18955 done 18956 18957 case $lt_echo in 18958 *'\$0 --fallback-echo"') 18959 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18960 ;; 18961 esac 18962 18963cfgfile="$ofile" 18964 18965 cat <<__EOF__ >> "$cfgfile" 18966# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18967 18968# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18969 18970# Shell to use when invoking shell scripts. 18971SHELL=$lt_SHELL 18972 18973# Whether or not to build shared libraries. 18974build_libtool_libs=$enable_shared 18975 18976# Whether or not to build static libraries. 18977build_old_libs=$enable_static 18978 18979# Whether or not to add -lc for building shared libraries. 18980build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18981 18982# Whether or not to disallow shared libs when runtime libs are static 18983allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18984 18985# Whether or not to optimize for fast installation. 18986fast_install=$enable_fast_install 18987 18988# The host system. 18989host_alias=$host_alias 18990host=$host 18991host_os=$host_os 18992 18993# The build system. 18994build_alias=$build_alias 18995build=$build 18996build_os=$build_os 18997 18998# An echo program that does not interpret backslashes. 18999echo=$lt_echo 19000 19001# The archiver. 19002AR=$lt_AR 19003AR_FLAGS=$lt_AR_FLAGS 19004 19005# A C compiler. 19006LTCC=$lt_LTCC 19007 19008# LTCC compiler flags. 19009LTCFLAGS=$lt_LTCFLAGS 19010 19011# A language-specific compiler. 19012CC=$lt_compiler_GCJ 19013 19014# Is the compiler the GNU C compiler? 19015with_gcc=$GCC_GCJ 19016 19017# An ERE matcher. 19018EGREP=$lt_EGREP 19019 19020# The linker used to build libraries. 19021LD=$lt_LD_GCJ 19022 19023# Whether we need hard or soft links. 19024LN_S=$lt_LN_S 19025 19026# A BSD-compatible nm program. 19027NM=$lt_NM 19028 19029# A symbol stripping program 19030STRIP=$lt_STRIP 19031 19032# Used to examine libraries when file_magic_cmd begins "file" 19033MAGIC_CMD=$MAGIC_CMD 19034 19035# Used on cygwin: DLL creation program. 19036DLLTOOL="$DLLTOOL" 19037 19038# Used on cygwin: object dumper. 19039OBJDUMP="$OBJDUMP" 19040 19041# Used on cygwin: assembler. 19042AS="$AS" 19043 19044# The name of the directory that contains temporary libtool files. 19045objdir=$objdir 19046 19047# How to create reloadable object files. 19048reload_flag=$lt_reload_flag 19049reload_cmds=$lt_reload_cmds 19050 19051# How to pass a linker flag through the compiler. 19052wl=$lt_lt_prog_compiler_wl_GCJ 19053 19054# Object file suffix (normally "o"). 19055objext="$ac_objext" 19056 19057# Old archive suffix (normally "a"). 19058libext="$libext" 19059 19060# Shared library suffix (normally ".so"). 19061shrext_cmds='$shrext_cmds' 19062 19063# Executable file suffix (normally ""). 19064exeext="$exeext" 19065 19066# Additional compiler flags for building library objects. 19067pic_flag=$lt_lt_prog_compiler_pic_GCJ 19068pic_mode=$pic_mode 19069 19070# What is the maximum length of a command? 19071max_cmd_len=$lt_cv_sys_max_cmd_len 19072 19073# Does compiler simultaneously support -c and -o options? 19074compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19075 19076# Must we lock files when doing compilation? 19077need_locks=$lt_need_locks 19078 19079# Do we need the lib prefix for modules? 19080need_lib_prefix=$need_lib_prefix 19081 19082# Do we need a version for libraries? 19083need_version=$need_version 19084 19085# Whether dlopen is supported. 19086dlopen_support=$enable_dlopen 19087 19088# Whether dlopen of programs is supported. 19089dlopen_self=$enable_dlopen_self 19090 19091# Whether dlopen of statically linked programs is supported. 19092dlopen_self_static=$enable_dlopen_self_static 19093 19094# Compiler flag to prevent dynamic linking. 19095link_static_flag=$lt_lt_prog_compiler_static_GCJ 19096 19097# Compiler flag to turn off builtin functions. 19098no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19099 19100# Compiler flag to allow reflexive dlopens. 19101export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19102 19103# Compiler flag to generate shared objects directly from archives. 19104whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19105 19106# Compiler flag to generate thread-safe objects. 19107thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19108 19109# Library versioning type. 19110version_type=$version_type 19111 19112# Format of library name prefix. 19113libname_spec=$lt_libname_spec 19114 19115# List of archive names. First name is the real one, the rest are links. 19116# The last name is the one that the linker finds with -lNAME. 19117library_names_spec=$lt_library_names_spec 19118 19119# The coded name of the library, if different from the real name. 19120soname_spec=$lt_soname_spec 19121 19122# Commands used to build and install an old-style archive. 19123RANLIB=$lt_RANLIB 19124old_archive_cmds=$lt_old_archive_cmds_GCJ 19125old_postinstall_cmds=$lt_old_postinstall_cmds 19126old_postuninstall_cmds=$lt_old_postuninstall_cmds 19127 19128# Create an old-style archive from a shared archive. 19129old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19130 19131# Create a temporary old-style archive to link instead of a shared archive. 19132old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19133 19134# Commands used to build and install a shared archive. 19135archive_cmds=$lt_archive_cmds_GCJ 19136archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19137postinstall_cmds=$lt_postinstall_cmds 19138postuninstall_cmds=$lt_postuninstall_cmds 19139 19140# Commands used to build a loadable module (assumed same as above if empty) 19141module_cmds=$lt_module_cmds_GCJ 19142module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19143 19144# Commands to strip libraries. 19145old_striplib=$lt_old_striplib 19146striplib=$lt_striplib 19147 19148# Dependencies to place before the objects being linked to create a 19149# shared library. 19150predep_objects=$lt_predep_objects_GCJ 19151 19152# Dependencies to place after the objects being linked to create a 19153# shared library. 19154postdep_objects=$lt_postdep_objects_GCJ 19155 19156# Dependencies to place before the objects being linked to create a 19157# shared library. 19158predeps=$lt_predeps_GCJ 19159 19160# Dependencies to place after the objects being linked to create a 19161# shared library. 19162postdeps=$lt_postdeps_GCJ 19163 19164# The library search path used internally by the compiler when linking 19165# a shared library. 19166compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19167 19168# Method to check whether dependent libraries are shared objects. 19169deplibs_check_method=$lt_deplibs_check_method 19170 19171# Command to use when deplibs_check_method == file_magic. 19172file_magic_cmd=$lt_file_magic_cmd 19173 19174# Flag that allows shared libraries with undefined symbols to be built. 19175allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19176 19177# Flag that forces no undefined symbols. 19178no_undefined_flag=$lt_no_undefined_flag_GCJ 19179 19180# Commands used to finish a libtool library installation in a directory. 19181finish_cmds=$lt_finish_cmds 19182 19183# Same as above, but a single script fragment to be evaled but not shown. 19184finish_eval=$lt_finish_eval 19185 19186# Take the output of nm and produce a listing of raw symbols and C names. 19187global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19188 19189# Transform the output of nm in a proper C declaration 19190global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19191 19192# Transform the output of nm in a C name address pair 19193global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19194 19195# This is the shared library runtime path variable. 19196runpath_var=$runpath_var 19197 19198# This is the shared library path variable. 19199shlibpath_var=$shlibpath_var 19200 19201# Is shlibpath searched before the hard-coded library search path? 19202shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19203 19204# How to hardcode a shared library path into an executable. 19205hardcode_action=$hardcode_action_GCJ 19206 19207# Whether we should hardcode library paths into libraries. 19208hardcode_into_libs=$hardcode_into_libs 19209 19210# Flag to hardcode \$libdir into a binary during linking. 19211# This must work even if \$libdir does not exist. 19212hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19213 19214# If ld is used when linking, flag to hardcode \$libdir into 19215# a binary during linking. This must work even if \$libdir does 19216# not exist. 19217hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19218 19219# Whether we need a single -rpath flag with a separated argument. 19220hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19221 19222# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19223# resulting binary. 19224hardcode_direct=$hardcode_direct_GCJ 19225 19226# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19227# resulting binary. 19228hardcode_minus_L=$hardcode_minus_L_GCJ 19229 19230# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19231# the resulting binary. 19232hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19233 19234# Set to yes if building a shared library automatically hardcodes DIR into the library 19235# and all subsequent libraries and executables linked against it. 19236hardcode_automatic=$hardcode_automatic_GCJ 19237 19238# Variables whose values should be saved in libtool wrapper scripts and 19239# restored at relink time. 19240variables_saved_for_relink="$variables_saved_for_relink" 19241 19242# Whether libtool must link a program against all its dependency libraries. 19243link_all_deplibs=$link_all_deplibs_GCJ 19244 19245# Compile-time system search path for libraries 19246sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19247 19248# Run-time system search path for libraries 19249sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19250 19251# Fix the shell variable \$srcfile for the compiler. 19252fix_srcfile_path="$fix_srcfile_path_GCJ" 19253 19254# Set to yes if exported symbols are required. 19255always_export_symbols=$always_export_symbols_GCJ 19256 19257# The commands to list exported symbols. 19258export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19259 19260# The commands to extract the exported symbol list from a shared archive. 19261extract_expsyms_cmds=$lt_extract_expsyms_cmds 19262 19263# Symbols that should not be listed in the preloaded symbols. 19264exclude_expsyms=$lt_exclude_expsyms_GCJ 19265 19266# Symbols that must always be exported. 19267include_expsyms=$lt_include_expsyms_GCJ 19268 19269# ### END LIBTOOL TAG CONFIG: $tagname 19270 19271__EOF__ 19272 19273 19274else 19275 # If there is no Makefile yet, we rely on a make rule to execute 19276 # `config.status --recheck' to rerun these tests and create the 19277 # libtool script then. 19278 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19279 if test -f "$ltmain_in"; then 19280 test -f Makefile && make "$ltmain" 19281 fi 19282fi 19283 19284 19285ac_ext=cpp 19286ac_cpp='$CXXCPP $CPPFLAGS' 19287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19290 19291CC="$lt_save_CC" 19292 19293 else 19294 tagname="" 19295 fi 19296 ;; 19297 19298 RC) 19299 19300 19301# Source file extension for RC test sources. 19302ac_ext=rc 19303 19304# Object file extension for compiled RC test sources. 19305objext=o 19306objext_RC=$objext 19307 19308# Code to be used in simple compile tests 19309lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19310 19311# Code to be used in simple link tests 19312lt_simple_link_test_code="$lt_simple_compile_test_code" 19313 19314# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19315 19316# If no C compiler was specified, use CC. 19317LTCC=${LTCC-"$CC"} 19318 19319# If no C compiler flags were specified, use CFLAGS. 19320LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19321 19322# Allow CC to be a program name with arguments. 19323compiler=$CC 19324 19325 19326# save warnings/boilerplate of simple test code 19327ac_outfile=conftest.$ac_objext 19328printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19329eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19330_lt_compiler_boilerplate=`cat conftest.err` 19331$rm conftest* 19332 19333ac_outfile=conftest.$ac_objext 19334printf "$lt_simple_link_test_code" >conftest.$ac_ext 19335eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19336_lt_linker_boilerplate=`cat conftest.err` 19337$rm conftest* 19338 19339 19340# Allow CC to be a program name with arguments. 19341lt_save_CC="$CC" 19342CC=${RC-"windres"} 19343compiler=$CC 19344compiler_RC=$CC 19345for cc_temp in $compiler""; do 19346 case $cc_temp in 19347 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19348 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19349 \-*) ;; 19350 *) break;; 19351 esac 19352done 19353cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19354 19355lt_cv_prog_compiler_c_o_RC=yes 19356 19357# The else clause should only fire when bootstrapping the 19358# libtool distribution, otherwise you forgot to ship ltmain.sh 19359# with your package, and you will get complaints that there are 19360# no rules to generate ltmain.sh. 19361if test -f "$ltmain"; then 19362 # See if we are running on zsh, and set the options which allow our commands through 19363 # without removal of \ escapes. 19364 if test -n "${ZSH_VERSION+set}" ; then 19365 setopt NO_GLOB_SUBST 19366 fi 19367 # Now quote all the things that may contain metacharacters while being 19368 # careful not to overquote the AC_SUBSTed values. We take copies of the 19369 # variables and quote the copies for generation of the libtool script. 19370 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19371 SED SHELL STRIP \ 19372 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19373 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19374 deplibs_check_method reload_flag reload_cmds need_locks \ 19375 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19376 lt_cv_sys_global_symbol_to_c_name_address \ 19377 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19378 old_postinstall_cmds old_postuninstall_cmds \ 19379 compiler_RC \ 19380 CC_RC \ 19381 LD_RC \ 19382 lt_prog_compiler_wl_RC \ 19383 lt_prog_compiler_pic_RC \ 19384 lt_prog_compiler_static_RC \ 19385 lt_prog_compiler_no_builtin_flag_RC \ 19386 export_dynamic_flag_spec_RC \ 19387 thread_safe_flag_spec_RC \ 19388 whole_archive_flag_spec_RC \ 19389 enable_shared_with_static_runtimes_RC \ 19390 old_archive_cmds_RC \ 19391 old_archive_from_new_cmds_RC \ 19392 predep_objects_RC \ 19393 postdep_objects_RC \ 19394 predeps_RC \ 19395 postdeps_RC \ 19396 compiler_lib_search_path_RC \ 19397 archive_cmds_RC \ 19398 archive_expsym_cmds_RC \ 19399 postinstall_cmds_RC \ 19400 postuninstall_cmds_RC \ 19401 old_archive_from_expsyms_cmds_RC \ 19402 allow_undefined_flag_RC \ 19403 no_undefined_flag_RC \ 19404 export_symbols_cmds_RC \ 19405 hardcode_libdir_flag_spec_RC \ 19406 hardcode_libdir_flag_spec_ld_RC \ 19407 hardcode_libdir_separator_RC \ 19408 hardcode_automatic_RC \ 19409 module_cmds_RC \ 19410 module_expsym_cmds_RC \ 19411 lt_cv_prog_compiler_c_o_RC \ 19412 exclude_expsyms_RC \ 19413 include_expsyms_RC; do 19414 19415 case $var in 19416 old_archive_cmds_RC | \ 19417 old_archive_from_new_cmds_RC | \ 19418 archive_cmds_RC | \ 19419 archive_expsym_cmds_RC | \ 19420 module_cmds_RC | \ 19421 module_expsym_cmds_RC | \ 19422 old_archive_from_expsyms_cmds_RC | \ 19423 export_symbols_cmds_RC | \ 19424 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19425 postinstall_cmds | postuninstall_cmds | \ 19426 old_postinstall_cmds | old_postuninstall_cmds | \ 19427 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19428 # Double-quote double-evaled strings. 19429 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19430 ;; 19431 *) 19432 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19433 ;; 19434 esac 19435 done 19436 19437 case $lt_echo in 19438 *'\$0 --fallback-echo"') 19439 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19440 ;; 19441 esac 19442 19443cfgfile="$ofile" 19444 19445 cat <<__EOF__ >> "$cfgfile" 19446# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19447 19448# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19449 19450# Shell to use when invoking shell scripts. 19451SHELL=$lt_SHELL 19452 19453# Whether or not to build shared libraries. 19454build_libtool_libs=$enable_shared 19455 19456# Whether or not to build static libraries. 19457build_old_libs=$enable_static 19458 19459# Whether or not to add -lc for building shared libraries. 19460build_libtool_need_lc=$archive_cmds_need_lc_RC 19461 19462# Whether or not to disallow shared libs when runtime libs are static 19463allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19464 19465# Whether or not to optimize for fast installation. 19466fast_install=$enable_fast_install 19467 19468# The host system. 19469host_alias=$host_alias 19470host=$host 19471host_os=$host_os 19472 19473# The build system. 19474build_alias=$build_alias 19475build=$build 19476build_os=$build_os 19477 19478# An echo program that does not interpret backslashes. 19479echo=$lt_echo 19480 19481# The archiver. 19482AR=$lt_AR 19483AR_FLAGS=$lt_AR_FLAGS 19484 19485# A C compiler. 19486LTCC=$lt_LTCC 19487 19488# LTCC compiler flags. 19489LTCFLAGS=$lt_LTCFLAGS 19490 19491# A language-specific compiler. 19492CC=$lt_compiler_RC 19493 19494# Is the compiler the GNU C compiler? 19495with_gcc=$GCC_RC 19496 19497# An ERE matcher. 19498EGREP=$lt_EGREP 19499 19500# The linker used to build libraries. 19501LD=$lt_LD_RC 19502 19503# Whether we need hard or soft links. 19504LN_S=$lt_LN_S 19505 19506# A BSD-compatible nm program. 19507NM=$lt_NM 19508 19509# A symbol stripping program 19510STRIP=$lt_STRIP 19511 19512# Used to examine libraries when file_magic_cmd begins "file" 19513MAGIC_CMD=$MAGIC_CMD 19514 19515# Used on cygwin: DLL creation program. 19516DLLTOOL="$DLLTOOL" 19517 19518# Used on cygwin: object dumper. 19519OBJDUMP="$OBJDUMP" 19520 19521# Used on cygwin: assembler. 19522AS="$AS" 19523 19524# The name of the directory that contains temporary libtool files. 19525objdir=$objdir 19526 19527# How to create reloadable object files. 19528reload_flag=$lt_reload_flag 19529reload_cmds=$lt_reload_cmds 19530 19531# How to pass a linker flag through the compiler. 19532wl=$lt_lt_prog_compiler_wl_RC 19533 19534# Object file suffix (normally "o"). 19535objext="$ac_objext" 19536 19537# Old archive suffix (normally "a"). 19538libext="$libext" 19539 19540# Shared library suffix (normally ".so"). 19541shrext_cmds='$shrext_cmds' 19542 19543# Executable file suffix (normally ""). 19544exeext="$exeext" 19545 19546# Additional compiler flags for building library objects. 19547pic_flag=$lt_lt_prog_compiler_pic_RC 19548pic_mode=$pic_mode 19549 19550# What is the maximum length of a command? 19551max_cmd_len=$lt_cv_sys_max_cmd_len 19552 19553# Does compiler simultaneously support -c and -o options? 19554compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19555 19556# Must we lock files when doing compilation? 19557need_locks=$lt_need_locks 19558 19559# Do we need the lib prefix for modules? 19560need_lib_prefix=$need_lib_prefix 19561 19562# Do we need a version for libraries? 19563need_version=$need_version 19564 19565# Whether dlopen is supported. 19566dlopen_support=$enable_dlopen 19567 19568# Whether dlopen of programs is supported. 19569dlopen_self=$enable_dlopen_self 19570 19571# Whether dlopen of statically linked programs is supported. 19572dlopen_self_static=$enable_dlopen_self_static 19573 19574# Compiler flag to prevent dynamic linking. 19575link_static_flag=$lt_lt_prog_compiler_static_RC 19576 19577# Compiler flag to turn off builtin functions. 19578no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19579 19580# Compiler flag to allow reflexive dlopens. 19581export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19582 19583# Compiler flag to generate shared objects directly from archives. 19584whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19585 19586# Compiler flag to generate thread-safe objects. 19587thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19588 19589# Library versioning type. 19590version_type=$version_type 19591 19592# Format of library name prefix. 19593libname_spec=$lt_libname_spec 19594 19595# List of archive names. First name is the real one, the rest are links. 19596# The last name is the one that the linker finds with -lNAME. 19597library_names_spec=$lt_library_names_spec 19598 19599# The coded name of the library, if different from the real name. 19600soname_spec=$lt_soname_spec 19601 19602# Commands used to build and install an old-style archive. 19603RANLIB=$lt_RANLIB 19604old_archive_cmds=$lt_old_archive_cmds_RC 19605old_postinstall_cmds=$lt_old_postinstall_cmds 19606old_postuninstall_cmds=$lt_old_postuninstall_cmds 19607 19608# Create an old-style archive from a shared archive. 19609old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19610 19611# Create a temporary old-style archive to link instead of a shared archive. 19612old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19613 19614# Commands used to build and install a shared archive. 19615archive_cmds=$lt_archive_cmds_RC 19616archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19617postinstall_cmds=$lt_postinstall_cmds 19618postuninstall_cmds=$lt_postuninstall_cmds 19619 19620# Commands used to build a loadable module (assumed same as above if empty) 19621module_cmds=$lt_module_cmds_RC 19622module_expsym_cmds=$lt_module_expsym_cmds_RC 19623 19624# Commands to strip libraries. 19625old_striplib=$lt_old_striplib 19626striplib=$lt_striplib 19627 19628# Dependencies to place before the objects being linked to create a 19629# shared library. 19630predep_objects=$lt_predep_objects_RC 19631 19632# Dependencies to place after the objects being linked to create a 19633# shared library. 19634postdep_objects=$lt_postdep_objects_RC 19635 19636# Dependencies to place before the objects being linked to create a 19637# shared library. 19638predeps=$lt_predeps_RC 19639 19640# Dependencies to place after the objects being linked to create a 19641# shared library. 19642postdeps=$lt_postdeps_RC 19643 19644# The library search path used internally by the compiler when linking 19645# a shared library. 19646compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19647 19648# Method to check whether dependent libraries are shared objects. 19649deplibs_check_method=$lt_deplibs_check_method 19650 19651# Command to use when deplibs_check_method == file_magic. 19652file_magic_cmd=$lt_file_magic_cmd 19653 19654# Flag that allows shared libraries with undefined symbols to be built. 19655allow_undefined_flag=$lt_allow_undefined_flag_RC 19656 19657# Flag that forces no undefined symbols. 19658no_undefined_flag=$lt_no_undefined_flag_RC 19659 19660# Commands used to finish a libtool library installation in a directory. 19661finish_cmds=$lt_finish_cmds 19662 19663# Same as above, but a single script fragment to be evaled but not shown. 19664finish_eval=$lt_finish_eval 19665 19666# Take the output of nm and produce a listing of raw symbols and C names. 19667global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19668 19669# Transform the output of nm in a proper C declaration 19670global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19671 19672# Transform the output of nm in a C name address pair 19673global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19674 19675# This is the shared library runtime path variable. 19676runpath_var=$runpath_var 19677 19678# This is the shared library path variable. 19679shlibpath_var=$shlibpath_var 19680 19681# Is shlibpath searched before the hard-coded library search path? 19682shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19683 19684# How to hardcode a shared library path into an executable. 19685hardcode_action=$hardcode_action_RC 19686 19687# Whether we should hardcode library paths into libraries. 19688hardcode_into_libs=$hardcode_into_libs 19689 19690# Flag to hardcode \$libdir into a binary during linking. 19691# This must work even if \$libdir does not exist. 19692hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19693 19694# If ld is used when linking, flag to hardcode \$libdir into 19695# a binary during linking. This must work even if \$libdir does 19696# not exist. 19697hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19698 19699# Whether we need a single -rpath flag with a separated argument. 19700hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19701 19702# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19703# resulting binary. 19704hardcode_direct=$hardcode_direct_RC 19705 19706# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19707# resulting binary. 19708hardcode_minus_L=$hardcode_minus_L_RC 19709 19710# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19711# the resulting binary. 19712hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19713 19714# Set to yes if building a shared library automatically hardcodes DIR into the library 19715# and all subsequent libraries and executables linked against it. 19716hardcode_automatic=$hardcode_automatic_RC 19717 19718# Variables whose values should be saved in libtool wrapper scripts and 19719# restored at relink time. 19720variables_saved_for_relink="$variables_saved_for_relink" 19721 19722# Whether libtool must link a program against all its dependency libraries. 19723link_all_deplibs=$link_all_deplibs_RC 19724 19725# Compile-time system search path for libraries 19726sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19727 19728# Run-time system search path for libraries 19729sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19730 19731# Fix the shell variable \$srcfile for the compiler. 19732fix_srcfile_path="$fix_srcfile_path_RC" 19733 19734# Set to yes if exported symbols are required. 19735always_export_symbols=$always_export_symbols_RC 19736 19737# The commands to list exported symbols. 19738export_symbols_cmds=$lt_export_symbols_cmds_RC 19739 19740# The commands to extract the exported symbol list from a shared archive. 19741extract_expsyms_cmds=$lt_extract_expsyms_cmds 19742 19743# Symbols that should not be listed in the preloaded symbols. 19744exclude_expsyms=$lt_exclude_expsyms_RC 19745 19746# Symbols that must always be exported. 19747include_expsyms=$lt_include_expsyms_RC 19748 19749# ### END LIBTOOL TAG CONFIG: $tagname 19750 19751__EOF__ 19752 19753 19754else 19755 # If there is no Makefile yet, we rely on a make rule to execute 19756 # `config.status --recheck' to rerun these tests and create the 19757 # libtool script then. 19758 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19759 if test -f "$ltmain_in"; then 19760 test -f Makefile && make "$ltmain" 19761 fi 19762fi 19763 19764 19765ac_ext=cpp 19766ac_cpp='$CXXCPP $CPPFLAGS' 19767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19770 19771CC="$lt_save_CC" 19772 19773 ;; 19774 19775 *) 19776 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19777echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19778 { (exit 1); exit 1; }; } 19779 ;; 19780 esac 19781 19782 # Append the new tag name to the list of available tags. 19783 if test -n "$tagname" ; then 19784 available_tags="$available_tags $tagname" 19785 fi 19786 fi 19787 done 19788 IFS="$lt_save_ifs" 19789 19790 # Now substitute the updated list of available tags. 19791 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19792 mv "${ofile}T" "$ofile" 19793 chmod +x "$ofile" 19794 else 19795 rm -f "${ofile}T" 19796 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19797echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19798 { (exit 1); exit 1; }; } 19799 fi 19800fi 19801 19802 19803 19804# This can be used to rebuild libtool when needed 19805LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19806 19807# Always use our own libtool. 19808LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19809 19810# Prevent multiple expansion 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834{ echo "$as_me:$LINENO: checking for main in -ldl" >&5 19835echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; } 19836if test "${ac_cv_lib_dl_main+set}" = set; then 19837 echo $ECHO_N "(cached) $ECHO_C" >&6 19838else 19839 ac_check_lib_save_LIBS=$LIBS 19840LIBS="-ldl $LIBS" 19841cat >conftest.$ac_ext <<_ACEOF 19842/* confdefs.h. */ 19843_ACEOF 19844cat confdefs.h >>conftest.$ac_ext 19845cat >>conftest.$ac_ext <<_ACEOF 19846/* end confdefs.h. */ 19847 19848 19849int 19850main () 19851{ 19852return main (); 19853 ; 19854 return 0; 19855} 19856_ACEOF 19857rm -f conftest.$ac_objext conftest$ac_exeext 19858if { (ac_try="$ac_link" 19859case "(($ac_try" in 19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19861 *) ac_try_echo=$ac_try;; 19862esac 19863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19864 (eval "$ac_link") 2>conftest.er1 19865 ac_status=$? 19866 grep -v '^ *+' conftest.er1 >conftest.err 19867 rm -f conftest.er1 19868 cat conftest.err >&5 19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19870 (exit $ac_status); } && { 19871 test -z "$ac_cxx_werror_flag" || 19872 test ! -s conftest.err 19873 } && test -s conftest$ac_exeext && 19874 $as_test_x conftest$ac_exeext; then 19875 ac_cv_lib_dl_main=yes 19876else 19877 echo "$as_me: failed program was:" >&5 19878sed 's/^/| /' conftest.$ac_ext >&5 19879 19880 ac_cv_lib_dl_main=no 19881fi 19882 19883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19884 conftest$ac_exeext conftest.$ac_ext 19885LIBS=$ac_check_lib_save_LIBS 19886fi 19887{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5 19888echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; } 19889if test $ac_cv_lib_dl_main = yes; then 19890 cat >>confdefs.h <<_ACEOF 19891#define HAVE_LIBDL 1 19892_ACEOF 19893 19894 LIBS="-ldl $LIBS" 19895 19896fi 19897 19898 19899 19900 19901{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19902echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 19903if test "${ac_cv_header_stdc+set}" = set; then 19904 echo $ECHO_N "(cached) $ECHO_C" >&6 19905else 19906 cat >conftest.$ac_ext <<_ACEOF 19907/* confdefs.h. */ 19908_ACEOF 19909cat confdefs.h >>conftest.$ac_ext 19910cat >>conftest.$ac_ext <<_ACEOF 19911/* end confdefs.h. */ 19912#include <stdlib.h> 19913#include <stdarg.h> 19914#include <string.h> 19915#include <float.h> 19916 19917int 19918main () 19919{ 19920 19921 ; 19922 return 0; 19923} 19924_ACEOF 19925rm -f conftest.$ac_objext 19926if { (ac_try="$ac_compile" 19927case "(($ac_try" in 19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19929 *) ac_try_echo=$ac_try;; 19930esac 19931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19932 (eval "$ac_compile") 2>conftest.er1 19933 ac_status=$? 19934 grep -v '^ *+' conftest.er1 >conftest.err 19935 rm -f conftest.er1 19936 cat conftest.err >&5 19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19938 (exit $ac_status); } && { 19939 test -z "$ac_cxx_werror_flag" || 19940 test ! -s conftest.err 19941 } && test -s conftest.$ac_objext; then 19942 ac_cv_header_stdc=yes 19943else 19944 echo "$as_me: failed program was:" >&5 19945sed 's/^/| /' conftest.$ac_ext >&5 19946 19947 ac_cv_header_stdc=no 19948fi 19949 19950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19951 19952if test $ac_cv_header_stdc = yes; then 19953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19954 cat >conftest.$ac_ext <<_ACEOF 19955/* confdefs.h. */ 19956_ACEOF 19957cat confdefs.h >>conftest.$ac_ext 19958cat >>conftest.$ac_ext <<_ACEOF 19959/* end confdefs.h. */ 19960#include <string.h> 19961 19962_ACEOF 19963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19964 $EGREP "memchr" >/dev/null 2>&1; then 19965 : 19966else 19967 ac_cv_header_stdc=no 19968fi 19969rm -f conftest* 19970 19971fi 19972 19973if test $ac_cv_header_stdc = yes; then 19974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19975 cat >conftest.$ac_ext <<_ACEOF 19976/* confdefs.h. */ 19977_ACEOF 19978cat confdefs.h >>conftest.$ac_ext 19979cat >>conftest.$ac_ext <<_ACEOF 19980/* end confdefs.h. */ 19981#include <stdlib.h> 19982 19983_ACEOF 19984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19985 $EGREP "free" >/dev/null 2>&1; then 19986 : 19987else 19988 ac_cv_header_stdc=no 19989fi 19990rm -f conftest* 19991 19992fi 19993 19994if test $ac_cv_header_stdc = yes; then 19995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19996 if test "$cross_compiling" = yes; then 19997 : 19998else 19999 cat >conftest.$ac_ext <<_ACEOF 20000/* confdefs.h. */ 20001_ACEOF 20002cat confdefs.h >>conftest.$ac_ext 20003cat >>conftest.$ac_ext <<_ACEOF 20004/* end confdefs.h. */ 20005#include <ctype.h> 20006#include <stdlib.h> 20007#if ((' ' & 0x0FF) == 0x020) 20008# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20009# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20010#else 20011# define ISLOWER(c) \ 20012 (('a' <= (c) && (c) <= 'i') \ 20013 || ('j' <= (c) && (c) <= 'r') \ 20014 || ('s' <= (c) && (c) <= 'z')) 20015# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20016#endif 20017 20018#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20019int 20020main () 20021{ 20022 int i; 20023 for (i = 0; i < 256; i++) 20024 if (XOR (islower (i), ISLOWER (i)) 20025 || toupper (i) != TOUPPER (i)) 20026 return 2; 20027 return 0; 20028} 20029_ACEOF 20030rm -f conftest$ac_exeext 20031if { (ac_try="$ac_link" 20032case "(($ac_try" in 20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20034 *) ac_try_echo=$ac_try;; 20035esac 20036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20037 (eval "$ac_link") 2>&5 20038 ac_status=$? 20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20041 { (case "(($ac_try" in 20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20043 *) ac_try_echo=$ac_try;; 20044esac 20045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20046 (eval "$ac_try") 2>&5 20047 ac_status=$? 20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20049 (exit $ac_status); }; }; then 20050 : 20051else 20052 echo "$as_me: program exited with status $ac_status" >&5 20053echo "$as_me: failed program was:" >&5 20054sed 's/^/| /' conftest.$ac_ext >&5 20055 20056( exit $ac_status ) 20057ac_cv_header_stdc=no 20058fi 20059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20060fi 20061 20062 20063fi 20064fi 20065{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20066echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 20067if test $ac_cv_header_stdc = yes; then 20068 20069cat >>confdefs.h <<\_ACEOF 20070#define STDC_HEADERS 1 20071_ACEOF 20072 20073fi 20074 20075{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 20076echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } 20077if test "${ac_cv_header_stdbool_h+set}" = set; then 20078 echo $ECHO_N "(cached) $ECHO_C" >&6 20079else 20080 cat >conftest.$ac_ext <<_ACEOF 20081/* confdefs.h. */ 20082_ACEOF 20083cat confdefs.h >>conftest.$ac_ext 20084cat >>conftest.$ac_ext <<_ACEOF 20085/* end confdefs.h. */ 20086 20087#include <stdbool.h> 20088#ifndef bool 20089 "error: bool is not defined" 20090#endif 20091#ifndef false 20092 "error: false is not defined" 20093#endif 20094#if false 20095 "error: false is not 0" 20096#endif 20097#ifndef true 20098 "error: true is not defined" 20099#endif 20100#if true != 1 20101 "error: true is not 1" 20102#endif 20103#ifndef __bool_true_false_are_defined 20104 "error: __bool_true_false_are_defined is not defined" 20105#endif 20106 20107 struct s { _Bool s: 1; _Bool t; } s; 20108 20109 char a[true == 1 ? 1 : -1]; 20110 char b[false == 0 ? 1 : -1]; 20111 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 20112 char d[(bool) 0.5 == true ? 1 : -1]; 20113 bool e = &s; 20114 char f[(_Bool) 0.0 == false ? 1 : -1]; 20115 char g[true]; 20116 char h[sizeof (_Bool)]; 20117 char i[sizeof s.t]; 20118 enum { j = false, k = true, l = false * true, m = true * 256 }; 20119 _Bool n[m]; 20120 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 20121 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 20122# if defined __xlc__ || defined __GNUC__ 20123 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 20124 reported by James Lemley on 2005-10-05; see 20125 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html 20126 This test is not quite right, since xlc is allowed to 20127 reject this program, as the initializer for xlcbug is 20128 not one of the forms that C requires support for. 20129 However, doing the test right would require a runtime 20130 test, and that would make cross-compilation harder. 20131 Let us hope that IBM fixes the xlc bug, and also adds 20132 support for this kind of constant expression. In the 20133 meantime, this test will reject xlc, which is OK, since 20134 our stdbool.h substitute should suffice. We also test 20135 this with GCC, where it should work, to detect more 20136 quickly whether someone messes up the test in the 20137 future. */ 20138 char digs[] = "0123456789"; 20139 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); 20140# endif 20141 /* Catch a bug in an HP-UX C compiler. See 20142 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 20143 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 20144 */ 20145 _Bool q = true; 20146 _Bool *pq = &q; 20147 20148int 20149main () 20150{ 20151 20152 *pq |= q; 20153 *pq |= ! q; 20154 /* Refer to every declared value, to avoid compiler optimizations. */ 20155 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 20156 + !m + !n + !o + !p + !q + !pq); 20157 20158 ; 20159 return 0; 20160} 20161_ACEOF 20162rm -f conftest.$ac_objext 20163if { (ac_try="$ac_compile" 20164case "(($ac_try" in 20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20166 *) ac_try_echo=$ac_try;; 20167esac 20168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20169 (eval "$ac_compile") 2>conftest.er1 20170 ac_status=$? 20171 grep -v '^ *+' conftest.er1 >conftest.err 20172 rm -f conftest.er1 20173 cat conftest.err >&5 20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20175 (exit $ac_status); } && { 20176 test -z "$ac_cxx_werror_flag" || 20177 test ! -s conftest.err 20178 } && test -s conftest.$ac_objext; then 20179 ac_cv_header_stdbool_h=yes 20180else 20181 echo "$as_me: failed program was:" >&5 20182sed 's/^/| /' conftest.$ac_ext >&5 20183 20184 ac_cv_header_stdbool_h=no 20185fi 20186 20187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20188fi 20189{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 20190echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } 20191{ echo "$as_me:$LINENO: checking for _Bool" >&5 20192echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } 20193if test "${ac_cv_type__Bool+set}" = set; then 20194 echo $ECHO_N "(cached) $ECHO_C" >&6 20195else 20196 cat >conftest.$ac_ext <<_ACEOF 20197/* confdefs.h. */ 20198_ACEOF 20199cat confdefs.h >>conftest.$ac_ext 20200cat >>conftest.$ac_ext <<_ACEOF 20201/* end confdefs.h. */ 20202$ac_includes_default 20203typedef _Bool ac__type_new_; 20204int 20205main () 20206{ 20207if ((ac__type_new_ *) 0) 20208 return 0; 20209if (sizeof (ac__type_new_)) 20210 return 0; 20211 ; 20212 return 0; 20213} 20214_ACEOF 20215rm -f conftest.$ac_objext 20216if { (ac_try="$ac_compile" 20217case "(($ac_try" in 20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20219 *) ac_try_echo=$ac_try;; 20220esac 20221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20222 (eval "$ac_compile") 2>conftest.er1 20223 ac_status=$? 20224 grep -v '^ *+' conftest.er1 >conftest.err 20225 rm -f conftest.er1 20226 cat conftest.err >&5 20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20228 (exit $ac_status); } && { 20229 test -z "$ac_cxx_werror_flag" || 20230 test ! -s conftest.err 20231 } && test -s conftest.$ac_objext; then 20232 ac_cv_type__Bool=yes 20233else 20234 echo "$as_me: failed program was:" >&5 20235sed 's/^/| /' conftest.$ac_ext >&5 20236 20237 ac_cv_type__Bool=no 20238fi 20239 20240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20241fi 20242{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 20243echo "${ECHO_T}$ac_cv_type__Bool" >&6; } 20244if test $ac_cv_type__Bool = yes; then 20245 20246cat >>confdefs.h <<_ACEOF 20247#define HAVE__BOOL 1 20248_ACEOF 20249 20250 20251fi 20252 20253if test $ac_cv_header_stdbool_h = yes; then 20254 20255cat >>confdefs.h <<\_ACEOF 20256#define HAVE_STDBOOL_H 1 20257_ACEOF 20258 20259fi 20260 20261 20262for ac_header in sys/time.h unistd.h 20263do 20264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20266 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20269 echo $ECHO_N "(cached) $ECHO_C" >&6 20270fi 20271ac_res=`eval echo '${'$as_ac_Header'}'` 20272 { echo "$as_me:$LINENO: result: $ac_res" >&5 20273echo "${ECHO_T}$ac_res" >&6; } 20274else 20275 # Is the header compilable? 20276{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20277echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20278cat >conftest.$ac_ext <<_ACEOF 20279/* confdefs.h. */ 20280_ACEOF 20281cat confdefs.h >>conftest.$ac_ext 20282cat >>conftest.$ac_ext <<_ACEOF 20283/* end confdefs.h. */ 20284$ac_includes_default 20285#include <$ac_header> 20286_ACEOF 20287rm -f conftest.$ac_objext 20288if { (ac_try="$ac_compile" 20289case "(($ac_try" in 20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20291 *) ac_try_echo=$ac_try;; 20292esac 20293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20294 (eval "$ac_compile") 2>conftest.er1 20295 ac_status=$? 20296 grep -v '^ *+' conftest.er1 >conftest.err 20297 rm -f conftest.er1 20298 cat conftest.err >&5 20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20300 (exit $ac_status); } && { 20301 test -z "$ac_cxx_werror_flag" || 20302 test ! -s conftest.err 20303 } && test -s conftest.$ac_objext; then 20304 ac_header_compiler=yes 20305else 20306 echo "$as_me: failed program was:" >&5 20307sed 's/^/| /' conftest.$ac_ext >&5 20308 20309 ac_header_compiler=no 20310fi 20311 20312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20313{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20314echo "${ECHO_T}$ac_header_compiler" >&6; } 20315 20316# Is the header present? 20317{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20318echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20319cat >conftest.$ac_ext <<_ACEOF 20320/* confdefs.h. */ 20321_ACEOF 20322cat confdefs.h >>conftest.$ac_ext 20323cat >>conftest.$ac_ext <<_ACEOF 20324/* end confdefs.h. */ 20325#include <$ac_header> 20326_ACEOF 20327if { (ac_try="$ac_cpp conftest.$ac_ext" 20328case "(($ac_try" in 20329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20330 *) ac_try_echo=$ac_try;; 20331esac 20332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20334 ac_status=$? 20335 grep -v '^ *+' conftest.er1 >conftest.err 20336 rm -f conftest.er1 20337 cat conftest.err >&5 20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20339 (exit $ac_status); } >/dev/null && { 20340 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 20341 test ! -s conftest.err 20342 }; then 20343 ac_header_preproc=yes 20344else 20345 echo "$as_me: failed program was:" >&5 20346sed 's/^/| /' conftest.$ac_ext >&5 20347 20348 ac_header_preproc=no 20349fi 20350 20351rm -f conftest.err conftest.$ac_ext 20352{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20353echo "${ECHO_T}$ac_header_preproc" >&6; } 20354 20355# So? What about this header? 20356case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 20357 yes:no: ) 20358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20359echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20361echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20362 ac_header_preproc=yes 20363 ;; 20364 no:yes:* ) 20365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20366echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20368echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20370echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20372echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20374echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20376echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20377 ( cat <<\_ASBOX 20378## --------------------------------------------- ## 20379## Report this to opetzold@users.sourceforge.net ## 20380## --------------------------------------------- ## 20381_ASBOX 20382 ) | sed "s/^/$as_me: WARNING: /" >&2 20383 ;; 20384esac 20385{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20388 echo $ECHO_N "(cached) $ECHO_C" >&6 20389else 20390 eval "$as_ac_Header=\$ac_header_preproc" 20391fi 20392ac_res=`eval echo '${'$as_ac_Header'}'` 20393 { echo "$as_me:$LINENO: result: $ac_res" >&5 20394echo "${ECHO_T}$ac_res" >&6; } 20395 20396fi 20397if test `eval echo '${'$as_ac_Header'}'` = yes; then 20398 cat >>confdefs.h <<_ACEOF 20399#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20400_ACEOF 20401 20402fi 20403 20404done 20405 20406 20407 20408# Checks for library functions. 20409 20410 20411 20412 20413for ac_func in floor pow rint sqrt 20414do 20415as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20416{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20417echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20418if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20419 echo $ECHO_N "(cached) $ECHO_C" >&6 20420else 20421 cat >conftest.$ac_ext <<_ACEOF 20422/* confdefs.h. */ 20423_ACEOF 20424cat confdefs.h >>conftest.$ac_ext 20425cat >>conftest.$ac_ext <<_ACEOF 20426/* end confdefs.h. */ 20427/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20428 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20429#define $ac_func innocuous_$ac_func 20430 20431/* System header to define __stub macros and hopefully few prototypes, 20432 which can conflict with char $ac_func (); below. 20433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20434 <limits.h> exists even on freestanding compilers. */ 20435 20436#ifdef __STDC__ 20437# include <limits.h> 20438#else 20439# include <assert.h> 20440#endif 20441 20442#undef $ac_func 20443 20444/* Override any GCC internal prototype to avoid an error. 20445 Use char because int might match the return type of a GCC 20446 builtin and then its argument prototype would still apply. */ 20447#ifdef __cplusplus 20448extern "C" 20449#endif 20450char $ac_func (); 20451/* The GNU C library defines this for functions which it implements 20452 to always fail with ENOSYS. Some functions are actually named 20453 something starting with __ and the normal name is an alias. */ 20454#if defined __stub_$ac_func || defined __stub___$ac_func 20455choke me 20456#endif 20457 20458int 20459main () 20460{ 20461return $ac_func (); 20462 ; 20463 return 0; 20464} 20465_ACEOF 20466rm -f conftest.$ac_objext conftest$ac_exeext 20467if { (ac_try="$ac_link" 20468case "(($ac_try" in 20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20470 *) ac_try_echo=$ac_try;; 20471esac 20472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20473 (eval "$ac_link") 2>conftest.er1 20474 ac_status=$? 20475 grep -v '^ *+' conftest.er1 >conftest.err 20476 rm -f conftest.er1 20477 cat conftest.err >&5 20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20479 (exit $ac_status); } && { 20480 test -z "$ac_cxx_werror_flag" || 20481 test ! -s conftest.err 20482 } && test -s conftest$ac_exeext && 20483 $as_test_x conftest$ac_exeext; then 20484 eval "$as_ac_var=yes" 20485else 20486 echo "$as_me: failed program was:" >&5 20487sed 's/^/| /' conftest.$ac_ext >&5 20488 20489 eval "$as_ac_var=no" 20490fi 20491 20492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20493 conftest$ac_exeext conftest.$ac_ext 20494fi 20495ac_res=`eval echo '${'$as_ac_var'}'` 20496 { echo "$as_me:$LINENO: result: $ac_res" >&5 20497echo "${ECHO_T}$ac_res" >&6; } 20498if test `eval echo '${'$as_ac_var'}'` = yes; then 20499 cat >>confdefs.h <<_ACEOF 20500#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20501_ACEOF 20502 20503fi 20504done 20505 20506 20507 20508{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20509echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 20510if test "${ac_cv_c_const+set}" = set; then 20511 echo $ECHO_N "(cached) $ECHO_C" >&6 20512else 20513 cat >conftest.$ac_ext <<_ACEOF 20514/* confdefs.h. */ 20515_ACEOF 20516cat confdefs.h >>conftest.$ac_ext 20517cat >>conftest.$ac_ext <<_ACEOF 20518/* end confdefs.h. */ 20519 20520int 20521main () 20522{ 20523/* FIXME: Include the comments suggested by Paul. */ 20524#ifndef __cplusplus 20525 /* Ultrix mips cc rejects this. */ 20526 typedef int charset[2]; 20527 const charset cs; 20528 /* SunOS 4.1.1 cc rejects this. */ 20529 char const *const *pcpcc; 20530 char **ppc; 20531 /* NEC SVR4.0.2 mips cc rejects this. */ 20532 struct point {int x, y;}; 20533 static struct point const zero = {0,0}; 20534 /* AIX XL C 1.02.0.0 rejects this. 20535 It does not let you subtract one const X* pointer from another in 20536 an arm of an if-expression whose if-part is not a constant 20537 expression */ 20538 const char *g = "string"; 20539 pcpcc = &g + (g ? g-g : 0); 20540 /* HPUX 7.0 cc rejects these. */ 20541 ++pcpcc; 20542 ppc = (char**) pcpcc; 20543 pcpcc = (char const *const *) ppc; 20544 { /* SCO 3.2v4 cc rejects this. */ 20545 char *t; 20546 char const *s = 0 ? (char *) 0 : (char const *) 0; 20547 20548 *t++ = 0; 20549 if (s) return 0; 20550 } 20551 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20552 int x[] = {25, 17}; 20553 const int *foo = &x[0]; 20554 ++foo; 20555 } 20556 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20557 typedef const int *iptr; 20558 iptr p = 0; 20559 ++p; 20560 } 20561 { /* AIX XL C 1.02.0.0 rejects this saying 20562 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20563 struct s { int j; const int *ap[3]; }; 20564 struct s *b; b->j = 5; 20565 } 20566 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20567 const int foo = 10; 20568 if (!foo) return 0; 20569 } 20570 return !cs[0] && !zero.x; 20571#endif 20572 20573 ; 20574 return 0; 20575} 20576_ACEOF 20577rm -f conftest.$ac_objext 20578if { (ac_try="$ac_compile" 20579case "(($ac_try" in 20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20581 *) ac_try_echo=$ac_try;; 20582esac 20583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20584 (eval "$ac_compile") 2>conftest.er1 20585 ac_status=$? 20586 grep -v '^ *+' conftest.er1 >conftest.err 20587 rm -f conftest.er1 20588 cat conftest.err >&5 20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20590 (exit $ac_status); } && { 20591 test -z "$ac_cxx_werror_flag" || 20592 test ! -s conftest.err 20593 } && test -s conftest.$ac_objext; then 20594 ac_cv_c_const=yes 20595else 20596 echo "$as_me: failed program was:" >&5 20597sed 's/^/| /' conftest.$ac_ext >&5 20598 20599 ac_cv_c_const=no 20600fi 20601 20602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20603fi 20604{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20605echo "${ECHO_T}$ac_cv_c_const" >&6; } 20606if test $ac_cv_c_const = no; then 20607 20608cat >>confdefs.h <<\_ACEOF 20609#define const 20610_ACEOF 20611 20612fi 20613 20614{ echo "$as_me:$LINENO: checking for inline" >&5 20615echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 20616if test "${ac_cv_c_inline+set}" = set; then 20617 echo $ECHO_N "(cached) $ECHO_C" >&6 20618else 20619 ac_cv_c_inline=no 20620for ac_kw in inline __inline__ __inline; do 20621 cat >conftest.$ac_ext <<_ACEOF 20622/* confdefs.h. */ 20623_ACEOF 20624cat confdefs.h >>conftest.$ac_ext 20625cat >>conftest.$ac_ext <<_ACEOF 20626/* end confdefs.h. */ 20627#ifndef __cplusplus 20628typedef int foo_t; 20629static $ac_kw foo_t static_foo () {return 0; } 20630$ac_kw foo_t foo () {return 0; } 20631#endif 20632 20633_ACEOF 20634rm -f conftest.$ac_objext 20635if { (ac_try="$ac_compile" 20636case "(($ac_try" in 20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20638 *) ac_try_echo=$ac_try;; 20639esac 20640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20641 (eval "$ac_compile") 2>conftest.er1 20642 ac_status=$? 20643 grep -v '^ *+' conftest.er1 >conftest.err 20644 rm -f conftest.er1 20645 cat conftest.err >&5 20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20647 (exit $ac_status); } && { 20648 test -z "$ac_cxx_werror_flag" || 20649 test ! -s conftest.err 20650 } && test -s conftest.$ac_objext; then 20651 ac_cv_c_inline=$ac_kw 20652else 20653 echo "$as_me: failed program was:" >&5 20654sed 's/^/| /' conftest.$ac_ext >&5 20655 20656 20657fi 20658 20659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20660 test "$ac_cv_c_inline" != no && break 20661done 20662 20663fi 20664{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 20665echo "${ECHO_T}$ac_cv_c_inline" >&6; } 20666 20667 20668case $ac_cv_c_inline in 20669 inline | yes) ;; 20670 *) 20671 case $ac_cv_c_inline in 20672 no) ac_val=;; 20673 *) ac_val=$ac_cv_c_inline;; 20674 esac 20675 cat >>confdefs.h <<_ACEOF 20676#ifndef __cplusplus 20677#define inline $ac_val 20678#endif 20679_ACEOF 20680 ;; 20681esac 20682 20683{ echo "$as_me:$LINENO: checking for size_t" >&5 20684echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 20685if test "${ac_cv_type_size_t+set}" = set; then 20686 echo $ECHO_N "(cached) $ECHO_C" >&6 20687else 20688 cat >conftest.$ac_ext <<_ACEOF 20689/* confdefs.h. */ 20690_ACEOF 20691cat confdefs.h >>conftest.$ac_ext 20692cat >>conftest.$ac_ext <<_ACEOF 20693/* end confdefs.h. */ 20694$ac_includes_default 20695typedef size_t ac__type_new_; 20696int 20697main () 20698{ 20699if ((ac__type_new_ *) 0) 20700 return 0; 20701if (sizeof (ac__type_new_)) 20702 return 0; 20703 ; 20704 return 0; 20705} 20706_ACEOF 20707rm -f conftest.$ac_objext 20708if { (ac_try="$ac_compile" 20709case "(($ac_try" in 20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20711 *) ac_try_echo=$ac_try;; 20712esac 20713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20714 (eval "$ac_compile") 2>conftest.er1 20715 ac_status=$? 20716 grep -v '^ *+' conftest.er1 >conftest.err 20717 rm -f conftest.er1 20718 cat conftest.err >&5 20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20720 (exit $ac_status); } && { 20721 test -z "$ac_cxx_werror_flag" || 20722 test ! -s conftest.err 20723 } && test -s conftest.$ac_objext; then 20724 ac_cv_type_size_t=yes 20725else 20726 echo "$as_me: failed program was:" >&5 20727sed 's/^/| /' conftest.$ac_ext >&5 20728 20729 ac_cv_type_size_t=no 20730fi 20731 20732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20733fi 20734{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 20735echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 20736if test $ac_cv_type_size_t = yes; then 20737 : 20738else 20739 20740cat >>confdefs.h <<_ACEOF 20741#define size_t unsigned int 20742_ACEOF 20743 20744fi 20745 20746{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 20747echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 20748if test "${ac_cv_struct_tm+set}" = set; then 20749 echo $ECHO_N "(cached) $ECHO_C" >&6 20750else 20751 cat >conftest.$ac_ext <<_ACEOF 20752/* confdefs.h. */ 20753_ACEOF 20754cat confdefs.h >>conftest.$ac_ext 20755cat >>conftest.$ac_ext <<_ACEOF 20756/* end confdefs.h. */ 20757#include <sys/types.h> 20758#include <time.h> 20759 20760int 20761main () 20762{ 20763struct tm tm; 20764 int *p = &tm.tm_sec; 20765 return !p; 20766 ; 20767 return 0; 20768} 20769_ACEOF 20770rm -f conftest.$ac_objext 20771if { (ac_try="$ac_compile" 20772case "(($ac_try" in 20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20774 *) ac_try_echo=$ac_try;; 20775esac 20776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20777 (eval "$ac_compile") 2>conftest.er1 20778 ac_status=$? 20779 grep -v '^ *+' conftest.er1 >conftest.err 20780 rm -f conftest.er1 20781 cat conftest.err >&5 20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20783 (exit $ac_status); } && { 20784 test -z "$ac_cxx_werror_flag" || 20785 test ! -s conftest.err 20786 } && test -s conftest.$ac_objext; then 20787 ac_cv_struct_tm=time.h 20788else 20789 echo "$as_me: failed program was:" >&5 20790sed 's/^/| /' conftest.$ac_ext >&5 20791 20792 ac_cv_struct_tm=sys/time.h 20793fi 20794 20795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20796fi 20797{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 20798echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 20799if test $ac_cv_struct_tm = sys/time.h; then 20800 20801cat >>confdefs.h <<\_ACEOF 20802#define TM_IN_SYS_TIME 1 20803_ACEOF 20804 20805fi 20806 20807 20808 20809 20810 { echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5 20811echo $ECHO_N "checking for long double with more range or precision than double... $ECHO_C" >&6; } 20812if test "${ac_cv_type_long_double_wider+set}" = set; then 20813 echo $ECHO_N "(cached) $ECHO_C" >&6 20814else 20815 cat >conftest.$ac_ext <<_ACEOF 20816/* confdefs.h. */ 20817_ACEOF 20818cat confdefs.h >>conftest.$ac_ext 20819cat >>conftest.$ac_ext <<_ACEOF 20820/* end confdefs.h. */ 20821#include <float.h> 20822 long double const a[] = 20823 { 20824 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, 20825 LDBL_MIN, LDBL_MAX, LDBL_EPSILON 20826 }; 20827 long double 20828 f (long double x) 20829 { 20830 return ((x + (unsigned long int) 10) * (-1 / x) + a[0] 20831 + (x ? f (x) : 'c')); 20832 } 20833 20834int 20835main () 20836{ 20837static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) 20838 + (DBL_MANT_DIG < LDBL_MANT_DIG) 20839 - (LDBL_MAX_EXP < DBL_MAX_EXP) 20840 - (LDBL_MANT_DIG < DBL_MANT_DIG))) 20841 && (int) LDBL_EPSILON == 0 20842 )]; 20843test_array [0] = 0 20844 20845 ; 20846 return 0; 20847} 20848_ACEOF 20849rm -f conftest.$ac_objext 20850if { (ac_try="$ac_compile" 20851case "(($ac_try" in 20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20853 *) ac_try_echo=$ac_try;; 20854esac 20855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20856 (eval "$ac_compile") 2>conftest.er1 20857 ac_status=$? 20858 grep -v '^ *+' conftest.er1 >conftest.err 20859 rm -f conftest.er1 20860 cat conftest.err >&5 20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20862 (exit $ac_status); } && { 20863 test -z "$ac_cxx_werror_flag" || 20864 test ! -s conftest.err 20865 } && test -s conftest.$ac_objext; then 20866 ac_cv_type_long_double_wider=yes 20867else 20868 echo "$as_me: failed program was:" >&5 20869sed 's/^/| /' conftest.$ac_ext >&5 20870 20871 ac_cv_type_long_double_wider=no 20872fi 20873 20874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20875fi 20876{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5 20877echo "${ECHO_T}$ac_cv_type_long_double_wider" >&6; } 20878 if test $ac_cv_type_long_double_wider = yes; then 20879 20880cat >>confdefs.h <<\_ACEOF 20881#define HAVE_LONG_DOUBLE_WIDER 1 20882_ACEOF 20883 20884 fi 20885 20886 ac_cv_c_long_double=$ac_cv_type_long_double_wider 20887 if test $ac_cv_c_long_double = yes; then 20888 20889cat >>confdefs.h <<\_ACEOF 20890#define HAVE_LONG_DOUBLE 1 20891_ACEOF 20892 20893 fi 20894 20895{ echo "$as_me:$LINENO: checking for long long int" >&5 20896echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } 20897if test "${ac_cv_c_long_long+set}" = set; then 20898 echo $ECHO_N "(cached) $ECHO_C" >&6 20899else 20900 ac_ext=cpp 20901ac_cpp='$CXXCPP $CPPFLAGS' 20902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20905 20906 cat >conftest.$ac_ext <<_ACEOF 20907/* confdefs.h. */ 20908_ACEOF 20909cat confdefs.h >>conftest.$ac_ext 20910cat >>conftest.$ac_ext <<_ACEOF 20911/* end confdefs.h. */ 20912 20913 long long int i; 20914 20915int 20916main () 20917{ 20918 20919 ; 20920 return 0; 20921} 20922_ACEOF 20923rm -f conftest.$ac_objext 20924if { (ac_try="$ac_compile" 20925case "(($ac_try" in 20926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20927 *) ac_try_echo=$ac_try;; 20928esac 20929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20930 (eval "$ac_compile") 2>conftest.er1 20931 ac_status=$? 20932 grep -v '^ *+' conftest.er1 >conftest.err 20933 rm -f conftest.er1 20934 cat conftest.err >&5 20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20936 (exit $ac_status); } && { 20937 test -z "$ac_cxx_werror_flag" || 20938 test ! -s conftest.err 20939 } && test -s conftest.$ac_objext; then 20940 ac_cv_c_long_long=yes 20941else 20942 echo "$as_me: failed program was:" >&5 20943sed 's/^/| /' conftest.$ac_ext >&5 20944 20945 ac_cv_c_long_long=no 20946fi 20947 20948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20949 ac_ext=cpp 20950ac_cpp='$CXXCPP $CPPFLAGS' 20951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20954 20955 20956fi 20957{ echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5 20958echo "${ECHO_T}$ac_cv_c_long_long" >&6; } 20959if test "$ac_cv_c_long_long" = yes; then 20960 20961cat >>confdefs.h <<\_ACEOF 20962#define HAVE_LONG_LONG 20963_ACEOF 20964 20965fi 20966 20967{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 20968echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; } 20969if test "${ac_cv_c_restrict+set}" = set; then 20970 echo $ECHO_N "(cached) $ECHO_C" >&6 20971else 20972 ac_cv_c_restrict=no 20973 # Try the official restrict keyword, then gcc's __restrict, and 20974 # the less common variants. 20975 for ac_kw in restrict __restrict __restrict__ _Restrict; do 20976 cat >conftest.$ac_ext <<_ACEOF 20977/* confdefs.h. */ 20978_ACEOF 20979cat confdefs.h >>conftest.$ac_ext 20980cat >>conftest.$ac_ext <<_ACEOF 20981/* end confdefs.h. */ 20982typedef int * int_ptr; 20983 int foo (int_ptr $ac_kw ip) { 20984 return ip[0]; 20985 } 20986int 20987main () 20988{ 20989int s[1]; 20990 int * $ac_kw t = s; 20991 t[0] = 0; 20992 return foo(t) 20993 ; 20994 return 0; 20995} 20996_ACEOF 20997rm -f conftest.$ac_objext 20998if { (ac_try="$ac_compile" 20999case "(($ac_try" in 21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21001 *) ac_try_echo=$ac_try;; 21002esac 21003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21004 (eval "$ac_compile") 2>conftest.er1 21005 ac_status=$? 21006 grep -v '^ *+' conftest.er1 >conftest.err 21007 rm -f conftest.er1 21008 cat conftest.err >&5 21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21010 (exit $ac_status); } && { 21011 test -z "$ac_cxx_werror_flag" || 21012 test ! -s conftest.err 21013 } && test -s conftest.$ac_objext; then 21014 ac_cv_c_restrict=$ac_kw 21015else 21016 echo "$as_me: failed program was:" >&5 21017sed 's/^/| /' conftest.$ac_ext >&5 21018 21019 21020fi 21021 21022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21023 test "$ac_cv_c_restrict" != no && break 21024 done 21025 21026fi 21027{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 21028echo "${ECHO_T}$ac_cv_c_restrict" >&6; } 21029 case $ac_cv_c_restrict in 21030 restrict) ;; 21031 no) 21032cat >>confdefs.h <<\_ACEOF 21033#define restrict 21034_ACEOF 21035 ;; 21036 *) cat >>confdefs.h <<_ACEOF 21037#define restrict $ac_cv_c_restrict 21038_ACEOF 21039 ;; 21040 esac 21041 21042{ echo "$as_me:$LINENO: checking for mutable" >&5 21043echo $ECHO_N "checking for mutable... $ECHO_C" >&6; } 21044if test "${ac_cv_cxx_mutable+set}" = set; then 21045 echo $ECHO_N "(cached) $ECHO_C" >&6 21046else 21047 ac_ext=cpp 21048ac_cpp='$CXXCPP $CPPFLAGS' 21049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21052 21053 cat >conftest.$ac_ext <<_ACEOF 21054/* confdefs.h. */ 21055_ACEOF 21056cat confdefs.h >>conftest.$ac_ext 21057cat >>conftest.$ac_ext <<_ACEOF 21058/* end confdefs.h. */ 21059 21060class Foo { 21061 mutable int i; 21062public: 21063 int bar (int n) const { i = n; return i; } 21064}; 21065 21066int 21067main () 21068{ 21069Foo foo; return foo.bar(1); 21070 ; 21071 return 0; 21072} 21073_ACEOF 21074rm -f conftest.$ac_objext 21075if { (ac_try="$ac_compile" 21076case "(($ac_try" in 21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21078 *) ac_try_echo=$ac_try;; 21079esac 21080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21081 (eval "$ac_compile") 2>conftest.er1 21082 ac_status=$? 21083 grep -v '^ *+' conftest.er1 >conftest.err 21084 rm -f conftest.er1 21085 cat conftest.err >&5 21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21087 (exit $ac_status); } && { 21088 test -z "$ac_cxx_werror_flag" || 21089 test ! -s conftest.err 21090 } && test -s conftest.$ac_objext; then 21091 ac_cv_cxx_mutable=yes 21092else 21093 echo "$as_me: failed program was:" >&5 21094sed 's/^/| /' conftest.$ac_ext >&5 21095 21096 ac_cv_cxx_mutable=no 21097fi 21098 21099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21100 ac_ext=cpp 21101ac_cpp='$CXXCPP $CPPFLAGS' 21102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21105 21106 21107fi 21108{ echo "$as_me:$LINENO: result: $ac_cv_cxx_mutable" >&5 21109echo "${ECHO_T}$ac_cv_cxx_mutable" >&6; } 21110if test "$ac_cv_cxx_mutable" = yes; then 21111 21112cat >>confdefs.h <<\_ACEOF 21113#define HAVE_MUTABLE 21114_ACEOF 21115 21116fi 21117 21118{ echo "$as_me:$LINENO: checking for typename" >&5 21119echo $ECHO_N "checking for typename... $ECHO_C" >&6; } 21120if test "${ac_cv_cxx_typename+set}" = set; then 21121 echo $ECHO_N "(cached) $ECHO_C" >&6 21122else 21123 ac_ext=cpp 21124ac_cpp='$CXXCPP $CPPFLAGS' 21125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21128 21129 cat >conftest.$ac_ext <<_ACEOF 21130/* confdefs.h. */ 21131_ACEOF 21132cat confdefs.h >>conftest.$ac_ext 21133cat >>conftest.$ac_ext <<_ACEOF 21134/* end confdefs.h. */ 21135template<typename T>class X {public:X(){}}; 21136int 21137main () 21138{ 21139X<float> x; return 0; 21140 ; 21141 return 0; 21142} 21143_ACEOF 21144rm -f conftest.$ac_objext 21145if { (ac_try="$ac_compile" 21146case "(($ac_try" in 21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21148 *) ac_try_echo=$ac_try;; 21149esac 21150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21151 (eval "$ac_compile") 2>conftest.er1 21152 ac_status=$? 21153 grep -v '^ *+' conftest.er1 >conftest.err 21154 rm -f conftest.er1 21155 cat conftest.err >&5 21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21157 (exit $ac_status); } && { 21158 test -z "$ac_cxx_werror_flag" || 21159 test ! -s conftest.err 21160 } && test -s conftest.$ac_objext; then 21161 ac_cv_cxx_typename=yes 21162else 21163 echo "$as_me: failed program was:" >&5 21164sed 's/^/| /' conftest.$ac_ext >&5 21165 21166 ac_cv_cxx_typename=no 21167fi 21168 21169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21170 ac_ext=cpp 21171ac_cpp='$CXXCPP $CPPFLAGS' 21172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21175 21176 21177fi 21178{ echo "$as_me:$LINENO: result: $ac_cv_cxx_typename" >&5 21179echo "${ECHO_T}$ac_cv_cxx_typename" >&6; } 21180if test "$ac_cv_cxx_typename" = yes; then 21181 21182cat >>confdefs.h <<\_ACEOF 21183#define HAVE_TYPENAME 21184_ACEOF 21185 21186fi 21187 21188{ echo "$as_me:$LINENO: checking whether the compiler supports partial specialization" >&5 21189echo $ECHO_N "checking whether the compiler supports partial specialization... $ECHO_C" >&6; } 21190if test "${ac_cv_cxx_partial_specialization+set}" = set; then 21191 echo $ECHO_N "(cached) $ECHO_C" >&6 21192else 21193 ac_ext=cpp 21194ac_cpp='$CXXCPP $CPPFLAGS' 21195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21198 21199 cat >conftest.$ac_ext <<_ACEOF 21200/* confdefs.h. */ 21201_ACEOF 21202cat confdefs.h >>conftest.$ac_ext 21203cat >>conftest.$ac_ext <<_ACEOF 21204/* end confdefs.h. */ 21205 21206template<class T, int N> class X { public : enum { e = 0 }; }; 21207template<int N> class X<double, N> { public : enum { e = 1 }; }; 21208template<class T> class X<T, 2> { public : enum { e = 2 }; }; 21209 21210int 21211main () 21212{ 21213return (X<int,3>::e == 0) && (X<double,3>::e == 1) && (X<float,2>::e == 2); 21214 ; 21215 return 0; 21216} 21217_ACEOF 21218rm -f conftest.$ac_objext 21219if { (ac_try="$ac_compile" 21220case "(($ac_try" in 21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21222 *) ac_try_echo=$ac_try;; 21223esac 21224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21225 (eval "$ac_compile") 2>conftest.er1 21226 ac_status=$? 21227 grep -v '^ *+' conftest.er1 >conftest.err 21228 rm -f conftest.er1 21229 cat conftest.err >&5 21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21231 (exit $ac_status); } && { 21232 test -z "$ac_cxx_werror_flag" || 21233 test ! -s conftest.err 21234 } && test -s conftest.$ac_objext; then 21235 ac_cv_cxx_partial_specialization=yes 21236else 21237 echo "$as_me: failed program was:" >&5 21238sed 's/^/| /' conftest.$ac_ext >&5 21239 21240 ac_cv_cxx_partial_specialization=no 21241fi 21242 21243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21244 ac_ext=cpp 21245ac_cpp='$CXXCPP $CPPFLAGS' 21246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21249 21250 21251fi 21252{ echo "$as_me:$LINENO: result: $ac_cv_cxx_partial_specialization" >&5 21253echo "${ECHO_T}$ac_cv_cxx_partial_specialization" >&6; } 21254if test "$ac_cv_cxx_partial_specialization" = yes; then 21255 21256cat >>confdefs.h <<\_ACEOF 21257#define HAVE_PARTIAL_SPECIALIZATION 21258_ACEOF 21259 21260fi 21261 21262{ echo "$as_me:$LINENO: checking for namespaces support" >&5 21263echo $ECHO_N "checking for namespaces support... $ECHO_C" >&6; } 21264if test "${ac_cv_cxx_namespaces+set}" = set; then 21265 echo $ECHO_N "(cached) $ECHO_C" >&6 21266else 21267 ac_ext=cpp 21268ac_cpp='$CXXCPP $CPPFLAGS' 21269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21272 21273 cat >conftest.$ac_ext <<_ACEOF 21274/* confdefs.h. */ 21275_ACEOF 21276cat confdefs.h >>conftest.$ac_ext 21277cat >>conftest.$ac_ext <<_ACEOF 21278/* end confdefs.h. */ 21279namespace Outer { namespace Inner { int i = 0; }} 21280int 21281main () 21282{ 21283using namespace Outer::Inner; return i; 21284 ; 21285 return 0; 21286} 21287_ACEOF 21288rm -f conftest.$ac_objext 21289if { (ac_try="$ac_compile" 21290case "(($ac_try" in 21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21292 *) ac_try_echo=$ac_try;; 21293esac 21294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21295 (eval "$ac_compile") 2>conftest.er1 21296 ac_status=$? 21297 grep -v '^ *+' conftest.er1 >conftest.err 21298 rm -f conftest.er1 21299 cat conftest.err >&5 21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21301 (exit $ac_status); } && { 21302 test -z "$ac_cxx_werror_flag" || 21303 test ! -s conftest.err 21304 } && test -s conftest.$ac_objext; then 21305 ac_cv_cxx_namespaces=yes 21306else 21307 echo "$as_me: failed program was:" >&5 21308sed 's/^/| /' conftest.$ac_ext >&5 21309 21310 ac_cv_cxx_namespaces=no 21311fi 21312 21313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21314 ac_ext=cpp 21315ac_cpp='$CXXCPP $CPPFLAGS' 21316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21319 21320 21321fi 21322{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 21323echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } 21324if test "$ac_cv_cxx_namespaces" = yes; then 21325 21326cat >>confdefs.h <<\_ACEOF 21327#define HAVE_NAMESPACES 21328_ACEOF 21329 21330fi 21331 21332{ echo "$as_me:$LINENO: checking for IEEE math library" >&5 21333echo $ECHO_N "checking for IEEE math library... $ECHO_C" >&6; } 21334if test "${ac_cv_cxx_have_ieee_math+set}" = set; then 21335 echo $ECHO_N "(cached) $ECHO_C" >&6 21336else 21337 ac_ext=cpp 21338ac_cpp='$CXXCPP $CPPFLAGS' 21339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21342 21343 ac_save_LIBS="$LIBS" 21344 LIBS="$LIBS -lm" 21345 cat >conftest.$ac_ext <<_ACEOF 21346/* confdefs.h. */ 21347_ACEOF 21348cat confdefs.h >>conftest.$ac_ext 21349cat >>conftest.$ac_ext <<_ACEOF 21350/* end confdefs.h. */ 21351 21352#ifndef _ALL_SOURCE 21353 #define _ALL_SOURCE 21354#endif 21355#ifndef _XOPEN_SOURCE 21356 #define _XOPEN_SOURCE 21357#endif 21358#ifndef _XOPEN_SOURCE_EXTENDED 21359 #define _XOPEN_SOURCE_EXTENDED 1 21360#endif 21361#include <cmath> 21362int 21363main () 21364{ 21365double x = 1.0; double y = 1.0; 21366acosh(x); asinh(x); atanh(x); 21367expm1(x); 21368erf(x); erfc(x); 21369// finite(x); 21370isnan(x); 21371j0(x); j1(x); 21372lgamma(x); 21373logb(x); log1p(x); 21374rint(x); 21375// trunc(x); 21376y0(x); y1(x); 21377return 0; 21378 ; 21379 return 0; 21380} 21381_ACEOF 21382rm -f conftest.$ac_objext conftest$ac_exeext 21383if { (ac_try="$ac_link" 21384case "(($ac_try" in 21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21386 *) ac_try_echo=$ac_try;; 21387esac 21388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21389 (eval "$ac_link") 2>conftest.er1 21390 ac_status=$? 21391 grep -v '^ *+' conftest.er1 >conftest.err 21392 rm -f conftest.er1 21393 cat conftest.err >&5 21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21395 (exit $ac_status); } && { 21396 test -z "$ac_cxx_werror_flag" || 21397 test ! -s conftest.err 21398 } && test -s conftest$ac_exeext && 21399 $as_test_x conftest$ac_exeext; then 21400 ac_cv_cxx_have_ieee_math=yes 21401else 21402 echo "$as_me: failed program was:" >&5 21403sed 's/^/| /' conftest.$ac_ext >&5 21404 21405 ac_cv_cxx_have_ieee_math=no 21406fi 21407 21408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21409 conftest$ac_exeext conftest.$ac_ext 21410 LIBS="$ac_save_LIBS" 21411 ac_ext=cpp 21412ac_cpp='$CXXCPP $CPPFLAGS' 21413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21416 21417 21418fi 21419{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ieee_math" >&5 21420echo "${ECHO_T}$ac_cv_cxx_have_ieee_math" >&6; } 21421if test "$ac_cv_cxx_have_ieee_math" = yes; then 21422 21423cat >>confdefs.h <<\_ACEOF 21424#define HAVE_IEEE_MATH 21425_ACEOF 21426 21427fi 21428 21429{ echo "$as_me:$LINENO: checking for SYSV math library" >&5 21430echo $ECHO_N "checking for SYSV math library... $ECHO_C" >&6; } 21431if test "${ac_cv_cxx_have_sysv_math+set}" = set; then 21432 echo $ECHO_N "(cached) $ECHO_C" >&6 21433else 21434 ac_ext=cpp 21435ac_cpp='$CXXCPP $CPPFLAGS' 21436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21439 21440 ac_save_LIBS="$LIBS" 21441 LIBS="$LIBS -lm" 21442 cat >conftest.$ac_ext <<_ACEOF 21443/* confdefs.h. */ 21444_ACEOF 21445cat confdefs.h >>conftest.$ac_ext 21446cat >>conftest.$ac_ext <<_ACEOF 21447/* end confdefs.h. */ 21448 21449#ifndef _ALL_SOURCE 21450 #define _ALL_SOURCE 21451#endif 21452#ifndef _XOPEN_SOURCE 21453 #define _XOPEN_SOURCE 21454#endif 21455#ifndef _XOPEN_SOURCE_EXTENDED 21456 #define _XOPEN_SOURCE_EXTENDED 1 21457#endif 21458#include <cmath> 21459int 21460main () 21461{ 21462double x = 1.0; double y = 1.0; 21463_class(x); 21464ilogb(x); 21465itrunc(x); 21466nearest(x); 21467rsqrt(x); 21468uitrunc(x); 21469 21470copysign(x,y); 21471drem(x,y); 21472fmod(x,y); 21473hypot(x,y); 21474nextafter(x,y); 21475remainder(x,y); 21476scalb(x,y); 21477unordered(x,y); 21478return 0; 21479 ; 21480 return 0; 21481} 21482_ACEOF 21483rm -f conftest.$ac_objext conftest$ac_exeext 21484if { (ac_try="$ac_link" 21485case "(($ac_try" in 21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21487 *) ac_try_echo=$ac_try;; 21488esac 21489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21490 (eval "$ac_link") 2>conftest.er1 21491 ac_status=$? 21492 grep -v '^ *+' conftest.er1 >conftest.err 21493 rm -f conftest.er1 21494 cat conftest.err >&5 21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21496 (exit $ac_status); } && { 21497 test -z "$ac_cxx_werror_flag" || 21498 test ! -s conftest.err 21499 } && test -s conftest$ac_exeext && 21500 $as_test_x conftest$ac_exeext; then 21501 ac_cv_cxx_have_sysv_math=yes 21502else 21503 echo "$as_me: failed program was:" >&5 21504sed 's/^/| /' conftest.$ac_ext >&5 21505 21506 ac_cv_cxx_have_sysv_math=no 21507fi 21508 21509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21510 conftest$ac_exeext conftest.$ac_ext 21511 LIBS="$ac_save_LIBS" 21512 ac_ext=cpp 21513ac_cpp='$CXXCPP $CPPFLAGS' 21514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21517 21518 21519fi 21520{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_sysv_math" >&5 21521echo "${ECHO_T}$ac_cv_cxx_have_sysv_math" >&6; } 21522if test "$ac_cv_cxx_have_sysv_math" = yes; then 21523 21524cat >>confdefs.h <<\_ACEOF 21525#define HAVE_SYSV_MATH 21526_ACEOF 21527 21528fi 21529 21530{ echo "$as_me:$LINENO: checking whether the compiler has complex<T>" >&5 21531echo $ECHO_N "checking whether the compiler has complex<T>... $ECHO_C" >&6; } 21532if test "${ac_cv_cxx_have_complex+set}" = set; then 21533 echo $ECHO_N "(cached) $ECHO_C" >&6 21534else 21535 21536 ac_ext=cpp 21537ac_cpp='$CXXCPP $CPPFLAGS' 21538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21541 21542 cat >conftest.$ac_ext <<_ACEOF 21543/* confdefs.h. */ 21544_ACEOF 21545cat confdefs.h >>conftest.$ac_ext 21546cat >>conftest.$ac_ext <<_ACEOF 21547/* end confdefs.h. */ 21548#include <complex> 21549#ifdef HAVE_NAMESPACES 21550using namespace std; 21551#endif 21552int 21553main () 21554{ 21555complex<float> a; complex<double> b; return 0; 21556 ; 21557 return 0; 21558} 21559_ACEOF 21560rm -f conftest.$ac_objext 21561if { (ac_try="$ac_compile" 21562case "(($ac_try" in 21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21564 *) ac_try_echo=$ac_try;; 21565esac 21566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21567 (eval "$ac_compile") 2>conftest.er1 21568 ac_status=$? 21569 grep -v '^ *+' conftest.er1 >conftest.err 21570 rm -f conftest.er1 21571 cat conftest.err >&5 21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21573 (exit $ac_status); } && { 21574 test -z "$ac_cxx_werror_flag" || 21575 test ! -s conftest.err 21576 } && test -s conftest.$ac_objext; then 21577 ac_cv_cxx_have_complex=yes 21578else 21579 echo "$as_me: failed program was:" >&5 21580sed 's/^/| /' conftest.$ac_ext >&5 21581 21582 ac_cv_cxx_have_complex=no 21583fi 21584 21585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21586 ac_ext=cpp 21587ac_cpp='$CXXCPP $CPPFLAGS' 21588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21591 21592 21593fi 21594{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_complex" >&5 21595echo "${ECHO_T}$ac_cv_cxx_have_complex" >&6; } 21596if test "$ac_cv_cxx_have_complex" = yes; then 21597 21598cat >>confdefs.h <<\_ACEOF 21599#define HAVE_COMPLEX 21600_ACEOF 21601 21602fi 21603 21604{ echo "$as_me:$LINENO: checking whether the compiler has complex math functions" >&5 21605echo $ECHO_N "checking whether the compiler has complex math functions... $ECHO_C" >&6; } 21606if test "${ac_cv_cxx_have_complex_math1+set}" = set; then 21607 echo $ECHO_N "(cached) $ECHO_C" >&6 21608else 21609 21610 ac_ext=cpp 21611ac_cpp='$CXXCPP $CPPFLAGS' 21612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21615 21616 ac_save_LIBS="$LIBS" 21617 LIBS="$LIBS -lm" 21618 cat >conftest.$ac_ext <<_ACEOF 21619/* confdefs.h. */ 21620_ACEOF 21621cat confdefs.h >>conftest.$ac_ext 21622cat >>conftest.$ac_ext <<_ACEOF 21623/* end confdefs.h. */ 21624#include <complex> 21625#ifdef HAVE_NAMESPACES 21626using namespace std; 21627#endif 21628int 21629main () 21630{ 21631complex<double> x(1.0, 1.0), y(1.0, 1.0); 21632cos(x); cosh(x); exp(x); log(x); pow(x,1); pow(x,double(2.0)); 21633pow(x, y); pow(double(2.0), x); sin(x); sinh(x); sqrt(x); tan(x); tanh(x); 21634return 0; 21635 ; 21636 return 0; 21637} 21638_ACEOF 21639rm -f conftest.$ac_objext conftest$ac_exeext 21640if { (ac_try="$ac_link" 21641case "(($ac_try" in 21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21643 *) ac_try_echo=$ac_try;; 21644esac 21645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21646 (eval "$ac_link") 2>conftest.er1 21647 ac_status=$? 21648 grep -v '^ *+' conftest.er1 >conftest.err 21649 rm -f conftest.er1 21650 cat conftest.err >&5 21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21652 (exit $ac_status); } && { 21653 test -z "$ac_cxx_werror_flag" || 21654 test ! -s conftest.err 21655 } && test -s conftest$ac_exeext && 21656 $as_test_x conftest$ac_exeext; then 21657 ac_cv_cxx_have_complex_math1=yes 21658else 21659 echo "$as_me: failed program was:" >&5 21660sed 's/^/| /' conftest.$ac_ext >&5 21661 21662 ac_cv_cxx_have_complex_math1=no 21663fi 21664 21665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21666 conftest$ac_exeext conftest.$ac_ext 21667 LIBS="$ac_save_LIBS" 21668 ac_ext=cpp 21669ac_cpp='$CXXCPP $CPPFLAGS' 21670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21673 21674 21675fi 21676{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_complex_math1" >&5 21677echo "${ECHO_T}$ac_cv_cxx_have_complex_math1" >&6; } 21678if test "$ac_cv_cxx_have_complex_math1" = yes; then 21679 21680cat >>confdefs.h <<\_ACEOF 21681#define HAVE_COMPLEX_MATH1 21682_ACEOF 21683 21684fi 21685 21686{ echo "$as_me:$LINENO: checking whether the compiler has more complex math functions" >&5 21687echo $ECHO_N "checking whether the compiler has more complex math functions... $ECHO_C" >&6; } 21688if test "${ac_cv_cxx_have_complex_math2+set}" = set; then 21689 echo $ECHO_N "(cached) $ECHO_C" >&6 21690else 21691 21692 ac_ext=cpp 21693ac_cpp='$CXXCPP $CPPFLAGS' 21694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21697 21698 ac_save_LIBS="$LIBS" 21699 LIBS="$LIBS -lm" 21700 cat >conftest.$ac_ext <<_ACEOF 21701/* confdefs.h. */ 21702_ACEOF 21703cat confdefs.h >>conftest.$ac_ext 21704cat >>conftest.$ac_ext <<_ACEOF 21705/* end confdefs.h. */ 21706#include <complex> 21707#ifdef HAVE_NAMESPACES 21708using namespace std; 21709#endif 21710int 21711main () 21712{ 21713complex<double> x(1.0, 1.0), y(1.0, 1.0); 21714acos(x); asin(x); atan(x); atan2(x,y); atan2(x, double(3.0)); 21715atan2(double(3.0), x); log10(x); return 0; 21716 ; 21717 return 0; 21718} 21719_ACEOF 21720rm -f conftest.$ac_objext conftest$ac_exeext 21721if { (ac_try="$ac_link" 21722case "(($ac_try" in 21723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21724 *) ac_try_echo=$ac_try;; 21725esac 21726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21727 (eval "$ac_link") 2>conftest.er1 21728 ac_status=$? 21729 grep -v '^ *+' conftest.er1 >conftest.err 21730 rm -f conftest.er1 21731 cat conftest.err >&5 21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21733 (exit $ac_status); } && { 21734 test -z "$ac_cxx_werror_flag" || 21735 test ! -s conftest.err 21736 } && test -s conftest$ac_exeext && 21737 $as_test_x conftest$ac_exeext; then 21738 ac_cv_cxx_have_complex_math2=yes 21739else 21740 echo "$as_me: failed program was:" >&5 21741sed 's/^/| /' conftest.$ac_ext >&5 21742 21743 ac_cv_cxx_have_complex_math2=no 21744fi 21745 21746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21747 conftest$ac_exeext conftest.$ac_ext 21748 LIBS="$ac_save_LIBS" 21749 ac_ext=cpp 21750ac_cpp='$CXXCPP $CPPFLAGS' 21751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21754 21755 21756fi 21757{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_complex_math2" >&5 21758echo "${ECHO_T}$ac_cv_cxx_have_complex_math2" >&6; } 21759if test "$ac_cv_cxx_have_complex_math2" = yes; then 21760 21761cat >>confdefs.h <<\_ACEOF 21762#define HAVE_COMPLEX_MATH2 21763_ACEOF 21764 21765fi 21766 21767 21768 21769ac_config_files="$ac_config_files Makefile tvmet-config tvmet.spec include/Makefile include/tvmet/Makefile include/tvmet/config/Makefile include/tvmet/meta/Makefile include/tvmet/loop/Makefile include/tvmet/util/Makefile include/tvmet/xpr/Makefile include/tvmet/config/config-vc71.h doc/Makefile doc/Doxyfile doc/footer.html doc/tvmet.sty testsuite/Makefile tests/Makefile examples/Makefile benchmark/Makefile" 21770 21771ac_config_commands="$ac_config_commands default" 21772 21773 21774 21775test "x$prefix" = xNONE && prefix=$ac_default_prefix 21776# Let make expand exec_prefix. 21777test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21778 21779DEFS=-DHAVE_CONFIG_H 21780 21781ac_libobjs= 21782ac_ltlibobjs= 21783for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21784 # 1. Remove the extension, and $U if already installed. 21785 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21786 ac_i=`echo "$ac_i" | sed "$ac_script"` 21787 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21788 # will be set to the directory where LIBOBJS objects are built. 21789 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21790 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21791done 21792LIBOBJS=$ac_libobjs 21793 21794LTLIBOBJS=$ac_ltlibobjs 21795 21796 21797if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21798 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21799Usually this means the macro was only invoked conditionally." >&5 21800echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21801Usually this means the macro was only invoked conditionally." >&2;} 21802 { (exit 1); exit 1; }; } 21803fi 21804if test -z "${CONFIG_DOC_TRUE}" && test -z "${CONFIG_DOC_FALSE}"; then 21805 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_DOC\" was never defined. 21806Usually this means the macro was only invoked conditionally." >&5 21807echo "$as_me: error: conditional \"CONFIG_DOC\" was never defined. 21808Usually this means the macro was only invoked conditionally." >&2;} 21809 { (exit 1); exit 1; }; } 21810fi 21811if test -z "${CONFIG_CPPUNIT_TRUE}" && test -z "${CONFIG_CPPUNIT_FALSE}"; then 21812 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_CPPUNIT\" was never defined. 21813Usually this means the macro was only invoked conditionally." >&5 21814echo "$as_me: error: conditional \"CONFIG_CPPUNIT\" was never defined. 21815Usually this means the macro was only invoked conditionally." >&2;} 21816 { (exit 1); exit 1; }; } 21817fi 21818if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21819 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21820Usually this means the macro was only invoked conditionally." >&5 21821echo "$as_me: error: conditional \"AMDEP\" was never defined. 21822Usually this means the macro was only invoked conditionally." >&2;} 21823 { (exit 1); exit 1; }; } 21824fi 21825if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21826 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21827Usually this means the macro was only invoked conditionally." >&5 21828echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21829Usually this means the macro was only invoked conditionally." >&2;} 21830 { (exit 1); exit 1; }; } 21831fi 21832if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21833 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21834Usually this means the macro was only invoked conditionally." >&5 21835echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21836Usually this means the macro was only invoked conditionally." >&2;} 21837 { (exit 1); exit 1; }; } 21838fi 21839 21840: ${CONFIG_STATUS=./config.status} 21841ac_clean_files_save=$ac_clean_files 21842ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21843{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21844echo "$as_me: creating $CONFIG_STATUS" >&6;} 21845cat >$CONFIG_STATUS <<_ACEOF 21846#! $SHELL 21847# Generated by $as_me. 21848# Run this file to recreate the current configuration. 21849# Compiler output produced by configure, useful for debugging 21850# configure, is in config.log if it exists. 21851 21852debug=false 21853ac_cs_recheck=false 21854ac_cs_silent=false 21855SHELL=\${CONFIG_SHELL-$SHELL} 21856_ACEOF 21857 21858cat >>$CONFIG_STATUS <<\_ACEOF 21859## --------------------- ## 21860## M4sh Initialization. ## 21861## --------------------- ## 21862 21863# Be more Bourne compatible 21864DUALCASE=1; export DUALCASE # for MKS sh 21865if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21866 emulate sh 21867 NULLCMD=: 21868 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21869 # is contrary to our usage. Disable this feature. 21870 alias -g '${1+"$@"}'='"$@"' 21871 setopt NO_GLOB_SUBST 21872else 21873 case `(set -o) 2>/dev/null` in 21874 *posix*) set -o posix ;; 21875esac 21876 21877fi 21878 21879 21880 21881 21882# PATH needs CR 21883# Avoid depending upon Character Ranges. 21884as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21885as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21886as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21887as_cr_digits='0123456789' 21888as_cr_alnum=$as_cr_Letters$as_cr_digits 21889 21890# The user is always right. 21891if test "${PATH_SEPARATOR+set}" != set; then 21892 echo "#! /bin/sh" >conf$$.sh 21893 echo "exit 0" >>conf$$.sh 21894 chmod +x conf$$.sh 21895 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21896 PATH_SEPARATOR=';' 21897 else 21898 PATH_SEPARATOR=: 21899 fi 21900 rm -f conf$$.sh 21901fi 21902 21903# Support unset when possible. 21904if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21905 as_unset=unset 21906else 21907 as_unset=false 21908fi 21909 21910 21911# IFS 21912# We need space, tab and new line, in precisely that order. Quoting is 21913# there to prevent editors from complaining about space-tab. 21914# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21915# splitting by setting IFS to empty value.) 21916as_nl=' 21917' 21918IFS=" "" $as_nl" 21919 21920# Find who we are. Look in the path if we contain no directory separator. 21921case $0 in 21922 *[\\/]* ) as_myself=$0 ;; 21923 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21924for as_dir in $PATH 21925do 21926 IFS=$as_save_IFS 21927 test -z "$as_dir" && as_dir=. 21928 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21929done 21930IFS=$as_save_IFS 21931 21932 ;; 21933esac 21934# We did not find ourselves, most probably we were run as `sh COMMAND' 21935# in which case we are not to be found in the path. 21936if test "x$as_myself" = x; then 21937 as_myself=$0 21938fi 21939if test ! -f "$as_myself"; then 21940 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21941 { (exit 1); exit 1; } 21942fi 21943 21944# Work around bugs in pre-3.0 UWIN ksh. 21945for as_var in ENV MAIL MAILPATH 21946do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21947done 21948PS1='$ ' 21949PS2='> ' 21950PS4='+ ' 21951 21952# NLS nuisances. 21953for as_var in \ 21954 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21955 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21956 LC_TELEPHONE LC_TIME 21957do 21958 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21959 eval $as_var=C; export $as_var 21960 else 21961 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21962 fi 21963done 21964 21965# Required to use basename. 21966if expr a : '\(a\)' >/dev/null 2>&1 && 21967 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21968 as_expr=expr 21969else 21970 as_expr=false 21971fi 21972 21973if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21974 as_basename=basename 21975else 21976 as_basename=false 21977fi 21978 21979 21980# Name of the executable. 21981as_me=`$as_basename -- "$0" || 21982$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21983 X"$0" : 'X\(//\)$' \| \ 21984 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21985echo X/"$0" | 21986 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21987 s//\1/ 21988 q 21989 } 21990 /^X\/\(\/\/\)$/{ 21991 s//\1/ 21992 q 21993 } 21994 /^X\/\(\/\).*/{ 21995 s//\1/ 21996 q 21997 } 21998 s/.*/./; q'` 21999 22000# CDPATH. 22001$as_unset CDPATH 22002 22003 22004 22005 as_lineno_1=$LINENO 22006 as_lineno_2=$LINENO 22007 test "x$as_lineno_1" != "x$as_lineno_2" && 22008 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22009 22010 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22011 # uniformly replaced by the line number. The first 'sed' inserts a 22012 # line-number line after each line using $LINENO; the second 'sed' 22013 # does the real work. The second script uses 'N' to pair each 22014 # line-number line with the line containing $LINENO, and appends 22015 # trailing '-' during substitution so that $LINENO is not a special 22016 # case at line end. 22017 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22018 # scripts with optimization help from Paolo Bonzini. Blame Lee 22019 # E. McMahon (1931-1989) for sed's syntax. :-) 22020 sed -n ' 22021 p 22022 /[$]LINENO/= 22023 ' <$as_myself | 22024 sed ' 22025 s/[$]LINENO.*/&-/ 22026 t lineno 22027 b 22028 :lineno 22029 N 22030 :loop 22031 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22032 t loop 22033 s/-\n.*// 22034 ' >$as_me.lineno && 22035 chmod +x "$as_me.lineno" || 22036 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22037 { (exit 1); exit 1; }; } 22038 22039 # Don't try to exec as it changes $[0], causing all sort of problems 22040 # (the dirname of $[0] is not the place where we might find the 22041 # original and so on. Autoconf is especially sensitive to this). 22042 . "./$as_me.lineno" 22043 # Exit status is that of the last command. 22044 exit 22045} 22046 22047 22048if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22049 as_dirname=dirname 22050else 22051 as_dirname=false 22052fi 22053 22054ECHO_C= ECHO_N= ECHO_T= 22055case `echo -n x` in 22056-n*) 22057 case `echo 'x\c'` in 22058 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22059 *) ECHO_C='\c';; 22060 esac;; 22061*) 22062 ECHO_N='-n';; 22063esac 22064 22065if expr a : '\(a\)' >/dev/null 2>&1 && 22066 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22067 as_expr=expr 22068else 22069 as_expr=false 22070fi 22071 22072rm -f conf$$ conf$$.exe conf$$.file 22073if test -d conf$$.dir; then 22074 rm -f conf$$.dir/conf$$.file 22075else 22076 rm -f conf$$.dir 22077 mkdir conf$$.dir 22078fi 22079echo >conf$$.file 22080if ln -s conf$$.file conf$$ 2>/dev/null; then 22081 as_ln_s='ln -s' 22082 # ... but there are two gotchas: 22083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22085 # In both cases, we have to default to `cp -p'. 22086 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22087 as_ln_s='cp -p' 22088elif ln conf$$.file conf$$ 2>/dev/null; then 22089 as_ln_s=ln 22090else 22091 as_ln_s='cp -p' 22092fi 22093rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22094rmdir conf$$.dir 2>/dev/null 22095 22096if mkdir -p . 2>/dev/null; then 22097 as_mkdir_p=: 22098else 22099 test -d ./-p && rmdir ./-p 22100 as_mkdir_p=false 22101fi 22102 22103if test -x / >/dev/null 2>&1; then 22104 as_test_x='test -x' 22105else 22106 if ls -dL / >/dev/null 2>&1; then 22107 as_ls_L_option=L 22108 else 22109 as_ls_L_option= 22110 fi 22111 as_test_x=' 22112 eval sh -c '\'' 22113 if test -d "$1"; then 22114 test -d "$1/."; 22115 else 22116 case $1 in 22117 -*)set "./$1";; 22118 esac; 22119 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22120 ???[sx]*):;;*)false;;esac;fi 22121 '\'' sh 22122 ' 22123fi 22124as_executable_p=$as_test_x 22125 22126# Sed expression to map a string onto a valid CPP name. 22127as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22128 22129# Sed expression to map a string onto a valid variable name. 22130as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22131 22132 22133exec 6>&1 22134 22135# Save the log message, to keep $[0] and so on meaningful, and to 22136# report actual input values of CONFIG_FILES etc. instead of their 22137# values after options handling. 22138ac_log=" 22139This file was extended by tvmet $as_me 1.7.2, which was 22140generated by GNU Autoconf 2.61. Invocation command line was 22141 22142 CONFIG_FILES = $CONFIG_FILES 22143 CONFIG_HEADERS = $CONFIG_HEADERS 22144 CONFIG_LINKS = $CONFIG_LINKS 22145 CONFIG_COMMANDS = $CONFIG_COMMANDS 22146 $ $0 $@ 22147 22148on `(hostname || uname -n) 2>/dev/null | sed 1q` 22149" 22150 22151_ACEOF 22152 22153cat >>$CONFIG_STATUS <<_ACEOF 22154# Files that config.status was made for. 22155config_files="$ac_config_files" 22156config_headers="$ac_config_headers" 22157config_commands="$ac_config_commands" 22158 22159_ACEOF 22160 22161cat >>$CONFIG_STATUS <<\_ACEOF 22162ac_cs_usage="\ 22163\`$as_me' instantiates files from templates according to the 22164current configuration. 22165 22166Usage: $0 [OPTIONS] [FILE]... 22167 22168 -h, --help print this help, then exit 22169 -V, --version print version number and configuration settings, then exit 22170 -q, --quiet do not print progress messages 22171 -d, --debug don't remove temporary files 22172 --recheck update $as_me by reconfiguring in the same conditions 22173 --file=FILE[:TEMPLATE] 22174 instantiate the configuration file FILE 22175 --header=FILE[:TEMPLATE] 22176 instantiate the configuration header FILE 22177 22178Configuration files: 22179$config_files 22180 22181Configuration headers: 22182$config_headers 22183 22184Configuration commands: 22185$config_commands 22186 22187Report bugs to <bug-autoconf@gnu.org>." 22188 22189_ACEOF 22190cat >>$CONFIG_STATUS <<_ACEOF 22191ac_cs_version="\\ 22192tvmet config.status 1.7.2 22193configured by $0, generated by GNU Autoconf 2.61, 22194 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22195 22196Copyright (C) 2006 Free Software Foundation, Inc. 22197This config.status script is free software; the Free Software Foundation 22198gives unlimited permission to copy, distribute and modify it." 22199 22200ac_pwd='$ac_pwd' 22201srcdir='$srcdir' 22202INSTALL='$INSTALL' 22203MKDIR_P='$MKDIR_P' 22204_ACEOF 22205 22206cat >>$CONFIG_STATUS <<\_ACEOF 22207# If no file are specified by the user, then we need to provide default 22208# value. By we need to know if files were specified by the user. 22209ac_need_defaults=: 22210while test $# != 0 22211do 22212 case $1 in 22213 --*=*) 22214 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22215 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22216 ac_shift=: 22217 ;; 22218 *) 22219 ac_option=$1 22220 ac_optarg=$2 22221 ac_shift=shift 22222 ;; 22223 esac 22224 22225 case $ac_option in 22226 # Handling of the options. 22227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22228 ac_cs_recheck=: ;; 22229 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22230 echo "$ac_cs_version"; exit ;; 22231 --debug | --debu | --deb | --de | --d | -d ) 22232 debug=: ;; 22233 --file | --fil | --fi | --f ) 22234 $ac_shift 22235 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22236 ac_need_defaults=false;; 22237 --header | --heade | --head | --hea ) 22238 $ac_shift 22239 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22240 ac_need_defaults=false;; 22241 --he | --h) 22242 # Conflict between --help and --header 22243 { echo "$as_me: error: ambiguous option: $1 22244Try \`$0 --help' for more information." >&2 22245 { (exit 1); exit 1; }; };; 22246 --help | --hel | -h ) 22247 echo "$ac_cs_usage"; exit ;; 22248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22249 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22250 ac_cs_silent=: ;; 22251 22252 # This is an error. 22253 -*) { echo "$as_me: error: unrecognized option: $1 22254Try \`$0 --help' for more information." >&2 22255 { (exit 1); exit 1; }; } ;; 22256 22257 *) ac_config_targets="$ac_config_targets $1" 22258 ac_need_defaults=false ;; 22259 22260 esac 22261 shift 22262done 22263 22264ac_configure_extra_args= 22265 22266if $ac_cs_silent; then 22267 exec 6>/dev/null 22268 ac_configure_extra_args="$ac_configure_extra_args --silent" 22269fi 22270 22271_ACEOF 22272cat >>$CONFIG_STATUS <<_ACEOF 22273if \$ac_cs_recheck; then 22274 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22275 CONFIG_SHELL=$SHELL 22276 export CONFIG_SHELL 22277 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22278fi 22279 22280_ACEOF 22281cat >>$CONFIG_STATUS <<\_ACEOF 22282exec 5>>config.log 22283{ 22284 echo 22285 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22286## Running $as_me. ## 22287_ASBOX 22288 echo "$ac_log" 22289} >&5 22290 22291_ACEOF 22292cat >>$CONFIG_STATUS <<_ACEOF 22293# 22294# INIT-COMMANDS 22295# 22296AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22297 22298 22299_ACEOF 22300 22301cat >>$CONFIG_STATUS <<\_ACEOF 22302 22303# Handling of arguments. 22304for ac_config_target in $ac_config_targets 22305do 22306 case $ac_config_target in 22307 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; 22308 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22309 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22310 "tvmet-config") CONFIG_FILES="$CONFIG_FILES tvmet-config" ;; 22311 "tvmet.spec") CONFIG_FILES="$CONFIG_FILES tvmet.spec" ;; 22312 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22313 "include/tvmet/Makefile") CONFIG_FILES="$CONFIG_FILES include/tvmet/Makefile" ;; 22314 "include/tvmet/config/Makefile") CONFIG_FILES="$CONFIG_FILES include/tvmet/config/Makefile" ;; 22315 "include/tvmet/meta/Makefile") CONFIG_FILES="$CONFIG_FILES include/tvmet/meta/Makefile" ;; 22316 "include/tvmet/loop/Makefile") CONFIG_FILES="$CONFIG_FILES include/tvmet/loop/Makefile" ;; 22317 "include/tvmet/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/tvmet/util/Makefile" ;; 22318 "include/tvmet/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES include/tvmet/xpr/Makefile" ;; 22319 "include/tvmet/config/config-vc71.h") CONFIG_FILES="$CONFIG_FILES include/tvmet/config/config-vc71.h" ;; 22320 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22321 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; 22322 "doc/footer.html") CONFIG_FILES="$CONFIG_FILES doc/footer.html" ;; 22323 "doc/tvmet.sty") CONFIG_FILES="$CONFIG_FILES doc/tvmet.sty" ;; 22324 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 22325 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 22326 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 22327 "benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark/Makefile" ;; 22328 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 22329 22330 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22331echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22332 { (exit 1); exit 1; }; };; 22333 esac 22334done 22335 22336 22337# If the user did not use the arguments to specify the items to instantiate, 22338# then the envvar interface is used. Set only those that are not. 22339# We use the long form for the default assignment because of an extremely 22340# bizarre bug on SunOS 4.1.3. 22341if $ac_need_defaults; then 22342 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22343 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22344 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22345fi 22346 22347# Have a temporary directory for convenience. Make it in the build tree 22348# simply because there is no reason against having it here, and in addition, 22349# creating and moving files from /tmp can sometimes cause problems. 22350# Hook for its removal unless debugging. 22351# Note that there is a small window in which the directory will not be cleaned: 22352# after its creation but before its name has been assigned to `$tmp'. 22353$debug || 22354{ 22355 tmp= 22356 trap 'exit_status=$? 22357 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22358' 0 22359 trap '{ (exit 1); exit 1; }' 1 2 13 15 22360} 22361# Create a (secure) tmp directory for tmp files. 22362 22363{ 22364 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22365 test -n "$tmp" && test -d "$tmp" 22366} || 22367{ 22368 tmp=./conf$$-$RANDOM 22369 (umask 077 && mkdir "$tmp") 22370} || 22371{ 22372 echo "$me: cannot create a temporary directory in ." >&2 22373 { (exit 1); exit 1; } 22374} 22375 22376# 22377# Set up the sed scripts for CONFIG_FILES section. 22378# 22379 22380# No need to generate the scripts if there are no CONFIG_FILES. 22381# This happens for instance when ./config.status config.h 22382if test -n "$CONFIG_FILES"; then 22383 22384_ACEOF 22385 22386 22387 22388ac_delim='%!_!# ' 22389for ac_last_try in false false false false false :; do 22390 cat >conf$$subs.sed <<_ACEOF 22391SHELL!$SHELL$ac_delim 22392PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22393PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22394PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22395PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22396PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22397PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22398exec_prefix!$exec_prefix$ac_delim 22399prefix!$prefix$ac_delim 22400program_transform_name!$program_transform_name$ac_delim 22401bindir!$bindir$ac_delim 22402sbindir!$sbindir$ac_delim 22403libexecdir!$libexecdir$ac_delim 22404datarootdir!$datarootdir$ac_delim 22405datadir!$datadir$ac_delim 22406sysconfdir!$sysconfdir$ac_delim 22407sharedstatedir!$sharedstatedir$ac_delim 22408localstatedir!$localstatedir$ac_delim 22409includedir!$includedir$ac_delim 22410oldincludedir!$oldincludedir$ac_delim 22411docdir!$docdir$ac_delim 22412infodir!$infodir$ac_delim 22413htmldir!$htmldir$ac_delim 22414dvidir!$dvidir$ac_delim 22415pdfdir!$pdfdir$ac_delim 22416psdir!$psdir$ac_delim 22417libdir!$libdir$ac_delim 22418localedir!$localedir$ac_delim 22419mandir!$mandir$ac_delim 22420DEFS!$DEFS$ac_delim 22421ECHO_C!$ECHO_C$ac_delim 22422ECHO_N!$ECHO_N$ac_delim 22423ECHO_T!$ECHO_T$ac_delim 22424LIBS!$LIBS$ac_delim 22425build_alias!$build_alias$ac_delim 22426host_alias!$host_alias$ac_delim 22427target_alias!$target_alias$ac_delim 22428build!$build$ac_delim 22429build_cpu!$build_cpu$ac_delim 22430build_vendor!$build_vendor$ac_delim 22431build_os!$build_os$ac_delim 22432host!$host$ac_delim 22433host_cpu!$host_cpu$ac_delim 22434host_vendor!$host_vendor$ac_delim 22435host_os!$host_os$ac_delim 22436INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22437INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22438INSTALL_DATA!$INSTALL_DATA$ac_delim 22439am__isrc!$am__isrc$ac_delim 22440CYGPATH_W!$CYGPATH_W$ac_delim 22441PACKAGE!$PACKAGE$ac_delim 22442VERSION!$VERSION$ac_delim 22443ACLOCAL!$ACLOCAL$ac_delim 22444AUTOCONF!$AUTOCONF$ac_delim 22445AUTOMAKE!$AUTOMAKE$ac_delim 22446AUTOHEADER!$AUTOHEADER$ac_delim 22447MAKEINFO!$MAKEINFO$ac_delim 22448install_sh!$install_sh$ac_delim 22449STRIP!$STRIP$ac_delim 22450INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 22451mkdir_p!$mkdir_p$ac_delim 22452AWK!$AWK$ac_delim 22453SET_MAKE!$SET_MAKE$ac_delim 22454am__leading_dot!$am__leading_dot$ac_delim 22455AMTAR!$AMTAR$ac_delim 22456am__tar!$am__tar$ac_delim 22457am__untar!$am__untar$ac_delim 22458MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 22459MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 22460MAINT!$MAINT$ac_delim 22461CXX_OPTIMIZE_FLAGS!$CXX_OPTIMIZE_FLAGS$ac_delim 22462CXX_DEBUG_FLAGS!$CXX_DEBUG_FLAGS$ac_delim 22463CXX_WARN_FLAGS!$CXX_WARN_FLAGS$ac_delim 22464DOXYGEN!$DOXYGEN$ac_delim 22465DOXYGEN_HAVE_DOT!$DOXYGEN_HAVE_DOT$ac_delim 22466CONFIG_DOC_TRUE!$CONFIG_DOC_TRUE$ac_delim 22467CONFIG_DOC_FALSE!$CONFIG_DOC_FALSE$ac_delim 22468LATEX_BATCHMODE!$LATEX_BATCHMODE$ac_delim 22469LATEX_MODE!$LATEX_MODE$ac_delim 22470CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim 22471CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim 22472CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim 22473CONFIG_CPPUNIT_TRUE!$CONFIG_CPPUNIT_TRUE$ac_delim 22474CONFIG_CPPUNIT_FALSE!$CONFIG_CPPUNIT_FALSE$ac_delim 22475CXX!$CXX$ac_delim 22476CXXFLAGS!$CXXFLAGS$ac_delim 22477LDFLAGS!$LDFLAGS$ac_delim 22478CPPFLAGS!$CPPFLAGS$ac_delim 22479ac_ct_CXX!$ac_ct_CXX$ac_delim 22480EXEEXT!$EXEEXT$ac_delim 22481OBJEXT!$OBJEXT$ac_delim 22482DEPDIR!$DEPDIR$ac_delim 22483am__include!$am__include$ac_delim 22484am__quote!$am__quote$ac_delim 22485AMDEP_TRUE!$AMDEP_TRUE$ac_delim 22486AMDEP_FALSE!$AMDEP_FALSE$ac_delim 22487AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 22488_ACEOF 22489 22490 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22491 break 22492 elif $ac_last_try; then 22493 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22494echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22495 { (exit 1); exit 1; }; } 22496 else 22497 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22498 fi 22499done 22500 22501ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22502if test -n "$ac_eof"; then 22503 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22504 ac_eof=`expr $ac_eof + 1` 22505fi 22506 22507cat >>$CONFIG_STATUS <<_ACEOF 22508cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22509/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22510_ACEOF 22511sed ' 22512s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22513s/^/s,@/; s/!/@,|#_!!_#|/ 22514:n 22515t n 22516s/'"$ac_delim"'$/,g/; t 22517s/$/\\/; p 22518N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22519' >>$CONFIG_STATUS <conf$$subs.sed 22520rm -f conf$$subs.sed 22521cat >>$CONFIG_STATUS <<_ACEOF 22522CEOF$ac_eof 22523_ACEOF 22524 22525 22526ac_delim='%!_!# ' 22527for ac_last_try in false false false false false :; do 22528 cat >conf$$subs.sed <<_ACEOF 22529CXXDEPMODE!$CXXDEPMODE$ac_delim 22530am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 22531am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 22532LN_S!$LN_S$ac_delim 22533CC!$CC$ac_delim 22534CFLAGS!$CFLAGS$ac_delim 22535ac_ct_CC!$ac_ct_CC$ac_delim 22536CCDEPMODE!$CCDEPMODE$ac_delim 22537am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 22538am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 22539GREP!$GREP$ac_delim 22540EGREP!$EGREP$ac_delim 22541ECHO!$ECHO$ac_delim 22542AR!$AR$ac_delim 22543RANLIB!$RANLIB$ac_delim 22544CPP!$CPP$ac_delim 22545CXXCPP!$CXXCPP$ac_delim 22546F77!$F77$ac_delim 22547FFLAGS!$FFLAGS$ac_delim 22548ac_ct_F77!$ac_ct_F77$ac_delim 22549LIBTOOL!$LIBTOOL$ac_delim 22550LIBOBJS!$LIBOBJS$ac_delim 22551LTLIBOBJS!$LTLIBOBJS$ac_delim 22552_ACEOF 22553 22554 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then 22555 break 22556 elif $ac_last_try; then 22557 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22558echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22559 { (exit 1); exit 1; }; } 22560 else 22561 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22562 fi 22563done 22564 22565ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22566if test -n "$ac_eof"; then 22567 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22568 ac_eof=`expr $ac_eof + 1` 22569fi 22570 22571cat >>$CONFIG_STATUS <<_ACEOF 22572cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22573/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22574_ACEOF 22575sed ' 22576s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22577s/^/s,@/; s/!/@,|#_!!_#|/ 22578:n 22579t n 22580s/'"$ac_delim"'$/,g/; t 22581s/$/\\/; p 22582N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22583' >>$CONFIG_STATUS <conf$$subs.sed 22584rm -f conf$$subs.sed 22585cat >>$CONFIG_STATUS <<_ACEOF 22586:end 22587s/|#_!!_#|//g 22588CEOF$ac_eof 22589_ACEOF 22590 22591 22592# VPATH may cause trouble with some makes, so we remove $(srcdir), 22593# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22594# trailing colons and then remove the whole line if VPATH becomes empty 22595# (actually we leave an empty line to preserve line numbers). 22596if test "x$srcdir" = x.; then 22597 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22598s/:*\$(srcdir):*/:/ 22599s/:*\${srcdir}:*/:/ 22600s/:*@srcdir@:*/:/ 22601s/^\([^=]*=[ ]*\):*/\1/ 22602s/:*$// 22603s/^[^=]*=[ ]*$// 22604}' 22605fi 22606 22607cat >>$CONFIG_STATUS <<\_ACEOF 22608fi # test -n "$CONFIG_FILES" 22609 22610 22611for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22612do 22613 case $ac_tag in 22614 :[FHLC]) ac_mode=$ac_tag; continue;; 22615 esac 22616 case $ac_mode$ac_tag in 22617 :[FHL]*:*);; 22618 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22619echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22620 { (exit 1); exit 1; }; };; 22621 :[FH]-) ac_tag=-:-;; 22622 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22623 esac 22624 ac_save_IFS=$IFS 22625 IFS=: 22626 set x $ac_tag 22627 IFS=$ac_save_IFS 22628 shift 22629 ac_file=$1 22630 shift 22631 22632 case $ac_mode in 22633 :L) ac_source=$1;; 22634 :[FH]) 22635 ac_file_inputs= 22636 for ac_f 22637 do 22638 case $ac_f in 22639 -) ac_f="$tmp/stdin";; 22640 *) # Look for the file first in the build tree, then in the source tree 22641 # (if the path is not absolute). The absolute path cannot be DOS-style, 22642 # because $ac_f cannot contain `:'. 22643 test -f "$ac_f" || 22644 case $ac_f in 22645 [\\/$]*) false;; 22646 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22647 esac || 22648 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22649echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22650 { (exit 1); exit 1; }; };; 22651 esac 22652 ac_file_inputs="$ac_file_inputs $ac_f" 22653 done 22654 22655 # Let's still pretend it is `configure' which instantiates (i.e., don't 22656 # use $as_me), people would be surprised to read: 22657 # /* config.h. Generated by config.status. */ 22658 configure_input="Generated from "`IFS=: 22659 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22660 if test x"$ac_file" != x-; then 22661 configure_input="$ac_file. $configure_input" 22662 { echo "$as_me:$LINENO: creating $ac_file" >&5 22663echo "$as_me: creating $ac_file" >&6;} 22664 fi 22665 22666 case $ac_tag in 22667 *:-:* | *:-) cat >"$tmp/stdin";; 22668 esac 22669 ;; 22670 esac 22671 22672 ac_dir=`$as_dirname -- "$ac_file" || 22673$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22674 X"$ac_file" : 'X\(//\)[^/]' \| \ 22675 X"$ac_file" : 'X\(//\)$' \| \ 22676 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22677echo X"$ac_file" | 22678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22679 s//\1/ 22680 q 22681 } 22682 /^X\(\/\/\)[^/].*/{ 22683 s//\1/ 22684 q 22685 } 22686 /^X\(\/\/\)$/{ 22687 s//\1/ 22688 q 22689 } 22690 /^X\(\/\).*/{ 22691 s//\1/ 22692 q 22693 } 22694 s/.*/./; q'` 22695 { as_dir="$ac_dir" 22696 case $as_dir in #( 22697 -*) as_dir=./$as_dir;; 22698 esac 22699 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22700 as_dirs= 22701 while :; do 22702 case $as_dir in #( 22703 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22704 *) as_qdir=$as_dir;; 22705 esac 22706 as_dirs="'$as_qdir' $as_dirs" 22707 as_dir=`$as_dirname -- "$as_dir" || 22708$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22709 X"$as_dir" : 'X\(//\)[^/]' \| \ 22710 X"$as_dir" : 'X\(//\)$' \| \ 22711 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22712echo X"$as_dir" | 22713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22714 s//\1/ 22715 q 22716 } 22717 /^X\(\/\/\)[^/].*/{ 22718 s//\1/ 22719 q 22720 } 22721 /^X\(\/\/\)$/{ 22722 s//\1/ 22723 q 22724 } 22725 /^X\(\/\).*/{ 22726 s//\1/ 22727 q 22728 } 22729 s/.*/./; q'` 22730 test -d "$as_dir" && break 22731 done 22732 test -z "$as_dirs" || eval "mkdir $as_dirs" 22733 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22734echo "$as_me: error: cannot create directory $as_dir" >&2;} 22735 { (exit 1); exit 1; }; }; } 22736 ac_builddir=. 22737 22738case "$ac_dir" in 22739.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22740*) 22741 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22742 # A ".." for each directory in $ac_dir_suffix. 22743 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22744 case $ac_top_builddir_sub in 22745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22747 esac ;; 22748esac 22749ac_abs_top_builddir=$ac_pwd 22750ac_abs_builddir=$ac_pwd$ac_dir_suffix 22751# for backward compatibility: 22752ac_top_builddir=$ac_top_build_prefix 22753 22754case $srcdir in 22755 .) # We are building in place. 22756 ac_srcdir=. 22757 ac_top_srcdir=$ac_top_builddir_sub 22758 ac_abs_top_srcdir=$ac_pwd ;; 22759 [\\/]* | ?:[\\/]* ) # Absolute name. 22760 ac_srcdir=$srcdir$ac_dir_suffix; 22761 ac_top_srcdir=$srcdir 22762 ac_abs_top_srcdir=$srcdir ;; 22763 *) # Relative name. 22764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22765 ac_top_srcdir=$ac_top_build_prefix$srcdir 22766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22767esac 22768ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22769 22770 22771 case $ac_mode in 22772 :F) 22773 # 22774 # CONFIG_FILE 22775 # 22776 22777 case $INSTALL in 22778 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22779 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22780 esac 22781 ac_MKDIR_P=$MKDIR_P 22782 case $MKDIR_P in 22783 [\\/$]* | ?:[\\/]* ) ;; 22784 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22785 esac 22786_ACEOF 22787 22788cat >>$CONFIG_STATUS <<\_ACEOF 22789# If the template does not know about datarootdir, expand it. 22790# FIXME: This hack should be removed a few years after 2.60. 22791ac_datarootdir_hack=; ac_datarootdir_seen= 22792 22793case `sed -n '/datarootdir/ { 22794 p 22795 q 22796} 22797/@datadir@/p 22798/@docdir@/p 22799/@infodir@/p 22800/@localedir@/p 22801/@mandir@/p 22802' $ac_file_inputs` in 22803*datarootdir*) ac_datarootdir_seen=yes;; 22804*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22805 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22806echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22807_ACEOF 22808cat >>$CONFIG_STATUS <<_ACEOF 22809 ac_datarootdir_hack=' 22810 s&@datadir@&$datadir&g 22811 s&@docdir@&$docdir&g 22812 s&@infodir@&$infodir&g 22813 s&@localedir@&$localedir&g 22814 s&@mandir@&$mandir&g 22815 s&\\\${datarootdir}&$datarootdir&g' ;; 22816esac 22817_ACEOF 22818 22819# Neutralize VPATH when `$srcdir' = `.'. 22820# Shell code in configure.ac might set extrasub. 22821# FIXME: do we really want to maintain this feature? 22822cat >>$CONFIG_STATUS <<_ACEOF 22823 sed "$ac_vpsub 22824$extrasub 22825_ACEOF 22826cat >>$CONFIG_STATUS <<\_ACEOF 22827:t 22828/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22829s&@configure_input@&$configure_input&;t t 22830s&@top_builddir@&$ac_top_builddir_sub&;t t 22831s&@srcdir@&$ac_srcdir&;t t 22832s&@abs_srcdir@&$ac_abs_srcdir&;t t 22833s&@top_srcdir@&$ac_top_srcdir&;t t 22834s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22835s&@builddir@&$ac_builddir&;t t 22836s&@abs_builddir@&$ac_abs_builddir&;t t 22837s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22838s&@INSTALL@&$ac_INSTALL&;t t 22839s&@MKDIR_P@&$ac_MKDIR_P&;t t 22840$ac_datarootdir_hack 22841" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22842 22843test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22844 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22845 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22846 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22847which seems to be undefined. Please make sure it is defined." >&5 22848echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22849which seems to be undefined. Please make sure it is defined." >&2;} 22850 22851 rm -f "$tmp/stdin" 22852 case $ac_file in 22853 -) cat "$tmp/out"; rm -f "$tmp/out";; 22854 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22855 esac 22856 ;; 22857 :H) 22858 # 22859 # CONFIG_HEADER 22860 # 22861_ACEOF 22862 22863# Transform confdefs.h into a sed script `conftest.defines', that 22864# substitutes the proper values into config.h.in to produce config.h. 22865rm -f conftest.defines conftest.tail 22866# First, append a space to every undef/define line, to ease matching. 22867echo 's/$/ /' >conftest.defines 22868# Then, protect against being on the right side of a sed subst, or in 22869# an unquoted here document, in config.status. If some macros were 22870# called several times there might be several #defines for the same 22871# symbol, which is useless. But do not sort them, since the last 22872# AC_DEFINE must be honored. 22873ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22874# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22875# NAME is the cpp macro being defined, VALUE is the value it is being given. 22876# PARAMS is the parameter list in the macro definition--in most cases, it's 22877# just an empty string. 22878ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22879ac_dB='\\)[ (].*,\\1define\\2' 22880ac_dC=' ' 22881ac_dD=' ,' 22882 22883uniq confdefs.h | 22884 sed -n ' 22885 t rset 22886 :rset 22887 s/^[ ]*#[ ]*define[ ][ ]*// 22888 t ok 22889 d 22890 :ok 22891 s/[\\&,]/\\&/g 22892 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22893 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22894 ' >>conftest.defines 22895 22896# Remove the space that was appended to ease matching. 22897# Then replace #undef with comments. This is necessary, for 22898# example, in the case of _POSIX_SOURCE, which is predefined and required 22899# on some systems where configure will not decide to define it. 22900# (The regexp can be short, since the line contains either #define or #undef.) 22901echo 's/ $// 22902s,^[ #]*u.*,/* & */,' >>conftest.defines 22903 22904# Break up conftest.defines: 22905ac_max_sed_lines=50 22906 22907# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22908# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22909# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22910# et cetera. 22911ac_in='$ac_file_inputs' 22912ac_out='"$tmp/out1"' 22913ac_nxt='"$tmp/out2"' 22914 22915while : 22916do 22917 # Write a here document: 22918 cat >>$CONFIG_STATUS <<_ACEOF 22919 # First, check the format of the line: 22920 cat >"\$tmp/defines.sed" <<\\CEOF 22921/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22922/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22923b 22924:def 22925_ACEOF 22926 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22927 echo 'CEOF 22928 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22929 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22930 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22931 grep . conftest.tail >/dev/null || break 22932 rm -f conftest.defines 22933 mv conftest.tail conftest.defines 22934done 22935rm -f conftest.defines conftest.tail 22936 22937echo "ac_result=$ac_in" >>$CONFIG_STATUS 22938cat >>$CONFIG_STATUS <<\_ACEOF 22939 if test x"$ac_file" != x-; then 22940 echo "/* $configure_input */" >"$tmp/config.h" 22941 cat "$ac_result" >>"$tmp/config.h" 22942 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22943 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22944echo "$as_me: $ac_file is unchanged" >&6;} 22945 else 22946 rm -f $ac_file 22947 mv "$tmp/config.h" $ac_file 22948 fi 22949 else 22950 echo "/* $configure_input */" 22951 cat "$ac_result" 22952 fi 22953 rm -f "$tmp/out12" 22954# Compute $ac_file's index in $config_headers. 22955_am_stamp_count=1 22956for _am_header in $config_headers :; do 22957 case $_am_header in 22958 $ac_file | $ac_file:* ) 22959 break ;; 22960 * ) 22961 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22962 esac 22963done 22964echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 22965$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22966 X$ac_file : 'X\(//\)[^/]' \| \ 22967 X$ac_file : 'X\(//\)$' \| \ 22968 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 22969echo X$ac_file | 22970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22971 s//\1/ 22972 q 22973 } 22974 /^X\(\/\/\)[^/].*/{ 22975 s//\1/ 22976 q 22977 } 22978 /^X\(\/\/\)$/{ 22979 s//\1/ 22980 q 22981 } 22982 /^X\(\/\).*/{ 22983 s//\1/ 22984 q 22985 } 22986 s/.*/./; q'`/stamp-h$_am_stamp_count 22987 ;; 22988 22989 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22990echo "$as_me: executing $ac_file commands" >&6;} 22991 ;; 22992 esac 22993 22994 22995 case $ac_file$ac_mode in 22996 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22997 # Strip MF so we end up with the name of the file. 22998 mf=`echo "$mf" | sed -e 's/:.*$//'` 22999 # Check whether this is an Automake generated Makefile or not. 23000 # We used to match only the files named `Makefile.in', but 23001 # some people rename them; so instead we look at the file content. 23002 # Grep'ing the first line is not enough: some people post-process 23003 # each Makefile.in and add a new line on top of each file to say so. 23004 # Grep'ing the whole file is not good either: AIX grep has a line 23005 # limit of 2048, but all sed's we know have understand at least 4000. 23006 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 23007 dirpart=`$as_dirname -- "$mf" || 23008$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23009 X"$mf" : 'X\(//\)[^/]' \| \ 23010 X"$mf" : 'X\(//\)$' \| \ 23011 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23012echo X"$mf" | 23013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23014 s//\1/ 23015 q 23016 } 23017 /^X\(\/\/\)[^/].*/{ 23018 s//\1/ 23019 q 23020 } 23021 /^X\(\/\/\)$/{ 23022 s//\1/ 23023 q 23024 } 23025 /^X\(\/\).*/{ 23026 s//\1/ 23027 q 23028 } 23029 s/.*/./; q'` 23030 else 23031 continue 23032 fi 23033 # Extract the definition of DEPDIR, am__include, and am__quote 23034 # from the Makefile without running `make'. 23035 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23036 test -z "$DEPDIR" && continue 23037 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23038 test -z "am__include" && continue 23039 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23040 # When using ansi2knr, U may be empty or an underscore; expand it 23041 U=`sed -n 's/^U = //p' < "$mf"` 23042 # Find all dependency output files, they are included files with 23043 # $(DEPDIR) in their names. We invoke sed twice because it is the 23044 # simplest approach to changing $(DEPDIR) to its actual value in the 23045 # expansion. 23046 for file in `sed -n " 23047 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23048 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23049 # Make sure the directory exists. 23050 test -f "$dirpart/$file" && continue 23051 fdir=`$as_dirname -- "$file" || 23052$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23053 X"$file" : 'X\(//\)[^/]' \| \ 23054 X"$file" : 'X\(//\)$' \| \ 23055 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23056echo X"$file" | 23057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23058 s//\1/ 23059 q 23060 } 23061 /^X\(\/\/\)[^/].*/{ 23062 s//\1/ 23063 q 23064 } 23065 /^X\(\/\/\)$/{ 23066 s//\1/ 23067 q 23068 } 23069 /^X\(\/\).*/{ 23070 s//\1/ 23071 q 23072 } 23073 s/.*/./; q'` 23074 { as_dir=$dirpart/$fdir 23075 case $as_dir in #( 23076 -*) as_dir=./$as_dir;; 23077 esac 23078 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23079 as_dirs= 23080 while :; do 23081 case $as_dir in #( 23082 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23083 *) as_qdir=$as_dir;; 23084 esac 23085 as_dirs="'$as_qdir' $as_dirs" 23086 as_dir=`$as_dirname -- "$as_dir" || 23087$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23088 X"$as_dir" : 'X\(//\)[^/]' \| \ 23089 X"$as_dir" : 'X\(//\)$' \| \ 23090 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23091echo X"$as_dir" | 23092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23093 s//\1/ 23094 q 23095 } 23096 /^X\(\/\/\)[^/].*/{ 23097 s//\1/ 23098 q 23099 } 23100 /^X\(\/\/\)$/{ 23101 s//\1/ 23102 q 23103 } 23104 /^X\(\/\).*/{ 23105 s//\1/ 23106 q 23107 } 23108 s/.*/./; q'` 23109 test -d "$as_dir" && break 23110 done 23111 test -z "$as_dirs" || eval "mkdir $as_dirs" 23112 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23113echo "$as_me: error: cannot create directory $as_dir" >&2;} 23114 { (exit 1); exit 1; }; }; } 23115 # echo "creating $dirpart/$file" 23116 echo '# dummy' > "$dirpart/$file" 23117 done 23118done 23119 ;; 23120 "default":C) chmod a+x tvmet-config ;; 23121 23122 esac 23123done # for ac_tag 23124 23125 23126{ (exit 0); exit 0; } 23127_ACEOF 23128chmod +x $CONFIG_STATUS 23129ac_clean_files=$ac_clean_files_save 23130 23131 23132# configure is writing to config.log, and then calls config.status. 23133# config.status does its own redirection, appending to config.log. 23134# Unfortunately, on DOS this fails, as config.log is still kept open 23135# by configure, so config.status won't be able to write to it; its 23136# output is simply discarded. So we exec the FD to /dev/null, 23137# effectively closing config.log, so it can be properly (re)opened and 23138# appended to by config.status. When coming back to configure, we 23139# need to make the FD available again. 23140if test "$no_create" != yes; then 23141 ac_cs_success=: 23142 ac_config_status_args= 23143 test "$silent" = yes && 23144 ac_config_status_args="$ac_config_status_args --quiet" 23145 exec 5>/dev/null 23146 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23147 exec 5>>config.log 23148 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23149 # would make configure fail if this is the last instruction. 23150 $ac_cs_success || { (exit 1); exit 1; } 23151fi 23152 23153 23154 23155ac_prefix_conf_OUT=`echo include/tvmet/config.h` 23156ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e 'y:abcdefghijklmnopqrstuvwxyz./,-:ABCDEFGHIJKLMNOPQRSTUVWXYZ____:'` 23157ac_prefix_conf_PKG=`echo $PACKAGE` 23158ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e 'y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:'` 23159ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e 'y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:' -e '/^[0-9]/s/^/_/'` 23160ac_prefix_conf_INP=`echo config/config.h` 23161if test "$ac_prefix_conf_INP" = "_"; then 23162 case $ac_prefix_conf_OUT in 23163 */*) ac_prefix_conf_INP=`basename $ac_prefix_conf_OUT` 23164 ;; 23165 *-*) ac_prefix_conf_INP=`echo $ac_prefix_conf_OUT | sed -e 's/[a-zA-Z0-9_]*-//'` 23166 ;; 23167 *) ac_prefix_conf_INP=config.h 23168 ;; 23169 esac 23170fi 23171if test -z "$ac_prefix_conf_PKG" ; then 23172 { { echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5 23173echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;} 23174 { (exit 1); exit 1; }; } 23175else 23176 { echo "$as_me:$LINENO: result: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 23177echo "${ECHO_T}creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6; } 23178 if test -f $ac_prefix_conf_INP ; then 23179 $as_dirname -- /* automatically generated */ || 23180$as_expr X/* automatically generated */ : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23181 X/* automatically generated */ : 'X\(//\)[^/]' \| \ 23182 X/* automatically generated */ : 'X\(//\)$' \| \ 23183 X/* automatically generated */ : 'X\(/\)' \| . 2>/dev/null || 23184echo X/* automatically generated */ | 23185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23186 s//\1/ 23187 q 23188 } 23189 /^X\(\/\/\)[^/].*/{ 23190 s//\1/ 23191 q 23192 } 23193 /^X\(\/\/\)$/{ 23194 s//\1/ 23195 q 23196 } 23197 /^X\(\/\).*/{ 23198 s//\1/ 23199 q 23200 } 23201 s/.*/./; q' 23202 echo '#ifndef '$ac_prefix_conf_DEF >$ac_prefix_conf_OUT 23203 echo '#define '$ac_prefix_conf_DEF' 1' >>$ac_prefix_conf_OUT 23204 echo ' ' >>$ac_prefix_conf_OUT 23205 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$ac_prefix_conf_OUT 23206 23207 echo 's/#undef *\([A-Z_]\)/#undef '$ac_prefix_conf_UPP'_\1/' >conftest.sed 23208 echo 's/#undef *\([a-z]\)/#undef '$ac_prefix_conf_LOW'_\1/' >>conftest.sed 23209 echo 's/#define *\([A-Z_][A-Za-z0-9_]*\)\(.*\)/#ifndef '$ac_prefix_conf_UPP"_\\1 \\" >>conftest.sed 23210 echo '#define '$ac_prefix_conf_UPP"_\\1 \\2 \\" >>conftest.sed 23211 echo '#endif/' >>conftest.sed 23212 echo 's/#define *\([a-z][A-Za-z0-9_]*\)\(.*\)/#ifndef '$ac_prefix_conf_LOW"_\\1 \\" >>conftest.sed 23213 echo '#define '$ac_prefix_conf_LOW"_\\1 \\2 \\" >>conftest.sed 23214 echo '#endif/' >>conftest.sed 23215 sed -f conftest.sed $ac_prefix_conf_INP >>$ac_prefix_conf_OUT 23216 echo ' ' >>$ac_prefix_conf_OUT 23217 echo '/*' $ac_prefix_conf_DEF '*/' >>$ac_prefix_conf_OUT 23218 echo '#endif' >>$ac_prefix_conf_OUT 23219 else 23220 { { echo "$as_me:$LINENO: error: input file $ac_prefix_conf_IN does not exist, skip generating $ac_prefix_conf_OUT" >&5 23221echo "$as_me: error: input file $ac_prefix_conf_IN does not exist, skip generating $ac_prefix_conf_OUT" >&2;} 23222 { (exit 1); exit 1; }; } 23223 fi 23224 rm -f conftest.* 23225fi 23226 23227 23228echo " 23229Configuration for $PACKAGE $VERSION: 23230~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 23231 23232The following optional features are enabled: 23233 23234Source code location : $srcdir 23235tvmet's unit-tests available : `if test "x$CONFIG_CPPUNIT" = xyes; then echo yes; else echo no; fi` 23236build documentation : `if test "x$CONFIG_DOC" = xyes; then echo yes; else echo no; fi` 23237using LaTeX non-stop mode : `if test "x$CONFIG_DOC_LATEX_NONSTOP" = xyes; then echo yes; else echo no; fi` 23238graphs and diagrams : `if test "x$DOXYGEN_HAVE_DOT" = xyes; then echo -n yes; else echo no; fi` 23239Install path : $prefix 23240 23241Compiler Flags used: 23242 23243CXX : $CXX 23244CXXFLAGS : $CXXFLAGS 23245 23246The configure script has generated makefiles for your platform. 23247You have several options now: 23248 23249make Depends on configure's flags given, build the docs, 23250 build $PACKAGE $VERSION and run the regression tests. 23251make docs Makes the docs using doxygen (if enabled). 23252make check Make the unit tests (if CppUnit available). 23253make install Install tvmet. 23254make uninstall Uninstall tvmet. 23255" 23256