1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553# Check that we are running under the correct shell. 554SHELL=${CONFIG_SHELL-/bin/sh} 555 556case X$ECHO in 557X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561esac 562 563echo=${ECHO-echo} 564if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576fi 577 578if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582$* 583EOF 584 exit 0 585fi 586 587# The HP-UX ksh and POSIX shell print the target directory to stdout 588# if CDPATH is set. 589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591if test -z "$ECHO"; then 592if test "X${echo_test_string+set}" != Xset; then 593# find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603fi 604 605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689fi 690fi 691 692# Copy echo and quote the copy suitably for passing to libtool from 693# the Makefile, instead of quoting the original, which is used later. 694ECHO=$echo 695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697fi 698 699 700 701 702tagnames=${tagnames+${tagnames},}CXX 703 704tagnames=${tagnames+${tagnames},}F77 705 706exec 7<&0 </dev/null 6>&1 707 708# Name of the host. 709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710# so uname gets run too. 711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713# 714# Initializations. 715# 716ac_default_prefix=/usr/local 717ac_clean_files= 718ac_config_libobj_dir=. 719LIBOBJS= 720cross_compiling=no 721subdirs= 722MFLAGS= 723MAKEFLAGS= 724SHELL=${CONFIG_SHELL-/bin/sh} 725 726# Identity of this package. 727PACKAGE_NAME= 728PACKAGE_TARNAME= 729PACKAGE_VERSION= 730PACKAGE_STRING= 731PACKAGE_BUGREPORT= 732 733ac_unique_file="dcg/main.c" 734# Factoring default headers for most tests. 735ac_includes_default="\ 736#include <stdio.h> 737#ifdef HAVE_SYS_TYPES_H 738# include <sys/types.h> 739#endif 740#ifdef HAVE_SYS_STAT_H 741# include <sys/stat.h> 742#endif 743#ifdef STDC_HEADERS 744# include <stdlib.h> 745# include <stddef.h> 746#else 747# ifdef HAVE_STDLIB_H 748# include <stdlib.h> 749# endif 750#endif 751#ifdef HAVE_STRING_H 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753# include <memory.h> 754# endif 755# include <string.h> 756#endif 757#ifdef HAVE_STRINGS_H 758# include <strings.h> 759#endif 760#ifdef HAVE_INTTYPES_H 761# include <inttypes.h> 762#endif 763#ifdef HAVE_STDINT_H 764# include <stdint.h> 765#endif 766#ifdef HAVE_UNISTD_H 767# include <unistd.h> 768#endif" 769 770ac_subst_vars='SHELL 771PATH_SEPARATOR 772PACKAGE_NAME 773PACKAGE_TARNAME 774PACKAGE_VERSION 775PACKAGE_STRING 776PACKAGE_BUGREPORT 777exec_prefix 778prefix 779program_transform_name 780bindir 781sbindir 782libexecdir 783datarootdir 784datadir 785sysconfdir 786sharedstatedir 787localstatedir 788includedir 789oldincludedir 790docdir 791infodir 792htmldir 793dvidir 794pdfdir 795psdir 796libdir 797localedir 798mandir 799DEFS 800ECHO_C 801ECHO_N 802ECHO_T 803LIBS 804build_alias 805host_alias 806target_alias 807INSTALL_PROGRAM 808INSTALL_SCRIPT 809INSTALL_DATA 810CYGPATH_W 811PACKAGE 812VERSION 813ACLOCAL 814AUTOCONF 815AUTOMAKE 816AUTOHEADER 817MAKEINFO 818install_sh 819STRIP 820INSTALL_STRIP_PROGRAM 821mkdir_p 822AWK 823SET_MAKE 824am__leading_dot 825AMTAR 826am__tar 827am__untar 828build 829build_cpu 830build_vendor 831build_os 832host 833host_cpu 834host_vendor 835host_os 836CC 837CFLAGS 838LDFLAGS 839CPPFLAGS 840ac_ct_CC 841EXEEXT 842OBJEXT 843DEPDIR 844am__include 845am__quote 846AMDEP_TRUE 847AMDEP_FALSE 848AMDEPBACKSLASH 849CCDEPMODE 850am__fastdepCC_TRUE 851am__fastdepCC_FALSE 852GREP 853EGREP 854LN_S 855ECHO 856AR 857RANLIB 858CPP 859CXX 860CXXFLAGS 861ac_ct_CXX 862CXXDEPMODE 863am__fastdepCXX_TRUE 864am__fastdepCXX_FALSE 865CXXCPP 866F77 867FFLAGS 868ac_ct_F77 869LIBTOOL 870LIBTOOL_DEPS 871LEX 872LEX_OUTPUT_ROOT 873LEXLIB 874BISON 875YACC 876DBG_OPT 877LIBOBJS 878LTLIBOBJS' 879ac_subst_files='' 880 ac_precious_vars='build_alias 881host_alias 882target_alias 883CC 884CFLAGS 885LDFLAGS 886LIBS 887CPPFLAGS 888CPP 889CXX 890CXXFLAGS 891CCC 892CXXCPP 893F77 894FFLAGS' 895 896 897# Initialize some variables set by options. 898ac_init_help= 899ac_init_version=false 900# The variables have the same names as the options, with 901# dashes changed to underlines. 902cache_file=/dev/null 903exec_prefix=NONE 904no_create= 905no_recursion= 906prefix=NONE 907program_prefix=NONE 908program_suffix=NONE 909program_transform_name=s,x,x, 910silent= 911site= 912srcdir= 913verbose= 914x_includes=NONE 915x_libraries=NONE 916 917# Installation directory options. 918# These are left unexpanded so users can "make install exec_prefix=/foo" 919# and all the variables that are supposed to be based on exec_prefix 920# by default will actually change. 921# Use braces instead of parens because sh, perl, etc. also accept them. 922# (The list follows the same order as the GNU Coding Standards.) 923bindir='${exec_prefix}/bin' 924sbindir='${exec_prefix}/sbin' 925libexecdir='${exec_prefix}/libexec' 926datarootdir='${prefix}/share' 927datadir='${datarootdir}' 928sysconfdir='${prefix}/etc' 929sharedstatedir='${prefix}/com' 930localstatedir='${prefix}/var' 931includedir='${prefix}/include' 932oldincludedir='/usr/include' 933docdir='${datarootdir}/doc/${PACKAGE}' 934infodir='${datarootdir}/info' 935htmldir='${docdir}' 936dvidir='${docdir}' 937pdfdir='${docdir}' 938psdir='${docdir}' 939libdir='${exec_prefix}/lib' 940localedir='${datarootdir}/locale' 941mandir='${datarootdir}/man' 942 943ac_prev= 944ac_dashdash= 945for ac_option 946do 947 # If the previous option needs an argument, assign it. 948 if test -n "$ac_prev"; then 949 eval $ac_prev=\$ac_option 950 ac_prev= 951 continue 952 fi 953 954 case $ac_option in 955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 956 *) ac_optarg=yes ;; 957 esac 958 959 # Accept the important Cygnus configure options, so we can diagnose typos. 960 961 case $ac_dashdash$ac_option in 962 --) 963 ac_dashdash=yes ;; 964 965 -bindir | --bindir | --bindi | --bind | --bin | --bi) 966 ac_prev=bindir ;; 967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 968 bindir=$ac_optarg ;; 969 970 -build | --build | --buil | --bui | --bu) 971 ac_prev=build_alias ;; 972 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 973 build_alias=$ac_optarg ;; 974 975 -cache-file | --cache-file | --cache-fil | --cache-fi \ 976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 977 ac_prev=cache_file ;; 978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 980 cache_file=$ac_optarg ;; 981 982 --config-cache | -C) 983 cache_file=config.cache ;; 984 985 -datadir | --datadir | --datadi | --datad) 986 ac_prev=datadir ;; 987 -datadir=* | --datadir=* | --datadi=* | --datad=*) 988 datadir=$ac_optarg ;; 989 990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 991 | --dataroo | --dataro | --datar) 992 ac_prev=datarootdir ;; 993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 995 datarootdir=$ac_optarg ;; 996 997 -disable-* | --disable-*) 998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 999 # Reject names that are not valid shell variable names. 1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1002 { (exit 1); exit 1; }; } 1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1004 eval enable_$ac_feature=no ;; 1005 1006 -docdir | --docdir | --docdi | --doc | --do) 1007 ac_prev=docdir ;; 1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1009 docdir=$ac_optarg ;; 1010 1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1012 ac_prev=dvidir ;; 1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1014 dvidir=$ac_optarg ;; 1015 1016 -enable-* | --enable-*) 1017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1018 # Reject names that are not valid shell variable names. 1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1021 { (exit 1); exit 1; }; } 1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1023 eval enable_$ac_feature=\$ac_optarg ;; 1024 1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1027 | --exec | --exe | --ex) 1028 ac_prev=exec_prefix ;; 1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1031 | --exec=* | --exe=* | --ex=*) 1032 exec_prefix=$ac_optarg ;; 1033 1034 -gas | --gas | --ga | --g) 1035 # Obsolete; use --with-gas. 1036 with_gas=yes ;; 1037 1038 -help | --help | --hel | --he | -h) 1039 ac_init_help=long ;; 1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1041 ac_init_help=recursive ;; 1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1043 ac_init_help=short ;; 1044 1045 -host | --host | --hos | --ho) 1046 ac_prev=host_alias ;; 1047 -host=* | --host=* | --hos=* | --ho=*) 1048 host_alias=$ac_optarg ;; 1049 1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1051 ac_prev=htmldir ;; 1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1053 | --ht=*) 1054 htmldir=$ac_optarg ;; 1055 1056 -includedir | --includedir | --includedi | --included | --include \ 1057 | --includ | --inclu | --incl | --inc) 1058 ac_prev=includedir ;; 1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1060 | --includ=* | --inclu=* | --incl=* | --inc=*) 1061 includedir=$ac_optarg ;; 1062 1063 -infodir | --infodir | --infodi | --infod | --info | --inf) 1064 ac_prev=infodir ;; 1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1066 infodir=$ac_optarg ;; 1067 1068 -libdir | --libdir | --libdi | --libd) 1069 ac_prev=libdir ;; 1070 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1071 libdir=$ac_optarg ;; 1072 1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1074 | --libexe | --libex | --libe) 1075 ac_prev=libexecdir ;; 1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1077 | --libexe=* | --libex=* | --libe=*) 1078 libexecdir=$ac_optarg ;; 1079 1080 -localedir | --localedir | --localedi | --localed | --locale) 1081 ac_prev=localedir ;; 1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1083 localedir=$ac_optarg ;; 1084 1085 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1086 | --localstate | --localstat | --localsta | --localst | --locals) 1087 ac_prev=localstatedir ;; 1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1090 localstatedir=$ac_optarg ;; 1091 1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1093 ac_prev=mandir ;; 1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1095 mandir=$ac_optarg ;; 1096 1097 -nfp | --nfp | --nf) 1098 # Obsolete; use --without-fp. 1099 with_fp=no ;; 1100 1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1102 | --no-cr | --no-c | -n) 1103 no_create=yes ;; 1104 1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1107 no_recursion=yes ;; 1108 1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1111 | --oldin | --oldi | --old | --ol | --o) 1112 ac_prev=oldincludedir ;; 1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1116 oldincludedir=$ac_optarg ;; 1117 1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1119 ac_prev=prefix ;; 1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1121 prefix=$ac_optarg ;; 1122 1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1124 | --program-pre | --program-pr | --program-p) 1125 ac_prev=program_prefix ;; 1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1128 program_prefix=$ac_optarg ;; 1129 1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1131 | --program-suf | --program-su | --program-s) 1132 ac_prev=program_suffix ;; 1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1135 program_suffix=$ac_optarg ;; 1136 1137 -program-transform-name | --program-transform-name \ 1138 | --program-transform-nam | --program-transform-na \ 1139 | --program-transform-n | --program-transform- \ 1140 | --program-transform | --program-transfor \ 1141 | --program-transfo | --program-transf \ 1142 | --program-trans | --program-tran \ 1143 | --progr-tra | --program-tr | --program-t) 1144 ac_prev=program_transform_name ;; 1145 -program-transform-name=* | --program-transform-name=* \ 1146 | --program-transform-nam=* | --program-transform-na=* \ 1147 | --program-transform-n=* | --program-transform-=* \ 1148 | --program-transform=* | --program-transfor=* \ 1149 | --program-transfo=* | --program-transf=* \ 1150 | --program-trans=* | --program-tran=* \ 1151 | --progr-tra=* | --program-tr=* | --program-t=*) 1152 program_transform_name=$ac_optarg ;; 1153 1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1155 ac_prev=pdfdir ;; 1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1157 pdfdir=$ac_optarg ;; 1158 1159 -psdir | --psdir | --psdi | --psd | --ps) 1160 ac_prev=psdir ;; 1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1162 psdir=$ac_optarg ;; 1163 1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1165 | -silent | --silent | --silen | --sile | --sil) 1166 silent=yes ;; 1167 1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1169 ac_prev=sbindir ;; 1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1171 | --sbi=* | --sb=*) 1172 sbindir=$ac_optarg ;; 1173 1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1176 | --sharedst | --shareds | --shared | --share | --shar \ 1177 | --sha | --sh) 1178 ac_prev=sharedstatedir ;; 1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1182 | --sha=* | --sh=*) 1183 sharedstatedir=$ac_optarg ;; 1184 1185 -site | --site | --sit) 1186 ac_prev=site ;; 1187 -site=* | --site=* | --sit=*) 1188 site=$ac_optarg ;; 1189 1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1191 ac_prev=srcdir ;; 1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1193 srcdir=$ac_optarg ;; 1194 1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1196 | --syscon | --sysco | --sysc | --sys | --sy) 1197 ac_prev=sysconfdir ;; 1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1200 sysconfdir=$ac_optarg ;; 1201 1202 -target | --target | --targe | --targ | --tar | --ta | --t) 1203 ac_prev=target_alias ;; 1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1205 target_alias=$ac_optarg ;; 1206 1207 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1208 verbose=yes ;; 1209 1210 -version | --version | --versio | --versi | --vers | -V) 1211 ac_init_version=: ;; 1212 1213 -with-* | --with-*) 1214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1217 { echo "$as_me: error: invalid package name: $ac_package" >&2 1218 { (exit 1); exit 1; }; } 1219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1220 eval with_$ac_package=\$ac_optarg ;; 1221 1222 -without-* | --without-*) 1223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1226 { echo "$as_me: error: invalid package name: $ac_package" >&2 1227 { (exit 1); exit 1; }; } 1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1229 eval with_$ac_package=no ;; 1230 1231 --x) 1232 # Obsolete; use --with-x. 1233 with_x=yes ;; 1234 1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1236 | --x-incl | --x-inc | --x-in | --x-i) 1237 ac_prev=x_includes ;; 1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1240 x_includes=$ac_optarg ;; 1241 1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1244 ac_prev=x_libraries ;; 1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1247 x_libraries=$ac_optarg ;; 1248 1249 -*) { echo "$as_me: error: unrecognized option: $ac_option 1250Try \`$0 --help' for more information." >&2 1251 { (exit 1); exit 1; }; } 1252 ;; 1253 1254 *=*) 1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1256 # Reject names that are not valid shell variable names. 1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1259 { (exit 1); exit 1; }; } 1260 eval $ac_envvar=\$ac_optarg 1261 export $ac_envvar ;; 1262 1263 *) 1264 # FIXME: should be removed in autoconf 3.0. 1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1269 ;; 1270 1271 esac 1272done 1273 1274if test -n "$ac_prev"; then 1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1276 { echo "$as_me: error: missing argument to $ac_option" >&2 1277 { (exit 1); exit 1; }; } 1278fi 1279 1280# Be sure to have absolute directory names. 1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1282 datadir sysconfdir sharedstatedir localstatedir includedir \ 1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1284 libdir localedir mandir 1285do 1286 eval ac_val=\$$ac_var 1287 case $ac_val in 1288 [\\/$]* | ?:[\\/]* ) continue;; 1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1290 esac 1291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1292 { (exit 1); exit 1; }; } 1293done 1294 1295# There might be people who depend on the old broken behavior: `$host' 1296# used to hold the argument of --host etc. 1297# FIXME: To remove some day. 1298build=$build_alias 1299host=$host_alias 1300target=$target_alias 1301 1302# FIXME: To remove some day. 1303if test "x$host_alias" != x; then 1304 if test "x$build_alias" = x; then 1305 cross_compiling=maybe 1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1307 If a cross compiler is detected then cross compile mode will be used." >&2 1308 elif test "x$build_alias" != "x$host_alias"; then 1309 cross_compiling=yes 1310 fi 1311fi 1312 1313ac_tool_prefix= 1314test -n "$host_alias" && ac_tool_prefix=$host_alias- 1315 1316test "$silent" = yes && exec 6>/dev/null 1317 1318 1319ac_pwd=`pwd` && test -n "$ac_pwd" && 1320ac_ls_di=`ls -di .` && 1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1322 { echo "$as_me: error: Working directory cannot be determined" >&2 1323 { (exit 1); exit 1; }; } 1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1325 { echo "$as_me: error: pwd does not report name of working directory" >&2 1326 { (exit 1); exit 1; }; } 1327 1328 1329# Find the source files, if location was not specified. 1330if test -z "$srcdir"; then 1331 ac_srcdir_defaulted=yes 1332 # Try the directory containing this script, then the parent directory. 1333 ac_confdir=`$as_dirname -- "$0" || 1334$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1335 X"$0" : 'X\(//\)[^/]' \| \ 1336 X"$0" : 'X\(//\)$' \| \ 1337 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1338echo X"$0" | 1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\/\)[^/].*/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)$/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\).*/{ 1352 s//\1/ 1353 q 1354 } 1355 s/.*/./; q'` 1356 srcdir=$ac_confdir 1357 if test ! -r "$srcdir/$ac_unique_file"; then 1358 srcdir=.. 1359 fi 1360else 1361 ac_srcdir_defaulted=no 1362fi 1363if test ! -r "$srcdir/$ac_unique_file"; then 1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1366 { (exit 1); exit 1; }; } 1367fi 1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1369ac_abs_confdir=`( 1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1371 { (exit 1); exit 1; }; } 1372 pwd)` 1373# When building in place, set srcdir=. 1374if test "$ac_abs_confdir" = "$ac_pwd"; then 1375 srcdir=. 1376fi 1377# Remove unnecessary trailing slashes from srcdir. 1378# Double slashes in file names in object file debugging info 1379# mess up M-x gdb in Emacs. 1380case $srcdir in 1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1382esac 1383for ac_var in $ac_precious_vars; do 1384 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_env_${ac_var}_value=\$${ac_var} 1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1388done 1389 1390# 1391# Report the --help message. 1392# 1393if test "$ac_init_help" = "long"; then 1394 # Omit some internal or obsolete options to make the list less imposing. 1395 # This message is too long to be a string in the A/UX 3.1 sh. 1396 cat <<_ACEOF 1397\`configure' configures this package to adapt to many kinds of systems. 1398 1399Usage: $0 [OPTION]... [VAR=VALUE]... 1400 1401To assign environment variables (e.g., CC, CFLAGS...), specify them as 1402VAR=VALUE. See below for descriptions of some of the useful variables. 1403 1404Defaults for the options are specified in brackets. 1405 1406Configuration: 1407 -h, --help display this help and exit 1408 --help=short display options specific to this package 1409 --help=recursive display the short help of all the included packages 1410 -V, --version display version information and exit 1411 -q, --quiet, --silent do not print \`checking...' messages 1412 --cache-file=FILE cache test results in FILE [disabled] 1413 -C, --config-cache alias for \`--cache-file=config.cache' 1414 -n, --no-create do not create output files 1415 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1416 1417Installation directories: 1418 --prefix=PREFIX install architecture-independent files in PREFIX 1419 [$ac_default_prefix] 1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1421 [PREFIX] 1422 1423By default, \`make install' will install all the files in 1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1425an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1426for instance \`--prefix=\$HOME'. 1427 1428For better control, use the options below. 1429 1430Fine tuning of the installation directories: 1431 --bindir=DIR user executables [EPREFIX/bin] 1432 --sbindir=DIR system admin executables [EPREFIX/sbin] 1433 --libexecdir=DIR program executables [EPREFIX/libexec] 1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1437 --libdir=DIR object code libraries [EPREFIX/lib] 1438 --includedir=DIR C header files [PREFIX/include] 1439 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1442 --infodir=DIR info documentation [DATAROOTDIR/info] 1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1444 --mandir=DIR man documentation [DATAROOTDIR/man] 1445 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1446 --htmldir=DIR html documentation [DOCDIR] 1447 --dvidir=DIR dvi documentation [DOCDIR] 1448 --pdfdir=DIR pdf documentation [DOCDIR] 1449 --psdir=DIR ps documentation [DOCDIR] 1450_ACEOF 1451 1452 cat <<\_ACEOF 1453 1454Program names: 1455 --program-prefix=PREFIX prepend PREFIX to installed program names 1456 --program-suffix=SUFFIX append SUFFIX to installed program names 1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1458 1459System types: 1460 --build=BUILD configure for building on BUILD [guessed] 1461 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1462_ACEOF 1463fi 1464 1465if test -n "$ac_init_help"; then 1466 1467 cat <<\_ACEOF 1468 1469Optional Features: 1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1472 --enable-shared[=PKGS] build shared libraries [default=yes] 1473 --enable-static[=PKGS] build static libraries [default=yes] 1474 --enable-fast-install[=PKGS] 1475 optimize for fast installation [default=yes] 1476 --disable-dependency-tracking speeds up one-time build 1477 --enable-dependency-tracking do not reject slow dependency extractors 1478 --disable-libtool-lock avoid locking (might break parallel builds) 1479 --enable-debug Turn on debugging 1480 1481Optional Packages: 1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1485 --with-pic try to use only PIC/non-PIC objects [default=use 1486 both] 1487 --with-tags[=TAGS] include additional configurations [automatic] 1488 1489Some influential environment variables: 1490 CC C compiler command 1491 CFLAGS C compiler flags 1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1493 nonstandard directory <lib dir> 1494 LIBS libraries to pass to the linker, e.g. -l<library> 1495 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1496 you have headers in a nonstandard directory <include dir> 1497 CPP C preprocessor 1498 CXX C++ compiler command 1499 CXXFLAGS C++ compiler flags 1500 CXXCPP C++ preprocessor 1501 F77 Fortran 77 compiler command 1502 FFLAGS Fortran 77 compiler flags 1503 1504Use these variables to override the choices made by `configure' or to help 1505it to find libraries and programs with nonstandard names/locations. 1506 1507_ACEOF 1508ac_status=$? 1509fi 1510 1511if test "$ac_init_help" = "recursive"; then 1512 # If there are subdirs, report their specific --help. 1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1514 test -d "$ac_dir" || continue 1515 ac_builddir=. 1516 1517case "$ac_dir" in 1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519*) 1520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1521 # A ".." for each directory in $ac_dir_suffix. 1522 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1523 case $ac_top_builddir_sub in 1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1526 esac ;; 1527esac 1528ac_abs_top_builddir=$ac_pwd 1529ac_abs_builddir=$ac_pwd$ac_dir_suffix 1530# for backward compatibility: 1531ac_top_builddir=$ac_top_build_prefix 1532 1533case $srcdir in 1534 .) # We are building in place. 1535 ac_srcdir=. 1536 ac_top_srcdir=$ac_top_builddir_sub 1537 ac_abs_top_srcdir=$ac_pwd ;; 1538 [\\/]* | ?:[\\/]* ) # Absolute name. 1539 ac_srcdir=$srcdir$ac_dir_suffix; 1540 ac_top_srcdir=$srcdir 1541 ac_abs_top_srcdir=$srcdir ;; 1542 *) # Relative name. 1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1544 ac_top_srcdir=$ac_top_build_prefix$srcdir 1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1546esac 1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1548 1549 cd "$ac_dir" || { ac_status=$?; continue; } 1550 # Check for guested configure. 1551 if test -f "$ac_srcdir/configure.gnu"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1554 elif test -f "$ac_srcdir/configure"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure" --help=recursive 1557 else 1558 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1559 fi || ac_status=$? 1560 cd "$ac_pwd" || { ac_status=$?; break; } 1561 done 1562fi 1563 1564test -n "$ac_init_help" && exit $ac_status 1565if $ac_init_version; then 1566 cat <<\_ACEOF 1567configure 1568generated by GNU Autoconf 2.61 1569 1570Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1572This configure script is free software; the Free Software Foundation 1573gives unlimited permission to copy, distribute and modify it. 1574_ACEOF 1575 exit 1576fi 1577cat >config.log <<_ACEOF 1578This file contains any messages produced by compilers while 1579running configure, to aid debugging if configure makes a mistake. 1580 1581It was created by $as_me, which was 1582generated by GNU Autoconf 2.61. Invocation command line was 1583 1584 $ $0 $@ 1585 1586_ACEOF 1587exec 5>>config.log 1588{ 1589cat <<_ASUNAME 1590## --------- ## 1591## Platform. ## 1592## --------- ## 1593 1594hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1595uname -m = `(uname -m) 2>/dev/null || echo unknown` 1596uname -r = `(uname -r) 2>/dev/null || echo unknown` 1597uname -s = `(uname -s) 2>/dev/null || echo unknown` 1598uname -v = `(uname -v) 2>/dev/null || echo unknown` 1599 1600/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1601/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1602 1603/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1604/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1605/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1606/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1607/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1608/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1609/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1610 1611_ASUNAME 1612 1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1614for as_dir in $PATH 1615do 1616 IFS=$as_save_IFS 1617 test -z "$as_dir" && as_dir=. 1618 echo "PATH: $as_dir" 1619done 1620IFS=$as_save_IFS 1621 1622} >&5 1623 1624cat >&5 <<_ACEOF 1625 1626 1627## ----------- ## 1628## Core tests. ## 1629## ----------- ## 1630 1631_ACEOF 1632 1633 1634# Keep a trace of the command line. 1635# Strip out --no-create and --no-recursion so they do not pile up. 1636# Strip out --silent because we don't want to record it for future runs. 1637# Also quote any args containing shell meta-characters. 1638# Make two passes to allow for proper duplicate-argument suppression. 1639ac_configure_args= 1640ac_configure_args0= 1641ac_configure_args1= 1642ac_must_keep_next=false 1643for ac_pass in 1 2 1644do 1645 for ac_arg 1646 do 1647 case $ac_arg in 1648 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1650 | -silent | --silent | --silen | --sile | --sil) 1651 continue ;; 1652 *\'*) 1653 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1654 esac 1655 case $ac_pass in 1656 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1657 2) 1658 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1659 if test $ac_must_keep_next = true; then 1660 ac_must_keep_next=false # Got value, back to normal. 1661 else 1662 case $ac_arg in 1663 *=* | --config-cache | -C | -disable-* | --disable-* \ 1664 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1665 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1666 | -with-* | --with-* | -without-* | --without-* | --x) 1667 case "$ac_configure_args0 " in 1668 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1669 esac 1670 ;; 1671 -* ) ac_must_keep_next=true ;; 1672 esac 1673 fi 1674 ac_configure_args="$ac_configure_args '$ac_arg'" 1675 ;; 1676 esac 1677 done 1678done 1679$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1680$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1681 1682# When interrupted or exit'd, cleanup temporary files, and complete 1683# config.log. We remove comments because anyway the quotes in there 1684# would cause problems or look ugly. 1685# WARNING: Use '\'' to represent an apostrophe within the trap. 1686# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1687trap 'exit_status=$? 1688 # Save into config.log some information that might help in debugging. 1689 { 1690 echo 1691 1692 cat <<\_ASBOX 1693## ---------------- ## 1694## Cache variables. ## 1695## ---------------- ## 1696_ASBOX 1697 echo 1698 # The following way of writing the cache mishandles newlines in values, 1699( 1700 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1701 eval ac_val=\$$ac_var 1702 case $ac_val in #( 1703 *${as_nl}*) 1704 case $ac_var in #( 1705 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1706echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1707 esac 1708 case $ac_var in #( 1709 _ | IFS | as_nl) ;; #( 1710 *) $as_unset $ac_var ;; 1711 esac ;; 1712 esac 1713 done 1714 (set) 2>&1 | 1715 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1716 *${as_nl}ac_space=\ *) 1717 sed -n \ 1718 "s/'\''/'\''\\\\'\'''\''/g; 1719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1720 ;; #( 1721 *) 1722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1723 ;; 1724 esac | 1725 sort 1726) 1727 echo 1728 1729 cat <<\_ASBOX 1730## ----------------- ## 1731## Output variables. ## 1732## ----------------- ## 1733_ASBOX 1734 echo 1735 for ac_var in $ac_subst_vars 1736 do 1737 eval ac_val=\$$ac_var 1738 case $ac_val in 1739 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1740 esac 1741 echo "$ac_var='\''$ac_val'\''" 1742 done | sort 1743 echo 1744 1745 if test -n "$ac_subst_files"; then 1746 cat <<\_ASBOX 1747## ------------------- ## 1748## File substitutions. ## 1749## ------------------- ## 1750_ASBOX 1751 echo 1752 for ac_var in $ac_subst_files 1753 do 1754 eval ac_val=\$$ac_var 1755 case $ac_val in 1756 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1757 esac 1758 echo "$ac_var='\''$ac_val'\''" 1759 done | sort 1760 echo 1761 fi 1762 1763 if test -s confdefs.h; then 1764 cat <<\_ASBOX 1765## ----------- ## 1766## confdefs.h. ## 1767## ----------- ## 1768_ASBOX 1769 echo 1770 cat confdefs.h 1771 echo 1772 fi 1773 test "$ac_signal" != 0 && 1774 echo "$as_me: caught signal $ac_signal" 1775 echo "$as_me: exit $exit_status" 1776 } >&5 1777 rm -f core *.core core.conftest.* && 1778 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1779 exit $exit_status 1780' 0 1781for ac_signal in 1 2 13 15; do 1782 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1783done 1784ac_signal=0 1785 1786# confdefs.h avoids OS command line length limits that DEFS can exceed. 1787rm -f -r conftest* confdefs.h 1788 1789# Predefined preprocessor variables. 1790 1791cat >>confdefs.h <<_ACEOF 1792#define PACKAGE_NAME "$PACKAGE_NAME" 1793_ACEOF 1794 1795 1796cat >>confdefs.h <<_ACEOF 1797#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1798_ACEOF 1799 1800 1801cat >>confdefs.h <<_ACEOF 1802#define PACKAGE_VERSION "$PACKAGE_VERSION" 1803_ACEOF 1804 1805 1806cat >>confdefs.h <<_ACEOF 1807#define PACKAGE_STRING "$PACKAGE_STRING" 1808_ACEOF 1809 1810 1811cat >>confdefs.h <<_ACEOF 1812#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1813_ACEOF 1814 1815 1816# Let the site file select an alternate cache file if it wants to. 1817# Prefer explicitly selected file to automatically selected ones. 1818if test -n "$CONFIG_SITE"; then 1819 set x "$CONFIG_SITE" 1820elif test "x$prefix" != xNONE; then 1821 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1822else 1823 set x "$ac_default_prefix/share/config.site" \ 1824 "$ac_default_prefix/etc/config.site" 1825fi 1826shift 1827for ac_site_file 1828do 1829 if test -r "$ac_site_file"; then 1830 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1831echo "$as_me: loading site script $ac_site_file" >&6;} 1832 sed 's/^/| /' "$ac_site_file" >&5 1833 . "$ac_site_file" 1834 fi 1835done 1836 1837if test -r "$cache_file"; then 1838 # Some versions of bash will fail to source /dev/null (special 1839 # files actually), so we avoid doing that. 1840 if test -f "$cache_file"; then 1841 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1842echo "$as_me: loading cache $cache_file" >&6;} 1843 case $cache_file in 1844 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1845 *) . "./$cache_file";; 1846 esac 1847 fi 1848else 1849 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1850echo "$as_me: creating cache $cache_file" >&6;} 1851 >$cache_file 1852fi 1853 1854# Check that the precious variables saved in the cache have kept the same 1855# value. 1856ac_cache_corrupted=false 1857for ac_var in $ac_precious_vars; do 1858 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1859 eval ac_new_set=\$ac_env_${ac_var}_set 1860 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1861 eval ac_new_val=\$ac_env_${ac_var}_value 1862 case $ac_old_set,$ac_new_set in 1863 set,) 1864 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1865echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1866 ac_cache_corrupted=: ;; 1867 ,set) 1868 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1869echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1870 ac_cache_corrupted=: ;; 1871 ,);; 1872 *) 1873 if test "x$ac_old_val" != "x$ac_new_val"; then 1874 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1875echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1876 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1877echo "$as_me: former value: $ac_old_val" >&2;} 1878 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1879echo "$as_me: current value: $ac_new_val" >&2;} 1880 ac_cache_corrupted=: 1881 fi;; 1882 esac 1883 # Pass precious variables to config.status. 1884 if test "$ac_new_set" = set; then 1885 case $ac_new_val in 1886 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1887 *) ac_arg=$ac_var=$ac_new_val ;; 1888 esac 1889 case " $ac_configure_args " in 1890 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1891 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1892 esac 1893 fi 1894done 1895if $ac_cache_corrupted; then 1896 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1897echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1898 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1899echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1900 { (exit 1); exit 1; }; } 1901fi 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919ac_ext=c 1920ac_cpp='$CPP $CPPFLAGS' 1921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1923ac_compiler_gnu=$ac_cv_c_compiler_gnu 1924 1925 1926am__api_version="1.9" 1927ac_aux_dir= 1928for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1929 if test -f "$ac_dir/install-sh"; then 1930 ac_aux_dir=$ac_dir 1931 ac_install_sh="$ac_aux_dir/install-sh -c" 1932 break 1933 elif test -f "$ac_dir/install.sh"; then 1934 ac_aux_dir=$ac_dir 1935 ac_install_sh="$ac_aux_dir/install.sh -c" 1936 break 1937 elif test -f "$ac_dir/shtool"; then 1938 ac_aux_dir=$ac_dir 1939 ac_install_sh="$ac_aux_dir/shtool install -c" 1940 break 1941 fi 1942done 1943if test -z "$ac_aux_dir"; then 1944 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1945echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1946 { (exit 1); exit 1; }; } 1947fi 1948 1949# These three variables are undocumented and unsupported, 1950# and are intended to be withdrawn in a future Autoconf release. 1951# They can cause serious problems if a builder's source tree is in a directory 1952# whose full name contains unusual characters. 1953ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1954ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1955ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1956 1957 1958# Find a good install program. We prefer a C program (faster), 1959# so one script is as good as another. But avoid the broken or 1960# incompatible versions: 1961# SysV /etc/install, /usr/sbin/install 1962# SunOS /usr/etc/install 1963# IRIX /sbin/install 1964# AIX /bin/install 1965# AmigaOS /C/install, which installs bootblocks on floppy discs 1966# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1967# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1968# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1969# OS/2's system install, which has a completely different semantic 1970# ./install, which can be erroneously created by make from ./install.sh. 1971{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1972echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1973if test -z "$INSTALL"; then 1974if test "${ac_cv_path_install+set}" = set; then 1975 echo $ECHO_N "(cached) $ECHO_C" >&6 1976else 1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1978for as_dir in $PATH 1979do 1980 IFS=$as_save_IFS 1981 test -z "$as_dir" && as_dir=. 1982 # Account for people who put trailing slashes in PATH elements. 1983case $as_dir/ in 1984 ./ | .// | /cC/* | \ 1985 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1986 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1987 /usr/ucb/* ) ;; 1988 *) 1989 # OSF1 and SCO ODT 3.0 have their own names for install. 1990 # Don't use installbsd from OSF since it installs stuff as root 1991 # by default. 1992 for ac_prog in ginstall scoinst install; do 1993 for ac_exec_ext in '' $ac_executable_extensions; do 1994 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1995 if test $ac_prog = install && 1996 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1997 # AIX install. It has an incompatible calling convention. 1998 : 1999 elif test $ac_prog = install && 2000 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2001 # program-specific install script used by HP pwplus--don't use. 2002 : 2003 else 2004 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2005 break 3 2006 fi 2007 fi 2008 done 2009 done 2010 ;; 2011esac 2012done 2013IFS=$as_save_IFS 2014 2015 2016fi 2017 if test "${ac_cv_path_install+set}" = set; then 2018 INSTALL=$ac_cv_path_install 2019 else 2020 # As a last resort, use the slow shell script. Don't cache a 2021 # value for INSTALL within a source directory, because that will 2022 # break other packages using the cache if that directory is 2023 # removed, or if the value is a relative name. 2024 INSTALL=$ac_install_sh 2025 fi 2026fi 2027{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2028echo "${ECHO_T}$INSTALL" >&6; } 2029 2030# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2031# It thinks the first close brace ends the variable substitution. 2032test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2033 2034test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2035 2036test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2037 2038{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2039echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2040# Just in case 2041sleep 1 2042echo timestamp > conftest.file 2043# Do `set' in a subshell so we don't clobber the current shell's 2044# arguments. Must try -L first in case configure is actually a 2045# symlink; some systems play weird games with the mod time of symlinks 2046# (eg FreeBSD returns the mod time of the symlink's containing 2047# directory). 2048if ( 2049 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2050 if test "$*" = "X"; then 2051 # -L didn't work. 2052 set X `ls -t $srcdir/configure conftest.file` 2053 fi 2054 rm -f conftest.file 2055 if test "$*" != "X $srcdir/configure conftest.file" \ 2056 && test "$*" != "X conftest.file $srcdir/configure"; then 2057 2058 # If neither matched, then we have a broken ls. This can happen 2059 # if, for instance, CONFIG_SHELL is bash and it inherits a 2060 # broken ls alias from the environment. This has actually 2061 # happened. Such a system could not be considered "sane". 2062 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2063alias in your environment" >&5 2064echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2065alias in your environment" >&2;} 2066 { (exit 1); exit 1; }; } 2067 fi 2068 2069 test "$2" = conftest.file 2070 ) 2071then 2072 # Ok. 2073 : 2074else 2075 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2076Check your system clock" >&5 2077echo "$as_me: error: newly created file is older than distributed files! 2078Check your system clock" >&2;} 2079 { (exit 1); exit 1; }; } 2080fi 2081{ echo "$as_me:$LINENO: result: yes" >&5 2082echo "${ECHO_T}yes" >&6; } 2083test "$program_prefix" != NONE && 2084 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2085# Use a double $ so make ignores it. 2086test "$program_suffix" != NONE && 2087 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2088# Double any \ or $. echo might interpret backslashes. 2089# By default was `s,x,x', remove it if useless. 2090cat <<\_ACEOF >conftest.sed 2091s/[\\$]/&&/g;s/;s,x,x,$// 2092_ACEOF 2093program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2094rm -f conftest.sed 2095 2096# expand $ac_aux_dir to an absolute path 2097am_aux_dir=`cd $ac_aux_dir && pwd` 2098 2099test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2100# Use eval to expand $SHELL 2101if eval "$MISSING --run true"; then 2102 am_missing_run="$MISSING --run " 2103else 2104 am_missing_run= 2105 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2106echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2107fi 2108 2109if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2110 # We used to keeping the `.' as first argument, in order to 2111 # allow $(mkdir_p) to be used without argument. As in 2112 # $(mkdir_p) $(somedir) 2113 # where $(somedir) is conditionally defined. However this is wrong 2114 # for two reasons: 2115 # 1. if the package is installed by a user who cannot write `.' 2116 # make install will fail, 2117 # 2. the above comment should most certainly read 2118 # $(mkdir_p) $(DESTDIR)$(somedir) 2119 # so it does not work when $(somedir) is undefined and 2120 # $(DESTDIR) is not. 2121 # To support the latter case, we have to write 2122 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2123 # so the `.' trick is pointless. 2124 mkdir_p='mkdir -p --' 2125else 2126 # On NextStep and OpenStep, the `mkdir' command does not 2127 # recognize any option. It will interpret all options as 2128 # directories to create, and then abort because `.' already 2129 # exists. 2130 for d in ./-p ./--version; 2131 do 2132 test -d $d && rmdir $d 2133 done 2134 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2135 if test -f "$ac_aux_dir/mkinstalldirs"; then 2136 mkdir_p='$(mkinstalldirs)' 2137 else 2138 mkdir_p='$(install_sh) -d' 2139 fi 2140fi 2141 2142for ac_prog in gawk mawk nawk awk 2143do 2144 # Extract the first word of "$ac_prog", so it can be a program name with args. 2145set dummy $ac_prog; ac_word=$2 2146{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2148if test "${ac_cv_prog_AWK+set}" = set; then 2149 echo $ECHO_N "(cached) $ECHO_C" >&6 2150else 2151 if test -n "$AWK"; then 2152 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2153else 2154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2155for as_dir in $PATH 2156do 2157 IFS=$as_save_IFS 2158 test -z "$as_dir" && as_dir=. 2159 for ac_exec_ext in '' $ac_executable_extensions; do 2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2161 ac_cv_prog_AWK="$ac_prog" 2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2163 break 2 2164 fi 2165done 2166done 2167IFS=$as_save_IFS 2168 2169fi 2170fi 2171AWK=$ac_cv_prog_AWK 2172if test -n "$AWK"; then 2173 { echo "$as_me:$LINENO: result: $AWK" >&5 2174echo "${ECHO_T}$AWK" >&6; } 2175else 2176 { echo "$as_me:$LINENO: result: no" >&5 2177echo "${ECHO_T}no" >&6; } 2178fi 2179 2180 2181 test -n "$AWK" && break 2182done 2183 2184{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2185echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2186set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2187if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2188 echo $ECHO_N "(cached) $ECHO_C" >&6 2189else 2190 cat >conftest.make <<\_ACEOF 2191SHELL = /bin/sh 2192all: 2193 @echo '@@@%%%=$(MAKE)=@@@%%%' 2194_ACEOF 2195# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2196case `${MAKE-make} -f conftest.make 2>/dev/null` in 2197 *@@@%%%=?*=@@@%%%*) 2198 eval ac_cv_prog_make_${ac_make}_set=yes;; 2199 *) 2200 eval ac_cv_prog_make_${ac_make}_set=no;; 2201esac 2202rm -f conftest.make 2203fi 2204if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2205 { echo "$as_me:$LINENO: result: yes" >&5 2206echo "${ECHO_T}yes" >&6; } 2207 SET_MAKE= 2208else 2209 { echo "$as_me:$LINENO: result: no" >&5 2210echo "${ECHO_T}no" >&6; } 2211 SET_MAKE="MAKE=${MAKE-make}" 2212fi 2213 2214rm -rf .tst 2>/dev/null 2215mkdir .tst 2>/dev/null 2216if test -d .tst; then 2217 am__leading_dot=. 2218else 2219 am__leading_dot=_ 2220fi 2221rmdir .tst 2>/dev/null 2222 2223# test to see if srcdir already configured 2224if test "`cd $srcdir && pwd`" != "`pwd`" && 2225 test -f $srcdir/config.status; then 2226 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2227echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2228 { (exit 1); exit 1; }; } 2229fi 2230 2231# test whether we have cygpath 2232if test -z "$CYGPATH_W"; then 2233 if (cygpath --version) >/dev/null 2>/dev/null; then 2234 CYGPATH_W='cygpath -w' 2235 else 2236 CYGPATH_W=echo 2237 fi 2238fi 2239 2240 2241# Define the identity of the package. 2242 PACKAGE=mimir 2243 VERSION=2.15 2244 2245 2246cat >>confdefs.h <<_ACEOF 2247#define PACKAGE "$PACKAGE" 2248_ACEOF 2249 2250 2251cat >>confdefs.h <<_ACEOF 2252#define VERSION "$VERSION" 2253_ACEOF 2254 2255# Some tools Automake needs. 2256 2257ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2258 2259 2260AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2261 2262 2263AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2264 2265 2266AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2267 2268 2269MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2270 2271install_sh=${install_sh-"$am_aux_dir/install-sh"} 2272 2273# Installed binaries are usually stripped using `strip' when the user 2274# run `make install-strip'. However `strip' might not be the right 2275# tool to use in cross-compilation environments, therefore Automake 2276# will honor the `STRIP' environment variable to overrule this program. 2277if test "$cross_compiling" != no; then 2278 if test -n "$ac_tool_prefix"; then 2279 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2280set dummy ${ac_tool_prefix}strip; ac_word=$2 2281{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2283if test "${ac_cv_prog_STRIP+set}" = set; then 2284 echo $ECHO_N "(cached) $ECHO_C" >&6 2285else 2286 if test -n "$STRIP"; then 2287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2288else 2289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2290for as_dir in $PATH 2291do 2292 IFS=$as_save_IFS 2293 test -z "$as_dir" && as_dir=. 2294 for ac_exec_ext in '' $ac_executable_extensions; do 2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2296 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2298 break 2 2299 fi 2300done 2301done 2302IFS=$as_save_IFS 2303 2304fi 2305fi 2306STRIP=$ac_cv_prog_STRIP 2307if test -n "$STRIP"; then 2308 { echo "$as_me:$LINENO: result: $STRIP" >&5 2309echo "${ECHO_T}$STRIP" >&6; } 2310else 2311 { echo "$as_me:$LINENO: result: no" >&5 2312echo "${ECHO_T}no" >&6; } 2313fi 2314 2315 2316fi 2317if test -z "$ac_cv_prog_STRIP"; then 2318 ac_ct_STRIP=$STRIP 2319 # Extract the first word of "strip", so it can be a program name with args. 2320set dummy strip; ac_word=$2 2321{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2323if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2324 echo $ECHO_N "(cached) $ECHO_C" >&6 2325else 2326 if test -n "$ac_ct_STRIP"; then 2327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2328else 2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2330for as_dir in $PATH 2331do 2332 IFS=$as_save_IFS 2333 test -z "$as_dir" && as_dir=. 2334 for ac_exec_ext in '' $ac_executable_extensions; do 2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2336 ac_cv_prog_ac_ct_STRIP="strip" 2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2338 break 2 2339 fi 2340done 2341done 2342IFS=$as_save_IFS 2343 2344fi 2345fi 2346ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2347if test -n "$ac_ct_STRIP"; then 2348 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2349echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2350else 2351 { echo "$as_me:$LINENO: result: no" >&5 2352echo "${ECHO_T}no" >&6; } 2353fi 2354 2355 if test "x$ac_ct_STRIP" = x; then 2356 STRIP=":" 2357 else 2358 case $cross_compiling:$ac_tool_warned in 2359yes:) 2360{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2361whose name does not start with the host triplet. If you think this 2362configuration is useful to you, please write to autoconf@gnu.org." >&5 2363echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2364whose name does not start with the host triplet. If you think this 2365configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2366ac_tool_warned=yes ;; 2367esac 2368 STRIP=$ac_ct_STRIP 2369 fi 2370else 2371 STRIP="$ac_cv_prog_STRIP" 2372fi 2373 2374fi 2375INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2376 2377# We need awk for the "check" target. The system "awk" is bad on 2378# some platforms. 2379# Always define AMTAR for backward compatibility. 2380 2381AMTAR=${AMTAR-"${am_missing_run}tar"} 2382 2383am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2384 2385 2386 2387 2388 2389ac_config_headers="$ac_config_headers config.h" 2390 2391{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2392echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2393# Just in case 2394sleep 1 2395echo timestamp > conftest.file 2396# Do `set' in a subshell so we don't clobber the current shell's 2397# arguments. Must try -L first in case configure is actually a 2398# symlink; some systems play weird games with the mod time of symlinks 2399# (eg FreeBSD returns the mod time of the symlink's containing 2400# directory). 2401if ( 2402 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2403 if test "$*" = "X"; then 2404 # -L didn't work. 2405 set X `ls -t $srcdir/configure conftest.file` 2406 fi 2407 rm -f conftest.file 2408 if test "$*" != "X $srcdir/configure conftest.file" \ 2409 && test "$*" != "X conftest.file $srcdir/configure"; then 2410 2411 # If neither matched, then we have a broken ls. This can happen 2412 # if, for instance, CONFIG_SHELL is bash and it inherits a 2413 # broken ls alias from the environment. This has actually 2414 # happened. Such a system could not be considered "sane". 2415 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2416alias in your environment" >&5 2417echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2418alias in your environment" >&2;} 2419 { (exit 1); exit 1; }; } 2420 fi 2421 2422 test "$2" = conftest.file 2423 ) 2424then 2425 # Ok. 2426 : 2427else 2428 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2429Check your system clock" >&5 2430echo "$as_me: error: newly created file is older than distributed files! 2431Check your system clock" >&2;} 2432 { (exit 1); exit 1; }; } 2433fi 2434{ echo "$as_me:$LINENO: result: yes" >&5 2435echo "${ECHO_T}yes" >&6; } 2436 2437# Make sure we can run config.sub. 2438$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2439 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2440echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2441 { (exit 1); exit 1; }; } 2442 2443{ echo "$as_me:$LINENO: checking build system type" >&5 2444echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2445if test "${ac_cv_build+set}" = set; then 2446 echo $ECHO_N "(cached) $ECHO_C" >&6 2447else 2448 ac_build_alias=$build_alias 2449test "x$ac_build_alias" = x && 2450 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2451test "x$ac_build_alias" = x && 2452 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2453echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2454 { (exit 1); exit 1; }; } 2455ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2456 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2457echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2458 { (exit 1); exit 1; }; } 2459 2460fi 2461{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2462echo "${ECHO_T}$ac_cv_build" >&6; } 2463case $ac_cv_build in 2464*-*-*) ;; 2465*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2466echo "$as_me: error: invalid value of canonical build" >&2;} 2467 { (exit 1); exit 1; }; };; 2468esac 2469build=$ac_cv_build 2470ac_save_IFS=$IFS; IFS='-' 2471set x $ac_cv_build 2472shift 2473build_cpu=$1 2474build_vendor=$2 2475shift; shift 2476# Remember, the first character of IFS is used to create $*, 2477# except with old shells: 2478build_os=$* 2479IFS=$ac_save_IFS 2480case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2481 2482 2483{ echo "$as_me:$LINENO: checking host system type" >&5 2484echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2485if test "${ac_cv_host+set}" = set; then 2486 echo $ECHO_N "(cached) $ECHO_C" >&6 2487else 2488 if test "x$host_alias" = x; then 2489 ac_cv_host=$ac_cv_build 2490else 2491 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2492 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2493echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2494 { (exit 1); exit 1; }; } 2495fi 2496 2497fi 2498{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2499echo "${ECHO_T}$ac_cv_host" >&6; } 2500case $ac_cv_host in 2501*-*-*) ;; 2502*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2503echo "$as_me: error: invalid value of canonical host" >&2;} 2504 { (exit 1); exit 1; }; };; 2505esac 2506host=$ac_cv_host 2507ac_save_IFS=$IFS; IFS='-' 2508set x $ac_cv_host 2509shift 2510host_cpu=$1 2511host_vendor=$2 2512shift; shift 2513# Remember, the first character of IFS is used to create $*, 2514# except with old shells: 2515host_os=$* 2516IFS=$ac_save_IFS 2517case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2518 2519 2520# Check whether --enable-shared was given. 2521if test "${enable_shared+set}" = set; then 2522 enableval=$enable_shared; p=${PACKAGE-default} 2523 case $enableval in 2524 yes) enable_shared=yes ;; 2525 no) enable_shared=no ;; 2526 *) 2527 enable_shared=no 2528 # Look at the argument we got. We use all the common list separators. 2529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2530 for pkg in $enableval; do 2531 IFS="$lt_save_ifs" 2532 if test "X$pkg" = "X$p"; then 2533 enable_shared=yes 2534 fi 2535 done 2536 IFS="$lt_save_ifs" 2537 ;; 2538 esac 2539else 2540 enable_shared=yes 2541fi 2542 2543 2544# Check whether --enable-static was given. 2545if test "${enable_static+set}" = set; then 2546 enableval=$enable_static; p=${PACKAGE-default} 2547 case $enableval in 2548 yes) enable_static=yes ;; 2549 no) enable_static=no ;; 2550 *) 2551 enable_static=no 2552 # Look at the argument we got. We use all the common list separators. 2553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2554 for pkg in $enableval; do 2555 IFS="$lt_save_ifs" 2556 if test "X$pkg" = "X$p"; then 2557 enable_static=yes 2558 fi 2559 done 2560 IFS="$lt_save_ifs" 2561 ;; 2562 esac 2563else 2564 enable_static=yes 2565fi 2566 2567 2568# Check whether --enable-fast-install was given. 2569if test "${enable_fast_install+set}" = set; then 2570 enableval=$enable_fast_install; p=${PACKAGE-default} 2571 case $enableval in 2572 yes) enable_fast_install=yes ;; 2573 no) enable_fast_install=no ;; 2574 *) 2575 enable_fast_install=no 2576 # Look at the argument we got. We use all the common list separators. 2577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2578 for pkg in $enableval; do 2579 IFS="$lt_save_ifs" 2580 if test "X$pkg" = "X$p"; then 2581 enable_fast_install=yes 2582 fi 2583 done 2584 IFS="$lt_save_ifs" 2585 ;; 2586 esac 2587else 2588 enable_fast_install=yes 2589fi 2590 2591 2592DEPDIR="${am__leading_dot}deps" 2593 2594ac_config_commands="$ac_config_commands depfiles" 2595 2596 2597am_make=${MAKE-make} 2598cat > confinc << 'END' 2599am__doit: 2600 @echo done 2601.PHONY: am__doit 2602END 2603# If we don't find an include directive, just comment out the code. 2604{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2605echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2606am__include="#" 2607am__quote= 2608_am_result=none 2609# First try GNU make style include. 2610echo "include confinc" > confmf 2611# We grep out `Entering directory' and `Leaving directory' 2612# messages which can occur if `w' ends up in MAKEFLAGS. 2613# In particular we don't look at `^make:' because GNU make might 2614# be invoked under some other name (usually "gmake"), in which 2615# case it prints its new name instead of `make'. 2616if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2617 am__include=include 2618 am__quote= 2619 _am_result=GNU 2620fi 2621# Now try BSD make style include. 2622if test "$am__include" = "#"; then 2623 echo '.include "confinc"' > confmf 2624 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2625 am__include=.include 2626 am__quote="\"" 2627 _am_result=BSD 2628 fi 2629fi 2630 2631 2632{ echo "$as_me:$LINENO: result: $_am_result" >&5 2633echo "${ECHO_T}$_am_result" >&6; } 2634rm -f confinc confmf 2635 2636# Check whether --enable-dependency-tracking was given. 2637if test "${enable_dependency_tracking+set}" = set; then 2638 enableval=$enable_dependency_tracking; 2639fi 2640 2641if test "x$enable_dependency_tracking" != xno; then 2642 am_depcomp="$ac_aux_dir/depcomp" 2643 AMDEPBACKSLASH='\' 2644fi 2645 2646 2647if test "x$enable_dependency_tracking" != xno; then 2648 AMDEP_TRUE= 2649 AMDEP_FALSE='#' 2650else 2651 AMDEP_TRUE='#' 2652 AMDEP_FALSE= 2653fi 2654 2655 2656 2657ac_ext=c 2658ac_cpp='$CPP $CPPFLAGS' 2659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2661ac_compiler_gnu=$ac_cv_c_compiler_gnu 2662if test -n "$ac_tool_prefix"; then 2663 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2664set dummy ${ac_tool_prefix}gcc; ac_word=$2 2665{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2667if test "${ac_cv_prog_CC+set}" = set; then 2668 echo $ECHO_N "(cached) $ECHO_C" >&6 2669else 2670 if test -n "$CC"; then 2671 ac_cv_prog_CC="$CC" # Let the user override the test. 2672else 2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2674for as_dir in $PATH 2675do 2676 IFS=$as_save_IFS 2677 test -z "$as_dir" && as_dir=. 2678 for ac_exec_ext in '' $ac_executable_extensions; do 2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2680 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2682 break 2 2683 fi 2684done 2685done 2686IFS=$as_save_IFS 2687 2688fi 2689fi 2690CC=$ac_cv_prog_CC 2691if test -n "$CC"; then 2692 { echo "$as_me:$LINENO: result: $CC" >&5 2693echo "${ECHO_T}$CC" >&6; } 2694else 2695 { echo "$as_me:$LINENO: result: no" >&5 2696echo "${ECHO_T}no" >&6; } 2697fi 2698 2699 2700fi 2701if test -z "$ac_cv_prog_CC"; then 2702 ac_ct_CC=$CC 2703 # Extract the first word of "gcc", so it can be a program name with args. 2704set dummy gcc; ac_word=$2 2705{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2707if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2708 echo $ECHO_N "(cached) $ECHO_C" >&6 2709else 2710 if test -n "$ac_ct_CC"; then 2711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2712else 2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2714for as_dir in $PATH 2715do 2716 IFS=$as_save_IFS 2717 test -z "$as_dir" && as_dir=. 2718 for ac_exec_ext in '' $ac_executable_extensions; do 2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2720 ac_cv_prog_ac_ct_CC="gcc" 2721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2722 break 2 2723 fi 2724done 2725done 2726IFS=$as_save_IFS 2727 2728fi 2729fi 2730ac_ct_CC=$ac_cv_prog_ac_ct_CC 2731if test -n "$ac_ct_CC"; then 2732 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2733echo "${ECHO_T}$ac_ct_CC" >&6; } 2734else 2735 { echo "$as_me:$LINENO: result: no" >&5 2736echo "${ECHO_T}no" >&6; } 2737fi 2738 2739 if test "x$ac_ct_CC" = x; then 2740 CC="" 2741 else 2742 case $cross_compiling:$ac_tool_warned in 2743yes:) 2744{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2745whose name does not start with the host triplet. If you think this 2746configuration is useful to you, please write to autoconf@gnu.org." >&5 2747echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2748whose name does not start with the host triplet. If you think this 2749configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2750ac_tool_warned=yes ;; 2751esac 2752 CC=$ac_ct_CC 2753 fi 2754else 2755 CC="$ac_cv_prog_CC" 2756fi 2757 2758if test -z "$CC"; then 2759 if test -n "$ac_tool_prefix"; then 2760 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2761set dummy ${ac_tool_prefix}cc; ac_word=$2 2762{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2764if test "${ac_cv_prog_CC+set}" = set; then 2765 echo $ECHO_N "(cached) $ECHO_C" >&6 2766else 2767 if test -n "$CC"; then 2768 ac_cv_prog_CC="$CC" # Let the user override the test. 2769else 2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2771for as_dir in $PATH 2772do 2773 IFS=$as_save_IFS 2774 test -z "$as_dir" && as_dir=. 2775 for ac_exec_ext in '' $ac_executable_extensions; do 2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2777 ac_cv_prog_CC="${ac_tool_prefix}cc" 2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2779 break 2 2780 fi 2781done 2782done 2783IFS=$as_save_IFS 2784 2785fi 2786fi 2787CC=$ac_cv_prog_CC 2788if test -n "$CC"; then 2789 { echo "$as_me:$LINENO: result: $CC" >&5 2790echo "${ECHO_T}$CC" >&6; } 2791else 2792 { echo "$as_me:$LINENO: result: no" >&5 2793echo "${ECHO_T}no" >&6; } 2794fi 2795 2796 2797 fi 2798fi 2799if test -z "$CC"; then 2800 # Extract the first word of "cc", so it can be a program name with args. 2801set dummy cc; ac_word=$2 2802{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2804if test "${ac_cv_prog_CC+set}" = set; then 2805 echo $ECHO_N "(cached) $ECHO_C" >&6 2806else 2807 if test -n "$CC"; then 2808 ac_cv_prog_CC="$CC" # Let the user override the test. 2809else 2810 ac_prog_rejected=no 2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2812for as_dir in $PATH 2813do 2814 IFS=$as_save_IFS 2815 test -z "$as_dir" && as_dir=. 2816 for ac_exec_ext in '' $ac_executable_extensions; do 2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2818 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2819 ac_prog_rejected=yes 2820 continue 2821 fi 2822 ac_cv_prog_CC="cc" 2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2824 break 2 2825 fi 2826done 2827done 2828IFS=$as_save_IFS 2829 2830if test $ac_prog_rejected = yes; then 2831 # We found a bogon in the path, so make sure we never use it. 2832 set dummy $ac_cv_prog_CC 2833 shift 2834 if test $# != 0; then 2835 # We chose a different compiler from the bogus one. 2836 # However, it has the same basename, so the bogon will be chosen 2837 # first if we set CC to just the basename; use the full file name. 2838 shift 2839 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2840 fi 2841fi 2842fi 2843fi 2844CC=$ac_cv_prog_CC 2845if test -n "$CC"; then 2846 { echo "$as_me:$LINENO: result: $CC" >&5 2847echo "${ECHO_T}$CC" >&6; } 2848else 2849 { echo "$as_me:$LINENO: result: no" >&5 2850echo "${ECHO_T}no" >&6; } 2851fi 2852 2853 2854fi 2855if test -z "$CC"; then 2856 if test -n "$ac_tool_prefix"; then 2857 for ac_prog in cl.exe 2858 do 2859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2860set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2861{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2863if test "${ac_cv_prog_CC+set}" = set; then 2864 echo $ECHO_N "(cached) $ECHO_C" >&6 2865else 2866 if test -n "$CC"; then 2867 ac_cv_prog_CC="$CC" # Let the user override the test. 2868else 2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2870for as_dir in $PATH 2871do 2872 IFS=$as_save_IFS 2873 test -z "$as_dir" && as_dir=. 2874 for ac_exec_ext in '' $ac_executable_extensions; do 2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2876 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2878 break 2 2879 fi 2880done 2881done 2882IFS=$as_save_IFS 2883 2884fi 2885fi 2886CC=$ac_cv_prog_CC 2887if test -n "$CC"; then 2888 { echo "$as_me:$LINENO: result: $CC" >&5 2889echo "${ECHO_T}$CC" >&6; } 2890else 2891 { echo "$as_me:$LINENO: result: no" >&5 2892echo "${ECHO_T}no" >&6; } 2893fi 2894 2895 2896 test -n "$CC" && break 2897 done 2898fi 2899if test -z "$CC"; then 2900 ac_ct_CC=$CC 2901 for ac_prog in cl.exe 2902do 2903 # Extract the first word of "$ac_prog", so it can be a program name with args. 2904set dummy $ac_prog; ac_word=$2 2905{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2907if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2908 echo $ECHO_N "(cached) $ECHO_C" >&6 2909else 2910 if test -n "$ac_ct_CC"; then 2911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2912else 2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2914for as_dir in $PATH 2915do 2916 IFS=$as_save_IFS 2917 test -z "$as_dir" && as_dir=. 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2920 ac_cv_prog_ac_ct_CC="$ac_prog" 2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2922 break 2 2923 fi 2924done 2925done 2926IFS=$as_save_IFS 2927 2928fi 2929fi 2930ac_ct_CC=$ac_cv_prog_ac_ct_CC 2931if test -n "$ac_ct_CC"; then 2932 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2933echo "${ECHO_T}$ac_ct_CC" >&6; } 2934else 2935 { echo "$as_me:$LINENO: result: no" >&5 2936echo "${ECHO_T}no" >&6; } 2937fi 2938 2939 2940 test -n "$ac_ct_CC" && break 2941done 2942 2943 if test "x$ac_ct_CC" = x; then 2944 CC="" 2945 else 2946 case $cross_compiling:$ac_tool_warned in 2947yes:) 2948{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2949whose name does not start with the host triplet. If you think this 2950configuration is useful to you, please write to autoconf@gnu.org." >&5 2951echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2952whose name does not start with the host triplet. If you think this 2953configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2954ac_tool_warned=yes ;; 2955esac 2956 CC=$ac_ct_CC 2957 fi 2958fi 2959 2960fi 2961 2962 2963test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2964See \`config.log' for more details." >&5 2965echo "$as_me: error: no acceptable C compiler found in \$PATH 2966See \`config.log' for more details." >&2;} 2967 { (exit 1); exit 1; }; } 2968 2969# Provide some information about the compiler. 2970echo "$as_me:$LINENO: checking for C compiler version" >&5 2971ac_compiler=`set X $ac_compile; echo $2` 2972{ (ac_try="$ac_compiler --version >&5" 2973case "(($ac_try" in 2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2975 *) ac_try_echo=$ac_try;; 2976esac 2977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2978 (eval "$ac_compiler --version >&5") 2>&5 2979 ac_status=$? 2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2981 (exit $ac_status); } 2982{ (ac_try="$ac_compiler -v >&5" 2983case "(($ac_try" in 2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2985 *) ac_try_echo=$ac_try;; 2986esac 2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2988 (eval "$ac_compiler -v >&5") 2>&5 2989 ac_status=$? 2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2991 (exit $ac_status); } 2992{ (ac_try="$ac_compiler -V >&5" 2993case "(($ac_try" in 2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2995 *) ac_try_echo=$ac_try;; 2996esac 2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2998 (eval "$ac_compiler -V >&5") 2>&5 2999 ac_status=$? 3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3001 (exit $ac_status); } 3002 3003cat >conftest.$ac_ext <<_ACEOF 3004/* confdefs.h. */ 3005_ACEOF 3006cat confdefs.h >>conftest.$ac_ext 3007cat >>conftest.$ac_ext <<_ACEOF 3008/* end confdefs.h. */ 3009 3010int 3011main () 3012{ 3013 3014 ; 3015 return 0; 3016} 3017_ACEOF 3018ac_clean_files_save=$ac_clean_files 3019ac_clean_files="$ac_clean_files a.out a.exe b.out" 3020# Try to create an executable without -o first, disregard a.out. 3021# It will help us diagnose broken compilers, and finding out an intuition 3022# of exeext. 3023{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3024echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3025ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3026# 3027# List of possible output files, starting from the most likely. 3028# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3029# only as a last resort. b.out is created by i960 compilers. 3030ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3031# 3032# The IRIX 6 linker writes into existing files which may not be 3033# executable, retaining their permissions. Remove them first so a 3034# subsequent execution test works. 3035ac_rmfiles= 3036for ac_file in $ac_files 3037do 3038 case $ac_file in 3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3040 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3041 esac 3042done 3043rm -f $ac_rmfiles 3044 3045if { (ac_try="$ac_link_default" 3046case "(($ac_try" in 3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3048 *) ac_try_echo=$ac_try;; 3049esac 3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3051 (eval "$ac_link_default") 2>&5 3052 ac_status=$? 3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3054 (exit $ac_status); }; then 3055 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3056# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3057# in a Makefile. We should not override ac_cv_exeext if it was cached, 3058# so that the user can short-circuit this test for compilers unknown to 3059# Autoconf. 3060for ac_file in $ac_files '' 3061do 3062 test -f "$ac_file" || continue 3063 case $ac_file in 3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3065 ;; 3066 [ab].out ) 3067 # We found the default executable, but exeext='' is most 3068 # certainly right. 3069 break;; 3070 *.* ) 3071 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3072 then :; else 3073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3074 fi 3075 # We set ac_cv_exeext here because the later test for it is not 3076 # safe: cross compilers may not add the suffix if given an `-o' 3077 # argument, so we may need to know it at that point already. 3078 # Even if this section looks crufty: it has the advantage of 3079 # actually working. 3080 break;; 3081 * ) 3082 break;; 3083 esac 3084done 3085test "$ac_cv_exeext" = no && ac_cv_exeext= 3086 3087else 3088 ac_file='' 3089fi 3090 3091{ echo "$as_me:$LINENO: result: $ac_file" >&5 3092echo "${ECHO_T}$ac_file" >&6; } 3093if test -z "$ac_file"; then 3094 echo "$as_me: failed program was:" >&5 3095sed 's/^/| /' conftest.$ac_ext >&5 3096 3097{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3098See \`config.log' for more details." >&5 3099echo "$as_me: error: C compiler cannot create executables 3100See \`config.log' for more details." >&2;} 3101 { (exit 77); exit 77; }; } 3102fi 3103 3104ac_exeext=$ac_cv_exeext 3105 3106# Check that the compiler produces executables we can run. If not, either 3107# the compiler is broken, or we cross compile. 3108{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3109echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3110# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3111# If not cross compiling, check that we can run a simple program. 3112if test "$cross_compiling" != yes; then 3113 if { ac_try='./$ac_file' 3114 { (case "(($ac_try" in 3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3116 *) ac_try_echo=$ac_try;; 3117esac 3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3119 (eval "$ac_try") 2>&5 3120 ac_status=$? 3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3122 (exit $ac_status); }; }; then 3123 cross_compiling=no 3124 else 3125 if test "$cross_compiling" = maybe; then 3126 cross_compiling=yes 3127 else 3128 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3129If you meant to cross compile, use \`--host'. 3130See \`config.log' for more details." >&5 3131echo "$as_me: error: cannot run C compiled programs. 3132If you meant to cross compile, use \`--host'. 3133See \`config.log' for more details." >&2;} 3134 { (exit 1); exit 1; }; } 3135 fi 3136 fi 3137fi 3138{ echo "$as_me:$LINENO: result: yes" >&5 3139echo "${ECHO_T}yes" >&6; } 3140 3141rm -f a.out a.exe conftest$ac_cv_exeext b.out 3142ac_clean_files=$ac_clean_files_save 3143# Check that the compiler produces executables we can run. If not, either 3144# the compiler is broken, or we cross compile. 3145{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3146echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3147{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3148echo "${ECHO_T}$cross_compiling" >&6; } 3149 3150{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3151echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3152if { (ac_try="$ac_link" 3153case "(($ac_try" in 3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3155 *) ac_try_echo=$ac_try;; 3156esac 3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3158 (eval "$ac_link") 2>&5 3159 ac_status=$? 3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3161 (exit $ac_status); }; then 3162 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3163# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3164# work properly (i.e., refer to `conftest.exe'), while it won't with 3165# `rm'. 3166for ac_file in conftest.exe conftest conftest.*; do 3167 test -f "$ac_file" || continue 3168 case $ac_file in 3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3171 break;; 3172 * ) break;; 3173 esac 3174done 3175else 3176 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3177See \`config.log' for more details." >&5 3178echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3179See \`config.log' for more details." >&2;} 3180 { (exit 1); exit 1; }; } 3181fi 3182 3183rm -f conftest$ac_cv_exeext 3184{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3185echo "${ECHO_T}$ac_cv_exeext" >&6; } 3186 3187rm -f conftest.$ac_ext 3188EXEEXT=$ac_cv_exeext 3189ac_exeext=$EXEEXT 3190{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3191echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3192if test "${ac_cv_objext+set}" = set; then 3193 echo $ECHO_N "(cached) $ECHO_C" >&6 3194else 3195 cat >conftest.$ac_ext <<_ACEOF 3196/* confdefs.h. */ 3197_ACEOF 3198cat confdefs.h >>conftest.$ac_ext 3199cat >>conftest.$ac_ext <<_ACEOF 3200/* end confdefs.h. */ 3201 3202int 3203main () 3204{ 3205 3206 ; 3207 return 0; 3208} 3209_ACEOF 3210rm -f conftest.o conftest.obj 3211if { (ac_try="$ac_compile" 3212case "(($ac_try" in 3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3214 *) ac_try_echo=$ac_try;; 3215esac 3216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3217 (eval "$ac_compile") 2>&5 3218 ac_status=$? 3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3220 (exit $ac_status); }; then 3221 for ac_file in conftest.o conftest.obj conftest.*; do 3222 test -f "$ac_file" || continue; 3223 case $ac_file in 3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3226 break;; 3227 esac 3228done 3229else 3230 echo "$as_me: failed program was:" >&5 3231sed 's/^/| /' conftest.$ac_ext >&5 3232 3233{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3234See \`config.log' for more details." >&5 3235echo "$as_me: error: cannot compute suffix of object files: cannot compile 3236See \`config.log' for more details." >&2;} 3237 { (exit 1); exit 1; }; } 3238fi 3239 3240rm -f conftest.$ac_cv_objext conftest.$ac_ext 3241fi 3242{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3243echo "${ECHO_T}$ac_cv_objext" >&6; } 3244OBJEXT=$ac_cv_objext 3245ac_objext=$OBJEXT 3246{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3247echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3248if test "${ac_cv_c_compiler_gnu+set}" = set; then 3249 echo $ECHO_N "(cached) $ECHO_C" >&6 3250else 3251 cat >conftest.$ac_ext <<_ACEOF 3252/* confdefs.h. */ 3253_ACEOF 3254cat confdefs.h >>conftest.$ac_ext 3255cat >>conftest.$ac_ext <<_ACEOF 3256/* end confdefs.h. */ 3257 3258int 3259main () 3260{ 3261#ifndef __GNUC__ 3262 choke me 3263#endif 3264 3265 ; 3266 return 0; 3267} 3268_ACEOF 3269rm -f conftest.$ac_objext 3270if { (ac_try="$ac_compile" 3271case "(($ac_try" in 3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3273 *) ac_try_echo=$ac_try;; 3274esac 3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3276 (eval "$ac_compile") 2>conftest.er1 3277 ac_status=$? 3278 grep -v '^ *+' conftest.er1 >conftest.err 3279 rm -f conftest.er1 3280 cat conftest.err >&5 3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3282 (exit $ac_status); } && { 3283 test -z "$ac_c_werror_flag" || 3284 test ! -s conftest.err 3285 } && test -s conftest.$ac_objext; then 3286 ac_compiler_gnu=yes 3287else 3288 echo "$as_me: failed program was:" >&5 3289sed 's/^/| /' conftest.$ac_ext >&5 3290 3291 ac_compiler_gnu=no 3292fi 3293 3294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3295ac_cv_c_compiler_gnu=$ac_compiler_gnu 3296 3297fi 3298{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3299echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3300GCC=`test $ac_compiler_gnu = yes && echo yes` 3301ac_test_CFLAGS=${CFLAGS+set} 3302ac_save_CFLAGS=$CFLAGS 3303{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3304echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3305if test "${ac_cv_prog_cc_g+set}" = set; then 3306 echo $ECHO_N "(cached) $ECHO_C" >&6 3307else 3308 ac_save_c_werror_flag=$ac_c_werror_flag 3309 ac_c_werror_flag=yes 3310 ac_cv_prog_cc_g=no 3311 CFLAGS="-g" 3312 cat >conftest.$ac_ext <<_ACEOF 3313/* confdefs.h. */ 3314_ACEOF 3315cat confdefs.h >>conftest.$ac_ext 3316cat >>conftest.$ac_ext <<_ACEOF 3317/* end confdefs.h. */ 3318 3319int 3320main () 3321{ 3322 3323 ; 3324 return 0; 3325} 3326_ACEOF 3327rm -f conftest.$ac_objext 3328if { (ac_try="$ac_compile" 3329case "(($ac_try" in 3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3331 *) ac_try_echo=$ac_try;; 3332esac 3333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3334 (eval "$ac_compile") 2>conftest.er1 3335 ac_status=$? 3336 grep -v '^ *+' conftest.er1 >conftest.err 3337 rm -f conftest.er1 3338 cat conftest.err >&5 3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3340 (exit $ac_status); } && { 3341 test -z "$ac_c_werror_flag" || 3342 test ! -s conftest.err 3343 } && test -s conftest.$ac_objext; then 3344 ac_cv_prog_cc_g=yes 3345else 3346 echo "$as_me: failed program was:" >&5 3347sed 's/^/| /' conftest.$ac_ext >&5 3348 3349 CFLAGS="" 3350 cat >conftest.$ac_ext <<_ACEOF 3351/* confdefs.h. */ 3352_ACEOF 3353cat confdefs.h >>conftest.$ac_ext 3354cat >>conftest.$ac_ext <<_ACEOF 3355/* end confdefs.h. */ 3356 3357int 3358main () 3359{ 3360 3361 ; 3362 return 0; 3363} 3364_ACEOF 3365rm -f conftest.$ac_objext 3366if { (ac_try="$ac_compile" 3367case "(($ac_try" in 3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3369 *) ac_try_echo=$ac_try;; 3370esac 3371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3372 (eval "$ac_compile") 2>conftest.er1 3373 ac_status=$? 3374 grep -v '^ *+' conftest.er1 >conftest.err 3375 rm -f conftest.er1 3376 cat conftest.err >&5 3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3378 (exit $ac_status); } && { 3379 test -z "$ac_c_werror_flag" || 3380 test ! -s conftest.err 3381 } && test -s conftest.$ac_objext; then 3382 : 3383else 3384 echo "$as_me: failed program was:" >&5 3385sed 's/^/| /' conftest.$ac_ext >&5 3386 3387 ac_c_werror_flag=$ac_save_c_werror_flag 3388 CFLAGS="-g" 3389 cat >conftest.$ac_ext <<_ACEOF 3390/* confdefs.h. */ 3391_ACEOF 3392cat confdefs.h >>conftest.$ac_ext 3393cat >>conftest.$ac_ext <<_ACEOF 3394/* end confdefs.h. */ 3395 3396int 3397main () 3398{ 3399 3400 ; 3401 return 0; 3402} 3403_ACEOF 3404rm -f conftest.$ac_objext 3405if { (ac_try="$ac_compile" 3406case "(($ac_try" in 3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3408 *) ac_try_echo=$ac_try;; 3409esac 3410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3411 (eval "$ac_compile") 2>conftest.er1 3412 ac_status=$? 3413 grep -v '^ *+' conftest.er1 >conftest.err 3414 rm -f conftest.er1 3415 cat conftest.err >&5 3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3417 (exit $ac_status); } && { 3418 test -z "$ac_c_werror_flag" || 3419 test ! -s conftest.err 3420 } && test -s conftest.$ac_objext; then 3421 ac_cv_prog_cc_g=yes 3422else 3423 echo "$as_me: failed program was:" >&5 3424sed 's/^/| /' conftest.$ac_ext >&5 3425 3426 3427fi 3428 3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3430fi 3431 3432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3433fi 3434 3435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3436 ac_c_werror_flag=$ac_save_c_werror_flag 3437fi 3438{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3439echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3440if test "$ac_test_CFLAGS" = set; then 3441 CFLAGS=$ac_save_CFLAGS 3442elif test $ac_cv_prog_cc_g = yes; then 3443 if test "$GCC" = yes; then 3444 CFLAGS="-g -O2" 3445 else 3446 CFLAGS="-g" 3447 fi 3448else 3449 if test "$GCC" = yes; then 3450 CFLAGS="-O2" 3451 else 3452 CFLAGS= 3453 fi 3454fi 3455{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3456echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3457if test "${ac_cv_prog_cc_c89+set}" = set; then 3458 echo $ECHO_N "(cached) $ECHO_C" >&6 3459else 3460 ac_cv_prog_cc_c89=no 3461ac_save_CC=$CC 3462cat >conftest.$ac_ext <<_ACEOF 3463/* confdefs.h. */ 3464_ACEOF 3465cat confdefs.h >>conftest.$ac_ext 3466cat >>conftest.$ac_ext <<_ACEOF 3467/* end confdefs.h. */ 3468#include <stdarg.h> 3469#include <stdio.h> 3470#include <sys/types.h> 3471#include <sys/stat.h> 3472/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3473struct buf { int x; }; 3474FILE * (*rcsopen) (struct buf *, struct stat *, int); 3475static char *e (p, i) 3476 char **p; 3477 int i; 3478{ 3479 return p[i]; 3480} 3481static char *f (char * (*g) (char **, int), char **p, ...) 3482{ 3483 char *s; 3484 va_list v; 3485 va_start (v,p); 3486 s = g (p, va_arg (v,int)); 3487 va_end (v); 3488 return s; 3489} 3490 3491/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3492 function prototypes and stuff, but not '\xHH' hex character constants. 3493 These don't provoke an error unfortunately, instead are silently treated 3494 as 'x'. The following induces an error, until -std is added to get 3495 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3496 array size at least. It's necessary to write '\x00'==0 to get something 3497 that's true only with -std. */ 3498int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3499 3500/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3501 inside strings and character constants. */ 3502#define FOO(x) 'x' 3503int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3504 3505int test (int i, double x); 3506struct s1 {int (*f) (int a);}; 3507struct s2 {int (*f) (double a);}; 3508int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3509int argc; 3510char **argv; 3511int 3512main () 3513{ 3514return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3515 ; 3516 return 0; 3517} 3518_ACEOF 3519for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3520 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3521do 3522 CC="$ac_save_CC $ac_arg" 3523 rm -f conftest.$ac_objext 3524if { (ac_try="$ac_compile" 3525case "(($ac_try" in 3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3527 *) ac_try_echo=$ac_try;; 3528esac 3529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3530 (eval "$ac_compile") 2>conftest.er1 3531 ac_status=$? 3532 grep -v '^ *+' conftest.er1 >conftest.err 3533 rm -f conftest.er1 3534 cat conftest.err >&5 3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3536 (exit $ac_status); } && { 3537 test -z "$ac_c_werror_flag" || 3538 test ! -s conftest.err 3539 } && test -s conftest.$ac_objext; then 3540 ac_cv_prog_cc_c89=$ac_arg 3541else 3542 echo "$as_me: failed program was:" >&5 3543sed 's/^/| /' conftest.$ac_ext >&5 3544 3545 3546fi 3547 3548rm -f core conftest.err conftest.$ac_objext 3549 test "x$ac_cv_prog_cc_c89" != "xno" && break 3550done 3551rm -f conftest.$ac_ext 3552CC=$ac_save_CC 3553 3554fi 3555# AC_CACHE_VAL 3556case "x$ac_cv_prog_cc_c89" in 3557 x) 3558 { echo "$as_me:$LINENO: result: none needed" >&5 3559echo "${ECHO_T}none needed" >&6; } ;; 3560 xno) 3561 { echo "$as_me:$LINENO: result: unsupported" >&5 3562echo "${ECHO_T}unsupported" >&6; } ;; 3563 *) 3564 CC="$CC $ac_cv_prog_cc_c89" 3565 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3566echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3567esac 3568 3569 3570ac_ext=c 3571ac_cpp='$CPP $CPPFLAGS' 3572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3574ac_compiler_gnu=$ac_cv_c_compiler_gnu 3575 3576depcc="$CC" am_compiler_list= 3577 3578{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3579echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3580if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3581 echo $ECHO_N "(cached) $ECHO_C" >&6 3582else 3583 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3584 # We make a subdir and do the tests there. Otherwise we can end up 3585 # making bogus files that we don't know about and never remove. For 3586 # instance it was reported that on HP-UX the gcc test will end up 3587 # making a dummy file named `D' -- because `-MD' means `put the output 3588 # in D'. 3589 mkdir conftest.dir 3590 # Copy depcomp to subdir because otherwise we won't find it if we're 3591 # using a relative directory. 3592 cp "$am_depcomp" conftest.dir 3593 cd conftest.dir 3594 # We will build objects and dependencies in a subdirectory because 3595 # it helps to detect inapplicable dependency modes. For instance 3596 # both Tru64's cc and ICC support -MD to output dependencies as a 3597 # side effect of compilation, but ICC will put the dependencies in 3598 # the current directory while Tru64 will put them in the object 3599 # directory. 3600 mkdir sub 3601 3602 am_cv_CC_dependencies_compiler_type=none 3603 if test "$am_compiler_list" = ""; then 3604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3605 fi 3606 for depmode in $am_compiler_list; do 3607 # Setup a source with many dependencies, because some compilers 3608 # like to wrap large dependency lists on column 80 (with \), and 3609 # we should not choose a depcomp mode which is confused by this. 3610 # 3611 # We need to recreate these files for each test, as the compiler may 3612 # overwrite some of them when testing with obscure command lines. 3613 # This happens at least with the AIX C compiler. 3614 : > sub/conftest.c 3615 for i in 1 2 3 4 5 6; do 3616 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3617 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3618 # Solaris 8's {/usr,}/bin/sh. 3619 touch sub/conftst$i.h 3620 done 3621 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3622 3623 case $depmode in 3624 nosideeffect) 3625 # after this tag, mechanisms are not by side-effect, so they'll 3626 # only be used when explicitly requested 3627 if test "x$enable_dependency_tracking" = xyes; then 3628 continue 3629 else 3630 break 3631 fi 3632 ;; 3633 none) break ;; 3634 esac 3635 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3636 # mode. It turns out that the SunPro C++ compiler does not properly 3637 # handle `-M -o', and we need to detect this. 3638 if depmode=$depmode \ 3639 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3640 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3641 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3642 >/dev/null 2>conftest.err && 3643 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3644 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3645 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3646 # icc doesn't choke on unknown options, it will just issue warnings 3647 # or remarks (even with -Werror). So we grep stderr for any message 3648 # that says an option was ignored or not supported. 3649 # When given -MP, icc 7.0 and 7.1 complain thusly: 3650 # icc: Command line warning: ignoring option '-M'; no argument required 3651 # The diagnosis changed in icc 8.0: 3652 # icc: Command line remark: option '-MP' not supported 3653 if (grep 'ignoring option' conftest.err || 3654 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3655 am_cv_CC_dependencies_compiler_type=$depmode 3656 break 3657 fi 3658 fi 3659 done 3660 3661 cd .. 3662 rm -rf conftest.dir 3663else 3664 am_cv_CC_dependencies_compiler_type=none 3665fi 3666 3667fi 3668{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3669echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3670CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3671 3672 3673 3674if 3675 test "x$enable_dependency_tracking" != xno \ 3676 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3677 am__fastdepCC_TRUE= 3678 am__fastdepCC_FALSE='#' 3679else 3680 am__fastdepCC_TRUE='#' 3681 am__fastdepCC_FALSE= 3682fi 3683 3684 3685{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3686echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3687if test "${lt_cv_path_SED+set}" = set; then 3688 echo $ECHO_N "(cached) $ECHO_C" >&6 3689else 3690 # Loop through the user's path and test for sed and gsed. 3691# Then use that list of sed's as ones to test for truncation. 3692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3693for as_dir in $PATH 3694do 3695 IFS=$as_save_IFS 3696 test -z "$as_dir" && as_dir=. 3697 for lt_ac_prog in sed gsed; do 3698 for ac_exec_ext in '' $ac_executable_extensions; do 3699 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3700 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3701 fi 3702 done 3703 done 3704done 3705lt_ac_max=0 3706lt_ac_count=0 3707# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3708# along with /bin/sed that truncates output. 3709for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3710 test ! -f $lt_ac_sed && continue 3711 cat /dev/null > conftest.in 3712 lt_ac_count=0 3713 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3714 # Check for GNU sed and select it if it is found. 3715 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3716 lt_cv_path_SED=$lt_ac_sed 3717 break 3718 fi 3719 while true; do 3720 cat conftest.in conftest.in >conftest.tmp 3721 mv conftest.tmp conftest.in 3722 cp conftest.in conftest.nl 3723 echo >>conftest.nl 3724 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3725 cmp -s conftest.out conftest.nl || break 3726 # 10000 chars as input seems more than enough 3727 test $lt_ac_count -gt 10 && break 3728 lt_ac_count=`expr $lt_ac_count + 1` 3729 if test $lt_ac_count -gt $lt_ac_max; then 3730 lt_ac_max=$lt_ac_count 3731 lt_cv_path_SED=$lt_ac_sed 3732 fi 3733 done 3734done 3735 3736fi 3737 3738SED=$lt_cv_path_SED 3739{ echo "$as_me:$LINENO: result: $SED" >&5 3740echo "${ECHO_T}$SED" >&6; } 3741 3742{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3743echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3744if test "${ac_cv_path_GREP+set}" = set; then 3745 echo $ECHO_N "(cached) $ECHO_C" >&6 3746else 3747 # Extract the first word of "grep ggrep" to use in msg output 3748if test -z "$GREP"; then 3749set dummy grep ggrep; ac_prog_name=$2 3750if test "${ac_cv_path_GREP+set}" = set; then 3751 echo $ECHO_N "(cached) $ECHO_C" >&6 3752else 3753 ac_path_GREP_found=false 3754# Loop through the user's path and test for each of PROGNAME-LIST 3755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3756for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3757do 3758 IFS=$as_save_IFS 3759 test -z "$as_dir" && as_dir=. 3760 for ac_prog in grep ggrep; do 3761 for ac_exec_ext in '' $ac_executable_extensions; do 3762 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3763 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3764 # Check for GNU ac_path_GREP and select it if it is found. 3765 # Check for GNU $ac_path_GREP 3766case `"$ac_path_GREP" --version 2>&1` in 3767*GNU*) 3768 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3769*) 3770 ac_count=0 3771 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3772 while : 3773 do 3774 cat "conftest.in" "conftest.in" >"conftest.tmp" 3775 mv "conftest.tmp" "conftest.in" 3776 cp "conftest.in" "conftest.nl" 3777 echo 'GREP' >> "conftest.nl" 3778 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3780 ac_count=`expr $ac_count + 1` 3781 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3782 # Best one so far, save it but keep looking for a better one 3783 ac_cv_path_GREP="$ac_path_GREP" 3784 ac_path_GREP_max=$ac_count 3785 fi 3786 # 10*(2^10) chars as input seems more than enough 3787 test $ac_count -gt 10 && break 3788 done 3789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3790esac 3791 3792 3793 $ac_path_GREP_found && break 3 3794 done 3795done 3796 3797done 3798IFS=$as_save_IFS 3799 3800 3801fi 3802 3803GREP="$ac_cv_path_GREP" 3804if test -z "$GREP"; then 3805 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3806echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3807 { (exit 1); exit 1; }; } 3808fi 3809 3810else 3811 ac_cv_path_GREP=$GREP 3812fi 3813 3814 3815fi 3816{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3817echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3818 GREP="$ac_cv_path_GREP" 3819 3820 3821{ echo "$as_me:$LINENO: checking for egrep" >&5 3822echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3823if test "${ac_cv_path_EGREP+set}" = set; then 3824 echo $ECHO_N "(cached) $ECHO_C" >&6 3825else 3826 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3827 then ac_cv_path_EGREP="$GREP -E" 3828 else 3829 # Extract the first word of "egrep" to use in msg output 3830if test -z "$EGREP"; then 3831set dummy egrep; ac_prog_name=$2 3832if test "${ac_cv_path_EGREP+set}" = set; then 3833 echo $ECHO_N "(cached) $ECHO_C" >&6 3834else 3835 ac_path_EGREP_found=false 3836# Loop through the user's path and test for each of PROGNAME-LIST 3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3838for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3839do 3840 IFS=$as_save_IFS 3841 test -z "$as_dir" && as_dir=. 3842 for ac_prog in egrep; do 3843 for ac_exec_ext in '' $ac_executable_extensions; do 3844 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3845 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3846 # Check for GNU ac_path_EGREP and select it if it is found. 3847 # Check for GNU $ac_path_EGREP 3848case `"$ac_path_EGREP" --version 2>&1` in 3849*GNU*) 3850 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3851*) 3852 ac_count=0 3853 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3854 while : 3855 do 3856 cat "conftest.in" "conftest.in" >"conftest.tmp" 3857 mv "conftest.tmp" "conftest.in" 3858 cp "conftest.in" "conftest.nl" 3859 echo 'EGREP' >> "conftest.nl" 3860 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3862 ac_count=`expr $ac_count + 1` 3863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3864 # Best one so far, save it but keep looking for a better one 3865 ac_cv_path_EGREP="$ac_path_EGREP" 3866 ac_path_EGREP_max=$ac_count 3867 fi 3868 # 10*(2^10) chars as input seems more than enough 3869 test $ac_count -gt 10 && break 3870 done 3871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3872esac 3873 3874 3875 $ac_path_EGREP_found && break 3 3876 done 3877done 3878 3879done 3880IFS=$as_save_IFS 3881 3882 3883fi 3884 3885EGREP="$ac_cv_path_EGREP" 3886if test -z "$EGREP"; then 3887 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3888echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3889 { (exit 1); exit 1; }; } 3890fi 3891 3892else 3893 ac_cv_path_EGREP=$EGREP 3894fi 3895 3896 3897 fi 3898fi 3899{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3900echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3901 EGREP="$ac_cv_path_EGREP" 3902 3903 3904 3905# Check whether --with-gnu-ld was given. 3906if test "${with_gnu_ld+set}" = set; then 3907 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3908else 3909 with_gnu_ld=no 3910fi 3911 3912ac_prog=ld 3913if test "$GCC" = yes; then 3914 # Check if gcc -print-prog-name=ld gives a path. 3915 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3916echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3917 case $host in 3918 *-*-mingw*) 3919 # gcc leaves a trailing carriage return which upsets mingw 3920 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3921 *) 3922 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3923 esac 3924 case $ac_prog in 3925 # Accept absolute paths. 3926 [\\/]* | ?:[\\/]*) 3927 re_direlt='/[^/][^/]*/\.\./' 3928 # Canonicalize the pathname of ld 3929 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3930 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3931 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3932 done 3933 test -z "$LD" && LD="$ac_prog" 3934 ;; 3935 "") 3936 # If it fails, then pretend we aren't using GCC. 3937 ac_prog=ld 3938 ;; 3939 *) 3940 # If it is relative, then search for the first ld in PATH. 3941 with_gnu_ld=unknown 3942 ;; 3943 esac 3944elif test "$with_gnu_ld" = yes; then 3945 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3946echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3947else 3948 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3949echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3950fi 3951if test "${lt_cv_path_LD+set}" = set; then 3952 echo $ECHO_N "(cached) $ECHO_C" >&6 3953else 3954 if test -z "$LD"; then 3955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3956 for ac_dir in $PATH; do 3957 IFS="$lt_save_ifs" 3958 test -z "$ac_dir" && ac_dir=. 3959 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3960 lt_cv_path_LD="$ac_dir/$ac_prog" 3961 # Check to see if the program is GNU ld. I'd rather use --version, 3962 # but apparently some variants of GNU ld only accept -v. 3963 # Break only if it was the GNU/non-GNU ld that we prefer. 3964 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3965 *GNU* | *'with BFD'*) 3966 test "$with_gnu_ld" != no && break 3967 ;; 3968 *) 3969 test "$with_gnu_ld" != yes && break 3970 ;; 3971 esac 3972 fi 3973 done 3974 IFS="$lt_save_ifs" 3975else 3976 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3977fi 3978fi 3979 3980LD="$lt_cv_path_LD" 3981if test -n "$LD"; then 3982 { echo "$as_me:$LINENO: result: $LD" >&5 3983echo "${ECHO_T}$LD" >&6; } 3984else 3985 { echo "$as_me:$LINENO: result: no" >&5 3986echo "${ECHO_T}no" >&6; } 3987fi 3988test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3989echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3990 { (exit 1); exit 1; }; } 3991{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3992echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 3993if test "${lt_cv_prog_gnu_ld+set}" = set; then 3994 echo $ECHO_N "(cached) $ECHO_C" >&6 3995else 3996 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3997case `$LD -v 2>&1 </dev/null` in 3998*GNU* | *'with BFD'*) 3999 lt_cv_prog_gnu_ld=yes 4000 ;; 4001*) 4002 lt_cv_prog_gnu_ld=no 4003 ;; 4004esac 4005fi 4006{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4007echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4008with_gnu_ld=$lt_cv_prog_gnu_ld 4009 4010 4011{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4012echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4013if test "${lt_cv_ld_reload_flag+set}" = set; then 4014 echo $ECHO_N "(cached) $ECHO_C" >&6 4015else 4016 lt_cv_ld_reload_flag='-r' 4017fi 4018{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4019echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4020reload_flag=$lt_cv_ld_reload_flag 4021case $reload_flag in 4022"" | " "*) ;; 4023*) reload_flag=" $reload_flag" ;; 4024esac 4025reload_cmds='$LD$reload_flag -o $output$reload_objs' 4026case $host_os in 4027 darwin*) 4028 if test "$GCC" = yes; then 4029 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4030 else 4031 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4032 fi 4033 ;; 4034esac 4035 4036{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4037echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4038if test "${lt_cv_path_NM+set}" = set; then 4039 echo $ECHO_N "(cached) $ECHO_C" >&6 4040else 4041 if test -n "$NM"; then 4042 # Let the user override the test. 4043 lt_cv_path_NM="$NM" 4044else 4045 lt_nm_to_check="${ac_tool_prefix}nm" 4046 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4047 lt_nm_to_check="$lt_nm_to_check nm" 4048 fi 4049 for lt_tmp_nm in $lt_nm_to_check; do 4050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4051 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4052 IFS="$lt_save_ifs" 4053 test -z "$ac_dir" && ac_dir=. 4054 tmp_nm="$ac_dir/$lt_tmp_nm" 4055 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4056 # Check to see if the nm accepts a BSD-compat flag. 4057 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4058 # nm: unknown option "B" ignored 4059 # Tru64's nm complains that /dev/null is an invalid object file 4060 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4061 */dev/null* | *'Invalid file or object type'*) 4062 lt_cv_path_NM="$tmp_nm -B" 4063 break 4064 ;; 4065 *) 4066 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4067 */dev/null*) 4068 lt_cv_path_NM="$tmp_nm -p" 4069 break 4070 ;; 4071 *) 4072 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4073 continue # so that we can try to find one that supports BSD flags 4074 ;; 4075 esac 4076 ;; 4077 esac 4078 fi 4079 done 4080 IFS="$lt_save_ifs" 4081 done 4082 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4083fi 4084fi 4085{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4086echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4087NM="$lt_cv_path_NM" 4088 4089{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4090echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4091LN_S=$as_ln_s 4092if test "$LN_S" = "ln -s"; then 4093 { echo "$as_me:$LINENO: result: yes" >&5 4094echo "${ECHO_T}yes" >&6; } 4095else 4096 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4097echo "${ECHO_T}no, using $LN_S" >&6; } 4098fi 4099 4100{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4101echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4102if test "${lt_cv_deplibs_check_method+set}" = set; then 4103 echo $ECHO_N "(cached) $ECHO_C" >&6 4104else 4105 lt_cv_file_magic_cmd='$MAGIC_CMD' 4106lt_cv_file_magic_test_file= 4107lt_cv_deplibs_check_method='unknown' 4108# Need to set the preceding variable on all platforms that support 4109# interlibrary dependencies. 4110# 'none' -- dependencies not supported. 4111# `unknown' -- same as none, but documents that we really don't know. 4112# 'pass_all' -- all dependencies passed with no checks. 4113# 'test_compile' -- check by making test program. 4114# 'file_magic [[regex]]' -- check by looking for files in library path 4115# which responds to the $file_magic_cmd with a given extended regex. 4116# If you have `file' or equivalent on your system and you're not sure 4117# whether `pass_all' will *always* work, you probably want this one. 4118 4119case $host_os in 4120aix4* | aix5*) 4121 lt_cv_deplibs_check_method=pass_all 4122 ;; 4123 4124beos*) 4125 lt_cv_deplibs_check_method=pass_all 4126 ;; 4127 4128bsdi[45]*) 4129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4130 lt_cv_file_magic_cmd='/usr/bin/file -L' 4131 lt_cv_file_magic_test_file=/shlib/libc.so 4132 ;; 4133 4134cygwin*) 4135 # func_win32_libid is a shell function defined in ltmain.sh 4136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4137 lt_cv_file_magic_cmd='func_win32_libid' 4138 ;; 4139 4140mingw* | pw32*) 4141 # Base MSYS/MinGW do not provide the 'file' command needed by 4142 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4143 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4144 lt_cv_file_magic_cmd='$OBJDUMP -f' 4145 ;; 4146 4147darwin* | rhapsody*) 4148 lt_cv_deplibs_check_method=pass_all 4149 ;; 4150 4151freebsd* | kfreebsd*-gnu | dragonfly*) 4152 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4153 case $host_cpu in 4154 i*86 ) 4155 # Not sure whether the presence of OpenBSD here was a mistake. 4156 # Let's accept both of them until this is cleared up. 4157 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4158 lt_cv_file_magic_cmd=/usr/bin/file 4159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4160 ;; 4161 esac 4162 else 4163 lt_cv_deplibs_check_method=pass_all 4164 fi 4165 ;; 4166 4167gnu*) 4168 lt_cv_deplibs_check_method=pass_all 4169 ;; 4170 4171hpux10.20* | hpux11*) 4172 lt_cv_file_magic_cmd=/usr/bin/file 4173 case $host_cpu in 4174 ia64*) 4175 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4176 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4177 ;; 4178 hppa*64*) 4179 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]' 4180 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4181 ;; 4182 *) 4183 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4184 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4185 ;; 4186 esac 4187 ;; 4188 4189interix3*) 4190 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4192 ;; 4193 4194irix5* | irix6* | nonstopux*) 4195 case $LD in 4196 *-32|*"-32 ") libmagic=32-bit;; 4197 *-n32|*"-n32 ") libmagic=N32;; 4198 *-64|*"-64 ") libmagic=64-bit;; 4199 *) libmagic=never-match;; 4200 esac 4201 lt_cv_deplibs_check_method=pass_all 4202 ;; 4203 4204# This must be Linux ELF. 4205linux*) 4206 lt_cv_deplibs_check_method=pass_all 4207 ;; 4208 4209netbsd*) 4210 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4212 else 4213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4214 fi 4215 ;; 4216 4217newos6*) 4218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4219 lt_cv_file_magic_cmd=/usr/bin/file 4220 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4221 ;; 4222 4223nto-qnx*) 4224 lt_cv_deplibs_check_method=unknown 4225 ;; 4226 4227openbsd*) 4228 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4230 else 4231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4232 fi 4233 ;; 4234 4235osf3* | osf4* | osf5*) 4236 lt_cv_deplibs_check_method=pass_all 4237 ;; 4238 4239solaris*) 4240 lt_cv_deplibs_check_method=pass_all 4241 ;; 4242 4243sysv4 | sysv4.3*) 4244 case $host_vendor in 4245 motorola) 4246 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]' 4247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4248 ;; 4249 ncr) 4250 lt_cv_deplibs_check_method=pass_all 4251 ;; 4252 sequent) 4253 lt_cv_file_magic_cmd='/bin/file' 4254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4255 ;; 4256 sni) 4257 lt_cv_file_magic_cmd='/bin/file' 4258 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4259 lt_cv_file_magic_test_file=/lib/libc.so 4260 ;; 4261 siemens) 4262 lt_cv_deplibs_check_method=pass_all 4263 ;; 4264 pc) 4265 lt_cv_deplibs_check_method=pass_all 4266 ;; 4267 esac 4268 ;; 4269 4270sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4271 lt_cv_deplibs_check_method=pass_all 4272 ;; 4273esac 4274 4275fi 4276{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4277echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4278file_magic_cmd=$lt_cv_file_magic_cmd 4279deplibs_check_method=$lt_cv_deplibs_check_method 4280test -z "$deplibs_check_method" && deplibs_check_method=unknown 4281 4282 4283 4284 4285# If no C compiler was specified, use CC. 4286LTCC=${LTCC-"$CC"} 4287 4288# If no C compiler flags were specified, use CFLAGS. 4289LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4290 4291# Allow CC to be a program name with arguments. 4292compiler=$CC 4293 4294 4295# Check whether --enable-libtool-lock was given. 4296if test "${enable_libtool_lock+set}" = set; then 4297 enableval=$enable_libtool_lock; 4298fi 4299 4300test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4301 4302# Some flags need to be propagated to the compiler or linker for good 4303# libtool support. 4304case $host in 4305ia64-*-hpux*) 4306 # Find out which ABI we are using. 4307 echo 'int i;' > conftest.$ac_ext 4308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4309 (eval $ac_compile) 2>&5 4310 ac_status=$? 4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4312 (exit $ac_status); }; then 4313 case `/usr/bin/file conftest.$ac_objext` in 4314 *ELF-32*) 4315 HPUX_IA64_MODE="32" 4316 ;; 4317 *ELF-64*) 4318 HPUX_IA64_MODE="64" 4319 ;; 4320 esac 4321 fi 4322 rm -rf conftest* 4323 ;; 4324*-*-irix6*) 4325 # Find out which ABI we are using. 4326 echo '#line 4326 "configure"' > conftest.$ac_ext 4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4328 (eval $ac_compile) 2>&5 4329 ac_status=$? 4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4331 (exit $ac_status); }; then 4332 if test "$lt_cv_prog_gnu_ld" = yes; then 4333 case `/usr/bin/file conftest.$ac_objext` in 4334 *32-bit*) 4335 LD="${LD-ld} -melf32bsmip" 4336 ;; 4337 *N32*) 4338 LD="${LD-ld} -melf32bmipn32" 4339 ;; 4340 *64-bit*) 4341 LD="${LD-ld} -melf64bmip" 4342 ;; 4343 esac 4344 else 4345 case `/usr/bin/file conftest.$ac_objext` in 4346 *32-bit*) 4347 LD="${LD-ld} -32" 4348 ;; 4349 *N32*) 4350 LD="${LD-ld} -n32" 4351 ;; 4352 *64-bit*) 4353 LD="${LD-ld} -64" 4354 ;; 4355 esac 4356 fi 4357 fi 4358 rm -rf conftest* 4359 ;; 4360 4361x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4362 # Find out which ABI we are using. 4363 echo 'int i;' > conftest.$ac_ext 4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4365 (eval $ac_compile) 2>&5 4366 ac_status=$? 4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4368 (exit $ac_status); }; then 4369 case `/usr/bin/file conftest.o` in 4370 *32-bit*) 4371 case $host in 4372 x86_64-*linux*) 4373 LD="${LD-ld} -m elf_i386" 4374 ;; 4375 ppc64-*linux*|powerpc64-*linux*) 4376 LD="${LD-ld} -m elf32ppclinux" 4377 ;; 4378 s390x-*linux*) 4379 LD="${LD-ld} -m elf_s390" 4380 ;; 4381 sparc64-*linux*) 4382 LD="${LD-ld} -m elf32_sparc" 4383 ;; 4384 esac 4385 ;; 4386 *64-bit*) 4387 case $host in 4388 x86_64-*linux*) 4389 LD="${LD-ld} -m elf_x86_64" 4390 ;; 4391 ppc*-*linux*|powerpc*-*linux*) 4392 LD="${LD-ld} -m elf64ppc" 4393 ;; 4394 s390*-*linux*) 4395 LD="${LD-ld} -m elf64_s390" 4396 ;; 4397 sparc*-*linux*) 4398 LD="${LD-ld} -m elf64_sparc" 4399 ;; 4400 esac 4401 ;; 4402 esac 4403 fi 4404 rm -rf conftest* 4405 ;; 4406 4407*-*-sco3.2v5*) 4408 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4409 SAVE_CFLAGS="$CFLAGS" 4410 CFLAGS="$CFLAGS -belf" 4411 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4412echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4413if test "${lt_cv_cc_needs_belf+set}" = set; then 4414 echo $ECHO_N "(cached) $ECHO_C" >&6 4415else 4416 ac_ext=c 4417ac_cpp='$CPP $CPPFLAGS' 4418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4420ac_compiler_gnu=$ac_cv_c_compiler_gnu 4421 4422 cat >conftest.$ac_ext <<_ACEOF 4423/* confdefs.h. */ 4424_ACEOF 4425cat confdefs.h >>conftest.$ac_ext 4426cat >>conftest.$ac_ext <<_ACEOF 4427/* end confdefs.h. */ 4428 4429int 4430main () 4431{ 4432 4433 ; 4434 return 0; 4435} 4436_ACEOF 4437rm -f conftest.$ac_objext conftest$ac_exeext 4438if { (ac_try="$ac_link" 4439case "(($ac_try" in 4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4441 *) ac_try_echo=$ac_try;; 4442esac 4443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4444 (eval "$ac_link") 2>conftest.er1 4445 ac_status=$? 4446 grep -v '^ *+' conftest.er1 >conftest.err 4447 rm -f conftest.er1 4448 cat conftest.err >&5 4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4450 (exit $ac_status); } && { 4451 test -z "$ac_c_werror_flag" || 4452 test ! -s conftest.err 4453 } && test -s conftest$ac_exeext && 4454 $as_test_x conftest$ac_exeext; then 4455 lt_cv_cc_needs_belf=yes 4456else 4457 echo "$as_me: failed program was:" >&5 4458sed 's/^/| /' conftest.$ac_ext >&5 4459 4460 lt_cv_cc_needs_belf=no 4461fi 4462 4463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4464 conftest$ac_exeext conftest.$ac_ext 4465 ac_ext=c 4466ac_cpp='$CPP $CPPFLAGS' 4467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4469ac_compiler_gnu=$ac_cv_c_compiler_gnu 4470 4471fi 4472{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4473echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4474 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4475 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4476 CFLAGS="$SAVE_CFLAGS" 4477 fi 4478 ;; 4479sparc*-*solaris*) 4480 # Find out which ABI we are using. 4481 echo 'int i;' > conftest.$ac_ext 4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4483 (eval $ac_compile) 2>&5 4484 ac_status=$? 4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4486 (exit $ac_status); }; then 4487 case `/usr/bin/file conftest.o` in 4488 *64-bit*) 4489 case $lt_cv_prog_gnu_ld in 4490 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4491 *) LD="${LD-ld} -64" ;; 4492 esac 4493 ;; 4494 esac 4495 fi 4496 rm -rf conftest* 4497 ;; 4498 4499 4500esac 4501 4502need_locks="$enable_libtool_lock" 4503 4504 4505ac_ext=c 4506ac_cpp='$CPP $CPPFLAGS' 4507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4509ac_compiler_gnu=$ac_cv_c_compiler_gnu 4510{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4511echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4512# On Suns, sometimes $CPP names a directory. 4513if test -n "$CPP" && test -d "$CPP"; then 4514 CPP= 4515fi 4516if test -z "$CPP"; then 4517 if test "${ac_cv_prog_CPP+set}" = set; then 4518 echo $ECHO_N "(cached) $ECHO_C" >&6 4519else 4520 # Double quotes because CPP needs to be expanded 4521 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4522 do 4523 ac_preproc_ok=false 4524for ac_c_preproc_warn_flag in '' yes 4525do 4526 # Use a header file that comes with gcc, so configuring glibc 4527 # with a fresh cross-compiler works. 4528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4529 # <limits.h> exists even on freestanding compilers. 4530 # On the NeXT, cc -E runs the code through the compiler's parser, 4531 # not just through cpp. "Syntax error" is here to catch this case. 4532 cat >conftest.$ac_ext <<_ACEOF 4533/* confdefs.h. */ 4534_ACEOF 4535cat confdefs.h >>conftest.$ac_ext 4536cat >>conftest.$ac_ext <<_ACEOF 4537/* end confdefs.h. */ 4538#ifdef __STDC__ 4539# include <limits.h> 4540#else 4541# include <assert.h> 4542#endif 4543 Syntax error 4544_ACEOF 4545if { (ac_try="$ac_cpp conftest.$ac_ext" 4546case "(($ac_try" in 4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4548 *) ac_try_echo=$ac_try;; 4549esac 4550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4552 ac_status=$? 4553 grep -v '^ *+' conftest.er1 >conftest.err 4554 rm -f conftest.er1 4555 cat conftest.err >&5 4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4557 (exit $ac_status); } >/dev/null && { 4558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4559 test ! -s conftest.err 4560 }; then 4561 : 4562else 4563 echo "$as_me: failed program was:" >&5 4564sed 's/^/| /' conftest.$ac_ext >&5 4565 4566 # Broken: fails on valid input. 4567continue 4568fi 4569 4570rm -f conftest.err conftest.$ac_ext 4571 4572 # OK, works on sane cases. Now check whether nonexistent headers 4573 # can be detected and how. 4574 cat >conftest.$ac_ext <<_ACEOF 4575/* confdefs.h. */ 4576_ACEOF 4577cat confdefs.h >>conftest.$ac_ext 4578cat >>conftest.$ac_ext <<_ACEOF 4579/* end confdefs.h. */ 4580#include <ac_nonexistent.h> 4581_ACEOF 4582if { (ac_try="$ac_cpp conftest.$ac_ext" 4583case "(($ac_try" in 4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4585 *) ac_try_echo=$ac_try;; 4586esac 4587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4589 ac_status=$? 4590 grep -v '^ *+' conftest.er1 >conftest.err 4591 rm -f conftest.er1 4592 cat conftest.err >&5 4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4594 (exit $ac_status); } >/dev/null && { 4595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4596 test ! -s conftest.err 4597 }; then 4598 # Broken: success on invalid input. 4599continue 4600else 4601 echo "$as_me: failed program was:" >&5 4602sed 's/^/| /' conftest.$ac_ext >&5 4603 4604 # Passes both tests. 4605ac_preproc_ok=: 4606break 4607fi 4608 4609rm -f conftest.err conftest.$ac_ext 4610 4611done 4612# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4613rm -f conftest.err conftest.$ac_ext 4614if $ac_preproc_ok; then 4615 break 4616fi 4617 4618 done 4619 ac_cv_prog_CPP=$CPP 4620 4621fi 4622 CPP=$ac_cv_prog_CPP 4623else 4624 ac_cv_prog_CPP=$CPP 4625fi 4626{ echo "$as_me:$LINENO: result: $CPP" >&5 4627echo "${ECHO_T}$CPP" >&6; } 4628ac_preproc_ok=false 4629for ac_c_preproc_warn_flag in '' yes 4630do 4631 # Use a header file that comes with gcc, so configuring glibc 4632 # with a fresh cross-compiler works. 4633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4634 # <limits.h> exists even on freestanding compilers. 4635 # On the NeXT, cc -E runs the code through the compiler's parser, 4636 # not just through cpp. "Syntax error" is here to catch this case. 4637 cat >conftest.$ac_ext <<_ACEOF 4638/* confdefs.h. */ 4639_ACEOF 4640cat confdefs.h >>conftest.$ac_ext 4641cat >>conftest.$ac_ext <<_ACEOF 4642/* end confdefs.h. */ 4643#ifdef __STDC__ 4644# include <limits.h> 4645#else 4646# include <assert.h> 4647#endif 4648 Syntax error 4649_ACEOF 4650if { (ac_try="$ac_cpp conftest.$ac_ext" 4651case "(($ac_try" in 4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4653 *) ac_try_echo=$ac_try;; 4654esac 4655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4657 ac_status=$? 4658 grep -v '^ *+' conftest.er1 >conftest.err 4659 rm -f conftest.er1 4660 cat conftest.err >&5 4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4662 (exit $ac_status); } >/dev/null && { 4663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4664 test ! -s conftest.err 4665 }; then 4666 : 4667else 4668 echo "$as_me: failed program was:" >&5 4669sed 's/^/| /' conftest.$ac_ext >&5 4670 4671 # Broken: fails on valid input. 4672continue 4673fi 4674 4675rm -f conftest.err conftest.$ac_ext 4676 4677 # OK, works on sane cases. Now check whether nonexistent headers 4678 # can be detected and how. 4679 cat >conftest.$ac_ext <<_ACEOF 4680/* confdefs.h. */ 4681_ACEOF 4682cat confdefs.h >>conftest.$ac_ext 4683cat >>conftest.$ac_ext <<_ACEOF 4684/* end confdefs.h. */ 4685#include <ac_nonexistent.h> 4686_ACEOF 4687if { (ac_try="$ac_cpp conftest.$ac_ext" 4688case "(($ac_try" in 4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4690 *) ac_try_echo=$ac_try;; 4691esac 4692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4694 ac_status=$? 4695 grep -v '^ *+' conftest.er1 >conftest.err 4696 rm -f conftest.er1 4697 cat conftest.err >&5 4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4699 (exit $ac_status); } >/dev/null && { 4700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4701 test ! -s conftest.err 4702 }; then 4703 # Broken: success on invalid input. 4704continue 4705else 4706 echo "$as_me: failed program was:" >&5 4707sed 's/^/| /' conftest.$ac_ext >&5 4708 4709 # Passes both tests. 4710ac_preproc_ok=: 4711break 4712fi 4713 4714rm -f conftest.err conftest.$ac_ext 4715 4716done 4717# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4718rm -f conftest.err conftest.$ac_ext 4719if $ac_preproc_ok; then 4720 : 4721else 4722 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4723See \`config.log' for more details." >&5 4724echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4725See \`config.log' for more details." >&2;} 4726 { (exit 1); exit 1; }; } 4727fi 4728 4729ac_ext=c 4730ac_cpp='$CPP $CPPFLAGS' 4731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4733ac_compiler_gnu=$ac_cv_c_compiler_gnu 4734 4735 4736{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4737echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4738if test "${ac_cv_header_stdc+set}" = set; then 4739 echo $ECHO_N "(cached) $ECHO_C" >&6 4740else 4741 cat >conftest.$ac_ext <<_ACEOF 4742/* confdefs.h. */ 4743_ACEOF 4744cat confdefs.h >>conftest.$ac_ext 4745cat >>conftest.$ac_ext <<_ACEOF 4746/* end confdefs.h. */ 4747#include <stdlib.h> 4748#include <stdarg.h> 4749#include <string.h> 4750#include <float.h> 4751 4752int 4753main () 4754{ 4755 4756 ; 4757 return 0; 4758} 4759_ACEOF 4760rm -f conftest.$ac_objext 4761if { (ac_try="$ac_compile" 4762case "(($ac_try" in 4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4764 *) ac_try_echo=$ac_try;; 4765esac 4766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4767 (eval "$ac_compile") 2>conftest.er1 4768 ac_status=$? 4769 grep -v '^ *+' conftest.er1 >conftest.err 4770 rm -f conftest.er1 4771 cat conftest.err >&5 4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4773 (exit $ac_status); } && { 4774 test -z "$ac_c_werror_flag" || 4775 test ! -s conftest.err 4776 } && test -s conftest.$ac_objext; then 4777 ac_cv_header_stdc=yes 4778else 4779 echo "$as_me: failed program was:" >&5 4780sed 's/^/| /' conftest.$ac_ext >&5 4781 4782 ac_cv_header_stdc=no 4783fi 4784 4785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4786 4787if test $ac_cv_header_stdc = yes; then 4788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4789 cat >conftest.$ac_ext <<_ACEOF 4790/* confdefs.h. */ 4791_ACEOF 4792cat confdefs.h >>conftest.$ac_ext 4793cat >>conftest.$ac_ext <<_ACEOF 4794/* end confdefs.h. */ 4795#include <string.h> 4796 4797_ACEOF 4798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4799 $EGREP "memchr" >/dev/null 2>&1; then 4800 : 4801else 4802 ac_cv_header_stdc=no 4803fi 4804rm -f conftest* 4805 4806fi 4807 4808if test $ac_cv_header_stdc = yes; then 4809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4810 cat >conftest.$ac_ext <<_ACEOF 4811/* confdefs.h. */ 4812_ACEOF 4813cat confdefs.h >>conftest.$ac_ext 4814cat >>conftest.$ac_ext <<_ACEOF 4815/* end confdefs.h. */ 4816#include <stdlib.h> 4817 4818_ACEOF 4819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4820 $EGREP "free" >/dev/null 2>&1; then 4821 : 4822else 4823 ac_cv_header_stdc=no 4824fi 4825rm -f conftest* 4826 4827fi 4828 4829if test $ac_cv_header_stdc = yes; then 4830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4831 if test "$cross_compiling" = yes; then 4832 : 4833else 4834 cat >conftest.$ac_ext <<_ACEOF 4835/* confdefs.h. */ 4836_ACEOF 4837cat confdefs.h >>conftest.$ac_ext 4838cat >>conftest.$ac_ext <<_ACEOF 4839/* end confdefs.h. */ 4840#include <ctype.h> 4841#include <stdlib.h> 4842#if ((' ' & 0x0FF) == 0x020) 4843# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4844# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4845#else 4846# define ISLOWER(c) \ 4847 (('a' <= (c) && (c) <= 'i') \ 4848 || ('j' <= (c) && (c) <= 'r') \ 4849 || ('s' <= (c) && (c) <= 'z')) 4850# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4851#endif 4852 4853#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4854int 4855main () 4856{ 4857 int i; 4858 for (i = 0; i < 256; i++) 4859 if (XOR (islower (i), ISLOWER (i)) 4860 || toupper (i) != TOUPPER (i)) 4861 return 2; 4862 return 0; 4863} 4864_ACEOF 4865rm -f conftest$ac_exeext 4866if { (ac_try="$ac_link" 4867case "(($ac_try" in 4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4869 *) ac_try_echo=$ac_try;; 4870esac 4871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4872 (eval "$ac_link") 2>&5 4873 ac_status=$? 4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4876 { (case "(($ac_try" in 4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4878 *) ac_try_echo=$ac_try;; 4879esac 4880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4881 (eval "$ac_try") 2>&5 4882 ac_status=$? 4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4884 (exit $ac_status); }; }; then 4885 : 4886else 4887 echo "$as_me: program exited with status $ac_status" >&5 4888echo "$as_me: failed program was:" >&5 4889sed 's/^/| /' conftest.$ac_ext >&5 4890 4891( exit $ac_status ) 4892ac_cv_header_stdc=no 4893fi 4894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4895fi 4896 4897 4898fi 4899fi 4900{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4901echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4902if test $ac_cv_header_stdc = yes; then 4903 4904cat >>confdefs.h <<\_ACEOF 4905#define STDC_HEADERS 1 4906_ACEOF 4907 4908fi 4909 4910# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4921 inttypes.h stdint.h unistd.h 4922do 4923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4924{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4927 echo $ECHO_N "(cached) $ECHO_C" >&6 4928else 4929 cat >conftest.$ac_ext <<_ACEOF 4930/* confdefs.h. */ 4931_ACEOF 4932cat confdefs.h >>conftest.$ac_ext 4933cat >>conftest.$ac_ext <<_ACEOF 4934/* end confdefs.h. */ 4935$ac_includes_default 4936 4937#include <$ac_header> 4938_ACEOF 4939rm -f conftest.$ac_objext 4940if { (ac_try="$ac_compile" 4941case "(($ac_try" in 4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4943 *) ac_try_echo=$ac_try;; 4944esac 4945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4946 (eval "$ac_compile") 2>conftest.er1 4947 ac_status=$? 4948 grep -v '^ *+' conftest.er1 >conftest.err 4949 rm -f conftest.er1 4950 cat conftest.err >&5 4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4952 (exit $ac_status); } && { 4953 test -z "$ac_c_werror_flag" || 4954 test ! -s conftest.err 4955 } && test -s conftest.$ac_objext; then 4956 eval "$as_ac_Header=yes" 4957else 4958 echo "$as_me: failed program was:" >&5 4959sed 's/^/| /' conftest.$ac_ext >&5 4960 4961 eval "$as_ac_Header=no" 4962fi 4963 4964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4965fi 4966ac_res=`eval echo '${'$as_ac_Header'}'` 4967 { echo "$as_me:$LINENO: result: $ac_res" >&5 4968echo "${ECHO_T}$ac_res" >&6; } 4969if test `eval echo '${'$as_ac_Header'}'` = yes; then 4970 cat >>confdefs.h <<_ACEOF 4971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4972_ACEOF 4973 4974fi 4975 4976done 4977 4978 4979 4980for ac_header in dlfcn.h 4981do 4982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4984 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4987 echo $ECHO_N "(cached) $ECHO_C" >&6 4988fi 4989ac_res=`eval echo '${'$as_ac_Header'}'` 4990 { echo "$as_me:$LINENO: result: $ac_res" >&5 4991echo "${ECHO_T}$ac_res" >&6; } 4992else 4993 # Is the header compilable? 4994{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4996cat >conftest.$ac_ext <<_ACEOF 4997/* confdefs.h. */ 4998_ACEOF 4999cat confdefs.h >>conftest.$ac_ext 5000cat >>conftest.$ac_ext <<_ACEOF 5001/* end confdefs.h. */ 5002$ac_includes_default 5003#include <$ac_header> 5004_ACEOF 5005rm -f conftest.$ac_objext 5006if { (ac_try="$ac_compile" 5007case "(($ac_try" in 5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5009 *) ac_try_echo=$ac_try;; 5010esac 5011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5012 (eval "$ac_compile") 2>conftest.er1 5013 ac_status=$? 5014 grep -v '^ *+' conftest.er1 >conftest.err 5015 rm -f conftest.er1 5016 cat conftest.err >&5 5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5018 (exit $ac_status); } && { 5019 test -z "$ac_c_werror_flag" || 5020 test ! -s conftest.err 5021 } && test -s conftest.$ac_objext; then 5022 ac_header_compiler=yes 5023else 5024 echo "$as_me: failed program was:" >&5 5025sed 's/^/| /' conftest.$ac_ext >&5 5026 5027 ac_header_compiler=no 5028fi 5029 5030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5031{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5032echo "${ECHO_T}$ac_header_compiler" >&6; } 5033 5034# Is the header present? 5035{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5037cat >conftest.$ac_ext <<_ACEOF 5038/* confdefs.h. */ 5039_ACEOF 5040cat confdefs.h >>conftest.$ac_ext 5041cat >>conftest.$ac_ext <<_ACEOF 5042/* end confdefs.h. */ 5043#include <$ac_header> 5044_ACEOF 5045if { (ac_try="$ac_cpp conftest.$ac_ext" 5046case "(($ac_try" in 5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5048 *) ac_try_echo=$ac_try;; 5049esac 5050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5052 ac_status=$? 5053 grep -v '^ *+' conftest.er1 >conftest.err 5054 rm -f conftest.er1 5055 cat conftest.err >&5 5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5057 (exit $ac_status); } >/dev/null && { 5058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5059 test ! -s conftest.err 5060 }; then 5061 ac_header_preproc=yes 5062else 5063 echo "$as_me: failed program was:" >&5 5064sed 's/^/| /' conftest.$ac_ext >&5 5065 5066 ac_header_preproc=no 5067fi 5068 5069rm -f conftest.err conftest.$ac_ext 5070{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5071echo "${ECHO_T}$ac_header_preproc" >&6; } 5072 5073# So? What about this header? 5074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5075 yes:no: ) 5076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5077echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5079echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5080 ac_header_preproc=yes 5081 ;; 5082 no:yes:* ) 5083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5084echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5086echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5088echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5090echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5092echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5094echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5095 5096 ;; 5097esac 5098{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5101 echo $ECHO_N "(cached) $ECHO_C" >&6 5102else 5103 eval "$as_ac_Header=\$ac_header_preproc" 5104fi 5105ac_res=`eval echo '${'$as_ac_Header'}'` 5106 { echo "$as_me:$LINENO: result: $ac_res" >&5 5107echo "${ECHO_T}$ac_res" >&6; } 5108 5109fi 5110if test `eval echo '${'$as_ac_Header'}'` = yes; then 5111 cat >>confdefs.h <<_ACEOF 5112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5113_ACEOF 5114 5115fi 5116 5117done 5118 5119ac_ext=cpp 5120ac_cpp='$CXXCPP $CPPFLAGS' 5121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5124if test -z "$CXX"; then 5125 if test -n "$CCC"; then 5126 CXX=$CCC 5127 else 5128 if test -n "$ac_tool_prefix"; then 5129 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5130 do 5131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5132set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5133{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5135if test "${ac_cv_prog_CXX+set}" = set; then 5136 echo $ECHO_N "(cached) $ECHO_C" >&6 5137else 5138 if test -n "$CXX"; then 5139 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5140else 5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5142for as_dir in $PATH 5143do 5144 IFS=$as_save_IFS 5145 test -z "$as_dir" && as_dir=. 5146 for ac_exec_ext in '' $ac_executable_extensions; do 5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5148 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5150 break 2 5151 fi 5152done 5153done 5154IFS=$as_save_IFS 5155 5156fi 5157fi 5158CXX=$ac_cv_prog_CXX 5159if test -n "$CXX"; then 5160 { echo "$as_me:$LINENO: result: $CXX" >&5 5161echo "${ECHO_T}$CXX" >&6; } 5162else 5163 { echo "$as_me:$LINENO: result: no" >&5 5164echo "${ECHO_T}no" >&6; } 5165fi 5166 5167 5168 test -n "$CXX" && break 5169 done 5170fi 5171if test -z "$CXX"; then 5172 ac_ct_CXX=$CXX 5173 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5174do 5175 # Extract the first word of "$ac_prog", so it can be a program name with args. 5176set dummy $ac_prog; ac_word=$2 5177{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5179if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5180 echo $ECHO_N "(cached) $ECHO_C" >&6 5181else 5182 if test -n "$ac_ct_CXX"; then 5183 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5184else 5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5186for as_dir in $PATH 5187do 5188 IFS=$as_save_IFS 5189 test -z "$as_dir" && as_dir=. 5190 for ac_exec_ext in '' $ac_executable_extensions; do 5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5192 ac_cv_prog_ac_ct_CXX="$ac_prog" 5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5194 break 2 5195 fi 5196done 5197done 5198IFS=$as_save_IFS 5199 5200fi 5201fi 5202ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5203if test -n "$ac_ct_CXX"; then 5204 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5205echo "${ECHO_T}$ac_ct_CXX" >&6; } 5206else 5207 { echo "$as_me:$LINENO: result: no" >&5 5208echo "${ECHO_T}no" >&6; } 5209fi 5210 5211 5212 test -n "$ac_ct_CXX" && break 5213done 5214 5215 if test "x$ac_ct_CXX" = x; then 5216 CXX="g++" 5217 else 5218 case $cross_compiling:$ac_tool_warned in 5219yes:) 5220{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5221whose name does not start with the host triplet. If you think this 5222configuration is useful to you, please write to autoconf@gnu.org." >&5 5223echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5224whose name does not start with the host triplet. If you think this 5225configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5226ac_tool_warned=yes ;; 5227esac 5228 CXX=$ac_ct_CXX 5229 fi 5230fi 5231 5232 fi 5233fi 5234# Provide some information about the compiler. 5235echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5236ac_compiler=`set X $ac_compile; echo $2` 5237{ (ac_try="$ac_compiler --version >&5" 5238case "(($ac_try" in 5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5240 *) ac_try_echo=$ac_try;; 5241esac 5242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5243 (eval "$ac_compiler --version >&5") 2>&5 5244 ac_status=$? 5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5246 (exit $ac_status); } 5247{ (ac_try="$ac_compiler -v >&5" 5248case "(($ac_try" in 5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5250 *) ac_try_echo=$ac_try;; 5251esac 5252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5253 (eval "$ac_compiler -v >&5") 2>&5 5254 ac_status=$? 5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5256 (exit $ac_status); } 5257{ (ac_try="$ac_compiler -V >&5" 5258case "(($ac_try" in 5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5260 *) ac_try_echo=$ac_try;; 5261esac 5262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5263 (eval "$ac_compiler -V >&5") 2>&5 5264 ac_status=$? 5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5266 (exit $ac_status); } 5267 5268{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5269echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5270if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5271 echo $ECHO_N "(cached) $ECHO_C" >&6 5272else 5273 cat >conftest.$ac_ext <<_ACEOF 5274/* confdefs.h. */ 5275_ACEOF 5276cat confdefs.h >>conftest.$ac_ext 5277cat >>conftest.$ac_ext <<_ACEOF 5278/* end confdefs.h. */ 5279 5280int 5281main () 5282{ 5283#ifndef __GNUC__ 5284 choke me 5285#endif 5286 5287 ; 5288 return 0; 5289} 5290_ACEOF 5291rm -f conftest.$ac_objext 5292if { (ac_try="$ac_compile" 5293case "(($ac_try" in 5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5295 *) ac_try_echo=$ac_try;; 5296esac 5297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5298 (eval "$ac_compile") 2>conftest.er1 5299 ac_status=$? 5300 grep -v '^ *+' conftest.er1 >conftest.err 5301 rm -f conftest.er1 5302 cat conftest.err >&5 5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5304 (exit $ac_status); } && { 5305 test -z "$ac_cxx_werror_flag" || 5306 test ! -s conftest.err 5307 } && test -s conftest.$ac_objext; then 5308 ac_compiler_gnu=yes 5309else 5310 echo "$as_me: failed program was:" >&5 5311sed 's/^/| /' conftest.$ac_ext >&5 5312 5313 ac_compiler_gnu=no 5314fi 5315 5316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5317ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5318 5319fi 5320{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5321echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5322GXX=`test $ac_compiler_gnu = yes && echo yes` 5323ac_test_CXXFLAGS=${CXXFLAGS+set} 5324ac_save_CXXFLAGS=$CXXFLAGS 5325{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5326echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5327if test "${ac_cv_prog_cxx_g+set}" = set; then 5328 echo $ECHO_N "(cached) $ECHO_C" >&6 5329else 5330 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5331 ac_cxx_werror_flag=yes 5332 ac_cv_prog_cxx_g=no 5333 CXXFLAGS="-g" 5334 cat >conftest.$ac_ext <<_ACEOF 5335/* confdefs.h. */ 5336_ACEOF 5337cat confdefs.h >>conftest.$ac_ext 5338cat >>conftest.$ac_ext <<_ACEOF 5339/* end confdefs.h. */ 5340 5341int 5342main () 5343{ 5344 5345 ; 5346 return 0; 5347} 5348_ACEOF 5349rm -f conftest.$ac_objext 5350if { (ac_try="$ac_compile" 5351case "(($ac_try" in 5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5353 *) ac_try_echo=$ac_try;; 5354esac 5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5356 (eval "$ac_compile") 2>conftest.er1 5357 ac_status=$? 5358 grep -v '^ *+' conftest.er1 >conftest.err 5359 rm -f conftest.er1 5360 cat conftest.err >&5 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5362 (exit $ac_status); } && { 5363 test -z "$ac_cxx_werror_flag" || 5364 test ! -s conftest.err 5365 } && test -s conftest.$ac_objext; then 5366 ac_cv_prog_cxx_g=yes 5367else 5368 echo "$as_me: failed program was:" >&5 5369sed 's/^/| /' conftest.$ac_ext >&5 5370 5371 CXXFLAGS="" 5372 cat >conftest.$ac_ext <<_ACEOF 5373/* confdefs.h. */ 5374_ACEOF 5375cat confdefs.h >>conftest.$ac_ext 5376cat >>conftest.$ac_ext <<_ACEOF 5377/* end confdefs.h. */ 5378 5379int 5380main () 5381{ 5382 5383 ; 5384 return 0; 5385} 5386_ACEOF 5387rm -f conftest.$ac_objext 5388if { (ac_try="$ac_compile" 5389case "(($ac_try" in 5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5391 *) ac_try_echo=$ac_try;; 5392esac 5393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5394 (eval "$ac_compile") 2>conftest.er1 5395 ac_status=$? 5396 grep -v '^ *+' conftest.er1 >conftest.err 5397 rm -f conftest.er1 5398 cat conftest.err >&5 5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5400 (exit $ac_status); } && { 5401 test -z "$ac_cxx_werror_flag" || 5402 test ! -s conftest.err 5403 } && test -s conftest.$ac_objext; then 5404 : 5405else 5406 echo "$as_me: failed program was:" >&5 5407sed 's/^/| /' conftest.$ac_ext >&5 5408 5409 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5410 CXXFLAGS="-g" 5411 cat >conftest.$ac_ext <<_ACEOF 5412/* confdefs.h. */ 5413_ACEOF 5414cat confdefs.h >>conftest.$ac_ext 5415cat >>conftest.$ac_ext <<_ACEOF 5416/* end confdefs.h. */ 5417 5418int 5419main () 5420{ 5421 5422 ; 5423 return 0; 5424} 5425_ACEOF 5426rm -f conftest.$ac_objext 5427if { (ac_try="$ac_compile" 5428case "(($ac_try" in 5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5430 *) ac_try_echo=$ac_try;; 5431esac 5432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5433 (eval "$ac_compile") 2>conftest.er1 5434 ac_status=$? 5435 grep -v '^ *+' conftest.er1 >conftest.err 5436 rm -f conftest.er1 5437 cat conftest.err >&5 5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5439 (exit $ac_status); } && { 5440 test -z "$ac_cxx_werror_flag" || 5441 test ! -s conftest.err 5442 } && test -s conftest.$ac_objext; then 5443 ac_cv_prog_cxx_g=yes 5444else 5445 echo "$as_me: failed program was:" >&5 5446sed 's/^/| /' conftest.$ac_ext >&5 5447 5448 5449fi 5450 5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5452fi 5453 5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5455fi 5456 5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5458 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5459fi 5460{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5461echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5462if test "$ac_test_CXXFLAGS" = set; then 5463 CXXFLAGS=$ac_save_CXXFLAGS 5464elif test $ac_cv_prog_cxx_g = yes; then 5465 if test "$GXX" = yes; then 5466 CXXFLAGS="-g -O2" 5467 else 5468 CXXFLAGS="-g" 5469 fi 5470else 5471 if test "$GXX" = yes; then 5472 CXXFLAGS="-O2" 5473 else 5474 CXXFLAGS= 5475 fi 5476fi 5477ac_ext=cpp 5478ac_cpp='$CXXCPP $CPPFLAGS' 5479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5482 5483depcc="$CXX" am_compiler_list= 5484 5485{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5486echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5487if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5488 echo $ECHO_N "(cached) $ECHO_C" >&6 5489else 5490 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5491 # We make a subdir and do the tests there. Otherwise we can end up 5492 # making bogus files that we don't know about and never remove. For 5493 # instance it was reported that on HP-UX the gcc test will end up 5494 # making a dummy file named `D' -- because `-MD' means `put the output 5495 # in D'. 5496 mkdir conftest.dir 5497 # Copy depcomp to subdir because otherwise we won't find it if we're 5498 # using a relative directory. 5499 cp "$am_depcomp" conftest.dir 5500 cd conftest.dir 5501 # We will build objects and dependencies in a subdirectory because 5502 # it helps to detect inapplicable dependency modes. For instance 5503 # both Tru64's cc and ICC support -MD to output dependencies as a 5504 # side effect of compilation, but ICC will put the dependencies in 5505 # the current directory while Tru64 will put them in the object 5506 # directory. 5507 mkdir sub 5508 5509 am_cv_CXX_dependencies_compiler_type=none 5510 if test "$am_compiler_list" = ""; then 5511 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5512 fi 5513 for depmode in $am_compiler_list; do 5514 # Setup a source with many dependencies, because some compilers 5515 # like to wrap large dependency lists on column 80 (with \), and 5516 # we should not choose a depcomp mode which is confused by this. 5517 # 5518 # We need to recreate these files for each test, as the compiler may 5519 # overwrite some of them when testing with obscure command lines. 5520 # This happens at least with the AIX C compiler. 5521 : > sub/conftest.c 5522 for i in 1 2 3 4 5 6; do 5523 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5524 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5525 # Solaris 8's {/usr,}/bin/sh. 5526 touch sub/conftst$i.h 5527 done 5528 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5529 5530 case $depmode in 5531 nosideeffect) 5532 # after this tag, mechanisms are not by side-effect, so they'll 5533 # only be used when explicitly requested 5534 if test "x$enable_dependency_tracking" = xyes; then 5535 continue 5536 else 5537 break 5538 fi 5539 ;; 5540 none) break ;; 5541 esac 5542 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5543 # mode. It turns out that the SunPro C++ compiler does not properly 5544 # handle `-M -o', and we need to detect this. 5545 if depmode=$depmode \ 5546 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5547 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5548 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5549 >/dev/null 2>conftest.err && 5550 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5551 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5552 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5553 # icc doesn't choke on unknown options, it will just issue warnings 5554 # or remarks (even with -Werror). So we grep stderr for any message 5555 # that says an option was ignored or not supported. 5556 # When given -MP, icc 7.0 and 7.1 complain thusly: 5557 # icc: Command line warning: ignoring option '-M'; no argument required 5558 # The diagnosis changed in icc 8.0: 5559 # icc: Command line remark: option '-MP' not supported 5560 if (grep 'ignoring option' conftest.err || 5561 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5562 am_cv_CXX_dependencies_compiler_type=$depmode 5563 break 5564 fi 5565 fi 5566 done 5567 5568 cd .. 5569 rm -rf conftest.dir 5570else 5571 am_cv_CXX_dependencies_compiler_type=none 5572fi 5573 5574fi 5575{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5576echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5577CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5578 5579 5580 5581if 5582 test "x$enable_dependency_tracking" != xno \ 5583 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5584 am__fastdepCXX_TRUE= 5585 am__fastdepCXX_FALSE='#' 5586else 5587 am__fastdepCXX_TRUE='#' 5588 am__fastdepCXX_FALSE= 5589fi 5590 5591 5592 5593 5594if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5595 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5596 (test "X$CXX" != "Xg++"))) ; then 5597 ac_ext=cpp 5598ac_cpp='$CXXCPP $CPPFLAGS' 5599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5602{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5603echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5604if test -z "$CXXCPP"; then 5605 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5606 echo $ECHO_N "(cached) $ECHO_C" >&6 5607else 5608 # Double quotes because CXXCPP needs to be expanded 5609 for CXXCPP in "$CXX -E" "/lib/cpp" 5610 do 5611 ac_preproc_ok=false 5612for ac_cxx_preproc_warn_flag in '' yes 5613do 5614 # Use a header file that comes with gcc, so configuring glibc 5615 # with a fresh cross-compiler works. 5616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5617 # <limits.h> exists even on freestanding compilers. 5618 # On the NeXT, cc -E runs the code through the compiler's parser, 5619 # not just through cpp. "Syntax error" is here to catch this case. 5620 cat >conftest.$ac_ext <<_ACEOF 5621/* confdefs.h. */ 5622_ACEOF 5623cat confdefs.h >>conftest.$ac_ext 5624cat >>conftest.$ac_ext <<_ACEOF 5625/* end confdefs.h. */ 5626#ifdef __STDC__ 5627# include <limits.h> 5628#else 5629# include <assert.h> 5630#endif 5631 Syntax error 5632_ACEOF 5633if { (ac_try="$ac_cpp conftest.$ac_ext" 5634case "(($ac_try" in 5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5636 *) ac_try_echo=$ac_try;; 5637esac 5638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5640 ac_status=$? 5641 grep -v '^ *+' conftest.er1 >conftest.err 5642 rm -f conftest.er1 5643 cat conftest.err >&5 5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5645 (exit $ac_status); } >/dev/null && { 5646 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5647 test ! -s conftest.err 5648 }; then 5649 : 5650else 5651 echo "$as_me: failed program was:" >&5 5652sed 's/^/| /' conftest.$ac_ext >&5 5653 5654 # Broken: fails on valid input. 5655continue 5656fi 5657 5658rm -f conftest.err conftest.$ac_ext 5659 5660 # OK, works on sane cases. Now check whether nonexistent headers 5661 # can be detected and how. 5662 cat >conftest.$ac_ext <<_ACEOF 5663/* confdefs.h. */ 5664_ACEOF 5665cat confdefs.h >>conftest.$ac_ext 5666cat >>conftest.$ac_ext <<_ACEOF 5667/* end confdefs.h. */ 5668#include <ac_nonexistent.h> 5669_ACEOF 5670if { (ac_try="$ac_cpp conftest.$ac_ext" 5671case "(($ac_try" in 5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5673 *) ac_try_echo=$ac_try;; 5674esac 5675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5677 ac_status=$? 5678 grep -v '^ *+' conftest.er1 >conftest.err 5679 rm -f conftest.er1 5680 cat conftest.err >&5 5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5682 (exit $ac_status); } >/dev/null && { 5683 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5684 test ! -s conftest.err 5685 }; then 5686 # Broken: success on invalid input. 5687continue 5688else 5689 echo "$as_me: failed program was:" >&5 5690sed 's/^/| /' conftest.$ac_ext >&5 5691 5692 # Passes both tests. 5693ac_preproc_ok=: 5694break 5695fi 5696 5697rm -f conftest.err conftest.$ac_ext 5698 5699done 5700# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5701rm -f conftest.err conftest.$ac_ext 5702if $ac_preproc_ok; then 5703 break 5704fi 5705 5706 done 5707 ac_cv_prog_CXXCPP=$CXXCPP 5708 5709fi 5710 CXXCPP=$ac_cv_prog_CXXCPP 5711else 5712 ac_cv_prog_CXXCPP=$CXXCPP 5713fi 5714{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5715echo "${ECHO_T}$CXXCPP" >&6; } 5716ac_preproc_ok=false 5717for ac_cxx_preproc_warn_flag in '' yes 5718do 5719 # Use a header file that comes with gcc, so configuring glibc 5720 # with a fresh cross-compiler works. 5721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5722 # <limits.h> exists even on freestanding compilers. 5723 # On the NeXT, cc -E runs the code through the compiler's parser, 5724 # not just through cpp. "Syntax error" is here to catch this case. 5725 cat >conftest.$ac_ext <<_ACEOF 5726/* confdefs.h. */ 5727_ACEOF 5728cat confdefs.h >>conftest.$ac_ext 5729cat >>conftest.$ac_ext <<_ACEOF 5730/* end confdefs.h. */ 5731#ifdef __STDC__ 5732# include <limits.h> 5733#else 5734# include <assert.h> 5735#endif 5736 Syntax error 5737_ACEOF 5738if { (ac_try="$ac_cpp conftest.$ac_ext" 5739case "(($ac_try" in 5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5741 *) ac_try_echo=$ac_try;; 5742esac 5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5745 ac_status=$? 5746 grep -v '^ *+' conftest.er1 >conftest.err 5747 rm -f conftest.er1 5748 cat conftest.err >&5 5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5750 (exit $ac_status); } >/dev/null && { 5751 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5752 test ! -s conftest.err 5753 }; then 5754 : 5755else 5756 echo "$as_me: failed program was:" >&5 5757sed 's/^/| /' conftest.$ac_ext >&5 5758 5759 # Broken: fails on valid input. 5760continue 5761fi 5762 5763rm -f conftest.err conftest.$ac_ext 5764 5765 # OK, works on sane cases. Now check whether nonexistent headers 5766 # can be detected and how. 5767 cat >conftest.$ac_ext <<_ACEOF 5768/* confdefs.h. */ 5769_ACEOF 5770cat confdefs.h >>conftest.$ac_ext 5771cat >>conftest.$ac_ext <<_ACEOF 5772/* end confdefs.h. */ 5773#include <ac_nonexistent.h> 5774_ACEOF 5775if { (ac_try="$ac_cpp conftest.$ac_ext" 5776case "(($ac_try" in 5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5778 *) ac_try_echo=$ac_try;; 5779esac 5780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5782 ac_status=$? 5783 grep -v '^ *+' conftest.er1 >conftest.err 5784 rm -f conftest.er1 5785 cat conftest.err >&5 5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5787 (exit $ac_status); } >/dev/null && { 5788 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5789 test ! -s conftest.err 5790 }; then 5791 # Broken: success on invalid input. 5792continue 5793else 5794 echo "$as_me: failed program was:" >&5 5795sed 's/^/| /' conftest.$ac_ext >&5 5796 5797 # Passes both tests. 5798ac_preproc_ok=: 5799break 5800fi 5801 5802rm -f conftest.err conftest.$ac_ext 5803 5804done 5805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5806rm -f conftest.err conftest.$ac_ext 5807if $ac_preproc_ok; then 5808 : 5809else 5810 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5811See \`config.log' for more details." >&5 5812echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5813See \`config.log' for more details." >&2;} 5814 { (exit 1); exit 1; }; } 5815fi 5816 5817ac_ext=cpp 5818ac_cpp='$CXXCPP $CPPFLAGS' 5819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5822 5823fi 5824 5825 5826ac_ext=f 5827ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5828ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5829ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5830if test -n "$ac_tool_prefix"; then 5831 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 5832 do 5833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5834set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5835{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5837if test "${ac_cv_prog_F77+set}" = set; then 5838 echo $ECHO_N "(cached) $ECHO_C" >&6 5839else 5840 if test -n "$F77"; then 5841 ac_cv_prog_F77="$F77" # Let the user override the test. 5842else 5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5844for as_dir in $PATH 5845do 5846 IFS=$as_save_IFS 5847 test -z "$as_dir" && as_dir=. 5848 for ac_exec_ext in '' $ac_executable_extensions; do 5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5850 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5852 break 2 5853 fi 5854done 5855done 5856IFS=$as_save_IFS 5857 5858fi 5859fi 5860F77=$ac_cv_prog_F77 5861if test -n "$F77"; then 5862 { echo "$as_me:$LINENO: result: $F77" >&5 5863echo "${ECHO_T}$F77" >&6; } 5864else 5865 { echo "$as_me:$LINENO: result: no" >&5 5866echo "${ECHO_T}no" >&6; } 5867fi 5868 5869 5870 test -n "$F77" && break 5871 done 5872fi 5873if test -z "$F77"; then 5874 ac_ct_F77=$F77 5875 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 5876do 5877 # Extract the first word of "$ac_prog", so it can be a program name with args. 5878set dummy $ac_prog; ac_word=$2 5879{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5881if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5882 echo $ECHO_N "(cached) $ECHO_C" >&6 5883else 5884 if test -n "$ac_ct_F77"; then 5885 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5886else 5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5888for as_dir in $PATH 5889do 5890 IFS=$as_save_IFS 5891 test -z "$as_dir" && as_dir=. 5892 for ac_exec_ext in '' $ac_executable_extensions; do 5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5894 ac_cv_prog_ac_ct_F77="$ac_prog" 5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5896 break 2 5897 fi 5898done 5899done 5900IFS=$as_save_IFS 5901 5902fi 5903fi 5904ac_ct_F77=$ac_cv_prog_ac_ct_F77 5905if test -n "$ac_ct_F77"; then 5906 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5907echo "${ECHO_T}$ac_ct_F77" >&6; } 5908else 5909 { echo "$as_me:$LINENO: result: no" >&5 5910echo "${ECHO_T}no" >&6; } 5911fi 5912 5913 5914 test -n "$ac_ct_F77" && break 5915done 5916 5917 if test "x$ac_ct_F77" = x; then 5918 F77="" 5919 else 5920 case $cross_compiling:$ac_tool_warned in 5921yes:) 5922{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5923whose name does not start with the host triplet. If you think this 5924configuration is useful to you, please write to autoconf@gnu.org." >&5 5925echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5926whose name does not start with the host triplet. If you think this 5927configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5928ac_tool_warned=yes ;; 5929esac 5930 F77=$ac_ct_F77 5931 fi 5932fi 5933 5934 5935# Provide some information about the compiler. 5936echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5937ac_compiler=`set X $ac_compile; echo $2` 5938{ (ac_try="$ac_compiler --version >&5" 5939case "(($ac_try" in 5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5941 *) ac_try_echo=$ac_try;; 5942esac 5943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5944 (eval "$ac_compiler --version >&5") 2>&5 5945 ac_status=$? 5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5947 (exit $ac_status); } 5948{ (ac_try="$ac_compiler -v >&5" 5949case "(($ac_try" in 5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5951 *) ac_try_echo=$ac_try;; 5952esac 5953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5954 (eval "$ac_compiler -v >&5") 2>&5 5955 ac_status=$? 5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5957 (exit $ac_status); } 5958{ (ac_try="$ac_compiler -V >&5" 5959case "(($ac_try" in 5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5961 *) ac_try_echo=$ac_try;; 5962esac 5963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5964 (eval "$ac_compiler -V >&5") 2>&5 5965 ac_status=$? 5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5967 (exit $ac_status); } 5968rm -f a.out 5969 5970# If we don't use `.F' as extension, the preprocessor is not run on the 5971# input file. (Note that this only needs to work for GNU compilers.) 5972ac_save_ext=$ac_ext 5973ac_ext=F 5974{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5975echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 5976if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5977 echo $ECHO_N "(cached) $ECHO_C" >&6 5978else 5979 cat >conftest.$ac_ext <<_ACEOF 5980 program main 5981#ifndef __GNUC__ 5982 choke me 5983#endif 5984 5985 end 5986_ACEOF 5987rm -f conftest.$ac_objext 5988if { (ac_try="$ac_compile" 5989case "(($ac_try" in 5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5991 *) ac_try_echo=$ac_try;; 5992esac 5993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5994 (eval "$ac_compile") 2>conftest.er1 5995 ac_status=$? 5996 grep -v '^ *+' conftest.er1 >conftest.err 5997 rm -f conftest.er1 5998 cat conftest.err >&5 5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6000 (exit $ac_status); } && { 6001 test -z "$ac_f77_werror_flag" || 6002 test ! -s conftest.err 6003 } && test -s conftest.$ac_objext; then 6004 ac_compiler_gnu=yes 6005else 6006 echo "$as_me: failed program was:" >&5 6007sed 's/^/| /' conftest.$ac_ext >&5 6008 6009 ac_compiler_gnu=no 6010fi 6011 6012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6013ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6014 6015fi 6016{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6017echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6018ac_ext=$ac_save_ext 6019ac_test_FFLAGS=${FFLAGS+set} 6020ac_save_FFLAGS=$FFLAGS 6021FFLAGS= 6022{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6023echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6024if test "${ac_cv_prog_f77_g+set}" = set; then 6025 echo $ECHO_N "(cached) $ECHO_C" >&6 6026else 6027 FFLAGS=-g 6028cat >conftest.$ac_ext <<_ACEOF 6029 program main 6030 6031 end 6032_ACEOF 6033rm -f conftest.$ac_objext 6034if { (ac_try="$ac_compile" 6035case "(($ac_try" in 6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6037 *) ac_try_echo=$ac_try;; 6038esac 6039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6040 (eval "$ac_compile") 2>conftest.er1 6041 ac_status=$? 6042 grep -v '^ *+' conftest.er1 >conftest.err 6043 rm -f conftest.er1 6044 cat conftest.err >&5 6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6046 (exit $ac_status); } && { 6047 test -z "$ac_f77_werror_flag" || 6048 test ! -s conftest.err 6049 } && test -s conftest.$ac_objext; then 6050 ac_cv_prog_f77_g=yes 6051else 6052 echo "$as_me: failed program was:" >&5 6053sed 's/^/| /' conftest.$ac_ext >&5 6054 6055 ac_cv_prog_f77_g=no 6056fi 6057 6058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6059 6060fi 6061{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6062echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6063if test "$ac_test_FFLAGS" = set; then 6064 FFLAGS=$ac_save_FFLAGS 6065elif test $ac_cv_prog_f77_g = yes; then 6066 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6067 FFLAGS="-g -O2" 6068 else 6069 FFLAGS="-g" 6070 fi 6071else 6072 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6073 FFLAGS="-O2" 6074 else 6075 FFLAGS= 6076 fi 6077fi 6078 6079G77=`test $ac_compiler_gnu = yes && echo yes` 6080ac_ext=c 6081ac_cpp='$CPP $CPPFLAGS' 6082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6084ac_compiler_gnu=$ac_cv_c_compiler_gnu 6085 6086 6087 6088# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6089 6090# find the maximum length of command line arguments 6091{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6092echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6093if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6094 echo $ECHO_N "(cached) $ECHO_C" >&6 6095else 6096 i=0 6097 teststring="ABCD" 6098 6099 case $build_os in 6100 msdosdjgpp*) 6101 # On DJGPP, this test can blow up pretty badly due to problems in libc 6102 # (any single argument exceeding 2000 bytes causes a buffer overrun 6103 # during glob expansion). Even if it were fixed, the result of this 6104 # check would be larger than it should be. 6105 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6106 ;; 6107 6108 gnu*) 6109 # Under GNU Hurd, this test is not required because there is 6110 # no limit to the length of command line arguments. 6111 # Libtool will interpret -1 as no limit whatsoever 6112 lt_cv_sys_max_cmd_len=-1; 6113 ;; 6114 6115 cygwin* | mingw*) 6116 # On Win9x/ME, this test blows up -- it succeeds, but takes 6117 # about 5 minutes as the teststring grows exponentially. 6118 # Worse, since 9x/ME are not pre-emptively multitasking, 6119 # you end up with a "frozen" computer, even though with patience 6120 # the test eventually succeeds (with a max line length of 256k). 6121 # Instead, let's just punt: use the minimum linelength reported by 6122 # all of the supported platforms: 8192 (on NT/2K/XP). 6123 lt_cv_sys_max_cmd_len=8192; 6124 ;; 6125 6126 amigaos*) 6127 # On AmigaOS with pdksh, this test takes hours, literally. 6128 # So we just punt and use a minimum line length of 8192. 6129 lt_cv_sys_max_cmd_len=8192; 6130 ;; 6131 6132 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6133 # This has been around since 386BSD, at least. Likely further. 6134 if test -x /sbin/sysctl; then 6135 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6136 elif test -x /usr/sbin/sysctl; then 6137 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6138 else 6139 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6140 fi 6141 # And add a safety zone 6142 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6143 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6144 ;; 6145 6146 interix*) 6147 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6148 lt_cv_sys_max_cmd_len=196608 6149 ;; 6150 6151 osf*) 6152 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6153 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6154 # nice to cause kernel panics so lets avoid the loop below. 6155 # First set a reasonable default. 6156 lt_cv_sys_max_cmd_len=16384 6157 # 6158 if test -x /sbin/sysconfig; then 6159 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6160 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6161 esac 6162 fi 6163 ;; 6164 sco3.2v5*) 6165 lt_cv_sys_max_cmd_len=102400 6166 ;; 6167 sysv5* | sco5v6* | sysv4.2uw2*) 6168 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6169 if test -n "$kargmax"; then 6170 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6171 else 6172 lt_cv_sys_max_cmd_len=32768 6173 fi 6174 ;; 6175 *) 6176 # If test is not a shell built-in, we'll probably end up computing a 6177 # maximum length that is only half of the actual maximum length, but 6178 # we can't tell. 6179 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6180 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6181 = "XX$teststring") >/dev/null 2>&1 && 6182 new_result=`expr "X$teststring" : ".*" 2>&1` && 6183 lt_cv_sys_max_cmd_len=$new_result && 6184 test $i != 17 # 1/2 MB should be enough 6185 do 6186 i=`expr $i + 1` 6187 teststring=$teststring$teststring 6188 done 6189 teststring= 6190 # Add a significant safety factor because C++ compilers can tack on massive 6191 # amounts of additional arguments before passing them to the linker. 6192 # It appears as though 1/2 is a usable value. 6193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6194 ;; 6195 esac 6196 6197fi 6198 6199if test -n $lt_cv_sys_max_cmd_len ; then 6200 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6201echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6202else 6203 { echo "$as_me:$LINENO: result: none" >&5 6204echo "${ECHO_T}none" >&6; } 6205fi 6206 6207 6208 6209 6210# Check for command to grab the raw symbol name followed by C symbol from nm. 6211{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6212echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6213if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6214 echo $ECHO_N "(cached) $ECHO_C" >&6 6215else 6216 6217# These are sane defaults that work on at least a few old systems. 6218# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6219 6220# Character class describing NM global symbol codes. 6221symcode='[BCDEGRST]' 6222 6223# Regexp to match symbols that can be accessed directly from C. 6224sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6225 6226# Transform an extracted symbol line into a proper C declaration 6227lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6228 6229# Transform an extracted symbol line into symbol name and symbol address 6230lt_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'" 6231 6232# Define system-specific variables. 6233case $host_os in 6234aix*) 6235 symcode='[BCDT]' 6236 ;; 6237cygwin* | mingw* | pw32*) 6238 symcode='[ABCDGISTW]' 6239 ;; 6240hpux*) # Its linker distinguishes data from code symbols 6241 if test "$host_cpu" = ia64; then 6242 symcode='[ABCDEGRST]' 6243 fi 6244 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6245 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'" 6246 ;; 6247linux*) 6248 if test "$host_cpu" = ia64; then 6249 symcode='[ABCDGIRSTW]' 6250 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6251 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'" 6252 fi 6253 ;; 6254irix* | nonstopux*) 6255 symcode='[BCDEGRST]' 6256 ;; 6257osf*) 6258 symcode='[BCDEGQRST]' 6259 ;; 6260solaris*) 6261 symcode='[BDRT]' 6262 ;; 6263sco3.2v5*) 6264 symcode='[DT]' 6265 ;; 6266sysv4.2uw2*) 6267 symcode='[DT]' 6268 ;; 6269sysv5* | sco5v6* | unixware* | OpenUNIX*) 6270 symcode='[ABDT]' 6271 ;; 6272sysv4) 6273 symcode='[DFNSTU]' 6274 ;; 6275esac 6276 6277# Handle CRLF in mingw tool chain 6278opt_cr= 6279case $build_os in 6280mingw*) 6281 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6282 ;; 6283esac 6284 6285# If we're using GNU nm, then use its standard symbol codes. 6286case `$NM -V 2>&1` in 6287*GNU* | *'with BFD'*) 6288 symcode='[ABCDGIRSTW]' ;; 6289esac 6290 6291# Try without a prefix undercore, then with it. 6292for ac_symprfx in "" "_"; do 6293 6294 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6295 symxfrm="\\1 $ac_symprfx\\2 \\2" 6296 6297 # Write the raw and C identifiers. 6298 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6299 6300 # Check to see that the pipe works correctly. 6301 pipe_works=no 6302 6303 rm -f conftest* 6304 cat > conftest.$ac_ext <<EOF 6305#ifdef __cplusplus 6306extern "C" { 6307#endif 6308char nm_test_var; 6309void nm_test_func(){} 6310#ifdef __cplusplus 6311} 6312#endif 6313int main(){nm_test_var='a';nm_test_func();return(0);} 6314EOF 6315 6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6317 (eval $ac_compile) 2>&5 6318 ac_status=$? 6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6320 (exit $ac_status); }; then 6321 # Now try to grab the symbols. 6322 nlist=conftest.nm 6323 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6324 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6325 ac_status=$? 6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6327 (exit $ac_status); } && test -s "$nlist"; then 6328 # Try sorting and uniquifying the output. 6329 if sort "$nlist" | uniq > "$nlist"T; then 6330 mv -f "$nlist"T "$nlist" 6331 else 6332 rm -f "$nlist"T 6333 fi 6334 6335 # Make sure that we snagged all the symbols we need. 6336 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6337 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6338 cat <<EOF > conftest.$ac_ext 6339#ifdef __cplusplus 6340extern "C" { 6341#endif 6342 6343EOF 6344 # Now generate the symbol file. 6345 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6346 6347 cat <<EOF >> conftest.$ac_ext 6348#if defined (__STDC__) && __STDC__ 6349# define lt_ptr_t void * 6350#else 6351# define lt_ptr_t char * 6352# define const 6353#endif 6354 6355/* The mapping between symbol names and symbols. */ 6356const struct { 6357 const char *name; 6358 lt_ptr_t address; 6359} 6360lt_preloaded_symbols[] = 6361{ 6362EOF 6363 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6364 cat <<\EOF >> conftest.$ac_ext 6365 {0, (lt_ptr_t) 0} 6366}; 6367 6368#ifdef __cplusplus 6369} 6370#endif 6371EOF 6372 # Now try linking the two files. 6373 mv conftest.$ac_objext conftstm.$ac_objext 6374 lt_save_LIBS="$LIBS" 6375 lt_save_CFLAGS="$CFLAGS" 6376 LIBS="conftstm.$ac_objext" 6377 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6379 (eval $ac_link) 2>&5 6380 ac_status=$? 6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6382 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6383 pipe_works=yes 6384 fi 6385 LIBS="$lt_save_LIBS" 6386 CFLAGS="$lt_save_CFLAGS" 6387 else 6388 echo "cannot find nm_test_func in $nlist" >&5 6389 fi 6390 else 6391 echo "cannot find nm_test_var in $nlist" >&5 6392 fi 6393 else 6394 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6395 fi 6396 else 6397 echo "$progname: failed program was:" >&5 6398 cat conftest.$ac_ext >&5 6399 fi 6400 rm -f conftest* conftst* 6401 6402 # Do not use the global_symbol_pipe unless it works. 6403 if test "$pipe_works" = yes; then 6404 break 6405 else 6406 lt_cv_sys_global_symbol_pipe= 6407 fi 6408done 6409 6410fi 6411 6412if test -z "$lt_cv_sys_global_symbol_pipe"; then 6413 lt_cv_sys_global_symbol_to_cdecl= 6414fi 6415if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6416 { echo "$as_me:$LINENO: result: failed" >&5 6417echo "${ECHO_T}failed" >&6; } 6418else 6419 { echo "$as_me:$LINENO: result: ok" >&5 6420echo "${ECHO_T}ok" >&6; } 6421fi 6422 6423{ echo "$as_me:$LINENO: checking for objdir" >&5 6424echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6425if test "${lt_cv_objdir+set}" = set; then 6426 echo $ECHO_N "(cached) $ECHO_C" >&6 6427else 6428 rm -f .libs 2>/dev/null 6429mkdir .libs 2>/dev/null 6430if test -d .libs; then 6431 lt_cv_objdir=.libs 6432else 6433 # MS-DOS does not allow filenames that begin with a dot. 6434 lt_cv_objdir=_libs 6435fi 6436rmdir .libs 2>/dev/null 6437fi 6438{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6439echo "${ECHO_T}$lt_cv_objdir" >&6; } 6440objdir=$lt_cv_objdir 6441 6442 6443 6444 6445 6446case $host_os in 6447aix3*) 6448 # AIX sometimes has problems with the GCC collect2 program. For some 6449 # reason, if we set the COLLECT_NAMES environment variable, the problems 6450 # vanish in a puff of smoke. 6451 if test "X${COLLECT_NAMES+set}" != Xset; then 6452 COLLECT_NAMES= 6453 export COLLECT_NAMES 6454 fi 6455 ;; 6456esac 6457 6458# Sed substitution that helps us do robust quoting. It backslashifies 6459# metacharacters that are still active within double-quoted strings. 6460Xsed='sed -e 1s/^X//' 6461sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6462 6463# Same as above, but do not quote variable references. 6464double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6465 6466# Sed substitution to delay expansion of an escaped shell variable in a 6467# double_quote_subst'ed string. 6468delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6469 6470# Sed substitution to avoid accidental globbing in evaled expressions 6471no_glob_subst='s/\*/\\\*/g' 6472 6473# Constants: 6474rm="rm -f" 6475 6476# Global variables: 6477default_ofile=libtool 6478can_build_shared=yes 6479 6480# All known linkers require a `.a' archive for static linking (except MSVC, 6481# which needs '.lib'). 6482libext=a 6483ltmain="$ac_aux_dir/ltmain.sh" 6484ofile="$default_ofile" 6485with_gnu_ld="$lt_cv_prog_gnu_ld" 6486 6487if test -n "$ac_tool_prefix"; then 6488 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6489set dummy ${ac_tool_prefix}ar; ac_word=$2 6490{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6492if test "${ac_cv_prog_AR+set}" = set; then 6493 echo $ECHO_N "(cached) $ECHO_C" >&6 6494else 6495 if test -n "$AR"; then 6496 ac_cv_prog_AR="$AR" # Let the user override the test. 6497else 6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6499for as_dir in $PATH 6500do 6501 IFS=$as_save_IFS 6502 test -z "$as_dir" && as_dir=. 6503 for ac_exec_ext in '' $ac_executable_extensions; do 6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6505 ac_cv_prog_AR="${ac_tool_prefix}ar" 6506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6507 break 2 6508 fi 6509done 6510done 6511IFS=$as_save_IFS 6512 6513fi 6514fi 6515AR=$ac_cv_prog_AR 6516if test -n "$AR"; then 6517 { echo "$as_me:$LINENO: result: $AR" >&5 6518echo "${ECHO_T}$AR" >&6; } 6519else 6520 { echo "$as_me:$LINENO: result: no" >&5 6521echo "${ECHO_T}no" >&6; } 6522fi 6523 6524 6525fi 6526if test -z "$ac_cv_prog_AR"; then 6527 ac_ct_AR=$AR 6528 # Extract the first word of "ar", so it can be a program name with args. 6529set dummy ar; ac_word=$2 6530{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6532if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6533 echo $ECHO_N "(cached) $ECHO_C" >&6 6534else 6535 if test -n "$ac_ct_AR"; then 6536 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6537else 6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6539for as_dir in $PATH 6540do 6541 IFS=$as_save_IFS 6542 test -z "$as_dir" && as_dir=. 6543 for ac_exec_ext in '' $ac_executable_extensions; do 6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6545 ac_cv_prog_ac_ct_AR="ar" 6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6547 break 2 6548 fi 6549done 6550done 6551IFS=$as_save_IFS 6552 6553fi 6554fi 6555ac_ct_AR=$ac_cv_prog_ac_ct_AR 6556if test -n "$ac_ct_AR"; then 6557 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6558echo "${ECHO_T}$ac_ct_AR" >&6; } 6559else 6560 { echo "$as_me:$LINENO: result: no" >&5 6561echo "${ECHO_T}no" >&6; } 6562fi 6563 6564 if test "x$ac_ct_AR" = x; then 6565 AR="false" 6566 else 6567 case $cross_compiling:$ac_tool_warned in 6568yes:) 6569{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6570whose name does not start with the host triplet. If you think this 6571configuration is useful to you, please write to autoconf@gnu.org." >&5 6572echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6573whose name does not start with the host triplet. If you think this 6574configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6575ac_tool_warned=yes ;; 6576esac 6577 AR=$ac_ct_AR 6578 fi 6579else 6580 AR="$ac_cv_prog_AR" 6581fi 6582 6583if test -n "$ac_tool_prefix"; then 6584 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6585set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6586{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6588if test "${ac_cv_prog_RANLIB+set}" = set; then 6589 echo $ECHO_N "(cached) $ECHO_C" >&6 6590else 6591 if test -n "$RANLIB"; then 6592 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6593else 6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6595for as_dir in $PATH 6596do 6597 IFS=$as_save_IFS 6598 test -z "$as_dir" && as_dir=. 6599 for ac_exec_ext in '' $ac_executable_extensions; do 6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6601 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6603 break 2 6604 fi 6605done 6606done 6607IFS=$as_save_IFS 6608 6609fi 6610fi 6611RANLIB=$ac_cv_prog_RANLIB 6612if test -n "$RANLIB"; then 6613 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6614echo "${ECHO_T}$RANLIB" >&6; } 6615else 6616 { echo "$as_me:$LINENO: result: no" >&5 6617echo "${ECHO_T}no" >&6; } 6618fi 6619 6620 6621fi 6622if test -z "$ac_cv_prog_RANLIB"; then 6623 ac_ct_RANLIB=$RANLIB 6624 # Extract the first word of "ranlib", so it can be a program name with args. 6625set dummy ranlib; ac_word=$2 6626{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6628if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6629 echo $ECHO_N "(cached) $ECHO_C" >&6 6630else 6631 if test -n "$ac_ct_RANLIB"; then 6632 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6633else 6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6635for as_dir in $PATH 6636do 6637 IFS=$as_save_IFS 6638 test -z "$as_dir" && as_dir=. 6639 for ac_exec_ext in '' $ac_executable_extensions; do 6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6641 ac_cv_prog_ac_ct_RANLIB="ranlib" 6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6643 break 2 6644 fi 6645done 6646done 6647IFS=$as_save_IFS 6648 6649fi 6650fi 6651ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6652if test -n "$ac_ct_RANLIB"; then 6653 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6654echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6655else 6656 { echo "$as_me:$LINENO: result: no" >&5 6657echo "${ECHO_T}no" >&6; } 6658fi 6659 6660 if test "x$ac_ct_RANLIB" = x; then 6661 RANLIB=":" 6662 else 6663 case $cross_compiling:$ac_tool_warned in 6664yes:) 6665{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6666whose name does not start with the host triplet. If you think this 6667configuration is useful to you, please write to autoconf@gnu.org." >&5 6668echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6669whose name does not start with the host triplet. If you think this 6670configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6671ac_tool_warned=yes ;; 6672esac 6673 RANLIB=$ac_ct_RANLIB 6674 fi 6675else 6676 RANLIB="$ac_cv_prog_RANLIB" 6677fi 6678 6679if test -n "$ac_tool_prefix"; then 6680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6681set dummy ${ac_tool_prefix}strip; ac_word=$2 6682{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6684if test "${ac_cv_prog_STRIP+set}" = set; then 6685 echo $ECHO_N "(cached) $ECHO_C" >&6 6686else 6687 if test -n "$STRIP"; then 6688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6689else 6690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6691for as_dir in $PATH 6692do 6693 IFS=$as_save_IFS 6694 test -z "$as_dir" && as_dir=. 6695 for ac_exec_ext in '' $ac_executable_extensions; do 6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6697 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6699 break 2 6700 fi 6701done 6702done 6703IFS=$as_save_IFS 6704 6705fi 6706fi 6707STRIP=$ac_cv_prog_STRIP 6708if test -n "$STRIP"; then 6709 { echo "$as_me:$LINENO: result: $STRIP" >&5 6710echo "${ECHO_T}$STRIP" >&6; } 6711else 6712 { echo "$as_me:$LINENO: result: no" >&5 6713echo "${ECHO_T}no" >&6; } 6714fi 6715 6716 6717fi 6718if test -z "$ac_cv_prog_STRIP"; then 6719 ac_ct_STRIP=$STRIP 6720 # Extract the first word of "strip", so it can be a program name with args. 6721set dummy strip; ac_word=$2 6722{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6724if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6725 echo $ECHO_N "(cached) $ECHO_C" >&6 6726else 6727 if test -n "$ac_ct_STRIP"; then 6728 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6729else 6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6731for as_dir in $PATH 6732do 6733 IFS=$as_save_IFS 6734 test -z "$as_dir" && as_dir=. 6735 for ac_exec_ext in '' $ac_executable_extensions; do 6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6737 ac_cv_prog_ac_ct_STRIP="strip" 6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6739 break 2 6740 fi 6741done 6742done 6743IFS=$as_save_IFS 6744 6745fi 6746fi 6747ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6748if test -n "$ac_ct_STRIP"; then 6749 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6750echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6751else 6752 { echo "$as_me:$LINENO: result: no" >&5 6753echo "${ECHO_T}no" >&6; } 6754fi 6755 6756 if test "x$ac_ct_STRIP" = x; then 6757 STRIP=":" 6758 else 6759 case $cross_compiling:$ac_tool_warned in 6760yes:) 6761{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6762whose name does not start with the host triplet. If you think this 6763configuration is useful to you, please write to autoconf@gnu.org." >&5 6764echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6765whose name does not start with the host triplet. If you think this 6766configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6767ac_tool_warned=yes ;; 6768esac 6769 STRIP=$ac_ct_STRIP 6770 fi 6771else 6772 STRIP="$ac_cv_prog_STRIP" 6773fi 6774 6775 6776old_CC="$CC" 6777old_CFLAGS="$CFLAGS" 6778 6779# Set sane defaults for various variables 6780test -z "$AR" && AR=ar 6781test -z "$AR_FLAGS" && AR_FLAGS=cru 6782test -z "$AS" && AS=as 6783test -z "$CC" && CC=cc 6784test -z "$LTCC" && LTCC=$CC 6785test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6786test -z "$DLLTOOL" && DLLTOOL=dlltool 6787test -z "$LD" && LD=ld 6788test -z "$LN_S" && LN_S="ln -s" 6789test -z "$MAGIC_CMD" && MAGIC_CMD=file 6790test -z "$NM" && NM=nm 6791test -z "$SED" && SED=sed 6792test -z "$OBJDUMP" && OBJDUMP=objdump 6793test -z "$RANLIB" && RANLIB=: 6794test -z "$STRIP" && STRIP=: 6795test -z "$ac_objext" && ac_objext=o 6796 6797# Determine commands to create old-style static archives. 6798old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6799old_postinstall_cmds='chmod 644 $oldlib' 6800old_postuninstall_cmds= 6801 6802if test -n "$RANLIB"; then 6803 case $host_os in 6804 openbsd*) 6805 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6806 ;; 6807 *) 6808 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6809 ;; 6810 esac 6811 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6812fi 6813 6814for cc_temp in $compiler""; do 6815 case $cc_temp in 6816 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6817 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6818 \-*) ;; 6819 *) break;; 6820 esac 6821done 6822cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6823 6824 6825# Only perform the check for file, if the check method requires it 6826case $deplibs_check_method in 6827file_magic*) 6828 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6829 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6830echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6831if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6832 echo $ECHO_N "(cached) $ECHO_C" >&6 6833else 6834 case $MAGIC_CMD in 6835[\\/*] | ?:[\\/]*) 6836 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6837 ;; 6838*) 6839 lt_save_MAGIC_CMD="$MAGIC_CMD" 6840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6841 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6842 for ac_dir in $ac_dummy; do 6843 IFS="$lt_save_ifs" 6844 test -z "$ac_dir" && ac_dir=. 6845 if test -f $ac_dir/${ac_tool_prefix}file; then 6846 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6847 if test -n "$file_magic_test_file"; then 6848 case $deplibs_check_method in 6849 "file_magic "*) 6850 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6851 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6852 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6853 $EGREP "$file_magic_regex" > /dev/null; then 6854 : 6855 else 6856 cat <<EOF 1>&2 6857 6858*** Warning: the command libtool uses to detect shared libraries, 6859*** $file_magic_cmd, produces output that libtool cannot recognize. 6860*** The result is that libtool may fail to recognize shared libraries 6861*** as such. This will affect the creation of libtool libraries that 6862*** depend on shared libraries, but programs linked with such libtool 6863*** libraries will work regardless of this problem. Nevertheless, you 6864*** may want to report the problem to your system manager and/or to 6865*** bug-libtool@gnu.org 6866 6867EOF 6868 fi ;; 6869 esac 6870 fi 6871 break 6872 fi 6873 done 6874 IFS="$lt_save_ifs" 6875 MAGIC_CMD="$lt_save_MAGIC_CMD" 6876 ;; 6877esac 6878fi 6879 6880MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6881if test -n "$MAGIC_CMD"; then 6882 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6883echo "${ECHO_T}$MAGIC_CMD" >&6; } 6884else 6885 { echo "$as_me:$LINENO: result: no" >&5 6886echo "${ECHO_T}no" >&6; } 6887fi 6888 6889if test -z "$lt_cv_path_MAGIC_CMD"; then 6890 if test -n "$ac_tool_prefix"; then 6891 { echo "$as_me:$LINENO: checking for file" >&5 6892echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6893if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6894 echo $ECHO_N "(cached) $ECHO_C" >&6 6895else 6896 case $MAGIC_CMD in 6897[\\/*] | ?:[\\/]*) 6898 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6899 ;; 6900*) 6901 lt_save_MAGIC_CMD="$MAGIC_CMD" 6902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6904 for ac_dir in $ac_dummy; do 6905 IFS="$lt_save_ifs" 6906 test -z "$ac_dir" && ac_dir=. 6907 if test -f $ac_dir/file; then 6908 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6909 if test -n "$file_magic_test_file"; then 6910 case $deplibs_check_method in 6911 "file_magic "*) 6912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6915 $EGREP "$file_magic_regex" > /dev/null; then 6916 : 6917 else 6918 cat <<EOF 1>&2 6919 6920*** Warning: the command libtool uses to detect shared libraries, 6921*** $file_magic_cmd, produces output that libtool cannot recognize. 6922*** The result is that libtool may fail to recognize shared libraries 6923*** as such. This will affect the creation of libtool libraries that 6924*** depend on shared libraries, but programs linked with such libtool 6925*** libraries will work regardless of this problem. Nevertheless, you 6926*** may want to report the problem to your system manager and/or to 6927*** bug-libtool@gnu.org 6928 6929EOF 6930 fi ;; 6931 esac 6932 fi 6933 break 6934 fi 6935 done 6936 IFS="$lt_save_ifs" 6937 MAGIC_CMD="$lt_save_MAGIC_CMD" 6938 ;; 6939esac 6940fi 6941 6942MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6943if test -n "$MAGIC_CMD"; then 6944 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6945echo "${ECHO_T}$MAGIC_CMD" >&6; } 6946else 6947 { echo "$as_me:$LINENO: result: no" >&5 6948echo "${ECHO_T}no" >&6; } 6949fi 6950 6951 else 6952 MAGIC_CMD=: 6953 fi 6954fi 6955 6956 fi 6957 ;; 6958esac 6959 6960enable_dlopen=no 6961enable_win32_dll=no 6962 6963# Check whether --enable-libtool-lock was given. 6964if test "${enable_libtool_lock+set}" = set; then 6965 enableval=$enable_libtool_lock; 6966fi 6967 6968test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6969 6970 6971# Check whether --with-pic was given. 6972if test "${with_pic+set}" = set; then 6973 withval=$with_pic; pic_mode="$withval" 6974else 6975 pic_mode=default 6976fi 6977 6978test -z "$pic_mode" && pic_mode=default 6979 6980# Use C for the default configuration in the libtool script 6981tagname= 6982lt_save_CC="$CC" 6983ac_ext=c 6984ac_cpp='$CPP $CPPFLAGS' 6985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6987ac_compiler_gnu=$ac_cv_c_compiler_gnu 6988 6989 6990# Source file extension for C test sources. 6991ac_ext=c 6992 6993# Object file extension for compiled C test sources. 6994objext=o 6995objext=$objext 6996 6997# Code to be used in simple compile tests 6998lt_simple_compile_test_code="int some_variable = 0;\n" 6999 7000# Code to be used in simple link tests 7001lt_simple_link_test_code='int main(){return(0);}\n' 7002 7003 7004# If no C compiler was specified, use CC. 7005LTCC=${LTCC-"$CC"} 7006 7007# If no C compiler flags were specified, use CFLAGS. 7008LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7009 7010# Allow CC to be a program name with arguments. 7011compiler=$CC 7012 7013 7014# save warnings/boilerplate of simple test code 7015ac_outfile=conftest.$ac_objext 7016printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7017eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7018_lt_compiler_boilerplate=`cat conftest.err` 7019$rm conftest* 7020 7021ac_outfile=conftest.$ac_objext 7022printf "$lt_simple_link_test_code" >conftest.$ac_ext 7023eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7024_lt_linker_boilerplate=`cat conftest.err` 7025$rm conftest* 7026 7027 7028 7029lt_prog_compiler_no_builtin_flag= 7030 7031if test "$GCC" = yes; then 7032 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7033 7034 7035{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7036echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7037if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7038 echo $ECHO_N "(cached) $ECHO_C" >&6 7039else 7040 lt_cv_prog_compiler_rtti_exceptions=no 7041 ac_outfile=conftest.$ac_objext 7042 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7043 lt_compiler_flag="-fno-rtti -fno-exceptions" 7044 # Insert the option either (1) after the last *FLAGS variable, or 7045 # (2) before a word containing "conftest.", or (3) at the end. 7046 # Note that $ac_compile itself does not contain backslashes and begins 7047 # with a dollar sign (not a hyphen), so the echo should work correctly. 7048 # The option is referenced via a variable to avoid confusing sed. 7049 lt_compile=`echo "$ac_compile" | $SED \ 7050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7052 -e 's:$: $lt_compiler_flag:'` 7053 (eval echo "\"\$as_me:7053: $lt_compile\"" >&5) 7054 (eval "$lt_compile" 2>conftest.err) 7055 ac_status=$? 7056 cat conftest.err >&5 7057 echo "$as_me:7057: \$? = $ac_status" >&5 7058 if (exit $ac_status) && test -s "$ac_outfile"; then 7059 # The compiler can only warn and ignore the option if not recognized 7060 # So say no if there are warnings other than the usual output. 7061 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7064 lt_cv_prog_compiler_rtti_exceptions=yes 7065 fi 7066 fi 7067 $rm conftest* 7068 7069fi 7070{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7071echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7072 7073if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7074 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7075else 7076 : 7077fi 7078 7079fi 7080 7081lt_prog_compiler_wl= 7082lt_prog_compiler_pic= 7083lt_prog_compiler_static= 7084 7085{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7086echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7087 7088 if test "$GCC" = yes; then 7089 lt_prog_compiler_wl='-Wl,' 7090 lt_prog_compiler_static='-static' 7091 7092 case $host_os in 7093 aix*) 7094 # All AIX code is PIC. 7095 if test "$host_cpu" = ia64; then 7096 # AIX 5 now supports IA64 processor 7097 lt_prog_compiler_static='-Bstatic' 7098 fi 7099 ;; 7100 7101 amigaos*) 7102 # FIXME: we need at least 68020 code to build shared libraries, but 7103 # adding the `-m68020' flag to GCC prevents building anything better, 7104 # like `-m68040'. 7105 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7106 ;; 7107 7108 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7109 # PIC is the default for these OSes. 7110 ;; 7111 7112 mingw* | pw32* | os2*) 7113 # This hack is so that the source file can tell whether it is being 7114 # built for inclusion in a dll (and should export symbols for example). 7115 lt_prog_compiler_pic='-DDLL_EXPORT' 7116 ;; 7117 7118 darwin* | rhapsody*) 7119 # PIC is the default on this platform 7120 # Common symbols not allowed in MH_DYLIB files 7121 lt_prog_compiler_pic='-fno-common' 7122 ;; 7123 7124 interix3*) 7125 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7126 # Instead, we relocate shared libraries at runtime. 7127 ;; 7128 7129 msdosdjgpp*) 7130 # Just because we use GCC doesn't mean we suddenly get shared libraries 7131 # on systems that don't support them. 7132 lt_prog_compiler_can_build_shared=no 7133 enable_shared=no 7134 ;; 7135 7136 sysv4*MP*) 7137 if test -d /usr/nec; then 7138 lt_prog_compiler_pic=-Kconform_pic 7139 fi 7140 ;; 7141 7142 hpux*) 7143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7144 # not for PA HP-UX. 7145 case $host_cpu in 7146 hppa*64*|ia64*) 7147 # +Z the default 7148 ;; 7149 *) 7150 lt_prog_compiler_pic='-fPIC' 7151 ;; 7152 esac 7153 ;; 7154 7155 *) 7156 lt_prog_compiler_pic='-fPIC' 7157 ;; 7158 esac 7159 else 7160 # PORTME Check for flag to pass linker flags through the system compiler. 7161 case $host_os in 7162 aix*) 7163 lt_prog_compiler_wl='-Wl,' 7164 if test "$host_cpu" = ia64; then 7165 # AIX 5 now supports IA64 processor 7166 lt_prog_compiler_static='-Bstatic' 7167 else 7168 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7169 fi 7170 ;; 7171 darwin*) 7172 # PIC is the default on this platform 7173 # Common symbols not allowed in MH_DYLIB files 7174 case $cc_basename in 7175 xlc*) 7176 lt_prog_compiler_pic='-qnocommon' 7177 lt_prog_compiler_wl='-Wl,' 7178 ;; 7179 esac 7180 ;; 7181 7182 mingw* | pw32* | os2*) 7183 # This hack is so that the source file can tell whether it is being 7184 # built for inclusion in a dll (and should export symbols for example). 7185 lt_prog_compiler_pic='-DDLL_EXPORT' 7186 ;; 7187 7188 hpux9* | hpux10* | hpux11*) 7189 lt_prog_compiler_wl='-Wl,' 7190 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7191 # not for PA HP-UX. 7192 case $host_cpu in 7193 hppa*64*|ia64*) 7194 # +Z the default 7195 ;; 7196 *) 7197 lt_prog_compiler_pic='+Z' 7198 ;; 7199 esac 7200 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7201 lt_prog_compiler_static='${wl}-a ${wl}archive' 7202 ;; 7203 7204 irix5* | irix6* | nonstopux*) 7205 lt_prog_compiler_wl='-Wl,' 7206 # PIC (with -KPIC) is the default. 7207 lt_prog_compiler_static='-non_shared' 7208 ;; 7209 7210 newsos6) 7211 lt_prog_compiler_pic='-KPIC' 7212 lt_prog_compiler_static='-Bstatic' 7213 ;; 7214 7215 linux*) 7216 case $cc_basename in 7217 icc* | ecc*) 7218 lt_prog_compiler_wl='-Wl,' 7219 lt_prog_compiler_pic='-KPIC' 7220 lt_prog_compiler_static='-static' 7221 ;; 7222 pgcc* | pgf77* | pgf90* | pgf95*) 7223 # Portland Group compilers (*not* the Pentium gcc compiler, 7224 # which looks to be a dead project) 7225 lt_prog_compiler_wl='-Wl,' 7226 lt_prog_compiler_pic='-fpic' 7227 lt_prog_compiler_static='-Bstatic' 7228 ;; 7229 ccc*) 7230 lt_prog_compiler_wl='-Wl,' 7231 # All Alpha code is PIC. 7232 lt_prog_compiler_static='-non_shared' 7233 ;; 7234 esac 7235 ;; 7236 7237 osf3* | osf4* | osf5*) 7238 lt_prog_compiler_wl='-Wl,' 7239 # All OSF/1 code is PIC. 7240 lt_prog_compiler_static='-non_shared' 7241 ;; 7242 7243 solaris*) 7244 lt_prog_compiler_pic='-KPIC' 7245 lt_prog_compiler_static='-Bstatic' 7246 case $cc_basename in 7247 f77* | f90* | f95*) 7248 lt_prog_compiler_wl='-Qoption ld ';; 7249 *) 7250 lt_prog_compiler_wl='-Wl,';; 7251 esac 7252 ;; 7253 7254 sunos4*) 7255 lt_prog_compiler_wl='-Qoption ld ' 7256 lt_prog_compiler_pic='-PIC' 7257 lt_prog_compiler_static='-Bstatic' 7258 ;; 7259 7260 sysv4 | sysv4.2uw2* | sysv4.3*) 7261 lt_prog_compiler_wl='-Wl,' 7262 lt_prog_compiler_pic='-KPIC' 7263 lt_prog_compiler_static='-Bstatic' 7264 ;; 7265 7266 sysv4*MP*) 7267 if test -d /usr/nec ;then 7268 lt_prog_compiler_pic='-Kconform_pic' 7269 lt_prog_compiler_static='-Bstatic' 7270 fi 7271 ;; 7272 7273 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7274 lt_prog_compiler_wl='-Wl,' 7275 lt_prog_compiler_pic='-KPIC' 7276 lt_prog_compiler_static='-Bstatic' 7277 ;; 7278 7279 unicos*) 7280 lt_prog_compiler_wl='-Wl,' 7281 lt_prog_compiler_can_build_shared=no 7282 ;; 7283 7284 uts4*) 7285 lt_prog_compiler_pic='-pic' 7286 lt_prog_compiler_static='-Bstatic' 7287 ;; 7288 7289 *) 7290 lt_prog_compiler_can_build_shared=no 7291 ;; 7292 esac 7293 fi 7294 7295{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7296echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7297 7298# 7299# Check to make sure the PIC flag actually works. 7300# 7301if test -n "$lt_prog_compiler_pic"; then 7302 7303{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7304echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7305if test "${lt_prog_compiler_pic_works+set}" = set; then 7306 echo $ECHO_N "(cached) $ECHO_C" >&6 7307else 7308 lt_prog_compiler_pic_works=no 7309 ac_outfile=conftest.$ac_objext 7310 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7311 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7312 # Insert the option either (1) after the last *FLAGS variable, or 7313 # (2) before a word containing "conftest.", or (3) at the end. 7314 # Note that $ac_compile itself does not contain backslashes and begins 7315 # with a dollar sign (not a hyphen), so the echo should work correctly. 7316 # The option is referenced via a variable to avoid confusing sed. 7317 lt_compile=`echo "$ac_compile" | $SED \ 7318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7320 -e 's:$: $lt_compiler_flag:'` 7321 (eval echo "\"\$as_me:7321: $lt_compile\"" >&5) 7322 (eval "$lt_compile" 2>conftest.err) 7323 ac_status=$? 7324 cat conftest.err >&5 7325 echo "$as_me:7325: \$? = $ac_status" >&5 7326 if (exit $ac_status) && test -s "$ac_outfile"; then 7327 # The compiler can only warn and ignore the option if not recognized 7328 # So say no if there are warnings other than the usual output. 7329 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7331 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7332 lt_prog_compiler_pic_works=yes 7333 fi 7334 fi 7335 $rm conftest* 7336 7337fi 7338{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7339echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7340 7341if test x"$lt_prog_compiler_pic_works" = xyes; then 7342 case $lt_prog_compiler_pic in 7343 "" | " "*) ;; 7344 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7345 esac 7346else 7347 lt_prog_compiler_pic= 7348 lt_prog_compiler_can_build_shared=no 7349fi 7350 7351fi 7352case $host_os in 7353 # For platforms which do not support PIC, -DPIC is meaningless: 7354 *djgpp*) 7355 lt_prog_compiler_pic= 7356 ;; 7357 *) 7358 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7359 ;; 7360esac 7361 7362# 7363# Check to make sure the static flag actually works. 7364# 7365wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7366{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7367echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7368if test "${lt_prog_compiler_static_works+set}" = set; then 7369 echo $ECHO_N "(cached) $ECHO_C" >&6 7370else 7371 lt_prog_compiler_static_works=no 7372 save_LDFLAGS="$LDFLAGS" 7373 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7374 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7375 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7376 # The linker can only warn and ignore the option if not recognized 7377 # So say no if there are warnings 7378 if test -s conftest.err; then 7379 # Append any errors to the config.log. 7380 cat conftest.err 1>&5 7381 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7383 if diff conftest.exp conftest.er2 >/dev/null; then 7384 lt_prog_compiler_static_works=yes 7385 fi 7386 else 7387 lt_prog_compiler_static_works=yes 7388 fi 7389 fi 7390 $rm conftest* 7391 LDFLAGS="$save_LDFLAGS" 7392 7393fi 7394{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7395echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7396 7397if test x"$lt_prog_compiler_static_works" = xyes; then 7398 : 7399else 7400 lt_prog_compiler_static= 7401fi 7402 7403 7404{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7405echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7406if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7407 echo $ECHO_N "(cached) $ECHO_C" >&6 7408else 7409 lt_cv_prog_compiler_c_o=no 7410 $rm -r conftest 2>/dev/null 7411 mkdir conftest 7412 cd conftest 7413 mkdir out 7414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7415 7416 lt_compiler_flag="-o out/conftest2.$ac_objext" 7417 # Insert the option either (1) after the last *FLAGS variable, or 7418 # (2) before a word containing "conftest.", or (3) at the end. 7419 # Note that $ac_compile itself does not contain backslashes and begins 7420 # with a dollar sign (not a hyphen), so the echo should work correctly. 7421 lt_compile=`echo "$ac_compile" | $SED \ 7422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7424 -e 's:$: $lt_compiler_flag:'` 7425 (eval echo "\"\$as_me:7425: $lt_compile\"" >&5) 7426 (eval "$lt_compile" 2>out/conftest.err) 7427 ac_status=$? 7428 cat out/conftest.err >&5 7429 echo "$as_me:7429: \$? = $ac_status" >&5 7430 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7431 then 7432 # The compiler can only warn and ignore the option if not recognized 7433 # So say no if there are warnings 7434 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7437 lt_cv_prog_compiler_c_o=yes 7438 fi 7439 fi 7440 chmod u+w . 2>&5 7441 $rm conftest* 7442 # SGI C++ compiler will create directory out/ii_files/ for 7443 # template instantiation 7444 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7445 $rm out/* && rmdir out 7446 cd .. 7447 rmdir conftest 7448 $rm conftest* 7449 7450fi 7451{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7452echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7453 7454 7455hard_links="nottested" 7456if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7457 # do not overwrite the value of need_locks provided by the user 7458 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7459echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7460 hard_links=yes 7461 $rm conftest* 7462 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7463 touch conftest.a 7464 ln conftest.a conftest.b 2>&5 || hard_links=no 7465 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7466 { echo "$as_me:$LINENO: result: $hard_links" >&5 7467echo "${ECHO_T}$hard_links" >&6; } 7468 if test "$hard_links" = no; then 7469 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7470echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7471 need_locks=warn 7472 fi 7473else 7474 need_locks=no 7475fi 7476 7477{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7478echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7479 7480 runpath_var= 7481 allow_undefined_flag= 7482 enable_shared_with_static_runtimes=no 7483 archive_cmds= 7484 archive_expsym_cmds= 7485 old_archive_From_new_cmds= 7486 old_archive_from_expsyms_cmds= 7487 export_dynamic_flag_spec= 7488 whole_archive_flag_spec= 7489 thread_safe_flag_spec= 7490 hardcode_libdir_flag_spec= 7491 hardcode_libdir_flag_spec_ld= 7492 hardcode_libdir_separator= 7493 hardcode_direct=no 7494 hardcode_minus_L=no 7495 hardcode_shlibpath_var=unsupported 7496 link_all_deplibs=unknown 7497 hardcode_automatic=no 7498 module_cmds= 7499 module_expsym_cmds= 7500 always_export_symbols=no 7501 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7502 # include_expsyms should be a list of space-separated symbols to be *always* 7503 # included in the symbol list 7504 include_expsyms= 7505 # exclude_expsyms can be an extended regexp of symbols to exclude 7506 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7507 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7508 # as well as any symbol that contains `d'. 7509 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7510 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7511 # platforms (ab)use it in PIC code, but their linkers get confused if 7512 # the symbol is explicitly referenced. Since portable code cannot 7513 # rely on this symbol name, it's probably fine to never include it in 7514 # preloaded symbol tables. 7515 extract_expsyms_cmds= 7516 # Just being paranoid about ensuring that cc_basename is set. 7517 for cc_temp in $compiler""; do 7518 case $cc_temp in 7519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7521 \-*) ;; 7522 *) break;; 7523 esac 7524done 7525cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7526 7527 case $host_os in 7528 cygwin* | mingw* | pw32*) 7529 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7530 # When not using gcc, we currently assume that we are using 7531 # Microsoft Visual C++. 7532 if test "$GCC" != yes; then 7533 with_gnu_ld=no 7534 fi 7535 ;; 7536 interix*) 7537 # we just hope/assume this is gcc and not c89 (= MSVC++) 7538 with_gnu_ld=yes 7539 ;; 7540 openbsd*) 7541 with_gnu_ld=no 7542 ;; 7543 esac 7544 7545 ld_shlibs=yes 7546 if test "$with_gnu_ld" = yes; then 7547 # If archive_cmds runs LD, not CC, wlarc should be empty 7548 wlarc='${wl}' 7549 7550 # Set some defaults for GNU ld with shared library support. These 7551 # are reset later if shared libraries are not supported. Putting them 7552 # here allows them to be overridden if necessary. 7553 runpath_var=LD_RUN_PATH 7554 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7555 export_dynamic_flag_spec='${wl}--export-dynamic' 7556 # ancient GNU ld didn't support --whole-archive et. al. 7557 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7558 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7559 else 7560 whole_archive_flag_spec= 7561 fi 7562 supports_anon_versioning=no 7563 case `$LD -v 2>/dev/null` in 7564 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7565 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7566 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7567 *\ 2.11.*) ;; # other 2.11 versions 7568 *) supports_anon_versioning=yes ;; 7569 esac 7570 7571 # See if GNU ld supports shared libraries. 7572 case $host_os in 7573 aix3* | aix4* | aix5*) 7574 # On AIX/PPC, the GNU linker is very broken 7575 if test "$host_cpu" != ia64; then 7576 ld_shlibs=no 7577 cat <<EOF 1>&2 7578 7579*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7580*** to be unable to reliably create shared libraries on AIX. 7581*** Therefore, libtool is disabling shared libraries support. If you 7582*** really care for shared libraries, you may want to modify your PATH 7583*** so that a non-GNU linker is found, and then restart. 7584 7585EOF 7586 fi 7587 ;; 7588 7589 amigaos*) 7590 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)' 7591 hardcode_libdir_flag_spec='-L$libdir' 7592 hardcode_minus_L=yes 7593 7594 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7595 # that the semantics of dynamic libraries on AmigaOS, at least up 7596 # to version 4, is to share data among multiple programs linked 7597 # with the same dynamic library. Since this doesn't match the 7598 # behavior of shared libraries on other platforms, we can't use 7599 # them. 7600 ld_shlibs=no 7601 ;; 7602 7603 beos*) 7604 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7605 allow_undefined_flag=unsupported 7606 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7607 # support --undefined. This deserves some investigation. FIXME 7608 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7609 else 7610 ld_shlibs=no 7611 fi 7612 ;; 7613 7614 cygwin* | mingw* | pw32*) 7615 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7616 # as there is no search path for DLLs. 7617 hardcode_libdir_flag_spec='-L$libdir' 7618 allow_undefined_flag=unsupported 7619 always_export_symbols=no 7620 enable_shared_with_static_runtimes=yes 7621 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7622 7623 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7625 # If the export-symbols file already is a .def file (1st line 7626 # is EXPORTS), use it as is; otherwise, prepend... 7627 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7628 cp $export_symbols $output_objdir/$soname.def; 7629 else 7630 echo EXPORTS > $output_objdir/$soname.def; 7631 cat $export_symbols >> $output_objdir/$soname.def; 7632 fi~ 7633 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7634 else 7635 ld_shlibs=no 7636 fi 7637 ;; 7638 7639 interix3*) 7640 hardcode_direct=no 7641 hardcode_shlibpath_var=no 7642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7643 export_dynamic_flag_spec='${wl}-E' 7644 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7645 # Instead, shared libraries are loaded at an image base (0x10000000 by 7646 # default) and relocated if they conflict, which is a slow very memory 7647 # consuming and fragmenting process. To avoid this, we pick a random, 7648 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7649 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7650 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7651 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' 7652 ;; 7653 7654 linux*) 7655 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7656 tmp_addflag= 7657 case $cc_basename,$host_cpu in 7658 pgcc*) # Portland Group C compiler 7659 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' 7660 tmp_addflag=' $pic_flag' 7661 ;; 7662 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7663 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' 7664 tmp_addflag=' $pic_flag -Mnomain' ;; 7665 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7666 tmp_addflag=' -i_dynamic' ;; 7667 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7668 tmp_addflag=' -i_dynamic -nofor_main' ;; 7669 ifc* | ifort*) # Intel Fortran compiler 7670 tmp_addflag=' -nofor_main' ;; 7671 esac 7672 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7673 7674 if test $supports_anon_versioning = yes; then 7675 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7676 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7677 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7678 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7679 fi 7680 else 7681 ld_shlibs=no 7682 fi 7683 ;; 7684 7685 netbsd*) 7686 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7687 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7688 wlarc= 7689 else 7690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7691 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7692 fi 7693 ;; 7694 7695 solaris*) 7696 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7697 ld_shlibs=no 7698 cat <<EOF 1>&2 7699 7700*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7701*** create shared libraries on Solaris systems. Therefore, libtool 7702*** is disabling shared libraries support. We urge you to upgrade GNU 7703*** binutils to release 2.9.1 or newer. Another option is to modify 7704*** your PATH or compiler configuration so that the native linker is 7705*** used, and then restart. 7706 7707EOF 7708 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7711 else 7712 ld_shlibs=no 7713 fi 7714 ;; 7715 7716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7717 case `$LD -v 2>&1` in 7718 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7719 ld_shlibs=no 7720 cat <<_LT_EOF 1>&2 7721 7722*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7723*** reliably create shared libraries on SCO systems. Therefore, libtool 7724*** is disabling shared libraries support. We urge you to upgrade GNU 7725*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7726*** your PATH or compiler configuration so that the native linker is 7727*** used, and then restart. 7728 7729_LT_EOF 7730 ;; 7731 *) 7732 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7733 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7735 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7736 else 7737 ld_shlibs=no 7738 fi 7739 ;; 7740 esac 7741 ;; 7742 7743 sunos4*) 7744 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7745 wlarc= 7746 hardcode_direct=yes 7747 hardcode_shlibpath_var=no 7748 ;; 7749 7750 *) 7751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7754 else 7755 ld_shlibs=no 7756 fi 7757 ;; 7758 esac 7759 7760 if test "$ld_shlibs" = no; then 7761 runpath_var= 7762 hardcode_libdir_flag_spec= 7763 export_dynamic_flag_spec= 7764 whole_archive_flag_spec= 7765 fi 7766 else 7767 # PORTME fill in a description of your system's linker (not GNU ld) 7768 case $host_os in 7769 aix3*) 7770 allow_undefined_flag=unsupported 7771 always_export_symbols=yes 7772 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' 7773 # Note: this linker hardcodes the directories in LIBPATH if there 7774 # are no directories specified by -L. 7775 hardcode_minus_L=yes 7776 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7777 # Neither direct hardcoding nor static linking is supported with a 7778 # broken collect2. 7779 hardcode_direct=unsupported 7780 fi 7781 ;; 7782 7783 aix4* | aix5*) 7784 if test "$host_cpu" = ia64; then 7785 # On IA64, the linker does run time linking by default, so we don't 7786 # have to do anything special. 7787 aix_use_runtimelinking=no 7788 exp_sym_flag='-Bexport' 7789 no_entry_flag="" 7790 else 7791 # If we're using GNU nm, then we don't want the "-C" option. 7792 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7793 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7794 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' 7795 else 7796 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' 7797 fi 7798 aix_use_runtimelinking=no 7799 7800 # Test if we are trying to use run time linking or normal 7801 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7802 # need to do runtime linking. 7803 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7804 for ld_flag in $LDFLAGS; do 7805 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7806 aix_use_runtimelinking=yes 7807 break 7808 fi 7809 done 7810 ;; 7811 esac 7812 7813 exp_sym_flag='-bexport' 7814 no_entry_flag='-bnoentry' 7815 fi 7816 7817 # When large executables or shared objects are built, AIX ld can 7818 # have problems creating the table of contents. If linking a library 7819 # or program results in "error TOC overflow" add -mminimal-toc to 7820 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7821 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7822 7823 archive_cmds='' 7824 hardcode_direct=yes 7825 hardcode_libdir_separator=':' 7826 link_all_deplibs=yes 7827 7828 if test "$GCC" = yes; then 7829 case $host_os in aix4.[012]|aix4.[012].*) 7830 # We only want to do this on AIX 4.2 and lower, the check 7831 # below for broken collect2 doesn't work under 4.3+ 7832 collect2name=`${CC} -print-prog-name=collect2` 7833 if test -f "$collect2name" && \ 7834 strings "$collect2name" | grep resolve_lib_name >/dev/null 7835 then 7836 # We have reworked collect2 7837 hardcode_direct=yes 7838 else 7839 # We have old collect2 7840 hardcode_direct=unsupported 7841 # It fails to find uninstalled libraries when the uninstalled 7842 # path is not listed in the libpath. Setting hardcode_minus_L 7843 # to unsupported forces relinking 7844 hardcode_minus_L=yes 7845 hardcode_libdir_flag_spec='-L$libdir' 7846 hardcode_libdir_separator= 7847 fi 7848 ;; 7849 esac 7850 shared_flag='-shared' 7851 if test "$aix_use_runtimelinking" = yes; then 7852 shared_flag="$shared_flag "'${wl}-G' 7853 fi 7854 else 7855 # not using gcc 7856 if test "$host_cpu" = ia64; then 7857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7858 # chokes on -Wl,-G. The following line is correct: 7859 shared_flag='-G' 7860 else 7861 if test "$aix_use_runtimelinking" = yes; then 7862 shared_flag='${wl}-G' 7863 else 7864 shared_flag='${wl}-bM:SRE' 7865 fi 7866 fi 7867 fi 7868 7869 # It seems that -bexpall does not export symbols beginning with 7870 # underscore (_), so it is better to generate a list of symbols to export. 7871 always_export_symbols=yes 7872 if test "$aix_use_runtimelinking" = yes; then 7873 # Warning - without using the other runtime loading flags (-brtl), 7874 # -berok will link without error, but may produce a broken library. 7875 allow_undefined_flag='-berok' 7876 # Determine the default libpath from the value encoded in an empty executable. 7877 cat >conftest.$ac_ext <<_ACEOF 7878/* confdefs.h. */ 7879_ACEOF 7880cat confdefs.h >>conftest.$ac_ext 7881cat >>conftest.$ac_ext <<_ACEOF 7882/* end confdefs.h. */ 7883 7884int 7885main () 7886{ 7887 7888 ; 7889 return 0; 7890} 7891_ACEOF 7892rm -f conftest.$ac_objext conftest$ac_exeext 7893if { (ac_try="$ac_link" 7894case "(($ac_try" in 7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7896 *) ac_try_echo=$ac_try;; 7897esac 7898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7899 (eval "$ac_link") 2>conftest.er1 7900 ac_status=$? 7901 grep -v '^ *+' conftest.er1 >conftest.err 7902 rm -f conftest.er1 7903 cat conftest.err >&5 7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7905 (exit $ac_status); } && { 7906 test -z "$ac_c_werror_flag" || 7907 test ! -s conftest.err 7908 } && test -s conftest$ac_exeext && 7909 $as_test_x conftest$ac_exeext; then 7910 7911aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7912}'` 7913# Check for a 64-bit object if we didn't find anything. 7914if 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; } 7915}'`; fi 7916else 7917 echo "$as_me: failed program was:" >&5 7918sed 's/^/| /' conftest.$ac_ext >&5 7919 7920 7921fi 7922 7923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7924 conftest$ac_exeext conftest.$ac_ext 7925if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7926 7927 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7928 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" 7929 else 7930 if test "$host_cpu" = ia64; then 7931 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7932 allow_undefined_flag="-z nodefs" 7933 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" 7934 else 7935 # Determine the default libpath from the value encoded in an empty executable. 7936 cat >conftest.$ac_ext <<_ACEOF 7937/* confdefs.h. */ 7938_ACEOF 7939cat confdefs.h >>conftest.$ac_ext 7940cat >>conftest.$ac_ext <<_ACEOF 7941/* end confdefs.h. */ 7942 7943int 7944main () 7945{ 7946 7947 ; 7948 return 0; 7949} 7950_ACEOF 7951rm -f conftest.$ac_objext conftest$ac_exeext 7952if { (ac_try="$ac_link" 7953case "(($ac_try" in 7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7955 *) ac_try_echo=$ac_try;; 7956esac 7957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7958 (eval "$ac_link") 2>conftest.er1 7959 ac_status=$? 7960 grep -v '^ *+' conftest.er1 >conftest.err 7961 rm -f conftest.er1 7962 cat conftest.err >&5 7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7964 (exit $ac_status); } && { 7965 test -z "$ac_c_werror_flag" || 7966 test ! -s conftest.err 7967 } && test -s conftest$ac_exeext && 7968 $as_test_x conftest$ac_exeext; then 7969 7970aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7971}'` 7972# Check for a 64-bit object if we didn't find anything. 7973if 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; } 7974}'`; fi 7975else 7976 echo "$as_me: failed program was:" >&5 7977sed 's/^/| /' conftest.$ac_ext >&5 7978 7979 7980fi 7981 7982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7983 conftest$ac_exeext conftest.$ac_ext 7984if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7985 7986 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7987 # Warning - without using the other run time loading flags, 7988 # -berok will link without error, but may produce a broken library. 7989 no_undefined_flag=' ${wl}-bernotok' 7990 allow_undefined_flag=' ${wl}-berok' 7991 # Exported symbols can be pulled into shared objects from archives 7992 whole_archive_flag_spec='$convenience' 7993 archive_cmds_need_lc=yes 7994 # This is similar to how AIX traditionally builds its shared libraries. 7995 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' 7996 fi 7997 fi 7998 ;; 7999 8000 amigaos*) 8001 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)' 8002 hardcode_libdir_flag_spec='-L$libdir' 8003 hardcode_minus_L=yes 8004 # see comment about different semantics on the GNU ld section 8005 ld_shlibs=no 8006 ;; 8007 8008 bsdi[45]*) 8009 export_dynamic_flag_spec=-rdynamic 8010 ;; 8011 8012 cygwin* | mingw* | pw32*) 8013 # When not using gcc, we currently assume that we are using 8014 # Microsoft Visual C++. 8015 # hardcode_libdir_flag_spec is actually meaningless, as there is 8016 # no search path for DLLs. 8017 hardcode_libdir_flag_spec=' ' 8018 allow_undefined_flag=unsupported 8019 # Tell ltmain to make .lib files, not .a files. 8020 libext=lib 8021 # Tell ltmain to make .dll files, not .so files. 8022 shrext_cmds=".dll" 8023 # FIXME: Setting linknames here is a bad hack. 8024 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8025 # The linker will automatically build a .lib file if we build a DLL. 8026 old_archive_From_new_cmds='true' 8027 # FIXME: Should let the user specify the lib program. 8028 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8029 fix_srcfile_path='`cygpath -w "$srcfile"`' 8030 enable_shared_with_static_runtimes=yes 8031 ;; 8032 8033 darwin* | rhapsody*) 8034 case $host_os in 8035 rhapsody* | darwin1.[012]) 8036 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8037 ;; 8038 *) # Darwin 1.3 on 8039 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8040 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8041 else 8042 case ${MACOSX_DEPLOYMENT_TARGET} in 8043 10.[012]) 8044 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8045 ;; 8046 10.*) 8047 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8048 ;; 8049 esac 8050 fi 8051 ;; 8052 esac 8053 archive_cmds_need_lc=no 8054 hardcode_direct=no 8055 hardcode_automatic=yes 8056 hardcode_shlibpath_var=unsupported 8057 whole_archive_flag_spec='' 8058 link_all_deplibs=yes 8059 if test "$GCC" = yes ; then 8060 output_verbose_link_cmd='echo' 8061 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8062 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8063 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8064 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}' 8065 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}' 8066 else 8067 case $cc_basename in 8068 xlc*) 8069 output_verbose_link_cmd='echo' 8070 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8071 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8072 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8073 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}' 8074 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}' 8075 ;; 8076 *) 8077 ld_shlibs=no 8078 ;; 8079 esac 8080 fi 8081 ;; 8082 8083 dgux*) 8084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8085 hardcode_libdir_flag_spec='-L$libdir' 8086 hardcode_shlibpath_var=no 8087 ;; 8088 8089 freebsd1*) 8090 ld_shlibs=no 8091 ;; 8092 8093 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8094 # support. Future versions do this automatically, but an explicit c++rt0.o 8095 # does not break anything, and helps significantly (at the cost of a little 8096 # extra space). 8097 freebsd2.2*) 8098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8099 hardcode_libdir_flag_spec='-R$libdir' 8100 hardcode_direct=yes 8101 hardcode_shlibpath_var=no 8102 ;; 8103 8104 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8105 freebsd2*) 8106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8107 hardcode_direct=yes 8108 hardcode_minus_L=yes 8109 hardcode_shlibpath_var=no 8110 ;; 8111 8112 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8113 freebsd* | kfreebsd*-gnu | dragonfly*) 8114 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8115 hardcode_libdir_flag_spec='-R$libdir' 8116 hardcode_direct=yes 8117 hardcode_shlibpath_var=no 8118 ;; 8119 8120 hpux9*) 8121 if test "$GCC" = yes; then 8122 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' 8123 else 8124 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' 8125 fi 8126 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8127 hardcode_libdir_separator=: 8128 hardcode_direct=yes 8129 8130 # hardcode_minus_L: Not really in the search PATH, 8131 # but as the default location of the library. 8132 hardcode_minus_L=yes 8133 export_dynamic_flag_spec='${wl}-E' 8134 ;; 8135 8136 hpux10*) 8137 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8138 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8139 else 8140 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8141 fi 8142 if test "$with_gnu_ld" = no; then 8143 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8144 hardcode_libdir_separator=: 8145 8146 hardcode_direct=yes 8147 export_dynamic_flag_spec='${wl}-E' 8148 8149 # hardcode_minus_L: Not really in the search PATH, 8150 # but as the default location of the library. 8151 hardcode_minus_L=yes 8152 fi 8153 ;; 8154 8155 hpux11*) 8156 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8157 case $host_cpu in 8158 hppa*64*) 8159 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8160 ;; 8161 ia64*) 8162 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8163 ;; 8164 *) 8165 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8166 ;; 8167 esac 8168 else 8169 case $host_cpu in 8170 hppa*64*) 8171 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8172 ;; 8173 ia64*) 8174 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8175 ;; 8176 *) 8177 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8178 ;; 8179 esac 8180 fi 8181 if test "$with_gnu_ld" = no; then 8182 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8183 hardcode_libdir_separator=: 8184 8185 case $host_cpu in 8186 hppa*64*|ia64*) 8187 hardcode_libdir_flag_spec_ld='+b $libdir' 8188 hardcode_direct=no 8189 hardcode_shlibpath_var=no 8190 ;; 8191 *) 8192 hardcode_direct=yes 8193 export_dynamic_flag_spec='${wl}-E' 8194 8195 # hardcode_minus_L: Not really in the search PATH, 8196 # but as the default location of the library. 8197 hardcode_minus_L=yes 8198 ;; 8199 esac 8200 fi 8201 ;; 8202 8203 irix5* | irix6* | nonstopux*) 8204 if test "$GCC" = yes; then 8205 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' 8206 else 8207 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' 8208 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8209 fi 8210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8211 hardcode_libdir_separator=: 8212 link_all_deplibs=yes 8213 ;; 8214 8215 netbsd*) 8216 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8218 else 8219 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8220 fi 8221 hardcode_libdir_flag_spec='-R$libdir' 8222 hardcode_direct=yes 8223 hardcode_shlibpath_var=no 8224 ;; 8225 8226 newsos6) 8227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8228 hardcode_direct=yes 8229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8230 hardcode_libdir_separator=: 8231 hardcode_shlibpath_var=no 8232 ;; 8233 8234 openbsd*) 8235 hardcode_direct=yes 8236 hardcode_shlibpath_var=no 8237 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8238 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8239 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8241 export_dynamic_flag_spec='${wl}-E' 8242 else 8243 case $host_os in 8244 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8246 hardcode_libdir_flag_spec='-R$libdir' 8247 ;; 8248 *) 8249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8250 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8251 ;; 8252 esac 8253 fi 8254 ;; 8255 8256 os2*) 8257 hardcode_libdir_flag_spec='-L$libdir' 8258 hardcode_minus_L=yes 8259 allow_undefined_flag=unsupported 8260 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' 8261 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8262 ;; 8263 8264 osf3*) 8265 if test "$GCC" = yes; then 8266 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8267 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' 8268 else 8269 allow_undefined_flag=' -expect_unresolved \*' 8270 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' 8271 fi 8272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8273 hardcode_libdir_separator=: 8274 ;; 8275 8276 osf4* | osf5*) # as osf3* with the addition of -msym flag 8277 if test "$GCC" = yes; then 8278 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8279 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' 8280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8281 else 8282 allow_undefined_flag=' -expect_unresolved \*' 8283 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' 8284 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8285 $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' 8286 8287 # Both c and cxx compiler support -rpath directly 8288 hardcode_libdir_flag_spec='-rpath $libdir' 8289 fi 8290 hardcode_libdir_separator=: 8291 ;; 8292 8293 solaris*) 8294 no_undefined_flag=' -z text' 8295 if test "$GCC" = yes; then 8296 wlarc='${wl}' 8297 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8298 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8299 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8300 else 8301 wlarc='' 8302 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8303 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8305 fi 8306 hardcode_libdir_flag_spec='-R$libdir' 8307 hardcode_shlibpath_var=no 8308 case $host_os in 8309 solaris2.[0-5] | solaris2.[0-5].*) ;; 8310 *) 8311 # The compiler driver will combine linker options so we 8312 # cannot just pass the convience library names through 8313 # without $wl, iff we do not link with $LD. 8314 # Luckily, gcc supports the same syntax we need for Sun Studio. 8315 # Supported since Solaris 2.6 (maybe 2.5.1?) 8316 case $wlarc in 8317 '') 8318 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8319 *) 8320 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' ;; 8321 esac ;; 8322 esac 8323 link_all_deplibs=yes 8324 ;; 8325 8326 sunos4*) 8327 if test "x$host_vendor" = xsequent; then 8328 # Use $CC to link under sequent, because it throws in some extra .o 8329 # files that make .init and .fini sections work. 8330 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8331 else 8332 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8333 fi 8334 hardcode_libdir_flag_spec='-L$libdir' 8335 hardcode_direct=yes 8336 hardcode_minus_L=yes 8337 hardcode_shlibpath_var=no 8338 ;; 8339 8340 sysv4) 8341 case $host_vendor in 8342 sni) 8343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8344 hardcode_direct=yes # is this really true??? 8345 ;; 8346 siemens) 8347 ## LD is ld it makes a PLAMLIB 8348 ## CC just makes a GrossModule. 8349 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8350 reload_cmds='$CC -r -o $output$reload_objs' 8351 hardcode_direct=no 8352 ;; 8353 motorola) 8354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8355 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8356 ;; 8357 esac 8358 runpath_var='LD_RUN_PATH' 8359 hardcode_shlibpath_var=no 8360 ;; 8361 8362 sysv4.3*) 8363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8364 hardcode_shlibpath_var=no 8365 export_dynamic_flag_spec='-Bexport' 8366 ;; 8367 8368 sysv4*MP*) 8369 if test -d /usr/nec; then 8370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8371 hardcode_shlibpath_var=no 8372 runpath_var=LD_RUN_PATH 8373 hardcode_runpath_var=yes 8374 ld_shlibs=yes 8375 fi 8376 ;; 8377 8378 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8379 no_undefined_flag='${wl}-z,text' 8380 archive_cmds_need_lc=no 8381 hardcode_shlibpath_var=no 8382 runpath_var='LD_RUN_PATH' 8383 8384 if test "$GCC" = yes; then 8385 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8386 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8387 else 8388 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8389 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8390 fi 8391 ;; 8392 8393 sysv5* | sco3.2v5* | sco5v6*) 8394 # Note: We can NOT use -z defs as we might desire, because we do not 8395 # link with -lc, and that would cause any symbols used from libc to 8396 # always be unresolved, which means just about no library would 8397 # ever link correctly. If we're not using GNU ld we use -z text 8398 # though, which does catch some bad symbols but isn't as heavy-handed 8399 # as -z defs. 8400 no_undefined_flag='${wl}-z,text' 8401 allow_undefined_flag='${wl}-z,nodefs' 8402 archive_cmds_need_lc=no 8403 hardcode_shlibpath_var=no 8404 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8405 hardcode_libdir_separator=':' 8406 link_all_deplibs=yes 8407 export_dynamic_flag_spec='${wl}-Bexport' 8408 runpath_var='LD_RUN_PATH' 8409 8410 if test "$GCC" = yes; then 8411 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8412 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8413 else 8414 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8415 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8416 fi 8417 ;; 8418 8419 uts4*) 8420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8421 hardcode_libdir_flag_spec='-L$libdir' 8422 hardcode_shlibpath_var=no 8423 ;; 8424 8425 *) 8426 ld_shlibs=no 8427 ;; 8428 esac 8429 fi 8430 8431{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8432echo "${ECHO_T}$ld_shlibs" >&6; } 8433test "$ld_shlibs" = no && can_build_shared=no 8434 8435# 8436# Do we need to explicitly link libc? 8437# 8438case "x$archive_cmds_need_lc" in 8439x|xyes) 8440 # Assume -lc should be added 8441 archive_cmds_need_lc=yes 8442 8443 if test "$enable_shared" = yes && test "$GCC" = yes; then 8444 case $archive_cmds in 8445 *'~'*) 8446 # FIXME: we may have to deal with multi-command sequences. 8447 ;; 8448 '$CC '*) 8449 # Test whether the compiler implicitly links with -lc since on some 8450 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8451 # to ld, don't add -lc before -lgcc. 8452 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8453echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8454 $rm conftest* 8455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8456 8457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8458 (eval $ac_compile) 2>&5 8459 ac_status=$? 8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8461 (exit $ac_status); } 2>conftest.err; then 8462 soname=conftest 8463 lib=conftest 8464 libobjs=conftest.$ac_objext 8465 deplibs= 8466 wl=$lt_prog_compiler_wl 8467 pic_flag=$lt_prog_compiler_pic 8468 compiler_flags=-v 8469 linker_flags=-v 8470 verstring= 8471 output_objdir=. 8472 libname=conftest 8473 lt_save_allow_undefined_flag=$allow_undefined_flag 8474 allow_undefined_flag= 8475 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8476 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8477 ac_status=$? 8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8479 (exit $ac_status); } 8480 then 8481 archive_cmds_need_lc=no 8482 else 8483 archive_cmds_need_lc=yes 8484 fi 8485 allow_undefined_flag=$lt_save_allow_undefined_flag 8486 else 8487 cat conftest.err 1>&5 8488 fi 8489 $rm conftest* 8490 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8491echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8492 ;; 8493 esac 8494 fi 8495 ;; 8496esac 8497 8498{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8499echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8500library_names_spec= 8501libname_spec='lib$name' 8502soname_spec= 8503shrext_cmds=".so" 8504postinstall_cmds= 8505postuninstall_cmds= 8506finish_cmds= 8507finish_eval= 8508shlibpath_var= 8509shlibpath_overrides_runpath=unknown 8510version_type=none 8511dynamic_linker="$host_os ld.so" 8512sys_lib_dlsearch_path_spec="/lib /usr/lib" 8513if test "$GCC" = yes; then 8514 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8515 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8516 # if the path contains ";" then we assume it to be the separator 8517 # otherwise default to the standard path separator (i.e. ":") - it is 8518 # assumed that no part of a normal pathname contains ";" but that should 8519 # okay in the real world where ";" in dirpaths is itself problematic. 8520 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8521 else 8522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8523 fi 8524else 8525 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8526fi 8527need_lib_prefix=unknown 8528hardcode_into_libs=no 8529 8530# when you set need_version to no, make sure it does not cause -set_version 8531# flags to be left without arguments 8532need_version=unknown 8533 8534case $host_os in 8535aix3*) 8536 version_type=linux 8537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8538 shlibpath_var=LIBPATH 8539 8540 # AIX 3 has no versioning support, so we append a major version to the name. 8541 soname_spec='${libname}${release}${shared_ext}$major' 8542 ;; 8543 8544aix4* | aix5*) 8545 version_type=linux 8546 need_lib_prefix=no 8547 need_version=no 8548 hardcode_into_libs=yes 8549 if test "$host_cpu" = ia64; then 8550 # AIX 5 supports IA64 8551 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8552 shlibpath_var=LD_LIBRARY_PATH 8553 else 8554 # With GCC up to 2.95.x, collect2 would create an import file 8555 # for dependence libraries. The import file would start with 8556 # the line `#! .'. This would cause the generated library to 8557 # depend on `.', always an invalid library. This was fixed in 8558 # development snapshots of GCC prior to 3.0. 8559 case $host_os in 8560 aix4 | aix4.[01] | aix4.[01].*) 8561 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8562 echo ' yes ' 8563 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8564 : 8565 else 8566 can_build_shared=no 8567 fi 8568 ;; 8569 esac 8570 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8571 # soname into executable. Probably we can add versioning support to 8572 # collect2, so additional links can be useful in future. 8573 if test "$aix_use_runtimelinking" = yes; then 8574 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8575 # instead of lib<name>.a to let people know that these are not 8576 # typical AIX shared libraries. 8577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8578 else 8579 # We preserve .a as extension for shared libraries through AIX4.2 8580 # and later when we are not doing run time linking. 8581 library_names_spec='${libname}${release}.a $libname.a' 8582 soname_spec='${libname}${release}${shared_ext}$major' 8583 fi 8584 shlibpath_var=LIBPATH 8585 fi 8586 ;; 8587 8588amigaos*) 8589 library_names_spec='$libname.ixlibrary $libname.a' 8590 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8591 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' 8592 ;; 8593 8594beos*) 8595 library_names_spec='${libname}${shared_ext}' 8596 dynamic_linker="$host_os ld.so" 8597 shlibpath_var=LIBRARY_PATH 8598 ;; 8599 8600bsdi[45]*) 8601 version_type=linux 8602 need_version=no 8603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8604 soname_spec='${libname}${release}${shared_ext}$major' 8605 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8606 shlibpath_var=LD_LIBRARY_PATH 8607 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8608 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8609 # the default ld.so.conf also contains /usr/contrib/lib and 8610 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8611 # libtool to hard-code these into programs 8612 ;; 8613 8614cygwin* | mingw* | pw32*) 8615 version_type=windows 8616 shrext_cmds=".dll" 8617 need_version=no 8618 need_lib_prefix=no 8619 8620 case $GCC,$host_os in 8621 yes,cygwin* | yes,mingw* | yes,pw32*) 8622 library_names_spec='$libname.dll.a' 8623 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8624 postinstall_cmds='base_file=`basename \${file}`~ 8625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8626 dldir=$destdir/`dirname \$dlpath`~ 8627 test -d \$dldir || mkdir -p \$dldir~ 8628 $install_prog $dir/$dlname \$dldir/$dlname~ 8629 chmod a+x \$dldir/$dlname' 8630 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8631 dlpath=$dir/\$dldll~ 8632 $rm \$dlpath' 8633 shlibpath_overrides_runpath=yes 8634 8635 case $host_os in 8636 cygwin*) 8637 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8638 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8639 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8640 ;; 8641 mingw*) 8642 # MinGW DLLs use traditional 'lib' prefix 8643 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8644 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8645 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8646 # It is most probably a Windows format PATH printed by 8647 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8648 # path with ; separators, and with drive letters. We can handle the 8649 # drive letters (cygwin fileutils understands them), so leave them, 8650 # especially as we might pass files found there to a mingw objdump, 8651 # which wouldn't understand a cygwinified path. Ahh. 8652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8653 else 8654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8655 fi 8656 ;; 8657 pw32*) 8658 # pw32 DLLs use 'pw' prefix rather than 'lib' 8659 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8660 ;; 8661 esac 8662 ;; 8663 8664 *) 8665 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8666 ;; 8667 esac 8668 dynamic_linker='Win32 ld.exe' 8669 # FIXME: first we should search . and the directory the executable is in 8670 shlibpath_var=PATH 8671 ;; 8672 8673darwin* | rhapsody*) 8674 dynamic_linker="$host_os dyld" 8675 version_type=darwin 8676 need_lib_prefix=no 8677 need_version=no 8678 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8679 soname_spec='${libname}${release}${major}$shared_ext' 8680 shlibpath_overrides_runpath=yes 8681 shlibpath_var=DYLD_LIBRARY_PATH 8682 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8683 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8684 if test "$GCC" = yes; then 8685 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"` 8686 else 8687 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8688 fi 8689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8690 ;; 8691 8692dgux*) 8693 version_type=linux 8694 need_lib_prefix=no 8695 need_version=no 8696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8697 soname_spec='${libname}${release}${shared_ext}$major' 8698 shlibpath_var=LD_LIBRARY_PATH 8699 ;; 8700 8701freebsd1*) 8702 dynamic_linker=no 8703 ;; 8704 8705kfreebsd*-gnu) 8706 version_type=linux 8707 need_lib_prefix=no 8708 need_version=no 8709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8710 soname_spec='${libname}${release}${shared_ext}$major' 8711 shlibpath_var=LD_LIBRARY_PATH 8712 shlibpath_overrides_runpath=no 8713 hardcode_into_libs=yes 8714 dynamic_linker='GNU ld.so' 8715 ;; 8716 8717freebsd* | dragonfly*) 8718 # DragonFly does not have aout. When/if they implement a new 8719 # versioning mechanism, adjust this. 8720 if test -x /usr/bin/objformat; then 8721 objformat=`/usr/bin/objformat` 8722 else 8723 case $host_os in 8724 freebsd[123]*) objformat=aout ;; 8725 *) objformat=elf ;; 8726 esac 8727 fi 8728 version_type=freebsd-$objformat 8729 case $version_type in 8730 freebsd-elf*) 8731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8732 need_version=no 8733 need_lib_prefix=no 8734 ;; 8735 freebsd-*) 8736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8737 need_version=yes 8738 ;; 8739 esac 8740 shlibpath_var=LD_LIBRARY_PATH 8741 case $host_os in 8742 freebsd2*) 8743 shlibpath_overrides_runpath=yes 8744 ;; 8745 freebsd3.[01]* | freebsdelf3.[01]*) 8746 shlibpath_overrides_runpath=yes 8747 hardcode_into_libs=yes 8748 ;; 8749 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8750 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8751 shlibpath_overrides_runpath=no 8752 hardcode_into_libs=yes 8753 ;; 8754 freebsd*) # from 4.6 on 8755 shlibpath_overrides_runpath=yes 8756 hardcode_into_libs=yes 8757 ;; 8758 esac 8759 ;; 8760 8761gnu*) 8762 version_type=linux 8763 need_lib_prefix=no 8764 need_version=no 8765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8766 soname_spec='${libname}${release}${shared_ext}$major' 8767 shlibpath_var=LD_LIBRARY_PATH 8768 hardcode_into_libs=yes 8769 ;; 8770 8771hpux9* | hpux10* | hpux11*) 8772 # Give a soname corresponding to the major version so that dld.sl refuses to 8773 # link against other versions. 8774 version_type=sunos 8775 need_lib_prefix=no 8776 need_version=no 8777 case $host_cpu in 8778 ia64*) 8779 shrext_cmds='.so' 8780 hardcode_into_libs=yes 8781 dynamic_linker="$host_os dld.so" 8782 shlibpath_var=LD_LIBRARY_PATH 8783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8785 soname_spec='${libname}${release}${shared_ext}$major' 8786 if test "X$HPUX_IA64_MODE" = X32; then 8787 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8788 else 8789 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8790 fi 8791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8792 ;; 8793 hppa*64*) 8794 shrext_cmds='.sl' 8795 hardcode_into_libs=yes 8796 dynamic_linker="$host_os dld.sl" 8797 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8800 soname_spec='${libname}${release}${shared_ext}$major' 8801 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8803 ;; 8804 *) 8805 shrext_cmds='.sl' 8806 dynamic_linker="$host_os dld.sl" 8807 shlibpath_var=SHLIB_PATH 8808 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8810 soname_spec='${libname}${release}${shared_ext}$major' 8811 ;; 8812 esac 8813 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8814 postinstall_cmds='chmod 555 $lib' 8815 ;; 8816 8817interix3*) 8818 version_type=linux 8819 need_lib_prefix=no 8820 need_version=no 8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8822 soname_spec='${libname}${release}${shared_ext}$major' 8823 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8824 shlibpath_var=LD_LIBRARY_PATH 8825 shlibpath_overrides_runpath=no 8826 hardcode_into_libs=yes 8827 ;; 8828 8829irix5* | irix6* | nonstopux*) 8830 case $host_os in 8831 nonstopux*) version_type=nonstopux ;; 8832 *) 8833 if test "$lt_cv_prog_gnu_ld" = yes; then 8834 version_type=linux 8835 else 8836 version_type=irix 8837 fi ;; 8838 esac 8839 need_lib_prefix=no 8840 need_version=no 8841 soname_spec='${libname}${release}${shared_ext}$major' 8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8843 case $host_os in 8844 irix5* | nonstopux*) 8845 libsuff= shlibsuff= 8846 ;; 8847 *) 8848 case $LD in # libtool.m4 will add one of these switches to LD 8849 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8850 libsuff= shlibsuff= libmagic=32-bit;; 8851 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8852 libsuff=32 shlibsuff=N32 libmagic=N32;; 8853 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8854 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8855 *) libsuff= shlibsuff= libmagic=never-match;; 8856 esac 8857 ;; 8858 esac 8859 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8860 shlibpath_overrides_runpath=no 8861 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8862 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8863 hardcode_into_libs=yes 8864 ;; 8865 8866# No shared lib support for Linux oldld, aout, or coff. 8867linux*oldld* | linux*aout* | linux*coff*) 8868 dynamic_linker=no 8869 ;; 8870 8871# This must be Linux ELF. 8872linux*) 8873 version_type=linux 8874 need_lib_prefix=no 8875 need_version=no 8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8877 soname_spec='${libname}${release}${shared_ext}$major' 8878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8879 shlibpath_var=LD_LIBRARY_PATH 8880 shlibpath_overrides_runpath=no 8881 # This implies no fast_install, which is unacceptable. 8882 # Some rework will be needed to allow for fast_install 8883 # before this can be enabled. 8884 hardcode_into_libs=yes 8885 8886 # Append ld.so.conf contents to the search path 8887 if test -f /etc/ld.so.conf; then 8888 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' ' '` 8889 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8890 fi 8891 8892 # We used to test for /lib/ld.so.1 and disable shared libraries on 8893 # powerpc, because MkLinux only supported shared libraries with the 8894 # GNU dynamic linker. Since this was broken with cross compilers, 8895 # most powerpc-linux boxes support dynamic linking these days and 8896 # people can always --disable-shared, the test was removed, and we 8897 # assume the GNU/Linux dynamic linker is in use. 8898 dynamic_linker='GNU/Linux ld.so' 8899 ;; 8900 8901knetbsd*-gnu) 8902 version_type=linux 8903 need_lib_prefix=no 8904 need_version=no 8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8906 soname_spec='${libname}${release}${shared_ext}$major' 8907 shlibpath_var=LD_LIBRARY_PATH 8908 shlibpath_overrides_runpath=no 8909 hardcode_into_libs=yes 8910 dynamic_linker='GNU ld.so' 8911 ;; 8912 8913netbsd*) 8914 version_type=sunos 8915 need_lib_prefix=no 8916 need_version=no 8917 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8920 dynamic_linker='NetBSD (a.out) ld.so' 8921 else 8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8923 soname_spec='${libname}${release}${shared_ext}$major' 8924 dynamic_linker='NetBSD ld.elf_so' 8925 fi 8926 shlibpath_var=LD_LIBRARY_PATH 8927 shlibpath_overrides_runpath=yes 8928 hardcode_into_libs=yes 8929 ;; 8930 8931newsos6) 8932 version_type=linux 8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8934 shlibpath_var=LD_LIBRARY_PATH 8935 shlibpath_overrides_runpath=yes 8936 ;; 8937 8938nto-qnx*) 8939 version_type=linux 8940 need_lib_prefix=no 8941 need_version=no 8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8943 soname_spec='${libname}${release}${shared_ext}$major' 8944 shlibpath_var=LD_LIBRARY_PATH 8945 shlibpath_overrides_runpath=yes 8946 ;; 8947 8948openbsd*) 8949 version_type=sunos 8950 sys_lib_dlsearch_path_spec="/usr/lib" 8951 need_lib_prefix=no 8952 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8953 case $host_os in 8954 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8955 *) need_version=no ;; 8956 esac 8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8959 shlibpath_var=LD_LIBRARY_PATH 8960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8961 case $host_os in 8962 openbsd2.[89] | openbsd2.[89].*) 8963 shlibpath_overrides_runpath=no 8964 ;; 8965 *) 8966 shlibpath_overrides_runpath=yes 8967 ;; 8968 esac 8969 else 8970 shlibpath_overrides_runpath=yes 8971 fi 8972 ;; 8973 8974os2*) 8975 libname_spec='$name' 8976 shrext_cmds=".dll" 8977 need_lib_prefix=no 8978 library_names_spec='$libname${shared_ext} $libname.a' 8979 dynamic_linker='OS/2 ld.exe' 8980 shlibpath_var=LIBPATH 8981 ;; 8982 8983osf3* | osf4* | osf5*) 8984 version_type=osf 8985 need_lib_prefix=no 8986 need_version=no 8987 soname_spec='${libname}${release}${shared_ext}$major' 8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8989 shlibpath_var=LD_LIBRARY_PATH 8990 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8991 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8992 ;; 8993 8994solaris*) 8995 version_type=linux 8996 need_lib_prefix=no 8997 need_version=no 8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8999 soname_spec='${libname}${release}${shared_ext}$major' 9000 shlibpath_var=LD_LIBRARY_PATH 9001 shlibpath_overrides_runpath=yes 9002 hardcode_into_libs=yes 9003 # ldd complains unless libraries are executable 9004 postinstall_cmds='chmod +x $lib' 9005 ;; 9006 9007sunos4*) 9008 version_type=sunos 9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9010 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9011 shlibpath_var=LD_LIBRARY_PATH 9012 shlibpath_overrides_runpath=yes 9013 if test "$with_gnu_ld" = yes; then 9014 need_lib_prefix=no 9015 fi 9016 need_version=yes 9017 ;; 9018 9019sysv4 | sysv4.3*) 9020 version_type=linux 9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9022 soname_spec='${libname}${release}${shared_ext}$major' 9023 shlibpath_var=LD_LIBRARY_PATH 9024 case $host_vendor in 9025 sni) 9026 shlibpath_overrides_runpath=no 9027 need_lib_prefix=no 9028 export_dynamic_flag_spec='${wl}-Blargedynsym' 9029 runpath_var=LD_RUN_PATH 9030 ;; 9031 siemens) 9032 need_lib_prefix=no 9033 ;; 9034 motorola) 9035 need_lib_prefix=no 9036 need_version=no 9037 shlibpath_overrides_runpath=no 9038 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9039 ;; 9040 esac 9041 ;; 9042 9043sysv4*MP*) 9044 if test -d /usr/nec ;then 9045 version_type=linux 9046 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9047 soname_spec='$libname${shared_ext}.$major' 9048 shlibpath_var=LD_LIBRARY_PATH 9049 fi 9050 ;; 9051 9052sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9053 version_type=freebsd-elf 9054 need_lib_prefix=no 9055 need_version=no 9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9057 soname_spec='${libname}${release}${shared_ext}$major' 9058 shlibpath_var=LD_LIBRARY_PATH 9059 hardcode_into_libs=yes 9060 if test "$with_gnu_ld" = yes; then 9061 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9062 shlibpath_overrides_runpath=no 9063 else 9064 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9065 shlibpath_overrides_runpath=yes 9066 case $host_os in 9067 sco3.2v5*) 9068 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9069 ;; 9070 esac 9071 fi 9072 sys_lib_dlsearch_path_spec='/usr/lib' 9073 ;; 9074 9075uts4*) 9076 version_type=linux 9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9078 soname_spec='${libname}${release}${shared_ext}$major' 9079 shlibpath_var=LD_LIBRARY_PATH 9080 ;; 9081 9082*) 9083 dynamic_linker=no 9084 ;; 9085esac 9086{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9087echo "${ECHO_T}$dynamic_linker" >&6; } 9088test "$dynamic_linker" = no && can_build_shared=no 9089 9090variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9091if test "$GCC" = yes; then 9092 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9093fi 9094 9095{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9096echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9097hardcode_action= 9098if test -n "$hardcode_libdir_flag_spec" || \ 9099 test -n "$runpath_var" || \ 9100 test "X$hardcode_automatic" = "Xyes" ; then 9101 9102 # We can hardcode non-existant directories. 9103 if test "$hardcode_direct" != no && 9104 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9105 # have to relink, otherwise we might link with an installed library 9106 # when we should be linking with a yet-to-be-installed one 9107 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9108 test "$hardcode_minus_L" != no; then 9109 # Linking always hardcodes the temporary library directory. 9110 hardcode_action=relink 9111 else 9112 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9113 hardcode_action=immediate 9114 fi 9115else 9116 # We cannot hardcode anything, or else we can only hardcode existing 9117 # directories. 9118 hardcode_action=unsupported 9119fi 9120{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9121echo "${ECHO_T}$hardcode_action" >&6; } 9122 9123if test "$hardcode_action" = relink; then 9124 # Fast installation is not supported 9125 enable_fast_install=no 9126elif test "$shlibpath_overrides_runpath" = yes || 9127 test "$enable_shared" = no; then 9128 # Fast installation is not necessary 9129 enable_fast_install=needless 9130fi 9131 9132striplib= 9133old_striplib= 9134{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9135echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9136if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9137 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9138 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9139 { echo "$as_me:$LINENO: result: yes" >&5 9140echo "${ECHO_T}yes" >&6; } 9141else 9142# FIXME - insert some real tests, host_os isn't really good enough 9143 case $host_os in 9144 darwin*) 9145 if test -n "$STRIP" ; then 9146 striplib="$STRIP -x" 9147 { echo "$as_me:$LINENO: result: yes" >&5 9148echo "${ECHO_T}yes" >&6; } 9149 else 9150 { echo "$as_me:$LINENO: result: no" >&5 9151echo "${ECHO_T}no" >&6; } 9152fi 9153 ;; 9154 *) 9155 { echo "$as_me:$LINENO: result: no" >&5 9156echo "${ECHO_T}no" >&6; } 9157 ;; 9158 esac 9159fi 9160 9161if test "x$enable_dlopen" != xyes; then 9162 enable_dlopen=unknown 9163 enable_dlopen_self=unknown 9164 enable_dlopen_self_static=unknown 9165else 9166 lt_cv_dlopen=no 9167 lt_cv_dlopen_libs= 9168 9169 case $host_os in 9170 beos*) 9171 lt_cv_dlopen="load_add_on" 9172 lt_cv_dlopen_libs= 9173 lt_cv_dlopen_self=yes 9174 ;; 9175 9176 mingw* | pw32*) 9177 lt_cv_dlopen="LoadLibrary" 9178 lt_cv_dlopen_libs= 9179 ;; 9180 9181 cygwin*) 9182 lt_cv_dlopen="dlopen" 9183 lt_cv_dlopen_libs= 9184 ;; 9185 9186 darwin*) 9187 # if libdl is installed we need to link against it 9188 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9189echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9190if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9191 echo $ECHO_N "(cached) $ECHO_C" >&6 9192else 9193 ac_check_lib_save_LIBS=$LIBS 9194LIBS="-ldl $LIBS" 9195cat >conftest.$ac_ext <<_ACEOF 9196/* confdefs.h. */ 9197_ACEOF 9198cat confdefs.h >>conftest.$ac_ext 9199cat >>conftest.$ac_ext <<_ACEOF 9200/* end confdefs.h. */ 9201 9202/* Override any GCC internal prototype to avoid an error. 9203 Use char because int might match the return type of a GCC 9204 builtin and then its argument prototype would still apply. */ 9205#ifdef __cplusplus 9206extern "C" 9207#endif 9208char dlopen (); 9209int 9210main () 9211{ 9212return dlopen (); 9213 ; 9214 return 0; 9215} 9216_ACEOF 9217rm -f conftest.$ac_objext conftest$ac_exeext 9218if { (ac_try="$ac_link" 9219case "(($ac_try" in 9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9221 *) ac_try_echo=$ac_try;; 9222esac 9223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9224 (eval "$ac_link") 2>conftest.er1 9225 ac_status=$? 9226 grep -v '^ *+' conftest.er1 >conftest.err 9227 rm -f conftest.er1 9228 cat conftest.err >&5 9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9230 (exit $ac_status); } && { 9231 test -z "$ac_c_werror_flag" || 9232 test ! -s conftest.err 9233 } && test -s conftest$ac_exeext && 9234 $as_test_x conftest$ac_exeext; then 9235 ac_cv_lib_dl_dlopen=yes 9236else 9237 echo "$as_me: failed program was:" >&5 9238sed 's/^/| /' conftest.$ac_ext >&5 9239 9240 ac_cv_lib_dl_dlopen=no 9241fi 9242 9243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9244 conftest$ac_exeext conftest.$ac_ext 9245LIBS=$ac_check_lib_save_LIBS 9246fi 9247{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9248echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9249if test $ac_cv_lib_dl_dlopen = yes; then 9250 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9251else 9252 9253 lt_cv_dlopen="dyld" 9254 lt_cv_dlopen_libs= 9255 lt_cv_dlopen_self=yes 9256 9257fi 9258 9259 ;; 9260 9261 *) 9262 { echo "$as_me:$LINENO: checking for shl_load" >&5 9263echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9264if test "${ac_cv_func_shl_load+set}" = set; then 9265 echo $ECHO_N "(cached) $ECHO_C" >&6 9266else 9267 cat >conftest.$ac_ext <<_ACEOF 9268/* confdefs.h. */ 9269_ACEOF 9270cat confdefs.h >>conftest.$ac_ext 9271cat >>conftest.$ac_ext <<_ACEOF 9272/* end confdefs.h. */ 9273/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9274 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9275#define shl_load innocuous_shl_load 9276 9277/* System header to define __stub macros and hopefully few prototypes, 9278 which can conflict with char shl_load (); below. 9279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9280 <limits.h> exists even on freestanding compilers. */ 9281 9282#ifdef __STDC__ 9283# include <limits.h> 9284#else 9285# include <assert.h> 9286#endif 9287 9288#undef shl_load 9289 9290/* Override any GCC internal prototype to avoid an error. 9291 Use char because int might match the return type of a GCC 9292 builtin and then its argument prototype would still apply. */ 9293#ifdef __cplusplus 9294extern "C" 9295#endif 9296char shl_load (); 9297/* The GNU C library defines this for functions which it implements 9298 to always fail with ENOSYS. Some functions are actually named 9299 something starting with __ and the normal name is an alias. */ 9300#if defined __stub_shl_load || defined __stub___shl_load 9301choke me 9302#endif 9303 9304int 9305main () 9306{ 9307return shl_load (); 9308 ; 9309 return 0; 9310} 9311_ACEOF 9312rm -f conftest.$ac_objext conftest$ac_exeext 9313if { (ac_try="$ac_link" 9314case "(($ac_try" in 9315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9316 *) ac_try_echo=$ac_try;; 9317esac 9318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9319 (eval "$ac_link") 2>conftest.er1 9320 ac_status=$? 9321 grep -v '^ *+' conftest.er1 >conftest.err 9322 rm -f conftest.er1 9323 cat conftest.err >&5 9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9325 (exit $ac_status); } && { 9326 test -z "$ac_c_werror_flag" || 9327 test ! -s conftest.err 9328 } && test -s conftest$ac_exeext && 9329 $as_test_x conftest$ac_exeext; then 9330 ac_cv_func_shl_load=yes 9331else 9332 echo "$as_me: failed program was:" >&5 9333sed 's/^/| /' conftest.$ac_ext >&5 9334 9335 ac_cv_func_shl_load=no 9336fi 9337 9338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9339 conftest$ac_exeext conftest.$ac_ext 9340fi 9341{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9342echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9343if test $ac_cv_func_shl_load = yes; then 9344 lt_cv_dlopen="shl_load" 9345else 9346 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9347echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9348if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9349 echo $ECHO_N "(cached) $ECHO_C" >&6 9350else 9351 ac_check_lib_save_LIBS=$LIBS 9352LIBS="-ldld $LIBS" 9353cat >conftest.$ac_ext <<_ACEOF 9354/* confdefs.h. */ 9355_ACEOF 9356cat confdefs.h >>conftest.$ac_ext 9357cat >>conftest.$ac_ext <<_ACEOF 9358/* end confdefs.h. */ 9359 9360/* Override any GCC internal prototype to avoid an error. 9361 Use char because int might match the return type of a GCC 9362 builtin and then its argument prototype would still apply. */ 9363#ifdef __cplusplus 9364extern "C" 9365#endif 9366char shl_load (); 9367int 9368main () 9369{ 9370return shl_load (); 9371 ; 9372 return 0; 9373} 9374_ACEOF 9375rm -f conftest.$ac_objext conftest$ac_exeext 9376if { (ac_try="$ac_link" 9377case "(($ac_try" in 9378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9379 *) ac_try_echo=$ac_try;; 9380esac 9381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9382 (eval "$ac_link") 2>conftest.er1 9383 ac_status=$? 9384 grep -v '^ *+' conftest.er1 >conftest.err 9385 rm -f conftest.er1 9386 cat conftest.err >&5 9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9388 (exit $ac_status); } && { 9389 test -z "$ac_c_werror_flag" || 9390 test ! -s conftest.err 9391 } && test -s conftest$ac_exeext && 9392 $as_test_x conftest$ac_exeext; then 9393 ac_cv_lib_dld_shl_load=yes 9394else 9395 echo "$as_me: failed program was:" >&5 9396sed 's/^/| /' conftest.$ac_ext >&5 9397 9398 ac_cv_lib_dld_shl_load=no 9399fi 9400 9401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9402 conftest$ac_exeext conftest.$ac_ext 9403LIBS=$ac_check_lib_save_LIBS 9404fi 9405{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9406echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9407if test $ac_cv_lib_dld_shl_load = yes; then 9408 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9409else 9410 { echo "$as_me:$LINENO: checking for dlopen" >&5 9411echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9412if test "${ac_cv_func_dlopen+set}" = set; then 9413 echo $ECHO_N "(cached) $ECHO_C" >&6 9414else 9415 cat >conftest.$ac_ext <<_ACEOF 9416/* confdefs.h. */ 9417_ACEOF 9418cat confdefs.h >>conftest.$ac_ext 9419cat >>conftest.$ac_ext <<_ACEOF 9420/* end confdefs.h. */ 9421/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9422 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9423#define dlopen innocuous_dlopen 9424 9425/* System header to define __stub macros and hopefully few prototypes, 9426 which can conflict with char dlopen (); below. 9427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9428 <limits.h> exists even on freestanding compilers. */ 9429 9430#ifdef __STDC__ 9431# include <limits.h> 9432#else 9433# include <assert.h> 9434#endif 9435 9436#undef dlopen 9437 9438/* Override any GCC internal prototype to avoid an error. 9439 Use char because int might match the return type of a GCC 9440 builtin and then its argument prototype would still apply. */ 9441#ifdef __cplusplus 9442extern "C" 9443#endif 9444char dlopen (); 9445/* The GNU C library defines this for functions which it implements 9446 to always fail with ENOSYS. Some functions are actually named 9447 something starting with __ and the normal name is an alias. */ 9448#if defined __stub_dlopen || defined __stub___dlopen 9449choke me 9450#endif 9451 9452int 9453main () 9454{ 9455return dlopen (); 9456 ; 9457 return 0; 9458} 9459_ACEOF 9460rm -f conftest.$ac_objext conftest$ac_exeext 9461if { (ac_try="$ac_link" 9462case "(($ac_try" in 9463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9464 *) ac_try_echo=$ac_try;; 9465esac 9466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9467 (eval "$ac_link") 2>conftest.er1 9468 ac_status=$? 9469 grep -v '^ *+' conftest.er1 >conftest.err 9470 rm -f conftest.er1 9471 cat conftest.err >&5 9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9473 (exit $ac_status); } && { 9474 test -z "$ac_c_werror_flag" || 9475 test ! -s conftest.err 9476 } && test -s conftest$ac_exeext && 9477 $as_test_x conftest$ac_exeext; then 9478 ac_cv_func_dlopen=yes 9479else 9480 echo "$as_me: failed program was:" >&5 9481sed 's/^/| /' conftest.$ac_ext >&5 9482 9483 ac_cv_func_dlopen=no 9484fi 9485 9486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9487 conftest$ac_exeext conftest.$ac_ext 9488fi 9489{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9490echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9491if test $ac_cv_func_dlopen = yes; then 9492 lt_cv_dlopen="dlopen" 9493else 9494 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9495echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9496if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9497 echo $ECHO_N "(cached) $ECHO_C" >&6 9498else 9499 ac_check_lib_save_LIBS=$LIBS 9500LIBS="-ldl $LIBS" 9501cat >conftest.$ac_ext <<_ACEOF 9502/* confdefs.h. */ 9503_ACEOF 9504cat confdefs.h >>conftest.$ac_ext 9505cat >>conftest.$ac_ext <<_ACEOF 9506/* end confdefs.h. */ 9507 9508/* Override any GCC internal prototype to avoid an error. 9509 Use char because int might match the return type of a GCC 9510 builtin and then its argument prototype would still apply. */ 9511#ifdef __cplusplus 9512extern "C" 9513#endif 9514char dlopen (); 9515int 9516main () 9517{ 9518return dlopen (); 9519 ; 9520 return 0; 9521} 9522_ACEOF 9523rm -f conftest.$ac_objext conftest$ac_exeext 9524if { (ac_try="$ac_link" 9525case "(($ac_try" in 9526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9527 *) ac_try_echo=$ac_try;; 9528esac 9529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9530 (eval "$ac_link") 2>conftest.er1 9531 ac_status=$? 9532 grep -v '^ *+' conftest.er1 >conftest.err 9533 rm -f conftest.er1 9534 cat conftest.err >&5 9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9536 (exit $ac_status); } && { 9537 test -z "$ac_c_werror_flag" || 9538 test ! -s conftest.err 9539 } && test -s conftest$ac_exeext && 9540 $as_test_x conftest$ac_exeext; then 9541 ac_cv_lib_dl_dlopen=yes 9542else 9543 echo "$as_me: failed program was:" >&5 9544sed 's/^/| /' conftest.$ac_ext >&5 9545 9546 ac_cv_lib_dl_dlopen=no 9547fi 9548 9549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9550 conftest$ac_exeext conftest.$ac_ext 9551LIBS=$ac_check_lib_save_LIBS 9552fi 9553{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9554echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9555if test $ac_cv_lib_dl_dlopen = yes; then 9556 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9557else 9558 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9559echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9560if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9561 echo $ECHO_N "(cached) $ECHO_C" >&6 9562else 9563 ac_check_lib_save_LIBS=$LIBS 9564LIBS="-lsvld $LIBS" 9565cat >conftest.$ac_ext <<_ACEOF 9566/* confdefs.h. */ 9567_ACEOF 9568cat confdefs.h >>conftest.$ac_ext 9569cat >>conftest.$ac_ext <<_ACEOF 9570/* end confdefs.h. */ 9571 9572/* Override any GCC internal prototype to avoid an error. 9573 Use char because int might match the return type of a GCC 9574 builtin and then its argument prototype would still apply. */ 9575#ifdef __cplusplus 9576extern "C" 9577#endif 9578char dlopen (); 9579int 9580main () 9581{ 9582return dlopen (); 9583 ; 9584 return 0; 9585} 9586_ACEOF 9587rm -f conftest.$ac_objext conftest$ac_exeext 9588if { (ac_try="$ac_link" 9589case "(($ac_try" in 9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9591 *) ac_try_echo=$ac_try;; 9592esac 9593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9594 (eval "$ac_link") 2>conftest.er1 9595 ac_status=$? 9596 grep -v '^ *+' conftest.er1 >conftest.err 9597 rm -f conftest.er1 9598 cat conftest.err >&5 9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9600 (exit $ac_status); } && { 9601 test -z "$ac_c_werror_flag" || 9602 test ! -s conftest.err 9603 } && test -s conftest$ac_exeext && 9604 $as_test_x conftest$ac_exeext; then 9605 ac_cv_lib_svld_dlopen=yes 9606else 9607 echo "$as_me: failed program was:" >&5 9608sed 's/^/| /' conftest.$ac_ext >&5 9609 9610 ac_cv_lib_svld_dlopen=no 9611fi 9612 9613rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9614 conftest$ac_exeext conftest.$ac_ext 9615LIBS=$ac_check_lib_save_LIBS 9616fi 9617{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9618echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9619if test $ac_cv_lib_svld_dlopen = yes; then 9620 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9621else 9622 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9623echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9624if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9625 echo $ECHO_N "(cached) $ECHO_C" >&6 9626else 9627 ac_check_lib_save_LIBS=$LIBS 9628LIBS="-ldld $LIBS" 9629cat >conftest.$ac_ext <<_ACEOF 9630/* confdefs.h. */ 9631_ACEOF 9632cat confdefs.h >>conftest.$ac_ext 9633cat >>conftest.$ac_ext <<_ACEOF 9634/* end confdefs.h. */ 9635 9636/* Override any GCC internal prototype to avoid an error. 9637 Use char because int might match the return type of a GCC 9638 builtin and then its argument prototype would still apply. */ 9639#ifdef __cplusplus 9640extern "C" 9641#endif 9642char dld_link (); 9643int 9644main () 9645{ 9646return dld_link (); 9647 ; 9648 return 0; 9649} 9650_ACEOF 9651rm -f conftest.$ac_objext conftest$ac_exeext 9652if { (ac_try="$ac_link" 9653case "(($ac_try" in 9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9655 *) ac_try_echo=$ac_try;; 9656esac 9657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9658 (eval "$ac_link") 2>conftest.er1 9659 ac_status=$? 9660 grep -v '^ *+' conftest.er1 >conftest.err 9661 rm -f conftest.er1 9662 cat conftest.err >&5 9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9664 (exit $ac_status); } && { 9665 test -z "$ac_c_werror_flag" || 9666 test ! -s conftest.err 9667 } && test -s conftest$ac_exeext && 9668 $as_test_x conftest$ac_exeext; then 9669 ac_cv_lib_dld_dld_link=yes 9670else 9671 echo "$as_me: failed program was:" >&5 9672sed 's/^/| /' conftest.$ac_ext >&5 9673 9674 ac_cv_lib_dld_dld_link=no 9675fi 9676 9677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9678 conftest$ac_exeext conftest.$ac_ext 9679LIBS=$ac_check_lib_save_LIBS 9680fi 9681{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9682echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9683if test $ac_cv_lib_dld_dld_link = yes; then 9684 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9685fi 9686 9687 9688fi 9689 9690 9691fi 9692 9693 9694fi 9695 9696 9697fi 9698 9699 9700fi 9701 9702 ;; 9703 esac 9704 9705 if test "x$lt_cv_dlopen" != xno; then 9706 enable_dlopen=yes 9707 else 9708 enable_dlopen=no 9709 fi 9710 9711 case $lt_cv_dlopen in 9712 dlopen) 9713 save_CPPFLAGS="$CPPFLAGS" 9714 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9715 9716 save_LDFLAGS="$LDFLAGS" 9717 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9718 9719 save_LIBS="$LIBS" 9720 LIBS="$lt_cv_dlopen_libs $LIBS" 9721 9722 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9723echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9724if test "${lt_cv_dlopen_self+set}" = set; then 9725 echo $ECHO_N "(cached) $ECHO_C" >&6 9726else 9727 if test "$cross_compiling" = yes; then : 9728 lt_cv_dlopen_self=cross 9729else 9730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9731 lt_status=$lt_dlunknown 9732 cat > conftest.$ac_ext <<EOF 9733#line 9733 "configure" 9734#include "confdefs.h" 9735 9736#if HAVE_DLFCN_H 9737#include <dlfcn.h> 9738#endif 9739 9740#include <stdio.h> 9741 9742#ifdef RTLD_GLOBAL 9743# define LT_DLGLOBAL RTLD_GLOBAL 9744#else 9745# ifdef DL_GLOBAL 9746# define LT_DLGLOBAL DL_GLOBAL 9747# else 9748# define LT_DLGLOBAL 0 9749# endif 9750#endif 9751 9752/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9753 find out it does not work in some platform. */ 9754#ifndef LT_DLLAZY_OR_NOW 9755# ifdef RTLD_LAZY 9756# define LT_DLLAZY_OR_NOW RTLD_LAZY 9757# else 9758# ifdef DL_LAZY 9759# define LT_DLLAZY_OR_NOW DL_LAZY 9760# else 9761# ifdef RTLD_NOW 9762# define LT_DLLAZY_OR_NOW RTLD_NOW 9763# else 9764# ifdef DL_NOW 9765# define LT_DLLAZY_OR_NOW DL_NOW 9766# else 9767# define LT_DLLAZY_OR_NOW 0 9768# endif 9769# endif 9770# endif 9771# endif 9772#endif 9773 9774#ifdef __cplusplus 9775extern "C" void exit (int); 9776#endif 9777 9778void fnord() { int i=42;} 9779int main () 9780{ 9781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9782 int status = $lt_dlunknown; 9783 9784 if (self) 9785 { 9786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9787 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9788 /* dlclose (self); */ 9789 } 9790 else 9791 puts (dlerror ()); 9792 9793 exit (status); 9794} 9795EOF 9796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9797 (eval $ac_link) 2>&5 9798 ac_status=$? 9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9800 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9801 (./conftest; exit; ) >&5 2>/dev/null 9802 lt_status=$? 9803 case x$lt_status in 9804 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9805 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9806 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9807 esac 9808 else : 9809 # compilation failed 9810 lt_cv_dlopen_self=no 9811 fi 9812fi 9813rm -fr conftest* 9814 9815 9816fi 9817{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9818echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9819 9820 if test "x$lt_cv_dlopen_self" = xyes; then 9821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9822 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9823echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9824if test "${lt_cv_dlopen_self_static+set}" = set; then 9825 echo $ECHO_N "(cached) $ECHO_C" >&6 9826else 9827 if test "$cross_compiling" = yes; then : 9828 lt_cv_dlopen_self_static=cross 9829else 9830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9831 lt_status=$lt_dlunknown 9832 cat > conftest.$ac_ext <<EOF 9833#line 9833 "configure" 9834#include "confdefs.h" 9835 9836#if HAVE_DLFCN_H 9837#include <dlfcn.h> 9838#endif 9839 9840#include <stdio.h> 9841 9842#ifdef RTLD_GLOBAL 9843# define LT_DLGLOBAL RTLD_GLOBAL 9844#else 9845# ifdef DL_GLOBAL 9846# define LT_DLGLOBAL DL_GLOBAL 9847# else 9848# define LT_DLGLOBAL 0 9849# endif 9850#endif 9851 9852/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9853 find out it does not work in some platform. */ 9854#ifndef LT_DLLAZY_OR_NOW 9855# ifdef RTLD_LAZY 9856# define LT_DLLAZY_OR_NOW RTLD_LAZY 9857# else 9858# ifdef DL_LAZY 9859# define LT_DLLAZY_OR_NOW DL_LAZY 9860# else 9861# ifdef RTLD_NOW 9862# define LT_DLLAZY_OR_NOW RTLD_NOW 9863# else 9864# ifdef DL_NOW 9865# define LT_DLLAZY_OR_NOW DL_NOW 9866# else 9867# define LT_DLLAZY_OR_NOW 0 9868# endif 9869# endif 9870# endif 9871# endif 9872#endif 9873 9874#ifdef __cplusplus 9875extern "C" void exit (int); 9876#endif 9877 9878void fnord() { int i=42;} 9879int main () 9880{ 9881 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9882 int status = $lt_dlunknown; 9883 9884 if (self) 9885 { 9886 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9887 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9888 /* dlclose (self); */ 9889 } 9890 else 9891 puts (dlerror ()); 9892 9893 exit (status); 9894} 9895EOF 9896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9897 (eval $ac_link) 2>&5 9898 ac_status=$? 9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9900 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9901 (./conftest; exit; ) >&5 2>/dev/null 9902 lt_status=$? 9903 case x$lt_status in 9904 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9905 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9906 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9907 esac 9908 else : 9909 # compilation failed 9910 lt_cv_dlopen_self_static=no 9911 fi 9912fi 9913rm -fr conftest* 9914 9915 9916fi 9917{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9918echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9919 fi 9920 9921 CPPFLAGS="$save_CPPFLAGS" 9922 LDFLAGS="$save_LDFLAGS" 9923 LIBS="$save_LIBS" 9924 ;; 9925 esac 9926 9927 case $lt_cv_dlopen_self in 9928 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9929 *) enable_dlopen_self=unknown ;; 9930 esac 9931 9932 case $lt_cv_dlopen_self_static in 9933 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9934 *) enable_dlopen_self_static=unknown ;; 9935 esac 9936fi 9937 9938 9939# Report which library types will actually be built 9940{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9941echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9942{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9943echo "${ECHO_T}$can_build_shared" >&6; } 9944 9945{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9946echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9947test "$can_build_shared" = "no" && enable_shared=no 9948 9949# On AIX, shared libraries and static libraries use the same namespace, and 9950# are all built from PIC. 9951case $host_os in 9952aix3*) 9953 test "$enable_shared" = yes && enable_static=no 9954 if test -n "$RANLIB"; then 9955 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9956 postinstall_cmds='$RANLIB $lib' 9957 fi 9958 ;; 9959 9960aix4* | aix5*) 9961 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9962 test "$enable_shared" = yes && enable_static=no 9963 fi 9964 ;; 9965esac 9966{ echo "$as_me:$LINENO: result: $enable_shared" >&5 9967echo "${ECHO_T}$enable_shared" >&6; } 9968 9969{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9970echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 9971# Make sure either enable_shared or enable_static is yes. 9972test "$enable_shared" = yes || enable_static=yes 9973{ echo "$as_me:$LINENO: result: $enable_static" >&5 9974echo "${ECHO_T}$enable_static" >&6; } 9975 9976# The else clause should only fire when bootstrapping the 9977# libtool distribution, otherwise you forgot to ship ltmain.sh 9978# with your package, and you will get complaints that there are 9979# no rules to generate ltmain.sh. 9980if test -f "$ltmain"; then 9981 # See if we are running on zsh, and set the options which allow our commands through 9982 # without removal of \ escapes. 9983 if test -n "${ZSH_VERSION+set}" ; then 9984 setopt NO_GLOB_SUBST 9985 fi 9986 # Now quote all the things that may contain metacharacters while being 9987 # careful not to overquote the AC_SUBSTed values. We take copies of the 9988 # variables and quote the copies for generation of the libtool script. 9989 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9990 SED SHELL STRIP \ 9991 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9992 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9993 deplibs_check_method reload_flag reload_cmds need_locks \ 9994 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9995 lt_cv_sys_global_symbol_to_c_name_address \ 9996 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9997 old_postinstall_cmds old_postuninstall_cmds \ 9998 compiler \ 9999 CC \ 10000 LD \ 10001 lt_prog_compiler_wl \ 10002 lt_prog_compiler_pic \ 10003 lt_prog_compiler_static \ 10004 lt_prog_compiler_no_builtin_flag \ 10005 export_dynamic_flag_spec \ 10006 thread_safe_flag_spec \ 10007 whole_archive_flag_spec \ 10008 enable_shared_with_static_runtimes \ 10009 old_archive_cmds \ 10010 old_archive_from_new_cmds \ 10011 predep_objects \ 10012 postdep_objects \ 10013 predeps \ 10014 postdeps \ 10015 compiler_lib_search_path \ 10016 archive_cmds \ 10017 archive_expsym_cmds \ 10018 postinstall_cmds \ 10019 postuninstall_cmds \ 10020 old_archive_from_expsyms_cmds \ 10021 allow_undefined_flag \ 10022 no_undefined_flag \ 10023 export_symbols_cmds \ 10024 hardcode_libdir_flag_spec \ 10025 hardcode_libdir_flag_spec_ld \ 10026 hardcode_libdir_separator \ 10027 hardcode_automatic \ 10028 module_cmds \ 10029 module_expsym_cmds \ 10030 lt_cv_prog_compiler_c_o \ 10031 exclude_expsyms \ 10032 include_expsyms; do 10033 10034 case $var in 10035 old_archive_cmds | \ 10036 old_archive_from_new_cmds | \ 10037 archive_cmds | \ 10038 archive_expsym_cmds | \ 10039 module_cmds | \ 10040 module_expsym_cmds | \ 10041 old_archive_from_expsyms_cmds | \ 10042 export_symbols_cmds | \ 10043 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10044 postinstall_cmds | postuninstall_cmds | \ 10045 old_postinstall_cmds | old_postuninstall_cmds | \ 10046 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10047 # Double-quote double-evaled strings. 10048 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10049 ;; 10050 *) 10051 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10052 ;; 10053 esac 10054 done 10055 10056 case $lt_echo in 10057 *'\$0 --fallback-echo"') 10058 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10059 ;; 10060 esac 10061 10062cfgfile="${ofile}T" 10063 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10064 $rm -f "$cfgfile" 10065 { echo "$as_me:$LINENO: creating $ofile" >&5 10066echo "$as_me: creating $ofile" >&6;} 10067 10068 cat <<__EOF__ >> "$cfgfile" 10069#! $SHELL 10070 10071# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10072# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10073# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10074# 10075# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10076# Free Software Foundation, Inc. 10077# 10078# This file is part of GNU Libtool: 10079# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10080# 10081# This program is free software; you can redistribute it and/or modify 10082# it under the terms of the GNU General Public License as published by 10083# the Free Software Foundation; either version 2 of the License, or 10084# (at your option) any later version. 10085# 10086# This program is distributed in the hope that it will be useful, but 10087# WITHOUT ANY WARRANTY; without even the implied warranty of 10088# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10089# General Public License for more details. 10090# 10091# You should have received a copy of the GNU General Public License 10092# along with this program; if not, write to the Free Software 10093# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10094# 10095# As a special exception to the GNU General Public License, if you 10096# distribute this file as part of a program that contains a 10097# configuration script generated by Autoconf, you may include it under 10098# the same distribution terms that you use for the rest of that program. 10099 10100# A sed program that does not truncate output. 10101SED=$lt_SED 10102 10103# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10104Xsed="$SED -e 1s/^X//" 10105 10106# The HP-UX ksh and POSIX shell print the target directory to stdout 10107# if CDPATH is set. 10108(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10109 10110# The names of the tagged configurations supported by this script. 10111available_tags= 10112 10113# ### BEGIN LIBTOOL CONFIG 10114 10115# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10116 10117# Shell to use when invoking shell scripts. 10118SHELL=$lt_SHELL 10119 10120# Whether or not to build shared libraries. 10121build_libtool_libs=$enable_shared 10122 10123# Whether or not to build static libraries. 10124build_old_libs=$enable_static 10125 10126# Whether or not to add -lc for building shared libraries. 10127build_libtool_need_lc=$archive_cmds_need_lc 10128 10129# Whether or not to disallow shared libs when runtime libs are static 10130allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10131 10132# Whether or not to optimize for fast installation. 10133fast_install=$enable_fast_install 10134 10135# The host system. 10136host_alias=$host_alias 10137host=$host 10138host_os=$host_os 10139 10140# The build system. 10141build_alias=$build_alias 10142build=$build 10143build_os=$build_os 10144 10145# An echo program that does not interpret backslashes. 10146echo=$lt_echo 10147 10148# The archiver. 10149AR=$lt_AR 10150AR_FLAGS=$lt_AR_FLAGS 10151 10152# A C compiler. 10153LTCC=$lt_LTCC 10154 10155# LTCC compiler flags. 10156LTCFLAGS=$lt_LTCFLAGS 10157 10158# A language-specific compiler. 10159CC=$lt_compiler 10160 10161# Is the compiler the GNU C compiler? 10162with_gcc=$GCC 10163 10164# An ERE matcher. 10165EGREP=$lt_EGREP 10166 10167# The linker used to build libraries. 10168LD=$lt_LD 10169 10170# Whether we need hard or soft links. 10171LN_S=$lt_LN_S 10172 10173# A BSD-compatible nm program. 10174NM=$lt_NM 10175 10176# A symbol stripping program 10177STRIP=$lt_STRIP 10178 10179# Used to examine libraries when file_magic_cmd begins "file" 10180MAGIC_CMD=$MAGIC_CMD 10181 10182# Used on cygwin: DLL creation program. 10183DLLTOOL="$DLLTOOL" 10184 10185# Used on cygwin: object dumper. 10186OBJDUMP="$OBJDUMP" 10187 10188# Used on cygwin: assembler. 10189AS="$AS" 10190 10191# The name of the directory that contains temporary libtool files. 10192objdir=$objdir 10193 10194# How to create reloadable object files. 10195reload_flag=$lt_reload_flag 10196reload_cmds=$lt_reload_cmds 10197 10198# How to pass a linker flag through the compiler. 10199wl=$lt_lt_prog_compiler_wl 10200 10201# Object file suffix (normally "o"). 10202objext="$ac_objext" 10203 10204# Old archive suffix (normally "a"). 10205libext="$libext" 10206 10207# Shared library suffix (normally ".so"). 10208shrext_cmds='$shrext_cmds' 10209 10210# Executable file suffix (normally ""). 10211exeext="$exeext" 10212 10213# Additional compiler flags for building library objects. 10214pic_flag=$lt_lt_prog_compiler_pic 10215pic_mode=$pic_mode 10216 10217# What is the maximum length of a command? 10218max_cmd_len=$lt_cv_sys_max_cmd_len 10219 10220# Does compiler simultaneously support -c and -o options? 10221compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10222 10223# Must we lock files when doing compilation? 10224need_locks=$lt_need_locks 10225 10226# Do we need the lib prefix for modules? 10227need_lib_prefix=$need_lib_prefix 10228 10229# Do we need a version for libraries? 10230need_version=$need_version 10231 10232# Whether dlopen is supported. 10233dlopen_support=$enable_dlopen 10234 10235# Whether dlopen of programs is supported. 10236dlopen_self=$enable_dlopen_self 10237 10238# Whether dlopen of statically linked programs is supported. 10239dlopen_self_static=$enable_dlopen_self_static 10240 10241# Compiler flag to prevent dynamic linking. 10242link_static_flag=$lt_lt_prog_compiler_static 10243 10244# Compiler flag to turn off builtin functions. 10245no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10246 10247# Compiler flag to allow reflexive dlopens. 10248export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10249 10250# Compiler flag to generate shared objects directly from archives. 10251whole_archive_flag_spec=$lt_whole_archive_flag_spec 10252 10253# Compiler flag to generate thread-safe objects. 10254thread_safe_flag_spec=$lt_thread_safe_flag_spec 10255 10256# Library versioning type. 10257version_type=$version_type 10258 10259# Format of library name prefix. 10260libname_spec=$lt_libname_spec 10261 10262# List of archive names. First name is the real one, the rest are links. 10263# The last name is the one that the linker finds with -lNAME. 10264library_names_spec=$lt_library_names_spec 10265 10266# The coded name of the library, if different from the real name. 10267soname_spec=$lt_soname_spec 10268 10269# Commands used to build and install an old-style archive. 10270RANLIB=$lt_RANLIB 10271old_archive_cmds=$lt_old_archive_cmds 10272old_postinstall_cmds=$lt_old_postinstall_cmds 10273old_postuninstall_cmds=$lt_old_postuninstall_cmds 10274 10275# Create an old-style archive from a shared archive. 10276old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10277 10278# Create a temporary old-style archive to link instead of a shared archive. 10279old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10280 10281# Commands used to build and install a shared archive. 10282archive_cmds=$lt_archive_cmds 10283archive_expsym_cmds=$lt_archive_expsym_cmds 10284postinstall_cmds=$lt_postinstall_cmds 10285postuninstall_cmds=$lt_postuninstall_cmds 10286 10287# Commands used to build a loadable module (assumed same as above if empty) 10288module_cmds=$lt_module_cmds 10289module_expsym_cmds=$lt_module_expsym_cmds 10290 10291# Commands to strip libraries. 10292old_striplib=$lt_old_striplib 10293striplib=$lt_striplib 10294 10295# Dependencies to place before the objects being linked to create a 10296# shared library. 10297predep_objects=$lt_predep_objects 10298 10299# Dependencies to place after the objects being linked to create a 10300# shared library. 10301postdep_objects=$lt_postdep_objects 10302 10303# Dependencies to place before the objects being linked to create a 10304# shared library. 10305predeps=$lt_predeps 10306 10307# Dependencies to place after the objects being linked to create a 10308# shared library. 10309postdeps=$lt_postdeps 10310 10311# The library search path used internally by the compiler when linking 10312# a shared library. 10313compiler_lib_search_path=$lt_compiler_lib_search_path 10314 10315# Method to check whether dependent libraries are shared objects. 10316deplibs_check_method=$lt_deplibs_check_method 10317 10318# Command to use when deplibs_check_method == file_magic. 10319file_magic_cmd=$lt_file_magic_cmd 10320 10321# Flag that allows shared libraries with undefined symbols to be built. 10322allow_undefined_flag=$lt_allow_undefined_flag 10323 10324# Flag that forces no undefined symbols. 10325no_undefined_flag=$lt_no_undefined_flag 10326 10327# Commands used to finish a libtool library installation in a directory. 10328finish_cmds=$lt_finish_cmds 10329 10330# Same as above, but a single script fragment to be evaled but not shown. 10331finish_eval=$lt_finish_eval 10332 10333# Take the output of nm and produce a listing of raw symbols and C names. 10334global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10335 10336# Transform the output of nm in a proper C declaration 10337global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10338 10339# Transform the output of nm in a C name address pair 10340global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10341 10342# This is the shared library runtime path variable. 10343runpath_var=$runpath_var 10344 10345# This is the shared library path variable. 10346shlibpath_var=$shlibpath_var 10347 10348# Is shlibpath searched before the hard-coded library search path? 10349shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10350 10351# How to hardcode a shared library path into an executable. 10352hardcode_action=$hardcode_action 10353 10354# Whether we should hardcode library paths into libraries. 10355hardcode_into_libs=$hardcode_into_libs 10356 10357# Flag to hardcode \$libdir into a binary during linking. 10358# This must work even if \$libdir does not exist. 10359hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10360 10361# If ld is used when linking, flag to hardcode \$libdir into 10362# a binary during linking. This must work even if \$libdir does 10363# not exist. 10364hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10365 10366# Whether we need a single -rpath flag with a separated argument. 10367hardcode_libdir_separator=$lt_hardcode_libdir_separator 10368 10369# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10370# resulting binary. 10371hardcode_direct=$hardcode_direct 10372 10373# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10374# resulting binary. 10375hardcode_minus_L=$hardcode_minus_L 10376 10377# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10378# the resulting binary. 10379hardcode_shlibpath_var=$hardcode_shlibpath_var 10380 10381# Set to yes if building a shared library automatically hardcodes DIR into the library 10382# and all subsequent libraries and executables linked against it. 10383hardcode_automatic=$hardcode_automatic 10384 10385# Variables whose values should be saved in libtool wrapper scripts and 10386# restored at relink time. 10387variables_saved_for_relink="$variables_saved_for_relink" 10388 10389# Whether libtool must link a program against all its dependency libraries. 10390link_all_deplibs=$link_all_deplibs 10391 10392# Compile-time system search path for libraries 10393sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10394 10395# Run-time system search path for libraries 10396sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10397 10398# Fix the shell variable \$srcfile for the compiler. 10399fix_srcfile_path="$fix_srcfile_path" 10400 10401# Set to yes if exported symbols are required. 10402always_export_symbols=$always_export_symbols 10403 10404# The commands to list exported symbols. 10405export_symbols_cmds=$lt_export_symbols_cmds 10406 10407# The commands to extract the exported symbol list from a shared archive. 10408extract_expsyms_cmds=$lt_extract_expsyms_cmds 10409 10410# Symbols that should not be listed in the preloaded symbols. 10411exclude_expsyms=$lt_exclude_expsyms 10412 10413# Symbols that must always be exported. 10414include_expsyms=$lt_include_expsyms 10415 10416# ### END LIBTOOL CONFIG 10417 10418__EOF__ 10419 10420 10421 case $host_os in 10422 aix3*) 10423 cat <<\EOF >> "$cfgfile" 10424 10425# AIX sometimes has problems with the GCC collect2 program. For some 10426# reason, if we set the COLLECT_NAMES environment variable, the problems 10427# vanish in a puff of smoke. 10428if test "X${COLLECT_NAMES+set}" != Xset; then 10429 COLLECT_NAMES= 10430 export COLLECT_NAMES 10431fi 10432EOF 10433 ;; 10434 esac 10435 10436 # We use sed instead of cat because bash on DJGPP gets confused if 10437 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10438 # text mode, it properly converts lines to CR/LF. This bash problem 10439 # is reportedly fixed, but why not run on old versions too? 10440 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10441 10442 mv -f "$cfgfile" "$ofile" || \ 10443 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10444 chmod +x "$ofile" 10445 10446else 10447 # If there is no Makefile yet, we rely on a make rule to execute 10448 # `config.status --recheck' to rerun these tests and create the 10449 # libtool script then. 10450 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10451 if test -f "$ltmain_in"; then 10452 test -f Makefile && make "$ltmain" 10453 fi 10454fi 10455 10456 10457ac_ext=c 10458ac_cpp='$CPP $CPPFLAGS' 10459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10461ac_compiler_gnu=$ac_cv_c_compiler_gnu 10462 10463CC="$lt_save_CC" 10464 10465 10466# Check whether --with-tags was given. 10467if test "${with_tags+set}" = set; then 10468 withval=$with_tags; tagnames="$withval" 10469fi 10470 10471 10472if test -f "$ltmain" && test -n "$tagnames"; then 10473 if test ! -f "${ofile}"; then 10474 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10475echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10476 fi 10477 10478 if test -z "$LTCC"; then 10479 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10480 if test -z "$LTCC"; then 10481 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10482echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10483 else 10484 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10485echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10486 fi 10487 fi 10488 if test -z "$LTCFLAGS"; then 10489 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10490 fi 10491 10492 # Extract list of available tagged configurations in $ofile. 10493 # Note that this assumes the entire list is on one line. 10494 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10495 10496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10497 for tagname in $tagnames; do 10498 IFS="$lt_save_ifs" 10499 # Check whether tagname contains only valid characters 10500 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10501 "") ;; 10502 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10503echo "$as_me: error: invalid tag name: $tagname" >&2;} 10504 { (exit 1); exit 1; }; } 10505 ;; 10506 esac 10507 10508 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10509 then 10510 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10511echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10512 { (exit 1); exit 1; }; } 10513 fi 10514 10515 # Update the list of available tags. 10516 if test -n "$tagname"; then 10517 echo appending configuration tag \"$tagname\" to $ofile 10518 10519 case $tagname in 10520 CXX) 10521 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10522 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10523 (test "X$CXX" != "Xg++"))) ; then 10524 ac_ext=cpp 10525ac_cpp='$CXXCPP $CPPFLAGS' 10526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10529 10530 10531 10532 10533archive_cmds_need_lc_CXX=no 10534allow_undefined_flag_CXX= 10535always_export_symbols_CXX=no 10536archive_expsym_cmds_CXX= 10537export_dynamic_flag_spec_CXX= 10538hardcode_direct_CXX=no 10539hardcode_libdir_flag_spec_CXX= 10540hardcode_libdir_flag_spec_ld_CXX= 10541hardcode_libdir_separator_CXX= 10542hardcode_minus_L_CXX=no 10543hardcode_shlibpath_var_CXX=unsupported 10544hardcode_automatic_CXX=no 10545module_cmds_CXX= 10546module_expsym_cmds_CXX= 10547link_all_deplibs_CXX=unknown 10548old_archive_cmds_CXX=$old_archive_cmds 10549no_undefined_flag_CXX= 10550whole_archive_flag_spec_CXX= 10551enable_shared_with_static_runtimes_CXX=no 10552 10553# Dependencies to place before and after the object being linked: 10554predep_objects_CXX= 10555postdep_objects_CXX= 10556predeps_CXX= 10557postdeps_CXX= 10558compiler_lib_search_path_CXX= 10559 10560# Source file extension for C++ test sources. 10561ac_ext=cpp 10562 10563# Object file extension for compiled C++ test sources. 10564objext=o 10565objext_CXX=$objext 10566 10567# Code to be used in simple compile tests 10568lt_simple_compile_test_code="int some_variable = 0;\n" 10569 10570# Code to be used in simple link tests 10571lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10572 10573# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10574 10575# If no C compiler was specified, use CC. 10576LTCC=${LTCC-"$CC"} 10577 10578# If no C compiler flags were specified, use CFLAGS. 10579LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10580 10581# Allow CC to be a program name with arguments. 10582compiler=$CC 10583 10584 10585# save warnings/boilerplate of simple test code 10586ac_outfile=conftest.$ac_objext 10587printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10588eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10589_lt_compiler_boilerplate=`cat conftest.err` 10590$rm conftest* 10591 10592ac_outfile=conftest.$ac_objext 10593printf "$lt_simple_link_test_code" >conftest.$ac_ext 10594eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10595_lt_linker_boilerplate=`cat conftest.err` 10596$rm conftest* 10597 10598 10599# Allow CC to be a program name with arguments. 10600lt_save_CC=$CC 10601lt_save_LD=$LD 10602lt_save_GCC=$GCC 10603GCC=$GXX 10604lt_save_with_gnu_ld=$with_gnu_ld 10605lt_save_path_LD=$lt_cv_path_LD 10606if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10607 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10608else 10609 $as_unset lt_cv_prog_gnu_ld 10610fi 10611if test -n "${lt_cv_path_LDCXX+set}"; then 10612 lt_cv_path_LD=$lt_cv_path_LDCXX 10613else 10614 $as_unset lt_cv_path_LD 10615fi 10616test -z "${LDCXX+set}" || LD=$LDCXX 10617CC=${CXX-"c++"} 10618compiler=$CC 10619compiler_CXX=$CC 10620for cc_temp in $compiler""; do 10621 case $cc_temp in 10622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10624 \-*) ;; 10625 *) break;; 10626 esac 10627done 10628cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10629 10630 10631# We don't want -fno-exception wen compiling C++ code, so set the 10632# no_builtin_flag separately 10633if test "$GXX" = yes; then 10634 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10635else 10636 lt_prog_compiler_no_builtin_flag_CXX= 10637fi 10638 10639if test "$GXX" = yes; then 10640 # Set up default GNU C++ configuration 10641 10642 10643# Check whether --with-gnu-ld was given. 10644if test "${with_gnu_ld+set}" = set; then 10645 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10646else 10647 with_gnu_ld=no 10648fi 10649 10650ac_prog=ld 10651if test "$GCC" = yes; then 10652 # Check if gcc -print-prog-name=ld gives a path. 10653 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10654echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10655 case $host in 10656 *-*-mingw*) 10657 # gcc leaves a trailing carriage return which upsets mingw 10658 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10659 *) 10660 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10661 esac 10662 case $ac_prog in 10663 # Accept absolute paths. 10664 [\\/]* | ?:[\\/]*) 10665 re_direlt='/[^/][^/]*/\.\./' 10666 # Canonicalize the pathname of ld 10667 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10668 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10669 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10670 done 10671 test -z "$LD" && LD="$ac_prog" 10672 ;; 10673 "") 10674 # If it fails, then pretend we aren't using GCC. 10675 ac_prog=ld 10676 ;; 10677 *) 10678 # If it is relative, then search for the first ld in PATH. 10679 with_gnu_ld=unknown 10680 ;; 10681 esac 10682elif test "$with_gnu_ld" = yes; then 10683 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10684echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10685else 10686 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10687echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10688fi 10689if test "${lt_cv_path_LD+set}" = set; then 10690 echo $ECHO_N "(cached) $ECHO_C" >&6 10691else 10692 if test -z "$LD"; then 10693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10694 for ac_dir in $PATH; do 10695 IFS="$lt_save_ifs" 10696 test -z "$ac_dir" && ac_dir=. 10697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10698 lt_cv_path_LD="$ac_dir/$ac_prog" 10699 # Check to see if the program is GNU ld. I'd rather use --version, 10700 # but apparently some variants of GNU ld only accept -v. 10701 # Break only if it was the GNU/non-GNU ld that we prefer. 10702 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10703 *GNU* | *'with BFD'*) 10704 test "$with_gnu_ld" != no && break 10705 ;; 10706 *) 10707 test "$with_gnu_ld" != yes && break 10708 ;; 10709 esac 10710 fi 10711 done 10712 IFS="$lt_save_ifs" 10713else 10714 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10715fi 10716fi 10717 10718LD="$lt_cv_path_LD" 10719if test -n "$LD"; then 10720 { echo "$as_me:$LINENO: result: $LD" >&5 10721echo "${ECHO_T}$LD" >&6; } 10722else 10723 { echo "$as_me:$LINENO: result: no" >&5 10724echo "${ECHO_T}no" >&6; } 10725fi 10726test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10727echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10728 { (exit 1); exit 1; }; } 10729{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10730echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10731if test "${lt_cv_prog_gnu_ld+set}" = set; then 10732 echo $ECHO_N "(cached) $ECHO_C" >&6 10733else 10734 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10735case `$LD -v 2>&1 </dev/null` in 10736*GNU* | *'with BFD'*) 10737 lt_cv_prog_gnu_ld=yes 10738 ;; 10739*) 10740 lt_cv_prog_gnu_ld=no 10741 ;; 10742esac 10743fi 10744{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10745echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10746with_gnu_ld=$lt_cv_prog_gnu_ld 10747 10748 10749 10750 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10751 # archiving commands below assume that GNU ld is being used. 10752 if test "$with_gnu_ld" = yes; then 10753 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10754 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' 10755 10756 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10757 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10758 10759 # If archive_cmds runs LD, not CC, wlarc should be empty 10760 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10761 # investigate it a little bit more. (MM) 10762 wlarc='${wl}' 10763 10764 # ancient GNU ld didn't support --whole-archive et. al. 10765 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10766 grep 'no-whole-archive' > /dev/null; then 10767 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10768 else 10769 whole_archive_flag_spec_CXX= 10770 fi 10771 else 10772 with_gnu_ld=no 10773 wlarc= 10774 10775 # A generic and very simple default shared library creation 10776 # command for GNU C++ for the case where it uses the native 10777 # linker, instead of GNU ld. If possible, this setting should 10778 # overridden to take advantage of the native linker features on 10779 # the platform it is being used on. 10780 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10781 fi 10782 10783 # Commands to make compiler produce verbose output that lists 10784 # what "hidden" libraries, object files and flags are used when 10785 # linking a shared library. 10786 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10787 10788else 10789 GXX=no 10790 with_gnu_ld=no 10791 wlarc= 10792fi 10793 10794# PORTME: fill in a description of your system's C++ link characteristics 10795{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10796echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10797ld_shlibs_CXX=yes 10798case $host_os in 10799 aix3*) 10800 # FIXME: insert proper C++ library support 10801 ld_shlibs_CXX=no 10802 ;; 10803 aix4* | aix5*) 10804 if test "$host_cpu" = ia64; then 10805 # On IA64, the linker does run time linking by default, so we don't 10806 # have to do anything special. 10807 aix_use_runtimelinking=no 10808 exp_sym_flag='-Bexport' 10809 no_entry_flag="" 10810 else 10811 aix_use_runtimelinking=no 10812 10813 # Test if we are trying to use run time linking or normal 10814 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10815 # need to do runtime linking. 10816 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10817 for ld_flag in $LDFLAGS; do 10818 case $ld_flag in 10819 *-brtl*) 10820 aix_use_runtimelinking=yes 10821 break 10822 ;; 10823 esac 10824 done 10825 ;; 10826 esac 10827 10828 exp_sym_flag='-bexport' 10829 no_entry_flag='-bnoentry' 10830 fi 10831 10832 # When large executables or shared objects are built, AIX ld can 10833 # have problems creating the table of contents. If linking a library 10834 # or program results in "error TOC overflow" add -mminimal-toc to 10835 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10836 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10837 10838 archive_cmds_CXX='' 10839 hardcode_direct_CXX=yes 10840 hardcode_libdir_separator_CXX=':' 10841 link_all_deplibs_CXX=yes 10842 10843 if test "$GXX" = yes; then 10844 case $host_os in aix4.[012]|aix4.[012].*) 10845 # We only want to do this on AIX 4.2 and lower, the check 10846 # below for broken collect2 doesn't work under 4.3+ 10847 collect2name=`${CC} -print-prog-name=collect2` 10848 if test -f "$collect2name" && \ 10849 strings "$collect2name" | grep resolve_lib_name >/dev/null 10850 then 10851 # We have reworked collect2 10852 hardcode_direct_CXX=yes 10853 else 10854 # We have old collect2 10855 hardcode_direct_CXX=unsupported 10856 # It fails to find uninstalled libraries when the uninstalled 10857 # path is not listed in the libpath. Setting hardcode_minus_L 10858 # to unsupported forces relinking 10859 hardcode_minus_L_CXX=yes 10860 hardcode_libdir_flag_spec_CXX='-L$libdir' 10861 hardcode_libdir_separator_CXX= 10862 fi 10863 ;; 10864 esac 10865 shared_flag='-shared' 10866 if test "$aix_use_runtimelinking" = yes; then 10867 shared_flag="$shared_flag "'${wl}-G' 10868 fi 10869 else 10870 # not using gcc 10871 if test "$host_cpu" = ia64; then 10872 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10873 # chokes on -Wl,-G. The following line is correct: 10874 shared_flag='-G' 10875 else 10876 if test "$aix_use_runtimelinking" = yes; then 10877 shared_flag='${wl}-G' 10878 else 10879 shared_flag='${wl}-bM:SRE' 10880 fi 10881 fi 10882 fi 10883 10884 # It seems that -bexpall does not export symbols beginning with 10885 # underscore (_), so it is better to generate a list of symbols to export. 10886 always_export_symbols_CXX=yes 10887 if test "$aix_use_runtimelinking" = yes; then 10888 # Warning - without using the other runtime loading flags (-brtl), 10889 # -berok will link without error, but may produce a broken library. 10890 allow_undefined_flag_CXX='-berok' 10891 # Determine the default libpath from the value encoded in an empty executable. 10892 cat >conftest.$ac_ext <<_ACEOF 10893/* confdefs.h. */ 10894_ACEOF 10895cat confdefs.h >>conftest.$ac_ext 10896cat >>conftest.$ac_ext <<_ACEOF 10897/* end confdefs.h. */ 10898 10899int 10900main () 10901{ 10902 10903 ; 10904 return 0; 10905} 10906_ACEOF 10907rm -f conftest.$ac_objext conftest$ac_exeext 10908if { (ac_try="$ac_link" 10909case "(($ac_try" in 10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10911 *) ac_try_echo=$ac_try;; 10912esac 10913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10914 (eval "$ac_link") 2>conftest.er1 10915 ac_status=$? 10916 grep -v '^ *+' conftest.er1 >conftest.err 10917 rm -f conftest.er1 10918 cat conftest.err >&5 10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10920 (exit $ac_status); } && { 10921 test -z "$ac_cxx_werror_flag" || 10922 test ! -s conftest.err 10923 } && test -s conftest$ac_exeext && 10924 $as_test_x conftest$ac_exeext; then 10925 10926aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10927}'` 10928# Check for a 64-bit object if we didn't find anything. 10929if 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; } 10930}'`; fi 10931else 10932 echo "$as_me: failed program was:" >&5 10933sed 's/^/| /' conftest.$ac_ext >&5 10934 10935 10936fi 10937 10938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10939 conftest$ac_exeext conftest.$ac_ext 10940if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10941 10942 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10943 10944 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" 10945 else 10946 if test "$host_cpu" = ia64; then 10947 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10948 allow_undefined_flag_CXX="-z nodefs" 10949 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" 10950 else 10951 # Determine the default libpath from the value encoded in an empty executable. 10952 cat >conftest.$ac_ext <<_ACEOF 10953/* confdefs.h. */ 10954_ACEOF 10955cat confdefs.h >>conftest.$ac_ext 10956cat >>conftest.$ac_ext <<_ACEOF 10957/* end confdefs.h. */ 10958 10959int 10960main () 10961{ 10962 10963 ; 10964 return 0; 10965} 10966_ACEOF 10967rm -f conftest.$ac_objext conftest$ac_exeext 10968if { (ac_try="$ac_link" 10969case "(($ac_try" in 10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10971 *) ac_try_echo=$ac_try;; 10972esac 10973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10974 (eval "$ac_link") 2>conftest.er1 10975 ac_status=$? 10976 grep -v '^ *+' conftest.er1 >conftest.err 10977 rm -f conftest.er1 10978 cat conftest.err >&5 10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10980 (exit $ac_status); } && { 10981 test -z "$ac_cxx_werror_flag" || 10982 test ! -s conftest.err 10983 } && test -s conftest$ac_exeext && 10984 $as_test_x conftest$ac_exeext; then 10985 10986aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10987}'` 10988# Check for a 64-bit object if we didn't find anything. 10989if 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; } 10990}'`; fi 10991else 10992 echo "$as_me: failed program was:" >&5 10993sed 's/^/| /' conftest.$ac_ext >&5 10994 10995 10996fi 10997 10998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10999 conftest$ac_exeext conftest.$ac_ext 11000if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11001 11002 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11003 # Warning - without using the other run time loading flags, 11004 # -berok will link without error, but may produce a broken library. 11005 no_undefined_flag_CXX=' ${wl}-bernotok' 11006 allow_undefined_flag_CXX=' ${wl}-berok' 11007 # Exported symbols can be pulled into shared objects from archives 11008 whole_archive_flag_spec_CXX='$convenience' 11009 archive_cmds_need_lc_CXX=yes 11010 # This is similar to how AIX traditionally builds its shared libraries. 11011 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' 11012 fi 11013 fi 11014 ;; 11015 11016 beos*) 11017 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11018 allow_undefined_flag_CXX=unsupported 11019 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11020 # support --undefined. This deserves some investigation. FIXME 11021 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11022 else 11023 ld_shlibs_CXX=no 11024 fi 11025 ;; 11026 11027 chorus*) 11028 case $cc_basename in 11029 *) 11030 # FIXME: insert proper C++ library support 11031 ld_shlibs_CXX=no 11032 ;; 11033 esac 11034 ;; 11035 11036 cygwin* | mingw* | pw32*) 11037 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11038 # as there is no search path for DLLs. 11039 hardcode_libdir_flag_spec_CXX='-L$libdir' 11040 allow_undefined_flag_CXX=unsupported 11041 always_export_symbols_CXX=no 11042 enable_shared_with_static_runtimes_CXX=yes 11043 11044 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11045 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' 11046 # If the export-symbols file already is a .def file (1st line 11047 # is EXPORTS), use it as is; otherwise, prepend... 11048 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11049 cp $export_symbols $output_objdir/$soname.def; 11050 else 11051 echo EXPORTS > $output_objdir/$soname.def; 11052 cat $export_symbols >> $output_objdir/$soname.def; 11053 fi~ 11054 $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' 11055 else 11056 ld_shlibs_CXX=no 11057 fi 11058 ;; 11059 darwin* | rhapsody*) 11060 case $host_os in 11061 rhapsody* | darwin1.[012]) 11062 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11063 ;; 11064 *) # Darwin 1.3 on 11065 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11066 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11067 else 11068 case ${MACOSX_DEPLOYMENT_TARGET} in 11069 10.[012]) 11070 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11071 ;; 11072 10.*) 11073 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11074 ;; 11075 esac 11076 fi 11077 ;; 11078 esac 11079 archive_cmds_need_lc_CXX=no 11080 hardcode_direct_CXX=no 11081 hardcode_automatic_CXX=yes 11082 hardcode_shlibpath_var_CXX=unsupported 11083 whole_archive_flag_spec_CXX='' 11084 link_all_deplibs_CXX=yes 11085 11086 if test "$GXX" = yes ; then 11087 lt_int_apple_cc_single_mod=no 11088 output_verbose_link_cmd='echo' 11089 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11090 lt_int_apple_cc_single_mod=yes 11091 fi 11092 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11093 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11094 else 11095 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' 11096 fi 11097 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11098 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11099 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11100 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}' 11101 else 11102 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}' 11103 fi 11104 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}' 11105 else 11106 case $cc_basename in 11107 xlc*) 11108 output_verbose_link_cmd='echo' 11109 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' 11110 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11111 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11112 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}' 11113 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}' 11114 ;; 11115 *) 11116 ld_shlibs_CXX=no 11117 ;; 11118 esac 11119 fi 11120 ;; 11121 11122 dgux*) 11123 case $cc_basename in 11124 ec++*) 11125 # FIXME: insert proper C++ library support 11126 ld_shlibs_CXX=no 11127 ;; 11128 ghcx*) 11129 # Green Hills C++ Compiler 11130 # FIXME: insert proper C++ library support 11131 ld_shlibs_CXX=no 11132 ;; 11133 *) 11134 # FIXME: insert proper C++ library support 11135 ld_shlibs_CXX=no 11136 ;; 11137 esac 11138 ;; 11139 freebsd[12]*) 11140 # C++ shared libraries reported to be fairly broken before switch to ELF 11141 ld_shlibs_CXX=no 11142 ;; 11143 freebsd-elf*) 11144 archive_cmds_need_lc_CXX=no 11145 ;; 11146 freebsd* | kfreebsd*-gnu | dragonfly*) 11147 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11148 # conventions 11149 ld_shlibs_CXX=yes 11150 ;; 11151 gnu*) 11152 ;; 11153 hpux9*) 11154 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11155 hardcode_libdir_separator_CXX=: 11156 export_dynamic_flag_spec_CXX='${wl}-E' 11157 hardcode_direct_CXX=yes 11158 hardcode_minus_L_CXX=yes # Not in the search PATH, 11159 # but as the default 11160 # location of the library. 11161 11162 case $cc_basename in 11163 CC*) 11164 # FIXME: insert proper C++ library support 11165 ld_shlibs_CXX=no 11166 ;; 11167 aCC*) 11168 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' 11169 # Commands to make compiler produce verbose output that lists 11170 # what "hidden" libraries, object files and flags are used when 11171 # linking a shared library. 11172 # 11173 # There doesn't appear to be a way to prevent this compiler from 11174 # explicitly linking system object files so we need to strip them 11175 # from the output so that they don't get included in the library 11176 # dependencies. 11177 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' 11178 ;; 11179 *) 11180 if test "$GXX" = yes; then 11181 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' 11182 else 11183 # FIXME: insert proper C++ library support 11184 ld_shlibs_CXX=no 11185 fi 11186 ;; 11187 esac 11188 ;; 11189 hpux10*|hpux11*) 11190 if test $with_gnu_ld = no; then 11191 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11192 hardcode_libdir_separator_CXX=: 11193 11194 case $host_cpu in 11195 hppa*64*|ia64*) 11196 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11197 ;; 11198 *) 11199 export_dynamic_flag_spec_CXX='${wl}-E' 11200 ;; 11201 esac 11202 fi 11203 case $host_cpu in 11204 hppa*64*|ia64*) 11205 hardcode_direct_CXX=no 11206 hardcode_shlibpath_var_CXX=no 11207 ;; 11208 *) 11209 hardcode_direct_CXX=yes 11210 hardcode_minus_L_CXX=yes # Not in the search PATH, 11211 # but as the default 11212 # location of the library. 11213 ;; 11214 esac 11215 11216 case $cc_basename in 11217 CC*) 11218 # FIXME: insert proper C++ library support 11219 ld_shlibs_CXX=no 11220 ;; 11221 aCC*) 11222 case $host_cpu in 11223 hppa*64*) 11224 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11225 ;; 11226 ia64*) 11227 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11228 ;; 11229 *) 11230 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11231 ;; 11232 esac 11233 # Commands to make compiler produce verbose output that lists 11234 # what "hidden" libraries, object files and flags are used when 11235 # linking a shared library. 11236 # 11237 # There doesn't appear to be a way to prevent this compiler from 11238 # explicitly linking system object files so we need to strip them 11239 # from the output so that they don't get included in the library 11240 # dependencies. 11241 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' 11242 ;; 11243 *) 11244 if test "$GXX" = yes; then 11245 if test $with_gnu_ld = no; then 11246 case $host_cpu in 11247 hppa*64*) 11248 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11249 ;; 11250 ia64*) 11251 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11252 ;; 11253 *) 11254 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' 11255 ;; 11256 esac 11257 fi 11258 else 11259 # FIXME: insert proper C++ library support 11260 ld_shlibs_CXX=no 11261 fi 11262 ;; 11263 esac 11264 ;; 11265 interix3*) 11266 hardcode_direct_CXX=no 11267 hardcode_shlibpath_var_CXX=no 11268 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11269 export_dynamic_flag_spec_CXX='${wl}-E' 11270 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11271 # Instead, shared libraries are loaded at an image base (0x10000000 by 11272 # default) and relocated if they conflict, which is a slow very memory 11273 # consuming and fragmenting process. To avoid this, we pick a random, 11274 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11275 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11276 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' 11277 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' 11278 ;; 11279 irix5* | irix6*) 11280 case $cc_basename in 11281 CC*) 11282 # SGI C++ 11283 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' 11284 11285 # Archives containing C++ object files must be created using 11286 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11287 # necessary to make sure instantiated templates are included 11288 # in the archive. 11289 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11290 ;; 11291 *) 11292 if test "$GXX" = yes; then 11293 if test "$with_gnu_ld" = no; then 11294 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' 11295 else 11296 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' 11297 fi 11298 fi 11299 link_all_deplibs_CXX=yes 11300 ;; 11301 esac 11302 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11303 hardcode_libdir_separator_CXX=: 11304 ;; 11305 linux*) 11306 case $cc_basename in 11307 KCC*) 11308 # Kuck and Associates, Inc. (KAI) C++ Compiler 11309 11310 # KCC will only create a shared library if the output file 11311 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11312 # to its proper name (with version) after linking. 11313 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' 11314 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' 11315 # Commands to make compiler produce verbose output that lists 11316 # what "hidden" libraries, object files and flags are used when 11317 # linking a shared library. 11318 # 11319 # There doesn't appear to be a way to prevent this compiler from 11320 # explicitly linking system object files so we need to strip them 11321 # from the output so that they don't get included in the library 11322 # dependencies. 11323 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' 11324 11325 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11326 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11327 11328 # Archives containing C++ object files must be created using 11329 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11330 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11331 ;; 11332 icpc*) 11333 # Intel C++ 11334 with_gnu_ld=yes 11335 # version 8.0 and above of icpc choke on multiply defined symbols 11336 # if we add $predep_objects and $postdep_objects, however 7.1 and 11337 # earlier do not add the objects themselves. 11338 case `$CC -V 2>&1` in 11339 *"Version 7."*) 11340 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11341 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' 11342 ;; 11343 *) # Version 8.0 or newer 11344 tmp_idyn= 11345 case $host_cpu in 11346 ia64*) tmp_idyn=' -i_dynamic';; 11347 esac 11348 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11349 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' 11350 ;; 11351 esac 11352 archive_cmds_need_lc_CXX=no 11353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11355 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11356 ;; 11357 pgCC*) 11358 # Portland Group C++ compiler 11359 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11360 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' 11361 11362 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11364 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' 11365 ;; 11366 cxx*) 11367 # Compaq C++ 11368 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11369 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' 11370 11371 runpath_var=LD_RUN_PATH 11372 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11373 hardcode_libdir_separator_CXX=: 11374 11375 # Commands to make compiler produce verbose output that lists 11376 # what "hidden" libraries, object files and flags are used when 11377 # linking a shared library. 11378 # 11379 # There doesn't appear to be a way to prevent this compiler from 11380 # explicitly linking system object files so we need to strip them 11381 # from the output so that they don't get included in the library 11382 # dependencies. 11383 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' 11384 ;; 11385 esac 11386 ;; 11387 lynxos*) 11388 # FIXME: insert proper C++ library support 11389 ld_shlibs_CXX=no 11390 ;; 11391 m88k*) 11392 # FIXME: insert proper C++ library support 11393 ld_shlibs_CXX=no 11394 ;; 11395 mvs*) 11396 case $cc_basename in 11397 cxx*) 11398 # FIXME: insert proper C++ library support 11399 ld_shlibs_CXX=no 11400 ;; 11401 *) 11402 # FIXME: insert proper C++ library support 11403 ld_shlibs_CXX=no 11404 ;; 11405 esac 11406 ;; 11407 netbsd*) 11408 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11409 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11410 wlarc= 11411 hardcode_libdir_flag_spec_CXX='-R$libdir' 11412 hardcode_direct_CXX=yes 11413 hardcode_shlibpath_var_CXX=no 11414 fi 11415 # Workaround some broken pre-1.5 toolchains 11416 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11417 ;; 11418 openbsd2*) 11419 # C++ shared libraries are fairly broken 11420 ld_shlibs_CXX=no 11421 ;; 11422 openbsd*) 11423 hardcode_direct_CXX=yes 11424 hardcode_shlibpath_var_CXX=no 11425 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11428 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11429 export_dynamic_flag_spec_CXX='${wl}-E' 11430 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11431 fi 11432 output_verbose_link_cmd='echo' 11433 ;; 11434 osf3*) 11435 case $cc_basename in 11436 KCC*) 11437 # Kuck and Associates, Inc. (KAI) C++ Compiler 11438 11439 # KCC will only create a shared library if the output file 11440 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11441 # to its proper name (with version) after linking. 11442 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' 11443 11444 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11445 hardcode_libdir_separator_CXX=: 11446 11447 # Archives containing C++ object files must be created using 11448 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11449 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11450 11451 ;; 11452 RCC*) 11453 # Rational C++ 2.4.1 11454 # FIXME: insert proper C++ library support 11455 ld_shlibs_CXX=no 11456 ;; 11457 cxx*) 11458 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11459 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' 11460 11461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11462 hardcode_libdir_separator_CXX=: 11463 11464 # Commands to make compiler produce verbose output that lists 11465 # what "hidden" libraries, object files and flags are used when 11466 # linking a shared library. 11467 # 11468 # There doesn't appear to be a way to prevent this compiler from 11469 # explicitly linking system object files so we need to strip them 11470 # from the output so that they don't get included in the library 11471 # dependencies. 11472 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' 11473 ;; 11474 *) 11475 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11476 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11477 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' 11478 11479 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11480 hardcode_libdir_separator_CXX=: 11481 11482 # Commands to make compiler produce verbose output that lists 11483 # what "hidden" libraries, object files and flags are used when 11484 # linking a shared library. 11485 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11486 11487 else 11488 # FIXME: insert proper C++ library support 11489 ld_shlibs_CXX=no 11490 fi 11491 ;; 11492 esac 11493 ;; 11494 osf4* | osf5*) 11495 case $cc_basename in 11496 KCC*) 11497 # Kuck and Associates, Inc. (KAI) C++ Compiler 11498 11499 # KCC will only create a shared library if the output file 11500 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11501 # to its proper name (with version) after linking. 11502 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' 11503 11504 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11505 hardcode_libdir_separator_CXX=: 11506 11507 # Archives containing C++ object files must be created using 11508 # the KAI C++ compiler. 11509 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11510 ;; 11511 RCC*) 11512 # Rational C++ 2.4.1 11513 # FIXME: insert proper C++ library support 11514 ld_shlibs_CXX=no 11515 ;; 11516 cxx*) 11517 allow_undefined_flag_CXX=' -expect_unresolved \*' 11518 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' 11519 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11520 echo "-hidden">> $lib.exp~ 11521 $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~ 11522 $rm $lib.exp' 11523 11524 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11525 hardcode_libdir_separator_CXX=: 11526 11527 # Commands to make compiler produce verbose output that lists 11528 # what "hidden" libraries, object files and flags are used when 11529 # linking a shared library. 11530 # 11531 # There doesn't appear to be a way to prevent this compiler from 11532 # explicitly linking system object files so we need to strip them 11533 # from the output so that they don't get included in the library 11534 # dependencies. 11535 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' 11536 ;; 11537 *) 11538 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11539 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11540 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' 11541 11542 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11543 hardcode_libdir_separator_CXX=: 11544 11545 # Commands to make compiler produce verbose output that lists 11546 # what "hidden" libraries, object files and flags are used when 11547 # linking a shared library. 11548 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11549 11550 else 11551 # FIXME: insert proper C++ library support 11552 ld_shlibs_CXX=no 11553 fi 11554 ;; 11555 esac 11556 ;; 11557 psos*) 11558 # FIXME: insert proper C++ library support 11559 ld_shlibs_CXX=no 11560 ;; 11561 sunos4*) 11562 case $cc_basename in 11563 CC*) 11564 # Sun C++ 4.x 11565 # FIXME: insert proper C++ library support 11566 ld_shlibs_CXX=no 11567 ;; 11568 lcc*) 11569 # Lucid 11570 # FIXME: insert proper C++ library support 11571 ld_shlibs_CXX=no 11572 ;; 11573 *) 11574 # FIXME: insert proper C++ library support 11575 ld_shlibs_CXX=no 11576 ;; 11577 esac 11578 ;; 11579 solaris*) 11580 case $cc_basename in 11581 CC*) 11582 # Sun C++ 4.2, 5.x and Centerline C++ 11583 archive_cmds_need_lc_CXX=yes 11584 no_undefined_flag_CXX=' -zdefs' 11585 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11586 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11587 $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' 11588 11589 hardcode_libdir_flag_spec_CXX='-R$libdir' 11590 hardcode_shlibpath_var_CXX=no 11591 case $host_os in 11592 solaris2.[0-5] | solaris2.[0-5].*) ;; 11593 *) 11594 # The C++ compiler is used as linker so we must use $wl 11595 # flag to pass the commands to the underlying system 11596 # linker. We must also pass each convience library through 11597 # to the system linker between allextract/defaultextract. 11598 # The C++ compiler will combine linker options so we 11599 # cannot just pass the convience library names through 11600 # without $wl. 11601 # Supported since Solaris 2.6 (maybe 2.5.1?) 11602 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' 11603 ;; 11604 esac 11605 link_all_deplibs_CXX=yes 11606 11607 output_verbose_link_cmd='echo' 11608 11609 # Archives containing C++ object files must be created using 11610 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11611 # necessary to make sure instantiated templates are included 11612 # in the archive. 11613 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11614 ;; 11615 gcx*) 11616 # Green Hills C++ Compiler 11617 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11618 11619 # The C++ compiler must be used to create the archive. 11620 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11621 ;; 11622 *) 11623 # GNU C++ compiler with Solaris linker 11624 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11625 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11626 if $CC --version | grep -v '^2\.7' > /dev/null; then 11627 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11628 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11629 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11630 11631 # Commands to make compiler produce verbose output that lists 11632 # what "hidden" libraries, object files and flags are used when 11633 # linking a shared library. 11634 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11635 else 11636 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11637 # platform. 11638 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11639 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11640 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11641 11642 # Commands to make compiler produce verbose output that lists 11643 # what "hidden" libraries, object files and flags are used when 11644 # linking a shared library. 11645 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11646 fi 11647 11648 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11649 fi 11650 ;; 11651 esac 11652 ;; 11653 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11654 no_undefined_flag_CXX='${wl}-z,text' 11655 archive_cmds_need_lc_CXX=no 11656 hardcode_shlibpath_var_CXX=no 11657 runpath_var='LD_RUN_PATH' 11658 11659 case $cc_basename in 11660 CC*) 11661 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11662 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11663 ;; 11664 *) 11665 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11666 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11667 ;; 11668 esac 11669 ;; 11670 sysv5* | sco3.2v5* | sco5v6*) 11671 # Note: We can NOT use -z defs as we might desire, because we do not 11672 # link with -lc, and that would cause any symbols used from libc to 11673 # always be unresolved, which means just about no library would 11674 # ever link correctly. If we're not using GNU ld we use -z text 11675 # though, which does catch some bad symbols but isn't as heavy-handed 11676 # as -z defs. 11677 # For security reasons, it is highly recommended that you always 11678 # use absolute paths for naming shared libraries, and exclude the 11679 # DT_RUNPATH tag from executables and libraries. But doing so 11680 # requires that you compile everything twice, which is a pain. 11681 # So that behaviour is only enabled if SCOABSPATH is set to a 11682 # non-empty value in the environment. Most likely only useful for 11683 # creating official distributions of packages. 11684 # This is a hack until libtool officially supports absolute path 11685 # names for shared libraries. 11686 no_undefined_flag_CXX='${wl}-z,text' 11687 allow_undefined_flag_CXX='${wl}-z,nodefs' 11688 archive_cmds_need_lc_CXX=no 11689 hardcode_shlibpath_var_CXX=no 11690 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11691 hardcode_libdir_separator_CXX=':' 11692 link_all_deplibs_CXX=yes 11693 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11694 runpath_var='LD_RUN_PATH' 11695 11696 case $cc_basename in 11697 CC*) 11698 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11699 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11700 ;; 11701 *) 11702 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11703 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11704 ;; 11705 esac 11706 ;; 11707 tandem*) 11708 case $cc_basename in 11709 NCC*) 11710 # NonStop-UX NCC 3.20 11711 # FIXME: insert proper C++ library support 11712 ld_shlibs_CXX=no 11713 ;; 11714 *) 11715 # FIXME: insert proper C++ library support 11716 ld_shlibs_CXX=no 11717 ;; 11718 esac 11719 ;; 11720 vxworks*) 11721 # FIXME: insert proper C++ library support 11722 ld_shlibs_CXX=no 11723 ;; 11724 *) 11725 # FIXME: insert proper C++ library support 11726 ld_shlibs_CXX=no 11727 ;; 11728esac 11729{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11730echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11731test "$ld_shlibs_CXX" = no && can_build_shared=no 11732 11733GCC_CXX="$GXX" 11734LD_CXX="$LD" 11735 11736 11737cat > conftest.$ac_ext <<EOF 11738class Foo 11739{ 11740public: 11741 Foo (void) { a = 0; } 11742private: 11743 int a; 11744}; 11745EOF 11746 11747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11748 (eval $ac_compile) 2>&5 11749 ac_status=$? 11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11751 (exit $ac_status); }; then 11752 # Parse the compiler output and extract the necessary 11753 # objects, libraries and library flags. 11754 11755 # Sentinel used to keep track of whether or not we are before 11756 # the conftest object file. 11757 pre_test_object_deps_done=no 11758 11759 # The `*' in the case matches for architectures that use `case' in 11760 # $output_verbose_cmd can trigger glob expansion during the loop 11761 # eval without this substitution. 11762 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11763 11764 for p in `eval $output_verbose_link_cmd`; do 11765 case $p in 11766 11767 -L* | -R* | -l*) 11768 # Some compilers place space between "-{L,R}" and the path. 11769 # Remove the space. 11770 if test $p = "-L" \ 11771 || test $p = "-R"; then 11772 prev=$p 11773 continue 11774 else 11775 prev= 11776 fi 11777 11778 if test "$pre_test_object_deps_done" = no; then 11779 case $p in 11780 -L* | -R*) 11781 # Internal compiler library paths should come after those 11782 # provided the user. The postdeps already come after the 11783 # user supplied libs so there is no need to process them. 11784 if test -z "$compiler_lib_search_path_CXX"; then 11785 compiler_lib_search_path_CXX="${prev}${p}" 11786 else 11787 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11788 fi 11789 ;; 11790 # The "-l" case would never come before the object being 11791 # linked, so don't bother handling this case. 11792 esac 11793 else 11794 if test -z "$postdeps_CXX"; then 11795 postdeps_CXX="${prev}${p}" 11796 else 11797 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11798 fi 11799 fi 11800 ;; 11801 11802 *.$objext) 11803 # This assumes that the test object file only shows up 11804 # once in the compiler output. 11805 if test "$p" = "conftest.$objext"; then 11806 pre_test_object_deps_done=yes 11807 continue 11808 fi 11809 11810 if test "$pre_test_object_deps_done" = no; then 11811 if test -z "$predep_objects_CXX"; then 11812 predep_objects_CXX="$p" 11813 else 11814 predep_objects_CXX="$predep_objects_CXX $p" 11815 fi 11816 else 11817 if test -z "$postdep_objects_CXX"; then 11818 postdep_objects_CXX="$p" 11819 else 11820 postdep_objects_CXX="$postdep_objects_CXX $p" 11821 fi 11822 fi 11823 ;; 11824 11825 *) ;; # Ignore the rest. 11826 11827 esac 11828 done 11829 11830 # Clean up. 11831 rm -f a.out a.exe 11832else 11833 echo "libtool.m4: error: problem compiling CXX test program" 11834fi 11835 11836$rm -f confest.$objext 11837 11838# PORTME: override above test on systems where it is broken 11839case $host_os in 11840interix3*) 11841 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11842 # hack all around it, let's just trust "g++" to DTRT. 11843 predep_objects_CXX= 11844 postdep_objects_CXX= 11845 postdeps_CXX= 11846 ;; 11847 11848solaris*) 11849 case $cc_basename in 11850 CC*) 11851 # Adding this requires a known-good setup of shared libraries for 11852 # Sun compiler versions before 5.6, else PIC objects from an old 11853 # archive will be linked into the output, leading to subtle bugs. 11854 postdeps_CXX='-lCstd -lCrun' 11855 ;; 11856 esac 11857 ;; 11858esac 11859 11860 11861case " $postdeps_CXX " in 11862*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11863esac 11864 11865lt_prog_compiler_wl_CXX= 11866lt_prog_compiler_pic_CXX= 11867lt_prog_compiler_static_CXX= 11868 11869{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11870echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11871 11872 # C++ specific cases for pic, static, wl, etc. 11873 if test "$GXX" = yes; then 11874 lt_prog_compiler_wl_CXX='-Wl,' 11875 lt_prog_compiler_static_CXX='-static' 11876 11877 case $host_os in 11878 aix*) 11879 # All AIX code is PIC. 11880 if test "$host_cpu" = ia64; then 11881 # AIX 5 now supports IA64 processor 11882 lt_prog_compiler_static_CXX='-Bstatic' 11883 fi 11884 ;; 11885 amigaos*) 11886 # FIXME: we need at least 68020 code to build shared libraries, but 11887 # adding the `-m68020' flag to GCC prevents building anything better, 11888 # like `-m68040'. 11889 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11890 ;; 11891 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11892 # PIC is the default for these OSes. 11893 ;; 11894 mingw* | os2* | pw32*) 11895 # This hack is so that the source file can tell whether it is being 11896 # built for inclusion in a dll (and should export symbols for example). 11897 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11898 ;; 11899 darwin* | rhapsody*) 11900 # PIC is the default on this platform 11901 # Common symbols not allowed in MH_DYLIB files 11902 lt_prog_compiler_pic_CXX='-fno-common' 11903 ;; 11904 *djgpp*) 11905 # DJGPP does not support shared libraries at all 11906 lt_prog_compiler_pic_CXX= 11907 ;; 11908 interix3*) 11909 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11910 # Instead, we relocate shared libraries at runtime. 11911 ;; 11912 sysv4*MP*) 11913 if test -d /usr/nec; then 11914 lt_prog_compiler_pic_CXX=-Kconform_pic 11915 fi 11916 ;; 11917 hpux*) 11918 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11919 # not for PA HP-UX. 11920 case $host_cpu in 11921 hppa*64*|ia64*) 11922 ;; 11923 *) 11924 lt_prog_compiler_pic_CXX='-fPIC' 11925 ;; 11926 esac 11927 ;; 11928 *) 11929 lt_prog_compiler_pic_CXX='-fPIC' 11930 ;; 11931 esac 11932 else 11933 case $host_os in 11934 aix4* | aix5*) 11935 # All AIX code is PIC. 11936 if test "$host_cpu" = ia64; then 11937 # AIX 5 now supports IA64 processor 11938 lt_prog_compiler_static_CXX='-Bstatic' 11939 else 11940 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11941 fi 11942 ;; 11943 chorus*) 11944 case $cc_basename in 11945 cxch68*) 11946 # Green Hills C++ Compiler 11947 # _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" 11948 ;; 11949 esac 11950 ;; 11951 darwin*) 11952 # PIC is the default on this platform 11953 # Common symbols not allowed in MH_DYLIB files 11954 case $cc_basename in 11955 xlc*) 11956 lt_prog_compiler_pic_CXX='-qnocommon' 11957 lt_prog_compiler_wl_CXX='-Wl,' 11958 ;; 11959 esac 11960 ;; 11961 dgux*) 11962 case $cc_basename in 11963 ec++*) 11964 lt_prog_compiler_pic_CXX='-KPIC' 11965 ;; 11966 ghcx*) 11967 # Green Hills C++ Compiler 11968 lt_prog_compiler_pic_CXX='-pic' 11969 ;; 11970 *) 11971 ;; 11972 esac 11973 ;; 11974 freebsd* | kfreebsd*-gnu | dragonfly*) 11975 # FreeBSD uses GNU C++ 11976 ;; 11977 hpux9* | hpux10* | hpux11*) 11978 case $cc_basename in 11979 CC*) 11980 lt_prog_compiler_wl_CXX='-Wl,' 11981 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11982 if test "$host_cpu" != ia64; then 11983 lt_prog_compiler_pic_CXX='+Z' 11984 fi 11985 ;; 11986 aCC*) 11987 lt_prog_compiler_wl_CXX='-Wl,' 11988 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11989 case $host_cpu in 11990 hppa*64*|ia64*) 11991 # +Z the default 11992 ;; 11993 *) 11994 lt_prog_compiler_pic_CXX='+Z' 11995 ;; 11996 esac 11997 ;; 11998 *) 11999 ;; 12000 esac 12001 ;; 12002 interix*) 12003 # This is c89, which is MS Visual C++ (no shared libs) 12004 # Anyone wants to do a port? 12005 ;; 12006 irix5* | irix6* | nonstopux*) 12007 case $cc_basename in 12008 CC*) 12009 lt_prog_compiler_wl_CXX='-Wl,' 12010 lt_prog_compiler_static_CXX='-non_shared' 12011 # CC pic flag -KPIC is the default. 12012 ;; 12013 *) 12014 ;; 12015 esac 12016 ;; 12017 linux*) 12018 case $cc_basename in 12019 KCC*) 12020 # KAI C++ Compiler 12021 lt_prog_compiler_wl_CXX='--backend -Wl,' 12022 lt_prog_compiler_pic_CXX='-fPIC' 12023 ;; 12024 icpc* | ecpc*) 12025 # Intel C++ 12026 lt_prog_compiler_wl_CXX='-Wl,' 12027 lt_prog_compiler_pic_CXX='-KPIC' 12028 lt_prog_compiler_static_CXX='-static' 12029 ;; 12030 pgCC*) 12031 # Portland Group C++ compiler. 12032 lt_prog_compiler_wl_CXX='-Wl,' 12033 lt_prog_compiler_pic_CXX='-fpic' 12034 lt_prog_compiler_static_CXX='-Bstatic' 12035 ;; 12036 cxx*) 12037 # Compaq C++ 12038 # Make sure the PIC flag is empty. It appears that all Alpha 12039 # Linux and Compaq Tru64 Unix objects are PIC. 12040 lt_prog_compiler_pic_CXX= 12041 lt_prog_compiler_static_CXX='-non_shared' 12042 ;; 12043 *) 12044 ;; 12045 esac 12046 ;; 12047 lynxos*) 12048 ;; 12049 m88k*) 12050 ;; 12051 mvs*) 12052 case $cc_basename in 12053 cxx*) 12054 lt_prog_compiler_pic_CXX='-W c,exportall' 12055 ;; 12056 *) 12057 ;; 12058 esac 12059 ;; 12060 netbsd*) 12061 ;; 12062 osf3* | osf4* | osf5*) 12063 case $cc_basename in 12064 KCC*) 12065 lt_prog_compiler_wl_CXX='--backend -Wl,' 12066 ;; 12067 RCC*) 12068 # Rational C++ 2.4.1 12069 lt_prog_compiler_pic_CXX='-pic' 12070 ;; 12071 cxx*) 12072 # Digital/Compaq C++ 12073 lt_prog_compiler_wl_CXX='-Wl,' 12074 # Make sure the PIC flag is empty. It appears that all Alpha 12075 # Linux and Compaq Tru64 Unix objects are PIC. 12076 lt_prog_compiler_pic_CXX= 12077 lt_prog_compiler_static_CXX='-non_shared' 12078 ;; 12079 *) 12080 ;; 12081 esac 12082 ;; 12083 psos*) 12084 ;; 12085 solaris*) 12086 case $cc_basename in 12087 CC*) 12088 # Sun C++ 4.2, 5.x and Centerline C++ 12089 lt_prog_compiler_pic_CXX='-KPIC' 12090 lt_prog_compiler_static_CXX='-Bstatic' 12091 lt_prog_compiler_wl_CXX='-Qoption ld ' 12092 ;; 12093 gcx*) 12094 # Green Hills C++ Compiler 12095 lt_prog_compiler_pic_CXX='-PIC' 12096 ;; 12097 *) 12098 ;; 12099 esac 12100 ;; 12101 sunos4*) 12102 case $cc_basename in 12103 CC*) 12104 # Sun C++ 4.x 12105 lt_prog_compiler_pic_CXX='-pic' 12106 lt_prog_compiler_static_CXX='-Bstatic' 12107 ;; 12108 lcc*) 12109 # Lucid 12110 lt_prog_compiler_pic_CXX='-pic' 12111 ;; 12112 *) 12113 ;; 12114 esac 12115 ;; 12116 tandem*) 12117 case $cc_basename in 12118 NCC*) 12119 # NonStop-UX NCC 3.20 12120 lt_prog_compiler_pic_CXX='-KPIC' 12121 ;; 12122 *) 12123 ;; 12124 esac 12125 ;; 12126 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12127 case $cc_basename in 12128 CC*) 12129 lt_prog_compiler_wl_CXX='-Wl,' 12130 lt_prog_compiler_pic_CXX='-KPIC' 12131 lt_prog_compiler_static_CXX='-Bstatic' 12132 ;; 12133 esac 12134 ;; 12135 vxworks*) 12136 ;; 12137 *) 12138 lt_prog_compiler_can_build_shared_CXX=no 12139 ;; 12140 esac 12141 fi 12142 12143{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12144echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12145 12146# 12147# Check to make sure the PIC flag actually works. 12148# 12149if test -n "$lt_prog_compiler_pic_CXX"; then 12150 12151{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12152echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12153if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12154 echo $ECHO_N "(cached) $ECHO_C" >&6 12155else 12156 lt_prog_compiler_pic_works_CXX=no 12157 ac_outfile=conftest.$ac_objext 12158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12159 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12160 # Insert the option either (1) after the last *FLAGS variable, or 12161 # (2) before a word containing "conftest.", or (3) at the end. 12162 # Note that $ac_compile itself does not contain backslashes and begins 12163 # with a dollar sign (not a hyphen), so the echo should work correctly. 12164 # The option is referenced via a variable to avoid confusing sed. 12165 lt_compile=`echo "$ac_compile" | $SED \ 12166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12168 -e 's:$: $lt_compiler_flag:'` 12169 (eval echo "\"\$as_me:12169: $lt_compile\"" >&5) 12170 (eval "$lt_compile" 2>conftest.err) 12171 ac_status=$? 12172 cat conftest.err >&5 12173 echo "$as_me:12173: \$? = $ac_status" >&5 12174 if (exit $ac_status) && test -s "$ac_outfile"; then 12175 # The compiler can only warn and ignore the option if not recognized 12176 # So say no if there are warnings other than the usual output. 12177 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12180 lt_prog_compiler_pic_works_CXX=yes 12181 fi 12182 fi 12183 $rm conftest* 12184 12185fi 12186{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12187echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12188 12189if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12190 case $lt_prog_compiler_pic_CXX in 12191 "" | " "*) ;; 12192 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12193 esac 12194else 12195 lt_prog_compiler_pic_CXX= 12196 lt_prog_compiler_can_build_shared_CXX=no 12197fi 12198 12199fi 12200case $host_os in 12201 # For platforms which do not support PIC, -DPIC is meaningless: 12202 *djgpp*) 12203 lt_prog_compiler_pic_CXX= 12204 ;; 12205 *) 12206 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12207 ;; 12208esac 12209 12210# 12211# Check to make sure the static flag actually works. 12212# 12213wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12214{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12215echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12216if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12217 echo $ECHO_N "(cached) $ECHO_C" >&6 12218else 12219 lt_prog_compiler_static_works_CXX=no 12220 save_LDFLAGS="$LDFLAGS" 12221 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12222 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12224 # The linker can only warn and ignore the option if not recognized 12225 # So say no if there are warnings 12226 if test -s conftest.err; then 12227 # Append any errors to the config.log. 12228 cat conftest.err 1>&5 12229 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12231 if diff conftest.exp conftest.er2 >/dev/null; then 12232 lt_prog_compiler_static_works_CXX=yes 12233 fi 12234 else 12235 lt_prog_compiler_static_works_CXX=yes 12236 fi 12237 fi 12238 $rm conftest* 12239 LDFLAGS="$save_LDFLAGS" 12240 12241fi 12242{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12243echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12244 12245if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12246 : 12247else 12248 lt_prog_compiler_static_CXX= 12249fi 12250 12251 12252{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12253echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12254if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12255 echo $ECHO_N "(cached) $ECHO_C" >&6 12256else 12257 lt_cv_prog_compiler_c_o_CXX=no 12258 $rm -r conftest 2>/dev/null 12259 mkdir conftest 12260 cd conftest 12261 mkdir out 12262 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12263 12264 lt_compiler_flag="-o out/conftest2.$ac_objext" 12265 # Insert the option either (1) after the last *FLAGS variable, or 12266 # (2) before a word containing "conftest.", or (3) at the end. 12267 # Note that $ac_compile itself does not contain backslashes and begins 12268 # with a dollar sign (not a hyphen), so the echo should work correctly. 12269 lt_compile=`echo "$ac_compile" | $SED \ 12270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12272 -e 's:$: $lt_compiler_flag:'` 12273 (eval echo "\"\$as_me:12273: $lt_compile\"" >&5) 12274 (eval "$lt_compile" 2>out/conftest.err) 12275 ac_status=$? 12276 cat out/conftest.err >&5 12277 echo "$as_me:12277: \$? = $ac_status" >&5 12278 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12279 then 12280 # The compiler can only warn and ignore the option if not recognized 12281 # So say no if there are warnings 12282 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12283 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12284 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12285 lt_cv_prog_compiler_c_o_CXX=yes 12286 fi 12287 fi 12288 chmod u+w . 2>&5 12289 $rm conftest* 12290 # SGI C++ compiler will create directory out/ii_files/ for 12291 # template instantiation 12292 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12293 $rm out/* && rmdir out 12294 cd .. 12295 rmdir conftest 12296 $rm conftest* 12297 12298fi 12299{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12300echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12301 12302 12303hard_links="nottested" 12304if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12305 # do not overwrite the value of need_locks provided by the user 12306 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12307echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12308 hard_links=yes 12309 $rm conftest* 12310 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12311 touch conftest.a 12312 ln conftest.a conftest.b 2>&5 || hard_links=no 12313 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12314 { echo "$as_me:$LINENO: result: $hard_links" >&5 12315echo "${ECHO_T}$hard_links" >&6; } 12316 if test "$hard_links" = no; then 12317 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12318echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12319 need_locks=warn 12320 fi 12321else 12322 need_locks=no 12323fi 12324 12325{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12326echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12327 12328 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12329 case $host_os in 12330 aix4* | aix5*) 12331 # If we're using GNU nm, then we don't want the "-C" option. 12332 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12333 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12334 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' 12335 else 12336 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' 12337 fi 12338 ;; 12339 pw32*) 12340 export_symbols_cmds_CXX="$ltdll_cmds" 12341 ;; 12342 cygwin* | mingw*) 12343 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' 12344 ;; 12345 *) 12346 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12347 ;; 12348 esac 12349 12350{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12351echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12352test "$ld_shlibs_CXX" = no && can_build_shared=no 12353 12354# 12355# Do we need to explicitly link libc? 12356# 12357case "x$archive_cmds_need_lc_CXX" in 12358x|xyes) 12359 # Assume -lc should be added 12360 archive_cmds_need_lc_CXX=yes 12361 12362 if test "$enable_shared" = yes && test "$GCC" = yes; then 12363 case $archive_cmds_CXX in 12364 *'~'*) 12365 # FIXME: we may have to deal with multi-command sequences. 12366 ;; 12367 '$CC '*) 12368 # Test whether the compiler implicitly links with -lc since on some 12369 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12370 # to ld, don't add -lc before -lgcc. 12371 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12372echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12373 $rm conftest* 12374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12375 12376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12377 (eval $ac_compile) 2>&5 12378 ac_status=$? 12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12380 (exit $ac_status); } 2>conftest.err; then 12381 soname=conftest 12382 lib=conftest 12383 libobjs=conftest.$ac_objext 12384 deplibs= 12385 wl=$lt_prog_compiler_wl_CXX 12386 pic_flag=$lt_prog_compiler_pic_CXX 12387 compiler_flags=-v 12388 linker_flags=-v 12389 verstring= 12390 output_objdir=. 12391 libname=conftest 12392 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12393 allow_undefined_flag_CXX= 12394 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12395 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12396 ac_status=$? 12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12398 (exit $ac_status); } 12399 then 12400 archive_cmds_need_lc_CXX=no 12401 else 12402 archive_cmds_need_lc_CXX=yes 12403 fi 12404 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12405 else 12406 cat conftest.err 1>&5 12407 fi 12408 $rm conftest* 12409 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12410echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12411 ;; 12412 esac 12413 fi 12414 ;; 12415esac 12416 12417{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12418echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12419library_names_spec= 12420libname_spec='lib$name' 12421soname_spec= 12422shrext_cmds=".so" 12423postinstall_cmds= 12424postuninstall_cmds= 12425finish_cmds= 12426finish_eval= 12427shlibpath_var= 12428shlibpath_overrides_runpath=unknown 12429version_type=none 12430dynamic_linker="$host_os ld.so" 12431sys_lib_dlsearch_path_spec="/lib /usr/lib" 12432if test "$GCC" = yes; then 12433 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12434 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12435 # if the path contains ";" then we assume it to be the separator 12436 # otherwise default to the standard path separator (i.e. ":") - it is 12437 # assumed that no part of a normal pathname contains ";" but that should 12438 # okay in the real world where ";" in dirpaths is itself problematic. 12439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12440 else 12441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12442 fi 12443else 12444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12445fi 12446need_lib_prefix=unknown 12447hardcode_into_libs=no 12448 12449# when you set need_version to no, make sure it does not cause -set_version 12450# flags to be left without arguments 12451need_version=unknown 12452 12453case $host_os in 12454aix3*) 12455 version_type=linux 12456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12457 shlibpath_var=LIBPATH 12458 12459 # AIX 3 has no versioning support, so we append a major version to the name. 12460 soname_spec='${libname}${release}${shared_ext}$major' 12461 ;; 12462 12463aix4* | aix5*) 12464 version_type=linux 12465 need_lib_prefix=no 12466 need_version=no 12467 hardcode_into_libs=yes 12468 if test "$host_cpu" = ia64; then 12469 # AIX 5 supports IA64 12470 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12471 shlibpath_var=LD_LIBRARY_PATH 12472 else 12473 # With GCC up to 2.95.x, collect2 would create an import file 12474 # for dependence libraries. The import file would start with 12475 # the line `#! .'. This would cause the generated library to 12476 # depend on `.', always an invalid library. This was fixed in 12477 # development snapshots of GCC prior to 3.0. 12478 case $host_os in 12479 aix4 | aix4.[01] | aix4.[01].*) 12480 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12481 echo ' yes ' 12482 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12483 : 12484 else 12485 can_build_shared=no 12486 fi 12487 ;; 12488 esac 12489 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12490 # soname into executable. Probably we can add versioning support to 12491 # collect2, so additional links can be useful in future. 12492 if test "$aix_use_runtimelinking" = yes; then 12493 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12494 # instead of lib<name>.a to let people know that these are not 12495 # typical AIX shared libraries. 12496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12497 else 12498 # We preserve .a as extension for shared libraries through AIX4.2 12499 # and later when we are not doing run time linking. 12500 library_names_spec='${libname}${release}.a $libname.a' 12501 soname_spec='${libname}${release}${shared_ext}$major' 12502 fi 12503 shlibpath_var=LIBPATH 12504 fi 12505 ;; 12506 12507amigaos*) 12508 library_names_spec='$libname.ixlibrary $libname.a' 12509 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12510 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' 12511 ;; 12512 12513beos*) 12514 library_names_spec='${libname}${shared_ext}' 12515 dynamic_linker="$host_os ld.so" 12516 shlibpath_var=LIBRARY_PATH 12517 ;; 12518 12519bsdi[45]*) 12520 version_type=linux 12521 need_version=no 12522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12523 soname_spec='${libname}${release}${shared_ext}$major' 12524 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12525 shlibpath_var=LD_LIBRARY_PATH 12526 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12527 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12528 # the default ld.so.conf also contains /usr/contrib/lib and 12529 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12530 # libtool to hard-code these into programs 12531 ;; 12532 12533cygwin* | mingw* | pw32*) 12534 version_type=windows 12535 shrext_cmds=".dll" 12536 need_version=no 12537 need_lib_prefix=no 12538 12539 case $GCC,$host_os in 12540 yes,cygwin* | yes,mingw* | yes,pw32*) 12541 library_names_spec='$libname.dll.a' 12542 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12543 postinstall_cmds='base_file=`basename \${file}`~ 12544 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12545 dldir=$destdir/`dirname \$dlpath`~ 12546 test -d \$dldir || mkdir -p \$dldir~ 12547 $install_prog $dir/$dlname \$dldir/$dlname~ 12548 chmod a+x \$dldir/$dlname' 12549 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12550 dlpath=$dir/\$dldll~ 12551 $rm \$dlpath' 12552 shlibpath_overrides_runpath=yes 12553 12554 case $host_os in 12555 cygwin*) 12556 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12557 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12558 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12559 ;; 12560 mingw*) 12561 # MinGW DLLs use traditional 'lib' prefix 12562 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12563 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12564 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12565 # It is most probably a Windows format PATH printed by 12566 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12567 # path with ; separators, and with drive letters. We can handle the 12568 # drive letters (cygwin fileutils understands them), so leave them, 12569 # especially as we might pass files found there to a mingw objdump, 12570 # which wouldn't understand a cygwinified path. Ahh. 12571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12572 else 12573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12574 fi 12575 ;; 12576 pw32*) 12577 # pw32 DLLs use 'pw' prefix rather than 'lib' 12578 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12579 ;; 12580 esac 12581 ;; 12582 12583 *) 12584 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12585 ;; 12586 esac 12587 dynamic_linker='Win32 ld.exe' 12588 # FIXME: first we should search . and the directory the executable is in 12589 shlibpath_var=PATH 12590 ;; 12591 12592darwin* | rhapsody*) 12593 dynamic_linker="$host_os dyld" 12594 version_type=darwin 12595 need_lib_prefix=no 12596 need_version=no 12597 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12598 soname_spec='${libname}${release}${major}$shared_ext' 12599 shlibpath_overrides_runpath=yes 12600 shlibpath_var=DYLD_LIBRARY_PATH 12601 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12602 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12603 if test "$GCC" = yes; then 12604 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"` 12605 else 12606 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12607 fi 12608 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12609 ;; 12610 12611dgux*) 12612 version_type=linux 12613 need_lib_prefix=no 12614 need_version=no 12615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12616 soname_spec='${libname}${release}${shared_ext}$major' 12617 shlibpath_var=LD_LIBRARY_PATH 12618 ;; 12619 12620freebsd1*) 12621 dynamic_linker=no 12622 ;; 12623 12624kfreebsd*-gnu) 12625 version_type=linux 12626 need_lib_prefix=no 12627 need_version=no 12628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12629 soname_spec='${libname}${release}${shared_ext}$major' 12630 shlibpath_var=LD_LIBRARY_PATH 12631 shlibpath_overrides_runpath=no 12632 hardcode_into_libs=yes 12633 dynamic_linker='GNU ld.so' 12634 ;; 12635 12636freebsd* | dragonfly*) 12637 # DragonFly does not have aout. When/if they implement a new 12638 # versioning mechanism, adjust this. 12639 if test -x /usr/bin/objformat; then 12640 objformat=`/usr/bin/objformat` 12641 else 12642 case $host_os in 12643 freebsd[123]*) objformat=aout ;; 12644 *) objformat=elf ;; 12645 esac 12646 fi 12647 version_type=freebsd-$objformat 12648 case $version_type in 12649 freebsd-elf*) 12650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12651 need_version=no 12652 need_lib_prefix=no 12653 ;; 12654 freebsd-*) 12655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12656 need_version=yes 12657 ;; 12658 esac 12659 shlibpath_var=LD_LIBRARY_PATH 12660 case $host_os in 12661 freebsd2*) 12662 shlibpath_overrides_runpath=yes 12663 ;; 12664 freebsd3.[01]* | freebsdelf3.[01]*) 12665 shlibpath_overrides_runpath=yes 12666 hardcode_into_libs=yes 12667 ;; 12668 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12669 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12670 shlibpath_overrides_runpath=no 12671 hardcode_into_libs=yes 12672 ;; 12673 freebsd*) # from 4.6 on 12674 shlibpath_overrides_runpath=yes 12675 hardcode_into_libs=yes 12676 ;; 12677 esac 12678 ;; 12679 12680gnu*) 12681 version_type=linux 12682 need_lib_prefix=no 12683 need_version=no 12684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12685 soname_spec='${libname}${release}${shared_ext}$major' 12686 shlibpath_var=LD_LIBRARY_PATH 12687 hardcode_into_libs=yes 12688 ;; 12689 12690hpux9* | hpux10* | hpux11*) 12691 # Give a soname corresponding to the major version so that dld.sl refuses to 12692 # link against other versions. 12693 version_type=sunos 12694 need_lib_prefix=no 12695 need_version=no 12696 case $host_cpu in 12697 ia64*) 12698 shrext_cmds='.so' 12699 hardcode_into_libs=yes 12700 dynamic_linker="$host_os dld.so" 12701 shlibpath_var=LD_LIBRARY_PATH 12702 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12704 soname_spec='${libname}${release}${shared_ext}$major' 12705 if test "X$HPUX_IA64_MODE" = X32; then 12706 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12707 else 12708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12709 fi 12710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12711 ;; 12712 hppa*64*) 12713 shrext_cmds='.sl' 12714 hardcode_into_libs=yes 12715 dynamic_linker="$host_os dld.sl" 12716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12719 soname_spec='${libname}${release}${shared_ext}$major' 12720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12722 ;; 12723 *) 12724 shrext_cmds='.sl' 12725 dynamic_linker="$host_os dld.sl" 12726 shlibpath_var=SHLIB_PATH 12727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12729 soname_spec='${libname}${release}${shared_ext}$major' 12730 ;; 12731 esac 12732 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12733 postinstall_cmds='chmod 555 $lib' 12734 ;; 12735 12736interix3*) 12737 version_type=linux 12738 need_lib_prefix=no 12739 need_version=no 12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12741 soname_spec='${libname}${release}${shared_ext}$major' 12742 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12743 shlibpath_var=LD_LIBRARY_PATH 12744 shlibpath_overrides_runpath=no 12745 hardcode_into_libs=yes 12746 ;; 12747 12748irix5* | irix6* | nonstopux*) 12749 case $host_os in 12750 nonstopux*) version_type=nonstopux ;; 12751 *) 12752 if test "$lt_cv_prog_gnu_ld" = yes; then 12753 version_type=linux 12754 else 12755 version_type=irix 12756 fi ;; 12757 esac 12758 need_lib_prefix=no 12759 need_version=no 12760 soname_spec='${libname}${release}${shared_ext}$major' 12761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12762 case $host_os in 12763 irix5* | nonstopux*) 12764 libsuff= shlibsuff= 12765 ;; 12766 *) 12767 case $LD in # libtool.m4 will add one of these switches to LD 12768 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12769 libsuff= shlibsuff= libmagic=32-bit;; 12770 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12771 libsuff=32 shlibsuff=N32 libmagic=N32;; 12772 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12773 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12774 *) libsuff= shlibsuff= libmagic=never-match;; 12775 esac 12776 ;; 12777 esac 12778 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12779 shlibpath_overrides_runpath=no 12780 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12781 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12782 hardcode_into_libs=yes 12783 ;; 12784 12785# No shared lib support for Linux oldld, aout, or coff. 12786linux*oldld* | linux*aout* | linux*coff*) 12787 dynamic_linker=no 12788 ;; 12789 12790# This must be Linux ELF. 12791linux*) 12792 version_type=linux 12793 need_lib_prefix=no 12794 need_version=no 12795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12796 soname_spec='${libname}${release}${shared_ext}$major' 12797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12798 shlibpath_var=LD_LIBRARY_PATH 12799 shlibpath_overrides_runpath=no 12800 # This implies no fast_install, which is unacceptable. 12801 # Some rework will be needed to allow for fast_install 12802 # before this can be enabled. 12803 hardcode_into_libs=yes 12804 12805 # Append ld.so.conf contents to the search path 12806 if test -f /etc/ld.so.conf; then 12807 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' ' '` 12808 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12809 fi 12810 12811 # We used to test for /lib/ld.so.1 and disable shared libraries on 12812 # powerpc, because MkLinux only supported shared libraries with the 12813 # GNU dynamic linker. Since this was broken with cross compilers, 12814 # most powerpc-linux boxes support dynamic linking these days and 12815 # people can always --disable-shared, the test was removed, and we 12816 # assume the GNU/Linux dynamic linker is in use. 12817 dynamic_linker='GNU/Linux ld.so' 12818 ;; 12819 12820knetbsd*-gnu) 12821 version_type=linux 12822 need_lib_prefix=no 12823 need_version=no 12824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12825 soname_spec='${libname}${release}${shared_ext}$major' 12826 shlibpath_var=LD_LIBRARY_PATH 12827 shlibpath_overrides_runpath=no 12828 hardcode_into_libs=yes 12829 dynamic_linker='GNU ld.so' 12830 ;; 12831 12832netbsd*) 12833 version_type=sunos 12834 need_lib_prefix=no 12835 need_version=no 12836 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12839 dynamic_linker='NetBSD (a.out) ld.so' 12840 else 12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12842 soname_spec='${libname}${release}${shared_ext}$major' 12843 dynamic_linker='NetBSD ld.elf_so' 12844 fi 12845 shlibpath_var=LD_LIBRARY_PATH 12846 shlibpath_overrides_runpath=yes 12847 hardcode_into_libs=yes 12848 ;; 12849 12850newsos6) 12851 version_type=linux 12852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12853 shlibpath_var=LD_LIBRARY_PATH 12854 shlibpath_overrides_runpath=yes 12855 ;; 12856 12857nto-qnx*) 12858 version_type=linux 12859 need_lib_prefix=no 12860 need_version=no 12861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12862 soname_spec='${libname}${release}${shared_ext}$major' 12863 shlibpath_var=LD_LIBRARY_PATH 12864 shlibpath_overrides_runpath=yes 12865 ;; 12866 12867openbsd*) 12868 version_type=sunos 12869 sys_lib_dlsearch_path_spec="/usr/lib" 12870 need_lib_prefix=no 12871 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12872 case $host_os in 12873 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12874 *) need_version=no ;; 12875 esac 12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12878 shlibpath_var=LD_LIBRARY_PATH 12879 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12880 case $host_os in 12881 openbsd2.[89] | openbsd2.[89].*) 12882 shlibpath_overrides_runpath=no 12883 ;; 12884 *) 12885 shlibpath_overrides_runpath=yes 12886 ;; 12887 esac 12888 else 12889 shlibpath_overrides_runpath=yes 12890 fi 12891 ;; 12892 12893os2*) 12894 libname_spec='$name' 12895 shrext_cmds=".dll" 12896 need_lib_prefix=no 12897 library_names_spec='$libname${shared_ext} $libname.a' 12898 dynamic_linker='OS/2 ld.exe' 12899 shlibpath_var=LIBPATH 12900 ;; 12901 12902osf3* | osf4* | osf5*) 12903 version_type=osf 12904 need_lib_prefix=no 12905 need_version=no 12906 soname_spec='${libname}${release}${shared_ext}$major' 12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12908 shlibpath_var=LD_LIBRARY_PATH 12909 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12910 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12911 ;; 12912 12913solaris*) 12914 version_type=linux 12915 need_lib_prefix=no 12916 need_version=no 12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12918 soname_spec='${libname}${release}${shared_ext}$major' 12919 shlibpath_var=LD_LIBRARY_PATH 12920 shlibpath_overrides_runpath=yes 12921 hardcode_into_libs=yes 12922 # ldd complains unless libraries are executable 12923 postinstall_cmds='chmod +x $lib' 12924 ;; 12925 12926sunos4*) 12927 version_type=sunos 12928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12929 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12930 shlibpath_var=LD_LIBRARY_PATH 12931 shlibpath_overrides_runpath=yes 12932 if test "$with_gnu_ld" = yes; then 12933 need_lib_prefix=no 12934 fi 12935 need_version=yes 12936 ;; 12937 12938sysv4 | sysv4.3*) 12939 version_type=linux 12940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12941 soname_spec='${libname}${release}${shared_ext}$major' 12942 shlibpath_var=LD_LIBRARY_PATH 12943 case $host_vendor in 12944 sni) 12945 shlibpath_overrides_runpath=no 12946 need_lib_prefix=no 12947 export_dynamic_flag_spec='${wl}-Blargedynsym' 12948 runpath_var=LD_RUN_PATH 12949 ;; 12950 siemens) 12951 need_lib_prefix=no 12952 ;; 12953 motorola) 12954 need_lib_prefix=no 12955 need_version=no 12956 shlibpath_overrides_runpath=no 12957 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12958 ;; 12959 esac 12960 ;; 12961 12962sysv4*MP*) 12963 if test -d /usr/nec ;then 12964 version_type=linux 12965 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12966 soname_spec='$libname${shared_ext}.$major' 12967 shlibpath_var=LD_LIBRARY_PATH 12968 fi 12969 ;; 12970 12971sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12972 version_type=freebsd-elf 12973 need_lib_prefix=no 12974 need_version=no 12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12976 soname_spec='${libname}${release}${shared_ext}$major' 12977 shlibpath_var=LD_LIBRARY_PATH 12978 hardcode_into_libs=yes 12979 if test "$with_gnu_ld" = yes; then 12980 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12981 shlibpath_overrides_runpath=no 12982 else 12983 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12984 shlibpath_overrides_runpath=yes 12985 case $host_os in 12986 sco3.2v5*) 12987 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12988 ;; 12989 esac 12990 fi 12991 sys_lib_dlsearch_path_spec='/usr/lib' 12992 ;; 12993 12994uts4*) 12995 version_type=linux 12996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12997 soname_spec='${libname}${release}${shared_ext}$major' 12998 shlibpath_var=LD_LIBRARY_PATH 12999 ;; 13000 13001*) 13002 dynamic_linker=no 13003 ;; 13004esac 13005{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13006echo "${ECHO_T}$dynamic_linker" >&6; } 13007test "$dynamic_linker" = no && can_build_shared=no 13008 13009variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13010if test "$GCC" = yes; then 13011 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13012fi 13013 13014{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13015echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13016hardcode_action_CXX= 13017if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13018 test -n "$runpath_var_CXX" || \ 13019 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13020 13021 # We can hardcode non-existant directories. 13022 if test "$hardcode_direct_CXX" != no && 13023 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13024 # have to relink, otherwise we might link with an installed library 13025 # when we should be linking with a yet-to-be-installed one 13026 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13027 test "$hardcode_minus_L_CXX" != no; then 13028 # Linking always hardcodes the temporary library directory. 13029 hardcode_action_CXX=relink 13030 else 13031 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13032 hardcode_action_CXX=immediate 13033 fi 13034else 13035 # We cannot hardcode anything, or else we can only hardcode existing 13036 # directories. 13037 hardcode_action_CXX=unsupported 13038fi 13039{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13040echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13041 13042if test "$hardcode_action_CXX" = relink; then 13043 # Fast installation is not supported 13044 enable_fast_install=no 13045elif test "$shlibpath_overrides_runpath" = yes || 13046 test "$enable_shared" = no; then 13047 # Fast installation is not necessary 13048 enable_fast_install=needless 13049fi 13050 13051 13052# The else clause should only fire when bootstrapping the 13053# libtool distribution, otherwise you forgot to ship ltmain.sh 13054# with your package, and you will get complaints that there are 13055# no rules to generate ltmain.sh. 13056if test -f "$ltmain"; then 13057 # See if we are running on zsh, and set the options which allow our commands through 13058 # without removal of \ escapes. 13059 if test -n "${ZSH_VERSION+set}" ; then 13060 setopt NO_GLOB_SUBST 13061 fi 13062 # Now quote all the things that may contain metacharacters while being 13063 # careful not to overquote the AC_SUBSTed values. We take copies of the 13064 # variables and quote the copies for generation of the libtool script. 13065 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13066 SED SHELL STRIP \ 13067 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13068 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13069 deplibs_check_method reload_flag reload_cmds need_locks \ 13070 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13071 lt_cv_sys_global_symbol_to_c_name_address \ 13072 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13073 old_postinstall_cmds old_postuninstall_cmds \ 13074 compiler_CXX \ 13075 CC_CXX \ 13076 LD_CXX \ 13077 lt_prog_compiler_wl_CXX \ 13078 lt_prog_compiler_pic_CXX \ 13079 lt_prog_compiler_static_CXX \ 13080 lt_prog_compiler_no_builtin_flag_CXX \ 13081 export_dynamic_flag_spec_CXX \ 13082 thread_safe_flag_spec_CXX \ 13083 whole_archive_flag_spec_CXX \ 13084 enable_shared_with_static_runtimes_CXX \ 13085 old_archive_cmds_CXX \ 13086 old_archive_from_new_cmds_CXX \ 13087 predep_objects_CXX \ 13088 postdep_objects_CXX \ 13089 predeps_CXX \ 13090 postdeps_CXX \ 13091 compiler_lib_search_path_CXX \ 13092 archive_cmds_CXX \ 13093 archive_expsym_cmds_CXX \ 13094 postinstall_cmds_CXX \ 13095 postuninstall_cmds_CXX \ 13096 old_archive_from_expsyms_cmds_CXX \ 13097 allow_undefined_flag_CXX \ 13098 no_undefined_flag_CXX \ 13099 export_symbols_cmds_CXX \ 13100 hardcode_libdir_flag_spec_CXX \ 13101 hardcode_libdir_flag_spec_ld_CXX \ 13102 hardcode_libdir_separator_CXX \ 13103 hardcode_automatic_CXX \ 13104 module_cmds_CXX \ 13105 module_expsym_cmds_CXX \ 13106 lt_cv_prog_compiler_c_o_CXX \ 13107 exclude_expsyms_CXX \ 13108 include_expsyms_CXX; do 13109 13110 case $var in 13111 old_archive_cmds_CXX | \ 13112 old_archive_from_new_cmds_CXX | \ 13113 archive_cmds_CXX | \ 13114 archive_expsym_cmds_CXX | \ 13115 module_cmds_CXX | \ 13116 module_expsym_cmds_CXX | \ 13117 old_archive_from_expsyms_cmds_CXX | \ 13118 export_symbols_cmds_CXX | \ 13119 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13120 postinstall_cmds | postuninstall_cmds | \ 13121 old_postinstall_cmds | old_postuninstall_cmds | \ 13122 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13123 # Double-quote double-evaled strings. 13124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13125 ;; 13126 *) 13127 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13128 ;; 13129 esac 13130 done 13131 13132 case $lt_echo in 13133 *'\$0 --fallback-echo"') 13134 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13135 ;; 13136 esac 13137 13138cfgfile="$ofile" 13139 13140 cat <<__EOF__ >> "$cfgfile" 13141# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13142 13143# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13144 13145# Shell to use when invoking shell scripts. 13146SHELL=$lt_SHELL 13147 13148# Whether or not to build shared libraries. 13149build_libtool_libs=$enable_shared 13150 13151# Whether or not to build static libraries. 13152build_old_libs=$enable_static 13153 13154# Whether or not to add -lc for building shared libraries. 13155build_libtool_need_lc=$archive_cmds_need_lc_CXX 13156 13157# Whether or not to disallow shared libs when runtime libs are static 13158allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13159 13160# Whether or not to optimize for fast installation. 13161fast_install=$enable_fast_install 13162 13163# The host system. 13164host_alias=$host_alias 13165host=$host 13166host_os=$host_os 13167 13168# The build system. 13169build_alias=$build_alias 13170build=$build 13171build_os=$build_os 13172 13173# An echo program that does not interpret backslashes. 13174echo=$lt_echo 13175 13176# The archiver. 13177AR=$lt_AR 13178AR_FLAGS=$lt_AR_FLAGS 13179 13180# A C compiler. 13181LTCC=$lt_LTCC 13182 13183# LTCC compiler flags. 13184LTCFLAGS=$lt_LTCFLAGS 13185 13186# A language-specific compiler. 13187CC=$lt_compiler_CXX 13188 13189# Is the compiler the GNU C compiler? 13190with_gcc=$GCC_CXX 13191 13192# An ERE matcher. 13193EGREP=$lt_EGREP 13194 13195# The linker used to build libraries. 13196LD=$lt_LD_CXX 13197 13198# Whether we need hard or soft links. 13199LN_S=$lt_LN_S 13200 13201# A BSD-compatible nm program. 13202NM=$lt_NM 13203 13204# A symbol stripping program 13205STRIP=$lt_STRIP 13206 13207# Used to examine libraries when file_magic_cmd begins "file" 13208MAGIC_CMD=$MAGIC_CMD 13209 13210# Used on cygwin: DLL creation program. 13211DLLTOOL="$DLLTOOL" 13212 13213# Used on cygwin: object dumper. 13214OBJDUMP="$OBJDUMP" 13215 13216# Used on cygwin: assembler. 13217AS="$AS" 13218 13219# The name of the directory that contains temporary libtool files. 13220objdir=$objdir 13221 13222# How to create reloadable object files. 13223reload_flag=$lt_reload_flag 13224reload_cmds=$lt_reload_cmds 13225 13226# How to pass a linker flag through the compiler. 13227wl=$lt_lt_prog_compiler_wl_CXX 13228 13229# Object file suffix (normally "o"). 13230objext="$ac_objext" 13231 13232# Old archive suffix (normally "a"). 13233libext="$libext" 13234 13235# Shared library suffix (normally ".so"). 13236shrext_cmds='$shrext_cmds' 13237 13238# Executable file suffix (normally ""). 13239exeext="$exeext" 13240 13241# Additional compiler flags for building library objects. 13242pic_flag=$lt_lt_prog_compiler_pic_CXX 13243pic_mode=$pic_mode 13244 13245# What is the maximum length of a command? 13246max_cmd_len=$lt_cv_sys_max_cmd_len 13247 13248# Does compiler simultaneously support -c and -o options? 13249compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13250 13251# Must we lock files when doing compilation? 13252need_locks=$lt_need_locks 13253 13254# Do we need the lib prefix for modules? 13255need_lib_prefix=$need_lib_prefix 13256 13257# Do we need a version for libraries? 13258need_version=$need_version 13259 13260# Whether dlopen is supported. 13261dlopen_support=$enable_dlopen 13262 13263# Whether dlopen of programs is supported. 13264dlopen_self=$enable_dlopen_self 13265 13266# Whether dlopen of statically linked programs is supported. 13267dlopen_self_static=$enable_dlopen_self_static 13268 13269# Compiler flag to prevent dynamic linking. 13270link_static_flag=$lt_lt_prog_compiler_static_CXX 13271 13272# Compiler flag to turn off builtin functions. 13273no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13274 13275# Compiler flag to allow reflexive dlopens. 13276export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13277 13278# Compiler flag to generate shared objects directly from archives. 13279whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13280 13281# Compiler flag to generate thread-safe objects. 13282thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13283 13284# Library versioning type. 13285version_type=$version_type 13286 13287# Format of library name prefix. 13288libname_spec=$lt_libname_spec 13289 13290# List of archive names. First name is the real one, the rest are links. 13291# The last name is the one that the linker finds with -lNAME. 13292library_names_spec=$lt_library_names_spec 13293 13294# The coded name of the library, if different from the real name. 13295soname_spec=$lt_soname_spec 13296 13297# Commands used to build and install an old-style archive. 13298RANLIB=$lt_RANLIB 13299old_archive_cmds=$lt_old_archive_cmds_CXX 13300old_postinstall_cmds=$lt_old_postinstall_cmds 13301old_postuninstall_cmds=$lt_old_postuninstall_cmds 13302 13303# Create an old-style archive from a shared archive. 13304old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13305 13306# Create a temporary old-style archive to link instead of a shared archive. 13307old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13308 13309# Commands used to build and install a shared archive. 13310archive_cmds=$lt_archive_cmds_CXX 13311archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13312postinstall_cmds=$lt_postinstall_cmds 13313postuninstall_cmds=$lt_postuninstall_cmds 13314 13315# Commands used to build a loadable module (assumed same as above if empty) 13316module_cmds=$lt_module_cmds_CXX 13317module_expsym_cmds=$lt_module_expsym_cmds_CXX 13318 13319# Commands to strip libraries. 13320old_striplib=$lt_old_striplib 13321striplib=$lt_striplib 13322 13323# Dependencies to place before the objects being linked to create a 13324# shared library. 13325predep_objects=$lt_predep_objects_CXX 13326 13327# Dependencies to place after the objects being linked to create a 13328# shared library. 13329postdep_objects=$lt_postdep_objects_CXX 13330 13331# Dependencies to place before the objects being linked to create a 13332# shared library. 13333predeps=$lt_predeps_CXX 13334 13335# Dependencies to place after the objects being linked to create a 13336# shared library. 13337postdeps=$lt_postdeps_CXX 13338 13339# The library search path used internally by the compiler when linking 13340# a shared library. 13341compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13342 13343# Method to check whether dependent libraries are shared objects. 13344deplibs_check_method=$lt_deplibs_check_method 13345 13346# Command to use when deplibs_check_method == file_magic. 13347file_magic_cmd=$lt_file_magic_cmd 13348 13349# Flag that allows shared libraries with undefined symbols to be built. 13350allow_undefined_flag=$lt_allow_undefined_flag_CXX 13351 13352# Flag that forces no undefined symbols. 13353no_undefined_flag=$lt_no_undefined_flag_CXX 13354 13355# Commands used to finish a libtool library installation in a directory. 13356finish_cmds=$lt_finish_cmds 13357 13358# Same as above, but a single script fragment to be evaled but not shown. 13359finish_eval=$lt_finish_eval 13360 13361# Take the output of nm and produce a listing of raw symbols and C names. 13362global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13363 13364# Transform the output of nm in a proper C declaration 13365global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13366 13367# Transform the output of nm in a C name address pair 13368global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13369 13370# This is the shared library runtime path variable. 13371runpath_var=$runpath_var 13372 13373# This is the shared library path variable. 13374shlibpath_var=$shlibpath_var 13375 13376# Is shlibpath searched before the hard-coded library search path? 13377shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13378 13379# How to hardcode a shared library path into an executable. 13380hardcode_action=$hardcode_action_CXX 13381 13382# Whether we should hardcode library paths into libraries. 13383hardcode_into_libs=$hardcode_into_libs 13384 13385# Flag to hardcode \$libdir into a binary during linking. 13386# This must work even if \$libdir does not exist. 13387hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13388 13389# If ld is used when linking, flag to hardcode \$libdir into 13390# a binary during linking. This must work even if \$libdir does 13391# not exist. 13392hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13393 13394# Whether we need a single -rpath flag with a separated argument. 13395hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13396 13397# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13398# resulting binary. 13399hardcode_direct=$hardcode_direct_CXX 13400 13401# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13402# resulting binary. 13403hardcode_minus_L=$hardcode_minus_L_CXX 13404 13405# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13406# the resulting binary. 13407hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13408 13409# Set to yes if building a shared library automatically hardcodes DIR into the library 13410# and all subsequent libraries and executables linked against it. 13411hardcode_automatic=$hardcode_automatic_CXX 13412 13413# Variables whose values should be saved in libtool wrapper scripts and 13414# restored at relink time. 13415variables_saved_for_relink="$variables_saved_for_relink" 13416 13417# Whether libtool must link a program against all its dependency libraries. 13418link_all_deplibs=$link_all_deplibs_CXX 13419 13420# Compile-time system search path for libraries 13421sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13422 13423# Run-time system search path for libraries 13424sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13425 13426# Fix the shell variable \$srcfile for the compiler. 13427fix_srcfile_path="$fix_srcfile_path_CXX" 13428 13429# Set to yes if exported symbols are required. 13430always_export_symbols=$always_export_symbols_CXX 13431 13432# The commands to list exported symbols. 13433export_symbols_cmds=$lt_export_symbols_cmds_CXX 13434 13435# The commands to extract the exported symbol list from a shared archive. 13436extract_expsyms_cmds=$lt_extract_expsyms_cmds 13437 13438# Symbols that should not be listed in the preloaded symbols. 13439exclude_expsyms=$lt_exclude_expsyms_CXX 13440 13441# Symbols that must always be exported. 13442include_expsyms=$lt_include_expsyms_CXX 13443 13444# ### END LIBTOOL TAG CONFIG: $tagname 13445 13446__EOF__ 13447 13448 13449else 13450 # If there is no Makefile yet, we rely on a make rule to execute 13451 # `config.status --recheck' to rerun these tests and create the 13452 # libtool script then. 13453 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13454 if test -f "$ltmain_in"; then 13455 test -f Makefile && make "$ltmain" 13456 fi 13457fi 13458 13459 13460ac_ext=c 13461ac_cpp='$CPP $CPPFLAGS' 13462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13464ac_compiler_gnu=$ac_cv_c_compiler_gnu 13465 13466CC=$lt_save_CC 13467LDCXX=$LD 13468LD=$lt_save_LD 13469GCC=$lt_save_GCC 13470with_gnu_ldcxx=$with_gnu_ld 13471with_gnu_ld=$lt_save_with_gnu_ld 13472lt_cv_path_LDCXX=$lt_cv_path_LD 13473lt_cv_path_LD=$lt_save_path_LD 13474lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13475lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13476 13477 else 13478 tagname="" 13479 fi 13480 ;; 13481 13482 F77) 13483 if test -n "$F77" && test "X$F77" != "Xno"; then 13484 13485ac_ext=f 13486ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13487ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13488ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13489 13490 13491archive_cmds_need_lc_F77=no 13492allow_undefined_flag_F77= 13493always_export_symbols_F77=no 13494archive_expsym_cmds_F77= 13495export_dynamic_flag_spec_F77= 13496hardcode_direct_F77=no 13497hardcode_libdir_flag_spec_F77= 13498hardcode_libdir_flag_spec_ld_F77= 13499hardcode_libdir_separator_F77= 13500hardcode_minus_L_F77=no 13501hardcode_automatic_F77=no 13502module_cmds_F77= 13503module_expsym_cmds_F77= 13504link_all_deplibs_F77=unknown 13505old_archive_cmds_F77=$old_archive_cmds 13506no_undefined_flag_F77= 13507whole_archive_flag_spec_F77= 13508enable_shared_with_static_runtimes_F77=no 13509 13510# Source file extension for f77 test sources. 13511ac_ext=f 13512 13513# Object file extension for compiled f77 test sources. 13514objext=o 13515objext_F77=$objext 13516 13517# Code to be used in simple compile tests 13518lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13519 13520# Code to be used in simple link tests 13521lt_simple_link_test_code=" program t\n end\n" 13522 13523# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13524 13525# If no C compiler was specified, use CC. 13526LTCC=${LTCC-"$CC"} 13527 13528# If no C compiler flags were specified, use CFLAGS. 13529LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13530 13531# Allow CC to be a program name with arguments. 13532compiler=$CC 13533 13534 13535# save warnings/boilerplate of simple test code 13536ac_outfile=conftest.$ac_objext 13537printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13538eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13539_lt_compiler_boilerplate=`cat conftest.err` 13540$rm conftest* 13541 13542ac_outfile=conftest.$ac_objext 13543printf "$lt_simple_link_test_code" >conftest.$ac_ext 13544eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13545_lt_linker_boilerplate=`cat conftest.err` 13546$rm conftest* 13547 13548 13549# Allow CC to be a program name with arguments. 13550lt_save_CC="$CC" 13551CC=${F77-"f77"} 13552compiler=$CC 13553compiler_F77=$CC 13554for cc_temp in $compiler""; do 13555 case $cc_temp in 13556 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13557 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13558 \-*) ;; 13559 *) break;; 13560 esac 13561done 13562cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13563 13564 13565{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13566echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13567{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13568echo "${ECHO_T}$can_build_shared" >&6; } 13569 13570{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13571echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13572test "$can_build_shared" = "no" && enable_shared=no 13573 13574# On AIX, shared libraries and static libraries use the same namespace, and 13575# are all built from PIC. 13576case $host_os in 13577aix3*) 13578 test "$enable_shared" = yes && enable_static=no 13579 if test -n "$RANLIB"; then 13580 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13581 postinstall_cmds='$RANLIB $lib' 13582 fi 13583 ;; 13584aix4* | aix5*) 13585 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13586 test "$enable_shared" = yes && enable_static=no 13587 fi 13588 ;; 13589esac 13590{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13591echo "${ECHO_T}$enable_shared" >&6; } 13592 13593{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13594echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13595# Make sure either enable_shared or enable_static is yes. 13596test "$enable_shared" = yes || enable_static=yes 13597{ echo "$as_me:$LINENO: result: $enable_static" >&5 13598echo "${ECHO_T}$enable_static" >&6; } 13599 13600GCC_F77="$G77" 13601LD_F77="$LD" 13602 13603lt_prog_compiler_wl_F77= 13604lt_prog_compiler_pic_F77= 13605lt_prog_compiler_static_F77= 13606 13607{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13608echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13609 13610 if test "$GCC" = yes; then 13611 lt_prog_compiler_wl_F77='-Wl,' 13612 lt_prog_compiler_static_F77='-static' 13613 13614 case $host_os in 13615 aix*) 13616 # All AIX code is PIC. 13617 if test "$host_cpu" = ia64; then 13618 # AIX 5 now supports IA64 processor 13619 lt_prog_compiler_static_F77='-Bstatic' 13620 fi 13621 ;; 13622 13623 amigaos*) 13624 # FIXME: we need at least 68020 code to build shared libraries, but 13625 # adding the `-m68020' flag to GCC prevents building anything better, 13626 # like `-m68040'. 13627 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13628 ;; 13629 13630 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13631 # PIC is the default for these OSes. 13632 ;; 13633 13634 mingw* | pw32* | os2*) 13635 # This hack is so that the source file can tell whether it is being 13636 # built for inclusion in a dll (and should export symbols for example). 13637 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13638 ;; 13639 13640 darwin* | rhapsody*) 13641 # PIC is the default on this platform 13642 # Common symbols not allowed in MH_DYLIB files 13643 lt_prog_compiler_pic_F77='-fno-common' 13644 ;; 13645 13646 interix3*) 13647 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13648 # Instead, we relocate shared libraries at runtime. 13649 ;; 13650 13651 msdosdjgpp*) 13652 # Just because we use GCC doesn't mean we suddenly get shared libraries 13653 # on systems that don't support them. 13654 lt_prog_compiler_can_build_shared_F77=no 13655 enable_shared=no 13656 ;; 13657 13658 sysv4*MP*) 13659 if test -d /usr/nec; then 13660 lt_prog_compiler_pic_F77=-Kconform_pic 13661 fi 13662 ;; 13663 13664 hpux*) 13665 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13666 # not for PA HP-UX. 13667 case $host_cpu in 13668 hppa*64*|ia64*) 13669 # +Z the default 13670 ;; 13671 *) 13672 lt_prog_compiler_pic_F77='-fPIC' 13673 ;; 13674 esac 13675 ;; 13676 13677 *) 13678 lt_prog_compiler_pic_F77='-fPIC' 13679 ;; 13680 esac 13681 else 13682 # PORTME Check for flag to pass linker flags through the system compiler. 13683 case $host_os in 13684 aix*) 13685 lt_prog_compiler_wl_F77='-Wl,' 13686 if test "$host_cpu" = ia64; then 13687 # AIX 5 now supports IA64 processor 13688 lt_prog_compiler_static_F77='-Bstatic' 13689 else 13690 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13691 fi 13692 ;; 13693 darwin*) 13694 # PIC is the default on this platform 13695 # Common symbols not allowed in MH_DYLIB files 13696 case $cc_basename in 13697 xlc*) 13698 lt_prog_compiler_pic_F77='-qnocommon' 13699 lt_prog_compiler_wl_F77='-Wl,' 13700 ;; 13701 esac 13702 ;; 13703 13704 mingw* | pw32* | os2*) 13705 # This hack is so that the source file can tell whether it is being 13706 # built for inclusion in a dll (and should export symbols for example). 13707 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13708 ;; 13709 13710 hpux9* | hpux10* | hpux11*) 13711 lt_prog_compiler_wl_F77='-Wl,' 13712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13713 # not for PA HP-UX. 13714 case $host_cpu in 13715 hppa*64*|ia64*) 13716 # +Z the default 13717 ;; 13718 *) 13719 lt_prog_compiler_pic_F77='+Z' 13720 ;; 13721 esac 13722 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13723 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13724 ;; 13725 13726 irix5* | irix6* | nonstopux*) 13727 lt_prog_compiler_wl_F77='-Wl,' 13728 # PIC (with -KPIC) is the default. 13729 lt_prog_compiler_static_F77='-non_shared' 13730 ;; 13731 13732 newsos6) 13733 lt_prog_compiler_pic_F77='-KPIC' 13734 lt_prog_compiler_static_F77='-Bstatic' 13735 ;; 13736 13737 linux*) 13738 case $cc_basename in 13739 icc* | ecc*) 13740 lt_prog_compiler_wl_F77='-Wl,' 13741 lt_prog_compiler_pic_F77='-KPIC' 13742 lt_prog_compiler_static_F77='-static' 13743 ;; 13744 pgcc* | pgf77* | pgf90* | pgf95*) 13745 # Portland Group compilers (*not* the Pentium gcc compiler, 13746 # which looks to be a dead project) 13747 lt_prog_compiler_wl_F77='-Wl,' 13748 lt_prog_compiler_pic_F77='-fpic' 13749 lt_prog_compiler_static_F77='-Bstatic' 13750 ;; 13751 ccc*) 13752 lt_prog_compiler_wl_F77='-Wl,' 13753 # All Alpha code is PIC. 13754 lt_prog_compiler_static_F77='-non_shared' 13755 ;; 13756 esac 13757 ;; 13758 13759 osf3* | osf4* | osf5*) 13760 lt_prog_compiler_wl_F77='-Wl,' 13761 # All OSF/1 code is PIC. 13762 lt_prog_compiler_static_F77='-non_shared' 13763 ;; 13764 13765 solaris*) 13766 lt_prog_compiler_pic_F77='-KPIC' 13767 lt_prog_compiler_static_F77='-Bstatic' 13768 case $cc_basename in 13769 f77* | f90* | f95*) 13770 lt_prog_compiler_wl_F77='-Qoption ld ';; 13771 *) 13772 lt_prog_compiler_wl_F77='-Wl,';; 13773 esac 13774 ;; 13775 13776 sunos4*) 13777 lt_prog_compiler_wl_F77='-Qoption ld ' 13778 lt_prog_compiler_pic_F77='-PIC' 13779 lt_prog_compiler_static_F77='-Bstatic' 13780 ;; 13781 13782 sysv4 | sysv4.2uw2* | sysv4.3*) 13783 lt_prog_compiler_wl_F77='-Wl,' 13784 lt_prog_compiler_pic_F77='-KPIC' 13785 lt_prog_compiler_static_F77='-Bstatic' 13786 ;; 13787 13788 sysv4*MP*) 13789 if test -d /usr/nec ;then 13790 lt_prog_compiler_pic_F77='-Kconform_pic' 13791 lt_prog_compiler_static_F77='-Bstatic' 13792 fi 13793 ;; 13794 13795 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13796 lt_prog_compiler_wl_F77='-Wl,' 13797 lt_prog_compiler_pic_F77='-KPIC' 13798 lt_prog_compiler_static_F77='-Bstatic' 13799 ;; 13800 13801 unicos*) 13802 lt_prog_compiler_wl_F77='-Wl,' 13803 lt_prog_compiler_can_build_shared_F77=no 13804 ;; 13805 13806 uts4*) 13807 lt_prog_compiler_pic_F77='-pic' 13808 lt_prog_compiler_static_F77='-Bstatic' 13809 ;; 13810 13811 *) 13812 lt_prog_compiler_can_build_shared_F77=no 13813 ;; 13814 esac 13815 fi 13816 13817{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13818echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13819 13820# 13821# Check to make sure the PIC flag actually works. 13822# 13823if test -n "$lt_prog_compiler_pic_F77"; then 13824 13825{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13826echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13827if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13828 echo $ECHO_N "(cached) $ECHO_C" >&6 13829else 13830 lt_prog_compiler_pic_works_F77=no 13831 ac_outfile=conftest.$ac_objext 13832 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13833 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13834 # Insert the option either (1) after the last *FLAGS variable, or 13835 # (2) before a word containing "conftest.", or (3) at the end. 13836 # Note that $ac_compile itself does not contain backslashes and begins 13837 # with a dollar sign (not a hyphen), so the echo should work correctly. 13838 # The option is referenced via a variable to avoid confusing sed. 13839 lt_compile=`echo "$ac_compile" | $SED \ 13840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13842 -e 's:$: $lt_compiler_flag:'` 13843 (eval echo "\"\$as_me:13843: $lt_compile\"" >&5) 13844 (eval "$lt_compile" 2>conftest.err) 13845 ac_status=$? 13846 cat conftest.err >&5 13847 echo "$as_me:13847: \$? = $ac_status" >&5 13848 if (exit $ac_status) && test -s "$ac_outfile"; then 13849 # The compiler can only warn and ignore the option if not recognized 13850 # So say no if there are warnings other than the usual output. 13851 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13854 lt_prog_compiler_pic_works_F77=yes 13855 fi 13856 fi 13857 $rm conftest* 13858 13859fi 13860{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13861echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13862 13863if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13864 case $lt_prog_compiler_pic_F77 in 13865 "" | " "*) ;; 13866 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13867 esac 13868else 13869 lt_prog_compiler_pic_F77= 13870 lt_prog_compiler_can_build_shared_F77=no 13871fi 13872 13873fi 13874case $host_os in 13875 # For platforms which do not support PIC, -DPIC is meaningless: 13876 *djgpp*) 13877 lt_prog_compiler_pic_F77= 13878 ;; 13879 *) 13880 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13881 ;; 13882esac 13883 13884# 13885# Check to make sure the static flag actually works. 13886# 13887wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13888{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13889echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13890if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13891 echo $ECHO_N "(cached) $ECHO_C" >&6 13892else 13893 lt_prog_compiler_static_works_F77=no 13894 save_LDFLAGS="$LDFLAGS" 13895 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13896 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13897 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13898 # The linker can only warn and ignore the option if not recognized 13899 # So say no if there are warnings 13900 if test -s conftest.err; then 13901 # Append any errors to the config.log. 13902 cat conftest.err 1>&5 13903 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13905 if diff conftest.exp conftest.er2 >/dev/null; then 13906 lt_prog_compiler_static_works_F77=yes 13907 fi 13908 else 13909 lt_prog_compiler_static_works_F77=yes 13910 fi 13911 fi 13912 $rm conftest* 13913 LDFLAGS="$save_LDFLAGS" 13914 13915fi 13916{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13917echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13918 13919if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13920 : 13921else 13922 lt_prog_compiler_static_F77= 13923fi 13924 13925 13926{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13927echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13928if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13929 echo $ECHO_N "(cached) $ECHO_C" >&6 13930else 13931 lt_cv_prog_compiler_c_o_F77=no 13932 $rm -r conftest 2>/dev/null 13933 mkdir conftest 13934 cd conftest 13935 mkdir out 13936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13937 13938 lt_compiler_flag="-o out/conftest2.$ac_objext" 13939 # Insert the option either (1) after the last *FLAGS variable, or 13940 # (2) before a word containing "conftest.", or (3) at the end. 13941 # Note that $ac_compile itself does not contain backslashes and begins 13942 # with a dollar sign (not a hyphen), so the echo should work correctly. 13943 lt_compile=`echo "$ac_compile" | $SED \ 13944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13946 -e 's:$: $lt_compiler_flag:'` 13947 (eval echo "\"\$as_me:13947: $lt_compile\"" >&5) 13948 (eval "$lt_compile" 2>out/conftest.err) 13949 ac_status=$? 13950 cat out/conftest.err >&5 13951 echo "$as_me:13951: \$? = $ac_status" >&5 13952 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13953 then 13954 # The compiler can only warn and ignore the option if not recognized 13955 # So say no if there are warnings 13956 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13959 lt_cv_prog_compiler_c_o_F77=yes 13960 fi 13961 fi 13962 chmod u+w . 2>&5 13963 $rm conftest* 13964 # SGI C++ compiler will create directory out/ii_files/ for 13965 # template instantiation 13966 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13967 $rm out/* && rmdir out 13968 cd .. 13969 rmdir conftest 13970 $rm conftest* 13971 13972fi 13973{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13974echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 13975 13976 13977hard_links="nottested" 13978if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13979 # do not overwrite the value of need_locks provided by the user 13980 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13981echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13982 hard_links=yes 13983 $rm conftest* 13984 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13985 touch conftest.a 13986 ln conftest.a conftest.b 2>&5 || hard_links=no 13987 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13988 { echo "$as_me:$LINENO: result: $hard_links" >&5 13989echo "${ECHO_T}$hard_links" >&6; } 13990 if test "$hard_links" = no; then 13991 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13992echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13993 need_locks=warn 13994 fi 13995else 13996 need_locks=no 13997fi 13998 13999{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14000echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14001 14002 runpath_var= 14003 allow_undefined_flag_F77= 14004 enable_shared_with_static_runtimes_F77=no 14005 archive_cmds_F77= 14006 archive_expsym_cmds_F77= 14007 old_archive_From_new_cmds_F77= 14008 old_archive_from_expsyms_cmds_F77= 14009 export_dynamic_flag_spec_F77= 14010 whole_archive_flag_spec_F77= 14011 thread_safe_flag_spec_F77= 14012 hardcode_libdir_flag_spec_F77= 14013 hardcode_libdir_flag_spec_ld_F77= 14014 hardcode_libdir_separator_F77= 14015 hardcode_direct_F77=no 14016 hardcode_minus_L_F77=no 14017 hardcode_shlibpath_var_F77=unsupported 14018 link_all_deplibs_F77=unknown 14019 hardcode_automatic_F77=no 14020 module_cmds_F77= 14021 module_expsym_cmds_F77= 14022 always_export_symbols_F77=no 14023 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14024 # include_expsyms should be a list of space-separated symbols to be *always* 14025 # included in the symbol list 14026 include_expsyms_F77= 14027 # exclude_expsyms can be an extended regexp of symbols to exclude 14028 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14029 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14030 # as well as any symbol that contains `d'. 14031 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14032 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14033 # platforms (ab)use it in PIC code, but their linkers get confused if 14034 # the symbol is explicitly referenced. Since portable code cannot 14035 # rely on this symbol name, it's probably fine to never include it in 14036 # preloaded symbol tables. 14037 extract_expsyms_cmds= 14038 # Just being paranoid about ensuring that cc_basename is set. 14039 for cc_temp in $compiler""; do 14040 case $cc_temp in 14041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14043 \-*) ;; 14044 *) break;; 14045 esac 14046done 14047cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14048 14049 case $host_os in 14050 cygwin* | mingw* | pw32*) 14051 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14052 # When not using gcc, we currently assume that we are using 14053 # Microsoft Visual C++. 14054 if test "$GCC" != yes; then 14055 with_gnu_ld=no 14056 fi 14057 ;; 14058 interix*) 14059 # we just hope/assume this is gcc and not c89 (= MSVC++) 14060 with_gnu_ld=yes 14061 ;; 14062 openbsd*) 14063 with_gnu_ld=no 14064 ;; 14065 esac 14066 14067 ld_shlibs_F77=yes 14068 if test "$with_gnu_ld" = yes; then 14069 # If archive_cmds runs LD, not CC, wlarc should be empty 14070 wlarc='${wl}' 14071 14072 # Set some defaults for GNU ld with shared library support. These 14073 # are reset later if shared libraries are not supported. Putting them 14074 # here allows them to be overridden if necessary. 14075 runpath_var=LD_RUN_PATH 14076 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14077 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14078 # ancient GNU ld didn't support --whole-archive et. al. 14079 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14080 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14081 else 14082 whole_archive_flag_spec_F77= 14083 fi 14084 supports_anon_versioning=no 14085 case `$LD -v 2>/dev/null` in 14086 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14087 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14088 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14089 *\ 2.11.*) ;; # other 2.11 versions 14090 *) supports_anon_versioning=yes ;; 14091 esac 14092 14093 # See if GNU ld supports shared libraries. 14094 case $host_os in 14095 aix3* | aix4* | aix5*) 14096 # On AIX/PPC, the GNU linker is very broken 14097 if test "$host_cpu" != ia64; then 14098 ld_shlibs_F77=no 14099 cat <<EOF 1>&2 14100 14101*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14102*** to be unable to reliably create shared libraries on AIX. 14103*** Therefore, libtool is disabling shared libraries support. If you 14104*** really care for shared libraries, you may want to modify your PATH 14105*** so that a non-GNU linker is found, and then restart. 14106 14107EOF 14108 fi 14109 ;; 14110 14111 amigaos*) 14112 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)' 14113 hardcode_libdir_flag_spec_F77='-L$libdir' 14114 hardcode_minus_L_F77=yes 14115 14116 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14117 # that the semantics of dynamic libraries on AmigaOS, at least up 14118 # to version 4, is to share data among multiple programs linked 14119 # with the same dynamic library. Since this doesn't match the 14120 # behavior of shared libraries on other platforms, we can't use 14121 # them. 14122 ld_shlibs_F77=no 14123 ;; 14124 14125 beos*) 14126 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14127 allow_undefined_flag_F77=unsupported 14128 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14129 # support --undefined. This deserves some investigation. FIXME 14130 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14131 else 14132 ld_shlibs_F77=no 14133 fi 14134 ;; 14135 14136 cygwin* | mingw* | pw32*) 14137 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14138 # as there is no search path for DLLs. 14139 hardcode_libdir_flag_spec_F77='-L$libdir' 14140 allow_undefined_flag_F77=unsupported 14141 always_export_symbols_F77=no 14142 enable_shared_with_static_runtimes_F77=yes 14143 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14144 14145 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14146 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14147 # If the export-symbols file already is a .def file (1st line 14148 # is EXPORTS), use it as is; otherwise, prepend... 14149 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14150 cp $export_symbols $output_objdir/$soname.def; 14151 else 14152 echo EXPORTS > $output_objdir/$soname.def; 14153 cat $export_symbols >> $output_objdir/$soname.def; 14154 fi~ 14155 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14156 else 14157 ld_shlibs_F77=no 14158 fi 14159 ;; 14160 14161 interix3*) 14162 hardcode_direct_F77=no 14163 hardcode_shlibpath_var_F77=no 14164 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14165 export_dynamic_flag_spec_F77='${wl}-E' 14166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14167 # Instead, shared libraries are loaded at an image base (0x10000000 by 14168 # default) and relocated if they conflict, which is a slow very memory 14169 # consuming and fragmenting process. To avoid this, we pick a random, 14170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14171 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14172 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' 14173 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' 14174 ;; 14175 14176 linux*) 14177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14178 tmp_addflag= 14179 case $cc_basename,$host_cpu in 14180 pgcc*) # Portland Group C compiler 14181 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' 14182 tmp_addflag=' $pic_flag' 14183 ;; 14184 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14185 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' 14186 tmp_addflag=' $pic_flag -Mnomain' ;; 14187 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14188 tmp_addflag=' -i_dynamic' ;; 14189 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14190 tmp_addflag=' -i_dynamic -nofor_main' ;; 14191 ifc* | ifort*) # Intel Fortran compiler 14192 tmp_addflag=' -nofor_main' ;; 14193 esac 14194 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14195 14196 if test $supports_anon_versioning = yes; then 14197 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14198 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14199 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14200 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14201 fi 14202 else 14203 ld_shlibs_F77=no 14204 fi 14205 ;; 14206 14207 netbsd*) 14208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14209 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14210 wlarc= 14211 else 14212 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14213 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14214 fi 14215 ;; 14216 14217 solaris*) 14218 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14219 ld_shlibs_F77=no 14220 cat <<EOF 1>&2 14221 14222*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14223*** create shared libraries on Solaris systems. Therefore, libtool 14224*** is disabling shared libraries support. We urge you to upgrade GNU 14225*** binutils to release 2.9.1 or newer. Another option is to modify 14226*** your PATH or compiler configuration so that the native linker is 14227*** used, and then restart. 14228 14229EOF 14230 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14231 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14232 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14233 else 14234 ld_shlibs_F77=no 14235 fi 14236 ;; 14237 14238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14239 case `$LD -v 2>&1` in 14240 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14241 ld_shlibs_F77=no 14242 cat <<_LT_EOF 1>&2 14243 14244*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14245*** reliably create shared libraries on SCO systems. Therefore, libtool 14246*** is disabling shared libraries support. We urge you to upgrade GNU 14247*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14248*** your PATH or compiler configuration so that the native linker is 14249*** used, and then restart. 14250 14251_LT_EOF 14252 ;; 14253 *) 14254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14255 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14256 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14257 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14258 else 14259 ld_shlibs_F77=no 14260 fi 14261 ;; 14262 esac 14263 ;; 14264 14265 sunos4*) 14266 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14267 wlarc= 14268 hardcode_direct_F77=yes 14269 hardcode_shlibpath_var_F77=no 14270 ;; 14271 14272 *) 14273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14274 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14275 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14276 else 14277 ld_shlibs_F77=no 14278 fi 14279 ;; 14280 esac 14281 14282 if test "$ld_shlibs_F77" = no; then 14283 runpath_var= 14284 hardcode_libdir_flag_spec_F77= 14285 export_dynamic_flag_spec_F77= 14286 whole_archive_flag_spec_F77= 14287 fi 14288 else 14289 # PORTME fill in a description of your system's linker (not GNU ld) 14290 case $host_os in 14291 aix3*) 14292 allow_undefined_flag_F77=unsupported 14293 always_export_symbols_F77=yes 14294 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' 14295 # Note: this linker hardcodes the directories in LIBPATH if there 14296 # are no directories specified by -L. 14297 hardcode_minus_L_F77=yes 14298 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14299 # Neither direct hardcoding nor static linking is supported with a 14300 # broken collect2. 14301 hardcode_direct_F77=unsupported 14302 fi 14303 ;; 14304 14305 aix4* | aix5*) 14306 if test "$host_cpu" = ia64; then 14307 # On IA64, the linker does run time linking by default, so we don't 14308 # have to do anything special. 14309 aix_use_runtimelinking=no 14310 exp_sym_flag='-Bexport' 14311 no_entry_flag="" 14312 else 14313 # If we're using GNU nm, then we don't want the "-C" option. 14314 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14315 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14316 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' 14317 else 14318 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' 14319 fi 14320 aix_use_runtimelinking=no 14321 14322 # Test if we are trying to use run time linking or normal 14323 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14324 # need to do runtime linking. 14325 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14326 for ld_flag in $LDFLAGS; do 14327 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14328 aix_use_runtimelinking=yes 14329 break 14330 fi 14331 done 14332 ;; 14333 esac 14334 14335 exp_sym_flag='-bexport' 14336 no_entry_flag='-bnoentry' 14337 fi 14338 14339 # When large executables or shared objects are built, AIX ld can 14340 # have problems creating the table of contents. If linking a library 14341 # or program results in "error TOC overflow" add -mminimal-toc to 14342 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14343 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14344 14345 archive_cmds_F77='' 14346 hardcode_direct_F77=yes 14347 hardcode_libdir_separator_F77=':' 14348 link_all_deplibs_F77=yes 14349 14350 if test "$GCC" = yes; then 14351 case $host_os in aix4.[012]|aix4.[012].*) 14352 # We only want to do this on AIX 4.2 and lower, the check 14353 # below for broken collect2 doesn't work under 4.3+ 14354 collect2name=`${CC} -print-prog-name=collect2` 14355 if test -f "$collect2name" && \ 14356 strings "$collect2name" | grep resolve_lib_name >/dev/null 14357 then 14358 # We have reworked collect2 14359 hardcode_direct_F77=yes 14360 else 14361 # We have old collect2 14362 hardcode_direct_F77=unsupported 14363 # It fails to find uninstalled libraries when the uninstalled 14364 # path is not listed in the libpath. Setting hardcode_minus_L 14365 # to unsupported forces relinking 14366 hardcode_minus_L_F77=yes 14367 hardcode_libdir_flag_spec_F77='-L$libdir' 14368 hardcode_libdir_separator_F77= 14369 fi 14370 ;; 14371 esac 14372 shared_flag='-shared' 14373 if test "$aix_use_runtimelinking" = yes; then 14374 shared_flag="$shared_flag "'${wl}-G' 14375 fi 14376 else 14377 # not using gcc 14378 if test "$host_cpu" = ia64; then 14379 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14380 # chokes on -Wl,-G. The following line is correct: 14381 shared_flag='-G' 14382 else 14383 if test "$aix_use_runtimelinking" = yes; then 14384 shared_flag='${wl}-G' 14385 else 14386 shared_flag='${wl}-bM:SRE' 14387 fi 14388 fi 14389 fi 14390 14391 # It seems that -bexpall does not export symbols beginning with 14392 # underscore (_), so it is better to generate a list of symbols to export. 14393 always_export_symbols_F77=yes 14394 if test "$aix_use_runtimelinking" = yes; then 14395 # Warning - without using the other runtime loading flags (-brtl), 14396 # -berok will link without error, but may produce a broken library. 14397 allow_undefined_flag_F77='-berok' 14398 # Determine the default libpath from the value encoded in an empty executable. 14399 cat >conftest.$ac_ext <<_ACEOF 14400 program main 14401 14402 end 14403_ACEOF 14404rm -f conftest.$ac_objext conftest$ac_exeext 14405if { (ac_try="$ac_link" 14406case "(($ac_try" in 14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14408 *) ac_try_echo=$ac_try;; 14409esac 14410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14411 (eval "$ac_link") 2>conftest.er1 14412 ac_status=$? 14413 grep -v '^ *+' conftest.er1 >conftest.err 14414 rm -f conftest.er1 14415 cat conftest.err >&5 14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14417 (exit $ac_status); } && { 14418 test -z "$ac_f77_werror_flag" || 14419 test ! -s conftest.err 14420 } && test -s conftest$ac_exeext && 14421 $as_test_x conftest$ac_exeext; then 14422 14423aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14424}'` 14425# Check for a 64-bit object if we didn't find anything. 14426if 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; } 14427}'`; fi 14428else 14429 echo "$as_me: failed program was:" >&5 14430sed 's/^/| /' conftest.$ac_ext >&5 14431 14432 14433fi 14434 14435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14436 conftest$ac_exeext conftest.$ac_ext 14437if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14438 14439 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14440 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" 14441 else 14442 if test "$host_cpu" = ia64; then 14443 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14444 allow_undefined_flag_F77="-z nodefs" 14445 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" 14446 else 14447 # Determine the default libpath from the value encoded in an empty executable. 14448 cat >conftest.$ac_ext <<_ACEOF 14449 program main 14450 14451 end 14452_ACEOF 14453rm -f conftest.$ac_objext conftest$ac_exeext 14454if { (ac_try="$ac_link" 14455case "(($ac_try" in 14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14457 *) ac_try_echo=$ac_try;; 14458esac 14459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14460 (eval "$ac_link") 2>conftest.er1 14461 ac_status=$? 14462 grep -v '^ *+' conftest.er1 >conftest.err 14463 rm -f conftest.er1 14464 cat conftest.err >&5 14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14466 (exit $ac_status); } && { 14467 test -z "$ac_f77_werror_flag" || 14468 test ! -s conftest.err 14469 } && test -s conftest$ac_exeext && 14470 $as_test_x conftest$ac_exeext; then 14471 14472aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14473}'` 14474# Check for a 64-bit object if we didn't find anything. 14475if 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; } 14476}'`; fi 14477else 14478 echo "$as_me: failed program was:" >&5 14479sed 's/^/| /' conftest.$ac_ext >&5 14480 14481 14482fi 14483 14484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14485 conftest$ac_exeext conftest.$ac_ext 14486if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14487 14488 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14489 # Warning - without using the other run time loading flags, 14490 # -berok will link without error, but may produce a broken library. 14491 no_undefined_flag_F77=' ${wl}-bernotok' 14492 allow_undefined_flag_F77=' ${wl}-berok' 14493 # Exported symbols can be pulled into shared objects from archives 14494 whole_archive_flag_spec_F77='$convenience' 14495 archive_cmds_need_lc_F77=yes 14496 # This is similar to how AIX traditionally builds its shared libraries. 14497 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' 14498 fi 14499 fi 14500 ;; 14501 14502 amigaos*) 14503 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)' 14504 hardcode_libdir_flag_spec_F77='-L$libdir' 14505 hardcode_minus_L_F77=yes 14506 # see comment about different semantics on the GNU ld section 14507 ld_shlibs_F77=no 14508 ;; 14509 14510 bsdi[45]*) 14511 export_dynamic_flag_spec_F77=-rdynamic 14512 ;; 14513 14514 cygwin* | mingw* | pw32*) 14515 # When not using gcc, we currently assume that we are using 14516 # Microsoft Visual C++. 14517 # hardcode_libdir_flag_spec is actually meaningless, as there is 14518 # no search path for DLLs. 14519 hardcode_libdir_flag_spec_F77=' ' 14520 allow_undefined_flag_F77=unsupported 14521 # Tell ltmain to make .lib files, not .a files. 14522 libext=lib 14523 # Tell ltmain to make .dll files, not .so files. 14524 shrext_cmds=".dll" 14525 # FIXME: Setting linknames here is a bad hack. 14526 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14527 # The linker will automatically build a .lib file if we build a DLL. 14528 old_archive_From_new_cmds_F77='true' 14529 # FIXME: Should let the user specify the lib program. 14530 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14531 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14532 enable_shared_with_static_runtimes_F77=yes 14533 ;; 14534 14535 darwin* | rhapsody*) 14536 case $host_os in 14537 rhapsody* | darwin1.[012]) 14538 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14539 ;; 14540 *) # Darwin 1.3 on 14541 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14542 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14543 else 14544 case ${MACOSX_DEPLOYMENT_TARGET} in 14545 10.[012]) 14546 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14547 ;; 14548 10.*) 14549 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14550 ;; 14551 esac 14552 fi 14553 ;; 14554 esac 14555 archive_cmds_need_lc_F77=no 14556 hardcode_direct_F77=no 14557 hardcode_automatic_F77=yes 14558 hardcode_shlibpath_var_F77=unsupported 14559 whole_archive_flag_spec_F77='' 14560 link_all_deplibs_F77=yes 14561 if test "$GCC" = yes ; then 14562 output_verbose_link_cmd='echo' 14563 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14564 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14566 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}' 14567 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}' 14568 else 14569 case $cc_basename in 14570 xlc*) 14571 output_verbose_link_cmd='echo' 14572 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14573 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14574 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14575 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}' 14576 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}' 14577 ;; 14578 *) 14579 ld_shlibs_F77=no 14580 ;; 14581 esac 14582 fi 14583 ;; 14584 14585 dgux*) 14586 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14587 hardcode_libdir_flag_spec_F77='-L$libdir' 14588 hardcode_shlibpath_var_F77=no 14589 ;; 14590 14591 freebsd1*) 14592 ld_shlibs_F77=no 14593 ;; 14594 14595 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14596 # support. Future versions do this automatically, but an explicit c++rt0.o 14597 # does not break anything, and helps significantly (at the cost of a little 14598 # extra space). 14599 freebsd2.2*) 14600 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14601 hardcode_libdir_flag_spec_F77='-R$libdir' 14602 hardcode_direct_F77=yes 14603 hardcode_shlibpath_var_F77=no 14604 ;; 14605 14606 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14607 freebsd2*) 14608 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14609 hardcode_direct_F77=yes 14610 hardcode_minus_L_F77=yes 14611 hardcode_shlibpath_var_F77=no 14612 ;; 14613 14614 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14615 freebsd* | kfreebsd*-gnu | dragonfly*) 14616 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14617 hardcode_libdir_flag_spec_F77='-R$libdir' 14618 hardcode_direct_F77=yes 14619 hardcode_shlibpath_var_F77=no 14620 ;; 14621 14622 hpux9*) 14623 if test "$GCC" = yes; then 14624 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' 14625 else 14626 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' 14627 fi 14628 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14629 hardcode_libdir_separator_F77=: 14630 hardcode_direct_F77=yes 14631 14632 # hardcode_minus_L: Not really in the search PATH, 14633 # but as the default location of the library. 14634 hardcode_minus_L_F77=yes 14635 export_dynamic_flag_spec_F77='${wl}-E' 14636 ;; 14637 14638 hpux10*) 14639 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14640 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14641 else 14642 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14643 fi 14644 if test "$with_gnu_ld" = no; then 14645 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14646 hardcode_libdir_separator_F77=: 14647 14648 hardcode_direct_F77=yes 14649 export_dynamic_flag_spec_F77='${wl}-E' 14650 14651 # hardcode_minus_L: Not really in the search PATH, 14652 # but as the default location of the library. 14653 hardcode_minus_L_F77=yes 14654 fi 14655 ;; 14656 14657 hpux11*) 14658 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14659 case $host_cpu in 14660 hppa*64*) 14661 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14662 ;; 14663 ia64*) 14664 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14665 ;; 14666 *) 14667 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14668 ;; 14669 esac 14670 else 14671 case $host_cpu in 14672 hppa*64*) 14673 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14674 ;; 14675 ia64*) 14676 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14677 ;; 14678 *) 14679 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14680 ;; 14681 esac 14682 fi 14683 if test "$with_gnu_ld" = no; then 14684 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14685 hardcode_libdir_separator_F77=: 14686 14687 case $host_cpu in 14688 hppa*64*|ia64*) 14689 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14690 hardcode_direct_F77=no 14691 hardcode_shlibpath_var_F77=no 14692 ;; 14693 *) 14694 hardcode_direct_F77=yes 14695 export_dynamic_flag_spec_F77='${wl}-E' 14696 14697 # hardcode_minus_L: Not really in the search PATH, 14698 # but as the default location of the library. 14699 hardcode_minus_L_F77=yes 14700 ;; 14701 esac 14702 fi 14703 ;; 14704 14705 irix5* | irix6* | nonstopux*) 14706 if test "$GCC" = yes; then 14707 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' 14708 else 14709 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' 14710 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14711 fi 14712 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14713 hardcode_libdir_separator_F77=: 14714 link_all_deplibs_F77=yes 14715 ;; 14716 14717 netbsd*) 14718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14719 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14720 else 14721 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14722 fi 14723 hardcode_libdir_flag_spec_F77='-R$libdir' 14724 hardcode_direct_F77=yes 14725 hardcode_shlibpath_var_F77=no 14726 ;; 14727 14728 newsos6) 14729 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14730 hardcode_direct_F77=yes 14731 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14732 hardcode_libdir_separator_F77=: 14733 hardcode_shlibpath_var_F77=no 14734 ;; 14735 14736 openbsd*) 14737 hardcode_direct_F77=yes 14738 hardcode_shlibpath_var_F77=no 14739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14740 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14741 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14742 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14743 export_dynamic_flag_spec_F77='${wl}-E' 14744 else 14745 case $host_os in 14746 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14747 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14748 hardcode_libdir_flag_spec_F77='-R$libdir' 14749 ;; 14750 *) 14751 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14752 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14753 ;; 14754 esac 14755 fi 14756 ;; 14757 14758 os2*) 14759 hardcode_libdir_flag_spec_F77='-L$libdir' 14760 hardcode_minus_L_F77=yes 14761 allow_undefined_flag_F77=unsupported 14762 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' 14763 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14764 ;; 14765 14766 osf3*) 14767 if test "$GCC" = yes; then 14768 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14769 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' 14770 else 14771 allow_undefined_flag_F77=' -expect_unresolved \*' 14772 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' 14773 fi 14774 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14775 hardcode_libdir_separator_F77=: 14776 ;; 14777 14778 osf4* | osf5*) # as osf3* with the addition of -msym flag 14779 if test "$GCC" = yes; then 14780 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14781 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' 14782 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14783 else 14784 allow_undefined_flag_F77=' -expect_unresolved \*' 14785 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' 14786 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~ 14787 $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' 14788 14789 # Both c and cxx compiler support -rpath directly 14790 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14791 fi 14792 hardcode_libdir_separator_F77=: 14793 ;; 14794 14795 solaris*) 14796 no_undefined_flag_F77=' -z text' 14797 if test "$GCC" = yes; then 14798 wlarc='${wl}' 14799 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14800 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14801 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14802 else 14803 wlarc='' 14804 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14805 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14806 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14807 fi 14808 hardcode_libdir_flag_spec_F77='-R$libdir' 14809 hardcode_shlibpath_var_F77=no 14810 case $host_os in 14811 solaris2.[0-5] | solaris2.[0-5].*) ;; 14812 *) 14813 # The compiler driver will combine linker options so we 14814 # cannot just pass the convience library names through 14815 # without $wl, iff we do not link with $LD. 14816 # Luckily, gcc supports the same syntax we need for Sun Studio. 14817 # Supported since Solaris 2.6 (maybe 2.5.1?) 14818 case $wlarc in 14819 '') 14820 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14821 *) 14822 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' ;; 14823 esac ;; 14824 esac 14825 link_all_deplibs_F77=yes 14826 ;; 14827 14828 sunos4*) 14829 if test "x$host_vendor" = xsequent; then 14830 # Use $CC to link under sequent, because it throws in some extra .o 14831 # files that make .init and .fini sections work. 14832 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14833 else 14834 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14835 fi 14836 hardcode_libdir_flag_spec_F77='-L$libdir' 14837 hardcode_direct_F77=yes 14838 hardcode_minus_L_F77=yes 14839 hardcode_shlibpath_var_F77=no 14840 ;; 14841 14842 sysv4) 14843 case $host_vendor in 14844 sni) 14845 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14846 hardcode_direct_F77=yes # is this really true??? 14847 ;; 14848 siemens) 14849 ## LD is ld it makes a PLAMLIB 14850 ## CC just makes a GrossModule. 14851 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14852 reload_cmds_F77='$CC -r -o $output$reload_objs' 14853 hardcode_direct_F77=no 14854 ;; 14855 motorola) 14856 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14857 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14858 ;; 14859 esac 14860 runpath_var='LD_RUN_PATH' 14861 hardcode_shlibpath_var_F77=no 14862 ;; 14863 14864 sysv4.3*) 14865 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14866 hardcode_shlibpath_var_F77=no 14867 export_dynamic_flag_spec_F77='-Bexport' 14868 ;; 14869 14870 sysv4*MP*) 14871 if test -d /usr/nec; then 14872 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14873 hardcode_shlibpath_var_F77=no 14874 runpath_var=LD_RUN_PATH 14875 hardcode_runpath_var=yes 14876 ld_shlibs_F77=yes 14877 fi 14878 ;; 14879 14880 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14881 no_undefined_flag_F77='${wl}-z,text' 14882 archive_cmds_need_lc_F77=no 14883 hardcode_shlibpath_var_F77=no 14884 runpath_var='LD_RUN_PATH' 14885 14886 if test "$GCC" = yes; then 14887 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14888 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14889 else 14890 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14891 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14892 fi 14893 ;; 14894 14895 sysv5* | sco3.2v5* | sco5v6*) 14896 # Note: We can NOT use -z defs as we might desire, because we do not 14897 # link with -lc, and that would cause any symbols used from libc to 14898 # always be unresolved, which means just about no library would 14899 # ever link correctly. If we're not using GNU ld we use -z text 14900 # though, which does catch some bad symbols but isn't as heavy-handed 14901 # as -z defs. 14902 no_undefined_flag_F77='${wl}-z,text' 14903 allow_undefined_flag_F77='${wl}-z,nodefs' 14904 archive_cmds_need_lc_F77=no 14905 hardcode_shlibpath_var_F77=no 14906 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14907 hardcode_libdir_separator_F77=':' 14908 link_all_deplibs_F77=yes 14909 export_dynamic_flag_spec_F77='${wl}-Bexport' 14910 runpath_var='LD_RUN_PATH' 14911 14912 if test "$GCC" = yes; then 14913 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14914 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14915 else 14916 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14917 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14918 fi 14919 ;; 14920 14921 uts4*) 14922 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14923 hardcode_libdir_flag_spec_F77='-L$libdir' 14924 hardcode_shlibpath_var_F77=no 14925 ;; 14926 14927 *) 14928 ld_shlibs_F77=no 14929 ;; 14930 esac 14931 fi 14932 14933{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14934echo "${ECHO_T}$ld_shlibs_F77" >&6; } 14935test "$ld_shlibs_F77" = no && can_build_shared=no 14936 14937# 14938# Do we need to explicitly link libc? 14939# 14940case "x$archive_cmds_need_lc_F77" in 14941x|xyes) 14942 # Assume -lc should be added 14943 archive_cmds_need_lc_F77=yes 14944 14945 if test "$enable_shared" = yes && test "$GCC" = yes; then 14946 case $archive_cmds_F77 in 14947 *'~'*) 14948 # FIXME: we may have to deal with multi-command sequences. 14949 ;; 14950 '$CC '*) 14951 # Test whether the compiler implicitly links with -lc since on some 14952 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14953 # to ld, don't add -lc before -lgcc. 14954 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14955echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14956 $rm conftest* 14957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14958 14959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14960 (eval $ac_compile) 2>&5 14961 ac_status=$? 14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14963 (exit $ac_status); } 2>conftest.err; then 14964 soname=conftest 14965 lib=conftest 14966 libobjs=conftest.$ac_objext 14967 deplibs= 14968 wl=$lt_prog_compiler_wl_F77 14969 pic_flag=$lt_prog_compiler_pic_F77 14970 compiler_flags=-v 14971 linker_flags=-v 14972 verstring= 14973 output_objdir=. 14974 libname=conftest 14975 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14976 allow_undefined_flag_F77= 14977 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14978 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14979 ac_status=$? 14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14981 (exit $ac_status); } 14982 then 14983 archive_cmds_need_lc_F77=no 14984 else 14985 archive_cmds_need_lc_F77=yes 14986 fi 14987 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14988 else 14989 cat conftest.err 1>&5 14990 fi 14991 $rm conftest* 14992 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14993echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 14994 ;; 14995 esac 14996 fi 14997 ;; 14998esac 14999 15000{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15001echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15002library_names_spec= 15003libname_spec='lib$name' 15004soname_spec= 15005shrext_cmds=".so" 15006postinstall_cmds= 15007postuninstall_cmds= 15008finish_cmds= 15009finish_eval= 15010shlibpath_var= 15011shlibpath_overrides_runpath=unknown 15012version_type=none 15013dynamic_linker="$host_os ld.so" 15014sys_lib_dlsearch_path_spec="/lib /usr/lib" 15015if test "$GCC" = yes; then 15016 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15017 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15018 # if the path contains ";" then we assume it to be the separator 15019 # otherwise default to the standard path separator (i.e. ":") - it is 15020 # assumed that no part of a normal pathname contains ";" but that should 15021 # okay in the real world where ";" in dirpaths is itself problematic. 15022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15023 else 15024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15025 fi 15026else 15027 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15028fi 15029need_lib_prefix=unknown 15030hardcode_into_libs=no 15031 15032# when you set need_version to no, make sure it does not cause -set_version 15033# flags to be left without arguments 15034need_version=unknown 15035 15036case $host_os in 15037aix3*) 15038 version_type=linux 15039 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15040 shlibpath_var=LIBPATH 15041 15042 # AIX 3 has no versioning support, so we append a major version to the name. 15043 soname_spec='${libname}${release}${shared_ext}$major' 15044 ;; 15045 15046aix4* | aix5*) 15047 version_type=linux 15048 need_lib_prefix=no 15049 need_version=no 15050 hardcode_into_libs=yes 15051 if test "$host_cpu" = ia64; then 15052 # AIX 5 supports IA64 15053 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15054 shlibpath_var=LD_LIBRARY_PATH 15055 else 15056 # With GCC up to 2.95.x, collect2 would create an import file 15057 # for dependence libraries. The import file would start with 15058 # the line `#! .'. This would cause the generated library to 15059 # depend on `.', always an invalid library. This was fixed in 15060 # development snapshots of GCC prior to 3.0. 15061 case $host_os in 15062 aix4 | aix4.[01] | aix4.[01].*) 15063 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15064 echo ' yes ' 15065 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15066 : 15067 else 15068 can_build_shared=no 15069 fi 15070 ;; 15071 esac 15072 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15073 # soname into executable. Probably we can add versioning support to 15074 # collect2, so additional links can be useful in future. 15075 if test "$aix_use_runtimelinking" = yes; then 15076 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15077 # instead of lib<name>.a to let people know that these are not 15078 # typical AIX shared libraries. 15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15080 else 15081 # We preserve .a as extension for shared libraries through AIX4.2 15082 # and later when we are not doing run time linking. 15083 library_names_spec='${libname}${release}.a $libname.a' 15084 soname_spec='${libname}${release}${shared_ext}$major' 15085 fi 15086 shlibpath_var=LIBPATH 15087 fi 15088 ;; 15089 15090amigaos*) 15091 library_names_spec='$libname.ixlibrary $libname.a' 15092 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15093 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' 15094 ;; 15095 15096beos*) 15097 library_names_spec='${libname}${shared_ext}' 15098 dynamic_linker="$host_os ld.so" 15099 shlibpath_var=LIBRARY_PATH 15100 ;; 15101 15102bsdi[45]*) 15103 version_type=linux 15104 need_version=no 15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15106 soname_spec='${libname}${release}${shared_ext}$major' 15107 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15108 shlibpath_var=LD_LIBRARY_PATH 15109 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15110 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15111 # the default ld.so.conf also contains /usr/contrib/lib and 15112 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15113 # libtool to hard-code these into programs 15114 ;; 15115 15116cygwin* | mingw* | pw32*) 15117 version_type=windows 15118 shrext_cmds=".dll" 15119 need_version=no 15120 need_lib_prefix=no 15121 15122 case $GCC,$host_os in 15123 yes,cygwin* | yes,mingw* | yes,pw32*) 15124 library_names_spec='$libname.dll.a' 15125 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15126 postinstall_cmds='base_file=`basename \${file}`~ 15127 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15128 dldir=$destdir/`dirname \$dlpath`~ 15129 test -d \$dldir || mkdir -p \$dldir~ 15130 $install_prog $dir/$dlname \$dldir/$dlname~ 15131 chmod a+x \$dldir/$dlname' 15132 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15133 dlpath=$dir/\$dldll~ 15134 $rm \$dlpath' 15135 shlibpath_overrides_runpath=yes 15136 15137 case $host_os in 15138 cygwin*) 15139 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15140 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15141 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15142 ;; 15143 mingw*) 15144 # MinGW DLLs use traditional 'lib' prefix 15145 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15146 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15147 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15148 # It is most probably a Windows format PATH printed by 15149 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15150 # path with ; separators, and with drive letters. We can handle the 15151 # drive letters (cygwin fileutils understands them), so leave them, 15152 # especially as we might pass files found there to a mingw objdump, 15153 # which wouldn't understand a cygwinified path. Ahh. 15154 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15155 else 15156 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15157 fi 15158 ;; 15159 pw32*) 15160 # pw32 DLLs use 'pw' prefix rather than 'lib' 15161 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15162 ;; 15163 esac 15164 ;; 15165 15166 *) 15167 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15168 ;; 15169 esac 15170 dynamic_linker='Win32 ld.exe' 15171 # FIXME: first we should search . and the directory the executable is in 15172 shlibpath_var=PATH 15173 ;; 15174 15175darwin* | rhapsody*) 15176 dynamic_linker="$host_os dyld" 15177 version_type=darwin 15178 need_lib_prefix=no 15179 need_version=no 15180 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15181 soname_spec='${libname}${release}${major}$shared_ext' 15182 shlibpath_overrides_runpath=yes 15183 shlibpath_var=DYLD_LIBRARY_PATH 15184 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15185 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15186 if test "$GCC" = yes; then 15187 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"` 15188 else 15189 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15190 fi 15191 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15192 ;; 15193 15194dgux*) 15195 version_type=linux 15196 need_lib_prefix=no 15197 need_version=no 15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15199 soname_spec='${libname}${release}${shared_ext}$major' 15200 shlibpath_var=LD_LIBRARY_PATH 15201 ;; 15202 15203freebsd1*) 15204 dynamic_linker=no 15205 ;; 15206 15207kfreebsd*-gnu) 15208 version_type=linux 15209 need_lib_prefix=no 15210 need_version=no 15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15212 soname_spec='${libname}${release}${shared_ext}$major' 15213 shlibpath_var=LD_LIBRARY_PATH 15214 shlibpath_overrides_runpath=no 15215 hardcode_into_libs=yes 15216 dynamic_linker='GNU ld.so' 15217 ;; 15218 15219freebsd* | dragonfly*) 15220 # DragonFly does not have aout. When/if they implement a new 15221 # versioning mechanism, adjust this. 15222 if test -x /usr/bin/objformat; then 15223 objformat=`/usr/bin/objformat` 15224 else 15225 case $host_os in 15226 freebsd[123]*) objformat=aout ;; 15227 *) objformat=elf ;; 15228 esac 15229 fi 15230 version_type=freebsd-$objformat 15231 case $version_type in 15232 freebsd-elf*) 15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15234 need_version=no 15235 need_lib_prefix=no 15236 ;; 15237 freebsd-*) 15238 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15239 need_version=yes 15240 ;; 15241 esac 15242 shlibpath_var=LD_LIBRARY_PATH 15243 case $host_os in 15244 freebsd2*) 15245 shlibpath_overrides_runpath=yes 15246 ;; 15247 freebsd3.[01]* | freebsdelf3.[01]*) 15248 shlibpath_overrides_runpath=yes 15249 hardcode_into_libs=yes 15250 ;; 15251 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15252 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15253 shlibpath_overrides_runpath=no 15254 hardcode_into_libs=yes 15255 ;; 15256 freebsd*) # from 4.6 on 15257 shlibpath_overrides_runpath=yes 15258 hardcode_into_libs=yes 15259 ;; 15260 esac 15261 ;; 15262 15263gnu*) 15264 version_type=linux 15265 need_lib_prefix=no 15266 need_version=no 15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15268 soname_spec='${libname}${release}${shared_ext}$major' 15269 shlibpath_var=LD_LIBRARY_PATH 15270 hardcode_into_libs=yes 15271 ;; 15272 15273hpux9* | hpux10* | hpux11*) 15274 # Give a soname corresponding to the major version so that dld.sl refuses to 15275 # link against other versions. 15276 version_type=sunos 15277 need_lib_prefix=no 15278 need_version=no 15279 case $host_cpu in 15280 ia64*) 15281 shrext_cmds='.so' 15282 hardcode_into_libs=yes 15283 dynamic_linker="$host_os dld.so" 15284 shlibpath_var=LD_LIBRARY_PATH 15285 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15287 soname_spec='${libname}${release}${shared_ext}$major' 15288 if test "X$HPUX_IA64_MODE" = X32; then 15289 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15290 else 15291 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15292 fi 15293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15294 ;; 15295 hppa*64*) 15296 shrext_cmds='.sl' 15297 hardcode_into_libs=yes 15298 dynamic_linker="$host_os dld.sl" 15299 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15302 soname_spec='${libname}${release}${shared_ext}$major' 15303 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15305 ;; 15306 *) 15307 shrext_cmds='.sl' 15308 dynamic_linker="$host_os dld.sl" 15309 shlibpath_var=SHLIB_PATH 15310 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15312 soname_spec='${libname}${release}${shared_ext}$major' 15313 ;; 15314 esac 15315 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15316 postinstall_cmds='chmod 555 $lib' 15317 ;; 15318 15319interix3*) 15320 version_type=linux 15321 need_lib_prefix=no 15322 need_version=no 15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15324 soname_spec='${libname}${release}${shared_ext}$major' 15325 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15326 shlibpath_var=LD_LIBRARY_PATH 15327 shlibpath_overrides_runpath=no 15328 hardcode_into_libs=yes 15329 ;; 15330 15331irix5* | irix6* | nonstopux*) 15332 case $host_os in 15333 nonstopux*) version_type=nonstopux ;; 15334 *) 15335 if test "$lt_cv_prog_gnu_ld" = yes; then 15336 version_type=linux 15337 else 15338 version_type=irix 15339 fi ;; 15340 esac 15341 need_lib_prefix=no 15342 need_version=no 15343 soname_spec='${libname}${release}${shared_ext}$major' 15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15345 case $host_os in 15346 irix5* | nonstopux*) 15347 libsuff= shlibsuff= 15348 ;; 15349 *) 15350 case $LD in # libtool.m4 will add one of these switches to LD 15351 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15352 libsuff= shlibsuff= libmagic=32-bit;; 15353 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15354 libsuff=32 shlibsuff=N32 libmagic=N32;; 15355 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15356 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15357 *) libsuff= shlibsuff= libmagic=never-match;; 15358 esac 15359 ;; 15360 esac 15361 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15362 shlibpath_overrides_runpath=no 15363 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15364 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15365 hardcode_into_libs=yes 15366 ;; 15367 15368# No shared lib support for Linux oldld, aout, or coff. 15369linux*oldld* | linux*aout* | linux*coff*) 15370 dynamic_linker=no 15371 ;; 15372 15373# This must be Linux ELF. 15374linux*) 15375 version_type=linux 15376 need_lib_prefix=no 15377 need_version=no 15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15379 soname_spec='${libname}${release}${shared_ext}$major' 15380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15381 shlibpath_var=LD_LIBRARY_PATH 15382 shlibpath_overrides_runpath=no 15383 # This implies no fast_install, which is unacceptable. 15384 # Some rework will be needed to allow for fast_install 15385 # before this can be enabled. 15386 hardcode_into_libs=yes 15387 15388 # Append ld.so.conf contents to the search path 15389 if test -f /etc/ld.so.conf; then 15390 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' ' '` 15391 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15392 fi 15393 15394 # We used to test for /lib/ld.so.1 and disable shared libraries on 15395 # powerpc, because MkLinux only supported shared libraries with the 15396 # GNU dynamic linker. Since this was broken with cross compilers, 15397 # most powerpc-linux boxes support dynamic linking these days and 15398 # people can always --disable-shared, the test was removed, and we 15399 # assume the GNU/Linux dynamic linker is in use. 15400 dynamic_linker='GNU/Linux ld.so' 15401 ;; 15402 15403knetbsd*-gnu) 15404 version_type=linux 15405 need_lib_prefix=no 15406 need_version=no 15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15408 soname_spec='${libname}${release}${shared_ext}$major' 15409 shlibpath_var=LD_LIBRARY_PATH 15410 shlibpath_overrides_runpath=no 15411 hardcode_into_libs=yes 15412 dynamic_linker='GNU ld.so' 15413 ;; 15414 15415netbsd*) 15416 version_type=sunos 15417 need_lib_prefix=no 15418 need_version=no 15419 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15422 dynamic_linker='NetBSD (a.out) ld.so' 15423 else 15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15425 soname_spec='${libname}${release}${shared_ext}$major' 15426 dynamic_linker='NetBSD ld.elf_so' 15427 fi 15428 shlibpath_var=LD_LIBRARY_PATH 15429 shlibpath_overrides_runpath=yes 15430 hardcode_into_libs=yes 15431 ;; 15432 15433newsos6) 15434 version_type=linux 15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15436 shlibpath_var=LD_LIBRARY_PATH 15437 shlibpath_overrides_runpath=yes 15438 ;; 15439 15440nto-qnx*) 15441 version_type=linux 15442 need_lib_prefix=no 15443 need_version=no 15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15445 soname_spec='${libname}${release}${shared_ext}$major' 15446 shlibpath_var=LD_LIBRARY_PATH 15447 shlibpath_overrides_runpath=yes 15448 ;; 15449 15450openbsd*) 15451 version_type=sunos 15452 sys_lib_dlsearch_path_spec="/usr/lib" 15453 need_lib_prefix=no 15454 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15455 case $host_os in 15456 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15457 *) need_version=no ;; 15458 esac 15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15461 shlibpath_var=LD_LIBRARY_PATH 15462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15463 case $host_os in 15464 openbsd2.[89] | openbsd2.[89].*) 15465 shlibpath_overrides_runpath=no 15466 ;; 15467 *) 15468 shlibpath_overrides_runpath=yes 15469 ;; 15470 esac 15471 else 15472 shlibpath_overrides_runpath=yes 15473 fi 15474 ;; 15475 15476os2*) 15477 libname_spec='$name' 15478 shrext_cmds=".dll" 15479 need_lib_prefix=no 15480 library_names_spec='$libname${shared_ext} $libname.a' 15481 dynamic_linker='OS/2 ld.exe' 15482 shlibpath_var=LIBPATH 15483 ;; 15484 15485osf3* | osf4* | osf5*) 15486 version_type=osf 15487 need_lib_prefix=no 15488 need_version=no 15489 soname_spec='${libname}${release}${shared_ext}$major' 15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15491 shlibpath_var=LD_LIBRARY_PATH 15492 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15493 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15494 ;; 15495 15496solaris*) 15497 version_type=linux 15498 need_lib_prefix=no 15499 need_version=no 15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15501 soname_spec='${libname}${release}${shared_ext}$major' 15502 shlibpath_var=LD_LIBRARY_PATH 15503 shlibpath_overrides_runpath=yes 15504 hardcode_into_libs=yes 15505 # ldd complains unless libraries are executable 15506 postinstall_cmds='chmod +x $lib' 15507 ;; 15508 15509sunos4*) 15510 version_type=sunos 15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15513 shlibpath_var=LD_LIBRARY_PATH 15514 shlibpath_overrides_runpath=yes 15515 if test "$with_gnu_ld" = yes; then 15516 need_lib_prefix=no 15517 fi 15518 need_version=yes 15519 ;; 15520 15521sysv4 | sysv4.3*) 15522 version_type=linux 15523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15524 soname_spec='${libname}${release}${shared_ext}$major' 15525 shlibpath_var=LD_LIBRARY_PATH 15526 case $host_vendor in 15527 sni) 15528 shlibpath_overrides_runpath=no 15529 need_lib_prefix=no 15530 export_dynamic_flag_spec='${wl}-Blargedynsym' 15531 runpath_var=LD_RUN_PATH 15532 ;; 15533 siemens) 15534 need_lib_prefix=no 15535 ;; 15536 motorola) 15537 need_lib_prefix=no 15538 need_version=no 15539 shlibpath_overrides_runpath=no 15540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15541 ;; 15542 esac 15543 ;; 15544 15545sysv4*MP*) 15546 if test -d /usr/nec ;then 15547 version_type=linux 15548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15549 soname_spec='$libname${shared_ext}.$major' 15550 shlibpath_var=LD_LIBRARY_PATH 15551 fi 15552 ;; 15553 15554sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15555 version_type=freebsd-elf 15556 need_lib_prefix=no 15557 need_version=no 15558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15559 soname_spec='${libname}${release}${shared_ext}$major' 15560 shlibpath_var=LD_LIBRARY_PATH 15561 hardcode_into_libs=yes 15562 if test "$with_gnu_ld" = yes; then 15563 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15564 shlibpath_overrides_runpath=no 15565 else 15566 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15567 shlibpath_overrides_runpath=yes 15568 case $host_os in 15569 sco3.2v5*) 15570 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15571 ;; 15572 esac 15573 fi 15574 sys_lib_dlsearch_path_spec='/usr/lib' 15575 ;; 15576 15577uts4*) 15578 version_type=linux 15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15580 soname_spec='${libname}${release}${shared_ext}$major' 15581 shlibpath_var=LD_LIBRARY_PATH 15582 ;; 15583 15584*) 15585 dynamic_linker=no 15586 ;; 15587esac 15588{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15589echo "${ECHO_T}$dynamic_linker" >&6; } 15590test "$dynamic_linker" = no && can_build_shared=no 15591 15592variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15593if test "$GCC" = yes; then 15594 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15595fi 15596 15597{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15598echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15599hardcode_action_F77= 15600if test -n "$hardcode_libdir_flag_spec_F77" || \ 15601 test -n "$runpath_var_F77" || \ 15602 test "X$hardcode_automatic_F77" = "Xyes" ; then 15603 15604 # We can hardcode non-existant directories. 15605 if test "$hardcode_direct_F77" != no && 15606 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15607 # have to relink, otherwise we might link with an installed library 15608 # when we should be linking with a yet-to-be-installed one 15609 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15610 test "$hardcode_minus_L_F77" != no; then 15611 # Linking always hardcodes the temporary library directory. 15612 hardcode_action_F77=relink 15613 else 15614 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15615 hardcode_action_F77=immediate 15616 fi 15617else 15618 # We cannot hardcode anything, or else we can only hardcode existing 15619 # directories. 15620 hardcode_action_F77=unsupported 15621fi 15622{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15623echo "${ECHO_T}$hardcode_action_F77" >&6; } 15624 15625if test "$hardcode_action_F77" = relink; then 15626 # Fast installation is not supported 15627 enable_fast_install=no 15628elif test "$shlibpath_overrides_runpath" = yes || 15629 test "$enable_shared" = no; then 15630 # Fast installation is not necessary 15631 enable_fast_install=needless 15632fi 15633 15634 15635# The else clause should only fire when bootstrapping the 15636# libtool distribution, otherwise you forgot to ship ltmain.sh 15637# with your package, and you will get complaints that there are 15638# no rules to generate ltmain.sh. 15639if test -f "$ltmain"; then 15640 # See if we are running on zsh, and set the options which allow our commands through 15641 # without removal of \ escapes. 15642 if test -n "${ZSH_VERSION+set}" ; then 15643 setopt NO_GLOB_SUBST 15644 fi 15645 # Now quote all the things that may contain metacharacters while being 15646 # careful not to overquote the AC_SUBSTed values. We take copies of the 15647 # variables and quote the copies for generation of the libtool script. 15648 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15649 SED SHELL STRIP \ 15650 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15651 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15652 deplibs_check_method reload_flag reload_cmds need_locks \ 15653 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15654 lt_cv_sys_global_symbol_to_c_name_address \ 15655 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15656 old_postinstall_cmds old_postuninstall_cmds \ 15657 compiler_F77 \ 15658 CC_F77 \ 15659 LD_F77 \ 15660 lt_prog_compiler_wl_F77 \ 15661 lt_prog_compiler_pic_F77 \ 15662 lt_prog_compiler_static_F77 \ 15663 lt_prog_compiler_no_builtin_flag_F77 \ 15664 export_dynamic_flag_spec_F77 \ 15665 thread_safe_flag_spec_F77 \ 15666 whole_archive_flag_spec_F77 \ 15667 enable_shared_with_static_runtimes_F77 \ 15668 old_archive_cmds_F77 \ 15669 old_archive_from_new_cmds_F77 \ 15670 predep_objects_F77 \ 15671 postdep_objects_F77 \ 15672 predeps_F77 \ 15673 postdeps_F77 \ 15674 compiler_lib_search_path_F77 \ 15675 archive_cmds_F77 \ 15676 archive_expsym_cmds_F77 \ 15677 postinstall_cmds_F77 \ 15678 postuninstall_cmds_F77 \ 15679 old_archive_from_expsyms_cmds_F77 \ 15680 allow_undefined_flag_F77 \ 15681 no_undefined_flag_F77 \ 15682 export_symbols_cmds_F77 \ 15683 hardcode_libdir_flag_spec_F77 \ 15684 hardcode_libdir_flag_spec_ld_F77 \ 15685 hardcode_libdir_separator_F77 \ 15686 hardcode_automatic_F77 \ 15687 module_cmds_F77 \ 15688 module_expsym_cmds_F77 \ 15689 lt_cv_prog_compiler_c_o_F77 \ 15690 exclude_expsyms_F77 \ 15691 include_expsyms_F77; do 15692 15693 case $var in 15694 old_archive_cmds_F77 | \ 15695 old_archive_from_new_cmds_F77 | \ 15696 archive_cmds_F77 | \ 15697 archive_expsym_cmds_F77 | \ 15698 module_cmds_F77 | \ 15699 module_expsym_cmds_F77 | \ 15700 old_archive_from_expsyms_cmds_F77 | \ 15701 export_symbols_cmds_F77 | \ 15702 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15703 postinstall_cmds | postuninstall_cmds | \ 15704 old_postinstall_cmds | old_postuninstall_cmds | \ 15705 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15706 # Double-quote double-evaled strings. 15707 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15708 ;; 15709 *) 15710 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15711 ;; 15712 esac 15713 done 15714 15715 case $lt_echo in 15716 *'\$0 --fallback-echo"') 15717 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15718 ;; 15719 esac 15720 15721cfgfile="$ofile" 15722 15723 cat <<__EOF__ >> "$cfgfile" 15724# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15725 15726# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15727 15728# Shell to use when invoking shell scripts. 15729SHELL=$lt_SHELL 15730 15731# Whether or not to build shared libraries. 15732build_libtool_libs=$enable_shared 15733 15734# Whether or not to build static libraries. 15735build_old_libs=$enable_static 15736 15737# Whether or not to add -lc for building shared libraries. 15738build_libtool_need_lc=$archive_cmds_need_lc_F77 15739 15740# Whether or not to disallow shared libs when runtime libs are static 15741allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15742 15743# Whether or not to optimize for fast installation. 15744fast_install=$enable_fast_install 15745 15746# The host system. 15747host_alias=$host_alias 15748host=$host 15749host_os=$host_os 15750 15751# The build system. 15752build_alias=$build_alias 15753build=$build 15754build_os=$build_os 15755 15756# An echo program that does not interpret backslashes. 15757echo=$lt_echo 15758 15759# The archiver. 15760AR=$lt_AR 15761AR_FLAGS=$lt_AR_FLAGS 15762 15763# A C compiler. 15764LTCC=$lt_LTCC 15765 15766# LTCC compiler flags. 15767LTCFLAGS=$lt_LTCFLAGS 15768 15769# A language-specific compiler. 15770CC=$lt_compiler_F77 15771 15772# Is the compiler the GNU C compiler? 15773with_gcc=$GCC_F77 15774 15775# An ERE matcher. 15776EGREP=$lt_EGREP 15777 15778# The linker used to build libraries. 15779LD=$lt_LD_F77 15780 15781# Whether we need hard or soft links. 15782LN_S=$lt_LN_S 15783 15784# A BSD-compatible nm program. 15785NM=$lt_NM 15786 15787# A symbol stripping program 15788STRIP=$lt_STRIP 15789 15790# Used to examine libraries when file_magic_cmd begins "file" 15791MAGIC_CMD=$MAGIC_CMD 15792 15793# Used on cygwin: DLL creation program. 15794DLLTOOL="$DLLTOOL" 15795 15796# Used on cygwin: object dumper. 15797OBJDUMP="$OBJDUMP" 15798 15799# Used on cygwin: assembler. 15800AS="$AS" 15801 15802# The name of the directory that contains temporary libtool files. 15803objdir=$objdir 15804 15805# How to create reloadable object files. 15806reload_flag=$lt_reload_flag 15807reload_cmds=$lt_reload_cmds 15808 15809# How to pass a linker flag through the compiler. 15810wl=$lt_lt_prog_compiler_wl_F77 15811 15812# Object file suffix (normally "o"). 15813objext="$ac_objext" 15814 15815# Old archive suffix (normally "a"). 15816libext="$libext" 15817 15818# Shared library suffix (normally ".so"). 15819shrext_cmds='$shrext_cmds' 15820 15821# Executable file suffix (normally ""). 15822exeext="$exeext" 15823 15824# Additional compiler flags for building library objects. 15825pic_flag=$lt_lt_prog_compiler_pic_F77 15826pic_mode=$pic_mode 15827 15828# What is the maximum length of a command? 15829max_cmd_len=$lt_cv_sys_max_cmd_len 15830 15831# Does compiler simultaneously support -c and -o options? 15832compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15833 15834# Must we lock files when doing compilation? 15835need_locks=$lt_need_locks 15836 15837# Do we need the lib prefix for modules? 15838need_lib_prefix=$need_lib_prefix 15839 15840# Do we need a version for libraries? 15841need_version=$need_version 15842 15843# Whether dlopen is supported. 15844dlopen_support=$enable_dlopen 15845 15846# Whether dlopen of programs is supported. 15847dlopen_self=$enable_dlopen_self 15848 15849# Whether dlopen of statically linked programs is supported. 15850dlopen_self_static=$enable_dlopen_self_static 15851 15852# Compiler flag to prevent dynamic linking. 15853link_static_flag=$lt_lt_prog_compiler_static_F77 15854 15855# Compiler flag to turn off builtin functions. 15856no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15857 15858# Compiler flag to allow reflexive dlopens. 15859export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15860 15861# Compiler flag to generate shared objects directly from archives. 15862whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15863 15864# Compiler flag to generate thread-safe objects. 15865thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15866 15867# Library versioning type. 15868version_type=$version_type 15869 15870# Format of library name prefix. 15871libname_spec=$lt_libname_spec 15872 15873# List of archive names. First name is the real one, the rest are links. 15874# The last name is the one that the linker finds with -lNAME. 15875library_names_spec=$lt_library_names_spec 15876 15877# The coded name of the library, if different from the real name. 15878soname_spec=$lt_soname_spec 15879 15880# Commands used to build and install an old-style archive. 15881RANLIB=$lt_RANLIB 15882old_archive_cmds=$lt_old_archive_cmds_F77 15883old_postinstall_cmds=$lt_old_postinstall_cmds 15884old_postuninstall_cmds=$lt_old_postuninstall_cmds 15885 15886# Create an old-style archive from a shared archive. 15887old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15888 15889# Create a temporary old-style archive to link instead of a shared archive. 15890old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15891 15892# Commands used to build and install a shared archive. 15893archive_cmds=$lt_archive_cmds_F77 15894archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15895postinstall_cmds=$lt_postinstall_cmds 15896postuninstall_cmds=$lt_postuninstall_cmds 15897 15898# Commands used to build a loadable module (assumed same as above if empty) 15899module_cmds=$lt_module_cmds_F77 15900module_expsym_cmds=$lt_module_expsym_cmds_F77 15901 15902# Commands to strip libraries. 15903old_striplib=$lt_old_striplib 15904striplib=$lt_striplib 15905 15906# Dependencies to place before the objects being linked to create a 15907# shared library. 15908predep_objects=$lt_predep_objects_F77 15909 15910# Dependencies to place after the objects being linked to create a 15911# shared library. 15912postdep_objects=$lt_postdep_objects_F77 15913 15914# Dependencies to place before the objects being linked to create a 15915# shared library. 15916predeps=$lt_predeps_F77 15917 15918# Dependencies to place after the objects being linked to create a 15919# shared library. 15920postdeps=$lt_postdeps_F77 15921 15922# The library search path used internally by the compiler when linking 15923# a shared library. 15924compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15925 15926# Method to check whether dependent libraries are shared objects. 15927deplibs_check_method=$lt_deplibs_check_method 15928 15929# Command to use when deplibs_check_method == file_magic. 15930file_magic_cmd=$lt_file_magic_cmd 15931 15932# Flag that allows shared libraries with undefined symbols to be built. 15933allow_undefined_flag=$lt_allow_undefined_flag_F77 15934 15935# Flag that forces no undefined symbols. 15936no_undefined_flag=$lt_no_undefined_flag_F77 15937 15938# Commands used to finish a libtool library installation in a directory. 15939finish_cmds=$lt_finish_cmds 15940 15941# Same as above, but a single script fragment to be evaled but not shown. 15942finish_eval=$lt_finish_eval 15943 15944# Take the output of nm and produce a listing of raw symbols and C names. 15945global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15946 15947# Transform the output of nm in a proper C declaration 15948global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15949 15950# Transform the output of nm in a C name address pair 15951global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15952 15953# This is the shared library runtime path variable. 15954runpath_var=$runpath_var 15955 15956# This is the shared library path variable. 15957shlibpath_var=$shlibpath_var 15958 15959# Is shlibpath searched before the hard-coded library search path? 15960shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15961 15962# How to hardcode a shared library path into an executable. 15963hardcode_action=$hardcode_action_F77 15964 15965# Whether we should hardcode library paths into libraries. 15966hardcode_into_libs=$hardcode_into_libs 15967 15968# Flag to hardcode \$libdir into a binary during linking. 15969# This must work even if \$libdir does not exist. 15970hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15971 15972# If ld is used when linking, flag to hardcode \$libdir into 15973# a binary during linking. This must work even if \$libdir does 15974# not exist. 15975hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15976 15977# Whether we need a single -rpath flag with a separated argument. 15978hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15979 15980# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15981# resulting binary. 15982hardcode_direct=$hardcode_direct_F77 15983 15984# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15985# resulting binary. 15986hardcode_minus_L=$hardcode_minus_L_F77 15987 15988# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15989# the resulting binary. 15990hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15991 15992# Set to yes if building a shared library automatically hardcodes DIR into the library 15993# and all subsequent libraries and executables linked against it. 15994hardcode_automatic=$hardcode_automatic_F77 15995 15996# Variables whose values should be saved in libtool wrapper scripts and 15997# restored at relink time. 15998variables_saved_for_relink="$variables_saved_for_relink" 15999 16000# Whether libtool must link a program against all its dependency libraries. 16001link_all_deplibs=$link_all_deplibs_F77 16002 16003# Compile-time system search path for libraries 16004sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16005 16006# Run-time system search path for libraries 16007sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16008 16009# Fix the shell variable \$srcfile for the compiler. 16010fix_srcfile_path="$fix_srcfile_path_F77" 16011 16012# Set to yes if exported symbols are required. 16013always_export_symbols=$always_export_symbols_F77 16014 16015# The commands to list exported symbols. 16016export_symbols_cmds=$lt_export_symbols_cmds_F77 16017 16018# The commands to extract the exported symbol list from a shared archive. 16019extract_expsyms_cmds=$lt_extract_expsyms_cmds 16020 16021# Symbols that should not be listed in the preloaded symbols. 16022exclude_expsyms=$lt_exclude_expsyms_F77 16023 16024# Symbols that must always be exported. 16025include_expsyms=$lt_include_expsyms_F77 16026 16027# ### END LIBTOOL TAG CONFIG: $tagname 16028 16029__EOF__ 16030 16031 16032else 16033 # If there is no Makefile yet, we rely on a make rule to execute 16034 # `config.status --recheck' to rerun these tests and create the 16035 # libtool script then. 16036 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16037 if test -f "$ltmain_in"; then 16038 test -f Makefile && make "$ltmain" 16039 fi 16040fi 16041 16042 16043ac_ext=c 16044ac_cpp='$CPP $CPPFLAGS' 16045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16047ac_compiler_gnu=$ac_cv_c_compiler_gnu 16048 16049CC="$lt_save_CC" 16050 16051 else 16052 tagname="" 16053 fi 16054 ;; 16055 16056 GCJ) 16057 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16058 16059 16060# Source file extension for Java test sources. 16061ac_ext=java 16062 16063# Object file extension for compiled Java test sources. 16064objext=o 16065objext_GCJ=$objext 16066 16067# Code to be used in simple compile tests 16068lt_simple_compile_test_code="class foo {}\n" 16069 16070# Code to be used in simple link tests 16071lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16072 16073# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16074 16075# If no C compiler was specified, use CC. 16076LTCC=${LTCC-"$CC"} 16077 16078# If no C compiler flags were specified, use CFLAGS. 16079LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16080 16081# Allow CC to be a program name with arguments. 16082compiler=$CC 16083 16084 16085# save warnings/boilerplate of simple test code 16086ac_outfile=conftest.$ac_objext 16087printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16088eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16089_lt_compiler_boilerplate=`cat conftest.err` 16090$rm conftest* 16091 16092ac_outfile=conftest.$ac_objext 16093printf "$lt_simple_link_test_code" >conftest.$ac_ext 16094eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16095_lt_linker_boilerplate=`cat conftest.err` 16096$rm conftest* 16097 16098 16099# Allow CC to be a program name with arguments. 16100lt_save_CC="$CC" 16101CC=${GCJ-"gcj"} 16102compiler=$CC 16103compiler_GCJ=$CC 16104for cc_temp in $compiler""; do 16105 case $cc_temp in 16106 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16107 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16108 \-*) ;; 16109 *) break;; 16110 esac 16111done 16112cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16113 16114 16115# GCJ did not exist at the time GCC didn't implicitly link libc in. 16116archive_cmds_need_lc_GCJ=no 16117 16118old_archive_cmds_GCJ=$old_archive_cmds 16119 16120 16121lt_prog_compiler_no_builtin_flag_GCJ= 16122 16123if test "$GCC" = yes; then 16124 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16125 16126 16127{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16128echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16129if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16130 echo $ECHO_N "(cached) $ECHO_C" >&6 16131else 16132 lt_cv_prog_compiler_rtti_exceptions=no 16133 ac_outfile=conftest.$ac_objext 16134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16135 lt_compiler_flag="-fno-rtti -fno-exceptions" 16136 # Insert the option either (1) after the last *FLAGS variable, or 16137 # (2) before a word containing "conftest.", or (3) at the end. 16138 # Note that $ac_compile itself does not contain backslashes and begins 16139 # with a dollar sign (not a hyphen), so the echo should work correctly. 16140 # The option is referenced via a variable to avoid confusing sed. 16141 lt_compile=`echo "$ac_compile" | $SED \ 16142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16144 -e 's:$: $lt_compiler_flag:'` 16145 (eval echo "\"\$as_me:16145: $lt_compile\"" >&5) 16146 (eval "$lt_compile" 2>conftest.err) 16147 ac_status=$? 16148 cat conftest.err >&5 16149 echo "$as_me:16149: \$? = $ac_status" >&5 16150 if (exit $ac_status) && test -s "$ac_outfile"; then 16151 # The compiler can only warn and ignore the option if not recognized 16152 # So say no if there are warnings other than the usual output. 16153 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16156 lt_cv_prog_compiler_rtti_exceptions=yes 16157 fi 16158 fi 16159 $rm conftest* 16160 16161fi 16162{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16163echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16164 16165if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16166 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16167else 16168 : 16169fi 16170 16171fi 16172 16173lt_prog_compiler_wl_GCJ= 16174lt_prog_compiler_pic_GCJ= 16175lt_prog_compiler_static_GCJ= 16176 16177{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16178echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16179 16180 if test "$GCC" = yes; then 16181 lt_prog_compiler_wl_GCJ='-Wl,' 16182 lt_prog_compiler_static_GCJ='-static' 16183 16184 case $host_os in 16185 aix*) 16186 # All AIX code is PIC. 16187 if test "$host_cpu" = ia64; then 16188 # AIX 5 now supports IA64 processor 16189 lt_prog_compiler_static_GCJ='-Bstatic' 16190 fi 16191 ;; 16192 16193 amigaos*) 16194 # FIXME: we need at least 68020 code to build shared libraries, but 16195 # adding the `-m68020' flag to GCC prevents building anything better, 16196 # like `-m68040'. 16197 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16198 ;; 16199 16200 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16201 # PIC is the default for these OSes. 16202 ;; 16203 16204 mingw* | pw32* | os2*) 16205 # This hack is so that the source file can tell whether it is being 16206 # built for inclusion in a dll (and should export symbols for example). 16207 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16208 ;; 16209 16210 darwin* | rhapsody*) 16211 # PIC is the default on this platform 16212 # Common symbols not allowed in MH_DYLIB files 16213 lt_prog_compiler_pic_GCJ='-fno-common' 16214 ;; 16215 16216 interix3*) 16217 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16218 # Instead, we relocate shared libraries at runtime. 16219 ;; 16220 16221 msdosdjgpp*) 16222 # Just because we use GCC doesn't mean we suddenly get shared libraries 16223 # on systems that don't support them. 16224 lt_prog_compiler_can_build_shared_GCJ=no 16225 enable_shared=no 16226 ;; 16227 16228 sysv4*MP*) 16229 if test -d /usr/nec; then 16230 lt_prog_compiler_pic_GCJ=-Kconform_pic 16231 fi 16232 ;; 16233 16234 hpux*) 16235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16236 # not for PA HP-UX. 16237 case $host_cpu in 16238 hppa*64*|ia64*) 16239 # +Z the default 16240 ;; 16241 *) 16242 lt_prog_compiler_pic_GCJ='-fPIC' 16243 ;; 16244 esac 16245 ;; 16246 16247 *) 16248 lt_prog_compiler_pic_GCJ='-fPIC' 16249 ;; 16250 esac 16251 else 16252 # PORTME Check for flag to pass linker flags through the system compiler. 16253 case $host_os in 16254 aix*) 16255 lt_prog_compiler_wl_GCJ='-Wl,' 16256 if test "$host_cpu" = ia64; then 16257 # AIX 5 now supports IA64 processor 16258 lt_prog_compiler_static_GCJ='-Bstatic' 16259 else 16260 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16261 fi 16262 ;; 16263 darwin*) 16264 # PIC is the default on this platform 16265 # Common symbols not allowed in MH_DYLIB files 16266 case $cc_basename in 16267 xlc*) 16268 lt_prog_compiler_pic_GCJ='-qnocommon' 16269 lt_prog_compiler_wl_GCJ='-Wl,' 16270 ;; 16271 esac 16272 ;; 16273 16274 mingw* | pw32* | os2*) 16275 # This hack is so that the source file can tell whether it is being 16276 # built for inclusion in a dll (and should export symbols for example). 16277 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16278 ;; 16279 16280 hpux9* | hpux10* | hpux11*) 16281 lt_prog_compiler_wl_GCJ='-Wl,' 16282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16283 # not for PA HP-UX. 16284 case $host_cpu in 16285 hppa*64*|ia64*) 16286 # +Z the default 16287 ;; 16288 *) 16289 lt_prog_compiler_pic_GCJ='+Z' 16290 ;; 16291 esac 16292 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16293 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16294 ;; 16295 16296 irix5* | irix6* | nonstopux*) 16297 lt_prog_compiler_wl_GCJ='-Wl,' 16298 # PIC (with -KPIC) is the default. 16299 lt_prog_compiler_static_GCJ='-non_shared' 16300 ;; 16301 16302 newsos6) 16303 lt_prog_compiler_pic_GCJ='-KPIC' 16304 lt_prog_compiler_static_GCJ='-Bstatic' 16305 ;; 16306 16307 linux*) 16308 case $cc_basename in 16309 icc* | ecc*) 16310 lt_prog_compiler_wl_GCJ='-Wl,' 16311 lt_prog_compiler_pic_GCJ='-KPIC' 16312 lt_prog_compiler_static_GCJ='-static' 16313 ;; 16314 pgcc* | pgf77* | pgf90* | pgf95*) 16315 # Portland Group compilers (*not* the Pentium gcc compiler, 16316 # which looks to be a dead project) 16317 lt_prog_compiler_wl_GCJ='-Wl,' 16318 lt_prog_compiler_pic_GCJ='-fpic' 16319 lt_prog_compiler_static_GCJ='-Bstatic' 16320 ;; 16321 ccc*) 16322 lt_prog_compiler_wl_GCJ='-Wl,' 16323 # All Alpha code is PIC. 16324 lt_prog_compiler_static_GCJ='-non_shared' 16325 ;; 16326 esac 16327 ;; 16328 16329 osf3* | osf4* | osf5*) 16330 lt_prog_compiler_wl_GCJ='-Wl,' 16331 # All OSF/1 code is PIC. 16332 lt_prog_compiler_static_GCJ='-non_shared' 16333 ;; 16334 16335 solaris*) 16336 lt_prog_compiler_pic_GCJ='-KPIC' 16337 lt_prog_compiler_static_GCJ='-Bstatic' 16338 case $cc_basename in 16339 f77* | f90* | f95*) 16340 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16341 *) 16342 lt_prog_compiler_wl_GCJ='-Wl,';; 16343 esac 16344 ;; 16345 16346 sunos4*) 16347 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16348 lt_prog_compiler_pic_GCJ='-PIC' 16349 lt_prog_compiler_static_GCJ='-Bstatic' 16350 ;; 16351 16352 sysv4 | sysv4.2uw2* | sysv4.3*) 16353 lt_prog_compiler_wl_GCJ='-Wl,' 16354 lt_prog_compiler_pic_GCJ='-KPIC' 16355 lt_prog_compiler_static_GCJ='-Bstatic' 16356 ;; 16357 16358 sysv4*MP*) 16359 if test -d /usr/nec ;then 16360 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16361 lt_prog_compiler_static_GCJ='-Bstatic' 16362 fi 16363 ;; 16364 16365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16366 lt_prog_compiler_wl_GCJ='-Wl,' 16367 lt_prog_compiler_pic_GCJ='-KPIC' 16368 lt_prog_compiler_static_GCJ='-Bstatic' 16369 ;; 16370 16371 unicos*) 16372 lt_prog_compiler_wl_GCJ='-Wl,' 16373 lt_prog_compiler_can_build_shared_GCJ=no 16374 ;; 16375 16376 uts4*) 16377 lt_prog_compiler_pic_GCJ='-pic' 16378 lt_prog_compiler_static_GCJ='-Bstatic' 16379 ;; 16380 16381 *) 16382 lt_prog_compiler_can_build_shared_GCJ=no 16383 ;; 16384 esac 16385 fi 16386 16387{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16388echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16389 16390# 16391# Check to make sure the PIC flag actually works. 16392# 16393if test -n "$lt_prog_compiler_pic_GCJ"; then 16394 16395{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16396echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16397if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16398 echo $ECHO_N "(cached) $ECHO_C" >&6 16399else 16400 lt_prog_compiler_pic_works_GCJ=no 16401 ac_outfile=conftest.$ac_objext 16402 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16403 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16404 # Insert the option either (1) after the last *FLAGS variable, or 16405 # (2) before a word containing "conftest.", or (3) at the end. 16406 # Note that $ac_compile itself does not contain backslashes and begins 16407 # with a dollar sign (not a hyphen), so the echo should work correctly. 16408 # The option is referenced via a variable to avoid confusing sed. 16409 lt_compile=`echo "$ac_compile" | $SED \ 16410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16412 -e 's:$: $lt_compiler_flag:'` 16413 (eval echo "\"\$as_me:16413: $lt_compile\"" >&5) 16414 (eval "$lt_compile" 2>conftest.err) 16415 ac_status=$? 16416 cat conftest.err >&5 16417 echo "$as_me:16417: \$? = $ac_status" >&5 16418 if (exit $ac_status) && test -s "$ac_outfile"; then 16419 # The compiler can only warn and ignore the option if not recognized 16420 # So say no if there are warnings other than the usual output. 16421 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16423 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16424 lt_prog_compiler_pic_works_GCJ=yes 16425 fi 16426 fi 16427 $rm conftest* 16428 16429fi 16430{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16431echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16432 16433if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16434 case $lt_prog_compiler_pic_GCJ in 16435 "" | " "*) ;; 16436 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16437 esac 16438else 16439 lt_prog_compiler_pic_GCJ= 16440 lt_prog_compiler_can_build_shared_GCJ=no 16441fi 16442 16443fi 16444case $host_os in 16445 # For platforms which do not support PIC, -DPIC is meaningless: 16446 *djgpp*) 16447 lt_prog_compiler_pic_GCJ= 16448 ;; 16449 *) 16450 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16451 ;; 16452esac 16453 16454# 16455# Check to make sure the static flag actually works. 16456# 16457wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16458{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16459echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16460if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16461 echo $ECHO_N "(cached) $ECHO_C" >&6 16462else 16463 lt_prog_compiler_static_works_GCJ=no 16464 save_LDFLAGS="$LDFLAGS" 16465 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16466 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16468 # The linker can only warn and ignore the option if not recognized 16469 # So say no if there are warnings 16470 if test -s conftest.err; then 16471 # Append any errors to the config.log. 16472 cat conftest.err 1>&5 16473 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16475 if diff conftest.exp conftest.er2 >/dev/null; then 16476 lt_prog_compiler_static_works_GCJ=yes 16477 fi 16478 else 16479 lt_prog_compiler_static_works_GCJ=yes 16480 fi 16481 fi 16482 $rm conftest* 16483 LDFLAGS="$save_LDFLAGS" 16484 16485fi 16486{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16487echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16488 16489if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16490 : 16491else 16492 lt_prog_compiler_static_GCJ= 16493fi 16494 16495 16496{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16497echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16498if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16499 echo $ECHO_N "(cached) $ECHO_C" >&6 16500else 16501 lt_cv_prog_compiler_c_o_GCJ=no 16502 $rm -r conftest 2>/dev/null 16503 mkdir conftest 16504 cd conftest 16505 mkdir out 16506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16507 16508 lt_compiler_flag="-o out/conftest2.$ac_objext" 16509 # Insert the option either (1) after the last *FLAGS variable, or 16510 # (2) before a word containing "conftest.", or (3) at the end. 16511 # Note that $ac_compile itself does not contain backslashes and begins 16512 # with a dollar sign (not a hyphen), so the echo should work correctly. 16513 lt_compile=`echo "$ac_compile" | $SED \ 16514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16516 -e 's:$: $lt_compiler_flag:'` 16517 (eval echo "\"\$as_me:16517: $lt_compile\"" >&5) 16518 (eval "$lt_compile" 2>out/conftest.err) 16519 ac_status=$? 16520 cat out/conftest.err >&5 16521 echo "$as_me:16521: \$? = $ac_status" >&5 16522 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16523 then 16524 # The compiler can only warn and ignore the option if not recognized 16525 # So say no if there are warnings 16526 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16527 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16528 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16529 lt_cv_prog_compiler_c_o_GCJ=yes 16530 fi 16531 fi 16532 chmod u+w . 2>&5 16533 $rm conftest* 16534 # SGI C++ compiler will create directory out/ii_files/ for 16535 # template instantiation 16536 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16537 $rm out/* && rmdir out 16538 cd .. 16539 rmdir conftest 16540 $rm conftest* 16541 16542fi 16543{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16544echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16545 16546 16547hard_links="nottested" 16548if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16549 # do not overwrite the value of need_locks provided by the user 16550 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16551echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16552 hard_links=yes 16553 $rm conftest* 16554 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16555 touch conftest.a 16556 ln conftest.a conftest.b 2>&5 || hard_links=no 16557 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16558 { echo "$as_me:$LINENO: result: $hard_links" >&5 16559echo "${ECHO_T}$hard_links" >&6; } 16560 if test "$hard_links" = no; then 16561 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16562echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16563 need_locks=warn 16564 fi 16565else 16566 need_locks=no 16567fi 16568 16569{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16570echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16571 16572 runpath_var= 16573 allow_undefined_flag_GCJ= 16574 enable_shared_with_static_runtimes_GCJ=no 16575 archive_cmds_GCJ= 16576 archive_expsym_cmds_GCJ= 16577 old_archive_From_new_cmds_GCJ= 16578 old_archive_from_expsyms_cmds_GCJ= 16579 export_dynamic_flag_spec_GCJ= 16580 whole_archive_flag_spec_GCJ= 16581 thread_safe_flag_spec_GCJ= 16582 hardcode_libdir_flag_spec_GCJ= 16583 hardcode_libdir_flag_spec_ld_GCJ= 16584 hardcode_libdir_separator_GCJ= 16585 hardcode_direct_GCJ=no 16586 hardcode_minus_L_GCJ=no 16587 hardcode_shlibpath_var_GCJ=unsupported 16588 link_all_deplibs_GCJ=unknown 16589 hardcode_automatic_GCJ=no 16590 module_cmds_GCJ= 16591 module_expsym_cmds_GCJ= 16592 always_export_symbols_GCJ=no 16593 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16594 # include_expsyms should be a list of space-separated symbols to be *always* 16595 # included in the symbol list 16596 include_expsyms_GCJ= 16597 # exclude_expsyms can be an extended regexp of symbols to exclude 16598 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16599 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16600 # as well as any symbol that contains `d'. 16601 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16602 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16603 # platforms (ab)use it in PIC code, but their linkers get confused if 16604 # the symbol is explicitly referenced. Since portable code cannot 16605 # rely on this symbol name, it's probably fine to never include it in 16606 # preloaded symbol tables. 16607 extract_expsyms_cmds= 16608 # Just being paranoid about ensuring that cc_basename is set. 16609 for cc_temp in $compiler""; do 16610 case $cc_temp in 16611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16613 \-*) ;; 16614 *) break;; 16615 esac 16616done 16617cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16618 16619 case $host_os in 16620 cygwin* | mingw* | pw32*) 16621 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16622 # When not using gcc, we currently assume that we are using 16623 # Microsoft Visual C++. 16624 if test "$GCC" != yes; then 16625 with_gnu_ld=no 16626 fi 16627 ;; 16628 interix*) 16629 # we just hope/assume this is gcc and not c89 (= MSVC++) 16630 with_gnu_ld=yes 16631 ;; 16632 openbsd*) 16633 with_gnu_ld=no 16634 ;; 16635 esac 16636 16637 ld_shlibs_GCJ=yes 16638 if test "$with_gnu_ld" = yes; then 16639 # If archive_cmds runs LD, not CC, wlarc should be empty 16640 wlarc='${wl}' 16641 16642 # Set some defaults for GNU ld with shared library support. These 16643 # are reset later if shared libraries are not supported. Putting them 16644 # here allows them to be overridden if necessary. 16645 runpath_var=LD_RUN_PATH 16646 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16647 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16648 # ancient GNU ld didn't support --whole-archive et. al. 16649 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16650 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16651 else 16652 whole_archive_flag_spec_GCJ= 16653 fi 16654 supports_anon_versioning=no 16655 case `$LD -v 2>/dev/null` in 16656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16659 *\ 2.11.*) ;; # other 2.11 versions 16660 *) supports_anon_versioning=yes ;; 16661 esac 16662 16663 # See if GNU ld supports shared libraries. 16664 case $host_os in 16665 aix3* | aix4* | aix5*) 16666 # On AIX/PPC, the GNU linker is very broken 16667 if test "$host_cpu" != ia64; then 16668 ld_shlibs_GCJ=no 16669 cat <<EOF 1>&2 16670 16671*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16672*** to be unable to reliably create shared libraries on AIX. 16673*** Therefore, libtool is disabling shared libraries support. If you 16674*** really care for shared libraries, you may want to modify your PATH 16675*** so that a non-GNU linker is found, and then restart. 16676 16677EOF 16678 fi 16679 ;; 16680 16681 amigaos*) 16682 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)' 16683 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16684 hardcode_minus_L_GCJ=yes 16685 16686 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16687 # that the semantics of dynamic libraries on AmigaOS, at least up 16688 # to version 4, is to share data among multiple programs linked 16689 # with the same dynamic library. Since this doesn't match the 16690 # behavior of shared libraries on other platforms, we can't use 16691 # them. 16692 ld_shlibs_GCJ=no 16693 ;; 16694 16695 beos*) 16696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16697 allow_undefined_flag_GCJ=unsupported 16698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16699 # support --undefined. This deserves some investigation. FIXME 16700 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16701 else 16702 ld_shlibs_GCJ=no 16703 fi 16704 ;; 16705 16706 cygwin* | mingw* | pw32*) 16707 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16708 # as there is no search path for DLLs. 16709 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16710 allow_undefined_flag_GCJ=unsupported 16711 always_export_symbols_GCJ=no 16712 enable_shared_with_static_runtimes_GCJ=yes 16713 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16714 16715 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16716 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16717 # If the export-symbols file already is a .def file (1st line 16718 # is EXPORTS), use it as is; otherwise, prepend... 16719 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16720 cp $export_symbols $output_objdir/$soname.def; 16721 else 16722 echo EXPORTS > $output_objdir/$soname.def; 16723 cat $export_symbols >> $output_objdir/$soname.def; 16724 fi~ 16725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16726 else 16727 ld_shlibs_GCJ=no 16728 fi 16729 ;; 16730 16731 interix3*) 16732 hardcode_direct_GCJ=no 16733 hardcode_shlibpath_var_GCJ=no 16734 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16735 export_dynamic_flag_spec_GCJ='${wl}-E' 16736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16737 # Instead, shared libraries are loaded at an image base (0x10000000 by 16738 # default) and relocated if they conflict, which is a slow very memory 16739 # consuming and fragmenting process. To avoid this, we pick a random, 16740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16741 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16742 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' 16743 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' 16744 ;; 16745 16746 linux*) 16747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16748 tmp_addflag= 16749 case $cc_basename,$host_cpu in 16750 pgcc*) # Portland Group C compiler 16751 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' 16752 tmp_addflag=' $pic_flag' 16753 ;; 16754 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16755 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' 16756 tmp_addflag=' $pic_flag -Mnomain' ;; 16757 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16758 tmp_addflag=' -i_dynamic' ;; 16759 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16760 tmp_addflag=' -i_dynamic -nofor_main' ;; 16761 ifc* | ifort*) # Intel Fortran compiler 16762 tmp_addflag=' -nofor_main' ;; 16763 esac 16764 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16765 16766 if test $supports_anon_versioning = yes; then 16767 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16768 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16769 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16770 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16771 fi 16772 else 16773 ld_shlibs_GCJ=no 16774 fi 16775 ;; 16776 16777 netbsd*) 16778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16779 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16780 wlarc= 16781 else 16782 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16783 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16784 fi 16785 ;; 16786 16787 solaris*) 16788 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16789 ld_shlibs_GCJ=no 16790 cat <<EOF 1>&2 16791 16792*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16793*** create shared libraries on Solaris systems. Therefore, libtool 16794*** is disabling shared libraries support. We urge you to upgrade GNU 16795*** binutils to release 2.9.1 or newer. Another option is to modify 16796*** your PATH or compiler configuration so that the native linker is 16797*** used, and then restart. 16798 16799EOF 16800 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16801 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16802 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16803 else 16804 ld_shlibs_GCJ=no 16805 fi 16806 ;; 16807 16808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16809 case `$LD -v 2>&1` in 16810 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16811 ld_shlibs_GCJ=no 16812 cat <<_LT_EOF 1>&2 16813 16814*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16815*** reliably create shared libraries on SCO systems. Therefore, libtool 16816*** is disabling shared libraries support. We urge you to upgrade GNU 16817*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16818*** your PATH or compiler configuration so that the native linker is 16819*** used, and then restart. 16820 16821_LT_EOF 16822 ;; 16823 *) 16824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16825 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16826 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16827 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16828 else 16829 ld_shlibs_GCJ=no 16830 fi 16831 ;; 16832 esac 16833 ;; 16834 16835 sunos4*) 16836 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16837 wlarc= 16838 hardcode_direct_GCJ=yes 16839 hardcode_shlibpath_var_GCJ=no 16840 ;; 16841 16842 *) 16843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16844 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16845 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16846 else 16847 ld_shlibs_GCJ=no 16848 fi 16849 ;; 16850 esac 16851 16852 if test "$ld_shlibs_GCJ" = no; then 16853 runpath_var= 16854 hardcode_libdir_flag_spec_GCJ= 16855 export_dynamic_flag_spec_GCJ= 16856 whole_archive_flag_spec_GCJ= 16857 fi 16858 else 16859 # PORTME fill in a description of your system's linker (not GNU ld) 16860 case $host_os in 16861 aix3*) 16862 allow_undefined_flag_GCJ=unsupported 16863 always_export_symbols_GCJ=yes 16864 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' 16865 # Note: this linker hardcodes the directories in LIBPATH if there 16866 # are no directories specified by -L. 16867 hardcode_minus_L_GCJ=yes 16868 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16869 # Neither direct hardcoding nor static linking is supported with a 16870 # broken collect2. 16871 hardcode_direct_GCJ=unsupported 16872 fi 16873 ;; 16874 16875 aix4* | aix5*) 16876 if test "$host_cpu" = ia64; then 16877 # On IA64, the linker does run time linking by default, so we don't 16878 # have to do anything special. 16879 aix_use_runtimelinking=no 16880 exp_sym_flag='-Bexport' 16881 no_entry_flag="" 16882 else 16883 # If we're using GNU nm, then we don't want the "-C" option. 16884 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16885 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16886 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' 16887 else 16888 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' 16889 fi 16890 aix_use_runtimelinking=no 16891 16892 # Test if we are trying to use run time linking or normal 16893 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16894 # need to do runtime linking. 16895 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16896 for ld_flag in $LDFLAGS; do 16897 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16898 aix_use_runtimelinking=yes 16899 break 16900 fi 16901 done 16902 ;; 16903 esac 16904 16905 exp_sym_flag='-bexport' 16906 no_entry_flag='-bnoentry' 16907 fi 16908 16909 # When large executables or shared objects are built, AIX ld can 16910 # have problems creating the table of contents. If linking a library 16911 # or program results in "error TOC overflow" add -mminimal-toc to 16912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16914 16915 archive_cmds_GCJ='' 16916 hardcode_direct_GCJ=yes 16917 hardcode_libdir_separator_GCJ=':' 16918 link_all_deplibs_GCJ=yes 16919 16920 if test "$GCC" = yes; then 16921 case $host_os in aix4.[012]|aix4.[012].*) 16922 # We only want to do this on AIX 4.2 and lower, the check 16923 # below for broken collect2 doesn't work under 4.3+ 16924 collect2name=`${CC} -print-prog-name=collect2` 16925 if test -f "$collect2name" && \ 16926 strings "$collect2name" | grep resolve_lib_name >/dev/null 16927 then 16928 # We have reworked collect2 16929 hardcode_direct_GCJ=yes 16930 else 16931 # We have old collect2 16932 hardcode_direct_GCJ=unsupported 16933 # It fails to find uninstalled libraries when the uninstalled 16934 # path is not listed in the libpath. Setting hardcode_minus_L 16935 # to unsupported forces relinking 16936 hardcode_minus_L_GCJ=yes 16937 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16938 hardcode_libdir_separator_GCJ= 16939 fi 16940 ;; 16941 esac 16942 shared_flag='-shared' 16943 if test "$aix_use_runtimelinking" = yes; then 16944 shared_flag="$shared_flag "'${wl}-G' 16945 fi 16946 else 16947 # not using gcc 16948 if test "$host_cpu" = ia64; then 16949 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16950 # chokes on -Wl,-G. The following line is correct: 16951 shared_flag='-G' 16952 else 16953 if test "$aix_use_runtimelinking" = yes; then 16954 shared_flag='${wl}-G' 16955 else 16956 shared_flag='${wl}-bM:SRE' 16957 fi 16958 fi 16959 fi 16960 16961 # It seems that -bexpall does not export symbols beginning with 16962 # underscore (_), so it is better to generate a list of symbols to export. 16963 always_export_symbols_GCJ=yes 16964 if test "$aix_use_runtimelinking" = yes; then 16965 # Warning - without using the other runtime loading flags (-brtl), 16966 # -berok will link without error, but may produce a broken library. 16967 allow_undefined_flag_GCJ='-berok' 16968 # Determine the default libpath from the value encoded in an empty executable. 16969 cat >conftest.$ac_ext <<_ACEOF 16970/* confdefs.h. */ 16971_ACEOF 16972cat confdefs.h >>conftest.$ac_ext 16973cat >>conftest.$ac_ext <<_ACEOF 16974/* end confdefs.h. */ 16975 16976int 16977main () 16978{ 16979 16980 ; 16981 return 0; 16982} 16983_ACEOF 16984rm -f conftest.$ac_objext conftest$ac_exeext 16985if { (ac_try="$ac_link" 16986case "(($ac_try" in 16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16988 *) ac_try_echo=$ac_try;; 16989esac 16990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16991 (eval "$ac_link") 2>conftest.er1 16992 ac_status=$? 16993 grep -v '^ *+' conftest.er1 >conftest.err 16994 rm -f conftest.er1 16995 cat conftest.err >&5 16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16997 (exit $ac_status); } && { 16998 test -z "$ac_c_werror_flag" || 16999 test ! -s conftest.err 17000 } && test -s conftest$ac_exeext && 17001 $as_test_x conftest$ac_exeext; then 17002 17003aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17004}'` 17005# Check for a 64-bit object if we didn't find anything. 17006if 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; } 17007}'`; fi 17008else 17009 echo "$as_me: failed program was:" >&5 17010sed 's/^/| /' conftest.$ac_ext >&5 17011 17012 17013fi 17014 17015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17016 conftest$ac_exeext conftest.$ac_ext 17017if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17018 17019 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17020 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" 17021 else 17022 if test "$host_cpu" = ia64; then 17023 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17024 allow_undefined_flag_GCJ="-z nodefs" 17025 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" 17026 else 17027 # Determine the default libpath from the value encoded in an empty executable. 17028 cat >conftest.$ac_ext <<_ACEOF 17029/* confdefs.h. */ 17030_ACEOF 17031cat confdefs.h >>conftest.$ac_ext 17032cat >>conftest.$ac_ext <<_ACEOF 17033/* end confdefs.h. */ 17034 17035int 17036main () 17037{ 17038 17039 ; 17040 return 0; 17041} 17042_ACEOF 17043rm -f conftest.$ac_objext conftest$ac_exeext 17044if { (ac_try="$ac_link" 17045case "(($ac_try" in 17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17047 *) ac_try_echo=$ac_try;; 17048esac 17049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17050 (eval "$ac_link") 2>conftest.er1 17051 ac_status=$? 17052 grep -v '^ *+' conftest.er1 >conftest.err 17053 rm -f conftest.er1 17054 cat conftest.err >&5 17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17056 (exit $ac_status); } && { 17057 test -z "$ac_c_werror_flag" || 17058 test ! -s conftest.err 17059 } && test -s conftest$ac_exeext && 17060 $as_test_x conftest$ac_exeext; then 17061 17062aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17063}'` 17064# Check for a 64-bit object if we didn't find anything. 17065if 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; } 17066}'`; fi 17067else 17068 echo "$as_me: failed program was:" >&5 17069sed 's/^/| /' conftest.$ac_ext >&5 17070 17071 17072fi 17073 17074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17075 conftest$ac_exeext conftest.$ac_ext 17076if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17077 17078 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17079 # Warning - without using the other run time loading flags, 17080 # -berok will link without error, but may produce a broken library. 17081 no_undefined_flag_GCJ=' ${wl}-bernotok' 17082 allow_undefined_flag_GCJ=' ${wl}-berok' 17083 # Exported symbols can be pulled into shared objects from archives 17084 whole_archive_flag_spec_GCJ='$convenience' 17085 archive_cmds_need_lc_GCJ=yes 17086 # This is similar to how AIX traditionally builds its shared libraries. 17087 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' 17088 fi 17089 fi 17090 ;; 17091 17092 amigaos*) 17093 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)' 17094 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17095 hardcode_minus_L_GCJ=yes 17096 # see comment about different semantics on the GNU ld section 17097 ld_shlibs_GCJ=no 17098 ;; 17099 17100 bsdi[45]*) 17101 export_dynamic_flag_spec_GCJ=-rdynamic 17102 ;; 17103 17104 cygwin* | mingw* | pw32*) 17105 # When not using gcc, we currently assume that we are using 17106 # Microsoft Visual C++. 17107 # hardcode_libdir_flag_spec is actually meaningless, as there is 17108 # no search path for DLLs. 17109 hardcode_libdir_flag_spec_GCJ=' ' 17110 allow_undefined_flag_GCJ=unsupported 17111 # Tell ltmain to make .lib files, not .a files. 17112 libext=lib 17113 # Tell ltmain to make .dll files, not .so files. 17114 shrext_cmds=".dll" 17115 # FIXME: Setting linknames here is a bad hack. 17116 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17117 # The linker will automatically build a .lib file if we build a DLL. 17118 old_archive_From_new_cmds_GCJ='true' 17119 # FIXME: Should let the user specify the lib program. 17120 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17121 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17122 enable_shared_with_static_runtimes_GCJ=yes 17123 ;; 17124 17125 darwin* | rhapsody*) 17126 case $host_os in 17127 rhapsody* | darwin1.[012]) 17128 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17129 ;; 17130 *) # Darwin 1.3 on 17131 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17132 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17133 else 17134 case ${MACOSX_DEPLOYMENT_TARGET} in 17135 10.[012]) 17136 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17137 ;; 17138 10.*) 17139 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17140 ;; 17141 esac 17142 fi 17143 ;; 17144 esac 17145 archive_cmds_need_lc_GCJ=no 17146 hardcode_direct_GCJ=no 17147 hardcode_automatic_GCJ=yes 17148 hardcode_shlibpath_var_GCJ=unsupported 17149 whole_archive_flag_spec_GCJ='' 17150 link_all_deplibs_GCJ=yes 17151 if test "$GCC" = yes ; then 17152 output_verbose_link_cmd='echo' 17153 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17154 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17155 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17156 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}' 17157 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}' 17158 else 17159 case $cc_basename in 17160 xlc*) 17161 output_verbose_link_cmd='echo' 17162 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17163 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17164 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17165 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}' 17166 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}' 17167 ;; 17168 *) 17169 ld_shlibs_GCJ=no 17170 ;; 17171 esac 17172 fi 17173 ;; 17174 17175 dgux*) 17176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17177 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17178 hardcode_shlibpath_var_GCJ=no 17179 ;; 17180 17181 freebsd1*) 17182 ld_shlibs_GCJ=no 17183 ;; 17184 17185 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17186 # support. Future versions do this automatically, but an explicit c++rt0.o 17187 # does not break anything, and helps significantly (at the cost of a little 17188 # extra space). 17189 freebsd2.2*) 17190 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17191 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17192 hardcode_direct_GCJ=yes 17193 hardcode_shlibpath_var_GCJ=no 17194 ;; 17195 17196 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17197 freebsd2*) 17198 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17199 hardcode_direct_GCJ=yes 17200 hardcode_minus_L_GCJ=yes 17201 hardcode_shlibpath_var_GCJ=no 17202 ;; 17203 17204 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17205 freebsd* | kfreebsd*-gnu | dragonfly*) 17206 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17207 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17208 hardcode_direct_GCJ=yes 17209 hardcode_shlibpath_var_GCJ=no 17210 ;; 17211 17212 hpux9*) 17213 if test "$GCC" = yes; then 17214 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' 17215 else 17216 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' 17217 fi 17218 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17219 hardcode_libdir_separator_GCJ=: 17220 hardcode_direct_GCJ=yes 17221 17222 # hardcode_minus_L: Not really in the search PATH, 17223 # but as the default location of the library. 17224 hardcode_minus_L_GCJ=yes 17225 export_dynamic_flag_spec_GCJ='${wl}-E' 17226 ;; 17227 17228 hpux10*) 17229 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17230 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17231 else 17232 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17233 fi 17234 if test "$with_gnu_ld" = no; then 17235 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17236 hardcode_libdir_separator_GCJ=: 17237 17238 hardcode_direct_GCJ=yes 17239 export_dynamic_flag_spec_GCJ='${wl}-E' 17240 17241 # hardcode_minus_L: Not really in the search PATH, 17242 # but as the default location of the library. 17243 hardcode_minus_L_GCJ=yes 17244 fi 17245 ;; 17246 17247 hpux11*) 17248 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17249 case $host_cpu in 17250 hppa*64*) 17251 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17252 ;; 17253 ia64*) 17254 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17255 ;; 17256 *) 17257 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17258 ;; 17259 esac 17260 else 17261 case $host_cpu in 17262 hppa*64*) 17263 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17264 ;; 17265 ia64*) 17266 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17267 ;; 17268 *) 17269 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17270 ;; 17271 esac 17272 fi 17273 if test "$with_gnu_ld" = no; then 17274 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17275 hardcode_libdir_separator_GCJ=: 17276 17277 case $host_cpu in 17278 hppa*64*|ia64*) 17279 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17280 hardcode_direct_GCJ=no 17281 hardcode_shlibpath_var_GCJ=no 17282 ;; 17283 *) 17284 hardcode_direct_GCJ=yes 17285 export_dynamic_flag_spec_GCJ='${wl}-E' 17286 17287 # hardcode_minus_L: Not really in the search PATH, 17288 # but as the default location of the library. 17289 hardcode_minus_L_GCJ=yes 17290 ;; 17291 esac 17292 fi 17293 ;; 17294 17295 irix5* | irix6* | nonstopux*) 17296 if test "$GCC" = yes; then 17297 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' 17298 else 17299 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' 17300 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17301 fi 17302 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17303 hardcode_libdir_separator_GCJ=: 17304 link_all_deplibs_GCJ=yes 17305 ;; 17306 17307 netbsd*) 17308 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17309 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17310 else 17311 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17312 fi 17313 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17314 hardcode_direct_GCJ=yes 17315 hardcode_shlibpath_var_GCJ=no 17316 ;; 17317 17318 newsos6) 17319 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17320 hardcode_direct_GCJ=yes 17321 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17322 hardcode_libdir_separator_GCJ=: 17323 hardcode_shlibpath_var_GCJ=no 17324 ;; 17325 17326 openbsd*) 17327 hardcode_direct_GCJ=yes 17328 hardcode_shlibpath_var_GCJ=no 17329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17330 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17331 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17332 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17333 export_dynamic_flag_spec_GCJ='${wl}-E' 17334 else 17335 case $host_os in 17336 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17337 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17338 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17339 ;; 17340 *) 17341 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17342 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17343 ;; 17344 esac 17345 fi 17346 ;; 17347 17348 os2*) 17349 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17350 hardcode_minus_L_GCJ=yes 17351 allow_undefined_flag_GCJ=unsupported 17352 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' 17353 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17354 ;; 17355 17356 osf3*) 17357 if test "$GCC" = yes; then 17358 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17359 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' 17360 else 17361 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17362 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' 17363 fi 17364 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17365 hardcode_libdir_separator_GCJ=: 17366 ;; 17367 17368 osf4* | osf5*) # as osf3* with the addition of -msym flag 17369 if test "$GCC" = yes; then 17370 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17371 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' 17372 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17373 else 17374 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17375 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' 17376 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~ 17377 $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' 17378 17379 # Both c and cxx compiler support -rpath directly 17380 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17381 fi 17382 hardcode_libdir_separator_GCJ=: 17383 ;; 17384 17385 solaris*) 17386 no_undefined_flag_GCJ=' -z text' 17387 if test "$GCC" = yes; then 17388 wlarc='${wl}' 17389 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17390 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17391 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17392 else 17393 wlarc='' 17394 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17395 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17397 fi 17398 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17399 hardcode_shlibpath_var_GCJ=no 17400 case $host_os in 17401 solaris2.[0-5] | solaris2.[0-5].*) ;; 17402 *) 17403 # The compiler driver will combine linker options so we 17404 # cannot just pass the convience library names through 17405 # without $wl, iff we do not link with $LD. 17406 # Luckily, gcc supports the same syntax we need for Sun Studio. 17407 # Supported since Solaris 2.6 (maybe 2.5.1?) 17408 case $wlarc in 17409 '') 17410 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17411 *) 17412 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' ;; 17413 esac ;; 17414 esac 17415 link_all_deplibs_GCJ=yes 17416 ;; 17417 17418 sunos4*) 17419 if test "x$host_vendor" = xsequent; then 17420 # Use $CC to link under sequent, because it throws in some extra .o 17421 # files that make .init and .fini sections work. 17422 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17423 else 17424 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17425 fi 17426 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17427 hardcode_direct_GCJ=yes 17428 hardcode_minus_L_GCJ=yes 17429 hardcode_shlibpath_var_GCJ=no 17430 ;; 17431 17432 sysv4) 17433 case $host_vendor in 17434 sni) 17435 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17436 hardcode_direct_GCJ=yes # is this really true??? 17437 ;; 17438 siemens) 17439 ## LD is ld it makes a PLAMLIB 17440 ## CC just makes a GrossModule. 17441 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17442 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17443 hardcode_direct_GCJ=no 17444 ;; 17445 motorola) 17446 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17447 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17448 ;; 17449 esac 17450 runpath_var='LD_RUN_PATH' 17451 hardcode_shlibpath_var_GCJ=no 17452 ;; 17453 17454 sysv4.3*) 17455 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17456 hardcode_shlibpath_var_GCJ=no 17457 export_dynamic_flag_spec_GCJ='-Bexport' 17458 ;; 17459 17460 sysv4*MP*) 17461 if test -d /usr/nec; then 17462 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17463 hardcode_shlibpath_var_GCJ=no 17464 runpath_var=LD_RUN_PATH 17465 hardcode_runpath_var=yes 17466 ld_shlibs_GCJ=yes 17467 fi 17468 ;; 17469 17470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17471 no_undefined_flag_GCJ='${wl}-z,text' 17472 archive_cmds_need_lc_GCJ=no 17473 hardcode_shlibpath_var_GCJ=no 17474 runpath_var='LD_RUN_PATH' 17475 17476 if test "$GCC" = yes; then 17477 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17478 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17479 else 17480 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17481 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17482 fi 17483 ;; 17484 17485 sysv5* | sco3.2v5* | sco5v6*) 17486 # Note: We can NOT use -z defs as we might desire, because we do not 17487 # link with -lc, and that would cause any symbols used from libc to 17488 # always be unresolved, which means just about no library would 17489 # ever link correctly. If we're not using GNU ld we use -z text 17490 # though, which does catch some bad symbols but isn't as heavy-handed 17491 # as -z defs. 17492 no_undefined_flag_GCJ='${wl}-z,text' 17493 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17494 archive_cmds_need_lc_GCJ=no 17495 hardcode_shlibpath_var_GCJ=no 17496 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17497 hardcode_libdir_separator_GCJ=':' 17498 link_all_deplibs_GCJ=yes 17499 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17500 runpath_var='LD_RUN_PATH' 17501 17502 if test "$GCC" = yes; then 17503 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17504 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17505 else 17506 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17507 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17508 fi 17509 ;; 17510 17511 uts4*) 17512 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17513 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17514 hardcode_shlibpath_var_GCJ=no 17515 ;; 17516 17517 *) 17518 ld_shlibs_GCJ=no 17519 ;; 17520 esac 17521 fi 17522 17523{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17524echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17525test "$ld_shlibs_GCJ" = no && can_build_shared=no 17526 17527# 17528# Do we need to explicitly link libc? 17529# 17530case "x$archive_cmds_need_lc_GCJ" in 17531x|xyes) 17532 # Assume -lc should be added 17533 archive_cmds_need_lc_GCJ=yes 17534 17535 if test "$enable_shared" = yes && test "$GCC" = yes; then 17536 case $archive_cmds_GCJ in 17537 *'~'*) 17538 # FIXME: we may have to deal with multi-command sequences. 17539 ;; 17540 '$CC '*) 17541 # Test whether the compiler implicitly links with -lc since on some 17542 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17543 # to ld, don't add -lc before -lgcc. 17544 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17545echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17546 $rm conftest* 17547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17548 17549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17550 (eval $ac_compile) 2>&5 17551 ac_status=$? 17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17553 (exit $ac_status); } 2>conftest.err; then 17554 soname=conftest 17555 lib=conftest 17556 libobjs=conftest.$ac_objext 17557 deplibs= 17558 wl=$lt_prog_compiler_wl_GCJ 17559 pic_flag=$lt_prog_compiler_pic_GCJ 17560 compiler_flags=-v 17561 linker_flags=-v 17562 verstring= 17563 output_objdir=. 17564 libname=conftest 17565 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17566 allow_undefined_flag_GCJ= 17567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17568 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17569 ac_status=$? 17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17571 (exit $ac_status); } 17572 then 17573 archive_cmds_need_lc_GCJ=no 17574 else 17575 archive_cmds_need_lc_GCJ=yes 17576 fi 17577 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17578 else 17579 cat conftest.err 1>&5 17580 fi 17581 $rm conftest* 17582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17583echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17584 ;; 17585 esac 17586 fi 17587 ;; 17588esac 17589 17590{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17591echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17592library_names_spec= 17593libname_spec='lib$name' 17594soname_spec= 17595shrext_cmds=".so" 17596postinstall_cmds= 17597postuninstall_cmds= 17598finish_cmds= 17599finish_eval= 17600shlibpath_var= 17601shlibpath_overrides_runpath=unknown 17602version_type=none 17603dynamic_linker="$host_os ld.so" 17604sys_lib_dlsearch_path_spec="/lib /usr/lib" 17605if test "$GCC" = yes; then 17606 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17607 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17608 # if the path contains ";" then we assume it to be the separator 17609 # otherwise default to the standard path separator (i.e. ":") - it is 17610 # assumed that no part of a normal pathname contains ";" but that should 17611 # okay in the real world where ";" in dirpaths is itself problematic. 17612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17613 else 17614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17615 fi 17616else 17617 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17618fi 17619need_lib_prefix=unknown 17620hardcode_into_libs=no 17621 17622# when you set need_version to no, make sure it does not cause -set_version 17623# flags to be left without arguments 17624need_version=unknown 17625 17626case $host_os in 17627aix3*) 17628 version_type=linux 17629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17630 shlibpath_var=LIBPATH 17631 17632 # AIX 3 has no versioning support, so we append a major version to the name. 17633 soname_spec='${libname}${release}${shared_ext}$major' 17634 ;; 17635 17636aix4* | aix5*) 17637 version_type=linux 17638 need_lib_prefix=no 17639 need_version=no 17640 hardcode_into_libs=yes 17641 if test "$host_cpu" = ia64; then 17642 # AIX 5 supports IA64 17643 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17644 shlibpath_var=LD_LIBRARY_PATH 17645 else 17646 # With GCC up to 2.95.x, collect2 would create an import file 17647 # for dependence libraries. The import file would start with 17648 # the line `#! .'. This would cause the generated library to 17649 # depend on `.', always an invalid library. This was fixed in 17650 # development snapshots of GCC prior to 3.0. 17651 case $host_os in 17652 aix4 | aix4.[01] | aix4.[01].*) 17653 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17654 echo ' yes ' 17655 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17656 : 17657 else 17658 can_build_shared=no 17659 fi 17660 ;; 17661 esac 17662 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17663 # soname into executable. Probably we can add versioning support to 17664 # collect2, so additional links can be useful in future. 17665 if test "$aix_use_runtimelinking" = yes; then 17666 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17667 # instead of lib<name>.a to let people know that these are not 17668 # typical AIX shared libraries. 17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17670 else 17671 # We preserve .a as extension for shared libraries through AIX4.2 17672 # and later when we are not doing run time linking. 17673 library_names_spec='${libname}${release}.a $libname.a' 17674 soname_spec='${libname}${release}${shared_ext}$major' 17675 fi 17676 shlibpath_var=LIBPATH 17677 fi 17678 ;; 17679 17680amigaos*) 17681 library_names_spec='$libname.ixlibrary $libname.a' 17682 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17683 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' 17684 ;; 17685 17686beos*) 17687 library_names_spec='${libname}${shared_ext}' 17688 dynamic_linker="$host_os ld.so" 17689 shlibpath_var=LIBRARY_PATH 17690 ;; 17691 17692bsdi[45]*) 17693 version_type=linux 17694 need_version=no 17695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17696 soname_spec='${libname}${release}${shared_ext}$major' 17697 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17698 shlibpath_var=LD_LIBRARY_PATH 17699 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17700 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17701 # the default ld.so.conf also contains /usr/contrib/lib and 17702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17703 # libtool to hard-code these into programs 17704 ;; 17705 17706cygwin* | mingw* | pw32*) 17707 version_type=windows 17708 shrext_cmds=".dll" 17709 need_version=no 17710 need_lib_prefix=no 17711 17712 case $GCC,$host_os in 17713 yes,cygwin* | yes,mingw* | yes,pw32*) 17714 library_names_spec='$libname.dll.a' 17715 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17716 postinstall_cmds='base_file=`basename \${file}`~ 17717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17718 dldir=$destdir/`dirname \$dlpath`~ 17719 test -d \$dldir || mkdir -p \$dldir~ 17720 $install_prog $dir/$dlname \$dldir/$dlname~ 17721 chmod a+x \$dldir/$dlname' 17722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17723 dlpath=$dir/\$dldll~ 17724 $rm \$dlpath' 17725 shlibpath_overrides_runpath=yes 17726 17727 case $host_os in 17728 cygwin*) 17729 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17730 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17731 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17732 ;; 17733 mingw*) 17734 # MinGW DLLs use traditional 'lib' prefix 17735 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17736 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17737 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17738 # It is most probably a Windows format PATH printed by 17739 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17740 # path with ; separators, and with drive letters. We can handle the 17741 # drive letters (cygwin fileutils understands them), so leave them, 17742 # especially as we might pass files found there to a mingw objdump, 17743 # which wouldn't understand a cygwinified path. Ahh. 17744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17745 else 17746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17747 fi 17748 ;; 17749 pw32*) 17750 # pw32 DLLs use 'pw' prefix rather than 'lib' 17751 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17752 ;; 17753 esac 17754 ;; 17755 17756 *) 17757 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17758 ;; 17759 esac 17760 dynamic_linker='Win32 ld.exe' 17761 # FIXME: first we should search . and the directory the executable is in 17762 shlibpath_var=PATH 17763 ;; 17764 17765darwin* | rhapsody*) 17766 dynamic_linker="$host_os dyld" 17767 version_type=darwin 17768 need_lib_prefix=no 17769 need_version=no 17770 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17771 soname_spec='${libname}${release}${major}$shared_ext' 17772 shlibpath_overrides_runpath=yes 17773 shlibpath_var=DYLD_LIBRARY_PATH 17774 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17775 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17776 if test "$GCC" = yes; then 17777 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"` 17778 else 17779 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17780 fi 17781 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17782 ;; 17783 17784dgux*) 17785 version_type=linux 17786 need_lib_prefix=no 17787 need_version=no 17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17789 soname_spec='${libname}${release}${shared_ext}$major' 17790 shlibpath_var=LD_LIBRARY_PATH 17791 ;; 17792 17793freebsd1*) 17794 dynamic_linker=no 17795 ;; 17796 17797kfreebsd*-gnu) 17798 version_type=linux 17799 need_lib_prefix=no 17800 need_version=no 17801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17802 soname_spec='${libname}${release}${shared_ext}$major' 17803 shlibpath_var=LD_LIBRARY_PATH 17804 shlibpath_overrides_runpath=no 17805 hardcode_into_libs=yes 17806 dynamic_linker='GNU ld.so' 17807 ;; 17808 17809freebsd* | dragonfly*) 17810 # DragonFly does not have aout. When/if they implement a new 17811 # versioning mechanism, adjust this. 17812 if test -x /usr/bin/objformat; then 17813 objformat=`/usr/bin/objformat` 17814 else 17815 case $host_os in 17816 freebsd[123]*) objformat=aout ;; 17817 *) objformat=elf ;; 17818 esac 17819 fi 17820 version_type=freebsd-$objformat 17821 case $version_type in 17822 freebsd-elf*) 17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17824 need_version=no 17825 need_lib_prefix=no 17826 ;; 17827 freebsd-*) 17828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17829 need_version=yes 17830 ;; 17831 esac 17832 shlibpath_var=LD_LIBRARY_PATH 17833 case $host_os in 17834 freebsd2*) 17835 shlibpath_overrides_runpath=yes 17836 ;; 17837 freebsd3.[01]* | freebsdelf3.[01]*) 17838 shlibpath_overrides_runpath=yes 17839 hardcode_into_libs=yes 17840 ;; 17841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17843 shlibpath_overrides_runpath=no 17844 hardcode_into_libs=yes 17845 ;; 17846 freebsd*) # from 4.6 on 17847 shlibpath_overrides_runpath=yes 17848 hardcode_into_libs=yes 17849 ;; 17850 esac 17851 ;; 17852 17853gnu*) 17854 version_type=linux 17855 need_lib_prefix=no 17856 need_version=no 17857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17858 soname_spec='${libname}${release}${shared_ext}$major' 17859 shlibpath_var=LD_LIBRARY_PATH 17860 hardcode_into_libs=yes 17861 ;; 17862 17863hpux9* | hpux10* | hpux11*) 17864 # Give a soname corresponding to the major version so that dld.sl refuses to 17865 # link against other versions. 17866 version_type=sunos 17867 need_lib_prefix=no 17868 need_version=no 17869 case $host_cpu in 17870 ia64*) 17871 shrext_cmds='.so' 17872 hardcode_into_libs=yes 17873 dynamic_linker="$host_os dld.so" 17874 shlibpath_var=LD_LIBRARY_PATH 17875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17877 soname_spec='${libname}${release}${shared_ext}$major' 17878 if test "X$HPUX_IA64_MODE" = X32; then 17879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17880 else 17881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17882 fi 17883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17884 ;; 17885 hppa*64*) 17886 shrext_cmds='.sl' 17887 hardcode_into_libs=yes 17888 dynamic_linker="$host_os dld.sl" 17889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17892 soname_spec='${libname}${release}${shared_ext}$major' 17893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17895 ;; 17896 *) 17897 shrext_cmds='.sl' 17898 dynamic_linker="$host_os dld.sl" 17899 shlibpath_var=SHLIB_PATH 17900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17902 soname_spec='${libname}${release}${shared_ext}$major' 17903 ;; 17904 esac 17905 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17906 postinstall_cmds='chmod 555 $lib' 17907 ;; 17908 17909interix3*) 17910 version_type=linux 17911 need_lib_prefix=no 17912 need_version=no 17913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17914 soname_spec='${libname}${release}${shared_ext}$major' 17915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17916 shlibpath_var=LD_LIBRARY_PATH 17917 shlibpath_overrides_runpath=no 17918 hardcode_into_libs=yes 17919 ;; 17920 17921irix5* | irix6* | nonstopux*) 17922 case $host_os in 17923 nonstopux*) version_type=nonstopux ;; 17924 *) 17925 if test "$lt_cv_prog_gnu_ld" = yes; then 17926 version_type=linux 17927 else 17928 version_type=irix 17929 fi ;; 17930 esac 17931 need_lib_prefix=no 17932 need_version=no 17933 soname_spec='${libname}${release}${shared_ext}$major' 17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17935 case $host_os in 17936 irix5* | nonstopux*) 17937 libsuff= shlibsuff= 17938 ;; 17939 *) 17940 case $LD in # libtool.m4 will add one of these switches to LD 17941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17942 libsuff= shlibsuff= libmagic=32-bit;; 17943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17944 libsuff=32 shlibsuff=N32 libmagic=N32;; 17945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17946 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17947 *) libsuff= shlibsuff= libmagic=never-match;; 17948 esac 17949 ;; 17950 esac 17951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17952 shlibpath_overrides_runpath=no 17953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17955 hardcode_into_libs=yes 17956 ;; 17957 17958# No shared lib support for Linux oldld, aout, or coff. 17959linux*oldld* | linux*aout* | linux*coff*) 17960 dynamic_linker=no 17961 ;; 17962 17963# This must be Linux ELF. 17964linux*) 17965 version_type=linux 17966 need_lib_prefix=no 17967 need_version=no 17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17969 soname_spec='${libname}${release}${shared_ext}$major' 17970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17971 shlibpath_var=LD_LIBRARY_PATH 17972 shlibpath_overrides_runpath=no 17973 # This implies no fast_install, which is unacceptable. 17974 # Some rework will be needed to allow for fast_install 17975 # before this can be enabled. 17976 hardcode_into_libs=yes 17977 17978 # Append ld.so.conf contents to the search path 17979 if test -f /etc/ld.so.conf; then 17980 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' ' '` 17981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17982 fi 17983 17984 # We used to test for /lib/ld.so.1 and disable shared libraries on 17985 # powerpc, because MkLinux only supported shared libraries with the 17986 # GNU dynamic linker. Since this was broken with cross compilers, 17987 # most powerpc-linux boxes support dynamic linking these days and 17988 # people can always --disable-shared, the test was removed, and we 17989 # assume the GNU/Linux dynamic linker is in use. 17990 dynamic_linker='GNU/Linux ld.so' 17991 ;; 17992 17993knetbsd*-gnu) 17994 version_type=linux 17995 need_lib_prefix=no 17996 need_version=no 17997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17998 soname_spec='${libname}${release}${shared_ext}$major' 17999 shlibpath_var=LD_LIBRARY_PATH 18000 shlibpath_overrides_runpath=no 18001 hardcode_into_libs=yes 18002 dynamic_linker='GNU ld.so' 18003 ;; 18004 18005netbsd*) 18006 version_type=sunos 18007 need_lib_prefix=no 18008 need_version=no 18009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18012 dynamic_linker='NetBSD (a.out) ld.so' 18013 else 18014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18015 soname_spec='${libname}${release}${shared_ext}$major' 18016 dynamic_linker='NetBSD ld.elf_so' 18017 fi 18018 shlibpath_var=LD_LIBRARY_PATH 18019 shlibpath_overrides_runpath=yes 18020 hardcode_into_libs=yes 18021 ;; 18022 18023newsos6) 18024 version_type=linux 18025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18026 shlibpath_var=LD_LIBRARY_PATH 18027 shlibpath_overrides_runpath=yes 18028 ;; 18029 18030nto-qnx*) 18031 version_type=linux 18032 need_lib_prefix=no 18033 need_version=no 18034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18035 soname_spec='${libname}${release}${shared_ext}$major' 18036 shlibpath_var=LD_LIBRARY_PATH 18037 shlibpath_overrides_runpath=yes 18038 ;; 18039 18040openbsd*) 18041 version_type=sunos 18042 sys_lib_dlsearch_path_spec="/usr/lib" 18043 need_lib_prefix=no 18044 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18045 case $host_os in 18046 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18047 *) need_version=no ;; 18048 esac 18049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18051 shlibpath_var=LD_LIBRARY_PATH 18052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18053 case $host_os in 18054 openbsd2.[89] | openbsd2.[89].*) 18055 shlibpath_overrides_runpath=no 18056 ;; 18057 *) 18058 shlibpath_overrides_runpath=yes 18059 ;; 18060 esac 18061 else 18062 shlibpath_overrides_runpath=yes 18063 fi 18064 ;; 18065 18066os2*) 18067 libname_spec='$name' 18068 shrext_cmds=".dll" 18069 need_lib_prefix=no 18070 library_names_spec='$libname${shared_ext} $libname.a' 18071 dynamic_linker='OS/2 ld.exe' 18072 shlibpath_var=LIBPATH 18073 ;; 18074 18075osf3* | osf4* | osf5*) 18076 version_type=osf 18077 need_lib_prefix=no 18078 need_version=no 18079 soname_spec='${libname}${release}${shared_ext}$major' 18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18081 shlibpath_var=LD_LIBRARY_PATH 18082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18083 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18084 ;; 18085 18086solaris*) 18087 version_type=linux 18088 need_lib_prefix=no 18089 need_version=no 18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18091 soname_spec='${libname}${release}${shared_ext}$major' 18092 shlibpath_var=LD_LIBRARY_PATH 18093 shlibpath_overrides_runpath=yes 18094 hardcode_into_libs=yes 18095 # ldd complains unless libraries are executable 18096 postinstall_cmds='chmod +x $lib' 18097 ;; 18098 18099sunos4*) 18100 version_type=sunos 18101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18102 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18103 shlibpath_var=LD_LIBRARY_PATH 18104 shlibpath_overrides_runpath=yes 18105 if test "$with_gnu_ld" = yes; then 18106 need_lib_prefix=no 18107 fi 18108 need_version=yes 18109 ;; 18110 18111sysv4 | sysv4.3*) 18112 version_type=linux 18113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18114 soname_spec='${libname}${release}${shared_ext}$major' 18115 shlibpath_var=LD_LIBRARY_PATH 18116 case $host_vendor in 18117 sni) 18118 shlibpath_overrides_runpath=no 18119 need_lib_prefix=no 18120 export_dynamic_flag_spec='${wl}-Blargedynsym' 18121 runpath_var=LD_RUN_PATH 18122 ;; 18123 siemens) 18124 need_lib_prefix=no 18125 ;; 18126 motorola) 18127 need_lib_prefix=no 18128 need_version=no 18129 shlibpath_overrides_runpath=no 18130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18131 ;; 18132 esac 18133 ;; 18134 18135sysv4*MP*) 18136 if test -d /usr/nec ;then 18137 version_type=linux 18138 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18139 soname_spec='$libname${shared_ext}.$major' 18140 shlibpath_var=LD_LIBRARY_PATH 18141 fi 18142 ;; 18143 18144sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18145 version_type=freebsd-elf 18146 need_lib_prefix=no 18147 need_version=no 18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18149 soname_spec='${libname}${release}${shared_ext}$major' 18150 shlibpath_var=LD_LIBRARY_PATH 18151 hardcode_into_libs=yes 18152 if test "$with_gnu_ld" = yes; then 18153 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18154 shlibpath_overrides_runpath=no 18155 else 18156 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18157 shlibpath_overrides_runpath=yes 18158 case $host_os in 18159 sco3.2v5*) 18160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18161 ;; 18162 esac 18163 fi 18164 sys_lib_dlsearch_path_spec='/usr/lib' 18165 ;; 18166 18167uts4*) 18168 version_type=linux 18169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18170 soname_spec='${libname}${release}${shared_ext}$major' 18171 shlibpath_var=LD_LIBRARY_PATH 18172 ;; 18173 18174*) 18175 dynamic_linker=no 18176 ;; 18177esac 18178{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18179echo "${ECHO_T}$dynamic_linker" >&6; } 18180test "$dynamic_linker" = no && can_build_shared=no 18181 18182variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18183if test "$GCC" = yes; then 18184 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18185fi 18186 18187{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18188echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18189hardcode_action_GCJ= 18190if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18191 test -n "$runpath_var_GCJ" || \ 18192 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18193 18194 # We can hardcode non-existant directories. 18195 if test "$hardcode_direct_GCJ" != no && 18196 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18197 # have to relink, otherwise we might link with an installed library 18198 # when we should be linking with a yet-to-be-installed one 18199 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18200 test "$hardcode_minus_L_GCJ" != no; then 18201 # Linking always hardcodes the temporary library directory. 18202 hardcode_action_GCJ=relink 18203 else 18204 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18205 hardcode_action_GCJ=immediate 18206 fi 18207else 18208 # We cannot hardcode anything, or else we can only hardcode existing 18209 # directories. 18210 hardcode_action_GCJ=unsupported 18211fi 18212{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18213echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18214 18215if test "$hardcode_action_GCJ" = relink; then 18216 # Fast installation is not supported 18217 enable_fast_install=no 18218elif test "$shlibpath_overrides_runpath" = yes || 18219 test "$enable_shared" = no; then 18220 # Fast installation is not necessary 18221 enable_fast_install=needless 18222fi 18223 18224 18225# The else clause should only fire when bootstrapping the 18226# libtool distribution, otherwise you forgot to ship ltmain.sh 18227# with your package, and you will get complaints that there are 18228# no rules to generate ltmain.sh. 18229if test -f "$ltmain"; then 18230 # See if we are running on zsh, and set the options which allow our commands through 18231 # without removal of \ escapes. 18232 if test -n "${ZSH_VERSION+set}" ; then 18233 setopt NO_GLOB_SUBST 18234 fi 18235 # Now quote all the things that may contain metacharacters while being 18236 # careful not to overquote the AC_SUBSTed values. We take copies of the 18237 # variables and quote the copies for generation of the libtool script. 18238 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18239 SED SHELL STRIP \ 18240 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18241 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18242 deplibs_check_method reload_flag reload_cmds need_locks \ 18243 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18244 lt_cv_sys_global_symbol_to_c_name_address \ 18245 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18246 old_postinstall_cmds old_postuninstall_cmds \ 18247 compiler_GCJ \ 18248 CC_GCJ \ 18249 LD_GCJ \ 18250 lt_prog_compiler_wl_GCJ \ 18251 lt_prog_compiler_pic_GCJ \ 18252 lt_prog_compiler_static_GCJ \ 18253 lt_prog_compiler_no_builtin_flag_GCJ \ 18254 export_dynamic_flag_spec_GCJ \ 18255 thread_safe_flag_spec_GCJ \ 18256 whole_archive_flag_spec_GCJ \ 18257 enable_shared_with_static_runtimes_GCJ \ 18258 old_archive_cmds_GCJ \ 18259 old_archive_from_new_cmds_GCJ \ 18260 predep_objects_GCJ \ 18261 postdep_objects_GCJ \ 18262 predeps_GCJ \ 18263 postdeps_GCJ \ 18264 compiler_lib_search_path_GCJ \ 18265 archive_cmds_GCJ \ 18266 archive_expsym_cmds_GCJ \ 18267 postinstall_cmds_GCJ \ 18268 postuninstall_cmds_GCJ \ 18269 old_archive_from_expsyms_cmds_GCJ \ 18270 allow_undefined_flag_GCJ \ 18271 no_undefined_flag_GCJ \ 18272 export_symbols_cmds_GCJ \ 18273 hardcode_libdir_flag_spec_GCJ \ 18274 hardcode_libdir_flag_spec_ld_GCJ \ 18275 hardcode_libdir_separator_GCJ \ 18276 hardcode_automatic_GCJ \ 18277 module_cmds_GCJ \ 18278 module_expsym_cmds_GCJ \ 18279 lt_cv_prog_compiler_c_o_GCJ \ 18280 exclude_expsyms_GCJ \ 18281 include_expsyms_GCJ; do 18282 18283 case $var in 18284 old_archive_cmds_GCJ | \ 18285 old_archive_from_new_cmds_GCJ | \ 18286 archive_cmds_GCJ | \ 18287 archive_expsym_cmds_GCJ | \ 18288 module_cmds_GCJ | \ 18289 module_expsym_cmds_GCJ | \ 18290 old_archive_from_expsyms_cmds_GCJ | \ 18291 export_symbols_cmds_GCJ | \ 18292 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18293 postinstall_cmds | postuninstall_cmds | \ 18294 old_postinstall_cmds | old_postuninstall_cmds | \ 18295 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18296 # Double-quote double-evaled strings. 18297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18298 ;; 18299 *) 18300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18301 ;; 18302 esac 18303 done 18304 18305 case $lt_echo in 18306 *'\$0 --fallback-echo"') 18307 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18308 ;; 18309 esac 18310 18311cfgfile="$ofile" 18312 18313 cat <<__EOF__ >> "$cfgfile" 18314# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18315 18316# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18317 18318# Shell to use when invoking shell scripts. 18319SHELL=$lt_SHELL 18320 18321# Whether or not to build shared libraries. 18322build_libtool_libs=$enable_shared 18323 18324# Whether or not to build static libraries. 18325build_old_libs=$enable_static 18326 18327# Whether or not to add -lc for building shared libraries. 18328build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18329 18330# Whether or not to disallow shared libs when runtime libs are static 18331allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18332 18333# Whether or not to optimize for fast installation. 18334fast_install=$enable_fast_install 18335 18336# The host system. 18337host_alias=$host_alias 18338host=$host 18339host_os=$host_os 18340 18341# The build system. 18342build_alias=$build_alias 18343build=$build 18344build_os=$build_os 18345 18346# An echo program that does not interpret backslashes. 18347echo=$lt_echo 18348 18349# The archiver. 18350AR=$lt_AR 18351AR_FLAGS=$lt_AR_FLAGS 18352 18353# A C compiler. 18354LTCC=$lt_LTCC 18355 18356# LTCC compiler flags. 18357LTCFLAGS=$lt_LTCFLAGS 18358 18359# A language-specific compiler. 18360CC=$lt_compiler_GCJ 18361 18362# Is the compiler the GNU C compiler? 18363with_gcc=$GCC_GCJ 18364 18365# An ERE matcher. 18366EGREP=$lt_EGREP 18367 18368# The linker used to build libraries. 18369LD=$lt_LD_GCJ 18370 18371# Whether we need hard or soft links. 18372LN_S=$lt_LN_S 18373 18374# A BSD-compatible nm program. 18375NM=$lt_NM 18376 18377# A symbol stripping program 18378STRIP=$lt_STRIP 18379 18380# Used to examine libraries when file_magic_cmd begins "file" 18381MAGIC_CMD=$MAGIC_CMD 18382 18383# Used on cygwin: DLL creation program. 18384DLLTOOL="$DLLTOOL" 18385 18386# Used on cygwin: object dumper. 18387OBJDUMP="$OBJDUMP" 18388 18389# Used on cygwin: assembler. 18390AS="$AS" 18391 18392# The name of the directory that contains temporary libtool files. 18393objdir=$objdir 18394 18395# How to create reloadable object files. 18396reload_flag=$lt_reload_flag 18397reload_cmds=$lt_reload_cmds 18398 18399# How to pass a linker flag through the compiler. 18400wl=$lt_lt_prog_compiler_wl_GCJ 18401 18402# Object file suffix (normally "o"). 18403objext="$ac_objext" 18404 18405# Old archive suffix (normally "a"). 18406libext="$libext" 18407 18408# Shared library suffix (normally ".so"). 18409shrext_cmds='$shrext_cmds' 18410 18411# Executable file suffix (normally ""). 18412exeext="$exeext" 18413 18414# Additional compiler flags for building library objects. 18415pic_flag=$lt_lt_prog_compiler_pic_GCJ 18416pic_mode=$pic_mode 18417 18418# What is the maximum length of a command? 18419max_cmd_len=$lt_cv_sys_max_cmd_len 18420 18421# Does compiler simultaneously support -c and -o options? 18422compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18423 18424# Must we lock files when doing compilation? 18425need_locks=$lt_need_locks 18426 18427# Do we need the lib prefix for modules? 18428need_lib_prefix=$need_lib_prefix 18429 18430# Do we need a version for libraries? 18431need_version=$need_version 18432 18433# Whether dlopen is supported. 18434dlopen_support=$enable_dlopen 18435 18436# Whether dlopen of programs is supported. 18437dlopen_self=$enable_dlopen_self 18438 18439# Whether dlopen of statically linked programs is supported. 18440dlopen_self_static=$enable_dlopen_self_static 18441 18442# Compiler flag to prevent dynamic linking. 18443link_static_flag=$lt_lt_prog_compiler_static_GCJ 18444 18445# Compiler flag to turn off builtin functions. 18446no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18447 18448# Compiler flag to allow reflexive dlopens. 18449export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18450 18451# Compiler flag to generate shared objects directly from archives. 18452whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18453 18454# Compiler flag to generate thread-safe objects. 18455thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18456 18457# Library versioning type. 18458version_type=$version_type 18459 18460# Format of library name prefix. 18461libname_spec=$lt_libname_spec 18462 18463# List of archive names. First name is the real one, the rest are links. 18464# The last name is the one that the linker finds with -lNAME. 18465library_names_spec=$lt_library_names_spec 18466 18467# The coded name of the library, if different from the real name. 18468soname_spec=$lt_soname_spec 18469 18470# Commands used to build and install an old-style archive. 18471RANLIB=$lt_RANLIB 18472old_archive_cmds=$lt_old_archive_cmds_GCJ 18473old_postinstall_cmds=$lt_old_postinstall_cmds 18474old_postuninstall_cmds=$lt_old_postuninstall_cmds 18475 18476# Create an old-style archive from a shared archive. 18477old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18478 18479# Create a temporary old-style archive to link instead of a shared archive. 18480old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18481 18482# Commands used to build and install a shared archive. 18483archive_cmds=$lt_archive_cmds_GCJ 18484archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18485postinstall_cmds=$lt_postinstall_cmds 18486postuninstall_cmds=$lt_postuninstall_cmds 18487 18488# Commands used to build a loadable module (assumed same as above if empty) 18489module_cmds=$lt_module_cmds_GCJ 18490module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18491 18492# Commands to strip libraries. 18493old_striplib=$lt_old_striplib 18494striplib=$lt_striplib 18495 18496# Dependencies to place before the objects being linked to create a 18497# shared library. 18498predep_objects=$lt_predep_objects_GCJ 18499 18500# Dependencies to place after the objects being linked to create a 18501# shared library. 18502postdep_objects=$lt_postdep_objects_GCJ 18503 18504# Dependencies to place before the objects being linked to create a 18505# shared library. 18506predeps=$lt_predeps_GCJ 18507 18508# Dependencies to place after the objects being linked to create a 18509# shared library. 18510postdeps=$lt_postdeps_GCJ 18511 18512# The library search path used internally by the compiler when linking 18513# a shared library. 18514compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18515 18516# Method to check whether dependent libraries are shared objects. 18517deplibs_check_method=$lt_deplibs_check_method 18518 18519# Command to use when deplibs_check_method == file_magic. 18520file_magic_cmd=$lt_file_magic_cmd 18521 18522# Flag that allows shared libraries with undefined symbols to be built. 18523allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18524 18525# Flag that forces no undefined symbols. 18526no_undefined_flag=$lt_no_undefined_flag_GCJ 18527 18528# Commands used to finish a libtool library installation in a directory. 18529finish_cmds=$lt_finish_cmds 18530 18531# Same as above, but a single script fragment to be evaled but not shown. 18532finish_eval=$lt_finish_eval 18533 18534# Take the output of nm and produce a listing of raw symbols and C names. 18535global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18536 18537# Transform the output of nm in a proper C declaration 18538global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18539 18540# Transform the output of nm in a C name address pair 18541global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18542 18543# This is the shared library runtime path variable. 18544runpath_var=$runpath_var 18545 18546# This is the shared library path variable. 18547shlibpath_var=$shlibpath_var 18548 18549# Is shlibpath searched before the hard-coded library search path? 18550shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18551 18552# How to hardcode a shared library path into an executable. 18553hardcode_action=$hardcode_action_GCJ 18554 18555# Whether we should hardcode library paths into libraries. 18556hardcode_into_libs=$hardcode_into_libs 18557 18558# Flag to hardcode \$libdir into a binary during linking. 18559# This must work even if \$libdir does not exist. 18560hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18561 18562# If ld is used when linking, flag to hardcode \$libdir into 18563# a binary during linking. This must work even if \$libdir does 18564# not exist. 18565hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18566 18567# Whether we need a single -rpath flag with a separated argument. 18568hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18569 18570# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18571# resulting binary. 18572hardcode_direct=$hardcode_direct_GCJ 18573 18574# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18575# resulting binary. 18576hardcode_minus_L=$hardcode_minus_L_GCJ 18577 18578# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18579# the resulting binary. 18580hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18581 18582# Set to yes if building a shared library automatically hardcodes DIR into the library 18583# and all subsequent libraries and executables linked against it. 18584hardcode_automatic=$hardcode_automatic_GCJ 18585 18586# Variables whose values should be saved in libtool wrapper scripts and 18587# restored at relink time. 18588variables_saved_for_relink="$variables_saved_for_relink" 18589 18590# Whether libtool must link a program against all its dependency libraries. 18591link_all_deplibs=$link_all_deplibs_GCJ 18592 18593# Compile-time system search path for libraries 18594sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18595 18596# Run-time system search path for libraries 18597sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18598 18599# Fix the shell variable \$srcfile for the compiler. 18600fix_srcfile_path="$fix_srcfile_path_GCJ" 18601 18602# Set to yes if exported symbols are required. 18603always_export_symbols=$always_export_symbols_GCJ 18604 18605# The commands to list exported symbols. 18606export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18607 18608# The commands to extract the exported symbol list from a shared archive. 18609extract_expsyms_cmds=$lt_extract_expsyms_cmds 18610 18611# Symbols that should not be listed in the preloaded symbols. 18612exclude_expsyms=$lt_exclude_expsyms_GCJ 18613 18614# Symbols that must always be exported. 18615include_expsyms=$lt_include_expsyms_GCJ 18616 18617# ### END LIBTOOL TAG CONFIG: $tagname 18618 18619__EOF__ 18620 18621 18622else 18623 # If there is no Makefile yet, we rely on a make rule to execute 18624 # `config.status --recheck' to rerun these tests and create the 18625 # libtool script then. 18626 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18627 if test -f "$ltmain_in"; then 18628 test -f Makefile && make "$ltmain" 18629 fi 18630fi 18631 18632 18633ac_ext=c 18634ac_cpp='$CPP $CPPFLAGS' 18635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18637ac_compiler_gnu=$ac_cv_c_compiler_gnu 18638 18639CC="$lt_save_CC" 18640 18641 else 18642 tagname="" 18643 fi 18644 ;; 18645 18646 RC) 18647 18648 18649# Source file extension for RC test sources. 18650ac_ext=rc 18651 18652# Object file extension for compiled RC test sources. 18653objext=o 18654objext_RC=$objext 18655 18656# Code to be used in simple compile tests 18657lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18658 18659# Code to be used in simple link tests 18660lt_simple_link_test_code="$lt_simple_compile_test_code" 18661 18662# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18663 18664# If no C compiler was specified, use CC. 18665LTCC=${LTCC-"$CC"} 18666 18667# If no C compiler flags were specified, use CFLAGS. 18668LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18669 18670# Allow CC to be a program name with arguments. 18671compiler=$CC 18672 18673 18674# save warnings/boilerplate of simple test code 18675ac_outfile=conftest.$ac_objext 18676printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18677eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18678_lt_compiler_boilerplate=`cat conftest.err` 18679$rm conftest* 18680 18681ac_outfile=conftest.$ac_objext 18682printf "$lt_simple_link_test_code" >conftest.$ac_ext 18683eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18684_lt_linker_boilerplate=`cat conftest.err` 18685$rm conftest* 18686 18687 18688# Allow CC to be a program name with arguments. 18689lt_save_CC="$CC" 18690CC=${RC-"windres"} 18691compiler=$CC 18692compiler_RC=$CC 18693for cc_temp in $compiler""; do 18694 case $cc_temp in 18695 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18696 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18697 \-*) ;; 18698 *) break;; 18699 esac 18700done 18701cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18702 18703lt_cv_prog_compiler_c_o_RC=yes 18704 18705# The else clause should only fire when bootstrapping the 18706# libtool distribution, otherwise you forgot to ship ltmain.sh 18707# with your package, and you will get complaints that there are 18708# no rules to generate ltmain.sh. 18709if test -f "$ltmain"; then 18710 # See if we are running on zsh, and set the options which allow our commands through 18711 # without removal of \ escapes. 18712 if test -n "${ZSH_VERSION+set}" ; then 18713 setopt NO_GLOB_SUBST 18714 fi 18715 # Now quote all the things that may contain metacharacters while being 18716 # careful not to overquote the AC_SUBSTed values. We take copies of the 18717 # variables and quote the copies for generation of the libtool script. 18718 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18719 SED SHELL STRIP \ 18720 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18721 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18722 deplibs_check_method reload_flag reload_cmds need_locks \ 18723 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18724 lt_cv_sys_global_symbol_to_c_name_address \ 18725 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18726 old_postinstall_cmds old_postuninstall_cmds \ 18727 compiler_RC \ 18728 CC_RC \ 18729 LD_RC \ 18730 lt_prog_compiler_wl_RC \ 18731 lt_prog_compiler_pic_RC \ 18732 lt_prog_compiler_static_RC \ 18733 lt_prog_compiler_no_builtin_flag_RC \ 18734 export_dynamic_flag_spec_RC \ 18735 thread_safe_flag_spec_RC \ 18736 whole_archive_flag_spec_RC \ 18737 enable_shared_with_static_runtimes_RC \ 18738 old_archive_cmds_RC \ 18739 old_archive_from_new_cmds_RC \ 18740 predep_objects_RC \ 18741 postdep_objects_RC \ 18742 predeps_RC \ 18743 postdeps_RC \ 18744 compiler_lib_search_path_RC \ 18745 archive_cmds_RC \ 18746 archive_expsym_cmds_RC \ 18747 postinstall_cmds_RC \ 18748 postuninstall_cmds_RC \ 18749 old_archive_from_expsyms_cmds_RC \ 18750 allow_undefined_flag_RC \ 18751 no_undefined_flag_RC \ 18752 export_symbols_cmds_RC \ 18753 hardcode_libdir_flag_spec_RC \ 18754 hardcode_libdir_flag_spec_ld_RC \ 18755 hardcode_libdir_separator_RC \ 18756 hardcode_automatic_RC \ 18757 module_cmds_RC \ 18758 module_expsym_cmds_RC \ 18759 lt_cv_prog_compiler_c_o_RC \ 18760 exclude_expsyms_RC \ 18761 include_expsyms_RC; do 18762 18763 case $var in 18764 old_archive_cmds_RC | \ 18765 old_archive_from_new_cmds_RC | \ 18766 archive_cmds_RC | \ 18767 archive_expsym_cmds_RC | \ 18768 module_cmds_RC | \ 18769 module_expsym_cmds_RC | \ 18770 old_archive_from_expsyms_cmds_RC | \ 18771 export_symbols_cmds_RC | \ 18772 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18773 postinstall_cmds | postuninstall_cmds | \ 18774 old_postinstall_cmds | old_postuninstall_cmds | \ 18775 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18776 # Double-quote double-evaled strings. 18777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18778 ;; 18779 *) 18780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18781 ;; 18782 esac 18783 done 18784 18785 case $lt_echo in 18786 *'\$0 --fallback-echo"') 18787 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18788 ;; 18789 esac 18790 18791cfgfile="$ofile" 18792 18793 cat <<__EOF__ >> "$cfgfile" 18794# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18795 18796# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18797 18798# Shell to use when invoking shell scripts. 18799SHELL=$lt_SHELL 18800 18801# Whether or not to build shared libraries. 18802build_libtool_libs=$enable_shared 18803 18804# Whether or not to build static libraries. 18805build_old_libs=$enable_static 18806 18807# Whether or not to add -lc for building shared libraries. 18808build_libtool_need_lc=$archive_cmds_need_lc_RC 18809 18810# Whether or not to disallow shared libs when runtime libs are static 18811allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18812 18813# Whether or not to optimize for fast installation. 18814fast_install=$enable_fast_install 18815 18816# The host system. 18817host_alias=$host_alias 18818host=$host 18819host_os=$host_os 18820 18821# The build system. 18822build_alias=$build_alias 18823build=$build 18824build_os=$build_os 18825 18826# An echo program that does not interpret backslashes. 18827echo=$lt_echo 18828 18829# The archiver. 18830AR=$lt_AR 18831AR_FLAGS=$lt_AR_FLAGS 18832 18833# A C compiler. 18834LTCC=$lt_LTCC 18835 18836# LTCC compiler flags. 18837LTCFLAGS=$lt_LTCFLAGS 18838 18839# A language-specific compiler. 18840CC=$lt_compiler_RC 18841 18842# Is the compiler the GNU C compiler? 18843with_gcc=$GCC_RC 18844 18845# An ERE matcher. 18846EGREP=$lt_EGREP 18847 18848# The linker used to build libraries. 18849LD=$lt_LD_RC 18850 18851# Whether we need hard or soft links. 18852LN_S=$lt_LN_S 18853 18854# A BSD-compatible nm program. 18855NM=$lt_NM 18856 18857# A symbol stripping program 18858STRIP=$lt_STRIP 18859 18860# Used to examine libraries when file_magic_cmd begins "file" 18861MAGIC_CMD=$MAGIC_CMD 18862 18863# Used on cygwin: DLL creation program. 18864DLLTOOL="$DLLTOOL" 18865 18866# Used on cygwin: object dumper. 18867OBJDUMP="$OBJDUMP" 18868 18869# Used on cygwin: assembler. 18870AS="$AS" 18871 18872# The name of the directory that contains temporary libtool files. 18873objdir=$objdir 18874 18875# How to create reloadable object files. 18876reload_flag=$lt_reload_flag 18877reload_cmds=$lt_reload_cmds 18878 18879# How to pass a linker flag through the compiler. 18880wl=$lt_lt_prog_compiler_wl_RC 18881 18882# Object file suffix (normally "o"). 18883objext="$ac_objext" 18884 18885# Old archive suffix (normally "a"). 18886libext="$libext" 18887 18888# Shared library suffix (normally ".so"). 18889shrext_cmds='$shrext_cmds' 18890 18891# Executable file suffix (normally ""). 18892exeext="$exeext" 18893 18894# Additional compiler flags for building library objects. 18895pic_flag=$lt_lt_prog_compiler_pic_RC 18896pic_mode=$pic_mode 18897 18898# What is the maximum length of a command? 18899max_cmd_len=$lt_cv_sys_max_cmd_len 18900 18901# Does compiler simultaneously support -c and -o options? 18902compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18903 18904# Must we lock files when doing compilation? 18905need_locks=$lt_need_locks 18906 18907# Do we need the lib prefix for modules? 18908need_lib_prefix=$need_lib_prefix 18909 18910# Do we need a version for libraries? 18911need_version=$need_version 18912 18913# Whether dlopen is supported. 18914dlopen_support=$enable_dlopen 18915 18916# Whether dlopen of programs is supported. 18917dlopen_self=$enable_dlopen_self 18918 18919# Whether dlopen of statically linked programs is supported. 18920dlopen_self_static=$enable_dlopen_self_static 18921 18922# Compiler flag to prevent dynamic linking. 18923link_static_flag=$lt_lt_prog_compiler_static_RC 18924 18925# Compiler flag to turn off builtin functions. 18926no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18927 18928# Compiler flag to allow reflexive dlopens. 18929export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18930 18931# Compiler flag to generate shared objects directly from archives. 18932whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18933 18934# Compiler flag to generate thread-safe objects. 18935thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18936 18937# Library versioning type. 18938version_type=$version_type 18939 18940# Format of library name prefix. 18941libname_spec=$lt_libname_spec 18942 18943# List of archive names. First name is the real one, the rest are links. 18944# The last name is the one that the linker finds with -lNAME. 18945library_names_spec=$lt_library_names_spec 18946 18947# The coded name of the library, if different from the real name. 18948soname_spec=$lt_soname_spec 18949 18950# Commands used to build and install an old-style archive. 18951RANLIB=$lt_RANLIB 18952old_archive_cmds=$lt_old_archive_cmds_RC 18953old_postinstall_cmds=$lt_old_postinstall_cmds 18954old_postuninstall_cmds=$lt_old_postuninstall_cmds 18955 18956# Create an old-style archive from a shared archive. 18957old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18958 18959# Create a temporary old-style archive to link instead of a shared archive. 18960old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18961 18962# Commands used to build and install a shared archive. 18963archive_cmds=$lt_archive_cmds_RC 18964archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18965postinstall_cmds=$lt_postinstall_cmds 18966postuninstall_cmds=$lt_postuninstall_cmds 18967 18968# Commands used to build a loadable module (assumed same as above if empty) 18969module_cmds=$lt_module_cmds_RC 18970module_expsym_cmds=$lt_module_expsym_cmds_RC 18971 18972# Commands to strip libraries. 18973old_striplib=$lt_old_striplib 18974striplib=$lt_striplib 18975 18976# Dependencies to place before the objects being linked to create a 18977# shared library. 18978predep_objects=$lt_predep_objects_RC 18979 18980# Dependencies to place after the objects being linked to create a 18981# shared library. 18982postdep_objects=$lt_postdep_objects_RC 18983 18984# Dependencies to place before the objects being linked to create a 18985# shared library. 18986predeps=$lt_predeps_RC 18987 18988# Dependencies to place after the objects being linked to create a 18989# shared library. 18990postdeps=$lt_postdeps_RC 18991 18992# The library search path used internally by the compiler when linking 18993# a shared library. 18994compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18995 18996# Method to check whether dependent libraries are shared objects. 18997deplibs_check_method=$lt_deplibs_check_method 18998 18999# Command to use when deplibs_check_method == file_magic. 19000file_magic_cmd=$lt_file_magic_cmd 19001 19002# Flag that allows shared libraries with undefined symbols to be built. 19003allow_undefined_flag=$lt_allow_undefined_flag_RC 19004 19005# Flag that forces no undefined symbols. 19006no_undefined_flag=$lt_no_undefined_flag_RC 19007 19008# Commands used to finish a libtool library installation in a directory. 19009finish_cmds=$lt_finish_cmds 19010 19011# Same as above, but a single script fragment to be evaled but not shown. 19012finish_eval=$lt_finish_eval 19013 19014# Take the output of nm and produce a listing of raw symbols and C names. 19015global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19016 19017# Transform the output of nm in a proper C declaration 19018global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19019 19020# Transform the output of nm in a C name address pair 19021global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19022 19023# This is the shared library runtime path variable. 19024runpath_var=$runpath_var 19025 19026# This is the shared library path variable. 19027shlibpath_var=$shlibpath_var 19028 19029# Is shlibpath searched before the hard-coded library search path? 19030shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19031 19032# How to hardcode a shared library path into an executable. 19033hardcode_action=$hardcode_action_RC 19034 19035# Whether we should hardcode library paths into libraries. 19036hardcode_into_libs=$hardcode_into_libs 19037 19038# Flag to hardcode \$libdir into a binary during linking. 19039# This must work even if \$libdir does not exist. 19040hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19041 19042# If ld is used when linking, flag to hardcode \$libdir into 19043# a binary during linking. This must work even if \$libdir does 19044# not exist. 19045hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19046 19047# Whether we need a single -rpath flag with a separated argument. 19048hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19049 19050# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19051# resulting binary. 19052hardcode_direct=$hardcode_direct_RC 19053 19054# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19055# resulting binary. 19056hardcode_minus_L=$hardcode_minus_L_RC 19057 19058# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19059# the resulting binary. 19060hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19061 19062# Set to yes if building a shared library automatically hardcodes DIR into the library 19063# and all subsequent libraries and executables linked against it. 19064hardcode_automatic=$hardcode_automatic_RC 19065 19066# Variables whose values should be saved in libtool wrapper scripts and 19067# restored at relink time. 19068variables_saved_for_relink="$variables_saved_for_relink" 19069 19070# Whether libtool must link a program against all its dependency libraries. 19071link_all_deplibs=$link_all_deplibs_RC 19072 19073# Compile-time system search path for libraries 19074sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19075 19076# Run-time system search path for libraries 19077sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19078 19079# Fix the shell variable \$srcfile for the compiler. 19080fix_srcfile_path="$fix_srcfile_path_RC" 19081 19082# Set to yes if exported symbols are required. 19083always_export_symbols=$always_export_symbols_RC 19084 19085# The commands to list exported symbols. 19086export_symbols_cmds=$lt_export_symbols_cmds_RC 19087 19088# The commands to extract the exported symbol list from a shared archive. 19089extract_expsyms_cmds=$lt_extract_expsyms_cmds 19090 19091# Symbols that should not be listed in the preloaded symbols. 19092exclude_expsyms=$lt_exclude_expsyms_RC 19093 19094# Symbols that must always be exported. 19095include_expsyms=$lt_include_expsyms_RC 19096 19097# ### END LIBTOOL TAG CONFIG: $tagname 19098 19099__EOF__ 19100 19101 19102else 19103 # If there is no Makefile yet, we rely on a make rule to execute 19104 # `config.status --recheck' to rerun these tests and create the 19105 # libtool script then. 19106 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19107 if test -f "$ltmain_in"; then 19108 test -f Makefile && make "$ltmain" 19109 fi 19110fi 19111 19112 19113ac_ext=c 19114ac_cpp='$CPP $CPPFLAGS' 19115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19117ac_compiler_gnu=$ac_cv_c_compiler_gnu 19118 19119CC="$lt_save_CC" 19120 19121 ;; 19122 19123 *) 19124 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19125echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19126 { (exit 1); exit 1; }; } 19127 ;; 19128 esac 19129 19130 # Append the new tag name to the list of available tags. 19131 if test -n "$tagname" ; then 19132 available_tags="$available_tags $tagname" 19133 fi 19134 fi 19135 done 19136 IFS="$lt_save_ifs" 19137 19138 # Now substitute the updated list of available tags. 19139 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19140 mv "${ofile}T" "$ofile" 19141 chmod +x "$ofile" 19142 else 19143 rm -f "${ofile}T" 19144 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19145echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19146 { (exit 1); exit 1; }; } 19147 fi 19148fi 19149 19150 19151 19152# This can be used to rebuild libtool when needed 19153LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19154 19155# Always use our own libtool. 19156LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19157 19158# Prevent multiple expansion 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181ac_ext=c 19182ac_cpp='$CPP $CPPFLAGS' 19183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19185ac_compiler_gnu=$ac_cv_c_compiler_gnu 19186if test -n "$ac_tool_prefix"; then 19187 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19188set dummy ${ac_tool_prefix}gcc; ac_word=$2 19189{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19191if test "${ac_cv_prog_CC+set}" = set; then 19192 echo $ECHO_N "(cached) $ECHO_C" >&6 19193else 19194 if test -n "$CC"; then 19195 ac_cv_prog_CC="$CC" # Let the user override the test. 19196else 19197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19198for as_dir in $PATH 19199do 19200 IFS=$as_save_IFS 19201 test -z "$as_dir" && as_dir=. 19202 for ac_exec_ext in '' $ac_executable_extensions; do 19203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19204 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19206 break 2 19207 fi 19208done 19209done 19210IFS=$as_save_IFS 19211 19212fi 19213fi 19214CC=$ac_cv_prog_CC 19215if test -n "$CC"; then 19216 { echo "$as_me:$LINENO: result: $CC" >&5 19217echo "${ECHO_T}$CC" >&6; } 19218else 19219 { echo "$as_me:$LINENO: result: no" >&5 19220echo "${ECHO_T}no" >&6; } 19221fi 19222 19223 19224fi 19225if test -z "$ac_cv_prog_CC"; then 19226 ac_ct_CC=$CC 19227 # Extract the first word of "gcc", so it can be a program name with args. 19228set dummy gcc; ac_word=$2 19229{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19231if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19232 echo $ECHO_N "(cached) $ECHO_C" >&6 19233else 19234 if test -n "$ac_ct_CC"; then 19235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19236else 19237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19238for as_dir in $PATH 19239do 19240 IFS=$as_save_IFS 19241 test -z "$as_dir" && as_dir=. 19242 for ac_exec_ext in '' $ac_executable_extensions; do 19243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19244 ac_cv_prog_ac_ct_CC="gcc" 19245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19246 break 2 19247 fi 19248done 19249done 19250IFS=$as_save_IFS 19251 19252fi 19253fi 19254ac_ct_CC=$ac_cv_prog_ac_ct_CC 19255if test -n "$ac_ct_CC"; then 19256 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19257echo "${ECHO_T}$ac_ct_CC" >&6; } 19258else 19259 { echo "$as_me:$LINENO: result: no" >&5 19260echo "${ECHO_T}no" >&6; } 19261fi 19262 19263 if test "x$ac_ct_CC" = x; then 19264 CC="" 19265 else 19266 case $cross_compiling:$ac_tool_warned in 19267yes:) 19268{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19269whose name does not start with the host triplet. If you think this 19270configuration is useful to you, please write to autoconf@gnu.org." >&5 19271echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19272whose name does not start with the host triplet. If you think this 19273configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19274ac_tool_warned=yes ;; 19275esac 19276 CC=$ac_ct_CC 19277 fi 19278else 19279 CC="$ac_cv_prog_CC" 19280fi 19281 19282if test -z "$CC"; then 19283 if test -n "$ac_tool_prefix"; then 19284 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19285set dummy ${ac_tool_prefix}cc; ac_word=$2 19286{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19288if test "${ac_cv_prog_CC+set}" = set; then 19289 echo $ECHO_N "(cached) $ECHO_C" >&6 19290else 19291 if test -n "$CC"; then 19292 ac_cv_prog_CC="$CC" # Let the user override the test. 19293else 19294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19295for as_dir in $PATH 19296do 19297 IFS=$as_save_IFS 19298 test -z "$as_dir" && as_dir=. 19299 for ac_exec_ext in '' $ac_executable_extensions; do 19300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19301 ac_cv_prog_CC="${ac_tool_prefix}cc" 19302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19303 break 2 19304 fi 19305done 19306done 19307IFS=$as_save_IFS 19308 19309fi 19310fi 19311CC=$ac_cv_prog_CC 19312if test -n "$CC"; then 19313 { echo "$as_me:$LINENO: result: $CC" >&5 19314echo "${ECHO_T}$CC" >&6; } 19315else 19316 { echo "$as_me:$LINENO: result: no" >&5 19317echo "${ECHO_T}no" >&6; } 19318fi 19319 19320 19321 fi 19322fi 19323if test -z "$CC"; then 19324 # Extract the first word of "cc", so it can be a program name with args. 19325set dummy cc; ac_word=$2 19326{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19328if test "${ac_cv_prog_CC+set}" = set; then 19329 echo $ECHO_N "(cached) $ECHO_C" >&6 19330else 19331 if test -n "$CC"; then 19332 ac_cv_prog_CC="$CC" # Let the user override the test. 19333else 19334 ac_prog_rejected=no 19335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19336for as_dir in $PATH 19337do 19338 IFS=$as_save_IFS 19339 test -z "$as_dir" && as_dir=. 19340 for ac_exec_ext in '' $ac_executable_extensions; do 19341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19342 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19343 ac_prog_rejected=yes 19344 continue 19345 fi 19346 ac_cv_prog_CC="cc" 19347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19348 break 2 19349 fi 19350done 19351done 19352IFS=$as_save_IFS 19353 19354if test $ac_prog_rejected = yes; then 19355 # We found a bogon in the path, so make sure we never use it. 19356 set dummy $ac_cv_prog_CC 19357 shift 19358 if test $# != 0; then 19359 # We chose a different compiler from the bogus one. 19360 # However, it has the same basename, so the bogon will be chosen 19361 # first if we set CC to just the basename; use the full file name. 19362 shift 19363 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19364 fi 19365fi 19366fi 19367fi 19368CC=$ac_cv_prog_CC 19369if test -n "$CC"; then 19370 { echo "$as_me:$LINENO: result: $CC" >&5 19371echo "${ECHO_T}$CC" >&6; } 19372else 19373 { echo "$as_me:$LINENO: result: no" >&5 19374echo "${ECHO_T}no" >&6; } 19375fi 19376 19377 19378fi 19379if test -z "$CC"; then 19380 if test -n "$ac_tool_prefix"; then 19381 for ac_prog in cl.exe 19382 do 19383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19384set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19385{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19387if test "${ac_cv_prog_CC+set}" = set; then 19388 echo $ECHO_N "(cached) $ECHO_C" >&6 19389else 19390 if test -n "$CC"; then 19391 ac_cv_prog_CC="$CC" # Let the user override the test. 19392else 19393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19394for as_dir in $PATH 19395do 19396 IFS=$as_save_IFS 19397 test -z "$as_dir" && as_dir=. 19398 for ac_exec_ext in '' $ac_executable_extensions; do 19399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19400 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19402 break 2 19403 fi 19404done 19405done 19406IFS=$as_save_IFS 19407 19408fi 19409fi 19410CC=$ac_cv_prog_CC 19411if test -n "$CC"; then 19412 { echo "$as_me:$LINENO: result: $CC" >&5 19413echo "${ECHO_T}$CC" >&6; } 19414else 19415 { echo "$as_me:$LINENO: result: no" >&5 19416echo "${ECHO_T}no" >&6; } 19417fi 19418 19419 19420 test -n "$CC" && break 19421 done 19422fi 19423if test -z "$CC"; then 19424 ac_ct_CC=$CC 19425 for ac_prog in cl.exe 19426do 19427 # Extract the first word of "$ac_prog", so it can be a program name with args. 19428set dummy $ac_prog; ac_word=$2 19429{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19431if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19432 echo $ECHO_N "(cached) $ECHO_C" >&6 19433else 19434 if test -n "$ac_ct_CC"; then 19435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19436else 19437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19438for as_dir in $PATH 19439do 19440 IFS=$as_save_IFS 19441 test -z "$as_dir" && as_dir=. 19442 for ac_exec_ext in '' $ac_executable_extensions; do 19443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19444 ac_cv_prog_ac_ct_CC="$ac_prog" 19445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19446 break 2 19447 fi 19448done 19449done 19450IFS=$as_save_IFS 19451 19452fi 19453fi 19454ac_ct_CC=$ac_cv_prog_ac_ct_CC 19455if test -n "$ac_ct_CC"; then 19456 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19457echo "${ECHO_T}$ac_ct_CC" >&6; } 19458else 19459 { echo "$as_me:$LINENO: result: no" >&5 19460echo "${ECHO_T}no" >&6; } 19461fi 19462 19463 19464 test -n "$ac_ct_CC" && break 19465done 19466 19467 if test "x$ac_ct_CC" = x; then 19468 CC="" 19469 else 19470 case $cross_compiling:$ac_tool_warned in 19471yes:) 19472{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19473whose name does not start with the host triplet. If you think this 19474configuration is useful to you, please write to autoconf@gnu.org." >&5 19475echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19476whose name does not start with the host triplet. If you think this 19477configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19478ac_tool_warned=yes ;; 19479esac 19480 CC=$ac_ct_CC 19481 fi 19482fi 19483 19484fi 19485 19486 19487test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 19488See \`config.log' for more details." >&5 19489echo "$as_me: error: no acceptable C compiler found in \$PATH 19490See \`config.log' for more details." >&2;} 19491 { (exit 1); exit 1; }; } 19492 19493# Provide some information about the compiler. 19494echo "$as_me:$LINENO: checking for C compiler version" >&5 19495ac_compiler=`set X $ac_compile; echo $2` 19496{ (ac_try="$ac_compiler --version >&5" 19497case "(($ac_try" in 19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19499 *) ac_try_echo=$ac_try;; 19500esac 19501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19502 (eval "$ac_compiler --version >&5") 2>&5 19503 ac_status=$? 19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19505 (exit $ac_status); } 19506{ (ac_try="$ac_compiler -v >&5" 19507case "(($ac_try" in 19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19509 *) ac_try_echo=$ac_try;; 19510esac 19511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19512 (eval "$ac_compiler -v >&5") 2>&5 19513 ac_status=$? 19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19515 (exit $ac_status); } 19516{ (ac_try="$ac_compiler -V >&5" 19517case "(($ac_try" in 19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19519 *) ac_try_echo=$ac_try;; 19520esac 19521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19522 (eval "$ac_compiler -V >&5") 2>&5 19523 ac_status=$? 19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19525 (exit $ac_status); } 19526 19527{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19528echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 19529if test "${ac_cv_c_compiler_gnu+set}" = set; then 19530 echo $ECHO_N "(cached) $ECHO_C" >&6 19531else 19532 cat >conftest.$ac_ext <<_ACEOF 19533/* confdefs.h. */ 19534_ACEOF 19535cat confdefs.h >>conftest.$ac_ext 19536cat >>conftest.$ac_ext <<_ACEOF 19537/* end confdefs.h. */ 19538 19539int 19540main () 19541{ 19542#ifndef __GNUC__ 19543 choke me 19544#endif 19545 19546 ; 19547 return 0; 19548} 19549_ACEOF 19550rm -f conftest.$ac_objext 19551if { (ac_try="$ac_compile" 19552case "(($ac_try" in 19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19554 *) ac_try_echo=$ac_try;; 19555esac 19556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19557 (eval "$ac_compile") 2>conftest.er1 19558 ac_status=$? 19559 grep -v '^ *+' conftest.er1 >conftest.err 19560 rm -f conftest.er1 19561 cat conftest.err >&5 19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19563 (exit $ac_status); } && { 19564 test -z "$ac_c_werror_flag" || 19565 test ! -s conftest.err 19566 } && test -s conftest.$ac_objext; then 19567 ac_compiler_gnu=yes 19568else 19569 echo "$as_me: failed program was:" >&5 19570sed 's/^/| /' conftest.$ac_ext >&5 19571 19572 ac_compiler_gnu=no 19573fi 19574 19575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19576ac_cv_c_compiler_gnu=$ac_compiler_gnu 19577 19578fi 19579{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19580echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 19581GCC=`test $ac_compiler_gnu = yes && echo yes` 19582ac_test_CFLAGS=${CFLAGS+set} 19583ac_save_CFLAGS=$CFLAGS 19584{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19585echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 19586if test "${ac_cv_prog_cc_g+set}" = set; then 19587 echo $ECHO_N "(cached) $ECHO_C" >&6 19588else 19589 ac_save_c_werror_flag=$ac_c_werror_flag 19590 ac_c_werror_flag=yes 19591 ac_cv_prog_cc_g=no 19592 CFLAGS="-g" 19593 cat >conftest.$ac_ext <<_ACEOF 19594/* confdefs.h. */ 19595_ACEOF 19596cat confdefs.h >>conftest.$ac_ext 19597cat >>conftest.$ac_ext <<_ACEOF 19598/* end confdefs.h. */ 19599 19600int 19601main () 19602{ 19603 19604 ; 19605 return 0; 19606} 19607_ACEOF 19608rm -f conftest.$ac_objext 19609if { (ac_try="$ac_compile" 19610case "(($ac_try" in 19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19612 *) ac_try_echo=$ac_try;; 19613esac 19614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19615 (eval "$ac_compile") 2>conftest.er1 19616 ac_status=$? 19617 grep -v '^ *+' conftest.er1 >conftest.err 19618 rm -f conftest.er1 19619 cat conftest.err >&5 19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19621 (exit $ac_status); } && { 19622 test -z "$ac_c_werror_flag" || 19623 test ! -s conftest.err 19624 } && test -s conftest.$ac_objext; then 19625 ac_cv_prog_cc_g=yes 19626else 19627 echo "$as_me: failed program was:" >&5 19628sed 's/^/| /' conftest.$ac_ext >&5 19629 19630 CFLAGS="" 19631 cat >conftest.$ac_ext <<_ACEOF 19632/* confdefs.h. */ 19633_ACEOF 19634cat confdefs.h >>conftest.$ac_ext 19635cat >>conftest.$ac_ext <<_ACEOF 19636/* end confdefs.h. */ 19637 19638int 19639main () 19640{ 19641 19642 ; 19643 return 0; 19644} 19645_ACEOF 19646rm -f conftest.$ac_objext 19647if { (ac_try="$ac_compile" 19648case "(($ac_try" in 19649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19650 *) ac_try_echo=$ac_try;; 19651esac 19652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19653 (eval "$ac_compile") 2>conftest.er1 19654 ac_status=$? 19655 grep -v '^ *+' conftest.er1 >conftest.err 19656 rm -f conftest.er1 19657 cat conftest.err >&5 19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19659 (exit $ac_status); } && { 19660 test -z "$ac_c_werror_flag" || 19661 test ! -s conftest.err 19662 } && test -s conftest.$ac_objext; then 19663 : 19664else 19665 echo "$as_me: failed program was:" >&5 19666sed 's/^/| /' conftest.$ac_ext >&5 19667 19668 ac_c_werror_flag=$ac_save_c_werror_flag 19669 CFLAGS="-g" 19670 cat >conftest.$ac_ext <<_ACEOF 19671/* confdefs.h. */ 19672_ACEOF 19673cat confdefs.h >>conftest.$ac_ext 19674cat >>conftest.$ac_ext <<_ACEOF 19675/* end confdefs.h. */ 19676 19677int 19678main () 19679{ 19680 19681 ; 19682 return 0; 19683} 19684_ACEOF 19685rm -f conftest.$ac_objext 19686if { (ac_try="$ac_compile" 19687case "(($ac_try" in 19688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19689 *) ac_try_echo=$ac_try;; 19690esac 19691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19692 (eval "$ac_compile") 2>conftest.er1 19693 ac_status=$? 19694 grep -v '^ *+' conftest.er1 >conftest.err 19695 rm -f conftest.er1 19696 cat conftest.err >&5 19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19698 (exit $ac_status); } && { 19699 test -z "$ac_c_werror_flag" || 19700 test ! -s conftest.err 19701 } && test -s conftest.$ac_objext; then 19702 ac_cv_prog_cc_g=yes 19703else 19704 echo "$as_me: failed program was:" >&5 19705sed 's/^/| /' conftest.$ac_ext >&5 19706 19707 19708fi 19709 19710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19711fi 19712 19713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19714fi 19715 19716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19717 ac_c_werror_flag=$ac_save_c_werror_flag 19718fi 19719{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19720echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 19721if test "$ac_test_CFLAGS" = set; then 19722 CFLAGS=$ac_save_CFLAGS 19723elif test $ac_cv_prog_cc_g = yes; then 19724 if test "$GCC" = yes; then 19725 CFLAGS="-g -O2" 19726 else 19727 CFLAGS="-g" 19728 fi 19729else 19730 if test "$GCC" = yes; then 19731 CFLAGS="-O2" 19732 else 19733 CFLAGS= 19734 fi 19735fi 19736{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 19737echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 19738if test "${ac_cv_prog_cc_c89+set}" = set; then 19739 echo $ECHO_N "(cached) $ECHO_C" >&6 19740else 19741 ac_cv_prog_cc_c89=no 19742ac_save_CC=$CC 19743cat >conftest.$ac_ext <<_ACEOF 19744/* confdefs.h. */ 19745_ACEOF 19746cat confdefs.h >>conftest.$ac_ext 19747cat >>conftest.$ac_ext <<_ACEOF 19748/* end confdefs.h. */ 19749#include <stdarg.h> 19750#include <stdio.h> 19751#include <sys/types.h> 19752#include <sys/stat.h> 19753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19754struct buf { int x; }; 19755FILE * (*rcsopen) (struct buf *, struct stat *, int); 19756static char *e (p, i) 19757 char **p; 19758 int i; 19759{ 19760 return p[i]; 19761} 19762static char *f (char * (*g) (char **, int), char **p, ...) 19763{ 19764 char *s; 19765 va_list v; 19766 va_start (v,p); 19767 s = g (p, va_arg (v,int)); 19768 va_end (v); 19769 return s; 19770} 19771 19772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19773 function prototypes and stuff, but not '\xHH' hex character constants. 19774 These don't provoke an error unfortunately, instead are silently treated 19775 as 'x'. The following induces an error, until -std is added to get 19776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19777 array size at least. It's necessary to write '\x00'==0 to get something 19778 that's true only with -std. */ 19779int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19780 19781/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 19782 inside strings and character constants. */ 19783#define FOO(x) 'x' 19784int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 19785 19786int test (int i, double x); 19787struct s1 {int (*f) (int a);}; 19788struct s2 {int (*f) (double a);}; 19789int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19790int argc; 19791char **argv; 19792int 19793main () 19794{ 19795return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19796 ; 19797 return 0; 19798} 19799_ACEOF 19800for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 19801 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19802do 19803 CC="$ac_save_CC $ac_arg" 19804 rm -f conftest.$ac_objext 19805if { (ac_try="$ac_compile" 19806case "(($ac_try" in 19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19808 *) ac_try_echo=$ac_try;; 19809esac 19810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19811 (eval "$ac_compile") 2>conftest.er1 19812 ac_status=$? 19813 grep -v '^ *+' conftest.er1 >conftest.err 19814 rm -f conftest.er1 19815 cat conftest.err >&5 19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19817 (exit $ac_status); } && { 19818 test -z "$ac_c_werror_flag" || 19819 test ! -s conftest.err 19820 } && test -s conftest.$ac_objext; then 19821 ac_cv_prog_cc_c89=$ac_arg 19822else 19823 echo "$as_me: failed program was:" >&5 19824sed 's/^/| /' conftest.$ac_ext >&5 19825 19826 19827fi 19828 19829rm -f core conftest.err conftest.$ac_objext 19830 test "x$ac_cv_prog_cc_c89" != "xno" && break 19831done 19832rm -f conftest.$ac_ext 19833CC=$ac_save_CC 19834 19835fi 19836# AC_CACHE_VAL 19837case "x$ac_cv_prog_cc_c89" in 19838 x) 19839 { echo "$as_me:$LINENO: result: none needed" >&5 19840echo "${ECHO_T}none needed" >&6; } ;; 19841 xno) 19842 { echo "$as_me:$LINENO: result: unsupported" >&5 19843echo "${ECHO_T}unsupported" >&6; } ;; 19844 *) 19845 CC="$CC $ac_cv_prog_cc_c89" 19846 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 19847echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 19848esac 19849 19850 19851ac_ext=c 19852ac_cpp='$CPP $CPPFLAGS' 19853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19855ac_compiler_gnu=$ac_cv_c_compiler_gnu 19856 19857depcc="$CC" am_compiler_list= 19858 19859{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19860echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 19861if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 19862 echo $ECHO_N "(cached) $ECHO_C" >&6 19863else 19864 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19865 # We make a subdir and do the tests there. Otherwise we can end up 19866 # making bogus files that we don't know about and never remove. For 19867 # instance it was reported that on HP-UX the gcc test will end up 19868 # making a dummy file named `D' -- because `-MD' means `put the output 19869 # in D'. 19870 mkdir conftest.dir 19871 # Copy depcomp to subdir because otherwise we won't find it if we're 19872 # using a relative directory. 19873 cp "$am_depcomp" conftest.dir 19874 cd conftest.dir 19875 # We will build objects and dependencies in a subdirectory because 19876 # it helps to detect inapplicable dependency modes. For instance 19877 # both Tru64's cc and ICC support -MD to output dependencies as a 19878 # side effect of compilation, but ICC will put the dependencies in 19879 # the current directory while Tru64 will put them in the object 19880 # directory. 19881 mkdir sub 19882 19883 am_cv_CC_dependencies_compiler_type=none 19884 if test "$am_compiler_list" = ""; then 19885 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19886 fi 19887 for depmode in $am_compiler_list; do 19888 # Setup a source with many dependencies, because some compilers 19889 # like to wrap large dependency lists on column 80 (with \), and 19890 # we should not choose a depcomp mode which is confused by this. 19891 # 19892 # We need to recreate these files for each test, as the compiler may 19893 # overwrite some of them when testing with obscure command lines. 19894 # This happens at least with the AIX C compiler. 19895 : > sub/conftest.c 19896 for i in 1 2 3 4 5 6; do 19897 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19898 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19899 # Solaris 8's {/usr,}/bin/sh. 19900 touch sub/conftst$i.h 19901 done 19902 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19903 19904 case $depmode in 19905 nosideeffect) 19906 # after this tag, mechanisms are not by side-effect, so they'll 19907 # only be used when explicitly requested 19908 if test "x$enable_dependency_tracking" = xyes; then 19909 continue 19910 else 19911 break 19912 fi 19913 ;; 19914 none) break ;; 19915 esac 19916 # We check with `-c' and `-o' for the sake of the "dashmstdout" 19917 # mode. It turns out that the SunPro C++ compiler does not properly 19918 # handle `-M -o', and we need to detect this. 19919 if depmode=$depmode \ 19920 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 19921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19922 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 19923 >/dev/null 2>conftest.err && 19924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19925 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 19926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19927 # icc doesn't choke on unknown options, it will just issue warnings 19928 # or remarks (even with -Werror). So we grep stderr for any message 19929 # that says an option was ignored or not supported. 19930 # When given -MP, icc 7.0 and 7.1 complain thusly: 19931 # icc: Command line warning: ignoring option '-M'; no argument required 19932 # The diagnosis changed in icc 8.0: 19933 # icc: Command line remark: option '-MP' not supported 19934 if (grep 'ignoring option' conftest.err || 19935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19936 am_cv_CC_dependencies_compiler_type=$depmode 19937 break 19938 fi 19939 fi 19940 done 19941 19942 cd .. 19943 rm -rf conftest.dir 19944else 19945 am_cv_CC_dependencies_compiler_type=none 19946fi 19947 19948fi 19949{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 19950echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 19951CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 19952 19953 19954 19955if 19956 test "x$enable_dependency_tracking" != xno \ 19957 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 19958 am__fastdepCC_TRUE= 19959 am__fastdepCC_FALSE='#' 19960else 19961 am__fastdepCC_TRUE='#' 19962 am__fastdepCC_FALSE= 19963fi 19964 19965 19966# Find a good install program. We prefer a C program (faster), 19967# so one script is as good as another. But avoid the broken or 19968# incompatible versions: 19969# SysV /etc/install, /usr/sbin/install 19970# SunOS /usr/etc/install 19971# IRIX /sbin/install 19972# AIX /bin/install 19973# AmigaOS /C/install, which installs bootblocks on floppy discs 19974# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 19975# AFS /usr/afsws/bin/install, which mishandles nonexistent args 19976# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 19977# OS/2's system install, which has a completely different semantic 19978# ./install, which can be erroneously created by make from ./install.sh. 19979{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 19980echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 19981if test -z "$INSTALL"; then 19982if test "${ac_cv_path_install+set}" = set; then 19983 echo $ECHO_N "(cached) $ECHO_C" >&6 19984else 19985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19986for as_dir in $PATH 19987do 19988 IFS=$as_save_IFS 19989 test -z "$as_dir" && as_dir=. 19990 # Account for people who put trailing slashes in PATH elements. 19991case $as_dir/ in 19992 ./ | .// | /cC/* | \ 19993 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 19994 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 19995 /usr/ucb/* ) ;; 19996 *) 19997 # OSF1 and SCO ODT 3.0 have their own names for install. 19998 # Don't use installbsd from OSF since it installs stuff as root 19999 # by default. 20000 for ac_prog in ginstall scoinst install; do 20001 for ac_exec_ext in '' $ac_executable_extensions; do 20002 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 20003 if test $ac_prog = install && 20004 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20005 # AIX install. It has an incompatible calling convention. 20006 : 20007 elif test $ac_prog = install && 20008 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20009 # program-specific install script used by HP pwplus--don't use. 20010 : 20011 else 20012 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 20013 break 3 20014 fi 20015 fi 20016 done 20017 done 20018 ;; 20019esac 20020done 20021IFS=$as_save_IFS 20022 20023 20024fi 20025 if test "${ac_cv_path_install+set}" = set; then 20026 INSTALL=$ac_cv_path_install 20027 else 20028 # As a last resort, use the slow shell script. Don't cache a 20029 # value for INSTALL within a source directory, because that will 20030 # break other packages using the cache if that directory is 20031 # removed, or if the value is a relative name. 20032 INSTALL=$ac_install_sh 20033 fi 20034fi 20035{ echo "$as_me:$LINENO: result: $INSTALL" >&5 20036echo "${ECHO_T}$INSTALL" >&6; } 20037 20038# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 20039# It thinks the first close brace ends the variable substitution. 20040test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 20041 20042test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 20043 20044test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 20045 20046for ac_prog in flex lex 20047do 20048 # Extract the first word of "$ac_prog", so it can be a program name with args. 20049set dummy $ac_prog; ac_word=$2 20050{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20052if test "${ac_cv_prog_LEX+set}" = set; then 20053 echo $ECHO_N "(cached) $ECHO_C" >&6 20054else 20055 if test -n "$LEX"; then 20056 ac_cv_prog_LEX="$LEX" # Let the user override the test. 20057else 20058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20059for as_dir in $PATH 20060do 20061 IFS=$as_save_IFS 20062 test -z "$as_dir" && as_dir=. 20063 for ac_exec_ext in '' $ac_executable_extensions; do 20064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20065 ac_cv_prog_LEX="$ac_prog" 20066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20067 break 2 20068 fi 20069done 20070done 20071IFS=$as_save_IFS 20072 20073fi 20074fi 20075LEX=$ac_cv_prog_LEX 20076if test -n "$LEX"; then 20077 { echo "$as_me:$LINENO: result: $LEX" >&5 20078echo "${ECHO_T}$LEX" >&6; } 20079else 20080 { echo "$as_me:$LINENO: result: no" >&5 20081echo "${ECHO_T}no" >&6; } 20082fi 20083 20084 20085 test -n "$LEX" && break 20086done 20087test -n "$LEX" || LEX=":" 20088 20089if test "x$LEX" != "x:"; then 20090 cat >conftest.l <<_ACEOF 20091%% 20092a { ECHO; } 20093b { REJECT; } 20094c { yymore (); } 20095d { yyless (1); } 20096e { yyless (input () != 0); } 20097f { unput (yytext[0]); } 20098. { BEGIN INITIAL; } 20099%% 20100#ifdef YYTEXT_POINTER 20101extern char *yytext; 20102#endif 20103int 20104main (void) 20105{ 20106 return ! yylex () + ! yywrap (); 20107} 20108_ACEOF 20109{ (ac_try="$LEX conftest.l" 20110case "(($ac_try" in 20111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20112 *) ac_try_echo=$ac_try;; 20113esac 20114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20115 (eval "$LEX conftest.l") 2>&5 20116 ac_status=$? 20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20118 (exit $ac_status); } 20119{ echo "$as_me:$LINENO: checking lex output file root" >&5 20120echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } 20121if test "${ac_cv_prog_lex_root+set}" = set; then 20122 echo $ECHO_N "(cached) $ECHO_C" >&6 20123else 20124 20125if test -f lex.yy.c; then 20126 ac_cv_prog_lex_root=lex.yy 20127elif test -f lexyy.c; then 20128 ac_cv_prog_lex_root=lexyy 20129else 20130 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 20131echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 20132 { (exit 1); exit 1; }; } 20133fi 20134fi 20135{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 20136echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } 20137LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 20138 20139if test -z "${LEXLIB+set}"; then 20140 { echo "$as_me:$LINENO: checking lex library" >&5 20141echo $ECHO_N "checking lex library... $ECHO_C" >&6; } 20142if test "${ac_cv_lib_lex+set}" = set; then 20143 echo $ECHO_N "(cached) $ECHO_C" >&6 20144else 20145 20146 ac_save_LIBS=$LIBS 20147 ac_cv_lib_lex='none needed' 20148 for ac_lib in '' -lfl -ll; do 20149 LIBS="$ac_lib $ac_save_LIBS" 20150 cat >conftest.$ac_ext <<_ACEOF 20151`cat $LEX_OUTPUT_ROOT.c` 20152_ACEOF 20153rm -f conftest.$ac_objext conftest$ac_exeext 20154if { (ac_try="$ac_link" 20155case "(($ac_try" in 20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20157 *) ac_try_echo=$ac_try;; 20158esac 20159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20160 (eval "$ac_link") 2>conftest.er1 20161 ac_status=$? 20162 grep -v '^ *+' conftest.er1 >conftest.err 20163 rm -f conftest.er1 20164 cat conftest.err >&5 20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20166 (exit $ac_status); } && { 20167 test -z "$ac_c_werror_flag" || 20168 test ! -s conftest.err 20169 } && test -s conftest$ac_exeext && 20170 $as_test_x conftest$ac_exeext; then 20171 ac_cv_lib_lex=$ac_lib 20172else 20173 echo "$as_me: failed program was:" >&5 20174sed 's/^/| /' conftest.$ac_ext >&5 20175 20176 20177fi 20178 20179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20180 conftest$ac_exeext conftest.$ac_ext 20181 test "$ac_cv_lib_lex" != 'none needed' && break 20182 done 20183 LIBS=$ac_save_LIBS 20184 20185fi 20186{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 20187echo "${ECHO_T}$ac_cv_lib_lex" >&6; } 20188 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 20189fi 20190 20191 20192{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 20193echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } 20194if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 20195 echo $ECHO_N "(cached) $ECHO_C" >&6 20196else 20197 # POSIX says lex can declare yytext either as a pointer or an array; the 20198# default is implementation-dependent. Figure out which it is, since 20199# not all implementations provide the %pointer and %array declarations. 20200ac_cv_prog_lex_yytext_pointer=no 20201ac_save_LIBS=$LIBS 20202LIBS="$LEXLIB $ac_save_LIBS" 20203cat >conftest.$ac_ext <<_ACEOF 20204#define YYTEXT_POINTER 1 20205`cat $LEX_OUTPUT_ROOT.c` 20206_ACEOF 20207rm -f conftest.$ac_objext conftest$ac_exeext 20208if { (ac_try="$ac_link" 20209case "(($ac_try" in 20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20211 *) ac_try_echo=$ac_try;; 20212esac 20213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20214 (eval "$ac_link") 2>conftest.er1 20215 ac_status=$? 20216 grep -v '^ *+' conftest.er1 >conftest.err 20217 rm -f conftest.er1 20218 cat conftest.err >&5 20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20220 (exit $ac_status); } && { 20221 test -z "$ac_c_werror_flag" || 20222 test ! -s conftest.err 20223 } && test -s conftest$ac_exeext && 20224 $as_test_x conftest$ac_exeext; then 20225 ac_cv_prog_lex_yytext_pointer=yes 20226else 20227 echo "$as_me: failed program was:" >&5 20228sed 's/^/| /' conftest.$ac_ext >&5 20229 20230 20231fi 20232 20233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20234 conftest$ac_exeext conftest.$ac_ext 20235LIBS=$ac_save_LIBS 20236 20237fi 20238{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 20239echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } 20240if test $ac_cv_prog_lex_yytext_pointer = yes; then 20241 20242cat >>confdefs.h <<\_ACEOF 20243#define YYTEXT_POINTER 1 20244_ACEOF 20245 20246fi 20247rm -f conftest.l $LEX_OUTPUT_ROOT.c 20248 20249fi 20250if test "$LEX" = :; then 20251 LEX=${am_missing_run}flex 20252fi 20253# Extract the first word of "bison", so it can be a program name with args. 20254set dummy bison; ac_word=$2 20255{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20257if test "${ac_cv_path_BISON+set}" = set; then 20258 echo $ECHO_N "(cached) $ECHO_C" >&6 20259else 20260 case $BISON in 20261 [\\/]* | ?:[\\/]*) 20262 ac_cv_path_BISON="$BISON" # Let the user override the test with a path. 20263 ;; 20264 *) 20265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20266for as_dir in $PATH 20267do 20268 IFS=$as_save_IFS 20269 test -z "$as_dir" && as_dir=. 20270 for ac_exec_ext in '' $ac_executable_extensions; do 20271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20272 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" 20273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20274 break 2 20275 fi 20276done 20277done 20278IFS=$as_save_IFS 20279 20280 ;; 20281esac 20282fi 20283BISON=$ac_cv_path_BISON 20284if test -n "$BISON"; then 20285 { echo "$as_me:$LINENO: result: $BISON" >&5 20286echo "${ECHO_T}$BISON" >&6; } 20287else 20288 { echo "$as_me:$LINENO: result: no" >&5 20289echo "${ECHO_T}no" >&6; } 20290fi 20291 20292 20293 20294 20295{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20296echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 20297if test "${ac_cv_header_stdc+set}" = set; then 20298 echo $ECHO_N "(cached) $ECHO_C" >&6 20299else 20300 cat >conftest.$ac_ext <<_ACEOF 20301/* confdefs.h. */ 20302_ACEOF 20303cat confdefs.h >>conftest.$ac_ext 20304cat >>conftest.$ac_ext <<_ACEOF 20305/* end confdefs.h. */ 20306#include <stdlib.h> 20307#include <stdarg.h> 20308#include <string.h> 20309#include <float.h> 20310 20311int 20312main () 20313{ 20314 20315 ; 20316 return 0; 20317} 20318_ACEOF 20319rm -f conftest.$ac_objext 20320if { (ac_try="$ac_compile" 20321case "(($ac_try" in 20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20323 *) ac_try_echo=$ac_try;; 20324esac 20325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20326 (eval "$ac_compile") 2>conftest.er1 20327 ac_status=$? 20328 grep -v '^ *+' conftest.er1 >conftest.err 20329 rm -f conftest.er1 20330 cat conftest.err >&5 20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20332 (exit $ac_status); } && { 20333 test -z "$ac_c_werror_flag" || 20334 test ! -s conftest.err 20335 } && test -s conftest.$ac_objext; then 20336 ac_cv_header_stdc=yes 20337else 20338 echo "$as_me: failed program was:" >&5 20339sed 's/^/| /' conftest.$ac_ext >&5 20340 20341 ac_cv_header_stdc=no 20342fi 20343 20344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20345 20346if test $ac_cv_header_stdc = yes; then 20347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20348 cat >conftest.$ac_ext <<_ACEOF 20349/* confdefs.h. */ 20350_ACEOF 20351cat confdefs.h >>conftest.$ac_ext 20352cat >>conftest.$ac_ext <<_ACEOF 20353/* end confdefs.h. */ 20354#include <string.h> 20355 20356_ACEOF 20357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20358 $EGREP "memchr" >/dev/null 2>&1; then 20359 : 20360else 20361 ac_cv_header_stdc=no 20362fi 20363rm -f conftest* 20364 20365fi 20366 20367if test $ac_cv_header_stdc = yes; then 20368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20369 cat >conftest.$ac_ext <<_ACEOF 20370/* confdefs.h. */ 20371_ACEOF 20372cat confdefs.h >>conftest.$ac_ext 20373cat >>conftest.$ac_ext <<_ACEOF 20374/* end confdefs.h. */ 20375#include <stdlib.h> 20376 20377_ACEOF 20378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20379 $EGREP "free" >/dev/null 2>&1; then 20380 : 20381else 20382 ac_cv_header_stdc=no 20383fi 20384rm -f conftest* 20385 20386fi 20387 20388if test $ac_cv_header_stdc = yes; then 20389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20390 if test "$cross_compiling" = yes; then 20391 : 20392else 20393 cat >conftest.$ac_ext <<_ACEOF 20394/* confdefs.h. */ 20395_ACEOF 20396cat confdefs.h >>conftest.$ac_ext 20397cat >>conftest.$ac_ext <<_ACEOF 20398/* end confdefs.h. */ 20399#include <ctype.h> 20400#include <stdlib.h> 20401#if ((' ' & 0x0FF) == 0x020) 20402# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20403# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20404#else 20405# define ISLOWER(c) \ 20406 (('a' <= (c) && (c) <= 'i') \ 20407 || ('j' <= (c) && (c) <= 'r') \ 20408 || ('s' <= (c) && (c) <= 'z')) 20409# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20410#endif 20411 20412#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20413int 20414main () 20415{ 20416 int i; 20417 for (i = 0; i < 256; i++) 20418 if (XOR (islower (i), ISLOWER (i)) 20419 || toupper (i) != TOUPPER (i)) 20420 return 2; 20421 return 0; 20422} 20423_ACEOF 20424rm -f conftest$ac_exeext 20425if { (ac_try="$ac_link" 20426case "(($ac_try" in 20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20428 *) ac_try_echo=$ac_try;; 20429esac 20430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20431 (eval "$ac_link") 2>&5 20432 ac_status=$? 20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20435 { (case "(($ac_try" in 20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20437 *) ac_try_echo=$ac_try;; 20438esac 20439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20440 (eval "$ac_try") 2>&5 20441 ac_status=$? 20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20443 (exit $ac_status); }; }; then 20444 : 20445else 20446 echo "$as_me: program exited with status $ac_status" >&5 20447echo "$as_me: failed program was:" >&5 20448sed 's/^/| /' conftest.$ac_ext >&5 20449 20450( exit $ac_status ) 20451ac_cv_header_stdc=no 20452fi 20453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20454fi 20455 20456 20457fi 20458fi 20459{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20460echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 20461if test $ac_cv_header_stdc = yes; then 20462 20463cat >>confdefs.h <<\_ACEOF 20464#define STDC_HEADERS 1 20465_ACEOF 20466 20467fi 20468 20469 20470 20471 20472 20473 20474for ac_header in stdlib.h malloc.h ctype.h sys/time.h sys/param.h 20475do 20476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20478 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20481 echo $ECHO_N "(cached) $ECHO_C" >&6 20482fi 20483ac_res=`eval echo '${'$as_ac_Header'}'` 20484 { echo "$as_me:$LINENO: result: $ac_res" >&5 20485echo "${ECHO_T}$ac_res" >&6; } 20486else 20487 # Is the header compilable? 20488{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20490cat >conftest.$ac_ext <<_ACEOF 20491/* confdefs.h. */ 20492_ACEOF 20493cat confdefs.h >>conftest.$ac_ext 20494cat >>conftest.$ac_ext <<_ACEOF 20495/* end confdefs.h. */ 20496$ac_includes_default 20497#include <$ac_header> 20498_ACEOF 20499rm -f conftest.$ac_objext 20500if { (ac_try="$ac_compile" 20501case "(($ac_try" in 20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20503 *) ac_try_echo=$ac_try;; 20504esac 20505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20506 (eval "$ac_compile") 2>conftest.er1 20507 ac_status=$? 20508 grep -v '^ *+' conftest.er1 >conftest.err 20509 rm -f conftest.er1 20510 cat conftest.err >&5 20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20512 (exit $ac_status); } && { 20513 test -z "$ac_c_werror_flag" || 20514 test ! -s conftest.err 20515 } && test -s conftest.$ac_objext; then 20516 ac_header_compiler=yes 20517else 20518 echo "$as_me: failed program was:" >&5 20519sed 's/^/| /' conftest.$ac_ext >&5 20520 20521 ac_header_compiler=no 20522fi 20523 20524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20525{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20526echo "${ECHO_T}$ac_header_compiler" >&6; } 20527 20528# Is the header present? 20529{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20530echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20531cat >conftest.$ac_ext <<_ACEOF 20532/* confdefs.h. */ 20533_ACEOF 20534cat confdefs.h >>conftest.$ac_ext 20535cat >>conftest.$ac_ext <<_ACEOF 20536/* end confdefs.h. */ 20537#include <$ac_header> 20538_ACEOF 20539if { (ac_try="$ac_cpp conftest.$ac_ext" 20540case "(($ac_try" in 20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20542 *) ac_try_echo=$ac_try;; 20543esac 20544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20546 ac_status=$? 20547 grep -v '^ *+' conftest.er1 >conftest.err 20548 rm -f conftest.er1 20549 cat conftest.err >&5 20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20551 (exit $ac_status); } >/dev/null && { 20552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20553 test ! -s conftest.err 20554 }; then 20555 ac_header_preproc=yes 20556else 20557 echo "$as_me: failed program was:" >&5 20558sed 's/^/| /' conftest.$ac_ext >&5 20559 20560 ac_header_preproc=no 20561fi 20562 20563rm -f conftest.err conftest.$ac_ext 20564{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20565echo "${ECHO_T}$ac_header_preproc" >&6; } 20566 20567# So? What about this header? 20568case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20569 yes:no: ) 20570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20571echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20573echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20574 ac_header_preproc=yes 20575 ;; 20576 no:yes:* ) 20577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20578echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20580echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20582echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20584echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20586echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20588echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20589 20590 ;; 20591esac 20592{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20595 echo $ECHO_N "(cached) $ECHO_C" >&6 20596else 20597 eval "$as_ac_Header=\$ac_header_preproc" 20598fi 20599ac_res=`eval echo '${'$as_ac_Header'}'` 20600 { echo "$as_me:$LINENO: result: $ac_res" >&5 20601echo "${ECHO_T}$ac_res" >&6; } 20602 20603fi 20604if test `eval echo '${'$as_ac_Header'}'` = yes; then 20605 cat >>confdefs.h <<_ACEOF 20606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20607_ACEOF 20608 20609fi 20610 20611done 20612 20613 20614{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 20615echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 20616if test "${ac_cv_c_bigendian+set}" = set; then 20617 echo $ECHO_N "(cached) $ECHO_C" >&6 20618else 20619 # See if sys/param.h defines the BYTE_ORDER macro. 20620cat >conftest.$ac_ext <<_ACEOF 20621/* confdefs.h. */ 20622_ACEOF 20623cat confdefs.h >>conftest.$ac_ext 20624cat >>conftest.$ac_ext <<_ACEOF 20625/* end confdefs.h. */ 20626#include <sys/types.h> 20627#include <sys/param.h> 20628 20629int 20630main () 20631{ 20632#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 20633 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 20634 bogus endian macros 20635#endif 20636 20637 ; 20638 return 0; 20639} 20640_ACEOF 20641rm -f conftest.$ac_objext 20642if { (ac_try="$ac_compile" 20643case "(($ac_try" in 20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20645 *) ac_try_echo=$ac_try;; 20646esac 20647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20648 (eval "$ac_compile") 2>conftest.er1 20649 ac_status=$? 20650 grep -v '^ *+' conftest.er1 >conftest.err 20651 rm -f conftest.er1 20652 cat conftest.err >&5 20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20654 (exit $ac_status); } && { 20655 test -z "$ac_c_werror_flag" || 20656 test ! -s conftest.err 20657 } && test -s conftest.$ac_objext; then 20658 # It does; now see whether it defined to BIG_ENDIAN or not. 20659cat >conftest.$ac_ext <<_ACEOF 20660/* confdefs.h. */ 20661_ACEOF 20662cat confdefs.h >>conftest.$ac_ext 20663cat >>conftest.$ac_ext <<_ACEOF 20664/* end confdefs.h. */ 20665#include <sys/types.h> 20666#include <sys/param.h> 20667 20668int 20669main () 20670{ 20671#if BYTE_ORDER != BIG_ENDIAN 20672 not big endian 20673#endif 20674 20675 ; 20676 return 0; 20677} 20678_ACEOF 20679rm -f conftest.$ac_objext 20680if { (ac_try="$ac_compile" 20681case "(($ac_try" in 20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20683 *) ac_try_echo=$ac_try;; 20684esac 20685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20686 (eval "$ac_compile") 2>conftest.er1 20687 ac_status=$? 20688 grep -v '^ *+' conftest.er1 >conftest.err 20689 rm -f conftest.er1 20690 cat conftest.err >&5 20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20692 (exit $ac_status); } && { 20693 test -z "$ac_c_werror_flag" || 20694 test ! -s conftest.err 20695 } && test -s conftest.$ac_objext; then 20696 ac_cv_c_bigendian=yes 20697else 20698 echo "$as_me: failed program was:" >&5 20699sed 's/^/| /' conftest.$ac_ext >&5 20700 20701 ac_cv_c_bigendian=no 20702fi 20703 20704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20705else 20706 echo "$as_me: failed program was:" >&5 20707sed 's/^/| /' conftest.$ac_ext >&5 20708 20709 # It does not; compile a test program. 20710if test "$cross_compiling" = yes; then 20711 # try to guess the endianness by grepping values into an object file 20712 ac_cv_c_bigendian=unknown 20713 cat >conftest.$ac_ext <<_ACEOF 20714/* confdefs.h. */ 20715_ACEOF 20716cat confdefs.h >>conftest.$ac_ext 20717cat >>conftest.$ac_ext <<_ACEOF 20718/* end confdefs.h. */ 20719short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 20720short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 20721void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 20722short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 20723short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 20724void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 20725int 20726main () 20727{ 20728 _ascii (); _ebcdic (); 20729 ; 20730 return 0; 20731} 20732_ACEOF 20733rm -f conftest.$ac_objext 20734if { (ac_try="$ac_compile" 20735case "(($ac_try" in 20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20737 *) ac_try_echo=$ac_try;; 20738esac 20739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20740 (eval "$ac_compile") 2>conftest.er1 20741 ac_status=$? 20742 grep -v '^ *+' conftest.er1 >conftest.err 20743 rm -f conftest.er1 20744 cat conftest.err >&5 20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20746 (exit $ac_status); } && { 20747 test -z "$ac_c_werror_flag" || 20748 test ! -s conftest.err 20749 } && test -s conftest.$ac_objext; then 20750 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 20751 ac_cv_c_bigendian=yes 20752fi 20753if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 20754 if test "$ac_cv_c_bigendian" = unknown; then 20755 ac_cv_c_bigendian=no 20756 else 20757 # finding both strings is unlikely to happen, but who knows? 20758 ac_cv_c_bigendian=unknown 20759 fi 20760fi 20761else 20762 echo "$as_me: failed program was:" >&5 20763sed 's/^/| /' conftest.$ac_ext >&5 20764 20765 20766fi 20767 20768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20769else 20770 cat >conftest.$ac_ext <<_ACEOF 20771/* confdefs.h. */ 20772_ACEOF 20773cat confdefs.h >>conftest.$ac_ext 20774cat >>conftest.$ac_ext <<_ACEOF 20775/* end confdefs.h. */ 20776$ac_includes_default 20777int 20778main () 20779{ 20780 20781 /* Are we little or big endian? From Harbison&Steele. */ 20782 union 20783 { 20784 long int l; 20785 char c[sizeof (long int)]; 20786 } u; 20787 u.l = 1; 20788 return u.c[sizeof (long int) - 1] == 1; 20789 20790 ; 20791 return 0; 20792} 20793_ACEOF 20794rm -f conftest$ac_exeext 20795if { (ac_try="$ac_link" 20796case "(($ac_try" in 20797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20798 *) ac_try_echo=$ac_try;; 20799esac 20800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20801 (eval "$ac_link") 2>&5 20802 ac_status=$? 20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20805 { (case "(($ac_try" in 20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20807 *) ac_try_echo=$ac_try;; 20808esac 20809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20810 (eval "$ac_try") 2>&5 20811 ac_status=$? 20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20813 (exit $ac_status); }; }; then 20814 ac_cv_c_bigendian=no 20815else 20816 echo "$as_me: program exited with status $ac_status" >&5 20817echo "$as_me: failed program was:" >&5 20818sed 's/^/| /' conftest.$ac_ext >&5 20819 20820( exit $ac_status ) 20821ac_cv_c_bigendian=yes 20822fi 20823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20824fi 20825 20826 20827fi 20828 20829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20830fi 20831{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 20832echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 20833case $ac_cv_c_bigendian in 20834 yes) 20835 20836cat >>confdefs.h <<\_ACEOF 20837#define WORDS_BIGENDIAN 1 20838_ACEOF 20839 ;; 20840 no) 20841 ;; 20842 *) 20843 { { echo "$as_me:$LINENO: error: unknown endianness 20844presetting ac_cv_c_bigendian=no (or yes) will help" >&5 20845echo "$as_me: error: unknown endianness 20846presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 20847 { (exit 1); exit 1; }; } ;; 20848esac 20849 20850{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 20851echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 20852if test "${ac_cv_header_time+set}" = set; then 20853 echo $ECHO_N "(cached) $ECHO_C" >&6 20854else 20855 cat >conftest.$ac_ext <<_ACEOF 20856/* confdefs.h. */ 20857_ACEOF 20858cat confdefs.h >>conftest.$ac_ext 20859cat >>conftest.$ac_ext <<_ACEOF 20860/* end confdefs.h. */ 20861#include <sys/types.h> 20862#include <sys/time.h> 20863#include <time.h> 20864 20865int 20866main () 20867{ 20868if ((struct tm *) 0) 20869return 0; 20870 ; 20871 return 0; 20872} 20873_ACEOF 20874rm -f conftest.$ac_objext 20875if { (ac_try="$ac_compile" 20876case "(($ac_try" in 20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20878 *) ac_try_echo=$ac_try;; 20879esac 20880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20881 (eval "$ac_compile") 2>conftest.er1 20882 ac_status=$? 20883 grep -v '^ *+' conftest.er1 >conftest.err 20884 rm -f conftest.er1 20885 cat conftest.err >&5 20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20887 (exit $ac_status); } && { 20888 test -z "$ac_c_werror_flag" || 20889 test ! -s conftest.err 20890 } && test -s conftest.$ac_objext; then 20891 ac_cv_header_time=yes 20892else 20893 echo "$as_me: failed program was:" >&5 20894sed 's/^/| /' conftest.$ac_ext >&5 20895 20896 ac_cv_header_time=no 20897fi 20898 20899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20900fi 20901{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 20902echo "${ECHO_T}$ac_cv_header_time" >&6; } 20903if test $ac_cv_header_time = yes; then 20904 20905cat >>confdefs.h <<\_ACEOF 20906#define TIME_WITH_SYS_TIME 1 20907_ACEOF 20908 20909fi 20910 20911 20912 20913for ac_func in vprintf 20914do 20915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20916{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20919 echo $ECHO_N "(cached) $ECHO_C" >&6 20920else 20921 cat >conftest.$ac_ext <<_ACEOF 20922/* confdefs.h. */ 20923_ACEOF 20924cat confdefs.h >>conftest.$ac_ext 20925cat >>conftest.$ac_ext <<_ACEOF 20926/* end confdefs.h. */ 20927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20928 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20929#define $ac_func innocuous_$ac_func 20930 20931/* System header to define __stub macros and hopefully few prototypes, 20932 which can conflict with char $ac_func (); below. 20933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20934 <limits.h> exists even on freestanding compilers. */ 20935 20936#ifdef __STDC__ 20937# include <limits.h> 20938#else 20939# include <assert.h> 20940#endif 20941 20942#undef $ac_func 20943 20944/* Override any GCC internal prototype to avoid an error. 20945 Use char because int might match the return type of a GCC 20946 builtin and then its argument prototype would still apply. */ 20947#ifdef __cplusplus 20948extern "C" 20949#endif 20950char $ac_func (); 20951/* The GNU C library defines this for functions which it implements 20952 to always fail with ENOSYS. Some functions are actually named 20953 something starting with __ and the normal name is an alias. */ 20954#if defined __stub_$ac_func || defined __stub___$ac_func 20955choke me 20956#endif 20957 20958int 20959main () 20960{ 20961return $ac_func (); 20962 ; 20963 return 0; 20964} 20965_ACEOF 20966rm -f conftest.$ac_objext conftest$ac_exeext 20967if { (ac_try="$ac_link" 20968case "(($ac_try" in 20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20970 *) ac_try_echo=$ac_try;; 20971esac 20972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20973 (eval "$ac_link") 2>conftest.er1 20974 ac_status=$? 20975 grep -v '^ *+' conftest.er1 >conftest.err 20976 rm -f conftest.er1 20977 cat conftest.err >&5 20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20979 (exit $ac_status); } && { 20980 test -z "$ac_c_werror_flag" || 20981 test ! -s conftest.err 20982 } && test -s conftest$ac_exeext && 20983 $as_test_x conftest$ac_exeext; then 20984 eval "$as_ac_var=yes" 20985else 20986 echo "$as_me: failed program was:" >&5 20987sed 's/^/| /' conftest.$ac_ext >&5 20988 20989 eval "$as_ac_var=no" 20990fi 20991 20992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20993 conftest$ac_exeext conftest.$ac_ext 20994fi 20995ac_res=`eval echo '${'$as_ac_var'}'` 20996 { echo "$as_me:$LINENO: result: $ac_res" >&5 20997echo "${ECHO_T}$ac_res" >&6; } 20998if test `eval echo '${'$as_ac_var'}'` = yes; then 20999 cat >>confdefs.h <<_ACEOF 21000#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21001_ACEOF 21002 21003{ echo "$as_me:$LINENO: checking for _doprnt" >&5 21004echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } 21005if test "${ac_cv_func__doprnt+set}" = set; then 21006 echo $ECHO_N "(cached) $ECHO_C" >&6 21007else 21008 cat >conftest.$ac_ext <<_ACEOF 21009/* confdefs.h. */ 21010_ACEOF 21011cat confdefs.h >>conftest.$ac_ext 21012cat >>conftest.$ac_ext <<_ACEOF 21013/* end confdefs.h. */ 21014/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 21015 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21016#define _doprnt innocuous__doprnt 21017 21018/* System header to define __stub macros and hopefully few prototypes, 21019 which can conflict with char _doprnt (); below. 21020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21021 <limits.h> exists even on freestanding compilers. */ 21022 21023#ifdef __STDC__ 21024# include <limits.h> 21025#else 21026# include <assert.h> 21027#endif 21028 21029#undef _doprnt 21030 21031/* Override any GCC internal prototype to avoid an error. 21032 Use char because int might match the return type of a GCC 21033 builtin and then its argument prototype would still apply. */ 21034#ifdef __cplusplus 21035extern "C" 21036#endif 21037char _doprnt (); 21038/* The GNU C library defines this for functions which it implements 21039 to always fail with ENOSYS. Some functions are actually named 21040 something starting with __ and the normal name is an alias. */ 21041#if defined __stub__doprnt || defined __stub____doprnt 21042choke me 21043#endif 21044 21045int 21046main () 21047{ 21048return _doprnt (); 21049 ; 21050 return 0; 21051} 21052_ACEOF 21053rm -f conftest.$ac_objext conftest$ac_exeext 21054if { (ac_try="$ac_link" 21055case "(($ac_try" in 21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21057 *) ac_try_echo=$ac_try;; 21058esac 21059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21060 (eval "$ac_link") 2>conftest.er1 21061 ac_status=$? 21062 grep -v '^ *+' conftest.er1 >conftest.err 21063 rm -f conftest.er1 21064 cat conftest.err >&5 21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21066 (exit $ac_status); } && { 21067 test -z "$ac_c_werror_flag" || 21068 test ! -s conftest.err 21069 } && test -s conftest$ac_exeext && 21070 $as_test_x conftest$ac_exeext; then 21071 ac_cv_func__doprnt=yes 21072else 21073 echo "$as_me: failed program was:" >&5 21074sed 's/^/| /' conftest.$ac_ext >&5 21075 21076 ac_cv_func__doprnt=no 21077fi 21078 21079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21080 conftest$ac_exeext conftest.$ac_ext 21081fi 21082{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 21083echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } 21084if test $ac_cv_func__doprnt = yes; then 21085 21086cat >>confdefs.h <<\_ACEOF 21087#define HAVE_DOPRNT 1 21088_ACEOF 21089 21090fi 21091 21092fi 21093done 21094 21095 21096 21097 21098{ echo "$as_me:$LINENO: checking for pow in -lm" >&5 21099echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } 21100if test "${ac_cv_lib_m_pow+set}" = set; then 21101 echo $ECHO_N "(cached) $ECHO_C" >&6 21102else 21103 ac_check_lib_save_LIBS=$LIBS 21104LIBS="-lm $LIBS" 21105cat >conftest.$ac_ext <<_ACEOF 21106/* confdefs.h. */ 21107_ACEOF 21108cat confdefs.h >>conftest.$ac_ext 21109cat >>conftest.$ac_ext <<_ACEOF 21110/* end confdefs.h. */ 21111 21112/* Override any GCC internal prototype to avoid an error. 21113 Use char because int might match the return type of a GCC 21114 builtin and then its argument prototype would still apply. */ 21115#ifdef __cplusplus 21116extern "C" 21117#endif 21118char pow (); 21119int 21120main () 21121{ 21122return pow (); 21123 ; 21124 return 0; 21125} 21126_ACEOF 21127rm -f conftest.$ac_objext conftest$ac_exeext 21128if { (ac_try="$ac_link" 21129case "(($ac_try" in 21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21131 *) ac_try_echo=$ac_try;; 21132esac 21133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21134 (eval "$ac_link") 2>conftest.er1 21135 ac_status=$? 21136 grep -v '^ *+' conftest.er1 >conftest.err 21137 rm -f conftest.er1 21138 cat conftest.err >&5 21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21140 (exit $ac_status); } && { 21141 test -z "$ac_c_werror_flag" || 21142 test ! -s conftest.err 21143 } && test -s conftest$ac_exeext && 21144 $as_test_x conftest$ac_exeext; then 21145 ac_cv_lib_m_pow=yes 21146else 21147 echo "$as_me: failed program was:" >&5 21148sed 's/^/| /' conftest.$ac_ext >&5 21149 21150 ac_cv_lib_m_pow=no 21151fi 21152 21153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21154 conftest$ac_exeext conftest.$ac_ext 21155LIBS=$ac_check_lib_save_LIBS 21156fi 21157{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 21158echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } 21159if test $ac_cv_lib_m_pow = yes; then 21160 cat >>confdefs.h <<_ACEOF 21161#define HAVE_LIBM 1 21162_ACEOF 21163 21164 LIBS="-lm $LIBS" 21165 21166fi 21167 21168 21169# Check whether --enable-debug was given. 21170if test "${enable_debug+set}" = set; then 21171 enableval=$enable_debug; case "${enableval}" in 21172 yes) debug=true ;; 21173 no) debug=false ;; 21174 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 21175echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 21176 { (exit 1); exit 1; }; } ;; 21177 esac 21178else 21179 debug=false 21180fi 21181 21182if test x$debug = xtrue; then 21183 echo 'compiling with debugging enabled, optimization off' 21184 dbg_opt='-DDEBUG -g' 21185else 21186 dbg_opt='-O' 21187fi 21188DBG_OPT=$dbg_opt 21189 21190 21191{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 21192echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 21193set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 21194if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 21195 echo $ECHO_N "(cached) $ECHO_C" >&6 21196else 21197 cat >conftest.make <<\_ACEOF 21198SHELL = /bin/sh 21199all: 21200 @echo '@@@%%%=$(MAKE)=@@@%%%' 21201_ACEOF 21202# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 21203case `${MAKE-make} -f conftest.make 2>/dev/null` in 21204 *@@@%%%=?*=@@@%%%*) 21205 eval ac_cv_prog_make_${ac_make}_set=yes;; 21206 *) 21207 eval ac_cv_prog_make_${ac_make}_set=no;; 21208esac 21209rm -f conftest.make 21210fi 21211if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 21212 { echo "$as_me:$LINENO: result: yes" >&5 21213echo "${ECHO_T}yes" >&6; } 21214 SET_MAKE= 21215else 21216 { echo "$as_me:$LINENO: result: no" >&5 21217echo "${ECHO_T}no" >&6; } 21218 SET_MAKE="MAKE=${MAKE-make}" 21219fi 21220 21221 21222ac_config_files="$ac_config_files Makefile libdcg/Makefile dcg/Makefile libdcg2/Makefile manuals/Makefile manuals/man1/Makefile" 21223 21224cat >confcache <<\_ACEOF 21225# This file is a shell script that caches the results of configure 21226# tests run on this system so they can be shared between configure 21227# scripts and configure runs, see configure's option --config-cache. 21228# It is not useful on other systems. If it contains results you don't 21229# want to keep, you may remove or edit it. 21230# 21231# config.status only pays attention to the cache file if you give it 21232# the --recheck option to rerun configure. 21233# 21234# `ac_cv_env_foo' variables (set or unset) will be overridden when 21235# loading this file, other *unset* `ac_cv_foo' will be assigned the 21236# following values. 21237 21238_ACEOF 21239 21240# The following way of writing the cache mishandles newlines in values, 21241# but we know of no workaround that is simple, portable, and efficient. 21242# So, we kill variables containing newlines. 21243# Ultrix sh set writes to stderr and can't be redirected directly, 21244# and sets the high bit in the cache file unless we assign to the vars. 21245( 21246 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21247 eval ac_val=\$$ac_var 21248 case $ac_val in #( 21249 *${as_nl}*) 21250 case $ac_var in #( 21251 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21252echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21253 esac 21254 case $ac_var in #( 21255 _ | IFS | as_nl) ;; #( 21256 *) $as_unset $ac_var ;; 21257 esac ;; 21258 esac 21259 done 21260 21261 (set) 2>&1 | 21262 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21263 *${as_nl}ac_space=\ *) 21264 # `set' does not quote correctly, so add quotes (double-quote 21265 # substitution turns \\\\ into \\, and sed turns \\ into \). 21266 sed -n \ 21267 "s/'/'\\\\''/g; 21268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21269 ;; #( 21270 *) 21271 # `set' quotes correctly as required by POSIX, so do not add quotes. 21272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21273 ;; 21274 esac | 21275 sort 21276) | 21277 sed ' 21278 /^ac_cv_env_/b end 21279 t clear 21280 :clear 21281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21282 t end 21283 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21284 :end' >>confcache 21285if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21286 if test -w "$cache_file"; then 21287 test "x$cache_file" != "x/dev/null" && 21288 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21289echo "$as_me: updating cache $cache_file" >&6;} 21290 cat confcache >$cache_file 21291 else 21292 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21293echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21294 fi 21295fi 21296rm -f confcache 21297 21298test "x$prefix" = xNONE && prefix=$ac_default_prefix 21299# Let make expand exec_prefix. 21300test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21301 21302DEFS=-DHAVE_CONFIG_H 21303 21304ac_libobjs= 21305ac_ltlibobjs= 21306for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21307 # 1. Remove the extension, and $U if already installed. 21308 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21309 ac_i=`echo "$ac_i" | sed "$ac_script"` 21310 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21311 # will be set to the directory where LIBOBJS objects are built. 21312 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21313 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21314done 21315LIBOBJS=$ac_libobjs 21316 21317LTLIBOBJS=$ac_ltlibobjs 21318 21319 21320if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21321 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21322Usually this means the macro was only invoked conditionally." >&5 21323echo "$as_me: error: conditional \"AMDEP\" was never defined. 21324Usually this means the macro was only invoked conditionally." >&2;} 21325 { (exit 1); exit 1; }; } 21326fi 21327if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21328 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21329Usually this means the macro was only invoked conditionally." >&5 21330echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21331Usually this means the macro was only invoked conditionally." >&2;} 21332 { (exit 1); exit 1; }; } 21333fi 21334if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21335 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21336Usually this means the macro was only invoked conditionally." >&5 21337echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21338Usually this means the macro was only invoked conditionally." >&2;} 21339 { (exit 1); exit 1; }; } 21340fi 21341if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21342 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21343Usually this means the macro was only invoked conditionally." >&5 21344echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21345Usually this means the macro was only invoked conditionally." >&2;} 21346 { (exit 1); exit 1; }; } 21347fi 21348 21349: ${CONFIG_STATUS=./config.status} 21350ac_clean_files_save=$ac_clean_files 21351ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21352{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21353echo "$as_me: creating $CONFIG_STATUS" >&6;} 21354cat >$CONFIG_STATUS <<_ACEOF 21355#! $SHELL 21356# Generated by $as_me. 21357# Run this file to recreate the current configuration. 21358# Compiler output produced by configure, useful for debugging 21359# configure, is in config.log if it exists. 21360 21361debug=false 21362ac_cs_recheck=false 21363ac_cs_silent=false 21364SHELL=\${CONFIG_SHELL-$SHELL} 21365_ACEOF 21366 21367cat >>$CONFIG_STATUS <<\_ACEOF 21368## --------------------- ## 21369## M4sh Initialization. ## 21370## --------------------- ## 21371 21372# Be more Bourne compatible 21373DUALCASE=1; export DUALCASE # for MKS sh 21374if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21375 emulate sh 21376 NULLCMD=: 21377 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21378 # is contrary to our usage. Disable this feature. 21379 alias -g '${1+"$@"}'='"$@"' 21380 setopt NO_GLOB_SUBST 21381else 21382 case `(set -o) 2>/dev/null` in 21383 *posix*) set -o posix ;; 21384esac 21385 21386fi 21387 21388 21389 21390 21391# PATH needs CR 21392# Avoid depending upon Character Ranges. 21393as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21394as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21395as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21396as_cr_digits='0123456789' 21397as_cr_alnum=$as_cr_Letters$as_cr_digits 21398 21399# The user is always right. 21400if test "${PATH_SEPARATOR+set}" != set; then 21401 echo "#! /bin/sh" >conf$$.sh 21402 echo "exit 0" >>conf$$.sh 21403 chmod +x conf$$.sh 21404 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21405 PATH_SEPARATOR=';' 21406 else 21407 PATH_SEPARATOR=: 21408 fi 21409 rm -f conf$$.sh 21410fi 21411 21412# Support unset when possible. 21413if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21414 as_unset=unset 21415else 21416 as_unset=false 21417fi 21418 21419 21420# IFS 21421# We need space, tab and new line, in precisely that order. Quoting is 21422# there to prevent editors from complaining about space-tab. 21423# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21424# splitting by setting IFS to empty value.) 21425as_nl=' 21426' 21427IFS=" "" $as_nl" 21428 21429# Find who we are. Look in the path if we contain no directory separator. 21430case $0 in 21431 *[\\/]* ) as_myself=$0 ;; 21432 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21433for as_dir in $PATH 21434do 21435 IFS=$as_save_IFS 21436 test -z "$as_dir" && as_dir=. 21437 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21438done 21439IFS=$as_save_IFS 21440 21441 ;; 21442esac 21443# We did not find ourselves, most probably we were run as `sh COMMAND' 21444# in which case we are not to be found in the path. 21445if test "x$as_myself" = x; then 21446 as_myself=$0 21447fi 21448if test ! -f "$as_myself"; then 21449 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21450 { (exit 1); exit 1; } 21451fi 21452 21453# Work around bugs in pre-3.0 UWIN ksh. 21454for as_var in ENV MAIL MAILPATH 21455do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21456done 21457PS1='$ ' 21458PS2='> ' 21459PS4='+ ' 21460 21461# NLS nuisances. 21462for as_var in \ 21463 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21464 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21465 LC_TELEPHONE LC_TIME 21466do 21467 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21468 eval $as_var=C; export $as_var 21469 else 21470 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21471 fi 21472done 21473 21474# Required to use basename. 21475if expr a : '\(a\)' >/dev/null 2>&1 && 21476 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21477 as_expr=expr 21478else 21479 as_expr=false 21480fi 21481 21482if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21483 as_basename=basename 21484else 21485 as_basename=false 21486fi 21487 21488 21489# Name of the executable. 21490as_me=`$as_basename -- "$0" || 21491$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21492 X"$0" : 'X\(//\)$' \| \ 21493 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21494echo X/"$0" | 21495 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21496 s//\1/ 21497 q 21498 } 21499 /^X\/\(\/\/\)$/{ 21500 s//\1/ 21501 q 21502 } 21503 /^X\/\(\/\).*/{ 21504 s//\1/ 21505 q 21506 } 21507 s/.*/./; q'` 21508 21509# CDPATH. 21510$as_unset CDPATH 21511 21512 21513 21514 as_lineno_1=$LINENO 21515 as_lineno_2=$LINENO 21516 test "x$as_lineno_1" != "x$as_lineno_2" && 21517 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21518 21519 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21520 # uniformly replaced by the line number. The first 'sed' inserts a 21521 # line-number line after each line using $LINENO; the second 'sed' 21522 # does the real work. The second script uses 'N' to pair each 21523 # line-number line with the line containing $LINENO, and appends 21524 # trailing '-' during substitution so that $LINENO is not a special 21525 # case at line end. 21526 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21527 # scripts with optimization help from Paolo Bonzini. Blame Lee 21528 # E. McMahon (1931-1989) for sed's syntax. :-) 21529 sed -n ' 21530 p 21531 /[$]LINENO/= 21532 ' <$as_myself | 21533 sed ' 21534 s/[$]LINENO.*/&-/ 21535 t lineno 21536 b 21537 :lineno 21538 N 21539 :loop 21540 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21541 t loop 21542 s/-\n.*// 21543 ' >$as_me.lineno && 21544 chmod +x "$as_me.lineno" || 21545 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21546 { (exit 1); exit 1; }; } 21547 21548 # Don't try to exec as it changes $[0], causing all sort of problems 21549 # (the dirname of $[0] is not the place where we might find the 21550 # original and so on. Autoconf is especially sensitive to this). 21551 . "./$as_me.lineno" 21552 # Exit status is that of the last command. 21553 exit 21554} 21555 21556 21557if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21558 as_dirname=dirname 21559else 21560 as_dirname=false 21561fi 21562 21563ECHO_C= ECHO_N= ECHO_T= 21564case `echo -n x` in 21565-n*) 21566 case `echo 'x\c'` in 21567 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21568 *) ECHO_C='\c';; 21569 esac;; 21570*) 21571 ECHO_N='-n';; 21572esac 21573 21574if expr a : '\(a\)' >/dev/null 2>&1 && 21575 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21576 as_expr=expr 21577else 21578 as_expr=false 21579fi 21580 21581rm -f conf$$ conf$$.exe conf$$.file 21582if test -d conf$$.dir; then 21583 rm -f conf$$.dir/conf$$.file 21584else 21585 rm -f conf$$.dir 21586 mkdir conf$$.dir 21587fi 21588echo >conf$$.file 21589if ln -s conf$$.file conf$$ 2>/dev/null; then 21590 as_ln_s='ln -s' 21591 # ... but there are two gotchas: 21592 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21593 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21594 # In both cases, we have to default to `cp -p'. 21595 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21596 as_ln_s='cp -p' 21597elif ln conf$$.file conf$$ 2>/dev/null; then 21598 as_ln_s=ln 21599else 21600 as_ln_s='cp -p' 21601fi 21602rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21603rmdir conf$$.dir 2>/dev/null 21604 21605if mkdir -p . 2>/dev/null; then 21606 as_mkdir_p=: 21607else 21608 test -d ./-p && rmdir ./-p 21609 as_mkdir_p=false 21610fi 21611 21612if test -x / >/dev/null 2>&1; then 21613 as_test_x='test -x' 21614else 21615 if ls -dL / >/dev/null 2>&1; then 21616 as_ls_L_option=L 21617 else 21618 as_ls_L_option= 21619 fi 21620 as_test_x=' 21621 eval sh -c '\'' 21622 if test -d "$1"; then 21623 test -d "$1/."; 21624 else 21625 case $1 in 21626 -*)set "./$1";; 21627 esac; 21628 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21629 ???[sx]*):;;*)false;;esac;fi 21630 '\'' sh 21631 ' 21632fi 21633as_executable_p=$as_test_x 21634 21635# Sed expression to map a string onto a valid CPP name. 21636as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21637 21638# Sed expression to map a string onto a valid variable name. 21639as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21640 21641 21642exec 6>&1 21643 21644# Save the log message, to keep $[0] and so on meaningful, and to 21645# report actual input values of CONFIG_FILES etc. instead of their 21646# values after options handling. 21647ac_log=" 21648This file was extended by $as_me, which was 21649generated by GNU Autoconf 2.61. Invocation command line was 21650 21651 CONFIG_FILES = $CONFIG_FILES 21652 CONFIG_HEADERS = $CONFIG_HEADERS 21653 CONFIG_LINKS = $CONFIG_LINKS 21654 CONFIG_COMMANDS = $CONFIG_COMMANDS 21655 $ $0 $@ 21656 21657on `(hostname || uname -n) 2>/dev/null | sed 1q` 21658" 21659 21660_ACEOF 21661 21662cat >>$CONFIG_STATUS <<_ACEOF 21663# Files that config.status was made for. 21664config_files="$ac_config_files" 21665config_headers="$ac_config_headers" 21666config_commands="$ac_config_commands" 21667 21668_ACEOF 21669 21670cat >>$CONFIG_STATUS <<\_ACEOF 21671ac_cs_usage="\ 21672\`$as_me' instantiates files from templates according to the 21673current configuration. 21674 21675Usage: $0 [OPTIONS] [FILE]... 21676 21677 -h, --help print this help, then exit 21678 -V, --version print version number and configuration settings, then exit 21679 -q, --quiet do not print progress messages 21680 -d, --debug don't remove temporary files 21681 --recheck update $as_me by reconfiguring in the same conditions 21682 --file=FILE[:TEMPLATE] 21683 instantiate the configuration file FILE 21684 --header=FILE[:TEMPLATE] 21685 instantiate the configuration header FILE 21686 21687Configuration files: 21688$config_files 21689 21690Configuration headers: 21691$config_headers 21692 21693Configuration commands: 21694$config_commands 21695 21696Report bugs to <bug-autoconf@gnu.org>." 21697 21698_ACEOF 21699cat >>$CONFIG_STATUS <<_ACEOF 21700ac_cs_version="\\ 21701config.status 21702configured by $0, generated by GNU Autoconf 2.61, 21703 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21704 21705Copyright (C) 2006 Free Software Foundation, Inc. 21706This config.status script is free software; the Free Software Foundation 21707gives unlimited permission to copy, distribute and modify it." 21708 21709ac_pwd='$ac_pwd' 21710srcdir='$srcdir' 21711INSTALL='$INSTALL' 21712_ACEOF 21713 21714cat >>$CONFIG_STATUS <<\_ACEOF 21715# If no file are specified by the user, then we need to provide default 21716# value. By we need to know if files were specified by the user. 21717ac_need_defaults=: 21718while test $# != 0 21719do 21720 case $1 in 21721 --*=*) 21722 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21723 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21724 ac_shift=: 21725 ;; 21726 *) 21727 ac_option=$1 21728 ac_optarg=$2 21729 ac_shift=shift 21730 ;; 21731 esac 21732 21733 case $ac_option in 21734 # Handling of the options. 21735 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21736 ac_cs_recheck=: ;; 21737 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21738 echo "$ac_cs_version"; exit ;; 21739 --debug | --debu | --deb | --de | --d | -d ) 21740 debug=: ;; 21741 --file | --fil | --fi | --f ) 21742 $ac_shift 21743 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21744 ac_need_defaults=false;; 21745 --header | --heade | --head | --hea ) 21746 $ac_shift 21747 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21748 ac_need_defaults=false;; 21749 --he | --h) 21750 # Conflict between --help and --header 21751 { echo "$as_me: error: ambiguous option: $1 21752Try \`$0 --help' for more information." >&2 21753 { (exit 1); exit 1; }; };; 21754 --help | --hel | -h ) 21755 echo "$ac_cs_usage"; exit ;; 21756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21757 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21758 ac_cs_silent=: ;; 21759 21760 # This is an error. 21761 -*) { echo "$as_me: error: unrecognized option: $1 21762Try \`$0 --help' for more information." >&2 21763 { (exit 1); exit 1; }; } ;; 21764 21765 *) ac_config_targets="$ac_config_targets $1" 21766 ac_need_defaults=false ;; 21767 21768 esac 21769 shift 21770done 21771 21772ac_configure_extra_args= 21773 21774if $ac_cs_silent; then 21775 exec 6>/dev/null 21776 ac_configure_extra_args="$ac_configure_extra_args --silent" 21777fi 21778 21779_ACEOF 21780cat >>$CONFIG_STATUS <<_ACEOF 21781if \$ac_cs_recheck; then 21782 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21783 CONFIG_SHELL=$SHELL 21784 export CONFIG_SHELL 21785 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21786fi 21787 21788_ACEOF 21789cat >>$CONFIG_STATUS <<\_ACEOF 21790exec 5>>config.log 21791{ 21792 echo 21793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21794## Running $as_me. ## 21795_ASBOX 21796 echo "$ac_log" 21797} >&5 21798 21799_ACEOF 21800cat >>$CONFIG_STATUS <<_ACEOF 21801# 21802# INIT-COMMANDS 21803# 21804AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21805 21806_ACEOF 21807 21808cat >>$CONFIG_STATUS <<\_ACEOF 21809 21810# Handling of arguments. 21811for ac_config_target in $ac_config_targets 21812do 21813 case $ac_config_target in 21814 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21815 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21816 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21817 "libdcg/Makefile") CONFIG_FILES="$CONFIG_FILES libdcg/Makefile" ;; 21818 "dcg/Makefile") CONFIG_FILES="$CONFIG_FILES dcg/Makefile" ;; 21819 "libdcg2/Makefile") CONFIG_FILES="$CONFIG_FILES libdcg2/Makefile" ;; 21820 "manuals/Makefile") CONFIG_FILES="$CONFIG_FILES manuals/Makefile" ;; 21821 "manuals/man1/Makefile") CONFIG_FILES="$CONFIG_FILES manuals/man1/Makefile" ;; 21822 21823 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21824echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21825 { (exit 1); exit 1; }; };; 21826 esac 21827done 21828 21829 21830# If the user did not use the arguments to specify the items to instantiate, 21831# then the envvar interface is used. Set only those that are not. 21832# We use the long form for the default assignment because of an extremely 21833# bizarre bug on SunOS 4.1.3. 21834if $ac_need_defaults; then 21835 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21836 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21837 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21838fi 21839 21840# Have a temporary directory for convenience. Make it in the build tree 21841# simply because there is no reason against having it here, and in addition, 21842# creating and moving files from /tmp can sometimes cause problems. 21843# Hook for its removal unless debugging. 21844# Note that there is a small window in which the directory will not be cleaned: 21845# after its creation but before its name has been assigned to `$tmp'. 21846$debug || 21847{ 21848 tmp= 21849 trap 'exit_status=$? 21850 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21851' 0 21852 trap '{ (exit 1); exit 1; }' 1 2 13 15 21853} 21854# Create a (secure) tmp directory for tmp files. 21855 21856{ 21857 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21858 test -n "$tmp" && test -d "$tmp" 21859} || 21860{ 21861 tmp=./conf$$-$RANDOM 21862 (umask 077 && mkdir "$tmp") 21863} || 21864{ 21865 echo "$me: cannot create a temporary directory in ." >&2 21866 { (exit 1); exit 1; } 21867} 21868 21869# 21870# Set up the sed scripts for CONFIG_FILES section. 21871# 21872 21873# No need to generate the scripts if there are no CONFIG_FILES. 21874# This happens for instance when ./config.status config.h 21875if test -n "$CONFIG_FILES"; then 21876 21877_ACEOF 21878 21879 21880 21881ac_delim='%!_!# ' 21882for ac_last_try in false false false false false :; do 21883 cat >conf$$subs.sed <<_ACEOF 21884SHELL!$SHELL$ac_delim 21885PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21886PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21887PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21888PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21889PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21890PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21891exec_prefix!$exec_prefix$ac_delim 21892prefix!$prefix$ac_delim 21893program_transform_name!$program_transform_name$ac_delim 21894bindir!$bindir$ac_delim 21895sbindir!$sbindir$ac_delim 21896libexecdir!$libexecdir$ac_delim 21897datarootdir!$datarootdir$ac_delim 21898datadir!$datadir$ac_delim 21899sysconfdir!$sysconfdir$ac_delim 21900sharedstatedir!$sharedstatedir$ac_delim 21901localstatedir!$localstatedir$ac_delim 21902includedir!$includedir$ac_delim 21903oldincludedir!$oldincludedir$ac_delim 21904docdir!$docdir$ac_delim 21905infodir!$infodir$ac_delim 21906htmldir!$htmldir$ac_delim 21907dvidir!$dvidir$ac_delim 21908pdfdir!$pdfdir$ac_delim 21909psdir!$psdir$ac_delim 21910libdir!$libdir$ac_delim 21911localedir!$localedir$ac_delim 21912mandir!$mandir$ac_delim 21913DEFS!$DEFS$ac_delim 21914ECHO_C!$ECHO_C$ac_delim 21915ECHO_N!$ECHO_N$ac_delim 21916ECHO_T!$ECHO_T$ac_delim 21917LIBS!$LIBS$ac_delim 21918build_alias!$build_alias$ac_delim 21919host_alias!$host_alias$ac_delim 21920target_alias!$target_alias$ac_delim 21921INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21922INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21923INSTALL_DATA!$INSTALL_DATA$ac_delim 21924CYGPATH_W!$CYGPATH_W$ac_delim 21925PACKAGE!$PACKAGE$ac_delim 21926VERSION!$VERSION$ac_delim 21927ACLOCAL!$ACLOCAL$ac_delim 21928AUTOCONF!$AUTOCONF$ac_delim 21929AUTOMAKE!$AUTOMAKE$ac_delim 21930AUTOHEADER!$AUTOHEADER$ac_delim 21931MAKEINFO!$MAKEINFO$ac_delim 21932install_sh!$install_sh$ac_delim 21933STRIP!$STRIP$ac_delim 21934INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21935mkdir_p!$mkdir_p$ac_delim 21936AWK!$AWK$ac_delim 21937SET_MAKE!$SET_MAKE$ac_delim 21938am__leading_dot!$am__leading_dot$ac_delim 21939AMTAR!$AMTAR$ac_delim 21940am__tar!$am__tar$ac_delim 21941am__untar!$am__untar$ac_delim 21942build!$build$ac_delim 21943build_cpu!$build_cpu$ac_delim 21944build_vendor!$build_vendor$ac_delim 21945build_os!$build_os$ac_delim 21946host!$host$ac_delim 21947host_cpu!$host_cpu$ac_delim 21948host_vendor!$host_vendor$ac_delim 21949host_os!$host_os$ac_delim 21950CC!$CC$ac_delim 21951CFLAGS!$CFLAGS$ac_delim 21952LDFLAGS!$LDFLAGS$ac_delim 21953CPPFLAGS!$CPPFLAGS$ac_delim 21954ac_ct_CC!$ac_ct_CC$ac_delim 21955EXEEXT!$EXEEXT$ac_delim 21956OBJEXT!$OBJEXT$ac_delim 21957DEPDIR!$DEPDIR$ac_delim 21958am__include!$am__include$ac_delim 21959am__quote!$am__quote$ac_delim 21960AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21961AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21962AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21963CCDEPMODE!$CCDEPMODE$ac_delim 21964am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21965am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21966GREP!$GREP$ac_delim 21967EGREP!$EGREP$ac_delim 21968LN_S!$LN_S$ac_delim 21969ECHO!$ECHO$ac_delim 21970AR!$AR$ac_delim 21971RANLIB!$RANLIB$ac_delim 21972CPP!$CPP$ac_delim 21973CXX!$CXX$ac_delim 21974CXXFLAGS!$CXXFLAGS$ac_delim 21975ac_ct_CXX!$ac_ct_CXX$ac_delim 21976CXXDEPMODE!$CXXDEPMODE$ac_delim 21977am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21978am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21979CXXCPP!$CXXCPP$ac_delim 21980F77!$F77$ac_delim 21981_ACEOF 21982 21983 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21984 break 21985 elif $ac_last_try; then 21986 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21987echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21988 { (exit 1); exit 1; }; } 21989 else 21990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21991 fi 21992done 21993 21994ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21995if test -n "$ac_eof"; then 21996 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21997 ac_eof=`expr $ac_eof + 1` 21998fi 21999 22000cat >>$CONFIG_STATUS <<_ACEOF 22001cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22002/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22003_ACEOF 22004sed ' 22005s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22006s/^/s,@/; s/!/@,|#_!!_#|/ 22007:n 22008t n 22009s/'"$ac_delim"'$/,g/; t 22010s/$/\\/; p 22011N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22012' >>$CONFIG_STATUS <conf$$subs.sed 22013rm -f conf$$subs.sed 22014cat >>$CONFIG_STATUS <<_ACEOF 22015CEOF$ac_eof 22016_ACEOF 22017 22018 22019ac_delim='%!_!# ' 22020for ac_last_try in false false false false false :; do 22021 cat >conf$$subs.sed <<_ACEOF 22022FFLAGS!$FFLAGS$ac_delim 22023ac_ct_F77!$ac_ct_F77$ac_delim 22024LIBTOOL!$LIBTOOL$ac_delim 22025LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim 22026LEX!$LEX$ac_delim 22027LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim 22028LEXLIB!$LEXLIB$ac_delim 22029BISON!$BISON$ac_delim 22030YACC!$YACC$ac_delim 22031DBG_OPT!$DBG_OPT$ac_delim 22032LIBOBJS!$LIBOBJS$ac_delim 22033LTLIBOBJS!$LTLIBOBJS$ac_delim 22034_ACEOF 22035 22036 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then 22037 break 22038 elif $ac_last_try; then 22039 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22040echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22041 { (exit 1); exit 1; }; } 22042 else 22043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22044 fi 22045done 22046 22047ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22048if test -n "$ac_eof"; then 22049 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22050 ac_eof=`expr $ac_eof + 1` 22051fi 22052 22053cat >>$CONFIG_STATUS <<_ACEOF 22054cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22055/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22056_ACEOF 22057sed ' 22058s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22059s/^/s,@/; s/!/@,|#_!!_#|/ 22060:n 22061t n 22062s/'"$ac_delim"'$/,g/; t 22063s/$/\\/; p 22064N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22065' >>$CONFIG_STATUS <conf$$subs.sed 22066rm -f conf$$subs.sed 22067cat >>$CONFIG_STATUS <<_ACEOF 22068:end 22069s/|#_!!_#|//g 22070CEOF$ac_eof 22071_ACEOF 22072 22073 22074# VPATH may cause trouble with some makes, so we remove $(srcdir), 22075# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22076# trailing colons and then remove the whole line if VPATH becomes empty 22077# (actually we leave an empty line to preserve line numbers). 22078if test "x$srcdir" = x.; then 22079 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22080s/:*\$(srcdir):*/:/ 22081s/:*\${srcdir}:*/:/ 22082s/:*@srcdir@:*/:/ 22083s/^\([^=]*=[ ]*\):*/\1/ 22084s/:*$// 22085s/^[^=]*=[ ]*$// 22086}' 22087fi 22088 22089cat >>$CONFIG_STATUS <<\_ACEOF 22090fi # test -n "$CONFIG_FILES" 22091 22092 22093for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22094do 22095 case $ac_tag in 22096 :[FHLC]) ac_mode=$ac_tag; continue;; 22097 esac 22098 case $ac_mode$ac_tag in 22099 :[FHL]*:*);; 22100 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22101echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22102 { (exit 1); exit 1; }; };; 22103 :[FH]-) ac_tag=-:-;; 22104 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22105 esac 22106 ac_save_IFS=$IFS 22107 IFS=: 22108 set x $ac_tag 22109 IFS=$ac_save_IFS 22110 shift 22111 ac_file=$1 22112 shift 22113 22114 case $ac_mode in 22115 :L) ac_source=$1;; 22116 :[FH]) 22117 ac_file_inputs= 22118 for ac_f 22119 do 22120 case $ac_f in 22121 -) ac_f="$tmp/stdin";; 22122 *) # Look for the file first in the build tree, then in the source tree 22123 # (if the path is not absolute). The absolute path cannot be DOS-style, 22124 # because $ac_f cannot contain `:'. 22125 test -f "$ac_f" || 22126 case $ac_f in 22127 [\\/$]*) false;; 22128 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22129 esac || 22130 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22131echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22132 { (exit 1); exit 1; }; };; 22133 esac 22134 ac_file_inputs="$ac_file_inputs $ac_f" 22135 done 22136 22137 # Let's still pretend it is `configure' which instantiates (i.e., don't 22138 # use $as_me), people would be surprised to read: 22139 # /* config.h. Generated by config.status. */ 22140 configure_input="Generated from "`IFS=: 22141 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22142 if test x"$ac_file" != x-; then 22143 configure_input="$ac_file. $configure_input" 22144 { echo "$as_me:$LINENO: creating $ac_file" >&5 22145echo "$as_me: creating $ac_file" >&6;} 22146 fi 22147 22148 case $ac_tag in 22149 *:-:* | *:-) cat >"$tmp/stdin";; 22150 esac 22151 ;; 22152 esac 22153 22154 ac_dir=`$as_dirname -- "$ac_file" || 22155$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22156 X"$ac_file" : 'X\(//\)[^/]' \| \ 22157 X"$ac_file" : 'X\(//\)$' \| \ 22158 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22159echo X"$ac_file" | 22160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22161 s//\1/ 22162 q 22163 } 22164 /^X\(\/\/\)[^/].*/{ 22165 s//\1/ 22166 q 22167 } 22168 /^X\(\/\/\)$/{ 22169 s//\1/ 22170 q 22171 } 22172 /^X\(\/\).*/{ 22173 s//\1/ 22174 q 22175 } 22176 s/.*/./; q'` 22177 { as_dir="$ac_dir" 22178 case $as_dir in #( 22179 -*) as_dir=./$as_dir;; 22180 esac 22181 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22182 as_dirs= 22183 while :; do 22184 case $as_dir in #( 22185 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22186 *) as_qdir=$as_dir;; 22187 esac 22188 as_dirs="'$as_qdir' $as_dirs" 22189 as_dir=`$as_dirname -- "$as_dir" || 22190$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22191 X"$as_dir" : 'X\(//\)[^/]' \| \ 22192 X"$as_dir" : 'X\(//\)$' \| \ 22193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22194echo X"$as_dir" | 22195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22196 s//\1/ 22197 q 22198 } 22199 /^X\(\/\/\)[^/].*/{ 22200 s//\1/ 22201 q 22202 } 22203 /^X\(\/\/\)$/{ 22204 s//\1/ 22205 q 22206 } 22207 /^X\(\/\).*/{ 22208 s//\1/ 22209 q 22210 } 22211 s/.*/./; q'` 22212 test -d "$as_dir" && break 22213 done 22214 test -z "$as_dirs" || eval "mkdir $as_dirs" 22215 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22216echo "$as_me: error: cannot create directory $as_dir" >&2;} 22217 { (exit 1); exit 1; }; }; } 22218 ac_builddir=. 22219 22220case "$ac_dir" in 22221.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22222*) 22223 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22224 # A ".." for each directory in $ac_dir_suffix. 22225 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22226 case $ac_top_builddir_sub in 22227 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22228 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22229 esac ;; 22230esac 22231ac_abs_top_builddir=$ac_pwd 22232ac_abs_builddir=$ac_pwd$ac_dir_suffix 22233# for backward compatibility: 22234ac_top_builddir=$ac_top_build_prefix 22235 22236case $srcdir in 22237 .) # We are building in place. 22238 ac_srcdir=. 22239 ac_top_srcdir=$ac_top_builddir_sub 22240 ac_abs_top_srcdir=$ac_pwd ;; 22241 [\\/]* | ?:[\\/]* ) # Absolute name. 22242 ac_srcdir=$srcdir$ac_dir_suffix; 22243 ac_top_srcdir=$srcdir 22244 ac_abs_top_srcdir=$srcdir ;; 22245 *) # Relative name. 22246 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22247 ac_top_srcdir=$ac_top_build_prefix$srcdir 22248 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22249esac 22250ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22251 22252 22253 case $ac_mode in 22254 :F) 22255 # 22256 # CONFIG_FILE 22257 # 22258 22259 case $INSTALL in 22260 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22261 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22262 esac 22263_ACEOF 22264 22265cat >>$CONFIG_STATUS <<\_ACEOF 22266# If the template does not know about datarootdir, expand it. 22267# FIXME: This hack should be removed a few years after 2.60. 22268ac_datarootdir_hack=; ac_datarootdir_seen= 22269 22270case `sed -n '/datarootdir/ { 22271 p 22272 q 22273} 22274/@datadir@/p 22275/@docdir@/p 22276/@infodir@/p 22277/@localedir@/p 22278/@mandir@/p 22279' $ac_file_inputs` in 22280*datarootdir*) ac_datarootdir_seen=yes;; 22281*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22282 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22283echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22284_ACEOF 22285cat >>$CONFIG_STATUS <<_ACEOF 22286 ac_datarootdir_hack=' 22287 s&@datadir@&$datadir&g 22288 s&@docdir@&$docdir&g 22289 s&@infodir@&$infodir&g 22290 s&@localedir@&$localedir&g 22291 s&@mandir@&$mandir&g 22292 s&\\\${datarootdir}&$datarootdir&g' ;; 22293esac 22294_ACEOF 22295 22296# Neutralize VPATH when `$srcdir' = `.'. 22297# Shell code in configure.ac might set extrasub. 22298# FIXME: do we really want to maintain this feature? 22299cat >>$CONFIG_STATUS <<_ACEOF 22300 sed "$ac_vpsub 22301$extrasub 22302_ACEOF 22303cat >>$CONFIG_STATUS <<\_ACEOF 22304:t 22305/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22306s&@configure_input@&$configure_input&;t t 22307s&@top_builddir@&$ac_top_builddir_sub&;t t 22308s&@srcdir@&$ac_srcdir&;t t 22309s&@abs_srcdir@&$ac_abs_srcdir&;t t 22310s&@top_srcdir@&$ac_top_srcdir&;t t 22311s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22312s&@builddir@&$ac_builddir&;t t 22313s&@abs_builddir@&$ac_abs_builddir&;t t 22314s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22315s&@INSTALL@&$ac_INSTALL&;t t 22316$ac_datarootdir_hack 22317" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22318 22319test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22320 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22321 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22322 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22323which seems to be undefined. Please make sure it is defined." >&5 22324echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22325which seems to be undefined. Please make sure it is defined." >&2;} 22326 22327 rm -f "$tmp/stdin" 22328 case $ac_file in 22329 -) cat "$tmp/out"; rm -f "$tmp/out";; 22330 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22331 esac 22332 ;; 22333 :H) 22334 # 22335 # CONFIG_HEADER 22336 # 22337_ACEOF 22338 22339# Transform confdefs.h into a sed script `conftest.defines', that 22340# substitutes the proper values into config.h.in to produce config.h. 22341rm -f conftest.defines conftest.tail 22342# First, append a space to every undef/define line, to ease matching. 22343echo 's/$/ /' >conftest.defines 22344# Then, protect against being on the right side of a sed subst, or in 22345# an unquoted here document, in config.status. If some macros were 22346# called several times there might be several #defines for the same 22347# symbol, which is useless. But do not sort them, since the last 22348# AC_DEFINE must be honored. 22349ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22350# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22351# NAME is the cpp macro being defined, VALUE is the value it is being given. 22352# PARAMS is the parameter list in the macro definition--in most cases, it's 22353# just an empty string. 22354ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22355ac_dB='\\)[ (].*,\\1define\\2' 22356ac_dC=' ' 22357ac_dD=' ,' 22358 22359uniq confdefs.h | 22360 sed -n ' 22361 t rset 22362 :rset 22363 s/^[ ]*#[ ]*define[ ][ ]*// 22364 t ok 22365 d 22366 :ok 22367 s/[\\&,]/\\&/g 22368 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22369 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22370 ' >>conftest.defines 22371 22372# Remove the space that was appended to ease matching. 22373# Then replace #undef with comments. This is necessary, for 22374# example, in the case of _POSIX_SOURCE, which is predefined and required 22375# on some systems where configure will not decide to define it. 22376# (The regexp can be short, since the line contains either #define or #undef.) 22377echo 's/ $// 22378s,^[ #]*u.*,/* & */,' >>conftest.defines 22379 22380# Break up conftest.defines: 22381ac_max_sed_lines=50 22382 22383# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22384# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22385# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22386# et cetera. 22387ac_in='$ac_file_inputs' 22388ac_out='"$tmp/out1"' 22389ac_nxt='"$tmp/out2"' 22390 22391while : 22392do 22393 # Write a here document: 22394 cat >>$CONFIG_STATUS <<_ACEOF 22395 # First, check the format of the line: 22396 cat >"\$tmp/defines.sed" <<\\CEOF 22397/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22398/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22399b 22400:def 22401_ACEOF 22402 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22403 echo 'CEOF 22404 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22405 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22406 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22407 grep . conftest.tail >/dev/null || break 22408 rm -f conftest.defines 22409 mv conftest.tail conftest.defines 22410done 22411rm -f conftest.defines conftest.tail 22412 22413echo "ac_result=$ac_in" >>$CONFIG_STATUS 22414cat >>$CONFIG_STATUS <<\_ACEOF 22415 if test x"$ac_file" != x-; then 22416 echo "/* $configure_input */" >"$tmp/config.h" 22417 cat "$ac_result" >>"$tmp/config.h" 22418 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22419 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22420echo "$as_me: $ac_file is unchanged" >&6;} 22421 else 22422 rm -f $ac_file 22423 mv "$tmp/config.h" $ac_file 22424 fi 22425 else 22426 echo "/* $configure_input */" 22427 cat "$ac_result" 22428 fi 22429 rm -f "$tmp/out12" 22430# Compute $ac_file's index in $config_headers. 22431_am_stamp_count=1 22432for _am_header in $config_headers :; do 22433 case $_am_header in 22434 $ac_file | $ac_file:* ) 22435 break ;; 22436 * ) 22437 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22438 esac 22439done 22440echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 22441$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22442 X$ac_file : 'X\(//\)[^/]' \| \ 22443 X$ac_file : 'X\(//\)$' \| \ 22444 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 22445echo X$ac_file | 22446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22447 s//\1/ 22448 q 22449 } 22450 /^X\(\/\/\)[^/].*/{ 22451 s//\1/ 22452 q 22453 } 22454 /^X\(\/\/\)$/{ 22455 s//\1/ 22456 q 22457 } 22458 /^X\(\/\).*/{ 22459 s//\1/ 22460 q 22461 } 22462 s/.*/./; q'`/stamp-h$_am_stamp_count 22463 ;; 22464 22465 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22466echo "$as_me: executing $ac_file commands" >&6;} 22467 ;; 22468 esac 22469 22470 22471 case $ac_file$ac_mode in 22472 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22473 # Strip MF so we end up with the name of the file. 22474 mf=`echo "$mf" | sed -e 's/:.*$//'` 22475 # Check whether this is an Automake generated Makefile or not. 22476 # We used to match only the files named `Makefile.in', but 22477 # some people rename them; so instead we look at the file content. 22478 # Grep'ing the first line is not enough: some people post-process 22479 # each Makefile.in and add a new line on top of each file to say so. 22480 # So let's grep whole file. 22481 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 22482 dirpart=`$as_dirname -- "$mf" || 22483$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22484 X"$mf" : 'X\(//\)[^/]' \| \ 22485 X"$mf" : 'X\(//\)$' \| \ 22486 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22487echo X"$mf" | 22488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22489 s//\1/ 22490 q 22491 } 22492 /^X\(\/\/\)[^/].*/{ 22493 s//\1/ 22494 q 22495 } 22496 /^X\(\/\/\)$/{ 22497 s//\1/ 22498 q 22499 } 22500 /^X\(\/\).*/{ 22501 s//\1/ 22502 q 22503 } 22504 s/.*/./; q'` 22505 else 22506 continue 22507 fi 22508 # Extract the definition of DEPDIR, am__include, and am__quote 22509 # from the Makefile without running `make'. 22510 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22511 test -z "$DEPDIR" && continue 22512 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22513 test -z "am__include" && continue 22514 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22515 # When using ansi2knr, U may be empty or an underscore; expand it 22516 U=`sed -n 's/^U = //p' < "$mf"` 22517 # Find all dependency output files, they are included files with 22518 # $(DEPDIR) in their names. We invoke sed twice because it is the 22519 # simplest approach to changing $(DEPDIR) to its actual value in the 22520 # expansion. 22521 for file in `sed -n " 22522 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22523 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22524 # Make sure the directory exists. 22525 test -f "$dirpart/$file" && continue 22526 fdir=`$as_dirname -- "$file" || 22527$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22528 X"$file" : 'X\(//\)[^/]' \| \ 22529 X"$file" : 'X\(//\)$' \| \ 22530 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22531echo X"$file" | 22532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22533 s//\1/ 22534 q 22535 } 22536 /^X\(\/\/\)[^/].*/{ 22537 s//\1/ 22538 q 22539 } 22540 /^X\(\/\/\)$/{ 22541 s//\1/ 22542 q 22543 } 22544 /^X\(\/\).*/{ 22545 s//\1/ 22546 q 22547 } 22548 s/.*/./; q'` 22549 { as_dir=$dirpart/$fdir 22550 case $as_dir in #( 22551 -*) as_dir=./$as_dir;; 22552 esac 22553 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22554 as_dirs= 22555 while :; do 22556 case $as_dir in #( 22557 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22558 *) as_qdir=$as_dir;; 22559 esac 22560 as_dirs="'$as_qdir' $as_dirs" 22561 as_dir=`$as_dirname -- "$as_dir" || 22562$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22563 X"$as_dir" : 'X\(//\)[^/]' \| \ 22564 X"$as_dir" : 'X\(//\)$' \| \ 22565 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22566echo X"$as_dir" | 22567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22568 s//\1/ 22569 q 22570 } 22571 /^X\(\/\/\)[^/].*/{ 22572 s//\1/ 22573 q 22574 } 22575 /^X\(\/\/\)$/{ 22576 s//\1/ 22577 q 22578 } 22579 /^X\(\/\).*/{ 22580 s//\1/ 22581 q 22582 } 22583 s/.*/./; q'` 22584 test -d "$as_dir" && break 22585 done 22586 test -z "$as_dirs" || eval "mkdir $as_dirs" 22587 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22588echo "$as_me: error: cannot create directory $as_dir" >&2;} 22589 { (exit 1); exit 1; }; }; } 22590 # echo "creating $dirpart/$file" 22591 echo '# dummy' > "$dirpart/$file" 22592 done 22593done 22594 ;; 22595 22596 esac 22597done # for ac_tag 22598 22599 22600{ (exit 0); exit 0; } 22601_ACEOF 22602chmod +x $CONFIG_STATUS 22603ac_clean_files=$ac_clean_files_save 22604 22605 22606# configure is writing to config.log, and then calls config.status. 22607# config.status does its own redirection, appending to config.log. 22608# Unfortunately, on DOS this fails, as config.log is still kept open 22609# by configure, so config.status won't be able to write to it; its 22610# output is simply discarded. So we exec the FD to /dev/null, 22611# effectively closing config.log, so it can be properly (re)opened and 22612# appended to by config.status. When coming back to configure, we 22613# need to make the FD available again. 22614if test "$no_create" != yes; then 22615 ac_cs_success=: 22616 ac_config_status_args= 22617 test "$silent" = yes && 22618 ac_config_status_args="$ac_config_status_args --quiet" 22619 exec 5>/dev/null 22620 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22621 exec 5>>config.log 22622 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22623 # would make configure fail if this is the last instruction. 22624 $ac_cs_success || { (exit 1); exit 1; } 22625fi 22626 22627