1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553# Check that we are running under the correct shell. 554SHELL=${CONFIG_SHELL-/bin/sh} 555 556case X$ECHO in 557X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561esac 562 563echo=${ECHO-echo} 564if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576fi 577 578if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582$* 583EOF 584 exit 0 585fi 586 587# The HP-UX ksh and POSIX shell print the target directory to stdout 588# if CDPATH is set. 589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591if test -z "$ECHO"; then 592if test "X${echo_test_string+set}" != Xset; then 593# find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603fi 604 605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689fi 690fi 691 692# Copy echo and quote the copy suitably for passing to libtool from 693# the Makefile, instead of quoting the original, which is used later. 694ECHO=$echo 695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697fi 698 699 700 701 702tagnames=${tagnames+${tagnames},}CXX 703 704tagnames=${tagnames+${tagnames},}F77 705 706exec 7<&0 </dev/null 6>&1 707 708# Name of the host. 709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710# so uname gets run too. 711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713# 714# Initializations. 715# 716ac_default_prefix=/usr/local 717ac_clean_files= 718ac_config_libobj_dir=. 719LIBOBJS= 720cross_compiling=no 721subdirs= 722MFLAGS= 723MAKEFLAGS= 724SHELL=${CONFIG_SHELL-/bin/sh} 725 726# Identity of this package. 727PACKAGE_NAME= 728PACKAGE_TARNAME= 729PACKAGE_VERSION= 730PACKAGE_STRING= 731PACKAGE_BUGREPORT= 732 733ac_unique_file="configure.in" 734# Factoring default headers for most tests. 735ac_includes_default="\ 736#include <stdio.h> 737#ifdef HAVE_SYS_TYPES_H 738# include <sys/types.h> 739#endif 740#ifdef HAVE_SYS_STAT_H 741# include <sys/stat.h> 742#endif 743#ifdef STDC_HEADERS 744# include <stdlib.h> 745# include <stddef.h> 746#else 747# ifdef HAVE_STDLIB_H 748# include <stdlib.h> 749# endif 750#endif 751#ifdef HAVE_STRING_H 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753# include <memory.h> 754# endif 755# include <string.h> 756#endif 757#ifdef HAVE_STRINGS_H 758# include <strings.h> 759#endif 760#ifdef HAVE_INTTYPES_H 761# include <inttypes.h> 762#endif 763#ifdef HAVE_STDINT_H 764# include <stdint.h> 765#endif 766#ifdef HAVE_UNISTD_H 767# include <unistd.h> 768#endif" 769 770ac_subst_vars='SHELL 771PATH_SEPARATOR 772PACKAGE_NAME 773PACKAGE_TARNAME 774PACKAGE_VERSION 775PACKAGE_STRING 776PACKAGE_BUGREPORT 777exec_prefix 778prefix 779program_transform_name 780bindir 781sbindir 782libexecdir 783datarootdir 784datadir 785sysconfdir 786sharedstatedir 787localstatedir 788includedir 789oldincludedir 790docdir 791infodir 792htmldir 793dvidir 794pdfdir 795psdir 796libdir 797localedir 798mandir 799DEFS 800ECHO_C 801ECHO_N 802ECHO_T 803LIBS 804build_alias 805host_alias 806target_alias 807INSTALL_PROGRAM 808INSTALL_SCRIPT 809INSTALL_DATA 810CYGPATH_W 811PACKAGE 812VERSION 813ACLOCAL 814AUTOCONF 815AUTOMAKE 816AUTOHEADER 817MAKEINFO 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 852CPP 853GREP 854EGREP 855PERL 856CSH 857sphinxbase 858docdata 859epdata 860hmmdata 861lmdata 862tidigitsdata 863ad_files 864ad_libs 865ad_backend 866SED 867LN_S 868ECHO 869AR 870RANLIB 871DSYMUTIL 872NMEDIT 873CXX 874CXXFLAGS 875ac_ct_CXX 876CXXDEPMODE 877am__fastdepCXX_TRUE 878am__fastdepCXX_FALSE 879CXXCPP 880F77 881FFLAGS 882ac_ct_F77 883LIBTOOL 884LIBOBJS 885LTLIBOBJS' 886ac_subst_files='' 887 ac_precious_vars='build_alias 888host_alias 889target_alias 890CC 891CFLAGS 892LDFLAGS 893LIBS 894CPPFLAGS 895CPP 896CXX 897CXXFLAGS 898CCC 899CXXCPP 900F77 901FFLAGS' 902 903 904# Initialize some variables set by options. 905ac_init_help= 906ac_init_version=false 907# The variables have the same names as the options, with 908# dashes changed to underlines. 909cache_file=/dev/null 910exec_prefix=NONE 911no_create= 912no_recursion= 913prefix=NONE 914program_prefix=NONE 915program_suffix=NONE 916program_transform_name=s,x,x, 917silent= 918site= 919srcdir= 920verbose= 921x_includes=NONE 922x_libraries=NONE 923 924# Installation directory options. 925# These are left unexpanded so users can "make install exec_prefix=/foo" 926# and all the variables that are supposed to be based on exec_prefix 927# by default will actually change. 928# Use braces instead of parens because sh, perl, etc. also accept them. 929# (The list follows the same order as the GNU Coding Standards.) 930bindir='${exec_prefix}/bin' 931sbindir='${exec_prefix}/sbin' 932libexecdir='${exec_prefix}/libexec' 933datarootdir='${prefix}/share' 934datadir='${datarootdir}' 935sysconfdir='${prefix}/etc' 936sharedstatedir='${prefix}/com' 937localstatedir='${prefix}/var' 938includedir='${prefix}/include' 939oldincludedir='/usr/include' 940docdir='${datarootdir}/doc/${PACKAGE}' 941infodir='${datarootdir}/info' 942htmldir='${docdir}' 943dvidir='${docdir}' 944pdfdir='${docdir}' 945psdir='${docdir}' 946libdir='${exec_prefix}/lib' 947localedir='${datarootdir}/locale' 948mandir='${datarootdir}/man' 949 950ac_prev= 951ac_dashdash= 952for ac_option 953do 954 # If the previous option needs an argument, assign it. 955 if test -n "$ac_prev"; then 956 eval $ac_prev=\$ac_option 957 ac_prev= 958 continue 959 fi 960 961 case $ac_option in 962 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 963 *) ac_optarg=yes ;; 964 esac 965 966 # Accept the important Cygnus configure options, so we can diagnose typos. 967 968 case $ac_dashdash$ac_option in 969 --) 970 ac_dashdash=yes ;; 971 972 -bindir | --bindir | --bindi | --bind | --bin | --bi) 973 ac_prev=bindir ;; 974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 975 bindir=$ac_optarg ;; 976 977 -build | --build | --buil | --bui | --bu) 978 ac_prev=build_alias ;; 979 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 980 build_alias=$ac_optarg ;; 981 982 -cache-file | --cache-file | --cache-fil | --cache-fi \ 983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 984 ac_prev=cache_file ;; 985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 987 cache_file=$ac_optarg ;; 988 989 --config-cache | -C) 990 cache_file=config.cache ;; 991 992 -datadir | --datadir | --datadi | --datad) 993 ac_prev=datadir ;; 994 -datadir=* | --datadir=* | --datadi=* | --datad=*) 995 datadir=$ac_optarg ;; 996 997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 998 | --dataroo | --dataro | --datar) 999 ac_prev=datarootdir ;; 1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1002 datarootdir=$ac_optarg ;; 1003 1004 -disable-* | --disable-*) 1005 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1006 # Reject names that are not valid shell variable names. 1007 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1008 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1009 { (exit 1); exit 1; }; } 1010 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1011 eval enable_$ac_feature=no ;; 1012 1013 -docdir | --docdir | --docdi | --doc | --do) 1014 ac_prev=docdir ;; 1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1016 docdir=$ac_optarg ;; 1017 1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1019 ac_prev=dvidir ;; 1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1021 dvidir=$ac_optarg ;; 1022 1023 -enable-* | --enable-*) 1024 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1025 # Reject names that are not valid shell variable names. 1026 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1027 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1028 { (exit 1); exit 1; }; } 1029 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1030 eval enable_$ac_feature=\$ac_optarg ;; 1031 1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1034 | --exec | --exe | --ex) 1035 ac_prev=exec_prefix ;; 1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1038 | --exec=* | --exe=* | --ex=*) 1039 exec_prefix=$ac_optarg ;; 1040 1041 -gas | --gas | --ga | --g) 1042 # Obsolete; use --with-gas. 1043 with_gas=yes ;; 1044 1045 -help | --help | --hel | --he | -h) 1046 ac_init_help=long ;; 1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1048 ac_init_help=recursive ;; 1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1050 ac_init_help=short ;; 1051 1052 -host | --host | --hos | --ho) 1053 ac_prev=host_alias ;; 1054 -host=* | --host=* | --hos=* | --ho=*) 1055 host_alias=$ac_optarg ;; 1056 1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1058 ac_prev=htmldir ;; 1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1060 | --ht=*) 1061 htmldir=$ac_optarg ;; 1062 1063 -includedir | --includedir | --includedi | --included | --include \ 1064 | --includ | --inclu | --incl | --inc) 1065 ac_prev=includedir ;; 1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1067 | --includ=* | --inclu=* | --incl=* | --inc=*) 1068 includedir=$ac_optarg ;; 1069 1070 -infodir | --infodir | --infodi | --infod | --info | --inf) 1071 ac_prev=infodir ;; 1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1073 infodir=$ac_optarg ;; 1074 1075 -libdir | --libdir | --libdi | --libd) 1076 ac_prev=libdir ;; 1077 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1078 libdir=$ac_optarg ;; 1079 1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1081 | --libexe | --libex | --libe) 1082 ac_prev=libexecdir ;; 1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1084 | --libexe=* | --libex=* | --libe=*) 1085 libexecdir=$ac_optarg ;; 1086 1087 -localedir | --localedir | --localedi | --localed | --locale) 1088 ac_prev=localedir ;; 1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1090 localedir=$ac_optarg ;; 1091 1092 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1093 | --localstate | --localstat | --localsta | --localst | --locals) 1094 ac_prev=localstatedir ;; 1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1097 localstatedir=$ac_optarg ;; 1098 1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1100 ac_prev=mandir ;; 1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1102 mandir=$ac_optarg ;; 1103 1104 -nfp | --nfp | --nf) 1105 # Obsolete; use --without-fp. 1106 with_fp=no ;; 1107 1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1109 | --no-cr | --no-c | -n) 1110 no_create=yes ;; 1111 1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1114 no_recursion=yes ;; 1115 1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1118 | --oldin | --oldi | --old | --ol | --o) 1119 ac_prev=oldincludedir ;; 1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1123 oldincludedir=$ac_optarg ;; 1124 1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1126 ac_prev=prefix ;; 1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1128 prefix=$ac_optarg ;; 1129 1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1131 | --program-pre | --program-pr | --program-p) 1132 ac_prev=program_prefix ;; 1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1135 program_prefix=$ac_optarg ;; 1136 1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1138 | --program-suf | --program-su | --program-s) 1139 ac_prev=program_suffix ;; 1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1142 program_suffix=$ac_optarg ;; 1143 1144 -program-transform-name | --program-transform-name \ 1145 | --program-transform-nam | --program-transform-na \ 1146 | --program-transform-n | --program-transform- \ 1147 | --program-transform | --program-transfor \ 1148 | --program-transfo | --program-transf \ 1149 | --program-trans | --program-tran \ 1150 | --progr-tra | --program-tr | --program-t) 1151 ac_prev=program_transform_name ;; 1152 -program-transform-name=* | --program-transform-name=* \ 1153 | --program-transform-nam=* | --program-transform-na=* \ 1154 | --program-transform-n=* | --program-transform-=* \ 1155 | --program-transform=* | --program-transfor=* \ 1156 | --program-transfo=* | --program-transf=* \ 1157 | --program-trans=* | --program-tran=* \ 1158 | --progr-tra=* | --program-tr=* | --program-t=*) 1159 program_transform_name=$ac_optarg ;; 1160 1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1162 ac_prev=pdfdir ;; 1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1164 pdfdir=$ac_optarg ;; 1165 1166 -psdir | --psdir | --psdi | --psd | --ps) 1167 ac_prev=psdir ;; 1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1169 psdir=$ac_optarg ;; 1170 1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1172 | -silent | --silent | --silen | --sile | --sil) 1173 silent=yes ;; 1174 1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1176 ac_prev=sbindir ;; 1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1178 | --sbi=* | --sb=*) 1179 sbindir=$ac_optarg ;; 1180 1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1183 | --sharedst | --shareds | --shared | --share | --shar \ 1184 | --sha | --sh) 1185 ac_prev=sharedstatedir ;; 1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1189 | --sha=* | --sh=*) 1190 sharedstatedir=$ac_optarg ;; 1191 1192 -site | --site | --sit) 1193 ac_prev=site ;; 1194 -site=* | --site=* | --sit=*) 1195 site=$ac_optarg ;; 1196 1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1198 ac_prev=srcdir ;; 1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1200 srcdir=$ac_optarg ;; 1201 1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1203 | --syscon | --sysco | --sysc | --sys | --sy) 1204 ac_prev=sysconfdir ;; 1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1207 sysconfdir=$ac_optarg ;; 1208 1209 -target | --target | --targe | --targ | --tar | --ta | --t) 1210 ac_prev=target_alias ;; 1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1212 target_alias=$ac_optarg ;; 1213 1214 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1215 verbose=yes ;; 1216 1217 -version | --version | --versio | --versi | --vers | -V) 1218 ac_init_version=: ;; 1219 1220 -with-* | --with-*) 1221 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1222 # Reject names that are not valid shell variable names. 1223 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1224 { echo "$as_me: error: invalid package name: $ac_package" >&2 1225 { (exit 1); exit 1; }; } 1226 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1227 eval with_$ac_package=\$ac_optarg ;; 1228 1229 -without-* | --without-*) 1230 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1231 # Reject names that are not valid shell variable names. 1232 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1233 { echo "$as_me: error: invalid package name: $ac_package" >&2 1234 { (exit 1); exit 1; }; } 1235 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1236 eval with_$ac_package=no ;; 1237 1238 --x) 1239 # Obsolete; use --with-x. 1240 with_x=yes ;; 1241 1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1243 | --x-incl | --x-inc | --x-in | --x-i) 1244 ac_prev=x_includes ;; 1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1247 x_includes=$ac_optarg ;; 1248 1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1251 ac_prev=x_libraries ;; 1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1254 x_libraries=$ac_optarg ;; 1255 1256 -*) { echo "$as_me: error: unrecognized option: $ac_option 1257Try \`$0 --help' for more information." >&2 1258 { (exit 1); exit 1; }; } 1259 ;; 1260 1261 *=*) 1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1263 # Reject names that are not valid shell variable names. 1264 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1265 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1266 { (exit 1); exit 1; }; } 1267 eval $ac_envvar=\$ac_optarg 1268 export $ac_envvar ;; 1269 1270 *) 1271 # FIXME: should be removed in autoconf 3.0. 1272 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1274 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1275 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1276 ;; 1277 1278 esac 1279done 1280 1281if test -n "$ac_prev"; then 1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1283 { echo "$as_me: error: missing argument to $ac_option" >&2 1284 { (exit 1); exit 1; }; } 1285fi 1286 1287# Be sure to have absolute directory names. 1288for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1289 datadir sysconfdir sharedstatedir localstatedir includedir \ 1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1291 libdir localedir mandir 1292do 1293 eval ac_val=\$$ac_var 1294 case $ac_val in 1295 [\\/$]* | ?:[\\/]* ) continue;; 1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1297 esac 1298 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1299 { (exit 1); exit 1; }; } 1300done 1301 1302# There might be people who depend on the old broken behavior: `$host' 1303# used to hold the argument of --host etc. 1304# FIXME: To remove some day. 1305build=$build_alias 1306host=$host_alias 1307target=$target_alias 1308 1309# FIXME: To remove some day. 1310if test "x$host_alias" != x; then 1311 if test "x$build_alias" = x; then 1312 cross_compiling=maybe 1313 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1314 If a cross compiler is detected then cross compile mode will be used." >&2 1315 elif test "x$build_alias" != "x$host_alias"; then 1316 cross_compiling=yes 1317 fi 1318fi 1319 1320ac_tool_prefix= 1321test -n "$host_alias" && ac_tool_prefix=$host_alias- 1322 1323test "$silent" = yes && exec 6>/dev/null 1324 1325 1326ac_pwd=`pwd` && test -n "$ac_pwd" && 1327ac_ls_di=`ls -di .` && 1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1329 { echo "$as_me: error: Working directory cannot be determined" >&2 1330 { (exit 1); exit 1; }; } 1331test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1332 { echo "$as_me: error: pwd does not report name of working directory" >&2 1333 { (exit 1); exit 1; }; } 1334 1335 1336# Find the source files, if location was not specified. 1337if test -z "$srcdir"; then 1338 ac_srcdir_defaulted=yes 1339 # Try the directory containing this script, then the parent directory. 1340 ac_confdir=`$as_dirname -- "$0" || 1341$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1342 X"$0" : 'X\(//\)[^/]' \| \ 1343 X"$0" : 'X\(//\)$' \| \ 1344 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1345echo X"$0" | 1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)[^/].*/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\).*/{ 1359 s//\1/ 1360 q 1361 } 1362 s/.*/./; q'` 1363 srcdir=$ac_confdir 1364 if test ! -r "$srcdir/$ac_unique_file"; then 1365 srcdir=.. 1366 fi 1367else 1368 ac_srcdir_defaulted=no 1369fi 1370if test ! -r "$srcdir/$ac_unique_file"; then 1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1372 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1373 { (exit 1); exit 1; }; } 1374fi 1375ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1376ac_abs_confdir=`( 1377 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1378 { (exit 1); exit 1; }; } 1379 pwd)` 1380# When building in place, set srcdir=. 1381if test "$ac_abs_confdir" = "$ac_pwd"; then 1382 srcdir=. 1383fi 1384# Remove unnecessary trailing slashes from srcdir. 1385# Double slashes in file names in object file debugging info 1386# mess up M-x gdb in Emacs. 1387case $srcdir in 1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1389esac 1390for ac_var in $ac_precious_vars; do 1391 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_env_${ac_var}_value=\$${ac_var} 1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1394 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1395done 1396 1397# 1398# Report the --help message. 1399# 1400if test "$ac_init_help" = "long"; then 1401 # Omit some internal or obsolete options to make the list less imposing. 1402 # This message is too long to be a string in the A/UX 3.1 sh. 1403 cat <<_ACEOF 1404\`configure' configures this package to adapt to many kinds of systems. 1405 1406Usage: $0 [OPTION]... [VAR=VALUE]... 1407 1408To assign environment variables (e.g., CC, CFLAGS...), specify them as 1409VAR=VALUE. See below for descriptions of some of the useful variables. 1410 1411Defaults for the options are specified in brackets. 1412 1413Configuration: 1414 -h, --help display this help and exit 1415 --help=short display options specific to this package 1416 --help=recursive display the short help of all the included packages 1417 -V, --version display version information and exit 1418 -q, --quiet, --silent do not print \`checking...' messages 1419 --cache-file=FILE cache test results in FILE [disabled] 1420 -C, --config-cache alias for \`--cache-file=config.cache' 1421 -n, --no-create do not create output files 1422 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1423 1424Installation directories: 1425 --prefix=PREFIX install architecture-independent files in PREFIX 1426 [$ac_default_prefix] 1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1428 [PREFIX] 1429 1430By default, \`make install' will install all the files in 1431\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1432an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1433for instance \`--prefix=\$HOME'. 1434 1435For better control, use the options below. 1436 1437Fine tuning of the installation directories: 1438 --bindir=DIR user executables [EPREFIX/bin] 1439 --sbindir=DIR system admin executables [EPREFIX/sbin] 1440 --libexecdir=DIR program executables [EPREFIX/libexec] 1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1444 --libdir=DIR object code libraries [EPREFIX/lib] 1445 --includedir=DIR C header files [PREFIX/include] 1446 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1449 --infodir=DIR info documentation [DATAROOTDIR/info] 1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1451 --mandir=DIR man documentation [DATAROOTDIR/man] 1452 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1453 --htmldir=DIR html documentation [DOCDIR] 1454 --dvidir=DIR dvi documentation [DOCDIR] 1455 --pdfdir=DIR pdf documentation [DOCDIR] 1456 --psdir=DIR ps documentation [DOCDIR] 1457_ACEOF 1458 1459 cat <<\_ACEOF 1460 1461Program names: 1462 --program-prefix=PREFIX prepend PREFIX to installed program names 1463 --program-suffix=SUFFIX append SUFFIX to installed program names 1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1465 1466System types: 1467 --build=BUILD configure for building on BUILD [guessed] 1468 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1469_ACEOF 1470fi 1471 1472if test -n "$ac_init_help"; then 1473 1474 cat <<\_ACEOF 1475 1476Optional Features: 1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1479 --disable-dependency-tracking speeds up one-time build 1480 --enable-dependency-tracking do not reject slow dependency extractors 1481 --enable-shared[=PKGS] build shared libraries [default=yes] 1482 --enable-static[=PKGS] build static libraries [default=yes] 1483 --enable-fast-install[=PKGS] 1484 optimize for fast installation [default=yes] 1485 --disable-libtool-lock avoid locking (might break parallel builds) 1486 1487Optional Packages: 1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1490 --with-sphinxbase=DIRECTORY 1491 look for SphinxBase source files in DIRECTORY 1492 --with-sphinxbase-build=DIRECTORY 1493 look for SphinxBase object files in DIRECTORY 1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1495 --with-pic try to use only PIC/non-PIC objects [default=use 1496 both] 1497 --with-tags[=TAGS] include additional configurations [automatic] 1498 1499Some influential environment variables: 1500 CC C compiler command 1501 CFLAGS C compiler flags 1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1503 nonstandard directory <lib dir> 1504 LIBS libraries to pass to the linker, e.g. -l<library> 1505 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1506 you have headers in a nonstandard directory <include dir> 1507 CPP C preprocessor 1508 CXX C++ compiler command 1509 CXXFLAGS C++ compiler flags 1510 CXXCPP C++ preprocessor 1511 F77 Fortran 77 compiler command 1512 FFLAGS Fortran 77 compiler flags 1513 1514Use these variables to override the choices made by `configure' or to help 1515it to find libraries and programs with nonstandard names/locations. 1516 1517_ACEOF 1518ac_status=$? 1519fi 1520 1521if test "$ac_init_help" = "recursive"; then 1522 # If there are subdirs, report their specific --help. 1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1524 test -d "$ac_dir" || continue 1525 ac_builddir=. 1526 1527case "$ac_dir" in 1528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1529*) 1530 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1531 # A ".." for each directory in $ac_dir_suffix. 1532 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1533 case $ac_top_builddir_sub in 1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1536 esac ;; 1537esac 1538ac_abs_top_builddir=$ac_pwd 1539ac_abs_builddir=$ac_pwd$ac_dir_suffix 1540# for backward compatibility: 1541ac_top_builddir=$ac_top_build_prefix 1542 1543case $srcdir in 1544 .) # We are building in place. 1545 ac_srcdir=. 1546 ac_top_srcdir=$ac_top_builddir_sub 1547 ac_abs_top_srcdir=$ac_pwd ;; 1548 [\\/]* | ?:[\\/]* ) # Absolute name. 1549 ac_srcdir=$srcdir$ac_dir_suffix; 1550 ac_top_srcdir=$srcdir 1551 ac_abs_top_srcdir=$srcdir ;; 1552 *) # Relative name. 1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1554 ac_top_srcdir=$ac_top_build_prefix$srcdir 1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1556esac 1557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1558 1559 cd "$ac_dir" || { ac_status=$?; continue; } 1560 # Check for guested configure. 1561 if test -f "$ac_srcdir/configure.gnu"; then 1562 echo && 1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1564 elif test -f "$ac_srcdir/configure"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure" --help=recursive 1567 else 1568 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1569 fi || ac_status=$? 1570 cd "$ac_pwd" || { ac_status=$?; break; } 1571 done 1572fi 1573 1574test -n "$ac_init_help" && exit $ac_status 1575if $ac_init_version; then 1576 cat <<\_ACEOF 1577configure 1578generated by GNU Autoconf 2.61 1579 1580Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15812002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1582This configure script is free software; the Free Software Foundation 1583gives unlimited permission to copy, distribute and modify it. 1584_ACEOF 1585 exit 1586fi 1587cat >config.log <<_ACEOF 1588This file contains any messages produced by compilers while 1589running configure, to aid debugging if configure makes a mistake. 1590 1591It was created by $as_me, which was 1592generated by GNU Autoconf 2.61. Invocation command line was 1593 1594 $ $0 $@ 1595 1596_ACEOF 1597exec 5>>config.log 1598{ 1599cat <<_ASUNAME 1600## --------- ## 1601## Platform. ## 1602## --------- ## 1603 1604hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1605uname -m = `(uname -m) 2>/dev/null || echo unknown` 1606uname -r = `(uname -r) 2>/dev/null || echo unknown` 1607uname -s = `(uname -s) 2>/dev/null || echo unknown` 1608uname -v = `(uname -v) 2>/dev/null || echo unknown` 1609 1610/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1611/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1612 1613/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1614/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1615/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1616/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1617/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1618/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1619/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1620 1621_ASUNAME 1622 1623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1624for as_dir in $PATH 1625do 1626 IFS=$as_save_IFS 1627 test -z "$as_dir" && as_dir=. 1628 echo "PATH: $as_dir" 1629done 1630IFS=$as_save_IFS 1631 1632} >&5 1633 1634cat >&5 <<_ACEOF 1635 1636 1637## ----------- ## 1638## Core tests. ## 1639## ----------- ## 1640 1641_ACEOF 1642 1643 1644# Keep a trace of the command line. 1645# Strip out --no-create and --no-recursion so they do not pile up. 1646# Strip out --silent because we don't want to record it for future runs. 1647# Also quote any args containing shell meta-characters. 1648# Make two passes to allow for proper duplicate-argument suppression. 1649ac_configure_args= 1650ac_configure_args0= 1651ac_configure_args1= 1652ac_must_keep_next=false 1653for ac_pass in 1 2 1654do 1655 for ac_arg 1656 do 1657 case $ac_arg in 1658 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1660 | -silent | --silent | --silen | --sile | --sil) 1661 continue ;; 1662 *\'*) 1663 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1664 esac 1665 case $ac_pass in 1666 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1667 2) 1668 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1669 if test $ac_must_keep_next = true; then 1670 ac_must_keep_next=false # Got value, back to normal. 1671 else 1672 case $ac_arg in 1673 *=* | --config-cache | -C | -disable-* | --disable-* \ 1674 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1675 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1676 | -with-* | --with-* | -without-* | --without-* | --x) 1677 case "$ac_configure_args0 " in 1678 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1679 esac 1680 ;; 1681 -* ) ac_must_keep_next=true ;; 1682 esac 1683 fi 1684 ac_configure_args="$ac_configure_args '$ac_arg'" 1685 ;; 1686 esac 1687 done 1688done 1689$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1690$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1691 1692# When interrupted or exit'd, cleanup temporary files, and complete 1693# config.log. We remove comments because anyway the quotes in there 1694# would cause problems or look ugly. 1695# WARNING: Use '\'' to represent an apostrophe within the trap. 1696# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1697trap 'exit_status=$? 1698 # Save into config.log some information that might help in debugging. 1699 { 1700 echo 1701 1702 cat <<\_ASBOX 1703## ---------------- ## 1704## Cache variables. ## 1705## ---------------- ## 1706_ASBOX 1707 echo 1708 # The following way of writing the cache mishandles newlines in values, 1709( 1710 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1711 eval ac_val=\$$ac_var 1712 case $ac_val in #( 1713 *${as_nl}*) 1714 case $ac_var in #( 1715 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1716echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1717 esac 1718 case $ac_var in #( 1719 _ | IFS | as_nl) ;; #( 1720 *) $as_unset $ac_var ;; 1721 esac ;; 1722 esac 1723 done 1724 (set) 2>&1 | 1725 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1726 *${as_nl}ac_space=\ *) 1727 sed -n \ 1728 "s/'\''/'\''\\\\'\'''\''/g; 1729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1730 ;; #( 1731 *) 1732 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1733 ;; 1734 esac | 1735 sort 1736) 1737 echo 1738 1739 cat <<\_ASBOX 1740## ----------------- ## 1741## Output variables. ## 1742## ----------------- ## 1743_ASBOX 1744 echo 1745 for ac_var in $ac_subst_vars 1746 do 1747 eval ac_val=\$$ac_var 1748 case $ac_val in 1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1750 esac 1751 echo "$ac_var='\''$ac_val'\''" 1752 done | sort 1753 echo 1754 1755 if test -n "$ac_subst_files"; then 1756 cat <<\_ASBOX 1757## ------------------- ## 1758## File substitutions. ## 1759## ------------------- ## 1760_ASBOX 1761 echo 1762 for ac_var in $ac_subst_files 1763 do 1764 eval ac_val=\$$ac_var 1765 case $ac_val in 1766 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1767 esac 1768 echo "$ac_var='\''$ac_val'\''" 1769 done | sort 1770 echo 1771 fi 1772 1773 if test -s confdefs.h; then 1774 cat <<\_ASBOX 1775## ----------- ## 1776## confdefs.h. ## 1777## ----------- ## 1778_ASBOX 1779 echo 1780 cat confdefs.h 1781 echo 1782 fi 1783 test "$ac_signal" != 0 && 1784 echo "$as_me: caught signal $ac_signal" 1785 echo "$as_me: exit $exit_status" 1786 } >&5 1787 rm -f core *.core core.conftest.* && 1788 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1789 exit $exit_status 1790' 0 1791for ac_signal in 1 2 13 15; do 1792 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1793done 1794ac_signal=0 1795 1796# confdefs.h avoids OS command line length limits that DEFS can exceed. 1797rm -f -r conftest* confdefs.h 1798 1799# Predefined preprocessor variables. 1800 1801cat >>confdefs.h <<_ACEOF 1802#define PACKAGE_NAME "$PACKAGE_NAME" 1803_ACEOF 1804 1805 1806cat >>confdefs.h <<_ACEOF 1807#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1808_ACEOF 1809 1810 1811cat >>confdefs.h <<_ACEOF 1812#define PACKAGE_VERSION "$PACKAGE_VERSION" 1813_ACEOF 1814 1815 1816cat >>confdefs.h <<_ACEOF 1817#define PACKAGE_STRING "$PACKAGE_STRING" 1818_ACEOF 1819 1820 1821cat >>confdefs.h <<_ACEOF 1822#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1823_ACEOF 1824 1825 1826# Let the site file select an alternate cache file if it wants to. 1827# Prefer explicitly selected file to automatically selected ones. 1828if test -n "$CONFIG_SITE"; then 1829 set x "$CONFIG_SITE" 1830elif test "x$prefix" != xNONE; then 1831 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1832else 1833 set x "$ac_default_prefix/share/config.site" \ 1834 "$ac_default_prefix/etc/config.site" 1835fi 1836shift 1837for ac_site_file 1838do 1839 if test -r "$ac_site_file"; then 1840 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1841echo "$as_me: loading site script $ac_site_file" >&6;} 1842 sed 's/^/| /' "$ac_site_file" >&5 1843 . "$ac_site_file" 1844 fi 1845done 1846 1847if test -r "$cache_file"; then 1848 # Some versions of bash will fail to source /dev/null (special 1849 # files actually), so we avoid doing that. 1850 if test -f "$cache_file"; then 1851 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1852echo "$as_me: loading cache $cache_file" >&6;} 1853 case $cache_file in 1854 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1855 *) . "./$cache_file";; 1856 esac 1857 fi 1858else 1859 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1860echo "$as_me: creating cache $cache_file" >&6;} 1861 >$cache_file 1862fi 1863 1864# Check that the precious variables saved in the cache have kept the same 1865# value. 1866ac_cache_corrupted=false 1867for ac_var in $ac_precious_vars; do 1868 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1869 eval ac_new_set=\$ac_env_${ac_var}_set 1870 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1871 eval ac_new_val=\$ac_env_${ac_var}_value 1872 case $ac_old_set,$ac_new_set in 1873 set,) 1874 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1875echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1876 ac_cache_corrupted=: ;; 1877 ,set) 1878 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1879echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1880 ac_cache_corrupted=: ;; 1881 ,);; 1882 *) 1883 if test "x$ac_old_val" != "x$ac_new_val"; then 1884 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1885echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1886 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1887echo "$as_me: former value: $ac_old_val" >&2;} 1888 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1889echo "$as_me: current value: $ac_new_val" >&2;} 1890 ac_cache_corrupted=: 1891 fi;; 1892 esac 1893 # Pass precious variables to config.status. 1894 if test "$ac_new_set" = set; then 1895 case $ac_new_val in 1896 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1897 *) ac_arg=$ac_var=$ac_new_val ;; 1898 esac 1899 case " $ac_configure_args " in 1900 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1901 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1902 esac 1903 fi 1904done 1905if $ac_cache_corrupted; then 1906 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1907echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1908 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1909echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1910 { (exit 1); exit 1; }; } 1911fi 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929ac_ext=c 1930ac_cpp='$CPP $CPPFLAGS' 1931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1933ac_compiler_gnu=$ac_cv_c_compiler_gnu 1934 1935 1936am__api_version="1.9" 1937ac_aux_dir= 1938for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1939 if test -f "$ac_dir/install-sh"; then 1940 ac_aux_dir=$ac_dir 1941 ac_install_sh="$ac_aux_dir/install-sh -c" 1942 break 1943 elif test -f "$ac_dir/install.sh"; then 1944 ac_aux_dir=$ac_dir 1945 ac_install_sh="$ac_aux_dir/install.sh -c" 1946 break 1947 elif test -f "$ac_dir/shtool"; then 1948 ac_aux_dir=$ac_dir 1949 ac_install_sh="$ac_aux_dir/shtool install -c" 1950 break 1951 fi 1952done 1953if test -z "$ac_aux_dir"; then 1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1955echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1956 { (exit 1); exit 1; }; } 1957fi 1958 1959# These three variables are undocumented and unsupported, 1960# and are intended to be withdrawn in a future Autoconf release. 1961# They can cause serious problems if a builder's source tree is in a directory 1962# whose full name contains unusual characters. 1963ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1964ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1965ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1966 1967 1968# Find a good install program. We prefer a C program (faster), 1969# so one script is as good as another. But avoid the broken or 1970# incompatible versions: 1971# SysV /etc/install, /usr/sbin/install 1972# SunOS /usr/etc/install 1973# IRIX /sbin/install 1974# AIX /bin/install 1975# AmigaOS /C/install, which installs bootblocks on floppy discs 1976# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1977# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1978# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1979# OS/2's system install, which has a completely different semantic 1980# ./install, which can be erroneously created by make from ./install.sh. 1981{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1982echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1983if test -z "$INSTALL"; then 1984if test "${ac_cv_path_install+set}" = set; then 1985 echo $ECHO_N "(cached) $ECHO_C" >&6 1986else 1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1988for as_dir in $PATH 1989do 1990 IFS=$as_save_IFS 1991 test -z "$as_dir" && as_dir=. 1992 # Account for people who put trailing slashes in PATH elements. 1993case $as_dir/ in 1994 ./ | .// | /cC/* | \ 1995 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1996 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1997 /usr/ucb/* ) ;; 1998 *) 1999 # OSF1 and SCO ODT 3.0 have their own names for install. 2000 # Don't use installbsd from OSF since it installs stuff as root 2001 # by default. 2002 for ac_prog in ginstall scoinst install; do 2003 for ac_exec_ext in '' $ac_executable_extensions; do 2004 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2005 if test $ac_prog = install && 2006 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2007 # AIX install. It has an incompatible calling convention. 2008 : 2009 elif test $ac_prog = install && 2010 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2011 # program-specific install script used by HP pwplus--don't use. 2012 : 2013 else 2014 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2015 break 3 2016 fi 2017 fi 2018 done 2019 done 2020 ;; 2021esac 2022done 2023IFS=$as_save_IFS 2024 2025 2026fi 2027 if test "${ac_cv_path_install+set}" = set; then 2028 INSTALL=$ac_cv_path_install 2029 else 2030 # As a last resort, use the slow shell script. Don't cache a 2031 # value for INSTALL within a source directory, because that will 2032 # break other packages using the cache if that directory is 2033 # removed, or if the value is a relative name. 2034 INSTALL=$ac_install_sh 2035 fi 2036fi 2037{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2038echo "${ECHO_T}$INSTALL" >&6; } 2039 2040# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2041# It thinks the first close brace ends the variable substitution. 2042test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2043 2044test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2045 2046test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2047 2048{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2049echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2050# Just in case 2051sleep 1 2052echo timestamp > conftest.file 2053# Do `set' in a subshell so we don't clobber the current shell's 2054# arguments. Must try -L first in case configure is actually a 2055# symlink; some systems play weird games with the mod time of symlinks 2056# (eg FreeBSD returns the mod time of the symlink's containing 2057# directory). 2058if ( 2059 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2060 if test "$*" = "X"; then 2061 # -L didn't work. 2062 set X `ls -t $srcdir/configure conftest.file` 2063 fi 2064 rm -f conftest.file 2065 if test "$*" != "X $srcdir/configure conftest.file" \ 2066 && test "$*" != "X conftest.file $srcdir/configure"; then 2067 2068 # If neither matched, then we have a broken ls. This can happen 2069 # if, for instance, CONFIG_SHELL is bash and it inherits a 2070 # broken ls alias from the environment. This has actually 2071 # happened. Such a system could not be considered "sane". 2072 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2073alias in your environment" >&5 2074echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2075alias in your environment" >&2;} 2076 { (exit 1); exit 1; }; } 2077 fi 2078 2079 test "$2" = conftest.file 2080 ) 2081then 2082 # Ok. 2083 : 2084else 2085 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2086Check your system clock" >&5 2087echo "$as_me: error: newly created file is older than distributed files! 2088Check your system clock" >&2;} 2089 { (exit 1); exit 1; }; } 2090fi 2091{ echo "$as_me:$LINENO: result: yes" >&5 2092echo "${ECHO_T}yes" >&6; } 2093test "$program_prefix" != NONE && 2094 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2095# Use a double $ so make ignores it. 2096test "$program_suffix" != NONE && 2097 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2098# Double any \ or $. echo might interpret backslashes. 2099# By default was `s,x,x', remove it if useless. 2100cat <<\_ACEOF >conftest.sed 2101s/[\\$]/&&/g;s/;s,x,x,$// 2102_ACEOF 2103program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2104rm -f conftest.sed 2105 2106# expand $ac_aux_dir to an absolute path 2107am_aux_dir=`cd $ac_aux_dir && pwd` 2108 2109test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2110# Use eval to expand $SHELL 2111if eval "$MISSING --run true"; then 2112 am_missing_run="$MISSING --run " 2113else 2114 am_missing_run= 2115 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2116echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2117fi 2118 2119if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2120 # We used to keeping the `.' as first argument, in order to 2121 # allow $(mkdir_p) to be used without argument. As in 2122 # $(mkdir_p) $(somedir) 2123 # where $(somedir) is conditionally defined. However this is wrong 2124 # for two reasons: 2125 # 1. if the package is installed by a user who cannot write `.' 2126 # make install will fail, 2127 # 2. the above comment should most certainly read 2128 # $(mkdir_p) $(DESTDIR)$(somedir) 2129 # so it does not work when $(somedir) is undefined and 2130 # $(DESTDIR) is not. 2131 # To support the latter case, we have to write 2132 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2133 # so the `.' trick is pointless. 2134 mkdir_p='mkdir -p --' 2135else 2136 # On NextStep and OpenStep, the `mkdir' command does not 2137 # recognize any option. It will interpret all options as 2138 # directories to create, and then abort because `.' already 2139 # exists. 2140 for d in ./-p ./--version; 2141 do 2142 test -d $d && rmdir $d 2143 done 2144 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2145 if test -f "$ac_aux_dir/mkinstalldirs"; then 2146 mkdir_p='$(mkinstalldirs)' 2147 else 2148 mkdir_p='$(install_sh) -d' 2149 fi 2150fi 2151 2152for ac_prog in gawk mawk nawk awk 2153do 2154 # Extract the first word of "$ac_prog", so it can be a program name with args. 2155set dummy $ac_prog; ac_word=$2 2156{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2158if test "${ac_cv_prog_AWK+set}" = set; then 2159 echo $ECHO_N "(cached) $ECHO_C" >&6 2160else 2161 if test -n "$AWK"; then 2162 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2163else 2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2165for as_dir in $PATH 2166do 2167 IFS=$as_save_IFS 2168 test -z "$as_dir" && as_dir=. 2169 for ac_exec_ext in '' $ac_executable_extensions; do 2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2171 ac_cv_prog_AWK="$ac_prog" 2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2173 break 2 2174 fi 2175done 2176done 2177IFS=$as_save_IFS 2178 2179fi 2180fi 2181AWK=$ac_cv_prog_AWK 2182if test -n "$AWK"; then 2183 { echo "$as_me:$LINENO: result: $AWK" >&5 2184echo "${ECHO_T}$AWK" >&6; } 2185else 2186 { echo "$as_me:$LINENO: result: no" >&5 2187echo "${ECHO_T}no" >&6; } 2188fi 2189 2190 2191 test -n "$AWK" && break 2192done 2193 2194{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2195echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2196set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2197if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2198 echo $ECHO_N "(cached) $ECHO_C" >&6 2199else 2200 cat >conftest.make <<\_ACEOF 2201SHELL = /bin/sh 2202all: 2203 @echo '@@@%%%=$(MAKE)=@@@%%%' 2204_ACEOF 2205# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2206case `${MAKE-make} -f conftest.make 2>/dev/null` in 2207 *@@@%%%=?*=@@@%%%*) 2208 eval ac_cv_prog_make_${ac_make}_set=yes;; 2209 *) 2210 eval ac_cv_prog_make_${ac_make}_set=no;; 2211esac 2212rm -f conftest.make 2213fi 2214if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2215 { echo "$as_me:$LINENO: result: yes" >&5 2216echo "${ECHO_T}yes" >&6; } 2217 SET_MAKE= 2218else 2219 { echo "$as_me:$LINENO: result: no" >&5 2220echo "${ECHO_T}no" >&6; } 2221 SET_MAKE="MAKE=${MAKE-make}" 2222fi 2223 2224rm -rf .tst 2>/dev/null 2225mkdir .tst 2>/dev/null 2226if test -d .tst; then 2227 am__leading_dot=. 2228else 2229 am__leading_dot=_ 2230fi 2231rmdir .tst 2>/dev/null 2232 2233# test to see if srcdir already configured 2234if test "`cd $srcdir && pwd`" != "`pwd`" && 2235 test -f $srcdir/config.status; then 2236 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2237echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2238 { (exit 1); exit 1; }; } 2239fi 2240 2241# test whether we have cygpath 2242if test -z "$CYGPATH_W"; then 2243 if (cygpath --version) >/dev/null 2>/dev/null; then 2244 CYGPATH_W='cygpath -w' 2245 else 2246 CYGPATH_W=echo 2247 fi 2248fi 2249 2250 2251# Define the identity of the package. 2252 PACKAGE=sphinx3 2253 VERSION=0.8 2254 2255 2256cat >>confdefs.h <<_ACEOF 2257#define PACKAGE "$PACKAGE" 2258_ACEOF 2259 2260 2261cat >>confdefs.h <<_ACEOF 2262#define VERSION "$VERSION" 2263_ACEOF 2264 2265# Some tools Automake needs. 2266 2267ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2268 2269 2270AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2271 2272 2273AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2274 2275 2276AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2277 2278 2279MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2280 2281install_sh=${install_sh-"$am_aux_dir/install-sh"} 2282 2283# Installed binaries are usually stripped using `strip' when the user 2284# run `make install-strip'. However `strip' might not be the right 2285# tool to use in cross-compilation environments, therefore Automake 2286# will honor the `STRIP' environment variable to overrule this program. 2287if test "$cross_compiling" != no; then 2288 if test -n "$ac_tool_prefix"; then 2289 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2290set dummy ${ac_tool_prefix}strip; ac_word=$2 2291{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2293if test "${ac_cv_prog_STRIP+set}" = set; then 2294 echo $ECHO_N "(cached) $ECHO_C" >&6 2295else 2296 if test -n "$STRIP"; then 2297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2298else 2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2300for as_dir in $PATH 2301do 2302 IFS=$as_save_IFS 2303 test -z "$as_dir" && as_dir=. 2304 for ac_exec_ext in '' $ac_executable_extensions; do 2305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2306 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2308 break 2 2309 fi 2310done 2311done 2312IFS=$as_save_IFS 2313 2314fi 2315fi 2316STRIP=$ac_cv_prog_STRIP 2317if test -n "$STRIP"; then 2318 { echo "$as_me:$LINENO: result: $STRIP" >&5 2319echo "${ECHO_T}$STRIP" >&6; } 2320else 2321 { echo "$as_me:$LINENO: result: no" >&5 2322echo "${ECHO_T}no" >&6; } 2323fi 2324 2325 2326fi 2327if test -z "$ac_cv_prog_STRIP"; then 2328 ac_ct_STRIP=$STRIP 2329 # Extract the first word of "strip", so it can be a program name with args. 2330set dummy strip; ac_word=$2 2331{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2333if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2334 echo $ECHO_N "(cached) $ECHO_C" >&6 2335else 2336 if test -n "$ac_ct_STRIP"; then 2337 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2338else 2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2340for as_dir in $PATH 2341do 2342 IFS=$as_save_IFS 2343 test -z "$as_dir" && as_dir=. 2344 for ac_exec_ext in '' $ac_executable_extensions; do 2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2346 ac_cv_prog_ac_ct_STRIP="strip" 2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2348 break 2 2349 fi 2350done 2351done 2352IFS=$as_save_IFS 2353 2354fi 2355fi 2356ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2357if test -n "$ac_ct_STRIP"; then 2358 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2359echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2360else 2361 { echo "$as_me:$LINENO: result: no" >&5 2362echo "${ECHO_T}no" >&6; } 2363fi 2364 2365 if test "x$ac_ct_STRIP" = x; then 2366 STRIP=":" 2367 else 2368 case $cross_compiling:$ac_tool_warned in 2369yes:) 2370{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2371whose name does not start with the host triplet. If you think this 2372configuration is useful to you, please write to autoconf@gnu.org." >&5 2373echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2374whose name does not start with the host triplet. If you think this 2375configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2376ac_tool_warned=yes ;; 2377esac 2378 STRIP=$ac_ct_STRIP 2379 fi 2380else 2381 STRIP="$ac_cv_prog_STRIP" 2382fi 2383 2384fi 2385INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2386 2387# We need awk for the "check" target. The system "awk" is bad on 2388# some platforms. 2389# Always define AMTAR for backward compatibility. 2390 2391AMTAR=${AMTAR-"${am_missing_run}tar"} 2392 2393am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2394 2395 2396 2397 2398 2399 2400CFLAGS=${CFLAGS:--g -O2 -Wall} 2401 2402# Make sure we can run config.sub. 2403$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2404 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2405echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2406 { (exit 1); exit 1; }; } 2407 2408{ echo "$as_me:$LINENO: checking build system type" >&5 2409echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2410if test "${ac_cv_build+set}" = set; then 2411 echo $ECHO_N "(cached) $ECHO_C" >&6 2412else 2413 ac_build_alias=$build_alias 2414test "x$ac_build_alias" = x && 2415 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2416test "x$ac_build_alias" = x && 2417 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2418echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2419 { (exit 1); exit 1; }; } 2420ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2421 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2422echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2423 { (exit 1); exit 1; }; } 2424 2425fi 2426{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2427echo "${ECHO_T}$ac_cv_build" >&6; } 2428case $ac_cv_build in 2429*-*-*) ;; 2430*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2431echo "$as_me: error: invalid value of canonical build" >&2;} 2432 { (exit 1); exit 1; }; };; 2433esac 2434build=$ac_cv_build 2435ac_save_IFS=$IFS; IFS='-' 2436set x $ac_cv_build 2437shift 2438build_cpu=$1 2439build_vendor=$2 2440shift; shift 2441# Remember, the first character of IFS is used to create $*, 2442# except with old shells: 2443build_os=$* 2444IFS=$ac_save_IFS 2445case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2446 2447 2448{ echo "$as_me:$LINENO: checking host system type" >&5 2449echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2450if test "${ac_cv_host+set}" = set; then 2451 echo $ECHO_N "(cached) $ECHO_C" >&6 2452else 2453 if test "x$host_alias" = x; then 2454 ac_cv_host=$ac_cv_build 2455else 2456 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2457 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2458echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2459 { (exit 1); exit 1; }; } 2460fi 2461 2462fi 2463{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2464echo "${ECHO_T}$ac_cv_host" >&6; } 2465case $ac_cv_host in 2466*-*-*) ;; 2467*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2468echo "$as_me: error: invalid value of canonical host" >&2;} 2469 { (exit 1); exit 1; }; };; 2470esac 2471host=$ac_cv_host 2472ac_save_IFS=$IFS; IFS='-' 2473set x $ac_cv_host 2474shift 2475host_cpu=$1 2476host_vendor=$2 2477shift; shift 2478# Remember, the first character of IFS is used to create $*, 2479# except with old shells: 2480host_os=$* 2481IFS=$ac_save_IFS 2482case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2483 2484 2485 2486case $host in 2487 *apple*) 2488 LIBS="$LIBS -framework CoreAudio -framework AudioToolbox" 2489 ;; 2490 *) 2491 ;; 2492esac 2493 2494DEPDIR="${am__leading_dot}deps" 2495 2496ac_config_commands="$ac_config_commands depfiles" 2497 2498 2499am_make=${MAKE-make} 2500cat > confinc << 'END' 2501am__doit: 2502 @echo done 2503.PHONY: am__doit 2504END 2505# If we don't find an include directive, just comment out the code. 2506{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2507echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2508am__include="#" 2509am__quote= 2510_am_result=none 2511# First try GNU make style include. 2512echo "include confinc" > confmf 2513# We grep out `Entering directory' and `Leaving directory' 2514# messages which can occur if `w' ends up in MAKEFLAGS. 2515# In particular we don't look at `^make:' because GNU make might 2516# be invoked under some other name (usually "gmake"), in which 2517# case it prints its new name instead of `make'. 2518if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2519 am__include=include 2520 am__quote= 2521 _am_result=GNU 2522fi 2523# Now try BSD make style include. 2524if test "$am__include" = "#"; then 2525 echo '.include "confinc"' > confmf 2526 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2527 am__include=.include 2528 am__quote="\"" 2529 _am_result=BSD 2530 fi 2531fi 2532 2533 2534{ echo "$as_me:$LINENO: result: $_am_result" >&5 2535echo "${ECHO_T}$_am_result" >&6; } 2536rm -f confinc confmf 2537 2538# Check whether --enable-dependency-tracking was given. 2539if test "${enable_dependency_tracking+set}" = set; then 2540 enableval=$enable_dependency_tracking; 2541fi 2542 2543if test "x$enable_dependency_tracking" != xno; then 2544 am_depcomp="$ac_aux_dir/depcomp" 2545 AMDEPBACKSLASH='\' 2546fi 2547 2548 2549if test "x$enable_dependency_tracking" != xno; then 2550 AMDEP_TRUE= 2551 AMDEP_FALSE='#' 2552else 2553 AMDEP_TRUE='#' 2554 AMDEP_FALSE= 2555fi 2556 2557 2558 2559ac_ext=c 2560ac_cpp='$CPP $CPPFLAGS' 2561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2563ac_compiler_gnu=$ac_cv_c_compiler_gnu 2564if test -n "$ac_tool_prefix"; then 2565 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2566set dummy ${ac_tool_prefix}gcc; ac_word=$2 2567{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2569if test "${ac_cv_prog_CC+set}" = set; then 2570 echo $ECHO_N "(cached) $ECHO_C" >&6 2571else 2572 if test -n "$CC"; then 2573 ac_cv_prog_CC="$CC" # Let the user override the test. 2574else 2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2576for as_dir in $PATH 2577do 2578 IFS=$as_save_IFS 2579 test -z "$as_dir" && as_dir=. 2580 for ac_exec_ext in '' $ac_executable_extensions; do 2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2582 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2584 break 2 2585 fi 2586done 2587done 2588IFS=$as_save_IFS 2589 2590fi 2591fi 2592CC=$ac_cv_prog_CC 2593if test -n "$CC"; then 2594 { echo "$as_me:$LINENO: result: $CC" >&5 2595echo "${ECHO_T}$CC" >&6; } 2596else 2597 { echo "$as_me:$LINENO: result: no" >&5 2598echo "${ECHO_T}no" >&6; } 2599fi 2600 2601 2602fi 2603if test -z "$ac_cv_prog_CC"; then 2604 ac_ct_CC=$CC 2605 # Extract the first word of "gcc", so it can be a program name with args. 2606set dummy gcc; ac_word=$2 2607{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2609if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2610 echo $ECHO_N "(cached) $ECHO_C" >&6 2611else 2612 if test -n "$ac_ct_CC"; then 2613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2614else 2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2616for as_dir in $PATH 2617do 2618 IFS=$as_save_IFS 2619 test -z "$as_dir" && as_dir=. 2620 for ac_exec_ext in '' $ac_executable_extensions; do 2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2622 ac_cv_prog_ac_ct_CC="gcc" 2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2624 break 2 2625 fi 2626done 2627done 2628IFS=$as_save_IFS 2629 2630fi 2631fi 2632ac_ct_CC=$ac_cv_prog_ac_ct_CC 2633if test -n "$ac_ct_CC"; then 2634 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2635echo "${ECHO_T}$ac_ct_CC" >&6; } 2636else 2637 { echo "$as_me:$LINENO: result: no" >&5 2638echo "${ECHO_T}no" >&6; } 2639fi 2640 2641 if test "x$ac_ct_CC" = x; then 2642 CC="" 2643 else 2644 case $cross_compiling:$ac_tool_warned in 2645yes:) 2646{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2647whose name does not start with the host triplet. If you think this 2648configuration is useful to you, please write to autoconf@gnu.org." >&5 2649echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2650whose name does not start with the host triplet. If you think this 2651configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2652ac_tool_warned=yes ;; 2653esac 2654 CC=$ac_ct_CC 2655 fi 2656else 2657 CC="$ac_cv_prog_CC" 2658fi 2659 2660if test -z "$CC"; then 2661 if test -n "$ac_tool_prefix"; then 2662 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2663set dummy ${ac_tool_prefix}cc; ac_word=$2 2664{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2666if test "${ac_cv_prog_CC+set}" = set; then 2667 echo $ECHO_N "(cached) $ECHO_C" >&6 2668else 2669 if test -n "$CC"; then 2670 ac_cv_prog_CC="$CC" # Let the user override the test. 2671else 2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2673for as_dir in $PATH 2674do 2675 IFS=$as_save_IFS 2676 test -z "$as_dir" && as_dir=. 2677 for ac_exec_ext in '' $ac_executable_extensions; do 2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2679 ac_cv_prog_CC="${ac_tool_prefix}cc" 2680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2681 break 2 2682 fi 2683done 2684done 2685IFS=$as_save_IFS 2686 2687fi 2688fi 2689CC=$ac_cv_prog_CC 2690if test -n "$CC"; then 2691 { echo "$as_me:$LINENO: result: $CC" >&5 2692echo "${ECHO_T}$CC" >&6; } 2693else 2694 { echo "$as_me:$LINENO: result: no" >&5 2695echo "${ECHO_T}no" >&6; } 2696fi 2697 2698 2699 fi 2700fi 2701if test -z "$CC"; then 2702 # Extract the first word of "cc", so it can be a program name with args. 2703set dummy cc; ac_word=$2 2704{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2706if test "${ac_cv_prog_CC+set}" = set; then 2707 echo $ECHO_N "(cached) $ECHO_C" >&6 2708else 2709 if test -n "$CC"; then 2710 ac_cv_prog_CC="$CC" # Let the user override the test. 2711else 2712 ac_prog_rejected=no 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2721 ac_prog_rejected=yes 2722 continue 2723 fi 2724 ac_cv_prog_CC="cc" 2725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2726 break 2 2727 fi 2728done 2729done 2730IFS=$as_save_IFS 2731 2732if test $ac_prog_rejected = yes; then 2733 # We found a bogon in the path, so make sure we never use it. 2734 set dummy $ac_cv_prog_CC 2735 shift 2736 if test $# != 0; then 2737 # We chose a different compiler from the bogus one. 2738 # However, it has the same basename, so the bogon will be chosen 2739 # first if we set CC to just the basename; use the full file name. 2740 shift 2741 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2742 fi 2743fi 2744fi 2745fi 2746CC=$ac_cv_prog_CC 2747if test -n "$CC"; then 2748 { echo "$as_me:$LINENO: result: $CC" >&5 2749echo "${ECHO_T}$CC" >&6; } 2750else 2751 { echo "$as_me:$LINENO: result: no" >&5 2752echo "${ECHO_T}no" >&6; } 2753fi 2754 2755 2756fi 2757if test -z "$CC"; then 2758 if test -n "$ac_tool_prefix"; then 2759 for ac_prog in cl.exe 2760 do 2761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2762set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2763{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2765if test "${ac_cv_prog_CC+set}" = set; then 2766 echo $ECHO_N "(cached) $ECHO_C" >&6 2767else 2768 if test -n "$CC"; then 2769 ac_cv_prog_CC="$CC" # Let the user override the test. 2770else 2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2772for as_dir in $PATH 2773do 2774 IFS=$as_save_IFS 2775 test -z "$as_dir" && as_dir=. 2776 for ac_exec_ext in '' $ac_executable_extensions; do 2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2778 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2780 break 2 2781 fi 2782done 2783done 2784IFS=$as_save_IFS 2785 2786fi 2787fi 2788CC=$ac_cv_prog_CC 2789if test -n "$CC"; then 2790 { echo "$as_me:$LINENO: result: $CC" >&5 2791echo "${ECHO_T}$CC" >&6; } 2792else 2793 { echo "$as_me:$LINENO: result: no" >&5 2794echo "${ECHO_T}no" >&6; } 2795fi 2796 2797 2798 test -n "$CC" && break 2799 done 2800fi 2801if test -z "$CC"; then 2802 ac_ct_CC=$CC 2803 for ac_prog in cl.exe 2804do 2805 # Extract the first word of "$ac_prog", so it can be a program name with args. 2806set dummy $ac_prog; ac_word=$2 2807{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2809if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2810 echo $ECHO_N "(cached) $ECHO_C" >&6 2811else 2812 if test -n "$ac_ct_CC"; then 2813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2814else 2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2816for as_dir in $PATH 2817do 2818 IFS=$as_save_IFS 2819 test -z "$as_dir" && as_dir=. 2820 for ac_exec_ext in '' $ac_executable_extensions; do 2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2822 ac_cv_prog_ac_ct_CC="$ac_prog" 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 2830fi 2831fi 2832ac_ct_CC=$ac_cv_prog_ac_ct_CC 2833if test -n "$ac_ct_CC"; then 2834 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2835echo "${ECHO_T}$ac_ct_CC" >&6; } 2836else 2837 { echo "$as_me:$LINENO: result: no" >&5 2838echo "${ECHO_T}no" >&6; } 2839fi 2840 2841 2842 test -n "$ac_ct_CC" && break 2843done 2844 2845 if test "x$ac_ct_CC" = x; then 2846 CC="" 2847 else 2848 case $cross_compiling:$ac_tool_warned in 2849yes:) 2850{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2851whose name does not start with the host triplet. If you think this 2852configuration is useful to you, please write to autoconf@gnu.org." >&5 2853echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2854whose name does not start with the host triplet. If you think this 2855configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2856ac_tool_warned=yes ;; 2857esac 2858 CC=$ac_ct_CC 2859 fi 2860fi 2861 2862fi 2863 2864 2865test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2866See \`config.log' for more details." >&5 2867echo "$as_me: error: no acceptable C compiler found in \$PATH 2868See \`config.log' for more details." >&2;} 2869 { (exit 1); exit 1; }; } 2870 2871# Provide some information about the compiler. 2872echo "$as_me:$LINENO: checking for C compiler version" >&5 2873ac_compiler=`set X $ac_compile; echo $2` 2874{ (ac_try="$ac_compiler --version >&5" 2875case "(($ac_try" in 2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2877 *) ac_try_echo=$ac_try;; 2878esac 2879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2880 (eval "$ac_compiler --version >&5") 2>&5 2881 ac_status=$? 2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2883 (exit $ac_status); } 2884{ (ac_try="$ac_compiler -v >&5" 2885case "(($ac_try" in 2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2887 *) ac_try_echo=$ac_try;; 2888esac 2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2890 (eval "$ac_compiler -v >&5") 2>&5 2891 ac_status=$? 2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2893 (exit $ac_status); } 2894{ (ac_try="$ac_compiler -V >&5" 2895case "(($ac_try" in 2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2897 *) ac_try_echo=$ac_try;; 2898esac 2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2900 (eval "$ac_compiler -V >&5") 2>&5 2901 ac_status=$? 2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2903 (exit $ac_status); } 2904 2905cat >conftest.$ac_ext <<_ACEOF 2906/* confdefs.h. */ 2907_ACEOF 2908cat confdefs.h >>conftest.$ac_ext 2909cat >>conftest.$ac_ext <<_ACEOF 2910/* end confdefs.h. */ 2911 2912int 2913main () 2914{ 2915 2916 ; 2917 return 0; 2918} 2919_ACEOF 2920ac_clean_files_save=$ac_clean_files 2921ac_clean_files="$ac_clean_files a.out a.exe b.out" 2922# Try to create an executable without -o first, disregard a.out. 2923# It will help us diagnose broken compilers, and finding out an intuition 2924# of exeext. 2925{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2926echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2927ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2928# 2929# List of possible output files, starting from the most likely. 2930# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2931# only as a last resort. b.out is created by i960 compilers. 2932ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2933# 2934# The IRIX 6 linker writes into existing files which may not be 2935# executable, retaining their permissions. Remove them first so a 2936# subsequent execution test works. 2937ac_rmfiles= 2938for ac_file in $ac_files 2939do 2940 case $ac_file in 2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2942 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2943 esac 2944done 2945rm -f $ac_rmfiles 2946 2947if { (ac_try="$ac_link_default" 2948case "(($ac_try" in 2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2950 *) ac_try_echo=$ac_try;; 2951esac 2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2953 (eval "$ac_link_default") 2>&5 2954 ac_status=$? 2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2956 (exit $ac_status); }; then 2957 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2958# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2959# in a Makefile. We should not override ac_cv_exeext if it was cached, 2960# so that the user can short-circuit this test for compilers unknown to 2961# Autoconf. 2962for ac_file in $ac_files '' 2963do 2964 test -f "$ac_file" || continue 2965 case $ac_file in 2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2967 ;; 2968 [ab].out ) 2969 # We found the default executable, but exeext='' is most 2970 # certainly right. 2971 break;; 2972 *.* ) 2973 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2974 then :; else 2975 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2976 fi 2977 # We set ac_cv_exeext here because the later test for it is not 2978 # safe: cross compilers may not add the suffix if given an `-o' 2979 # argument, so we may need to know it at that point already. 2980 # Even if this section looks crufty: it has the advantage of 2981 # actually working. 2982 break;; 2983 * ) 2984 break;; 2985 esac 2986done 2987test "$ac_cv_exeext" = no && ac_cv_exeext= 2988 2989else 2990 ac_file='' 2991fi 2992 2993{ echo "$as_me:$LINENO: result: $ac_file" >&5 2994echo "${ECHO_T}$ac_file" >&6; } 2995if test -z "$ac_file"; then 2996 echo "$as_me: failed program was:" >&5 2997sed 's/^/| /' conftest.$ac_ext >&5 2998 2999{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3000See \`config.log' for more details." >&5 3001echo "$as_me: error: C compiler cannot create executables 3002See \`config.log' for more details." >&2;} 3003 { (exit 77); exit 77; }; } 3004fi 3005 3006ac_exeext=$ac_cv_exeext 3007 3008# Check that the compiler produces executables we can run. If not, either 3009# the compiler is broken, or we cross compile. 3010{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3011echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3012# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3013# If not cross compiling, check that we can run a simple program. 3014if test "$cross_compiling" != yes; then 3015 if { ac_try='./$ac_file' 3016 { (case "(($ac_try" in 3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3018 *) ac_try_echo=$ac_try;; 3019esac 3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3021 (eval "$ac_try") 2>&5 3022 ac_status=$? 3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3024 (exit $ac_status); }; }; then 3025 cross_compiling=no 3026 else 3027 if test "$cross_compiling" = maybe; then 3028 cross_compiling=yes 3029 else 3030 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3031If you meant to cross compile, use \`--host'. 3032See \`config.log' for more details." >&5 3033echo "$as_me: error: cannot run C compiled programs. 3034If you meant to cross compile, use \`--host'. 3035See \`config.log' for more details." >&2;} 3036 { (exit 1); exit 1; }; } 3037 fi 3038 fi 3039fi 3040{ echo "$as_me:$LINENO: result: yes" >&5 3041echo "${ECHO_T}yes" >&6; } 3042 3043rm -f a.out a.exe conftest$ac_cv_exeext b.out 3044ac_clean_files=$ac_clean_files_save 3045# Check that the compiler produces executables we can run. If not, either 3046# the compiler is broken, or we cross compile. 3047{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3048echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3049{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3050echo "${ECHO_T}$cross_compiling" >&6; } 3051 3052{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3053echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3054if { (ac_try="$ac_link" 3055case "(($ac_try" in 3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3057 *) ac_try_echo=$ac_try;; 3058esac 3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3060 (eval "$ac_link") 2>&5 3061 ac_status=$? 3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3063 (exit $ac_status); }; then 3064 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3065# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3066# work properly (i.e., refer to `conftest.exe'), while it won't with 3067# `rm'. 3068for ac_file in conftest.exe conftest conftest.*; do 3069 test -f "$ac_file" || continue 3070 case $ac_file in 3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3073 break;; 3074 * ) break;; 3075 esac 3076done 3077else 3078 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3079See \`config.log' for more details." >&5 3080echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3081See \`config.log' for more details." >&2;} 3082 { (exit 1); exit 1; }; } 3083fi 3084 3085rm -f conftest$ac_cv_exeext 3086{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3087echo "${ECHO_T}$ac_cv_exeext" >&6; } 3088 3089rm -f conftest.$ac_ext 3090EXEEXT=$ac_cv_exeext 3091ac_exeext=$EXEEXT 3092{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3093echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3094if test "${ac_cv_objext+set}" = set; then 3095 echo $ECHO_N "(cached) $ECHO_C" >&6 3096else 3097 cat >conftest.$ac_ext <<_ACEOF 3098/* confdefs.h. */ 3099_ACEOF 3100cat confdefs.h >>conftest.$ac_ext 3101cat >>conftest.$ac_ext <<_ACEOF 3102/* end confdefs.h. */ 3103 3104int 3105main () 3106{ 3107 3108 ; 3109 return 0; 3110} 3111_ACEOF 3112rm -f conftest.o conftest.obj 3113if { (ac_try="$ac_compile" 3114case "(($ac_try" in 3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3116 *) ac_try_echo=$ac_try;; 3117esac 3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3119 (eval "$ac_compile") 2>&5 3120 ac_status=$? 3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3122 (exit $ac_status); }; then 3123 for ac_file in conftest.o conftest.obj conftest.*; do 3124 test -f "$ac_file" || continue; 3125 case $ac_file in 3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3128 break;; 3129 esac 3130done 3131else 3132 echo "$as_me: failed program was:" >&5 3133sed 's/^/| /' conftest.$ac_ext >&5 3134 3135{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3136See \`config.log' for more details." >&5 3137echo "$as_me: error: cannot compute suffix of object files: cannot compile 3138See \`config.log' for more details." >&2;} 3139 { (exit 1); exit 1; }; } 3140fi 3141 3142rm -f conftest.$ac_cv_objext conftest.$ac_ext 3143fi 3144{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3145echo "${ECHO_T}$ac_cv_objext" >&6; } 3146OBJEXT=$ac_cv_objext 3147ac_objext=$OBJEXT 3148{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3149echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3150if test "${ac_cv_c_compiler_gnu+set}" = set; then 3151 echo $ECHO_N "(cached) $ECHO_C" >&6 3152else 3153 cat >conftest.$ac_ext <<_ACEOF 3154/* confdefs.h. */ 3155_ACEOF 3156cat confdefs.h >>conftest.$ac_ext 3157cat >>conftest.$ac_ext <<_ACEOF 3158/* end confdefs.h. */ 3159 3160int 3161main () 3162{ 3163#ifndef __GNUC__ 3164 choke me 3165#endif 3166 3167 ; 3168 return 0; 3169} 3170_ACEOF 3171rm -f conftest.$ac_objext 3172if { (ac_try="$ac_compile" 3173case "(($ac_try" in 3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3175 *) ac_try_echo=$ac_try;; 3176esac 3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3178 (eval "$ac_compile") 2>conftest.er1 3179 ac_status=$? 3180 grep -v '^ *+' conftest.er1 >conftest.err 3181 rm -f conftest.er1 3182 cat conftest.err >&5 3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3184 (exit $ac_status); } && { 3185 test -z "$ac_c_werror_flag" || 3186 test ! -s conftest.err 3187 } && test -s conftest.$ac_objext; then 3188 ac_compiler_gnu=yes 3189else 3190 echo "$as_me: failed program was:" >&5 3191sed 's/^/| /' conftest.$ac_ext >&5 3192 3193 ac_compiler_gnu=no 3194fi 3195 3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3197ac_cv_c_compiler_gnu=$ac_compiler_gnu 3198 3199fi 3200{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3201echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3202GCC=`test $ac_compiler_gnu = yes && echo yes` 3203ac_test_CFLAGS=${CFLAGS+set} 3204ac_save_CFLAGS=$CFLAGS 3205{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3206echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3207if test "${ac_cv_prog_cc_g+set}" = set; then 3208 echo $ECHO_N "(cached) $ECHO_C" >&6 3209else 3210 ac_save_c_werror_flag=$ac_c_werror_flag 3211 ac_c_werror_flag=yes 3212 ac_cv_prog_cc_g=no 3213 CFLAGS="-g" 3214 cat >conftest.$ac_ext <<_ACEOF 3215/* confdefs.h. */ 3216_ACEOF 3217cat confdefs.h >>conftest.$ac_ext 3218cat >>conftest.$ac_ext <<_ACEOF 3219/* end confdefs.h. */ 3220 3221int 3222main () 3223{ 3224 3225 ; 3226 return 0; 3227} 3228_ACEOF 3229rm -f conftest.$ac_objext 3230if { (ac_try="$ac_compile" 3231case "(($ac_try" in 3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3233 *) ac_try_echo=$ac_try;; 3234esac 3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3236 (eval "$ac_compile") 2>conftest.er1 3237 ac_status=$? 3238 grep -v '^ *+' conftest.er1 >conftest.err 3239 rm -f conftest.er1 3240 cat conftest.err >&5 3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3242 (exit $ac_status); } && { 3243 test -z "$ac_c_werror_flag" || 3244 test ! -s conftest.err 3245 } && test -s conftest.$ac_objext; then 3246 ac_cv_prog_cc_g=yes 3247else 3248 echo "$as_me: failed program was:" >&5 3249sed 's/^/| /' conftest.$ac_ext >&5 3250 3251 CFLAGS="" 3252 cat >conftest.$ac_ext <<_ACEOF 3253/* confdefs.h. */ 3254_ACEOF 3255cat confdefs.h >>conftest.$ac_ext 3256cat >>conftest.$ac_ext <<_ACEOF 3257/* end confdefs.h. */ 3258 3259int 3260main () 3261{ 3262 3263 ; 3264 return 0; 3265} 3266_ACEOF 3267rm -f conftest.$ac_objext 3268if { (ac_try="$ac_compile" 3269case "(($ac_try" in 3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3271 *) ac_try_echo=$ac_try;; 3272esac 3273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3274 (eval "$ac_compile") 2>conftest.er1 3275 ac_status=$? 3276 grep -v '^ *+' conftest.er1 >conftest.err 3277 rm -f conftest.er1 3278 cat conftest.err >&5 3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3280 (exit $ac_status); } && { 3281 test -z "$ac_c_werror_flag" || 3282 test ! -s conftest.err 3283 } && test -s conftest.$ac_objext; then 3284 : 3285else 3286 echo "$as_me: failed program was:" >&5 3287sed 's/^/| /' conftest.$ac_ext >&5 3288 3289 ac_c_werror_flag=$ac_save_c_werror_flag 3290 CFLAGS="-g" 3291 cat >conftest.$ac_ext <<_ACEOF 3292/* confdefs.h. */ 3293_ACEOF 3294cat confdefs.h >>conftest.$ac_ext 3295cat >>conftest.$ac_ext <<_ACEOF 3296/* end confdefs.h. */ 3297 3298int 3299main () 3300{ 3301 3302 ; 3303 return 0; 3304} 3305_ACEOF 3306rm -f conftest.$ac_objext 3307if { (ac_try="$ac_compile" 3308case "(($ac_try" in 3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3310 *) ac_try_echo=$ac_try;; 3311esac 3312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3313 (eval "$ac_compile") 2>conftest.er1 3314 ac_status=$? 3315 grep -v '^ *+' conftest.er1 >conftest.err 3316 rm -f conftest.er1 3317 cat conftest.err >&5 3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3319 (exit $ac_status); } && { 3320 test -z "$ac_c_werror_flag" || 3321 test ! -s conftest.err 3322 } && test -s conftest.$ac_objext; then 3323 ac_cv_prog_cc_g=yes 3324else 3325 echo "$as_me: failed program was:" >&5 3326sed 's/^/| /' conftest.$ac_ext >&5 3327 3328 3329fi 3330 3331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3332fi 3333 3334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3335fi 3336 3337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3338 ac_c_werror_flag=$ac_save_c_werror_flag 3339fi 3340{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3341echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3342if test "$ac_test_CFLAGS" = set; then 3343 CFLAGS=$ac_save_CFLAGS 3344elif test $ac_cv_prog_cc_g = yes; then 3345 if test "$GCC" = yes; then 3346 CFLAGS="-g -O2" 3347 else 3348 CFLAGS="-g" 3349 fi 3350else 3351 if test "$GCC" = yes; then 3352 CFLAGS="-O2" 3353 else 3354 CFLAGS= 3355 fi 3356fi 3357{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3358echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3359if test "${ac_cv_prog_cc_c89+set}" = set; then 3360 echo $ECHO_N "(cached) $ECHO_C" >&6 3361else 3362 ac_cv_prog_cc_c89=no 3363ac_save_CC=$CC 3364cat >conftest.$ac_ext <<_ACEOF 3365/* confdefs.h. */ 3366_ACEOF 3367cat confdefs.h >>conftest.$ac_ext 3368cat >>conftest.$ac_ext <<_ACEOF 3369/* end confdefs.h. */ 3370#include <stdarg.h> 3371#include <stdio.h> 3372#include <sys/types.h> 3373#include <sys/stat.h> 3374/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3375struct buf { int x; }; 3376FILE * (*rcsopen) (struct buf *, struct stat *, int); 3377static char *e (p, i) 3378 char **p; 3379 int i; 3380{ 3381 return p[i]; 3382} 3383static char *f (char * (*g) (char **, int), char **p, ...) 3384{ 3385 char *s; 3386 va_list v; 3387 va_start (v,p); 3388 s = g (p, va_arg (v,int)); 3389 va_end (v); 3390 return s; 3391} 3392 3393/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3394 function prototypes and stuff, but not '\xHH' hex character constants. 3395 These don't provoke an error unfortunately, instead are silently treated 3396 as 'x'. The following induces an error, until -std is added to get 3397 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3398 array size at least. It's necessary to write '\x00'==0 to get something 3399 that's true only with -std. */ 3400int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3401 3402/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3403 inside strings and character constants. */ 3404#define FOO(x) 'x' 3405int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3406 3407int test (int i, double x); 3408struct s1 {int (*f) (int a);}; 3409struct s2 {int (*f) (double a);}; 3410int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3411int argc; 3412char **argv; 3413int 3414main () 3415{ 3416return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3417 ; 3418 return 0; 3419} 3420_ACEOF 3421for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3422 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3423do 3424 CC="$ac_save_CC $ac_arg" 3425 rm -f conftest.$ac_objext 3426if { (ac_try="$ac_compile" 3427case "(($ac_try" in 3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3429 *) ac_try_echo=$ac_try;; 3430esac 3431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3432 (eval "$ac_compile") 2>conftest.er1 3433 ac_status=$? 3434 grep -v '^ *+' conftest.er1 >conftest.err 3435 rm -f conftest.er1 3436 cat conftest.err >&5 3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3438 (exit $ac_status); } && { 3439 test -z "$ac_c_werror_flag" || 3440 test ! -s conftest.err 3441 } && test -s conftest.$ac_objext; then 3442 ac_cv_prog_cc_c89=$ac_arg 3443else 3444 echo "$as_me: failed program was:" >&5 3445sed 's/^/| /' conftest.$ac_ext >&5 3446 3447 3448fi 3449 3450rm -f core conftest.err conftest.$ac_objext 3451 test "x$ac_cv_prog_cc_c89" != "xno" && break 3452done 3453rm -f conftest.$ac_ext 3454CC=$ac_save_CC 3455 3456fi 3457# AC_CACHE_VAL 3458case "x$ac_cv_prog_cc_c89" in 3459 x) 3460 { echo "$as_me:$LINENO: result: none needed" >&5 3461echo "${ECHO_T}none needed" >&6; } ;; 3462 xno) 3463 { echo "$as_me:$LINENO: result: unsupported" >&5 3464echo "${ECHO_T}unsupported" >&6; } ;; 3465 *) 3466 CC="$CC $ac_cv_prog_cc_c89" 3467 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3468echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3469esac 3470 3471 3472ac_ext=c 3473ac_cpp='$CPP $CPPFLAGS' 3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3476ac_compiler_gnu=$ac_cv_c_compiler_gnu 3477 3478depcc="$CC" am_compiler_list= 3479 3480{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3481echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3482if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3483 echo $ECHO_N "(cached) $ECHO_C" >&6 3484else 3485 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3486 # We make a subdir and do the tests there. Otherwise we can end up 3487 # making bogus files that we don't know about and never remove. For 3488 # instance it was reported that on HP-UX the gcc test will end up 3489 # making a dummy file named `D' -- because `-MD' means `put the output 3490 # in D'. 3491 mkdir conftest.dir 3492 # Copy depcomp to subdir because otherwise we won't find it if we're 3493 # using a relative directory. 3494 cp "$am_depcomp" conftest.dir 3495 cd conftest.dir 3496 # We will build objects and dependencies in a subdirectory because 3497 # it helps to detect inapplicable dependency modes. For instance 3498 # both Tru64's cc and ICC support -MD to output dependencies as a 3499 # side effect of compilation, but ICC will put the dependencies in 3500 # the current directory while Tru64 will put them in the object 3501 # directory. 3502 mkdir sub 3503 3504 am_cv_CC_dependencies_compiler_type=none 3505 if test "$am_compiler_list" = ""; then 3506 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3507 fi 3508 for depmode in $am_compiler_list; do 3509 # Setup a source with many dependencies, because some compilers 3510 # like to wrap large dependency lists on column 80 (with \), and 3511 # we should not choose a depcomp mode which is confused by this. 3512 # 3513 # We need to recreate these files for each test, as the compiler may 3514 # overwrite some of them when testing with obscure command lines. 3515 # This happens at least with the AIX C compiler. 3516 : > sub/conftest.c 3517 for i in 1 2 3 4 5 6; do 3518 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3519 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3520 # Solaris 8's {/usr,}/bin/sh. 3521 touch sub/conftst$i.h 3522 done 3523 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3524 3525 case $depmode in 3526 nosideeffect) 3527 # after this tag, mechanisms are not by side-effect, so they'll 3528 # only be used when explicitly requested 3529 if test "x$enable_dependency_tracking" = xyes; then 3530 continue 3531 else 3532 break 3533 fi 3534 ;; 3535 none) break ;; 3536 esac 3537 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3538 # mode. It turns out that the SunPro C++ compiler does not properly 3539 # handle `-M -o', and we need to detect this. 3540 if depmode=$depmode \ 3541 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3543 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3544 >/dev/null 2>conftest.err && 3545 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3546 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3547 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3548 # icc doesn't choke on unknown options, it will just issue warnings 3549 # or remarks (even with -Werror). So we grep stderr for any message 3550 # that says an option was ignored or not supported. 3551 # When given -MP, icc 7.0 and 7.1 complain thusly: 3552 # icc: Command line warning: ignoring option '-M'; no argument required 3553 # The diagnosis changed in icc 8.0: 3554 # icc: Command line remark: option '-MP' not supported 3555 if (grep 'ignoring option' conftest.err || 3556 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3557 am_cv_CC_dependencies_compiler_type=$depmode 3558 break 3559 fi 3560 fi 3561 done 3562 3563 cd .. 3564 rm -rf conftest.dir 3565else 3566 am_cv_CC_dependencies_compiler_type=none 3567fi 3568 3569fi 3570{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3571echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3572CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3573 3574 3575 3576if 3577 test "x$enable_dependency_tracking" != xno \ 3578 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3579 am__fastdepCC_TRUE= 3580 am__fastdepCC_FALSE='#' 3581else 3582 am__fastdepCC_TRUE='#' 3583 am__fastdepCC_FALSE= 3584fi 3585 3586 3587 3588{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3589echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3590if test "${ac_cv_search_strerror+set}" = set; then 3591 echo $ECHO_N "(cached) $ECHO_C" >&6 3592else 3593 ac_func_search_save_LIBS=$LIBS 3594cat >conftest.$ac_ext <<_ACEOF 3595/* confdefs.h. */ 3596_ACEOF 3597cat confdefs.h >>conftest.$ac_ext 3598cat >>conftest.$ac_ext <<_ACEOF 3599/* end confdefs.h. */ 3600 3601/* Override any GCC internal prototype to avoid an error. 3602 Use char because int might match the return type of a GCC 3603 builtin and then its argument prototype would still apply. */ 3604#ifdef __cplusplus 3605extern "C" 3606#endif 3607char strerror (); 3608int 3609main () 3610{ 3611return strerror (); 3612 ; 3613 return 0; 3614} 3615_ACEOF 3616for ac_lib in '' cposix; do 3617 if test -z "$ac_lib"; then 3618 ac_res="none required" 3619 else 3620 ac_res=-l$ac_lib 3621 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3622 fi 3623 rm -f conftest.$ac_objext conftest$ac_exeext 3624if { (ac_try="$ac_link" 3625case "(($ac_try" in 3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3627 *) ac_try_echo=$ac_try;; 3628esac 3629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3630 (eval "$ac_link") 2>conftest.er1 3631 ac_status=$? 3632 grep -v '^ *+' conftest.er1 >conftest.err 3633 rm -f conftest.er1 3634 cat conftest.err >&5 3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3636 (exit $ac_status); } && { 3637 test -z "$ac_c_werror_flag" || 3638 test ! -s conftest.err 3639 } && test -s conftest$ac_exeext && 3640 $as_test_x conftest$ac_exeext; then 3641 ac_cv_search_strerror=$ac_res 3642else 3643 echo "$as_me: failed program was:" >&5 3644sed 's/^/| /' conftest.$ac_ext >&5 3645 3646 3647fi 3648 3649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3650 conftest$ac_exeext 3651 if test "${ac_cv_search_strerror+set}" = set; then 3652 break 3653fi 3654done 3655if test "${ac_cv_search_strerror+set}" = set; then 3656 : 3657else 3658 ac_cv_search_strerror=no 3659fi 3660rm conftest.$ac_ext 3661LIBS=$ac_func_search_save_LIBS 3662fi 3663{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3664echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 3665ac_res=$ac_cv_search_strerror 3666if test "$ac_res" != no; then 3667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3668 3669fi 3670 3671ac_ext=c 3672ac_cpp='$CPP $CPPFLAGS' 3673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3675ac_compiler_gnu=$ac_cv_c_compiler_gnu 3676if test -n "$ac_tool_prefix"; then 3677 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3678set dummy ${ac_tool_prefix}gcc; ac_word=$2 3679{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3681if test "${ac_cv_prog_CC+set}" = set; then 3682 echo $ECHO_N "(cached) $ECHO_C" >&6 3683else 3684 if test -n "$CC"; then 3685 ac_cv_prog_CC="$CC" # Let the user override the test. 3686else 3687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3688for as_dir in $PATH 3689do 3690 IFS=$as_save_IFS 3691 test -z "$as_dir" && as_dir=. 3692 for ac_exec_ext in '' $ac_executable_extensions; do 3693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3694 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3696 break 2 3697 fi 3698done 3699done 3700IFS=$as_save_IFS 3701 3702fi 3703fi 3704CC=$ac_cv_prog_CC 3705if test -n "$CC"; then 3706 { echo "$as_me:$LINENO: result: $CC" >&5 3707echo "${ECHO_T}$CC" >&6; } 3708else 3709 { echo "$as_me:$LINENO: result: no" >&5 3710echo "${ECHO_T}no" >&6; } 3711fi 3712 3713 3714fi 3715if test -z "$ac_cv_prog_CC"; then 3716 ac_ct_CC=$CC 3717 # Extract the first word of "gcc", so it can be a program name with args. 3718set dummy gcc; ac_word=$2 3719{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3722 echo $ECHO_N "(cached) $ECHO_C" >&6 3723else 3724 if test -n "$ac_ct_CC"; then 3725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3726else 3727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3728for as_dir in $PATH 3729do 3730 IFS=$as_save_IFS 3731 test -z "$as_dir" && as_dir=. 3732 for ac_exec_ext in '' $ac_executable_extensions; do 3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3734 ac_cv_prog_ac_ct_CC="gcc" 3735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3736 break 2 3737 fi 3738done 3739done 3740IFS=$as_save_IFS 3741 3742fi 3743fi 3744ac_ct_CC=$ac_cv_prog_ac_ct_CC 3745if test -n "$ac_ct_CC"; then 3746 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3747echo "${ECHO_T}$ac_ct_CC" >&6; } 3748else 3749 { echo "$as_me:$LINENO: result: no" >&5 3750echo "${ECHO_T}no" >&6; } 3751fi 3752 3753 if test "x$ac_ct_CC" = x; then 3754 CC="" 3755 else 3756 case $cross_compiling:$ac_tool_warned in 3757yes:) 3758{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3759whose name does not start with the host triplet. If you think this 3760configuration is useful to you, please write to autoconf@gnu.org." >&5 3761echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3762whose name does not start with the host triplet. If you think this 3763configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3764ac_tool_warned=yes ;; 3765esac 3766 CC=$ac_ct_CC 3767 fi 3768else 3769 CC="$ac_cv_prog_CC" 3770fi 3771 3772if test -z "$CC"; then 3773 if test -n "$ac_tool_prefix"; then 3774 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3775set dummy ${ac_tool_prefix}cc; ac_word=$2 3776{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3778if test "${ac_cv_prog_CC+set}" = set; then 3779 echo $ECHO_N "(cached) $ECHO_C" >&6 3780else 3781 if test -n "$CC"; then 3782 ac_cv_prog_CC="$CC" # Let the user override the test. 3783else 3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3785for as_dir in $PATH 3786do 3787 IFS=$as_save_IFS 3788 test -z "$as_dir" && as_dir=. 3789 for ac_exec_ext in '' $ac_executable_extensions; do 3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3791 ac_cv_prog_CC="${ac_tool_prefix}cc" 3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3793 break 2 3794 fi 3795done 3796done 3797IFS=$as_save_IFS 3798 3799fi 3800fi 3801CC=$ac_cv_prog_CC 3802if test -n "$CC"; then 3803 { echo "$as_me:$LINENO: result: $CC" >&5 3804echo "${ECHO_T}$CC" >&6; } 3805else 3806 { echo "$as_me:$LINENO: result: no" >&5 3807echo "${ECHO_T}no" >&6; } 3808fi 3809 3810 3811 fi 3812fi 3813if test -z "$CC"; then 3814 # Extract the first word of "cc", so it can be a program name with args. 3815set dummy cc; ac_word=$2 3816{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3818if test "${ac_cv_prog_CC+set}" = set; then 3819 echo $ECHO_N "(cached) $ECHO_C" >&6 3820else 3821 if test -n "$CC"; then 3822 ac_cv_prog_CC="$CC" # Let the user override the test. 3823else 3824 ac_prog_rejected=no 3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3826for as_dir in $PATH 3827do 3828 IFS=$as_save_IFS 3829 test -z "$as_dir" && as_dir=. 3830 for ac_exec_ext in '' $ac_executable_extensions; do 3831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3832 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3833 ac_prog_rejected=yes 3834 continue 3835 fi 3836 ac_cv_prog_CC="cc" 3837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3838 break 2 3839 fi 3840done 3841done 3842IFS=$as_save_IFS 3843 3844if test $ac_prog_rejected = yes; then 3845 # We found a bogon in the path, so make sure we never use it. 3846 set dummy $ac_cv_prog_CC 3847 shift 3848 if test $# != 0; then 3849 # We chose a different compiler from the bogus one. 3850 # However, it has the same basename, so the bogon will be chosen 3851 # first if we set CC to just the basename; use the full file name. 3852 shift 3853 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3854 fi 3855fi 3856fi 3857fi 3858CC=$ac_cv_prog_CC 3859if test -n "$CC"; then 3860 { echo "$as_me:$LINENO: result: $CC" >&5 3861echo "${ECHO_T}$CC" >&6; } 3862else 3863 { echo "$as_me:$LINENO: result: no" >&5 3864echo "${ECHO_T}no" >&6; } 3865fi 3866 3867 3868fi 3869if test -z "$CC"; then 3870 if test -n "$ac_tool_prefix"; then 3871 for ac_prog in cl.exe 3872 do 3873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3874set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3875{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3877if test "${ac_cv_prog_CC+set}" = set; then 3878 echo $ECHO_N "(cached) $ECHO_C" >&6 3879else 3880 if test -n "$CC"; then 3881 ac_cv_prog_CC="$CC" # Let the user override the test. 3882else 3883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3884for as_dir in $PATH 3885do 3886 IFS=$as_save_IFS 3887 test -z "$as_dir" && as_dir=. 3888 for ac_exec_ext in '' $ac_executable_extensions; do 3889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3890 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3892 break 2 3893 fi 3894done 3895done 3896IFS=$as_save_IFS 3897 3898fi 3899fi 3900CC=$ac_cv_prog_CC 3901if test -n "$CC"; then 3902 { echo "$as_me:$LINENO: result: $CC" >&5 3903echo "${ECHO_T}$CC" >&6; } 3904else 3905 { echo "$as_me:$LINENO: result: no" >&5 3906echo "${ECHO_T}no" >&6; } 3907fi 3908 3909 3910 test -n "$CC" && break 3911 done 3912fi 3913if test -z "$CC"; then 3914 ac_ct_CC=$CC 3915 for ac_prog in cl.exe 3916do 3917 # Extract the first word of "$ac_prog", so it can be a program name with args. 3918set dummy $ac_prog; ac_word=$2 3919{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3921if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3922 echo $ECHO_N "(cached) $ECHO_C" >&6 3923else 3924 if test -n "$ac_ct_CC"; then 3925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3926else 3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3928for as_dir in $PATH 3929do 3930 IFS=$as_save_IFS 3931 test -z "$as_dir" && as_dir=. 3932 for ac_exec_ext in '' $ac_executable_extensions; do 3933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3934 ac_cv_prog_ac_ct_CC="$ac_prog" 3935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3936 break 2 3937 fi 3938done 3939done 3940IFS=$as_save_IFS 3941 3942fi 3943fi 3944ac_ct_CC=$ac_cv_prog_ac_ct_CC 3945if test -n "$ac_ct_CC"; then 3946 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3947echo "${ECHO_T}$ac_ct_CC" >&6; } 3948else 3949 { echo "$as_me:$LINENO: result: no" >&5 3950echo "${ECHO_T}no" >&6; } 3951fi 3952 3953 3954 test -n "$ac_ct_CC" && break 3955done 3956 3957 if test "x$ac_ct_CC" = x; then 3958 CC="" 3959 else 3960 case $cross_compiling:$ac_tool_warned in 3961yes:) 3962{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3963whose name does not start with the host triplet. If you think this 3964configuration is useful to you, please write to autoconf@gnu.org." >&5 3965echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3966whose name does not start with the host triplet. If you think this 3967configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3968ac_tool_warned=yes ;; 3969esac 3970 CC=$ac_ct_CC 3971 fi 3972fi 3973 3974fi 3975 3976 3977test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3978See \`config.log' for more details." >&5 3979echo "$as_me: error: no acceptable C compiler found in \$PATH 3980See \`config.log' for more details." >&2;} 3981 { (exit 1); exit 1; }; } 3982 3983# Provide some information about the compiler. 3984echo "$as_me:$LINENO: checking for C compiler version" >&5 3985ac_compiler=`set X $ac_compile; echo $2` 3986{ (ac_try="$ac_compiler --version >&5" 3987case "(($ac_try" in 3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3989 *) ac_try_echo=$ac_try;; 3990esac 3991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3992 (eval "$ac_compiler --version >&5") 2>&5 3993 ac_status=$? 3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3995 (exit $ac_status); } 3996{ (ac_try="$ac_compiler -v >&5" 3997case "(($ac_try" in 3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3999 *) ac_try_echo=$ac_try;; 4000esac 4001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4002 (eval "$ac_compiler -v >&5") 2>&5 4003 ac_status=$? 4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4005 (exit $ac_status); } 4006{ (ac_try="$ac_compiler -V >&5" 4007case "(($ac_try" in 4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4009 *) ac_try_echo=$ac_try;; 4010esac 4011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4012 (eval "$ac_compiler -V >&5") 2>&5 4013 ac_status=$? 4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4015 (exit $ac_status); } 4016 4017{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4018echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 4019if test "${ac_cv_c_compiler_gnu+set}" = set; then 4020 echo $ECHO_N "(cached) $ECHO_C" >&6 4021else 4022 cat >conftest.$ac_ext <<_ACEOF 4023/* confdefs.h. */ 4024_ACEOF 4025cat confdefs.h >>conftest.$ac_ext 4026cat >>conftest.$ac_ext <<_ACEOF 4027/* end confdefs.h. */ 4028 4029int 4030main () 4031{ 4032#ifndef __GNUC__ 4033 choke me 4034#endif 4035 4036 ; 4037 return 0; 4038} 4039_ACEOF 4040rm -f conftest.$ac_objext 4041if { (ac_try="$ac_compile" 4042case "(($ac_try" in 4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4044 *) ac_try_echo=$ac_try;; 4045esac 4046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4047 (eval "$ac_compile") 2>conftest.er1 4048 ac_status=$? 4049 grep -v '^ *+' conftest.er1 >conftest.err 4050 rm -f conftest.er1 4051 cat conftest.err >&5 4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4053 (exit $ac_status); } && { 4054 test -z "$ac_c_werror_flag" || 4055 test ! -s conftest.err 4056 } && test -s conftest.$ac_objext; then 4057 ac_compiler_gnu=yes 4058else 4059 echo "$as_me: failed program was:" >&5 4060sed 's/^/| /' conftest.$ac_ext >&5 4061 4062 ac_compiler_gnu=no 4063fi 4064 4065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4066ac_cv_c_compiler_gnu=$ac_compiler_gnu 4067 4068fi 4069{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4070echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 4071GCC=`test $ac_compiler_gnu = yes && echo yes` 4072ac_test_CFLAGS=${CFLAGS+set} 4073ac_save_CFLAGS=$CFLAGS 4074{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4075echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 4076if test "${ac_cv_prog_cc_g+set}" = set; then 4077 echo $ECHO_N "(cached) $ECHO_C" >&6 4078else 4079 ac_save_c_werror_flag=$ac_c_werror_flag 4080 ac_c_werror_flag=yes 4081 ac_cv_prog_cc_g=no 4082 CFLAGS="-g" 4083 cat >conftest.$ac_ext <<_ACEOF 4084/* confdefs.h. */ 4085_ACEOF 4086cat confdefs.h >>conftest.$ac_ext 4087cat >>conftest.$ac_ext <<_ACEOF 4088/* end confdefs.h. */ 4089 4090int 4091main () 4092{ 4093 4094 ; 4095 return 0; 4096} 4097_ACEOF 4098rm -f conftest.$ac_objext 4099if { (ac_try="$ac_compile" 4100case "(($ac_try" in 4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4102 *) ac_try_echo=$ac_try;; 4103esac 4104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4105 (eval "$ac_compile") 2>conftest.er1 4106 ac_status=$? 4107 grep -v '^ *+' conftest.er1 >conftest.err 4108 rm -f conftest.er1 4109 cat conftest.err >&5 4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4111 (exit $ac_status); } && { 4112 test -z "$ac_c_werror_flag" || 4113 test ! -s conftest.err 4114 } && test -s conftest.$ac_objext; then 4115 ac_cv_prog_cc_g=yes 4116else 4117 echo "$as_me: failed program was:" >&5 4118sed 's/^/| /' conftest.$ac_ext >&5 4119 4120 CFLAGS="" 4121 cat >conftest.$ac_ext <<_ACEOF 4122/* confdefs.h. */ 4123_ACEOF 4124cat confdefs.h >>conftest.$ac_ext 4125cat >>conftest.$ac_ext <<_ACEOF 4126/* end confdefs.h. */ 4127 4128int 4129main () 4130{ 4131 4132 ; 4133 return 0; 4134} 4135_ACEOF 4136rm -f conftest.$ac_objext 4137if { (ac_try="$ac_compile" 4138case "(($ac_try" in 4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4140 *) ac_try_echo=$ac_try;; 4141esac 4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4143 (eval "$ac_compile") 2>conftest.er1 4144 ac_status=$? 4145 grep -v '^ *+' conftest.er1 >conftest.err 4146 rm -f conftest.er1 4147 cat conftest.err >&5 4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4149 (exit $ac_status); } && { 4150 test -z "$ac_c_werror_flag" || 4151 test ! -s conftest.err 4152 } && test -s conftest.$ac_objext; then 4153 : 4154else 4155 echo "$as_me: failed program was:" >&5 4156sed 's/^/| /' conftest.$ac_ext >&5 4157 4158 ac_c_werror_flag=$ac_save_c_werror_flag 4159 CFLAGS="-g" 4160 cat >conftest.$ac_ext <<_ACEOF 4161/* confdefs.h. */ 4162_ACEOF 4163cat confdefs.h >>conftest.$ac_ext 4164cat >>conftest.$ac_ext <<_ACEOF 4165/* end confdefs.h. */ 4166 4167int 4168main () 4169{ 4170 4171 ; 4172 return 0; 4173} 4174_ACEOF 4175rm -f conftest.$ac_objext 4176if { (ac_try="$ac_compile" 4177case "(($ac_try" in 4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4179 *) ac_try_echo=$ac_try;; 4180esac 4181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4182 (eval "$ac_compile") 2>conftest.er1 4183 ac_status=$? 4184 grep -v '^ *+' conftest.er1 >conftest.err 4185 rm -f conftest.er1 4186 cat conftest.err >&5 4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4188 (exit $ac_status); } && { 4189 test -z "$ac_c_werror_flag" || 4190 test ! -s conftest.err 4191 } && test -s conftest.$ac_objext; then 4192 ac_cv_prog_cc_g=yes 4193else 4194 echo "$as_me: failed program was:" >&5 4195sed 's/^/| /' conftest.$ac_ext >&5 4196 4197 4198fi 4199 4200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4201fi 4202 4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4204fi 4205 4206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4207 ac_c_werror_flag=$ac_save_c_werror_flag 4208fi 4209{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4210echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 4211if test "$ac_test_CFLAGS" = set; then 4212 CFLAGS=$ac_save_CFLAGS 4213elif test $ac_cv_prog_cc_g = yes; then 4214 if test "$GCC" = yes; then 4215 CFLAGS="-g -O2" 4216 else 4217 CFLAGS="-g" 4218 fi 4219else 4220 if test "$GCC" = yes; then 4221 CFLAGS="-O2" 4222 else 4223 CFLAGS= 4224 fi 4225fi 4226{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4227echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 4228if test "${ac_cv_prog_cc_c89+set}" = set; then 4229 echo $ECHO_N "(cached) $ECHO_C" >&6 4230else 4231 ac_cv_prog_cc_c89=no 4232ac_save_CC=$CC 4233cat >conftest.$ac_ext <<_ACEOF 4234/* confdefs.h. */ 4235_ACEOF 4236cat confdefs.h >>conftest.$ac_ext 4237cat >>conftest.$ac_ext <<_ACEOF 4238/* end confdefs.h. */ 4239#include <stdarg.h> 4240#include <stdio.h> 4241#include <sys/types.h> 4242#include <sys/stat.h> 4243/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4244struct buf { int x; }; 4245FILE * (*rcsopen) (struct buf *, struct stat *, int); 4246static char *e (p, i) 4247 char **p; 4248 int i; 4249{ 4250 return p[i]; 4251} 4252static char *f (char * (*g) (char **, int), char **p, ...) 4253{ 4254 char *s; 4255 va_list v; 4256 va_start (v,p); 4257 s = g (p, va_arg (v,int)); 4258 va_end (v); 4259 return s; 4260} 4261 4262/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4263 function prototypes and stuff, but not '\xHH' hex character constants. 4264 These don't provoke an error unfortunately, instead are silently treated 4265 as 'x'. The following induces an error, until -std is added to get 4266 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4267 array size at least. It's necessary to write '\x00'==0 to get something 4268 that's true only with -std. */ 4269int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4270 4271/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4272 inside strings and character constants. */ 4273#define FOO(x) 'x' 4274int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4275 4276int test (int i, double x); 4277struct s1 {int (*f) (int a);}; 4278struct s2 {int (*f) (double a);}; 4279int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4280int argc; 4281char **argv; 4282int 4283main () 4284{ 4285return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4286 ; 4287 return 0; 4288} 4289_ACEOF 4290for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4291 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4292do 4293 CC="$ac_save_CC $ac_arg" 4294 rm -f conftest.$ac_objext 4295if { (ac_try="$ac_compile" 4296case "(($ac_try" in 4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4298 *) ac_try_echo=$ac_try;; 4299esac 4300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4301 (eval "$ac_compile") 2>conftest.er1 4302 ac_status=$? 4303 grep -v '^ *+' conftest.er1 >conftest.err 4304 rm -f conftest.er1 4305 cat conftest.err >&5 4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4307 (exit $ac_status); } && { 4308 test -z "$ac_c_werror_flag" || 4309 test ! -s conftest.err 4310 } && test -s conftest.$ac_objext; then 4311 ac_cv_prog_cc_c89=$ac_arg 4312else 4313 echo "$as_me: failed program was:" >&5 4314sed 's/^/| /' conftest.$ac_ext >&5 4315 4316 4317fi 4318 4319rm -f core conftest.err conftest.$ac_objext 4320 test "x$ac_cv_prog_cc_c89" != "xno" && break 4321done 4322rm -f conftest.$ac_ext 4323CC=$ac_save_CC 4324 4325fi 4326# AC_CACHE_VAL 4327case "x$ac_cv_prog_cc_c89" in 4328 x) 4329 { echo "$as_me:$LINENO: result: none needed" >&5 4330echo "${ECHO_T}none needed" >&6; } ;; 4331 xno) 4332 { echo "$as_me:$LINENO: result: unsupported" >&5 4333echo "${ECHO_T}unsupported" >&6; } ;; 4334 *) 4335 CC="$CC $ac_cv_prog_cc_c89" 4336 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4337echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 4338esac 4339 4340 4341ac_ext=c 4342ac_cpp='$CPP $CPPFLAGS' 4343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4345ac_compiler_gnu=$ac_cv_c_compiler_gnu 4346 4347depcc="$CC" am_compiler_list= 4348 4349{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4350echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4351if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4352 echo $ECHO_N "(cached) $ECHO_C" >&6 4353else 4354 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4355 # We make a subdir and do the tests there. Otherwise we can end up 4356 # making bogus files that we don't know about and never remove. For 4357 # instance it was reported that on HP-UX the gcc test will end up 4358 # making a dummy file named `D' -- because `-MD' means `put the output 4359 # in D'. 4360 mkdir conftest.dir 4361 # Copy depcomp to subdir because otherwise we won't find it if we're 4362 # using a relative directory. 4363 cp "$am_depcomp" conftest.dir 4364 cd conftest.dir 4365 # We will build objects and dependencies in a subdirectory because 4366 # it helps to detect inapplicable dependency modes. For instance 4367 # both Tru64's cc and ICC support -MD to output dependencies as a 4368 # side effect of compilation, but ICC will put the dependencies in 4369 # the current directory while Tru64 will put them in the object 4370 # directory. 4371 mkdir sub 4372 4373 am_cv_CC_dependencies_compiler_type=none 4374 if test "$am_compiler_list" = ""; then 4375 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4376 fi 4377 for depmode in $am_compiler_list; do 4378 # Setup a source with many dependencies, because some compilers 4379 # like to wrap large dependency lists on column 80 (with \), and 4380 # we should not choose a depcomp mode which is confused by this. 4381 # 4382 # We need to recreate these files for each test, as the compiler may 4383 # overwrite some of them when testing with obscure command lines. 4384 # This happens at least with the AIX C compiler. 4385 : > sub/conftest.c 4386 for i in 1 2 3 4 5 6; do 4387 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4388 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4389 # Solaris 8's {/usr,}/bin/sh. 4390 touch sub/conftst$i.h 4391 done 4392 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4393 4394 case $depmode in 4395 nosideeffect) 4396 # after this tag, mechanisms are not by side-effect, so they'll 4397 # only be used when explicitly requested 4398 if test "x$enable_dependency_tracking" = xyes; then 4399 continue 4400 else 4401 break 4402 fi 4403 ;; 4404 none) break ;; 4405 esac 4406 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4407 # mode. It turns out that the SunPro C++ compiler does not properly 4408 # handle `-M -o', and we need to detect this. 4409 if depmode=$depmode \ 4410 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4411 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4412 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4413 >/dev/null 2>conftest.err && 4414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4415 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4417 # icc doesn't choke on unknown options, it will just issue warnings 4418 # or remarks (even with -Werror). So we grep stderr for any message 4419 # that says an option was ignored or not supported. 4420 # When given -MP, icc 7.0 and 7.1 complain thusly: 4421 # icc: Command line warning: ignoring option '-M'; no argument required 4422 # The diagnosis changed in icc 8.0: 4423 # icc: Command line remark: option '-MP' not supported 4424 if (grep 'ignoring option' conftest.err || 4425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4426 am_cv_CC_dependencies_compiler_type=$depmode 4427 break 4428 fi 4429 fi 4430 done 4431 4432 cd .. 4433 rm -rf conftest.dir 4434else 4435 am_cv_CC_dependencies_compiler_type=none 4436fi 4437 4438fi 4439{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4440echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4441CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4442 4443 4444 4445if 4446 test "x$enable_dependency_tracking" != xno \ 4447 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4448 am__fastdepCC_TRUE= 4449 am__fastdepCC_FALSE='#' 4450else 4451 am__fastdepCC_TRUE='#' 4452 am__fastdepCC_FALSE= 4453fi 4454 4455 4456ac_ext=c 4457ac_cpp='$CPP $CPPFLAGS' 4458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4460ac_compiler_gnu=$ac_cv_c_compiler_gnu 4461if test -n "$ac_tool_prefix"; then 4462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4463set dummy ${ac_tool_prefix}gcc; ac_word=$2 4464{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4466if test "${ac_cv_prog_CC+set}" = set; then 4467 echo $ECHO_N "(cached) $ECHO_C" >&6 4468else 4469 if test -n "$CC"; then 4470 ac_cv_prog_CC="$CC" # Let the user override the test. 4471else 4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4473for as_dir in $PATH 4474do 4475 IFS=$as_save_IFS 4476 test -z "$as_dir" && as_dir=. 4477 for ac_exec_ext in '' $ac_executable_extensions; do 4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4479 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4481 break 2 4482 fi 4483done 4484done 4485IFS=$as_save_IFS 4486 4487fi 4488fi 4489CC=$ac_cv_prog_CC 4490if test -n "$CC"; then 4491 { echo "$as_me:$LINENO: result: $CC" >&5 4492echo "${ECHO_T}$CC" >&6; } 4493else 4494 { echo "$as_me:$LINENO: result: no" >&5 4495echo "${ECHO_T}no" >&6; } 4496fi 4497 4498 4499fi 4500if test -z "$ac_cv_prog_CC"; then 4501 ac_ct_CC=$CC 4502 # Extract the first word of "gcc", so it can be a program name with args. 4503set dummy gcc; ac_word=$2 4504{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4506if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4507 echo $ECHO_N "(cached) $ECHO_C" >&6 4508else 4509 if test -n "$ac_ct_CC"; then 4510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4511else 4512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4513for as_dir in $PATH 4514do 4515 IFS=$as_save_IFS 4516 test -z "$as_dir" && as_dir=. 4517 for ac_exec_ext in '' $ac_executable_extensions; do 4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4519 ac_cv_prog_ac_ct_CC="gcc" 4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4521 break 2 4522 fi 4523done 4524done 4525IFS=$as_save_IFS 4526 4527fi 4528fi 4529ac_ct_CC=$ac_cv_prog_ac_ct_CC 4530if test -n "$ac_ct_CC"; then 4531 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4532echo "${ECHO_T}$ac_ct_CC" >&6; } 4533else 4534 { echo "$as_me:$LINENO: result: no" >&5 4535echo "${ECHO_T}no" >&6; } 4536fi 4537 4538 if test "x$ac_ct_CC" = x; then 4539 CC="" 4540 else 4541 case $cross_compiling:$ac_tool_warned in 4542yes:) 4543{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4544whose name does not start with the host triplet. If you think this 4545configuration is useful to you, please write to autoconf@gnu.org." >&5 4546echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4547whose name does not start with the host triplet. If you think this 4548configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4549ac_tool_warned=yes ;; 4550esac 4551 CC=$ac_ct_CC 4552 fi 4553else 4554 CC="$ac_cv_prog_CC" 4555fi 4556 4557if test -z "$CC"; then 4558 if test -n "$ac_tool_prefix"; then 4559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4560set dummy ${ac_tool_prefix}cc; ac_word=$2 4561{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4563if test "${ac_cv_prog_CC+set}" = set; then 4564 echo $ECHO_N "(cached) $ECHO_C" >&6 4565else 4566 if test -n "$CC"; then 4567 ac_cv_prog_CC="$CC" # Let the user override the test. 4568else 4569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4570for as_dir in $PATH 4571do 4572 IFS=$as_save_IFS 4573 test -z "$as_dir" && as_dir=. 4574 for ac_exec_ext in '' $ac_executable_extensions; do 4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4576 ac_cv_prog_CC="${ac_tool_prefix}cc" 4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4578 break 2 4579 fi 4580done 4581done 4582IFS=$as_save_IFS 4583 4584fi 4585fi 4586CC=$ac_cv_prog_CC 4587if test -n "$CC"; then 4588 { echo "$as_me:$LINENO: result: $CC" >&5 4589echo "${ECHO_T}$CC" >&6; } 4590else 4591 { echo "$as_me:$LINENO: result: no" >&5 4592echo "${ECHO_T}no" >&6; } 4593fi 4594 4595 4596 fi 4597fi 4598if test -z "$CC"; then 4599 # Extract the first word of "cc", so it can be a program name with args. 4600set dummy cc; ac_word=$2 4601{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4603if test "${ac_cv_prog_CC+set}" = set; then 4604 echo $ECHO_N "(cached) $ECHO_C" >&6 4605else 4606 if test -n "$CC"; then 4607 ac_cv_prog_CC="$CC" # Let the user override the test. 4608else 4609 ac_prog_rejected=no 4610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4611for as_dir in $PATH 4612do 4613 IFS=$as_save_IFS 4614 test -z "$as_dir" && as_dir=. 4615 for ac_exec_ext in '' $ac_executable_extensions; do 4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4618 ac_prog_rejected=yes 4619 continue 4620 fi 4621 ac_cv_prog_CC="cc" 4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4623 break 2 4624 fi 4625done 4626done 4627IFS=$as_save_IFS 4628 4629if test $ac_prog_rejected = yes; then 4630 # We found a bogon in the path, so make sure we never use it. 4631 set dummy $ac_cv_prog_CC 4632 shift 4633 if test $# != 0; then 4634 # We chose a different compiler from the bogus one. 4635 # However, it has the same basename, so the bogon will be chosen 4636 # first if we set CC to just the basename; use the full file name. 4637 shift 4638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4639 fi 4640fi 4641fi 4642fi 4643CC=$ac_cv_prog_CC 4644if test -n "$CC"; then 4645 { echo "$as_me:$LINENO: result: $CC" >&5 4646echo "${ECHO_T}$CC" >&6; } 4647else 4648 { echo "$as_me:$LINENO: result: no" >&5 4649echo "${ECHO_T}no" >&6; } 4650fi 4651 4652 4653fi 4654if test -z "$CC"; then 4655 if test -n "$ac_tool_prefix"; then 4656 for ac_prog in cl.exe 4657 do 4658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4659set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4660{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4662if test "${ac_cv_prog_CC+set}" = set; then 4663 echo $ECHO_N "(cached) $ECHO_C" >&6 4664else 4665 if test -n "$CC"; then 4666 ac_cv_prog_CC="$CC" # Let the user override the test. 4667else 4668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4669for as_dir in $PATH 4670do 4671 IFS=$as_save_IFS 4672 test -z "$as_dir" && as_dir=. 4673 for ac_exec_ext in '' $ac_executable_extensions; do 4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4677 break 2 4678 fi 4679done 4680done 4681IFS=$as_save_IFS 4682 4683fi 4684fi 4685CC=$ac_cv_prog_CC 4686if test -n "$CC"; then 4687 { echo "$as_me:$LINENO: result: $CC" >&5 4688echo "${ECHO_T}$CC" >&6; } 4689else 4690 { echo "$as_me:$LINENO: result: no" >&5 4691echo "${ECHO_T}no" >&6; } 4692fi 4693 4694 4695 test -n "$CC" && break 4696 done 4697fi 4698if test -z "$CC"; then 4699 ac_ct_CC=$CC 4700 for ac_prog in cl.exe 4701do 4702 # Extract the first word of "$ac_prog", so it can be a program name with args. 4703set dummy $ac_prog; ac_word=$2 4704{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4706if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4707 echo $ECHO_N "(cached) $ECHO_C" >&6 4708else 4709 if test -n "$ac_ct_CC"; then 4710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4711else 4712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4713for as_dir in $PATH 4714do 4715 IFS=$as_save_IFS 4716 test -z "$as_dir" && as_dir=. 4717 for ac_exec_ext in '' $ac_executable_extensions; do 4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4719 ac_cv_prog_ac_ct_CC="$ac_prog" 4720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4721 break 2 4722 fi 4723done 4724done 4725IFS=$as_save_IFS 4726 4727fi 4728fi 4729ac_ct_CC=$ac_cv_prog_ac_ct_CC 4730if test -n "$ac_ct_CC"; then 4731 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4732echo "${ECHO_T}$ac_ct_CC" >&6; } 4733else 4734 { echo "$as_me:$LINENO: result: no" >&5 4735echo "${ECHO_T}no" >&6; } 4736fi 4737 4738 4739 test -n "$ac_ct_CC" && break 4740done 4741 4742 if test "x$ac_ct_CC" = x; then 4743 CC="" 4744 else 4745 case $cross_compiling:$ac_tool_warned in 4746yes:) 4747{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4748whose name does not start with the host triplet. If you think this 4749configuration is useful to you, please write to autoconf@gnu.org." >&5 4750echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4751whose name does not start with the host triplet. If you think this 4752configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4753ac_tool_warned=yes ;; 4754esac 4755 CC=$ac_ct_CC 4756 fi 4757fi 4758 4759fi 4760 4761 4762test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4763See \`config.log' for more details." >&5 4764echo "$as_me: error: no acceptable C compiler found in \$PATH 4765See \`config.log' for more details." >&2;} 4766 { (exit 1); exit 1; }; } 4767 4768# Provide some information about the compiler. 4769echo "$as_me:$LINENO: checking for C compiler version" >&5 4770ac_compiler=`set X $ac_compile; echo $2` 4771{ (ac_try="$ac_compiler --version >&5" 4772case "(($ac_try" in 4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4774 *) ac_try_echo=$ac_try;; 4775esac 4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4777 (eval "$ac_compiler --version >&5") 2>&5 4778 ac_status=$? 4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4780 (exit $ac_status); } 4781{ (ac_try="$ac_compiler -v >&5" 4782case "(($ac_try" in 4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4784 *) ac_try_echo=$ac_try;; 4785esac 4786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4787 (eval "$ac_compiler -v >&5") 2>&5 4788 ac_status=$? 4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4790 (exit $ac_status); } 4791{ (ac_try="$ac_compiler -V >&5" 4792case "(($ac_try" in 4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4794 *) ac_try_echo=$ac_try;; 4795esac 4796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4797 (eval "$ac_compiler -V >&5") 2>&5 4798 ac_status=$? 4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4800 (exit $ac_status); } 4801 4802{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4803echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 4804if test "${ac_cv_c_compiler_gnu+set}" = set; then 4805 echo $ECHO_N "(cached) $ECHO_C" >&6 4806else 4807 cat >conftest.$ac_ext <<_ACEOF 4808/* confdefs.h. */ 4809_ACEOF 4810cat confdefs.h >>conftest.$ac_ext 4811cat >>conftest.$ac_ext <<_ACEOF 4812/* end confdefs.h. */ 4813 4814int 4815main () 4816{ 4817#ifndef __GNUC__ 4818 choke me 4819#endif 4820 4821 ; 4822 return 0; 4823} 4824_ACEOF 4825rm -f conftest.$ac_objext 4826if { (ac_try="$ac_compile" 4827case "(($ac_try" in 4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4829 *) ac_try_echo=$ac_try;; 4830esac 4831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4832 (eval "$ac_compile") 2>conftest.er1 4833 ac_status=$? 4834 grep -v '^ *+' conftest.er1 >conftest.err 4835 rm -f conftest.er1 4836 cat conftest.err >&5 4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4838 (exit $ac_status); } && { 4839 test -z "$ac_c_werror_flag" || 4840 test ! -s conftest.err 4841 } && test -s conftest.$ac_objext; then 4842 ac_compiler_gnu=yes 4843else 4844 echo "$as_me: failed program was:" >&5 4845sed 's/^/| /' conftest.$ac_ext >&5 4846 4847 ac_compiler_gnu=no 4848fi 4849 4850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4851ac_cv_c_compiler_gnu=$ac_compiler_gnu 4852 4853fi 4854{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4855echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 4856GCC=`test $ac_compiler_gnu = yes && echo yes` 4857ac_test_CFLAGS=${CFLAGS+set} 4858ac_save_CFLAGS=$CFLAGS 4859{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4860echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 4861if test "${ac_cv_prog_cc_g+set}" = set; then 4862 echo $ECHO_N "(cached) $ECHO_C" >&6 4863else 4864 ac_save_c_werror_flag=$ac_c_werror_flag 4865 ac_c_werror_flag=yes 4866 ac_cv_prog_cc_g=no 4867 CFLAGS="-g" 4868 cat >conftest.$ac_ext <<_ACEOF 4869/* confdefs.h. */ 4870_ACEOF 4871cat confdefs.h >>conftest.$ac_ext 4872cat >>conftest.$ac_ext <<_ACEOF 4873/* end confdefs.h. */ 4874 4875int 4876main () 4877{ 4878 4879 ; 4880 return 0; 4881} 4882_ACEOF 4883rm -f conftest.$ac_objext 4884if { (ac_try="$ac_compile" 4885case "(($ac_try" in 4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4887 *) ac_try_echo=$ac_try;; 4888esac 4889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4890 (eval "$ac_compile") 2>conftest.er1 4891 ac_status=$? 4892 grep -v '^ *+' conftest.er1 >conftest.err 4893 rm -f conftest.er1 4894 cat conftest.err >&5 4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4896 (exit $ac_status); } && { 4897 test -z "$ac_c_werror_flag" || 4898 test ! -s conftest.err 4899 } && test -s conftest.$ac_objext; then 4900 ac_cv_prog_cc_g=yes 4901else 4902 echo "$as_me: failed program was:" >&5 4903sed 's/^/| /' conftest.$ac_ext >&5 4904 4905 CFLAGS="" 4906 cat >conftest.$ac_ext <<_ACEOF 4907/* confdefs.h. */ 4908_ACEOF 4909cat confdefs.h >>conftest.$ac_ext 4910cat >>conftest.$ac_ext <<_ACEOF 4911/* end confdefs.h. */ 4912 4913int 4914main () 4915{ 4916 4917 ; 4918 return 0; 4919} 4920_ACEOF 4921rm -f conftest.$ac_objext 4922if { (ac_try="$ac_compile" 4923case "(($ac_try" in 4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4925 *) ac_try_echo=$ac_try;; 4926esac 4927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4928 (eval "$ac_compile") 2>conftest.er1 4929 ac_status=$? 4930 grep -v '^ *+' conftest.er1 >conftest.err 4931 rm -f conftest.er1 4932 cat conftest.err >&5 4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4934 (exit $ac_status); } && { 4935 test -z "$ac_c_werror_flag" || 4936 test ! -s conftest.err 4937 } && test -s conftest.$ac_objext; then 4938 : 4939else 4940 echo "$as_me: failed program was:" >&5 4941sed 's/^/| /' conftest.$ac_ext >&5 4942 4943 ac_c_werror_flag=$ac_save_c_werror_flag 4944 CFLAGS="-g" 4945 cat >conftest.$ac_ext <<_ACEOF 4946/* confdefs.h. */ 4947_ACEOF 4948cat confdefs.h >>conftest.$ac_ext 4949cat >>conftest.$ac_ext <<_ACEOF 4950/* end confdefs.h. */ 4951 4952int 4953main () 4954{ 4955 4956 ; 4957 return 0; 4958} 4959_ACEOF 4960rm -f conftest.$ac_objext 4961if { (ac_try="$ac_compile" 4962case "(($ac_try" in 4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4964 *) ac_try_echo=$ac_try;; 4965esac 4966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4967 (eval "$ac_compile") 2>conftest.er1 4968 ac_status=$? 4969 grep -v '^ *+' conftest.er1 >conftest.err 4970 rm -f conftest.er1 4971 cat conftest.err >&5 4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4973 (exit $ac_status); } && { 4974 test -z "$ac_c_werror_flag" || 4975 test ! -s conftest.err 4976 } && test -s conftest.$ac_objext; then 4977 ac_cv_prog_cc_g=yes 4978else 4979 echo "$as_me: failed program was:" >&5 4980sed 's/^/| /' conftest.$ac_ext >&5 4981 4982 4983fi 4984 4985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4986fi 4987 4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4989fi 4990 4991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4992 ac_c_werror_flag=$ac_save_c_werror_flag 4993fi 4994{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4995echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 4996if test "$ac_test_CFLAGS" = set; then 4997 CFLAGS=$ac_save_CFLAGS 4998elif test $ac_cv_prog_cc_g = yes; then 4999 if test "$GCC" = yes; then 5000 CFLAGS="-g -O2" 5001 else 5002 CFLAGS="-g" 5003 fi 5004else 5005 if test "$GCC" = yes; then 5006 CFLAGS="-O2" 5007 else 5008 CFLAGS= 5009 fi 5010fi 5011{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 5012echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 5013if test "${ac_cv_prog_cc_c89+set}" = set; then 5014 echo $ECHO_N "(cached) $ECHO_C" >&6 5015else 5016 ac_cv_prog_cc_c89=no 5017ac_save_CC=$CC 5018cat >conftest.$ac_ext <<_ACEOF 5019/* confdefs.h. */ 5020_ACEOF 5021cat confdefs.h >>conftest.$ac_ext 5022cat >>conftest.$ac_ext <<_ACEOF 5023/* end confdefs.h. */ 5024#include <stdarg.h> 5025#include <stdio.h> 5026#include <sys/types.h> 5027#include <sys/stat.h> 5028/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5029struct buf { int x; }; 5030FILE * (*rcsopen) (struct buf *, struct stat *, int); 5031static char *e (p, i) 5032 char **p; 5033 int i; 5034{ 5035 return p[i]; 5036} 5037static char *f (char * (*g) (char **, int), char **p, ...) 5038{ 5039 char *s; 5040 va_list v; 5041 va_start (v,p); 5042 s = g (p, va_arg (v,int)); 5043 va_end (v); 5044 return s; 5045} 5046 5047/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5048 function prototypes and stuff, but not '\xHH' hex character constants. 5049 These don't provoke an error unfortunately, instead are silently treated 5050 as 'x'. The following induces an error, until -std is added to get 5051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5052 array size at least. It's necessary to write '\x00'==0 to get something 5053 that's true only with -std. */ 5054int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5055 5056/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5057 inside strings and character constants. */ 5058#define FOO(x) 'x' 5059int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5060 5061int test (int i, double x); 5062struct s1 {int (*f) (int a);}; 5063struct s2 {int (*f) (double a);}; 5064int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5065int argc; 5066char **argv; 5067int 5068main () 5069{ 5070return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5071 ; 5072 return 0; 5073} 5074_ACEOF 5075for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5076 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5077do 5078 CC="$ac_save_CC $ac_arg" 5079 rm -f conftest.$ac_objext 5080if { (ac_try="$ac_compile" 5081case "(($ac_try" in 5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5083 *) ac_try_echo=$ac_try;; 5084esac 5085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5086 (eval "$ac_compile") 2>conftest.er1 5087 ac_status=$? 5088 grep -v '^ *+' conftest.er1 >conftest.err 5089 rm -f conftest.er1 5090 cat conftest.err >&5 5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5092 (exit $ac_status); } && { 5093 test -z "$ac_c_werror_flag" || 5094 test ! -s conftest.err 5095 } && test -s conftest.$ac_objext; then 5096 ac_cv_prog_cc_c89=$ac_arg 5097else 5098 echo "$as_me: failed program was:" >&5 5099sed 's/^/| /' conftest.$ac_ext >&5 5100 5101 5102fi 5103 5104rm -f core conftest.err conftest.$ac_objext 5105 test "x$ac_cv_prog_cc_c89" != "xno" && break 5106done 5107rm -f conftest.$ac_ext 5108CC=$ac_save_CC 5109 5110fi 5111# AC_CACHE_VAL 5112case "x$ac_cv_prog_cc_c89" in 5113 x) 5114 { echo "$as_me:$LINENO: result: none needed" >&5 5115echo "${ECHO_T}none needed" >&6; } ;; 5116 xno) 5117 { echo "$as_me:$LINENO: result: unsupported" >&5 5118echo "${ECHO_T}unsupported" >&6; } ;; 5119 *) 5120 CC="$CC $ac_cv_prog_cc_c89" 5121 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 5122echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 5123esac 5124 5125 5126ac_ext=c 5127ac_cpp='$CPP $CPPFLAGS' 5128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5130ac_compiler_gnu=$ac_cv_c_compiler_gnu 5131 5132depcc="$CC" am_compiler_list= 5133 5134{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5135echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5136if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5137 echo $ECHO_N "(cached) $ECHO_C" >&6 5138else 5139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5140 # We make a subdir and do the tests there. Otherwise we can end up 5141 # making bogus files that we don't know about and never remove. For 5142 # instance it was reported that on HP-UX the gcc test will end up 5143 # making a dummy file named `D' -- because `-MD' means `put the output 5144 # in D'. 5145 mkdir conftest.dir 5146 # Copy depcomp to subdir because otherwise we won't find it if we're 5147 # using a relative directory. 5148 cp "$am_depcomp" conftest.dir 5149 cd conftest.dir 5150 # We will build objects and dependencies in a subdirectory because 5151 # it helps to detect inapplicable dependency modes. For instance 5152 # both Tru64's cc and ICC support -MD to output dependencies as a 5153 # side effect of compilation, but ICC will put the dependencies in 5154 # the current directory while Tru64 will put them in the object 5155 # directory. 5156 mkdir sub 5157 5158 am_cv_CC_dependencies_compiler_type=none 5159 if test "$am_compiler_list" = ""; then 5160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5161 fi 5162 for depmode in $am_compiler_list; do 5163 # Setup a source with many dependencies, because some compilers 5164 # like to wrap large dependency lists on column 80 (with \), and 5165 # we should not choose a depcomp mode which is confused by this. 5166 # 5167 # We need to recreate these files for each test, as the compiler may 5168 # overwrite some of them when testing with obscure command lines. 5169 # This happens at least with the AIX C compiler. 5170 : > sub/conftest.c 5171 for i in 1 2 3 4 5 6; do 5172 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5173 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5174 # Solaris 8's {/usr,}/bin/sh. 5175 touch sub/conftst$i.h 5176 done 5177 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5178 5179 case $depmode in 5180 nosideeffect) 5181 # after this tag, mechanisms are not by side-effect, so they'll 5182 # only be used when explicitly requested 5183 if test "x$enable_dependency_tracking" = xyes; then 5184 continue 5185 else 5186 break 5187 fi 5188 ;; 5189 none) break ;; 5190 esac 5191 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5192 # mode. It turns out that the SunPro C++ compiler does not properly 5193 # handle `-M -o', and we need to detect this. 5194 if depmode=$depmode \ 5195 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5197 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5198 >/dev/null 2>conftest.err && 5199 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5200 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5201 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5202 # icc doesn't choke on unknown options, it will just issue warnings 5203 # or remarks (even with -Werror). So we grep stderr for any message 5204 # that says an option was ignored or not supported. 5205 # When given -MP, icc 7.0 and 7.1 complain thusly: 5206 # icc: Command line warning: ignoring option '-M'; no argument required 5207 # The diagnosis changed in icc 8.0: 5208 # icc: Command line remark: option '-MP' not supported 5209 if (grep 'ignoring option' conftest.err || 5210 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5211 am_cv_CC_dependencies_compiler_type=$depmode 5212 break 5213 fi 5214 fi 5215 done 5216 5217 cd .. 5218 rm -rf conftest.dir 5219else 5220 am_cv_CC_dependencies_compiler_type=none 5221fi 5222 5223fi 5224{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5225echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 5226CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5227 5228 5229 5230if 5231 test "x$enable_dependency_tracking" != xno \ 5232 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5233 am__fastdepCC_TRUE= 5234 am__fastdepCC_FALSE='#' 5235else 5236 am__fastdepCC_TRUE='#' 5237 am__fastdepCC_FALSE= 5238fi 5239 5240 5241 5242am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc 5243 5244ac_ext=c 5245ac_cpp='$CPP $CPPFLAGS' 5246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5248ac_compiler_gnu=$ac_cv_c_compiler_gnu 5249{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5250echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5251# On Suns, sometimes $CPP names a directory. 5252if test -n "$CPP" && test -d "$CPP"; then 5253 CPP= 5254fi 5255if test -z "$CPP"; then 5256 if test "${ac_cv_prog_CPP+set}" = set; then 5257 echo $ECHO_N "(cached) $ECHO_C" >&6 5258else 5259 # Double quotes because CPP needs to be expanded 5260 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5261 do 5262 ac_preproc_ok=false 5263for ac_c_preproc_warn_flag in '' yes 5264do 5265 # Use a header file that comes with gcc, so configuring glibc 5266 # with a fresh cross-compiler works. 5267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5268 # <limits.h> exists even on freestanding compilers. 5269 # On the NeXT, cc -E runs the code through the compiler's parser, 5270 # not just through cpp. "Syntax error" is here to catch this case. 5271 cat >conftest.$ac_ext <<_ACEOF 5272/* confdefs.h. */ 5273_ACEOF 5274cat confdefs.h >>conftest.$ac_ext 5275cat >>conftest.$ac_ext <<_ACEOF 5276/* end confdefs.h. */ 5277#ifdef __STDC__ 5278# include <limits.h> 5279#else 5280# include <assert.h> 5281#endif 5282 Syntax error 5283_ACEOF 5284if { (ac_try="$ac_cpp conftest.$ac_ext" 5285case "(($ac_try" in 5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5287 *) ac_try_echo=$ac_try;; 5288esac 5289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5291 ac_status=$? 5292 grep -v '^ *+' conftest.er1 >conftest.err 5293 rm -f conftest.er1 5294 cat conftest.err >&5 5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5296 (exit $ac_status); } >/dev/null && { 5297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5298 test ! -s conftest.err 5299 }; then 5300 : 5301else 5302 echo "$as_me: failed program was:" >&5 5303sed 's/^/| /' conftest.$ac_ext >&5 5304 5305 # Broken: fails on valid input. 5306continue 5307fi 5308 5309rm -f conftest.err conftest.$ac_ext 5310 5311 # OK, works on sane cases. Now check whether nonexistent headers 5312 # can be detected and how. 5313 cat >conftest.$ac_ext <<_ACEOF 5314/* confdefs.h. */ 5315_ACEOF 5316cat confdefs.h >>conftest.$ac_ext 5317cat >>conftest.$ac_ext <<_ACEOF 5318/* end confdefs.h. */ 5319#include <ac_nonexistent.h> 5320_ACEOF 5321if { (ac_try="$ac_cpp conftest.$ac_ext" 5322case "(($ac_try" in 5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5324 *) ac_try_echo=$ac_try;; 5325esac 5326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5328 ac_status=$? 5329 grep -v '^ *+' conftest.er1 >conftest.err 5330 rm -f conftest.er1 5331 cat conftest.err >&5 5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5333 (exit $ac_status); } >/dev/null && { 5334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5335 test ! -s conftest.err 5336 }; then 5337 # Broken: success on invalid input. 5338continue 5339else 5340 echo "$as_me: failed program was:" >&5 5341sed 's/^/| /' conftest.$ac_ext >&5 5342 5343 # Passes both tests. 5344ac_preproc_ok=: 5345break 5346fi 5347 5348rm -f conftest.err conftest.$ac_ext 5349 5350done 5351# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5352rm -f conftest.err conftest.$ac_ext 5353if $ac_preproc_ok; then 5354 break 5355fi 5356 5357 done 5358 ac_cv_prog_CPP=$CPP 5359 5360fi 5361 CPP=$ac_cv_prog_CPP 5362else 5363 ac_cv_prog_CPP=$CPP 5364fi 5365{ echo "$as_me:$LINENO: result: $CPP" >&5 5366echo "${ECHO_T}$CPP" >&6; } 5367ac_preproc_ok=false 5368for ac_c_preproc_warn_flag in '' yes 5369do 5370 # Use a header file that comes with gcc, so configuring glibc 5371 # with a fresh cross-compiler works. 5372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5373 # <limits.h> exists even on freestanding compilers. 5374 # On the NeXT, cc -E runs the code through the compiler's parser, 5375 # not just through cpp. "Syntax error" is here to catch this case. 5376 cat >conftest.$ac_ext <<_ACEOF 5377/* confdefs.h. */ 5378_ACEOF 5379cat confdefs.h >>conftest.$ac_ext 5380cat >>conftest.$ac_ext <<_ACEOF 5381/* end confdefs.h. */ 5382#ifdef __STDC__ 5383# include <limits.h> 5384#else 5385# include <assert.h> 5386#endif 5387 Syntax error 5388_ACEOF 5389if { (ac_try="$ac_cpp conftest.$ac_ext" 5390case "(($ac_try" in 5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5392 *) ac_try_echo=$ac_try;; 5393esac 5394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5396 ac_status=$? 5397 grep -v '^ *+' conftest.er1 >conftest.err 5398 rm -f conftest.er1 5399 cat conftest.err >&5 5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5401 (exit $ac_status); } >/dev/null && { 5402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5403 test ! -s conftest.err 5404 }; then 5405 : 5406else 5407 echo "$as_me: failed program was:" >&5 5408sed 's/^/| /' conftest.$ac_ext >&5 5409 5410 # Broken: fails on valid input. 5411continue 5412fi 5413 5414rm -f conftest.err conftest.$ac_ext 5415 5416 # OK, works on sane cases. Now check whether nonexistent headers 5417 # can be detected and how. 5418 cat >conftest.$ac_ext <<_ACEOF 5419/* confdefs.h. */ 5420_ACEOF 5421cat confdefs.h >>conftest.$ac_ext 5422cat >>conftest.$ac_ext <<_ACEOF 5423/* end confdefs.h. */ 5424#include <ac_nonexistent.h> 5425_ACEOF 5426if { (ac_try="$ac_cpp conftest.$ac_ext" 5427case "(($ac_try" in 5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5429 *) ac_try_echo=$ac_try;; 5430esac 5431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5433 ac_status=$? 5434 grep -v '^ *+' conftest.er1 >conftest.err 5435 rm -f conftest.er1 5436 cat conftest.err >&5 5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5438 (exit $ac_status); } >/dev/null && { 5439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5440 test ! -s conftest.err 5441 }; then 5442 # Broken: success on invalid input. 5443continue 5444else 5445 echo "$as_me: failed program was:" >&5 5446sed 's/^/| /' conftest.$ac_ext >&5 5447 5448 # Passes both tests. 5449ac_preproc_ok=: 5450break 5451fi 5452 5453rm -f conftest.err conftest.$ac_ext 5454 5455done 5456# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5457rm -f conftest.err conftest.$ac_ext 5458if $ac_preproc_ok; then 5459 : 5460else 5461 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5462See \`config.log' for more details." >&5 5463echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5464See \`config.log' for more details." >&2;} 5465 { (exit 1); exit 1; }; } 5466fi 5467 5468ac_ext=c 5469ac_cpp='$CPP $CPPFLAGS' 5470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5472ac_compiler_gnu=$ac_cv_c_compiler_gnu 5473 5474 5475{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 5476echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 5477if test "${ac_cv_path_GREP+set}" = set; then 5478 echo $ECHO_N "(cached) $ECHO_C" >&6 5479else 5480 # Extract the first word of "grep ggrep" to use in msg output 5481if test -z "$GREP"; then 5482set dummy grep ggrep; ac_prog_name=$2 5483if test "${ac_cv_path_GREP+set}" = set; then 5484 echo $ECHO_N "(cached) $ECHO_C" >&6 5485else 5486 ac_path_GREP_found=false 5487# Loop through the user's path and test for each of PROGNAME-LIST 5488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5489for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5490do 5491 IFS=$as_save_IFS 5492 test -z "$as_dir" && as_dir=. 5493 for ac_prog in grep ggrep; do 5494 for ac_exec_ext in '' $ac_executable_extensions; do 5495 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5496 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5497 # Check for GNU ac_path_GREP and select it if it is found. 5498 # Check for GNU $ac_path_GREP 5499case `"$ac_path_GREP" --version 2>&1` in 5500*GNU*) 5501 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5502*) 5503 ac_count=0 5504 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5505 while : 5506 do 5507 cat "conftest.in" "conftest.in" >"conftest.tmp" 5508 mv "conftest.tmp" "conftest.in" 5509 cp "conftest.in" "conftest.nl" 5510 echo 'GREP' >> "conftest.nl" 5511 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5513 ac_count=`expr $ac_count + 1` 5514 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5515 # Best one so far, save it but keep looking for a better one 5516 ac_cv_path_GREP="$ac_path_GREP" 5517 ac_path_GREP_max=$ac_count 5518 fi 5519 # 10*(2^10) chars as input seems more than enough 5520 test $ac_count -gt 10 && break 5521 done 5522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5523esac 5524 5525 5526 $ac_path_GREP_found && break 3 5527 done 5528done 5529 5530done 5531IFS=$as_save_IFS 5532 5533 5534fi 5535 5536GREP="$ac_cv_path_GREP" 5537if test -z "$GREP"; then 5538 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5539echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5540 { (exit 1); exit 1; }; } 5541fi 5542 5543else 5544 ac_cv_path_GREP=$GREP 5545fi 5546 5547 5548fi 5549{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 5550echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 5551 GREP="$ac_cv_path_GREP" 5552 5553 5554{ echo "$as_me:$LINENO: checking for egrep" >&5 5555echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 5556if test "${ac_cv_path_EGREP+set}" = set; then 5557 echo $ECHO_N "(cached) $ECHO_C" >&6 5558else 5559 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5560 then ac_cv_path_EGREP="$GREP -E" 5561 else 5562 # Extract the first word of "egrep" to use in msg output 5563if test -z "$EGREP"; then 5564set dummy egrep; ac_prog_name=$2 5565if test "${ac_cv_path_EGREP+set}" = set; then 5566 echo $ECHO_N "(cached) $ECHO_C" >&6 5567else 5568 ac_path_EGREP_found=false 5569# Loop through the user's path and test for each of PROGNAME-LIST 5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5571for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5572do 5573 IFS=$as_save_IFS 5574 test -z "$as_dir" && as_dir=. 5575 for ac_prog in egrep; do 5576 for ac_exec_ext in '' $ac_executable_extensions; do 5577 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5578 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5579 # Check for GNU ac_path_EGREP and select it if it is found. 5580 # Check for GNU $ac_path_EGREP 5581case `"$ac_path_EGREP" --version 2>&1` in 5582*GNU*) 5583 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5584*) 5585 ac_count=0 5586 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5587 while : 5588 do 5589 cat "conftest.in" "conftest.in" >"conftest.tmp" 5590 mv "conftest.tmp" "conftest.in" 5591 cp "conftest.in" "conftest.nl" 5592 echo 'EGREP' >> "conftest.nl" 5593 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5594 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5595 ac_count=`expr $ac_count + 1` 5596 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5597 # Best one so far, save it but keep looking for a better one 5598 ac_cv_path_EGREP="$ac_path_EGREP" 5599 ac_path_EGREP_max=$ac_count 5600 fi 5601 # 10*(2^10) chars as input seems more than enough 5602 test $ac_count -gt 10 && break 5603 done 5604 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5605esac 5606 5607 5608 $ac_path_EGREP_found && break 3 5609 done 5610done 5611 5612done 5613IFS=$as_save_IFS 5614 5615 5616fi 5617 5618EGREP="$ac_cv_path_EGREP" 5619if test -z "$EGREP"; then 5620 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5621echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5622 { (exit 1); exit 1; }; } 5623fi 5624 5625else 5626 ac_cv_path_EGREP=$EGREP 5627fi 5628 5629 5630 fi 5631fi 5632{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 5633echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 5634 EGREP="$ac_cv_path_EGREP" 5635 5636 5637{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5638echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5639if test "${ac_cv_header_stdc+set}" = set; then 5640 echo $ECHO_N "(cached) $ECHO_C" >&6 5641else 5642 cat >conftest.$ac_ext <<_ACEOF 5643/* confdefs.h. */ 5644_ACEOF 5645cat confdefs.h >>conftest.$ac_ext 5646cat >>conftest.$ac_ext <<_ACEOF 5647/* end confdefs.h. */ 5648#include <stdlib.h> 5649#include <stdarg.h> 5650#include <string.h> 5651#include <float.h> 5652 5653int 5654main () 5655{ 5656 5657 ; 5658 return 0; 5659} 5660_ACEOF 5661rm -f conftest.$ac_objext 5662if { (ac_try="$ac_compile" 5663case "(($ac_try" in 5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5665 *) ac_try_echo=$ac_try;; 5666esac 5667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5668 (eval "$ac_compile") 2>conftest.er1 5669 ac_status=$? 5670 grep -v '^ *+' conftest.er1 >conftest.err 5671 rm -f conftest.er1 5672 cat conftest.err >&5 5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5674 (exit $ac_status); } && { 5675 test -z "$ac_c_werror_flag" || 5676 test ! -s conftest.err 5677 } && test -s conftest.$ac_objext; then 5678 ac_cv_header_stdc=yes 5679else 5680 echo "$as_me: failed program was:" >&5 5681sed 's/^/| /' conftest.$ac_ext >&5 5682 5683 ac_cv_header_stdc=no 5684fi 5685 5686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5687 5688if test $ac_cv_header_stdc = yes; then 5689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5690 cat >conftest.$ac_ext <<_ACEOF 5691/* confdefs.h. */ 5692_ACEOF 5693cat confdefs.h >>conftest.$ac_ext 5694cat >>conftest.$ac_ext <<_ACEOF 5695/* end confdefs.h. */ 5696#include <string.h> 5697 5698_ACEOF 5699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5700 $EGREP "memchr" >/dev/null 2>&1; then 5701 : 5702else 5703 ac_cv_header_stdc=no 5704fi 5705rm -f conftest* 5706 5707fi 5708 5709if test $ac_cv_header_stdc = yes; then 5710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5711 cat >conftest.$ac_ext <<_ACEOF 5712/* confdefs.h. */ 5713_ACEOF 5714cat confdefs.h >>conftest.$ac_ext 5715cat >>conftest.$ac_ext <<_ACEOF 5716/* end confdefs.h. */ 5717#include <stdlib.h> 5718 5719_ACEOF 5720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5721 $EGREP "free" >/dev/null 2>&1; then 5722 : 5723else 5724 ac_cv_header_stdc=no 5725fi 5726rm -f conftest* 5727 5728fi 5729 5730if test $ac_cv_header_stdc = yes; then 5731 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5732 if test "$cross_compiling" = yes; then 5733 : 5734else 5735 cat >conftest.$ac_ext <<_ACEOF 5736/* confdefs.h. */ 5737_ACEOF 5738cat confdefs.h >>conftest.$ac_ext 5739cat >>conftest.$ac_ext <<_ACEOF 5740/* end confdefs.h. */ 5741#include <ctype.h> 5742#include <stdlib.h> 5743#if ((' ' & 0x0FF) == 0x020) 5744# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5745# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5746#else 5747# define ISLOWER(c) \ 5748 (('a' <= (c) && (c) <= 'i') \ 5749 || ('j' <= (c) && (c) <= 'r') \ 5750 || ('s' <= (c) && (c) <= 'z')) 5751# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5752#endif 5753 5754#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5755int 5756main () 5757{ 5758 int i; 5759 for (i = 0; i < 256; i++) 5760 if (XOR (islower (i), ISLOWER (i)) 5761 || toupper (i) != TOUPPER (i)) 5762 return 2; 5763 return 0; 5764} 5765_ACEOF 5766rm -f conftest$ac_exeext 5767if { (ac_try="$ac_link" 5768case "(($ac_try" in 5769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5770 *) ac_try_echo=$ac_try;; 5771esac 5772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5773 (eval "$ac_link") 2>&5 5774 ac_status=$? 5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5777 { (case "(($ac_try" in 5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5779 *) ac_try_echo=$ac_try;; 5780esac 5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5782 (eval "$ac_try") 2>&5 5783 ac_status=$? 5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5785 (exit $ac_status); }; }; then 5786 : 5787else 5788 echo "$as_me: program exited with status $ac_status" >&5 5789echo "$as_me: failed program was:" >&5 5790sed 's/^/| /' conftest.$ac_ext >&5 5791 5792( exit $ac_status ) 5793ac_cv_header_stdc=no 5794fi 5795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5796fi 5797 5798 5799fi 5800fi 5801{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5802echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5803if test $ac_cv_header_stdc = yes; then 5804 5805cat >>confdefs.h <<\_ACEOF 5806#define STDC_HEADERS 1 5807_ACEOF 5808 5809fi 5810 5811# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5822 inttypes.h stdint.h unistd.h 5823do 5824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5825{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5828 echo $ECHO_N "(cached) $ECHO_C" >&6 5829else 5830 cat >conftest.$ac_ext <<_ACEOF 5831/* confdefs.h. */ 5832_ACEOF 5833cat confdefs.h >>conftest.$ac_ext 5834cat >>conftest.$ac_ext <<_ACEOF 5835/* end confdefs.h. */ 5836$ac_includes_default 5837 5838#include <$ac_header> 5839_ACEOF 5840rm -f conftest.$ac_objext 5841if { (ac_try="$ac_compile" 5842case "(($ac_try" in 5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5844 *) ac_try_echo=$ac_try;; 5845esac 5846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5847 (eval "$ac_compile") 2>conftest.er1 5848 ac_status=$? 5849 grep -v '^ *+' conftest.er1 >conftest.err 5850 rm -f conftest.er1 5851 cat conftest.err >&5 5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5853 (exit $ac_status); } && { 5854 test -z "$ac_c_werror_flag" || 5855 test ! -s conftest.err 5856 } && test -s conftest.$ac_objext; then 5857 eval "$as_ac_Header=yes" 5858else 5859 echo "$as_me: failed program was:" >&5 5860sed 's/^/| /' conftest.$ac_ext >&5 5861 5862 eval "$as_ac_Header=no" 5863fi 5864 5865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5866fi 5867ac_res=`eval echo '${'$as_ac_Header'}'` 5868 { echo "$as_me:$LINENO: result: $ac_res" >&5 5869echo "${ECHO_T}$ac_res" >&6; } 5870if test `eval echo '${'$as_ac_Header'}'` = yes; then 5871 cat >>confdefs.h <<_ACEOF 5872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5873_ACEOF 5874 5875fi 5876 5877done 5878 5879 5880{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 5881echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 5882if test "${ac_cv_c_bigendian+set}" = set; then 5883 echo $ECHO_N "(cached) $ECHO_C" >&6 5884else 5885 # See if sys/param.h defines the BYTE_ORDER macro. 5886cat >conftest.$ac_ext <<_ACEOF 5887/* confdefs.h. */ 5888_ACEOF 5889cat confdefs.h >>conftest.$ac_ext 5890cat >>conftest.$ac_ext <<_ACEOF 5891/* end confdefs.h. */ 5892#include <sys/types.h> 5893#include <sys/param.h> 5894 5895int 5896main () 5897{ 5898#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 5899 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 5900 bogus endian macros 5901#endif 5902 5903 ; 5904 return 0; 5905} 5906_ACEOF 5907rm -f conftest.$ac_objext 5908if { (ac_try="$ac_compile" 5909case "(($ac_try" in 5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5911 *) ac_try_echo=$ac_try;; 5912esac 5913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5914 (eval "$ac_compile") 2>conftest.er1 5915 ac_status=$? 5916 grep -v '^ *+' conftest.er1 >conftest.err 5917 rm -f conftest.er1 5918 cat conftest.err >&5 5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5920 (exit $ac_status); } && { 5921 test -z "$ac_c_werror_flag" || 5922 test ! -s conftest.err 5923 } && test -s conftest.$ac_objext; then 5924 # It does; now see whether it defined to BIG_ENDIAN or not. 5925cat >conftest.$ac_ext <<_ACEOF 5926/* confdefs.h. */ 5927_ACEOF 5928cat confdefs.h >>conftest.$ac_ext 5929cat >>conftest.$ac_ext <<_ACEOF 5930/* end confdefs.h. */ 5931#include <sys/types.h> 5932#include <sys/param.h> 5933 5934int 5935main () 5936{ 5937#if BYTE_ORDER != BIG_ENDIAN 5938 not big endian 5939#endif 5940 5941 ; 5942 return 0; 5943} 5944_ACEOF 5945rm -f conftest.$ac_objext 5946if { (ac_try="$ac_compile" 5947case "(($ac_try" in 5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5949 *) ac_try_echo=$ac_try;; 5950esac 5951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5952 (eval "$ac_compile") 2>conftest.er1 5953 ac_status=$? 5954 grep -v '^ *+' conftest.er1 >conftest.err 5955 rm -f conftest.er1 5956 cat conftest.err >&5 5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5958 (exit $ac_status); } && { 5959 test -z "$ac_c_werror_flag" || 5960 test ! -s conftest.err 5961 } && test -s conftest.$ac_objext; then 5962 ac_cv_c_bigendian=yes 5963else 5964 echo "$as_me: failed program was:" >&5 5965sed 's/^/| /' conftest.$ac_ext >&5 5966 5967 ac_cv_c_bigendian=no 5968fi 5969 5970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5971else 5972 echo "$as_me: failed program was:" >&5 5973sed 's/^/| /' conftest.$ac_ext >&5 5974 5975 # It does not; compile a test program. 5976if test "$cross_compiling" = yes; then 5977 # try to guess the endianness by grepping values into an object file 5978 ac_cv_c_bigendian=unknown 5979 cat >conftest.$ac_ext <<_ACEOF 5980/* confdefs.h. */ 5981_ACEOF 5982cat confdefs.h >>conftest.$ac_ext 5983cat >>conftest.$ac_ext <<_ACEOF 5984/* end confdefs.h. */ 5985short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5986short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5987void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 5988short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5989short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5990void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 5991int 5992main () 5993{ 5994 _ascii (); _ebcdic (); 5995 ; 5996 return 0; 5997} 5998_ACEOF 5999rm -f conftest.$ac_objext 6000if { (ac_try="$ac_compile" 6001case "(($ac_try" in 6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6003 *) ac_try_echo=$ac_try;; 6004esac 6005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6006 (eval "$ac_compile") 2>conftest.er1 6007 ac_status=$? 6008 grep -v '^ *+' conftest.er1 >conftest.err 6009 rm -f conftest.er1 6010 cat conftest.err >&5 6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6012 (exit $ac_status); } && { 6013 test -z "$ac_c_werror_flag" || 6014 test ! -s conftest.err 6015 } && test -s conftest.$ac_objext; then 6016 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 6017 ac_cv_c_bigendian=yes 6018fi 6019if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6020 if test "$ac_cv_c_bigendian" = unknown; then 6021 ac_cv_c_bigendian=no 6022 else 6023 # finding both strings is unlikely to happen, but who knows? 6024 ac_cv_c_bigendian=unknown 6025 fi 6026fi 6027else 6028 echo "$as_me: failed program was:" >&5 6029sed 's/^/| /' conftest.$ac_ext >&5 6030 6031 6032fi 6033 6034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6035else 6036 cat >conftest.$ac_ext <<_ACEOF 6037/* confdefs.h. */ 6038_ACEOF 6039cat confdefs.h >>conftest.$ac_ext 6040cat >>conftest.$ac_ext <<_ACEOF 6041/* end confdefs.h. */ 6042$ac_includes_default 6043int 6044main () 6045{ 6046 6047 /* Are we little or big endian? From Harbison&Steele. */ 6048 union 6049 { 6050 long int l; 6051 char c[sizeof (long int)]; 6052 } u; 6053 u.l = 1; 6054 return u.c[sizeof (long int) - 1] == 1; 6055 6056 ; 6057 return 0; 6058} 6059_ACEOF 6060rm -f conftest$ac_exeext 6061if { (ac_try="$ac_link" 6062case "(($ac_try" in 6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6064 *) ac_try_echo=$ac_try;; 6065esac 6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6067 (eval "$ac_link") 2>&5 6068 ac_status=$? 6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6071 { (case "(($ac_try" in 6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6073 *) ac_try_echo=$ac_try;; 6074esac 6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6076 (eval "$ac_try") 2>&5 6077 ac_status=$? 6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6079 (exit $ac_status); }; }; then 6080 ac_cv_c_bigendian=no 6081else 6082 echo "$as_me: program exited with status $ac_status" >&5 6083echo "$as_me: failed program was:" >&5 6084sed 's/^/| /' conftest.$ac_ext >&5 6085 6086( exit $ac_status ) 6087ac_cv_c_bigendian=yes 6088fi 6089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6090fi 6091 6092 6093fi 6094 6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6096fi 6097{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 6098echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 6099case $ac_cv_c_bigendian in 6100 yes) 6101 6102cat >>confdefs.h <<\_ACEOF 6103#define WORDS_BIGENDIAN 1 6104_ACEOF 6105 ;; 6106 no) 6107 ;; 6108 *) 6109 { { echo "$as_me:$LINENO: error: unknown endianness 6110presetting ac_cv_c_bigendian=no (or yes) will help" >&5 6111echo "$as_me: error: unknown endianness 6112presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 6113 { (exit 1); exit 1; }; } ;; 6114esac 6115 6116{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6117echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 6118if test "${ac_cv_header_stdc+set}" = set; then 6119 echo $ECHO_N "(cached) $ECHO_C" >&6 6120else 6121 cat >conftest.$ac_ext <<_ACEOF 6122/* confdefs.h. */ 6123_ACEOF 6124cat confdefs.h >>conftest.$ac_ext 6125cat >>conftest.$ac_ext <<_ACEOF 6126/* end confdefs.h. */ 6127#include <stdlib.h> 6128#include <stdarg.h> 6129#include <string.h> 6130#include <float.h> 6131 6132int 6133main () 6134{ 6135 6136 ; 6137 return 0; 6138} 6139_ACEOF 6140rm -f conftest.$ac_objext 6141if { (ac_try="$ac_compile" 6142case "(($ac_try" in 6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6144 *) ac_try_echo=$ac_try;; 6145esac 6146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6147 (eval "$ac_compile") 2>conftest.er1 6148 ac_status=$? 6149 grep -v '^ *+' conftest.er1 >conftest.err 6150 rm -f conftest.er1 6151 cat conftest.err >&5 6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6153 (exit $ac_status); } && { 6154 test -z "$ac_c_werror_flag" || 6155 test ! -s conftest.err 6156 } && test -s conftest.$ac_objext; then 6157 ac_cv_header_stdc=yes 6158else 6159 echo "$as_me: failed program was:" >&5 6160sed 's/^/| /' conftest.$ac_ext >&5 6161 6162 ac_cv_header_stdc=no 6163fi 6164 6165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6166 6167if test $ac_cv_header_stdc = yes; then 6168 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6169 cat >conftest.$ac_ext <<_ACEOF 6170/* confdefs.h. */ 6171_ACEOF 6172cat confdefs.h >>conftest.$ac_ext 6173cat >>conftest.$ac_ext <<_ACEOF 6174/* end confdefs.h. */ 6175#include <string.h> 6176 6177_ACEOF 6178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6179 $EGREP "memchr" >/dev/null 2>&1; then 6180 : 6181else 6182 ac_cv_header_stdc=no 6183fi 6184rm -f conftest* 6185 6186fi 6187 6188if test $ac_cv_header_stdc = yes; then 6189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6190 cat >conftest.$ac_ext <<_ACEOF 6191/* confdefs.h. */ 6192_ACEOF 6193cat confdefs.h >>conftest.$ac_ext 6194cat >>conftest.$ac_ext <<_ACEOF 6195/* end confdefs.h. */ 6196#include <stdlib.h> 6197 6198_ACEOF 6199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6200 $EGREP "free" >/dev/null 2>&1; then 6201 : 6202else 6203 ac_cv_header_stdc=no 6204fi 6205rm -f conftest* 6206 6207fi 6208 6209if test $ac_cv_header_stdc = yes; then 6210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6211 if test "$cross_compiling" = yes; then 6212 : 6213else 6214 cat >conftest.$ac_ext <<_ACEOF 6215/* confdefs.h. */ 6216_ACEOF 6217cat confdefs.h >>conftest.$ac_ext 6218cat >>conftest.$ac_ext <<_ACEOF 6219/* end confdefs.h. */ 6220#include <ctype.h> 6221#include <stdlib.h> 6222#if ((' ' & 0x0FF) == 0x020) 6223# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6224# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6225#else 6226# define ISLOWER(c) \ 6227 (('a' <= (c) && (c) <= 'i') \ 6228 || ('j' <= (c) && (c) <= 'r') \ 6229 || ('s' <= (c) && (c) <= 'z')) 6230# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6231#endif 6232 6233#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6234int 6235main () 6236{ 6237 int i; 6238 for (i = 0; i < 256; i++) 6239 if (XOR (islower (i), ISLOWER (i)) 6240 || toupper (i) != TOUPPER (i)) 6241 return 2; 6242 return 0; 6243} 6244_ACEOF 6245rm -f conftest$ac_exeext 6246if { (ac_try="$ac_link" 6247case "(($ac_try" in 6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6249 *) ac_try_echo=$ac_try;; 6250esac 6251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6252 (eval "$ac_link") 2>&5 6253 ac_status=$? 6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6256 { (case "(($ac_try" in 6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6258 *) ac_try_echo=$ac_try;; 6259esac 6260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6261 (eval "$ac_try") 2>&5 6262 ac_status=$? 6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6264 (exit $ac_status); }; }; then 6265 : 6266else 6267 echo "$as_me: program exited with status $ac_status" >&5 6268echo "$as_me: failed program was:" >&5 6269sed 's/^/| /' conftest.$ac_ext >&5 6270 6271( exit $ac_status ) 6272ac_cv_header_stdc=no 6273fi 6274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6275fi 6276 6277 6278fi 6279fi 6280{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6281echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 6282if test $ac_cv_header_stdc = yes; then 6283 6284cat >>confdefs.h <<\_ACEOF 6285#define STDC_HEADERS 1 6286_ACEOF 6287 6288fi 6289 6290 6291{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 6292echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 6293if test "${ac_cv_c_const+set}" = set; then 6294 echo $ECHO_N "(cached) $ECHO_C" >&6 6295else 6296 cat >conftest.$ac_ext <<_ACEOF 6297/* confdefs.h. */ 6298_ACEOF 6299cat confdefs.h >>conftest.$ac_ext 6300cat >>conftest.$ac_ext <<_ACEOF 6301/* end confdefs.h. */ 6302 6303int 6304main () 6305{ 6306/* FIXME: Include the comments suggested by Paul. */ 6307#ifndef __cplusplus 6308 /* Ultrix mips cc rejects this. */ 6309 typedef int charset[2]; 6310 const charset cs; 6311 /* SunOS 4.1.1 cc rejects this. */ 6312 char const *const *pcpcc; 6313 char **ppc; 6314 /* NEC SVR4.0.2 mips cc rejects this. */ 6315 struct point {int x, y;}; 6316 static struct point const zero = {0,0}; 6317 /* AIX XL C 1.02.0.0 rejects this. 6318 It does not let you subtract one const X* pointer from another in 6319 an arm of an if-expression whose if-part is not a constant 6320 expression */ 6321 const char *g = "string"; 6322 pcpcc = &g + (g ? g-g : 0); 6323 /* HPUX 7.0 cc rejects these. */ 6324 ++pcpcc; 6325 ppc = (char**) pcpcc; 6326 pcpcc = (char const *const *) ppc; 6327 { /* SCO 3.2v4 cc rejects this. */ 6328 char *t; 6329 char const *s = 0 ? (char *) 0 : (char const *) 0; 6330 6331 *t++ = 0; 6332 if (s) return 0; 6333 } 6334 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6335 int x[] = {25, 17}; 6336 const int *foo = &x[0]; 6337 ++foo; 6338 } 6339 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6340 typedef const int *iptr; 6341 iptr p = 0; 6342 ++p; 6343 } 6344 { /* AIX XL C 1.02.0.0 rejects this saying 6345 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6346 struct s { int j; const int *ap[3]; }; 6347 struct s *b; b->j = 5; 6348 } 6349 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6350 const int foo = 10; 6351 if (!foo) return 0; 6352 } 6353 return !cs[0] && !zero.x; 6354#endif 6355 6356 ; 6357 return 0; 6358} 6359_ACEOF 6360rm -f conftest.$ac_objext 6361if { (ac_try="$ac_compile" 6362case "(($ac_try" in 6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6364 *) ac_try_echo=$ac_try;; 6365esac 6366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6367 (eval "$ac_compile") 2>conftest.er1 6368 ac_status=$? 6369 grep -v '^ *+' conftest.er1 >conftest.err 6370 rm -f conftest.er1 6371 cat conftest.err >&5 6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6373 (exit $ac_status); } && { 6374 test -z "$ac_c_werror_flag" || 6375 test ! -s conftest.err 6376 } && test -s conftest.$ac_objext; then 6377 ac_cv_c_const=yes 6378else 6379 echo "$as_me: failed program was:" >&5 6380sed 's/^/| /' conftest.$ac_ext >&5 6381 6382 ac_cv_c_const=no 6383fi 6384 6385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6386fi 6387{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 6388echo "${ECHO_T}$ac_cv_c_const" >&6; } 6389if test $ac_cv_c_const = no; then 6390 6391cat >>confdefs.h <<\_ACEOF 6392#define const 6393_ACEOF 6394 6395fi 6396 6397{ echo "$as_me:$LINENO: checking for size_t" >&5 6398echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 6399if test "${ac_cv_type_size_t+set}" = set; then 6400 echo $ECHO_N "(cached) $ECHO_C" >&6 6401else 6402 cat >conftest.$ac_ext <<_ACEOF 6403/* confdefs.h. */ 6404_ACEOF 6405cat confdefs.h >>conftest.$ac_ext 6406cat >>conftest.$ac_ext <<_ACEOF 6407/* end confdefs.h. */ 6408$ac_includes_default 6409typedef size_t ac__type_new_; 6410int 6411main () 6412{ 6413if ((ac__type_new_ *) 0) 6414 return 0; 6415if (sizeof (ac__type_new_)) 6416 return 0; 6417 ; 6418 return 0; 6419} 6420_ACEOF 6421rm -f conftest.$ac_objext 6422if { (ac_try="$ac_compile" 6423case "(($ac_try" in 6424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6425 *) ac_try_echo=$ac_try;; 6426esac 6427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6428 (eval "$ac_compile") 2>conftest.er1 6429 ac_status=$? 6430 grep -v '^ *+' conftest.er1 >conftest.err 6431 rm -f conftest.er1 6432 cat conftest.err >&5 6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6434 (exit $ac_status); } && { 6435 test -z "$ac_c_werror_flag" || 6436 test ! -s conftest.err 6437 } && test -s conftest.$ac_objext; then 6438 ac_cv_type_size_t=yes 6439else 6440 echo "$as_me: failed program was:" >&5 6441sed 's/^/| /' conftest.$ac_ext >&5 6442 6443 ac_cv_type_size_t=no 6444fi 6445 6446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6447fi 6448{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 6449echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 6450if test $ac_cv_type_size_t = yes; then 6451 : 6452else 6453 6454cat >>confdefs.h <<_ACEOF 6455#define size_t unsigned int 6456_ACEOF 6457 6458fi 6459 6460 6461 6462for ac_func in memmove bcopy 6463do 6464as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6465{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6466echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6467if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6468 echo $ECHO_N "(cached) $ECHO_C" >&6 6469else 6470 cat >conftest.$ac_ext <<_ACEOF 6471/* confdefs.h. */ 6472_ACEOF 6473cat confdefs.h >>conftest.$ac_ext 6474cat >>conftest.$ac_ext <<_ACEOF 6475/* end confdefs.h. */ 6476/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6477 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6478#define $ac_func innocuous_$ac_func 6479 6480/* System header to define __stub macros and hopefully few prototypes, 6481 which can conflict with char $ac_func (); below. 6482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6483 <limits.h> exists even on freestanding compilers. */ 6484 6485#ifdef __STDC__ 6486# include <limits.h> 6487#else 6488# include <assert.h> 6489#endif 6490 6491#undef $ac_func 6492 6493/* Override any GCC internal prototype to avoid an error. 6494 Use char because int might match the return type of a GCC 6495 builtin and then its argument prototype would still apply. */ 6496#ifdef __cplusplus 6497extern "C" 6498#endif 6499char $ac_func (); 6500/* The GNU C library defines this for functions which it implements 6501 to always fail with ENOSYS. Some functions are actually named 6502 something starting with __ and the normal name is an alias. */ 6503#if defined __stub_$ac_func || defined __stub___$ac_func 6504choke me 6505#endif 6506 6507int 6508main () 6509{ 6510return $ac_func (); 6511 ; 6512 return 0; 6513} 6514_ACEOF 6515rm -f conftest.$ac_objext conftest$ac_exeext 6516if { (ac_try="$ac_link" 6517case "(($ac_try" in 6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6519 *) ac_try_echo=$ac_try;; 6520esac 6521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6522 (eval "$ac_link") 2>conftest.er1 6523 ac_status=$? 6524 grep -v '^ *+' conftest.er1 >conftest.err 6525 rm -f conftest.er1 6526 cat conftest.err >&5 6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6528 (exit $ac_status); } && { 6529 test -z "$ac_c_werror_flag" || 6530 test ! -s conftest.err 6531 } && test -s conftest$ac_exeext && 6532 $as_test_x conftest$ac_exeext; then 6533 eval "$as_ac_var=yes" 6534else 6535 echo "$as_me: failed program was:" >&5 6536sed 's/^/| /' conftest.$ac_ext >&5 6537 6538 eval "$as_ac_var=no" 6539fi 6540 6541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6542 conftest$ac_exeext conftest.$ac_ext 6543fi 6544ac_res=`eval echo '${'$as_ac_var'}'` 6545 { echo "$as_me:$LINENO: result: $ac_res" >&5 6546echo "${ECHO_T}$ac_res" >&6; } 6547if test `eval echo '${'$as_ac_var'}'` = yes; then 6548 cat >>confdefs.h <<_ACEOF 6549#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6550_ACEOF 6551 6552fi 6553done 6554 6555 6556{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 6557echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 6558if test "${ac_cv_type_signal+set}" = set; then 6559 echo $ECHO_N "(cached) $ECHO_C" >&6 6560else 6561 cat >conftest.$ac_ext <<_ACEOF 6562/* confdefs.h. */ 6563_ACEOF 6564cat confdefs.h >>conftest.$ac_ext 6565cat >>conftest.$ac_ext <<_ACEOF 6566/* end confdefs.h. */ 6567#include <sys/types.h> 6568#include <signal.h> 6569 6570int 6571main () 6572{ 6573return *(signal (0, 0)) (0) == 1; 6574 ; 6575 return 0; 6576} 6577_ACEOF 6578rm -f conftest.$ac_objext 6579if { (ac_try="$ac_compile" 6580case "(($ac_try" in 6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6582 *) ac_try_echo=$ac_try;; 6583esac 6584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6585 (eval "$ac_compile") 2>conftest.er1 6586 ac_status=$? 6587 grep -v '^ *+' conftest.er1 >conftest.err 6588 rm -f conftest.er1 6589 cat conftest.err >&5 6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6591 (exit $ac_status); } && { 6592 test -z "$ac_c_werror_flag" || 6593 test ! -s conftest.err 6594 } && test -s conftest.$ac_objext; then 6595 ac_cv_type_signal=int 6596else 6597 echo "$as_me: failed program was:" >&5 6598sed 's/^/| /' conftest.$ac_ext >&5 6599 6600 ac_cv_type_signal=void 6601fi 6602 6603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6604fi 6605{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 6606echo "${ECHO_T}$ac_cv_type_signal" >&6; } 6607 6608cat >>confdefs.h <<_ACEOF 6609#define RETSIGTYPE $ac_cv_type_signal 6610_ACEOF 6611 6612 6613 6614 6615 6616 6617 6618 tmp_CFLAGS=$CFLAGS 6619 CFLAGS="$CFLAGS -fvisibility=hidden" 6620 6621 { echo "$as_me:$LINENO: checking if compiler supports __attribute__((visibility(\"default\")))" >&5 6622echo $ECHO_N "checking if compiler supports __attribute__((visibility(\"default\")))... $ECHO_C" >&6; } 6623if test "${cc_cv_attribute_visibility+set}" = set; then 6624 echo $ECHO_N "(cached) $ECHO_C" >&6 6625else 6626 cat >conftest.$ac_ext <<_ACEOF 6627 6628 void __attribute__((visibility("default"))) visibility_function() { } 6629 6630_ACEOF 6631rm -f conftest.$ac_objext 6632if { (ac_try="$ac_compile" 6633case "(($ac_try" in 6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6635 *) ac_try_echo=$ac_try;; 6636esac 6637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6638 (eval "$ac_compile") 2>conftest.er1 6639 ac_status=$? 6640 grep -v '^ *+' conftest.er1 >conftest.err 6641 rm -f conftest.er1 6642 cat conftest.err >&5 6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6644 (exit $ac_status); } && { 6645 test -z "$ac_c_werror_flag" || 6646 test ! -s conftest.err 6647 } && test -s conftest.$ac_objext; then 6648 cc_cv_attribute_visibility=yes 6649else 6650 echo "$as_me: failed program was:" >&5 6651sed 's/^/| /' conftest.$ac_ext >&5 6652 6653 cc_cv_attribute_visibility=no 6654fi 6655 6656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6657 6658fi 6659{ echo "$as_me:$LINENO: result: $cc_cv_attribute_visibility" >&5 6660echo "${ECHO_T}$cc_cv_attribute_visibility" >&6; } 6661 6662 CFLAGS=$tmp_CFLAGS 6663 6664 if test "x$cc_cv_attribute_visibility" = "xyes"; then 6665 6666cat >>confdefs.h <<\_ACEOF 6667#define HAVE_ATTRIBUTE_VISIBILITY 1 6668_ACEOF 6669 6670 CFLAGS="$CFLAGS -fvisibility=hidden" 6671 6672 else 6673 true 6674 6675 fi 6676 6677 6678epdata=`ls -1 $srcdir/model/ep | egrep -v '(Makefile|CVS)'` 6679epdata=`echo $epdata` 6680 6681hmmdata=`ls -1 $srcdir/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd | egrep -v '(Makefile|CVS)'` 6682hmmdata=`echo $hmmdata` 6683 6684tidigitsdata=`(cd $srcdir/model/hmm/tidigits && find . -type f -print | egrep -v '(Makefile|CVS|\.svn)')` 6685tidigitsdata=`echo $tidigitsdata` 6686 6687lmdata=`ls -1 $srcdir/model/lm/an4 | egrep -v '(Makefile|CVS)' | sed 's/\.in//g'` 6688lmdata=`echo $lmdata` 6689 6690docdata=`ls -1 $srcdir/doc | egrep -v '(Makefile|CVS)'` 6691docdata=`echo $docdata` 6692 6693 6694# Check whether --with-sphinxbase was given. 6695if test "${with_sphinxbase+set}" = set; then 6696 withval=$with_sphinxbase; sphinxbase=$withval 6697fi 6698 6699 6700 6701# Check whether --with-sphinxbase-build was given. 6702if test "${with_sphinxbase_build+set}" = set; then 6703 withval=$with_sphinxbase_build; sphinxbasebuild=$withval 6704fi 6705 6706 6707if test "${ac_cv_header_sphinxbase_sphinx_config_h+set}" = set; then 6708 { echo "$as_me:$LINENO: checking for sphinxbase/sphinx_config.h" >&5 6709echo $ECHO_N "checking for sphinxbase/sphinx_config.h... $ECHO_C" >&6; } 6710if test "${ac_cv_header_sphinxbase_sphinx_config_h+set}" = set; then 6711 echo $ECHO_N "(cached) $ECHO_C" >&6 6712fi 6713{ echo "$as_me:$LINENO: result: $ac_cv_header_sphinxbase_sphinx_config_h" >&5 6714echo "${ECHO_T}$ac_cv_header_sphinxbase_sphinx_config_h" >&6; } 6715else 6716 # Is the header compilable? 6717{ echo "$as_me:$LINENO: checking sphinxbase/sphinx_config.h usability" >&5 6718echo $ECHO_N "checking sphinxbase/sphinx_config.h usability... $ECHO_C" >&6; } 6719cat >conftest.$ac_ext <<_ACEOF 6720/* confdefs.h. */ 6721_ACEOF 6722cat confdefs.h >>conftest.$ac_ext 6723cat >>conftest.$ac_ext <<_ACEOF 6724/* end confdefs.h. */ 6725$ac_includes_default 6726#include <sphinxbase/sphinx_config.h> 6727_ACEOF 6728rm -f conftest.$ac_objext 6729if { (ac_try="$ac_compile" 6730case "(($ac_try" in 6731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6732 *) ac_try_echo=$ac_try;; 6733esac 6734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6735 (eval "$ac_compile") 2>conftest.er1 6736 ac_status=$? 6737 grep -v '^ *+' conftest.er1 >conftest.err 6738 rm -f conftest.er1 6739 cat conftest.err >&5 6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6741 (exit $ac_status); } && { 6742 test -z "$ac_c_werror_flag" || 6743 test ! -s conftest.err 6744 } && test -s conftest.$ac_objext; then 6745 ac_header_compiler=yes 6746else 6747 echo "$as_me: failed program was:" >&5 6748sed 's/^/| /' conftest.$ac_ext >&5 6749 6750 ac_header_compiler=no 6751fi 6752 6753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6754{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6755echo "${ECHO_T}$ac_header_compiler" >&6; } 6756 6757# Is the header present? 6758{ echo "$as_me:$LINENO: checking sphinxbase/sphinx_config.h presence" >&5 6759echo $ECHO_N "checking sphinxbase/sphinx_config.h presence... $ECHO_C" >&6; } 6760cat >conftest.$ac_ext <<_ACEOF 6761/* confdefs.h. */ 6762_ACEOF 6763cat confdefs.h >>conftest.$ac_ext 6764cat >>conftest.$ac_ext <<_ACEOF 6765/* end confdefs.h. */ 6766#include <sphinxbase/sphinx_config.h> 6767_ACEOF 6768if { (ac_try="$ac_cpp conftest.$ac_ext" 6769case "(($ac_try" in 6770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6771 *) ac_try_echo=$ac_try;; 6772esac 6773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6775 ac_status=$? 6776 grep -v '^ *+' conftest.er1 >conftest.err 6777 rm -f conftest.er1 6778 cat conftest.err >&5 6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6780 (exit $ac_status); } >/dev/null && { 6781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6782 test ! -s conftest.err 6783 }; then 6784 ac_header_preproc=yes 6785else 6786 echo "$as_me: failed program was:" >&5 6787sed 's/^/| /' conftest.$ac_ext >&5 6788 6789 ac_header_preproc=no 6790fi 6791 6792rm -f conftest.err conftest.$ac_ext 6793{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6794echo "${ECHO_T}$ac_header_preproc" >&6; } 6795 6796# So? What about this header? 6797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6798 yes:no: ) 6799 { echo "$as_me:$LINENO: WARNING: sphinxbase/sphinx_config.h: accepted by the compiler, rejected by the preprocessor!" >&5 6800echo "$as_me: WARNING: sphinxbase/sphinx_config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6801 { echo "$as_me:$LINENO: WARNING: sphinxbase/sphinx_config.h: proceeding with the compiler's result" >&5 6802echo "$as_me: WARNING: sphinxbase/sphinx_config.h: proceeding with the compiler's result" >&2;} 6803 ac_header_preproc=yes 6804 ;; 6805 no:yes:* ) 6806 { echo "$as_me:$LINENO: WARNING: sphinxbase/sphinx_config.h: present but cannot be compiled" >&5 6807echo "$as_me: WARNING: sphinxbase/sphinx_config.h: present but cannot be compiled" >&2;} 6808 { echo "$as_me:$LINENO: WARNING: sphinxbase/sphinx_config.h: check for missing prerequisite headers?" >&5 6809echo "$as_me: WARNING: sphinxbase/sphinx_config.h: check for missing prerequisite headers?" >&2;} 6810 { echo "$as_me:$LINENO: WARNING: sphinxbase/sphinx_config.h: see the Autoconf documentation" >&5 6811echo "$as_me: WARNING: sphinxbase/sphinx_config.h: see the Autoconf documentation" >&2;} 6812 { echo "$as_me:$LINENO: WARNING: sphinxbase/sphinx_config.h: section \"Present But Cannot Be Compiled\"" >&5 6813echo "$as_me: WARNING: sphinxbase/sphinx_config.h: section \"Present But Cannot Be Compiled\"" >&2;} 6814 { echo "$as_me:$LINENO: WARNING: sphinxbase/sphinx_config.h: proceeding with the preprocessor's result" >&5 6815echo "$as_me: WARNING: sphinxbase/sphinx_config.h: proceeding with the preprocessor's result" >&2;} 6816 { echo "$as_me:$LINENO: WARNING: sphinxbase/sphinx_config.h: in the future, the compiler will take precedence" >&5 6817echo "$as_me: WARNING: sphinxbase/sphinx_config.h: in the future, the compiler will take precedence" >&2;} 6818 6819 ;; 6820esac 6821{ echo "$as_me:$LINENO: checking for sphinxbase/sphinx_config.h" >&5 6822echo $ECHO_N "checking for sphinxbase/sphinx_config.h... $ECHO_C" >&6; } 6823if test "${ac_cv_header_sphinxbase_sphinx_config_h+set}" = set; then 6824 echo $ECHO_N "(cached) $ECHO_C" >&6 6825else 6826 ac_cv_header_sphinxbase_sphinx_config_h=$ac_header_preproc 6827fi 6828{ echo "$as_me:$LINENO: result: $ac_cv_header_sphinxbase_sphinx_config_h" >&5 6829echo "${ECHO_T}$ac_cv_header_sphinxbase_sphinx_config_h" >&6; } 6830 6831fi 6832if test $ac_cv_header_sphinxbase_sphinx_config_h = yes; then 6833 CPPFLAGS="-I/usr/include/sphinxbase -I/usr/local/include/sphinxbase" 6834else 6835 6836if test x$sphinxbase = x; then 6837 # Look for sphinxbase in the parent directory 6838 for sb in ../sphinxbase*; do 6839 { echo "$as_me:$LINENO: checking for sphinxbase in $sb" >&5 6840echo $ECHO_N "checking for sphinxbase in $sb... $ECHO_C" >&6; } 6841 if test -f "$sb/include/prim_type.h"; then 6842 sphinxbase="`pwd`/$sb" 6843 { echo "$as_me:$LINENO: result: yes" >&5 6844echo "${ECHO_T}yes" >&6; } 6845 else 6846 { echo "$as_me:$LINENO: result: no" >&5 6847echo "${ECHO_T}no" >&6; } 6848 fi 6849 done 6850fi 6851 6852fi 6853 6854 6855 6856 6857: ${sphinxbasebuild=$sphinxbase} 6858if test x$sphinxbase != x && test x$cross_compiling = xyes; then 6859 CPPFLAGS="-I$sphinxbase/include -I$sphinxbasebuild/include $CPPFLAGS" 6860 LDFLAGS="$LDFLAGS -L$sphinxbasebuild/src/libsphinxfe -L$sphinxbasebuild/src/libsphinxad \ 6861 -L$sphinxbasebuild/src/libsphinxbase" 6862fi 6863if test x$sphinxbase != x && test x$cross_compiling != xyes; then 6864 as_ac_File=`echo "ac_cv_file_$sphinxbase/include/prim_type.h" | $as_tr_sh` 6865{ echo "$as_me:$LINENO: checking for $sphinxbase/include/prim_type.h" >&5 6866echo $ECHO_N "checking for $sphinxbase/include/prim_type.h... $ECHO_C" >&6; } 6867if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 6868 echo $ECHO_N "(cached) $ECHO_C" >&6 6869else 6870 test "$cross_compiling" = yes && 6871 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 6872echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 6873 { (exit 1); exit 1; }; } 6874if test -r "$sphinxbase/include/prim_type.h"; then 6875 eval "$as_ac_File=yes" 6876else 6877 eval "$as_ac_File=no" 6878fi 6879fi 6880ac_res=`eval echo '${'$as_ac_File'}'` 6881 { echo "$as_me:$LINENO: result: $ac_res" >&5 6882echo "${ECHO_T}$ac_res" >&6; } 6883if test `eval echo '${'$as_ac_File'}'` = yes; then 6884 CPPFLAGS="-I$sphinxbase/include $CPPFLAGS" 6885else 6886 { { echo "$as_me:$LINENO: error: SphinxBase headers not found in $sphinxbase. Please use the 6887--with-sphinxbase option to \`configure' to specify the location of 6888SphinxBase. Run $0 --help for more information." >&5 6889echo "$as_me: error: SphinxBase headers not found in $sphinxbase. Please use the 6890--with-sphinxbase option to \`configure' to specify the location of 6891SphinxBase. Run $0 --help for more information." >&2;} 6892 { (exit 1); exit 1; }; } 6893fi 6894 6895fi 6896if test x$sphinxbasebuild != x && test x$cross_compiling != xyes; then 6897 as_ac_File=`echo "ac_cv_file_$sphinxbasebuild/src/libsphinxbase/libsphinxbase.la" | $as_tr_sh` 6898{ echo "$as_me:$LINENO: checking for $sphinxbasebuild/src/libsphinxbase/libsphinxbase.la" >&5 6899echo $ECHO_N "checking for $sphinxbasebuild/src/libsphinxbase/libsphinxbase.la... $ECHO_C" >&6; } 6900if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 6901 echo $ECHO_N "(cached) $ECHO_C" >&6 6902else 6903 test "$cross_compiling" = yes && 6904 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 6905echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 6906 { (exit 1); exit 1; }; } 6907if test -r "$sphinxbasebuild/src/libsphinxbase/libsphinxbase.la"; then 6908 eval "$as_ac_File=yes" 6909else 6910 eval "$as_ac_File=no" 6911fi 6912fi 6913ac_res=`eval echo '${'$as_ac_File'}'` 6914 { echo "$as_me:$LINENO: result: $ac_res" >&5 6915echo "${ECHO_T}$ac_res" >&6; } 6916if test `eval echo '${'$as_ac_File'}'` = yes; then 6917 CPPFLAGS="-I$sphinxbasebuild/include $CPPFLAGS" 6918LDFLAGS="$LDFLAGS -L$sphinxbasebuild/src/libsphinxfe -L$sphinxbasebuild/src/libsphinxad \ 6919 -L$sphinxbasebuild/src/libsphinxbase" 6920else 6921 { { echo "$as_me:$LINENO: error: SphinxBase libraries were not found in $sphinxbasebuild. 6922Use the --with-sphinxbase-build option to \`configure' to specify 6923the build directory for SphinxBase. Run $0 --help for more information." >&5 6924echo "$as_me: error: SphinxBase libraries were not found in $sphinxbasebuild. 6925Use the --with-sphinxbase-build option to \`configure' to specify 6926the build directory for SphinxBase. Run $0 --help for more information." >&2;} 6927 { (exit 1); exit 1; }; } 6928fi 6929 6930fi 6931 6932# Extract the first word of "perl", so it can be a program name with args. 6933set dummy perl; ac_word=$2 6934{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6936if test "${ac_cv_path_PERL+set}" = set; then 6937 echo $ECHO_N "(cached) $ECHO_C" >&6 6938else 6939 case $PERL in 6940 [\\/]* | ?:[\\/]*) 6941 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 6942 ;; 6943 *) 6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6945for as_dir in $PATH 6946do 6947 IFS=$as_save_IFS 6948 test -z "$as_dir" && as_dir=. 6949 for ac_exec_ext in '' $ac_executable_extensions; do 6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6951 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6953 break 2 6954 fi 6955done 6956done 6957IFS=$as_save_IFS 6958 6959 ;; 6960esac 6961fi 6962PERL=$ac_cv_path_PERL 6963if test -n "$PERL"; then 6964 { echo "$as_me:$LINENO: result: $PERL" >&5 6965echo "${ECHO_T}$PERL" >&6; } 6966else 6967 { echo "$as_me:$LINENO: result: no" >&5 6968echo "${ECHO_T}no" >&6; } 6969fi 6970 6971 6972# Extract the first word of "csh", so it can be a program name with args. 6973set dummy csh; ac_word=$2 6974{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6976if test "${ac_cv_path_CSH+set}" = set; then 6977 echo $ECHO_N "(cached) $ECHO_C" >&6 6978else 6979 case $CSH in 6980 [\\/]* | ?:[\\/]*) 6981 ac_cv_path_CSH="$CSH" # Let the user override the test with a path. 6982 ;; 6983 *) 6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6985for as_dir in $PATH 6986do 6987 IFS=$as_save_IFS 6988 test -z "$as_dir" && as_dir=. 6989 for ac_exec_ext in '' $ac_executable_extensions; do 6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6991 ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext" 6992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6993 break 2 6994 fi 6995done 6996done 6997IFS=$as_save_IFS 6998 6999 ;; 7000esac 7001fi 7002CSH=$ac_cv_path_CSH 7003if test -n "$CSH"; then 7004 { echo "$as_me:$LINENO: result: $CSH" >&5 7005echo "${ECHO_T}$CSH" >&6; } 7006else 7007 { echo "$as_me:$LINENO: result: no" >&5 7008echo "${ECHO_T}no" >&6; } 7009fi 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024# Check whether --enable-shared was given. 7025if test "${enable_shared+set}" = set; then 7026 enableval=$enable_shared; p=${PACKAGE-default} 7027 case $enableval in 7028 yes) enable_shared=yes ;; 7029 no) enable_shared=no ;; 7030 *) 7031 enable_shared=no 7032 # Look at the argument we got. We use all the common list separators. 7033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7034 for pkg in $enableval; do 7035 IFS="$lt_save_ifs" 7036 if test "X$pkg" = "X$p"; then 7037 enable_shared=yes 7038 fi 7039 done 7040 IFS="$lt_save_ifs" 7041 ;; 7042 esac 7043else 7044 enable_shared=yes 7045fi 7046 7047 7048# Check whether --enable-static was given. 7049if test "${enable_static+set}" = set; then 7050 enableval=$enable_static; p=${PACKAGE-default} 7051 case $enableval in 7052 yes) enable_static=yes ;; 7053 no) enable_static=no ;; 7054 *) 7055 enable_static=no 7056 # Look at the argument we got. We use all the common list separators. 7057 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7058 for pkg in $enableval; do 7059 IFS="$lt_save_ifs" 7060 if test "X$pkg" = "X$p"; then 7061 enable_static=yes 7062 fi 7063 done 7064 IFS="$lt_save_ifs" 7065 ;; 7066 esac 7067else 7068 enable_static=yes 7069fi 7070 7071 7072# Check whether --enable-fast-install was given. 7073if test "${enable_fast_install+set}" = set; then 7074 enableval=$enable_fast_install; p=${PACKAGE-default} 7075 case $enableval in 7076 yes) enable_fast_install=yes ;; 7077 no) enable_fast_install=no ;; 7078 *) 7079 enable_fast_install=no 7080 # Look at the argument we got. We use all the common list separators. 7081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7082 for pkg in $enableval; do 7083 IFS="$lt_save_ifs" 7084 if test "X$pkg" = "X$p"; then 7085 enable_fast_install=yes 7086 fi 7087 done 7088 IFS="$lt_save_ifs" 7089 ;; 7090 esac 7091else 7092 enable_fast_install=yes 7093fi 7094 7095 7096{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 7097echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 7098if test "${lt_cv_path_SED+set}" = set; then 7099 echo $ECHO_N "(cached) $ECHO_C" >&6 7100else 7101 # Loop through the user's path and test for sed and gsed. 7102# Then use that list of sed's as ones to test for truncation. 7103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7104for as_dir in $PATH 7105do 7106 IFS=$as_save_IFS 7107 test -z "$as_dir" && as_dir=. 7108 for lt_ac_prog in sed gsed; do 7109 for ac_exec_ext in '' $ac_executable_extensions; do 7110 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 7111 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 7112 fi 7113 done 7114 done 7115done 7116IFS=$as_save_IFS 7117lt_ac_max=0 7118lt_ac_count=0 7119# Add /usr/xpg4/bin/sed as it is typically found on Solaris 7120# along with /bin/sed that truncates output. 7121for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7122 test ! -f $lt_ac_sed && continue 7123 cat /dev/null > conftest.in 7124 lt_ac_count=0 7125 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 7126 # Check for GNU sed and select it if it is found. 7127 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 7128 lt_cv_path_SED=$lt_ac_sed 7129 break 7130 fi 7131 while true; do 7132 cat conftest.in conftest.in >conftest.tmp 7133 mv conftest.tmp conftest.in 7134 cp conftest.in conftest.nl 7135 echo >>conftest.nl 7136 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 7137 cmp -s conftest.out conftest.nl || break 7138 # 10000 chars as input seems more than enough 7139 test $lt_ac_count -gt 10 && break 7140 lt_ac_count=`expr $lt_ac_count + 1` 7141 if test $lt_ac_count -gt $lt_ac_max; then 7142 lt_ac_max=$lt_ac_count 7143 lt_cv_path_SED=$lt_ac_sed 7144 fi 7145 done 7146done 7147 7148fi 7149 7150SED=$lt_cv_path_SED 7151 7152{ echo "$as_me:$LINENO: result: $SED" >&5 7153echo "${ECHO_T}$SED" >&6; } 7154 7155 7156# Check whether --with-gnu-ld was given. 7157if test "${with_gnu_ld+set}" = set; then 7158 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7159else 7160 with_gnu_ld=no 7161fi 7162 7163ac_prog=ld 7164if test "$GCC" = yes; then 7165 # Check if gcc -print-prog-name=ld gives a path. 7166 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 7167echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 7168 case $host in 7169 *-*-mingw*) 7170 # gcc leaves a trailing carriage return which upsets mingw 7171 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7172 *) 7173 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7174 esac 7175 case $ac_prog in 7176 # Accept absolute paths. 7177 [\\/]* | ?:[\\/]*) 7178 re_direlt='/[^/][^/]*/\.\./' 7179 # Canonicalize the pathname of ld 7180 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 7181 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 7182 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 7183 done 7184 test -z "$LD" && LD="$ac_prog" 7185 ;; 7186 "") 7187 # If it fails, then pretend we aren't using GCC. 7188 ac_prog=ld 7189 ;; 7190 *) 7191 # If it is relative, then search for the first ld in PATH. 7192 with_gnu_ld=unknown 7193 ;; 7194 esac 7195elif test "$with_gnu_ld" = yes; then 7196 { echo "$as_me:$LINENO: checking for GNU ld" >&5 7197echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 7198else 7199 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 7200echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 7201fi 7202if test "${lt_cv_path_LD+set}" = set; then 7203 echo $ECHO_N "(cached) $ECHO_C" >&6 7204else 7205 if test -z "$LD"; then 7206 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7207 for ac_dir in $PATH; do 7208 IFS="$lt_save_ifs" 7209 test -z "$ac_dir" && ac_dir=. 7210 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7211 lt_cv_path_LD="$ac_dir/$ac_prog" 7212 # Check to see if the program is GNU ld. I'd rather use --version, 7213 # but apparently some variants of GNU ld only accept -v. 7214 # Break only if it was the GNU/non-GNU ld that we prefer. 7215 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7216 *GNU* | *'with BFD'*) 7217 test "$with_gnu_ld" != no && break 7218 ;; 7219 *) 7220 test "$with_gnu_ld" != yes && break 7221 ;; 7222 esac 7223 fi 7224 done 7225 IFS="$lt_save_ifs" 7226else 7227 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7228fi 7229fi 7230 7231LD="$lt_cv_path_LD" 7232if test -n "$LD"; then 7233 { echo "$as_me:$LINENO: result: $LD" >&5 7234echo "${ECHO_T}$LD" >&6; } 7235else 7236 { echo "$as_me:$LINENO: result: no" >&5 7237echo "${ECHO_T}no" >&6; } 7238fi 7239test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 7240echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 7241 { (exit 1); exit 1; }; } 7242{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 7243echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 7244if test "${lt_cv_prog_gnu_ld+set}" = set; then 7245 echo $ECHO_N "(cached) $ECHO_C" >&6 7246else 7247 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7248case `$LD -v 2>&1 </dev/null` in 7249*GNU* | *'with BFD'*) 7250 lt_cv_prog_gnu_ld=yes 7251 ;; 7252*) 7253 lt_cv_prog_gnu_ld=no 7254 ;; 7255esac 7256fi 7257{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 7258echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 7259with_gnu_ld=$lt_cv_prog_gnu_ld 7260 7261 7262{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 7263echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 7264if test "${lt_cv_ld_reload_flag+set}" = set; then 7265 echo $ECHO_N "(cached) $ECHO_C" >&6 7266else 7267 lt_cv_ld_reload_flag='-r' 7268fi 7269{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 7270echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 7271reload_flag=$lt_cv_ld_reload_flag 7272case $reload_flag in 7273"" | " "*) ;; 7274*) reload_flag=" $reload_flag" ;; 7275esac 7276reload_cmds='$LD$reload_flag -o $output$reload_objs' 7277case $host_os in 7278 darwin*) 7279 if test "$GCC" = yes; then 7280 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7281 else 7282 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7283 fi 7284 ;; 7285esac 7286 7287{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 7288echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 7289if test "${lt_cv_path_NM+set}" = set; then 7290 echo $ECHO_N "(cached) $ECHO_C" >&6 7291else 7292 if test -n "$NM"; then 7293 # Let the user override the test. 7294 lt_cv_path_NM="$NM" 7295else 7296 lt_nm_to_check="${ac_tool_prefix}nm" 7297 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7298 lt_nm_to_check="$lt_nm_to_check nm" 7299 fi 7300 for lt_tmp_nm in $lt_nm_to_check; do 7301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7302 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7303 IFS="$lt_save_ifs" 7304 test -z "$ac_dir" && ac_dir=. 7305 tmp_nm="$ac_dir/$lt_tmp_nm" 7306 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7307 # Check to see if the nm accepts a BSD-compat flag. 7308 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7309 # nm: unknown option "B" ignored 7310 # Tru64's nm complains that /dev/null is an invalid object file 7311 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7312 */dev/null* | *'Invalid file or object type'*) 7313 lt_cv_path_NM="$tmp_nm -B" 7314 break 7315 ;; 7316 *) 7317 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7318 */dev/null*) 7319 lt_cv_path_NM="$tmp_nm -p" 7320 break 7321 ;; 7322 *) 7323 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7324 continue # so that we can try to find one that supports BSD flags 7325 ;; 7326 esac 7327 ;; 7328 esac 7329 fi 7330 done 7331 IFS="$lt_save_ifs" 7332 done 7333 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 7334fi 7335fi 7336{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 7337echo "${ECHO_T}$lt_cv_path_NM" >&6; } 7338NM="$lt_cv_path_NM" 7339 7340{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 7341echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 7342LN_S=$as_ln_s 7343if test "$LN_S" = "ln -s"; then 7344 { echo "$as_me:$LINENO: result: yes" >&5 7345echo "${ECHO_T}yes" >&6; } 7346else 7347 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 7348echo "${ECHO_T}no, using $LN_S" >&6; } 7349fi 7350 7351{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 7352echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 7353if test "${lt_cv_deplibs_check_method+set}" = set; then 7354 echo $ECHO_N "(cached) $ECHO_C" >&6 7355else 7356 lt_cv_file_magic_cmd='$MAGIC_CMD' 7357lt_cv_file_magic_test_file= 7358lt_cv_deplibs_check_method='unknown' 7359# Need to set the preceding variable on all platforms that support 7360# interlibrary dependencies. 7361# 'none' -- dependencies not supported. 7362# `unknown' -- same as none, but documents that we really don't know. 7363# 'pass_all' -- all dependencies passed with no checks. 7364# 'test_compile' -- check by making test program. 7365# 'file_magic [[regex]]' -- check by looking for files in library path 7366# which responds to the $file_magic_cmd with a given extended regex. 7367# If you have `file' or equivalent on your system and you're not sure 7368# whether `pass_all' will *always* work, you probably want this one. 7369 7370case $host_os in 7371aix[4-9]*) 7372 lt_cv_deplibs_check_method=pass_all 7373 ;; 7374 7375beos*) 7376 lt_cv_deplibs_check_method=pass_all 7377 ;; 7378 7379bsdi[45]*) 7380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7381 lt_cv_file_magic_cmd='/usr/bin/file -L' 7382 lt_cv_file_magic_test_file=/shlib/libc.so 7383 ;; 7384 7385cygwin*) 7386 # func_win32_libid is a shell function defined in ltmain.sh 7387 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7388 lt_cv_file_magic_cmd='func_win32_libid' 7389 ;; 7390 7391mingw* | pw32*) 7392 # Base MSYS/MinGW do not provide the 'file' command needed by 7393 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7394 # unless we find 'file', for example because we are cross-compiling. 7395 if ( file / ) >/dev/null 2>&1; then 7396 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7397 lt_cv_file_magic_cmd='func_win32_libid' 7398 else 7399 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 7400 lt_cv_file_magic_cmd='$OBJDUMP -f' 7401 fi 7402 ;; 7403 7404darwin* | rhapsody*) 7405 lt_cv_deplibs_check_method=pass_all 7406 ;; 7407 7408freebsd* | dragonfly*) 7409 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 7410 case $host_cpu in 7411 i*86 ) 7412 # Not sure whether the presence of OpenBSD here was a mistake. 7413 # Let's accept both of them until this is cleared up. 7414 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7415 lt_cv_file_magic_cmd=/usr/bin/file 7416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7417 ;; 7418 esac 7419 else 7420 lt_cv_deplibs_check_method=pass_all 7421 fi 7422 ;; 7423 7424gnu*) 7425 lt_cv_deplibs_check_method=pass_all 7426 ;; 7427 7428hpux10.20* | hpux11*) 7429 lt_cv_file_magic_cmd=/usr/bin/file 7430 case $host_cpu in 7431 ia64*) 7432 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7433 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7434 ;; 7435 hppa*64*) 7436 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]' 7437 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7438 ;; 7439 *) 7440 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 7441 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7442 ;; 7443 esac 7444 ;; 7445 7446interix[3-9]*) 7447 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7449 ;; 7450 7451irix5* | irix6* | nonstopux*) 7452 case $LD in 7453 *-32|*"-32 ") libmagic=32-bit;; 7454 *-n32|*"-n32 ") libmagic=N32;; 7455 *-64|*"-64 ") libmagic=64-bit;; 7456 *) libmagic=never-match;; 7457 esac 7458 lt_cv_deplibs_check_method=pass_all 7459 ;; 7460 7461# This must be Linux ELF. 7462linux* | k*bsd*-gnu) 7463 lt_cv_deplibs_check_method=pass_all 7464 ;; 7465 7466netbsd* | netbsdelf*-gnu) 7467 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 7468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7469 else 7470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7471 fi 7472 ;; 7473 7474newos6*) 7475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7476 lt_cv_file_magic_cmd=/usr/bin/file 7477 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7478 ;; 7479 7480nto-qnx*) 7481 lt_cv_deplibs_check_method=unknown 7482 ;; 7483 7484openbsd*) 7485 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7487 else 7488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7489 fi 7490 ;; 7491 7492osf3* | osf4* | osf5*) 7493 lt_cv_deplibs_check_method=pass_all 7494 ;; 7495 7496rdos*) 7497 lt_cv_deplibs_check_method=pass_all 7498 ;; 7499 7500solaris*) 7501 lt_cv_deplibs_check_method=pass_all 7502 ;; 7503 7504sysv4 | sysv4.3*) 7505 case $host_vendor in 7506 motorola) 7507 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]' 7508 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7509 ;; 7510 ncr) 7511 lt_cv_deplibs_check_method=pass_all 7512 ;; 7513 sequent) 7514 lt_cv_file_magic_cmd='/bin/file' 7515 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7516 ;; 7517 sni) 7518 lt_cv_file_magic_cmd='/bin/file' 7519 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7520 lt_cv_file_magic_test_file=/lib/libc.so 7521 ;; 7522 siemens) 7523 lt_cv_deplibs_check_method=pass_all 7524 ;; 7525 pc) 7526 lt_cv_deplibs_check_method=pass_all 7527 ;; 7528 esac 7529 ;; 7530 7531sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7532 lt_cv_deplibs_check_method=pass_all 7533 ;; 7534esac 7535 7536fi 7537{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 7538echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 7539file_magic_cmd=$lt_cv_file_magic_cmd 7540deplibs_check_method=$lt_cv_deplibs_check_method 7541test -z "$deplibs_check_method" && deplibs_check_method=unknown 7542 7543 7544 7545 7546# If no C compiler was specified, use CC. 7547LTCC=${LTCC-"$CC"} 7548 7549# If no C compiler flags were specified, use CFLAGS. 7550LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7551 7552# Allow CC to be a program name with arguments. 7553compiler=$CC 7554 7555# Check whether --enable-libtool-lock was given. 7556if test "${enable_libtool_lock+set}" = set; then 7557 enableval=$enable_libtool_lock; 7558fi 7559 7560test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7561 7562# Some flags need to be propagated to the compiler or linker for good 7563# libtool support. 7564case $host in 7565ia64-*-hpux*) 7566 # Find out which ABI we are using. 7567 echo 'int i;' > conftest.$ac_ext 7568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7569 (eval $ac_compile) 2>&5 7570 ac_status=$? 7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7572 (exit $ac_status); }; then 7573 case `/usr/bin/file conftest.$ac_objext` in 7574 *ELF-32*) 7575 HPUX_IA64_MODE="32" 7576 ;; 7577 *ELF-64*) 7578 HPUX_IA64_MODE="64" 7579 ;; 7580 esac 7581 fi 7582 rm -rf conftest* 7583 ;; 7584*-*-irix6*) 7585 # Find out which ABI we are using. 7586 echo '#line 7586 "configure"' > conftest.$ac_ext 7587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7588 (eval $ac_compile) 2>&5 7589 ac_status=$? 7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7591 (exit $ac_status); }; then 7592 if test "$lt_cv_prog_gnu_ld" = yes; then 7593 case `/usr/bin/file conftest.$ac_objext` in 7594 *32-bit*) 7595 LD="${LD-ld} -melf32bsmip" 7596 ;; 7597 *N32*) 7598 LD="${LD-ld} -melf32bmipn32" 7599 ;; 7600 *64-bit*) 7601 LD="${LD-ld} -melf64bmip" 7602 ;; 7603 esac 7604 else 7605 case `/usr/bin/file conftest.$ac_objext` in 7606 *32-bit*) 7607 LD="${LD-ld} -32" 7608 ;; 7609 *N32*) 7610 LD="${LD-ld} -n32" 7611 ;; 7612 *64-bit*) 7613 LD="${LD-ld} -64" 7614 ;; 7615 esac 7616 fi 7617 fi 7618 rm -rf conftest* 7619 ;; 7620 7621x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7622s390*-*linux*|sparc*-*linux*) 7623 # Find out which ABI we are using. 7624 echo 'int i;' > conftest.$ac_ext 7625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7626 (eval $ac_compile) 2>&5 7627 ac_status=$? 7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7629 (exit $ac_status); }; then 7630 case `/usr/bin/file conftest.o` in 7631 *32-bit*) 7632 case $host in 7633 x86_64-*kfreebsd*-gnu) 7634 LD="${LD-ld} -m elf_i386_fbsd" 7635 ;; 7636 x86_64-*linux*) 7637 LD="${LD-ld} -m elf_i386" 7638 ;; 7639 ppc64-*linux*|powerpc64-*linux*) 7640 LD="${LD-ld} -m elf32ppclinux" 7641 ;; 7642 s390x-*linux*) 7643 LD="${LD-ld} -m elf_s390" 7644 ;; 7645 sparc64-*linux*) 7646 LD="${LD-ld} -m elf32_sparc" 7647 ;; 7648 esac 7649 ;; 7650 *64-bit*) 7651 case $host in 7652 x86_64-*kfreebsd*-gnu) 7653 LD="${LD-ld} -m elf_x86_64_fbsd" 7654 ;; 7655 x86_64-*linux*) 7656 LD="${LD-ld} -m elf_x86_64" 7657 ;; 7658 ppc*-*linux*|powerpc*-*linux*) 7659 LD="${LD-ld} -m elf64ppc" 7660 ;; 7661 s390*-*linux*) 7662 LD="${LD-ld} -m elf64_s390" 7663 ;; 7664 sparc*-*linux*) 7665 LD="${LD-ld} -m elf64_sparc" 7666 ;; 7667 esac 7668 ;; 7669 esac 7670 fi 7671 rm -rf conftest* 7672 ;; 7673 7674*-*-sco3.2v5*) 7675 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7676 SAVE_CFLAGS="$CFLAGS" 7677 CFLAGS="$CFLAGS -belf" 7678 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 7679echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 7680if test "${lt_cv_cc_needs_belf+set}" = set; then 7681 echo $ECHO_N "(cached) $ECHO_C" >&6 7682else 7683 ac_ext=c 7684ac_cpp='$CPP $CPPFLAGS' 7685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7687ac_compiler_gnu=$ac_cv_c_compiler_gnu 7688 7689 cat >conftest.$ac_ext <<_ACEOF 7690/* confdefs.h. */ 7691_ACEOF 7692cat confdefs.h >>conftest.$ac_ext 7693cat >>conftest.$ac_ext <<_ACEOF 7694/* end confdefs.h. */ 7695 7696int 7697main () 7698{ 7699 7700 ; 7701 return 0; 7702} 7703_ACEOF 7704rm -f conftest.$ac_objext conftest$ac_exeext 7705if { (ac_try="$ac_link" 7706case "(($ac_try" in 7707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7708 *) ac_try_echo=$ac_try;; 7709esac 7710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7711 (eval "$ac_link") 2>conftest.er1 7712 ac_status=$? 7713 grep -v '^ *+' conftest.er1 >conftest.err 7714 rm -f conftest.er1 7715 cat conftest.err >&5 7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7717 (exit $ac_status); } && { 7718 test -z "$ac_c_werror_flag" || 7719 test ! -s conftest.err 7720 } && test -s conftest$ac_exeext && 7721 $as_test_x conftest$ac_exeext; then 7722 lt_cv_cc_needs_belf=yes 7723else 7724 echo "$as_me: failed program was:" >&5 7725sed 's/^/| /' conftest.$ac_ext >&5 7726 7727 lt_cv_cc_needs_belf=no 7728fi 7729 7730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7731 conftest$ac_exeext conftest.$ac_ext 7732 ac_ext=c 7733ac_cpp='$CPP $CPPFLAGS' 7734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7736ac_compiler_gnu=$ac_cv_c_compiler_gnu 7737 7738fi 7739{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7740echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 7741 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7742 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7743 CFLAGS="$SAVE_CFLAGS" 7744 fi 7745 ;; 7746sparc*-*solaris*) 7747 # Find out which ABI we are using. 7748 echo 'int i;' > conftest.$ac_ext 7749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7750 (eval $ac_compile) 2>&5 7751 ac_status=$? 7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7753 (exit $ac_status); }; then 7754 case `/usr/bin/file conftest.o` in 7755 *64-bit*) 7756 case $lt_cv_prog_gnu_ld in 7757 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7758 *) 7759 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7760 LD="${LD-ld} -64" 7761 fi 7762 ;; 7763 esac 7764 ;; 7765 esac 7766 fi 7767 rm -rf conftest* 7768 ;; 7769 7770 7771esac 7772 7773need_locks="$enable_libtool_lock" 7774 7775 7776 7777for ac_header in dlfcn.h 7778do 7779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7781 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7784 echo $ECHO_N "(cached) $ECHO_C" >&6 7785fi 7786ac_res=`eval echo '${'$as_ac_Header'}'` 7787 { echo "$as_me:$LINENO: result: $ac_res" >&5 7788echo "${ECHO_T}$ac_res" >&6; } 7789else 7790 # Is the header compilable? 7791{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7793cat >conftest.$ac_ext <<_ACEOF 7794/* confdefs.h. */ 7795_ACEOF 7796cat confdefs.h >>conftest.$ac_ext 7797cat >>conftest.$ac_ext <<_ACEOF 7798/* end confdefs.h. */ 7799$ac_includes_default 7800#include <$ac_header> 7801_ACEOF 7802rm -f conftest.$ac_objext 7803if { (ac_try="$ac_compile" 7804case "(($ac_try" in 7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7806 *) ac_try_echo=$ac_try;; 7807esac 7808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7809 (eval "$ac_compile") 2>conftest.er1 7810 ac_status=$? 7811 grep -v '^ *+' conftest.er1 >conftest.err 7812 rm -f conftest.er1 7813 cat conftest.err >&5 7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7815 (exit $ac_status); } && { 7816 test -z "$ac_c_werror_flag" || 7817 test ! -s conftest.err 7818 } && test -s conftest.$ac_objext; then 7819 ac_header_compiler=yes 7820else 7821 echo "$as_me: failed program was:" >&5 7822sed 's/^/| /' conftest.$ac_ext >&5 7823 7824 ac_header_compiler=no 7825fi 7826 7827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7829echo "${ECHO_T}$ac_header_compiler" >&6; } 7830 7831# Is the header present? 7832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7834cat >conftest.$ac_ext <<_ACEOF 7835/* confdefs.h. */ 7836_ACEOF 7837cat confdefs.h >>conftest.$ac_ext 7838cat >>conftest.$ac_ext <<_ACEOF 7839/* end confdefs.h. */ 7840#include <$ac_header> 7841_ACEOF 7842if { (ac_try="$ac_cpp conftest.$ac_ext" 7843case "(($ac_try" in 7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7845 *) ac_try_echo=$ac_try;; 7846esac 7847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7849 ac_status=$? 7850 grep -v '^ *+' conftest.er1 >conftest.err 7851 rm -f conftest.er1 7852 cat conftest.err >&5 7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7854 (exit $ac_status); } >/dev/null && { 7855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7856 test ! -s conftest.err 7857 }; then 7858 ac_header_preproc=yes 7859else 7860 echo "$as_me: failed program was:" >&5 7861sed 's/^/| /' conftest.$ac_ext >&5 7862 7863 ac_header_preproc=no 7864fi 7865 7866rm -f conftest.err conftest.$ac_ext 7867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7868echo "${ECHO_T}$ac_header_preproc" >&6; } 7869 7870# So? What about this header? 7871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7872 yes:no: ) 7873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7877 ac_header_preproc=yes 7878 ;; 7879 no:yes:* ) 7880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7892 7893 ;; 7894esac 7895{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7898 echo $ECHO_N "(cached) $ECHO_C" >&6 7899else 7900 eval "$as_ac_Header=\$ac_header_preproc" 7901fi 7902ac_res=`eval echo '${'$as_ac_Header'}'` 7903 { echo "$as_me:$LINENO: result: $ac_res" >&5 7904echo "${ECHO_T}$ac_res" >&6; } 7905 7906fi 7907if test `eval echo '${'$as_ac_Header'}'` = yes; then 7908 cat >>confdefs.h <<_ACEOF 7909#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7910_ACEOF 7911 7912fi 7913 7914done 7915 7916ac_ext=cpp 7917ac_cpp='$CXXCPP $CPPFLAGS' 7918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7921if test -z "$CXX"; then 7922 if test -n "$CCC"; then 7923 CXX=$CCC 7924 else 7925 if test -n "$ac_tool_prefix"; then 7926 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7927 do 7928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7929set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7930{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7932if test "${ac_cv_prog_CXX+set}" = set; then 7933 echo $ECHO_N "(cached) $ECHO_C" >&6 7934else 7935 if test -n "$CXX"; then 7936 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7937else 7938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7939for as_dir in $PATH 7940do 7941 IFS=$as_save_IFS 7942 test -z "$as_dir" && as_dir=. 7943 for ac_exec_ext in '' $ac_executable_extensions; do 7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7945 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7947 break 2 7948 fi 7949done 7950done 7951IFS=$as_save_IFS 7952 7953fi 7954fi 7955CXX=$ac_cv_prog_CXX 7956if test -n "$CXX"; then 7957 { echo "$as_me:$LINENO: result: $CXX" >&5 7958echo "${ECHO_T}$CXX" >&6; } 7959else 7960 { echo "$as_me:$LINENO: result: no" >&5 7961echo "${ECHO_T}no" >&6; } 7962fi 7963 7964 7965 test -n "$CXX" && break 7966 done 7967fi 7968if test -z "$CXX"; then 7969 ac_ct_CXX=$CXX 7970 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7971do 7972 # Extract the first word of "$ac_prog", so it can be a program name with args. 7973set dummy $ac_prog; ac_word=$2 7974{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7976if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 7977 echo $ECHO_N "(cached) $ECHO_C" >&6 7978else 7979 if test -n "$ac_ct_CXX"; then 7980 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7981else 7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7983for as_dir in $PATH 7984do 7985 IFS=$as_save_IFS 7986 test -z "$as_dir" && as_dir=. 7987 for ac_exec_ext in '' $ac_executable_extensions; do 7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7989 ac_cv_prog_ac_ct_CXX="$ac_prog" 7990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7991 break 2 7992 fi 7993done 7994done 7995IFS=$as_save_IFS 7996 7997fi 7998fi 7999ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 8000if test -n "$ac_ct_CXX"; then 8001 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 8002echo "${ECHO_T}$ac_ct_CXX" >&6; } 8003else 8004 { echo "$as_me:$LINENO: result: no" >&5 8005echo "${ECHO_T}no" >&6; } 8006fi 8007 8008 8009 test -n "$ac_ct_CXX" && break 8010done 8011 8012 if test "x$ac_ct_CXX" = x; then 8013 CXX="g++" 8014 else 8015 case $cross_compiling:$ac_tool_warned in 8016yes:) 8017{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8018whose name does not start with the host triplet. If you think this 8019configuration is useful to you, please write to autoconf@gnu.org." >&5 8020echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8021whose name does not start with the host triplet. If you think this 8022configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8023ac_tool_warned=yes ;; 8024esac 8025 CXX=$ac_ct_CXX 8026 fi 8027fi 8028 8029 fi 8030fi 8031# Provide some information about the compiler. 8032echo "$as_me:$LINENO: checking for C++ compiler version" >&5 8033ac_compiler=`set X $ac_compile; echo $2` 8034{ (ac_try="$ac_compiler --version >&5" 8035case "(($ac_try" in 8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8037 *) ac_try_echo=$ac_try;; 8038esac 8039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8040 (eval "$ac_compiler --version >&5") 2>&5 8041 ac_status=$? 8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8043 (exit $ac_status); } 8044{ (ac_try="$ac_compiler -v >&5" 8045case "(($ac_try" in 8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8047 *) ac_try_echo=$ac_try;; 8048esac 8049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8050 (eval "$ac_compiler -v >&5") 2>&5 8051 ac_status=$? 8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8053 (exit $ac_status); } 8054{ (ac_try="$ac_compiler -V >&5" 8055case "(($ac_try" in 8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8057 *) ac_try_echo=$ac_try;; 8058esac 8059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8060 (eval "$ac_compiler -V >&5") 2>&5 8061 ac_status=$? 8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8063 (exit $ac_status); } 8064 8065{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 8066echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 8067if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 8068 echo $ECHO_N "(cached) $ECHO_C" >&6 8069else 8070 cat >conftest.$ac_ext <<_ACEOF 8071/* confdefs.h. */ 8072_ACEOF 8073cat confdefs.h >>conftest.$ac_ext 8074cat >>conftest.$ac_ext <<_ACEOF 8075/* end confdefs.h. */ 8076 8077int 8078main () 8079{ 8080#ifndef __GNUC__ 8081 choke me 8082#endif 8083 8084 ; 8085 return 0; 8086} 8087_ACEOF 8088rm -f conftest.$ac_objext 8089if { (ac_try="$ac_compile" 8090case "(($ac_try" in 8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8092 *) ac_try_echo=$ac_try;; 8093esac 8094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8095 (eval "$ac_compile") 2>conftest.er1 8096 ac_status=$? 8097 grep -v '^ *+' conftest.er1 >conftest.err 8098 rm -f conftest.er1 8099 cat conftest.err >&5 8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8101 (exit $ac_status); } && { 8102 test -z "$ac_cxx_werror_flag" || 8103 test ! -s conftest.err 8104 } && test -s conftest.$ac_objext; then 8105 ac_compiler_gnu=yes 8106else 8107 echo "$as_me: failed program was:" >&5 8108sed 's/^/| /' conftest.$ac_ext >&5 8109 8110 ac_compiler_gnu=no 8111fi 8112 8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8114ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 8115 8116fi 8117{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 8118echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 8119GXX=`test $ac_compiler_gnu = yes && echo yes` 8120ac_test_CXXFLAGS=${CXXFLAGS+set} 8121ac_save_CXXFLAGS=$CXXFLAGS 8122{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 8123echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 8124if test "${ac_cv_prog_cxx_g+set}" = set; then 8125 echo $ECHO_N "(cached) $ECHO_C" >&6 8126else 8127 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 8128 ac_cxx_werror_flag=yes 8129 ac_cv_prog_cxx_g=no 8130 CXXFLAGS="-g" 8131 cat >conftest.$ac_ext <<_ACEOF 8132/* confdefs.h. */ 8133_ACEOF 8134cat confdefs.h >>conftest.$ac_ext 8135cat >>conftest.$ac_ext <<_ACEOF 8136/* end confdefs.h. */ 8137 8138int 8139main () 8140{ 8141 8142 ; 8143 return 0; 8144} 8145_ACEOF 8146rm -f conftest.$ac_objext 8147if { (ac_try="$ac_compile" 8148case "(($ac_try" in 8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8150 *) ac_try_echo=$ac_try;; 8151esac 8152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8153 (eval "$ac_compile") 2>conftest.er1 8154 ac_status=$? 8155 grep -v '^ *+' conftest.er1 >conftest.err 8156 rm -f conftest.er1 8157 cat conftest.err >&5 8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8159 (exit $ac_status); } && { 8160 test -z "$ac_cxx_werror_flag" || 8161 test ! -s conftest.err 8162 } && test -s conftest.$ac_objext; then 8163 ac_cv_prog_cxx_g=yes 8164else 8165 echo "$as_me: failed program was:" >&5 8166sed 's/^/| /' conftest.$ac_ext >&5 8167 8168 CXXFLAGS="" 8169 cat >conftest.$ac_ext <<_ACEOF 8170/* confdefs.h. */ 8171_ACEOF 8172cat confdefs.h >>conftest.$ac_ext 8173cat >>conftest.$ac_ext <<_ACEOF 8174/* end confdefs.h. */ 8175 8176int 8177main () 8178{ 8179 8180 ; 8181 return 0; 8182} 8183_ACEOF 8184rm -f conftest.$ac_objext 8185if { (ac_try="$ac_compile" 8186case "(($ac_try" in 8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8188 *) ac_try_echo=$ac_try;; 8189esac 8190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8191 (eval "$ac_compile") 2>conftest.er1 8192 ac_status=$? 8193 grep -v '^ *+' conftest.er1 >conftest.err 8194 rm -f conftest.er1 8195 cat conftest.err >&5 8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8197 (exit $ac_status); } && { 8198 test -z "$ac_cxx_werror_flag" || 8199 test ! -s conftest.err 8200 } && test -s conftest.$ac_objext; then 8201 : 8202else 8203 echo "$as_me: failed program was:" >&5 8204sed 's/^/| /' conftest.$ac_ext >&5 8205 8206 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8207 CXXFLAGS="-g" 8208 cat >conftest.$ac_ext <<_ACEOF 8209/* confdefs.h. */ 8210_ACEOF 8211cat confdefs.h >>conftest.$ac_ext 8212cat >>conftest.$ac_ext <<_ACEOF 8213/* end confdefs.h. */ 8214 8215int 8216main () 8217{ 8218 8219 ; 8220 return 0; 8221} 8222_ACEOF 8223rm -f conftest.$ac_objext 8224if { (ac_try="$ac_compile" 8225case "(($ac_try" in 8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8227 *) ac_try_echo=$ac_try;; 8228esac 8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8230 (eval "$ac_compile") 2>conftest.er1 8231 ac_status=$? 8232 grep -v '^ *+' conftest.er1 >conftest.err 8233 rm -f conftest.er1 8234 cat conftest.err >&5 8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8236 (exit $ac_status); } && { 8237 test -z "$ac_cxx_werror_flag" || 8238 test ! -s conftest.err 8239 } && test -s conftest.$ac_objext; then 8240 ac_cv_prog_cxx_g=yes 8241else 8242 echo "$as_me: failed program was:" >&5 8243sed 's/^/| /' conftest.$ac_ext >&5 8244 8245 8246fi 8247 8248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8249fi 8250 8251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8252fi 8253 8254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8255 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8256fi 8257{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 8258echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 8259if test "$ac_test_CXXFLAGS" = set; then 8260 CXXFLAGS=$ac_save_CXXFLAGS 8261elif test $ac_cv_prog_cxx_g = yes; then 8262 if test "$GXX" = yes; then 8263 CXXFLAGS="-g -O2" 8264 else 8265 CXXFLAGS="-g" 8266 fi 8267else 8268 if test "$GXX" = yes; then 8269 CXXFLAGS="-O2" 8270 else 8271 CXXFLAGS= 8272 fi 8273fi 8274ac_ext=cpp 8275ac_cpp='$CXXCPP $CPPFLAGS' 8276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8279 8280depcc="$CXX" am_compiler_list= 8281 8282{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 8283echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 8284if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 8285 echo $ECHO_N "(cached) $ECHO_C" >&6 8286else 8287 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8288 # We make a subdir and do the tests there. Otherwise we can end up 8289 # making bogus files that we don't know about and never remove. For 8290 # instance it was reported that on HP-UX the gcc test will end up 8291 # making a dummy file named `D' -- because `-MD' means `put the output 8292 # in D'. 8293 mkdir conftest.dir 8294 # Copy depcomp to subdir because otherwise we won't find it if we're 8295 # using a relative directory. 8296 cp "$am_depcomp" conftest.dir 8297 cd conftest.dir 8298 # We will build objects and dependencies in a subdirectory because 8299 # it helps to detect inapplicable dependency modes. For instance 8300 # both Tru64's cc and ICC support -MD to output dependencies as a 8301 # side effect of compilation, but ICC will put the dependencies in 8302 # the current directory while Tru64 will put them in the object 8303 # directory. 8304 mkdir sub 8305 8306 am_cv_CXX_dependencies_compiler_type=none 8307 if test "$am_compiler_list" = ""; then 8308 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 8309 fi 8310 for depmode in $am_compiler_list; do 8311 # Setup a source with many dependencies, because some compilers 8312 # like to wrap large dependency lists on column 80 (with \), and 8313 # we should not choose a depcomp mode which is confused by this. 8314 # 8315 # We need to recreate these files for each test, as the compiler may 8316 # overwrite some of them when testing with obscure command lines. 8317 # This happens at least with the AIX C compiler. 8318 : > sub/conftest.c 8319 for i in 1 2 3 4 5 6; do 8320 echo '#include "conftst'$i'.h"' >> sub/conftest.c 8321 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 8322 # Solaris 8's {/usr,}/bin/sh. 8323 touch sub/conftst$i.h 8324 done 8325 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 8326 8327 case $depmode in 8328 nosideeffect) 8329 # after this tag, mechanisms are not by side-effect, so they'll 8330 # only be used when explicitly requested 8331 if test "x$enable_dependency_tracking" = xyes; then 8332 continue 8333 else 8334 break 8335 fi 8336 ;; 8337 none) break ;; 8338 esac 8339 # We check with `-c' and `-o' for the sake of the "dashmstdout" 8340 # mode. It turns out that the SunPro C++ compiler does not properly 8341 # handle `-M -o', and we need to detect this. 8342 if depmode=$depmode \ 8343 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 8344 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 8345 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 8346 >/dev/null 2>conftest.err && 8347 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 8348 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 8349 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8350 # icc doesn't choke on unknown options, it will just issue warnings 8351 # or remarks (even with -Werror). So we grep stderr for any message 8352 # that says an option was ignored or not supported. 8353 # When given -MP, icc 7.0 and 7.1 complain thusly: 8354 # icc: Command line warning: ignoring option '-M'; no argument required 8355 # The diagnosis changed in icc 8.0: 8356 # icc: Command line remark: option '-MP' not supported 8357 if (grep 'ignoring option' conftest.err || 8358 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 8359 am_cv_CXX_dependencies_compiler_type=$depmode 8360 break 8361 fi 8362 fi 8363 done 8364 8365 cd .. 8366 rm -rf conftest.dir 8367else 8368 am_cv_CXX_dependencies_compiler_type=none 8369fi 8370 8371fi 8372{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 8373echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 8374CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 8375 8376 8377 8378if 8379 test "x$enable_dependency_tracking" != xno \ 8380 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 8381 am__fastdepCXX_TRUE= 8382 am__fastdepCXX_FALSE='#' 8383else 8384 am__fastdepCXX_TRUE='#' 8385 am__fastdepCXX_FALSE= 8386fi 8387 8388 8389 8390 8391if test -n "$CXX" && ( test "X$CXX" != "Xno" && 8392 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 8393 (test "X$CXX" != "Xg++"))) ; then 8394 ac_ext=cpp 8395ac_cpp='$CXXCPP $CPPFLAGS' 8396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8399{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 8400echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 8401if test -z "$CXXCPP"; then 8402 if test "${ac_cv_prog_CXXCPP+set}" = set; then 8403 echo $ECHO_N "(cached) $ECHO_C" >&6 8404else 8405 # Double quotes because CXXCPP needs to be expanded 8406 for CXXCPP in "$CXX -E" "/lib/cpp" 8407 do 8408 ac_preproc_ok=false 8409for ac_cxx_preproc_warn_flag in '' yes 8410do 8411 # Use a header file that comes with gcc, so configuring glibc 8412 # with a fresh cross-compiler works. 8413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8414 # <limits.h> exists even on freestanding compilers. 8415 # On the NeXT, cc -E runs the code through the compiler's parser, 8416 # not just through cpp. "Syntax error" is here to catch this case. 8417 cat >conftest.$ac_ext <<_ACEOF 8418/* confdefs.h. */ 8419_ACEOF 8420cat confdefs.h >>conftest.$ac_ext 8421cat >>conftest.$ac_ext <<_ACEOF 8422/* end confdefs.h. */ 8423#ifdef __STDC__ 8424# include <limits.h> 8425#else 8426# include <assert.h> 8427#endif 8428 Syntax error 8429_ACEOF 8430if { (ac_try="$ac_cpp conftest.$ac_ext" 8431case "(($ac_try" in 8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8433 *) ac_try_echo=$ac_try;; 8434esac 8435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8437 ac_status=$? 8438 grep -v '^ *+' conftest.er1 >conftest.err 8439 rm -f conftest.er1 8440 cat conftest.err >&5 8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8442 (exit $ac_status); } >/dev/null && { 8443 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8444 test ! -s conftest.err 8445 }; then 8446 : 8447else 8448 echo "$as_me: failed program was:" >&5 8449sed 's/^/| /' conftest.$ac_ext >&5 8450 8451 # Broken: fails on valid input. 8452continue 8453fi 8454 8455rm -f conftest.err conftest.$ac_ext 8456 8457 # OK, works on sane cases. Now check whether nonexistent headers 8458 # can be detected and how. 8459 cat >conftest.$ac_ext <<_ACEOF 8460/* confdefs.h. */ 8461_ACEOF 8462cat confdefs.h >>conftest.$ac_ext 8463cat >>conftest.$ac_ext <<_ACEOF 8464/* end confdefs.h. */ 8465#include <ac_nonexistent.h> 8466_ACEOF 8467if { (ac_try="$ac_cpp conftest.$ac_ext" 8468case "(($ac_try" in 8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8470 *) ac_try_echo=$ac_try;; 8471esac 8472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8474 ac_status=$? 8475 grep -v '^ *+' conftest.er1 >conftest.err 8476 rm -f conftest.er1 8477 cat conftest.err >&5 8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8479 (exit $ac_status); } >/dev/null && { 8480 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8481 test ! -s conftest.err 8482 }; then 8483 # Broken: success on invalid input. 8484continue 8485else 8486 echo "$as_me: failed program was:" >&5 8487sed 's/^/| /' conftest.$ac_ext >&5 8488 8489 # Passes both tests. 8490ac_preproc_ok=: 8491break 8492fi 8493 8494rm -f conftest.err conftest.$ac_ext 8495 8496done 8497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8498rm -f conftest.err conftest.$ac_ext 8499if $ac_preproc_ok; then 8500 break 8501fi 8502 8503 done 8504 ac_cv_prog_CXXCPP=$CXXCPP 8505 8506fi 8507 CXXCPP=$ac_cv_prog_CXXCPP 8508else 8509 ac_cv_prog_CXXCPP=$CXXCPP 8510fi 8511{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 8512echo "${ECHO_T}$CXXCPP" >&6; } 8513ac_preproc_ok=false 8514for ac_cxx_preproc_warn_flag in '' yes 8515do 8516 # Use a header file that comes with gcc, so configuring glibc 8517 # with a fresh cross-compiler works. 8518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8519 # <limits.h> exists even on freestanding compilers. 8520 # On the NeXT, cc -E runs the code through the compiler's parser, 8521 # not just through cpp. "Syntax error" is here to catch this case. 8522 cat >conftest.$ac_ext <<_ACEOF 8523/* confdefs.h. */ 8524_ACEOF 8525cat confdefs.h >>conftest.$ac_ext 8526cat >>conftest.$ac_ext <<_ACEOF 8527/* end confdefs.h. */ 8528#ifdef __STDC__ 8529# include <limits.h> 8530#else 8531# include <assert.h> 8532#endif 8533 Syntax error 8534_ACEOF 8535if { (ac_try="$ac_cpp conftest.$ac_ext" 8536case "(($ac_try" in 8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8538 *) ac_try_echo=$ac_try;; 8539esac 8540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8542 ac_status=$? 8543 grep -v '^ *+' conftest.er1 >conftest.err 8544 rm -f conftest.er1 8545 cat conftest.err >&5 8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8547 (exit $ac_status); } >/dev/null && { 8548 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8549 test ! -s conftest.err 8550 }; then 8551 : 8552else 8553 echo "$as_me: failed program was:" >&5 8554sed 's/^/| /' conftest.$ac_ext >&5 8555 8556 # Broken: fails on valid input. 8557continue 8558fi 8559 8560rm -f conftest.err conftest.$ac_ext 8561 8562 # OK, works on sane cases. Now check whether nonexistent headers 8563 # can be detected and how. 8564 cat >conftest.$ac_ext <<_ACEOF 8565/* confdefs.h. */ 8566_ACEOF 8567cat confdefs.h >>conftest.$ac_ext 8568cat >>conftest.$ac_ext <<_ACEOF 8569/* end confdefs.h. */ 8570#include <ac_nonexistent.h> 8571_ACEOF 8572if { (ac_try="$ac_cpp conftest.$ac_ext" 8573case "(($ac_try" in 8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8575 *) ac_try_echo=$ac_try;; 8576esac 8577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8579 ac_status=$? 8580 grep -v '^ *+' conftest.er1 >conftest.err 8581 rm -f conftest.er1 8582 cat conftest.err >&5 8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8584 (exit $ac_status); } >/dev/null && { 8585 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8586 test ! -s conftest.err 8587 }; then 8588 # Broken: success on invalid input. 8589continue 8590else 8591 echo "$as_me: failed program was:" >&5 8592sed 's/^/| /' conftest.$ac_ext >&5 8593 8594 # Passes both tests. 8595ac_preproc_ok=: 8596break 8597fi 8598 8599rm -f conftest.err conftest.$ac_ext 8600 8601done 8602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8603rm -f conftest.err conftest.$ac_ext 8604if $ac_preproc_ok; then 8605 : 8606else 8607 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 8608See \`config.log' for more details." >&5 8609echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 8610See \`config.log' for more details." >&2;} 8611 { (exit 1); exit 1; }; } 8612fi 8613 8614ac_ext=cpp 8615ac_cpp='$CXXCPP $CPPFLAGS' 8616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8619 8620fi 8621 8622 8623ac_ext=f 8624ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 8625ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8626ac_compiler_gnu=$ac_cv_f77_compiler_gnu 8627if test -n "$ac_tool_prefix"; then 8628 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 8629 do 8630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8631set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8632{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8634if test "${ac_cv_prog_F77+set}" = set; then 8635 echo $ECHO_N "(cached) $ECHO_C" >&6 8636else 8637 if test -n "$F77"; then 8638 ac_cv_prog_F77="$F77" # Let the user override the test. 8639else 8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8641for as_dir in $PATH 8642do 8643 IFS=$as_save_IFS 8644 test -z "$as_dir" && as_dir=. 8645 for ac_exec_ext in '' $ac_executable_extensions; do 8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8647 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 8648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8649 break 2 8650 fi 8651done 8652done 8653IFS=$as_save_IFS 8654 8655fi 8656fi 8657F77=$ac_cv_prog_F77 8658if test -n "$F77"; then 8659 { echo "$as_me:$LINENO: result: $F77" >&5 8660echo "${ECHO_T}$F77" >&6; } 8661else 8662 { echo "$as_me:$LINENO: result: no" >&5 8663echo "${ECHO_T}no" >&6; } 8664fi 8665 8666 8667 test -n "$F77" && break 8668 done 8669fi 8670if test -z "$F77"; then 8671 ac_ct_F77=$F77 8672 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 8673do 8674 # Extract the first word of "$ac_prog", so it can be a program name with args. 8675set dummy $ac_prog; ac_word=$2 8676{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8678if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 8679 echo $ECHO_N "(cached) $ECHO_C" >&6 8680else 8681 if test -n "$ac_ct_F77"; then 8682 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 8683else 8684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8685for as_dir in $PATH 8686do 8687 IFS=$as_save_IFS 8688 test -z "$as_dir" && as_dir=. 8689 for ac_exec_ext in '' $ac_executable_extensions; do 8690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8691 ac_cv_prog_ac_ct_F77="$ac_prog" 8692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8693 break 2 8694 fi 8695done 8696done 8697IFS=$as_save_IFS 8698 8699fi 8700fi 8701ac_ct_F77=$ac_cv_prog_ac_ct_F77 8702if test -n "$ac_ct_F77"; then 8703 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 8704echo "${ECHO_T}$ac_ct_F77" >&6; } 8705else 8706 { echo "$as_me:$LINENO: result: no" >&5 8707echo "${ECHO_T}no" >&6; } 8708fi 8709 8710 8711 test -n "$ac_ct_F77" && break 8712done 8713 8714 if test "x$ac_ct_F77" = x; then 8715 F77="" 8716 else 8717 case $cross_compiling:$ac_tool_warned in 8718yes:) 8719{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8720whose name does not start with the host triplet. If you think this 8721configuration is useful to you, please write to autoconf@gnu.org." >&5 8722echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8723whose name does not start with the host triplet. If you think this 8724configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8725ac_tool_warned=yes ;; 8726esac 8727 F77=$ac_ct_F77 8728 fi 8729fi 8730 8731 8732# Provide some information about the compiler. 8733echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 8734ac_compiler=`set X $ac_compile; echo $2` 8735{ (ac_try="$ac_compiler --version >&5" 8736case "(($ac_try" in 8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8738 *) ac_try_echo=$ac_try;; 8739esac 8740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8741 (eval "$ac_compiler --version >&5") 2>&5 8742 ac_status=$? 8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8744 (exit $ac_status); } 8745{ (ac_try="$ac_compiler -v >&5" 8746case "(($ac_try" in 8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8748 *) ac_try_echo=$ac_try;; 8749esac 8750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8751 (eval "$ac_compiler -v >&5") 2>&5 8752 ac_status=$? 8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8754 (exit $ac_status); } 8755{ (ac_try="$ac_compiler -V >&5" 8756case "(($ac_try" in 8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8758 *) ac_try_echo=$ac_try;; 8759esac 8760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8761 (eval "$ac_compiler -V >&5") 2>&5 8762 ac_status=$? 8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8764 (exit $ac_status); } 8765rm -f a.out 8766 8767# If we don't use `.F' as extension, the preprocessor is not run on the 8768# input file. (Note that this only needs to work for GNU compilers.) 8769ac_save_ext=$ac_ext 8770ac_ext=F 8771{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 8772echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 8773if test "${ac_cv_f77_compiler_gnu+set}" = set; then 8774 echo $ECHO_N "(cached) $ECHO_C" >&6 8775else 8776 cat >conftest.$ac_ext <<_ACEOF 8777 program main 8778#ifndef __GNUC__ 8779 choke me 8780#endif 8781 8782 end 8783_ACEOF 8784rm -f conftest.$ac_objext 8785if { (ac_try="$ac_compile" 8786case "(($ac_try" in 8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8788 *) ac_try_echo=$ac_try;; 8789esac 8790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8791 (eval "$ac_compile") 2>conftest.er1 8792 ac_status=$? 8793 grep -v '^ *+' conftest.er1 >conftest.err 8794 rm -f conftest.er1 8795 cat conftest.err >&5 8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8797 (exit $ac_status); } && { 8798 test -z "$ac_f77_werror_flag" || 8799 test ! -s conftest.err 8800 } && test -s conftest.$ac_objext; then 8801 ac_compiler_gnu=yes 8802else 8803 echo "$as_me: failed program was:" >&5 8804sed 's/^/| /' conftest.$ac_ext >&5 8805 8806 ac_compiler_gnu=no 8807fi 8808 8809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8810ac_cv_f77_compiler_gnu=$ac_compiler_gnu 8811 8812fi 8813{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 8814echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 8815ac_ext=$ac_save_ext 8816ac_test_FFLAGS=${FFLAGS+set} 8817ac_save_FFLAGS=$FFLAGS 8818FFLAGS= 8819{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 8820echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 8821if test "${ac_cv_prog_f77_g+set}" = set; then 8822 echo $ECHO_N "(cached) $ECHO_C" >&6 8823else 8824 FFLAGS=-g 8825cat >conftest.$ac_ext <<_ACEOF 8826 program main 8827 8828 end 8829_ACEOF 8830rm -f conftest.$ac_objext 8831if { (ac_try="$ac_compile" 8832case "(($ac_try" in 8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8834 *) ac_try_echo=$ac_try;; 8835esac 8836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8837 (eval "$ac_compile") 2>conftest.er1 8838 ac_status=$? 8839 grep -v '^ *+' conftest.er1 >conftest.err 8840 rm -f conftest.er1 8841 cat conftest.err >&5 8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8843 (exit $ac_status); } && { 8844 test -z "$ac_f77_werror_flag" || 8845 test ! -s conftest.err 8846 } && test -s conftest.$ac_objext; then 8847 ac_cv_prog_f77_g=yes 8848else 8849 echo "$as_me: failed program was:" >&5 8850sed 's/^/| /' conftest.$ac_ext >&5 8851 8852 ac_cv_prog_f77_g=no 8853fi 8854 8855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8856 8857fi 8858{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 8859echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 8860if test "$ac_test_FFLAGS" = set; then 8861 FFLAGS=$ac_save_FFLAGS 8862elif test $ac_cv_prog_f77_g = yes; then 8863 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 8864 FFLAGS="-g -O2" 8865 else 8866 FFLAGS="-g" 8867 fi 8868else 8869 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 8870 FFLAGS="-O2" 8871 else 8872 FFLAGS= 8873 fi 8874fi 8875 8876G77=`test $ac_compiler_gnu = yes && echo yes` 8877ac_ext=c 8878ac_cpp='$CPP $CPPFLAGS' 8879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8881ac_compiler_gnu=$ac_cv_c_compiler_gnu 8882 8883 8884 8885# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 8886# find the maximum length of command line arguments 8887{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 8888echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 8889if test "${lt_cv_sys_max_cmd_len+set}" = set; then 8890 echo $ECHO_N "(cached) $ECHO_C" >&6 8891else 8892 i=0 8893 teststring="ABCD" 8894 8895 case $build_os in 8896 msdosdjgpp*) 8897 # On DJGPP, this test can blow up pretty badly due to problems in libc 8898 # (any single argument exceeding 2000 bytes causes a buffer overrun 8899 # during glob expansion). Even if it were fixed, the result of this 8900 # check would be larger than it should be. 8901 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8902 ;; 8903 8904 gnu*) 8905 # Under GNU Hurd, this test is not required because there is 8906 # no limit to the length of command line arguments. 8907 # Libtool will interpret -1 as no limit whatsoever 8908 lt_cv_sys_max_cmd_len=-1; 8909 ;; 8910 8911 cygwin* | mingw*) 8912 # On Win9x/ME, this test blows up -- it succeeds, but takes 8913 # about 5 minutes as the teststring grows exponentially. 8914 # Worse, since 9x/ME are not pre-emptively multitasking, 8915 # you end up with a "frozen" computer, even though with patience 8916 # the test eventually succeeds (with a max line length of 256k). 8917 # Instead, let's just punt: use the minimum linelength reported by 8918 # all of the supported platforms: 8192 (on NT/2K/XP). 8919 lt_cv_sys_max_cmd_len=8192; 8920 ;; 8921 8922 amigaos*) 8923 # On AmigaOS with pdksh, this test takes hours, literally. 8924 # So we just punt and use a minimum line length of 8192. 8925 lt_cv_sys_max_cmd_len=8192; 8926 ;; 8927 8928 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 8929 # This has been around since 386BSD, at least. Likely further. 8930 if test -x /sbin/sysctl; then 8931 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8932 elif test -x /usr/sbin/sysctl; then 8933 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8934 else 8935 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8936 fi 8937 # And add a safety zone 8938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8940 ;; 8941 8942 interix*) 8943 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8944 lt_cv_sys_max_cmd_len=196608 8945 ;; 8946 8947 osf*) 8948 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8949 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8950 # nice to cause kernel panics so lets avoid the loop below. 8951 # First set a reasonable default. 8952 lt_cv_sys_max_cmd_len=16384 8953 # 8954 if test -x /sbin/sysconfig; then 8955 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8956 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8957 esac 8958 fi 8959 ;; 8960 sco3.2v5*) 8961 lt_cv_sys_max_cmd_len=102400 8962 ;; 8963 sysv5* | sco5v6* | sysv4.2uw2*) 8964 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8965 if test -n "$kargmax"; then 8966 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8967 else 8968 lt_cv_sys_max_cmd_len=32768 8969 fi 8970 ;; 8971 *) 8972 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8973 if test -n "$lt_cv_sys_max_cmd_len"; then 8974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8976 else 8977 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8978 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 8979 = "XX$teststring") >/dev/null 2>&1 && 8980 new_result=`expr "X$teststring" : ".*" 2>&1` && 8981 lt_cv_sys_max_cmd_len=$new_result && 8982 test $i != 17 # 1/2 MB should be enough 8983 do 8984 i=`expr $i + 1` 8985 teststring=$teststring$teststring 8986 done 8987 teststring= 8988 # Add a significant safety factor because C++ compilers can tack on massive 8989 # amounts of additional arguments before passing them to the linker. 8990 # It appears as though 1/2 is a usable value. 8991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8992 fi 8993 ;; 8994 esac 8995 8996fi 8997 8998if test -n $lt_cv_sys_max_cmd_len ; then 8999 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 9000echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 9001else 9002 { echo "$as_me:$LINENO: result: none" >&5 9003echo "${ECHO_T}none" >&6; } 9004fi 9005 9006 9007 9008 9009 9010# Check for command to grab the raw symbol name followed by C symbol from nm. 9011{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9012echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9013if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9014 echo $ECHO_N "(cached) $ECHO_C" >&6 9015else 9016 9017# These are sane defaults that work on at least a few old systems. 9018# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9019 9020# Character class describing NM global symbol codes. 9021symcode='[BCDEGRST]' 9022 9023# Regexp to match symbols that can be accessed directly from C. 9024sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9025 9026# Transform an extracted symbol line into a proper C declaration 9027lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9028 9029# Transform an extracted symbol line into symbol name and symbol address 9030lt_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'" 9031 9032# Define system-specific variables. 9033case $host_os in 9034aix*) 9035 symcode='[BCDT]' 9036 ;; 9037cygwin* | mingw* | pw32*) 9038 symcode='[ABCDGISTW]' 9039 ;; 9040hpux*) # Its linker distinguishes data from code symbols 9041 if test "$host_cpu" = ia64; then 9042 symcode='[ABCDEGRST]' 9043 fi 9044 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9045 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'" 9046 ;; 9047linux* | k*bsd*-gnu) 9048 if test "$host_cpu" = ia64; then 9049 symcode='[ABCDGIRSTW]' 9050 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9051 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'" 9052 fi 9053 ;; 9054irix* | nonstopux*) 9055 symcode='[BCDEGRST]' 9056 ;; 9057osf*) 9058 symcode='[BCDEGQRST]' 9059 ;; 9060solaris*) 9061 symcode='[BDRT]' 9062 ;; 9063sco3.2v5*) 9064 symcode='[DT]' 9065 ;; 9066sysv4.2uw2*) 9067 symcode='[DT]' 9068 ;; 9069sysv5* | sco5v6* | unixware* | OpenUNIX*) 9070 symcode='[ABDT]' 9071 ;; 9072sysv4) 9073 symcode='[DFNSTU]' 9074 ;; 9075esac 9076 9077# Handle CRLF in mingw tool chain 9078opt_cr= 9079case $build_os in 9080mingw*) 9081 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9082 ;; 9083esac 9084 9085# If we're using GNU nm, then use its standard symbol codes. 9086case `$NM -V 2>&1` in 9087*GNU* | *'with BFD'*) 9088 symcode='[ABCDGIRSTW]' ;; 9089esac 9090 9091# Try without a prefix undercore, then with it. 9092for ac_symprfx in "" "_"; do 9093 9094 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9095 symxfrm="\\1 $ac_symprfx\\2 \\2" 9096 9097 # Write the raw and C identifiers. 9098 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9099 9100 # Check to see that the pipe works correctly. 9101 pipe_works=no 9102 9103 rm -f conftest* 9104 cat > conftest.$ac_ext <<EOF 9105#ifdef __cplusplus 9106extern "C" { 9107#endif 9108char nm_test_var; 9109void nm_test_func(){} 9110#ifdef __cplusplus 9111} 9112#endif 9113int main(){nm_test_var='a';nm_test_func();return(0);} 9114EOF 9115 9116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9117 (eval $ac_compile) 2>&5 9118 ac_status=$? 9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9120 (exit $ac_status); }; then 9121 # Now try to grab the symbols. 9122 nlist=conftest.nm 9123 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9124 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9125 ac_status=$? 9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9127 (exit $ac_status); } && test -s "$nlist"; then 9128 # Try sorting and uniquifying the output. 9129 if sort "$nlist" | uniq > "$nlist"T; then 9130 mv -f "$nlist"T "$nlist" 9131 else 9132 rm -f "$nlist"T 9133 fi 9134 9135 # Make sure that we snagged all the symbols we need. 9136 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9137 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9138 cat <<EOF > conftest.$ac_ext 9139#ifdef __cplusplus 9140extern "C" { 9141#endif 9142 9143EOF 9144 # Now generate the symbol file. 9145 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9146 9147 cat <<EOF >> conftest.$ac_ext 9148#if defined (__STDC__) && __STDC__ 9149# define lt_ptr_t void * 9150#else 9151# define lt_ptr_t char * 9152# define const 9153#endif 9154 9155/* The mapping between symbol names and symbols. */ 9156const struct { 9157 const char *name; 9158 lt_ptr_t address; 9159} 9160lt_preloaded_symbols[] = 9161{ 9162EOF 9163 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9164 cat <<\EOF >> conftest.$ac_ext 9165 {0, (lt_ptr_t) 0} 9166}; 9167 9168#ifdef __cplusplus 9169} 9170#endif 9171EOF 9172 # Now try linking the two files. 9173 mv conftest.$ac_objext conftstm.$ac_objext 9174 lt_save_LIBS="$LIBS" 9175 lt_save_CFLAGS="$CFLAGS" 9176 LIBS="conftstm.$ac_objext" 9177 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9179 (eval $ac_link) 2>&5 9180 ac_status=$? 9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9182 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9183 pipe_works=yes 9184 fi 9185 LIBS="$lt_save_LIBS" 9186 CFLAGS="$lt_save_CFLAGS" 9187 else 9188 echo "cannot find nm_test_func in $nlist" >&5 9189 fi 9190 else 9191 echo "cannot find nm_test_var in $nlist" >&5 9192 fi 9193 else 9194 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9195 fi 9196 else 9197 echo "$progname: failed program was:" >&5 9198 cat conftest.$ac_ext >&5 9199 fi 9200 rm -rf conftest* conftst* 9201 9202 # Do not use the global_symbol_pipe unless it works. 9203 if test "$pipe_works" = yes; then 9204 break 9205 else 9206 lt_cv_sys_global_symbol_pipe= 9207 fi 9208done 9209 9210fi 9211 9212if test -z "$lt_cv_sys_global_symbol_pipe"; then 9213 lt_cv_sys_global_symbol_to_cdecl= 9214fi 9215if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9216 { echo "$as_me:$LINENO: result: failed" >&5 9217echo "${ECHO_T}failed" >&6; } 9218else 9219 { echo "$as_me:$LINENO: result: ok" >&5 9220echo "${ECHO_T}ok" >&6; } 9221fi 9222 9223{ echo "$as_me:$LINENO: checking for objdir" >&5 9224echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9225if test "${lt_cv_objdir+set}" = set; then 9226 echo $ECHO_N "(cached) $ECHO_C" >&6 9227else 9228 rm -f .libs 2>/dev/null 9229mkdir .libs 2>/dev/null 9230if test -d .libs; then 9231 lt_cv_objdir=.libs 9232else 9233 # MS-DOS does not allow filenames that begin with a dot. 9234 lt_cv_objdir=_libs 9235fi 9236rmdir .libs 2>/dev/null 9237fi 9238{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 9239echo "${ECHO_T}$lt_cv_objdir" >&6; } 9240objdir=$lt_cv_objdir 9241 9242 9243 9244 9245 9246case $host_os in 9247aix3*) 9248 # AIX sometimes has problems with the GCC collect2 program. For some 9249 # reason, if we set the COLLECT_NAMES environment variable, the problems 9250 # vanish in a puff of smoke. 9251 if test "X${COLLECT_NAMES+set}" != Xset; then 9252 COLLECT_NAMES= 9253 export COLLECT_NAMES 9254 fi 9255 ;; 9256esac 9257 9258# Sed substitution that helps us do robust quoting. It backslashifies 9259# metacharacters that are still active within double-quoted strings. 9260Xsed='sed -e 1s/^X//' 9261sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 9262 9263# Same as above, but do not quote variable references. 9264double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 9265 9266# Sed substitution to delay expansion of an escaped shell variable in a 9267# double_quote_subst'ed string. 9268delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 9269 9270# Sed substitution to avoid accidental globbing in evaled expressions 9271no_glob_subst='s/\*/\\\*/g' 9272 9273# Constants: 9274rm="rm -f" 9275 9276# Global variables: 9277default_ofile=libtool 9278can_build_shared=yes 9279 9280# All known linkers require a `.a' archive for static linking (except MSVC, 9281# which needs '.lib'). 9282libext=a 9283ltmain="$ac_aux_dir/ltmain.sh" 9284ofile="$default_ofile" 9285with_gnu_ld="$lt_cv_prog_gnu_ld" 9286 9287if test -n "$ac_tool_prefix"; then 9288 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 9289set dummy ${ac_tool_prefix}ar; ac_word=$2 9290{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9292if test "${ac_cv_prog_AR+set}" = set; then 9293 echo $ECHO_N "(cached) $ECHO_C" >&6 9294else 9295 if test -n "$AR"; then 9296 ac_cv_prog_AR="$AR" # Let the user override the test. 9297else 9298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9299for as_dir in $PATH 9300do 9301 IFS=$as_save_IFS 9302 test -z "$as_dir" && as_dir=. 9303 for ac_exec_ext in '' $ac_executable_extensions; do 9304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9305 ac_cv_prog_AR="${ac_tool_prefix}ar" 9306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9307 break 2 9308 fi 9309done 9310done 9311IFS=$as_save_IFS 9312 9313fi 9314fi 9315AR=$ac_cv_prog_AR 9316if test -n "$AR"; then 9317 { echo "$as_me:$LINENO: result: $AR" >&5 9318echo "${ECHO_T}$AR" >&6; } 9319else 9320 { echo "$as_me:$LINENO: result: no" >&5 9321echo "${ECHO_T}no" >&6; } 9322fi 9323 9324 9325fi 9326if test -z "$ac_cv_prog_AR"; then 9327 ac_ct_AR=$AR 9328 # Extract the first word of "ar", so it can be a program name with args. 9329set dummy ar; ac_word=$2 9330{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9332if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 9333 echo $ECHO_N "(cached) $ECHO_C" >&6 9334else 9335 if test -n "$ac_ct_AR"; then 9336 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9337else 9338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9339for as_dir in $PATH 9340do 9341 IFS=$as_save_IFS 9342 test -z "$as_dir" && as_dir=. 9343 for ac_exec_ext in '' $ac_executable_extensions; do 9344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9345 ac_cv_prog_ac_ct_AR="ar" 9346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9347 break 2 9348 fi 9349done 9350done 9351IFS=$as_save_IFS 9352 9353fi 9354fi 9355ac_ct_AR=$ac_cv_prog_ac_ct_AR 9356if test -n "$ac_ct_AR"; then 9357 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 9358echo "${ECHO_T}$ac_ct_AR" >&6; } 9359else 9360 { echo "$as_me:$LINENO: result: no" >&5 9361echo "${ECHO_T}no" >&6; } 9362fi 9363 9364 if test "x$ac_ct_AR" = x; then 9365 AR="false" 9366 else 9367 case $cross_compiling:$ac_tool_warned in 9368yes:) 9369{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 9370whose name does not start with the host triplet. If you think this 9371configuration is useful to you, please write to autoconf@gnu.org." >&5 9372echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 9373whose name does not start with the host triplet. If you think this 9374configuration is useful to you, please write to autoconf@gnu.org." >&2;} 9375ac_tool_warned=yes ;; 9376esac 9377 AR=$ac_ct_AR 9378 fi 9379else 9380 AR="$ac_cv_prog_AR" 9381fi 9382 9383if test -n "$ac_tool_prefix"; then 9384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9385set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9386{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9388if test "${ac_cv_prog_RANLIB+set}" = set; then 9389 echo $ECHO_N "(cached) $ECHO_C" >&6 9390else 9391 if test -n "$RANLIB"; then 9392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9393else 9394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9395for as_dir in $PATH 9396do 9397 IFS=$as_save_IFS 9398 test -z "$as_dir" && as_dir=. 9399 for ac_exec_ext in '' $ac_executable_extensions; do 9400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9401 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9403 break 2 9404 fi 9405done 9406done 9407IFS=$as_save_IFS 9408 9409fi 9410fi 9411RANLIB=$ac_cv_prog_RANLIB 9412if test -n "$RANLIB"; then 9413 { echo "$as_me:$LINENO: result: $RANLIB" >&5 9414echo "${ECHO_T}$RANLIB" >&6; } 9415else 9416 { echo "$as_me:$LINENO: result: no" >&5 9417echo "${ECHO_T}no" >&6; } 9418fi 9419 9420 9421fi 9422if test -z "$ac_cv_prog_RANLIB"; then 9423 ac_ct_RANLIB=$RANLIB 9424 # Extract the first word of "ranlib", so it can be a program name with args. 9425set dummy ranlib; ac_word=$2 9426{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9428if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 9429 echo $ECHO_N "(cached) $ECHO_C" >&6 9430else 9431 if test -n "$ac_ct_RANLIB"; then 9432 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9433else 9434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9435for as_dir in $PATH 9436do 9437 IFS=$as_save_IFS 9438 test -z "$as_dir" && as_dir=. 9439 for ac_exec_ext in '' $ac_executable_extensions; do 9440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9441 ac_cv_prog_ac_ct_RANLIB="ranlib" 9442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9443 break 2 9444 fi 9445done 9446done 9447IFS=$as_save_IFS 9448 9449fi 9450fi 9451ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9452if test -n "$ac_ct_RANLIB"; then 9453 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 9454echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 9455else 9456 { echo "$as_me:$LINENO: result: no" >&5 9457echo "${ECHO_T}no" >&6; } 9458fi 9459 9460 if test "x$ac_ct_RANLIB" = x; then 9461 RANLIB=":" 9462 else 9463 case $cross_compiling:$ac_tool_warned in 9464yes:) 9465{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 9466whose name does not start with the host triplet. If you think this 9467configuration is useful to you, please write to autoconf@gnu.org." >&5 9468echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 9469whose name does not start with the host triplet. If you think this 9470configuration is useful to you, please write to autoconf@gnu.org." >&2;} 9471ac_tool_warned=yes ;; 9472esac 9473 RANLIB=$ac_ct_RANLIB 9474 fi 9475else 9476 RANLIB="$ac_cv_prog_RANLIB" 9477fi 9478 9479if test -n "$ac_tool_prefix"; then 9480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9481set dummy ${ac_tool_prefix}strip; ac_word=$2 9482{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9484if test "${ac_cv_prog_STRIP+set}" = set; then 9485 echo $ECHO_N "(cached) $ECHO_C" >&6 9486else 9487 if test -n "$STRIP"; then 9488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9489else 9490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9491for as_dir in $PATH 9492do 9493 IFS=$as_save_IFS 9494 test -z "$as_dir" && as_dir=. 9495 for ac_exec_ext in '' $ac_executable_extensions; do 9496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9497 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9499 break 2 9500 fi 9501done 9502done 9503IFS=$as_save_IFS 9504 9505fi 9506fi 9507STRIP=$ac_cv_prog_STRIP 9508if test -n "$STRIP"; then 9509 { echo "$as_me:$LINENO: result: $STRIP" >&5 9510echo "${ECHO_T}$STRIP" >&6; } 9511else 9512 { echo "$as_me:$LINENO: result: no" >&5 9513echo "${ECHO_T}no" >&6; } 9514fi 9515 9516 9517fi 9518if test -z "$ac_cv_prog_STRIP"; then 9519 ac_ct_STRIP=$STRIP 9520 # Extract the first word of "strip", so it can be a program name with args. 9521set dummy strip; ac_word=$2 9522{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9524if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 9525 echo $ECHO_N "(cached) $ECHO_C" >&6 9526else 9527 if test -n "$ac_ct_STRIP"; then 9528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9529else 9530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9531for as_dir in $PATH 9532do 9533 IFS=$as_save_IFS 9534 test -z "$as_dir" && as_dir=. 9535 for ac_exec_ext in '' $ac_executable_extensions; do 9536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9537 ac_cv_prog_ac_ct_STRIP="strip" 9538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9539 break 2 9540 fi 9541done 9542done 9543IFS=$as_save_IFS 9544 9545fi 9546fi 9547ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9548if test -n "$ac_ct_STRIP"; then 9549 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 9550echo "${ECHO_T}$ac_ct_STRIP" >&6; } 9551else 9552 { echo "$as_me:$LINENO: result: no" >&5 9553echo "${ECHO_T}no" >&6; } 9554fi 9555 9556 if test "x$ac_ct_STRIP" = x; then 9557 STRIP=":" 9558 else 9559 case $cross_compiling:$ac_tool_warned in 9560yes:) 9561{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 9562whose name does not start with the host triplet. If you think this 9563configuration is useful to you, please write to autoconf@gnu.org." >&5 9564echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 9565whose name does not start with the host triplet. If you think this 9566configuration is useful to you, please write to autoconf@gnu.org." >&2;} 9567ac_tool_warned=yes ;; 9568esac 9569 STRIP=$ac_ct_STRIP 9570 fi 9571else 9572 STRIP="$ac_cv_prog_STRIP" 9573fi 9574 9575 9576old_CC="$CC" 9577old_CFLAGS="$CFLAGS" 9578 9579# Set sane defaults for various variables 9580test -z "$AR" && AR=ar 9581test -z "$AR_FLAGS" && AR_FLAGS=cru 9582test -z "$AS" && AS=as 9583test -z "$CC" && CC=cc 9584test -z "$LTCC" && LTCC=$CC 9585test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9586test -z "$DLLTOOL" && DLLTOOL=dlltool 9587test -z "$LD" && LD=ld 9588test -z "$LN_S" && LN_S="ln -s" 9589test -z "$MAGIC_CMD" && MAGIC_CMD=file 9590test -z "$NM" && NM=nm 9591test -z "$SED" && SED=sed 9592test -z "$OBJDUMP" && OBJDUMP=objdump 9593test -z "$RANLIB" && RANLIB=: 9594test -z "$STRIP" && STRIP=: 9595test -z "$ac_objext" && ac_objext=o 9596 9597# Determine commands to create old-style static archives. 9598old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9599old_postinstall_cmds='chmod 644 $oldlib' 9600old_postuninstall_cmds= 9601 9602if test -n "$RANLIB"; then 9603 case $host_os in 9604 openbsd*) 9605 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 9606 ;; 9607 *) 9608 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 9609 ;; 9610 esac 9611 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 9612fi 9613 9614for cc_temp in $compiler""; do 9615 case $cc_temp in 9616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9618 \-*) ;; 9619 *) break;; 9620 esac 9621done 9622cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9623 9624 9625# Only perform the check for file, if the check method requires it 9626case $deplibs_check_method in 9627file_magic*) 9628 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9629 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 9630echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 9631if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 9632 echo $ECHO_N "(cached) $ECHO_C" >&6 9633else 9634 case $MAGIC_CMD in 9635[\\/*] | ?:[\\/]*) 9636 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9637 ;; 9638*) 9639 lt_save_MAGIC_CMD="$MAGIC_CMD" 9640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9641 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9642 for ac_dir in $ac_dummy; do 9643 IFS="$lt_save_ifs" 9644 test -z "$ac_dir" && ac_dir=. 9645 if test -f $ac_dir/${ac_tool_prefix}file; then 9646 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9647 if test -n "$file_magic_test_file"; then 9648 case $deplibs_check_method in 9649 "file_magic "*) 9650 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9653 $EGREP "$file_magic_regex" > /dev/null; then 9654 : 9655 else 9656 cat <<EOF 1>&2 9657 9658*** Warning: the command libtool uses to detect shared libraries, 9659*** $file_magic_cmd, produces output that libtool cannot recognize. 9660*** The result is that libtool may fail to recognize shared libraries 9661*** as such. This will affect the creation of libtool libraries that 9662*** depend on shared libraries, but programs linked with such libtool 9663*** libraries will work regardless of this problem. Nevertheless, you 9664*** may want to report the problem to your system manager and/or to 9665*** bug-libtool@gnu.org 9666 9667EOF 9668 fi ;; 9669 esac 9670 fi 9671 break 9672 fi 9673 done 9674 IFS="$lt_save_ifs" 9675 MAGIC_CMD="$lt_save_MAGIC_CMD" 9676 ;; 9677esac 9678fi 9679 9680MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9681if test -n "$MAGIC_CMD"; then 9682 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 9683echo "${ECHO_T}$MAGIC_CMD" >&6; } 9684else 9685 { echo "$as_me:$LINENO: result: no" >&5 9686echo "${ECHO_T}no" >&6; } 9687fi 9688 9689if test -z "$lt_cv_path_MAGIC_CMD"; then 9690 if test -n "$ac_tool_prefix"; then 9691 { echo "$as_me:$LINENO: checking for file" >&5 9692echo $ECHO_N "checking for file... $ECHO_C" >&6; } 9693if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 9694 echo $ECHO_N "(cached) $ECHO_C" >&6 9695else 9696 case $MAGIC_CMD in 9697[\\/*] | ?:[\\/]*) 9698 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9699 ;; 9700*) 9701 lt_save_MAGIC_CMD="$MAGIC_CMD" 9702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9703 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9704 for ac_dir in $ac_dummy; do 9705 IFS="$lt_save_ifs" 9706 test -z "$ac_dir" && ac_dir=. 9707 if test -f $ac_dir/file; then 9708 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9709 if test -n "$file_magic_test_file"; then 9710 case $deplibs_check_method in 9711 "file_magic "*) 9712 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9714 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9715 $EGREP "$file_magic_regex" > /dev/null; then 9716 : 9717 else 9718 cat <<EOF 1>&2 9719 9720*** Warning: the command libtool uses to detect shared libraries, 9721*** $file_magic_cmd, produces output that libtool cannot recognize. 9722*** The result is that libtool may fail to recognize shared libraries 9723*** as such. This will affect the creation of libtool libraries that 9724*** depend on shared libraries, but programs linked with such libtool 9725*** libraries will work regardless of this problem. Nevertheless, you 9726*** may want to report the problem to your system manager and/or to 9727*** bug-libtool@gnu.org 9728 9729EOF 9730 fi ;; 9731 esac 9732 fi 9733 break 9734 fi 9735 done 9736 IFS="$lt_save_ifs" 9737 MAGIC_CMD="$lt_save_MAGIC_CMD" 9738 ;; 9739esac 9740fi 9741 9742MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9743if test -n "$MAGIC_CMD"; then 9744 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 9745echo "${ECHO_T}$MAGIC_CMD" >&6; } 9746else 9747 { echo "$as_me:$LINENO: result: no" >&5 9748echo "${ECHO_T}no" >&6; } 9749fi 9750 9751 else 9752 MAGIC_CMD=: 9753 fi 9754fi 9755 9756 fi 9757 ;; 9758esac 9759 9760 9761 case $host_os in 9762 rhapsody* | darwin*) 9763 if test -n "$ac_tool_prefix"; then 9764 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9765set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9766{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9768if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 9769 echo $ECHO_N "(cached) $ECHO_C" >&6 9770else 9771 if test -n "$DSYMUTIL"; then 9772 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9773else 9774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9775for as_dir in $PATH 9776do 9777 IFS=$as_save_IFS 9778 test -z "$as_dir" && as_dir=. 9779 for ac_exec_ext in '' $ac_executable_extensions; do 9780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9781 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9783 break 2 9784 fi 9785done 9786done 9787IFS=$as_save_IFS 9788 9789fi 9790fi 9791DSYMUTIL=$ac_cv_prog_DSYMUTIL 9792if test -n "$DSYMUTIL"; then 9793 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 9794echo "${ECHO_T}$DSYMUTIL" >&6; } 9795else 9796 { echo "$as_me:$LINENO: result: no" >&5 9797echo "${ECHO_T}no" >&6; } 9798fi 9799 9800 9801fi 9802if test -z "$ac_cv_prog_DSYMUTIL"; then 9803 ac_ct_DSYMUTIL=$DSYMUTIL 9804 # Extract the first word of "dsymutil", so it can be a program name with args. 9805set dummy dsymutil; ac_word=$2 9806{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9808if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 9809 echo $ECHO_N "(cached) $ECHO_C" >&6 9810else 9811 if test -n "$ac_ct_DSYMUTIL"; then 9812 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9813else 9814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9815for as_dir in $PATH 9816do 9817 IFS=$as_save_IFS 9818 test -z "$as_dir" && as_dir=. 9819 for ac_exec_ext in '' $ac_executable_extensions; do 9820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9821 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9823 break 2 9824 fi 9825done 9826done 9827IFS=$as_save_IFS 9828 9829fi 9830fi 9831ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9832if test -n "$ac_ct_DSYMUTIL"; then 9833 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 9834echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 9835else 9836 { echo "$as_me:$LINENO: result: no" >&5 9837echo "${ECHO_T}no" >&6; } 9838fi 9839 9840 if test "x$ac_ct_DSYMUTIL" = x; then 9841 DSYMUTIL=":" 9842 else 9843 case $cross_compiling:$ac_tool_warned in 9844yes:) 9845{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 9846whose name does not start with the host triplet. If you think this 9847configuration is useful to you, please write to autoconf@gnu.org." >&5 9848echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 9849whose name does not start with the host triplet. If you think this 9850configuration is useful to you, please write to autoconf@gnu.org." >&2;} 9851ac_tool_warned=yes ;; 9852esac 9853 DSYMUTIL=$ac_ct_DSYMUTIL 9854 fi 9855else 9856 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9857fi 9858 9859 if test -n "$ac_tool_prefix"; then 9860 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9861set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9862{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9864if test "${ac_cv_prog_NMEDIT+set}" = set; then 9865 echo $ECHO_N "(cached) $ECHO_C" >&6 9866else 9867 if test -n "$NMEDIT"; then 9868 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9869else 9870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9871for as_dir in $PATH 9872do 9873 IFS=$as_save_IFS 9874 test -z "$as_dir" && as_dir=. 9875 for ac_exec_ext in '' $ac_executable_extensions; do 9876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9877 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9879 break 2 9880 fi 9881done 9882done 9883IFS=$as_save_IFS 9884 9885fi 9886fi 9887NMEDIT=$ac_cv_prog_NMEDIT 9888if test -n "$NMEDIT"; then 9889 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 9890echo "${ECHO_T}$NMEDIT" >&6; } 9891else 9892 { echo "$as_me:$LINENO: result: no" >&5 9893echo "${ECHO_T}no" >&6; } 9894fi 9895 9896 9897fi 9898if test -z "$ac_cv_prog_NMEDIT"; then 9899 ac_ct_NMEDIT=$NMEDIT 9900 # Extract the first word of "nmedit", so it can be a program name with args. 9901set dummy nmedit; ac_word=$2 9902{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9904if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 9905 echo $ECHO_N "(cached) $ECHO_C" >&6 9906else 9907 if test -n "$ac_ct_NMEDIT"; then 9908 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9909else 9910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9911for as_dir in $PATH 9912do 9913 IFS=$as_save_IFS 9914 test -z "$as_dir" && as_dir=. 9915 for ac_exec_ext in '' $ac_executable_extensions; do 9916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9917 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9919 break 2 9920 fi 9921done 9922done 9923IFS=$as_save_IFS 9924 9925fi 9926fi 9927ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9928if test -n "$ac_ct_NMEDIT"; then 9929 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 9930echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 9931else 9932 { echo "$as_me:$LINENO: result: no" >&5 9933echo "${ECHO_T}no" >&6; } 9934fi 9935 9936 if test "x$ac_ct_NMEDIT" = x; then 9937 NMEDIT=":" 9938 else 9939 case $cross_compiling:$ac_tool_warned in 9940yes:) 9941{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 9942whose name does not start with the host triplet. If you think this 9943configuration is useful to you, please write to autoconf@gnu.org." >&5 9944echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 9945whose name does not start with the host triplet. If you think this 9946configuration is useful to you, please write to autoconf@gnu.org." >&2;} 9947ac_tool_warned=yes ;; 9948esac 9949 NMEDIT=$ac_ct_NMEDIT 9950 fi 9951else 9952 NMEDIT="$ac_cv_prog_NMEDIT" 9953fi 9954 9955 9956 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 9957echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 9958if test "${lt_cv_apple_cc_single_mod+set}" = set; then 9959 echo $ECHO_N "(cached) $ECHO_C" >&6 9960else 9961 lt_cv_apple_cc_single_mod=no 9962 if test -z "${LT_MULTI_MODULE}"; then 9963 # By default we will add the -single_module flag. You can override 9964 # by either setting the environment variable LT_MULTI_MODULE 9965 # non-empty at configure time, or by adding -multi_module to the 9966 # link flags. 9967 echo "int foo(void){return 1;}" > conftest.c 9968 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9969 -dynamiclib ${wl}-single_module conftest.c 9970 if test -f libconftest.dylib; then 9971 lt_cv_apple_cc_single_mod=yes 9972 rm -rf libconftest.dylib* 9973 fi 9974 rm conftest.c 9975 fi 9976fi 9977{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 9978echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 9979 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 9980echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 9981if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 9982 echo $ECHO_N "(cached) $ECHO_C" >&6 9983else 9984 lt_cv_ld_exported_symbols_list=no 9985 save_LDFLAGS=$LDFLAGS 9986 echo "_main" > conftest.sym 9987 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9988 cat >conftest.$ac_ext <<_ACEOF 9989/* confdefs.h. */ 9990_ACEOF 9991cat confdefs.h >>conftest.$ac_ext 9992cat >>conftest.$ac_ext <<_ACEOF 9993/* end confdefs.h. */ 9994 9995int 9996main () 9997{ 9998 9999 ; 10000 return 0; 10001} 10002_ACEOF 10003rm -f conftest.$ac_objext conftest$ac_exeext 10004if { (ac_try="$ac_link" 10005case "(($ac_try" in 10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10007 *) ac_try_echo=$ac_try;; 10008esac 10009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10010 (eval "$ac_link") 2>conftest.er1 10011 ac_status=$? 10012 grep -v '^ *+' conftest.er1 >conftest.err 10013 rm -f conftest.er1 10014 cat conftest.err >&5 10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10016 (exit $ac_status); } && { 10017 test -z "$ac_c_werror_flag" || 10018 test ! -s conftest.err 10019 } && test -s conftest$ac_exeext && 10020 $as_test_x conftest$ac_exeext; then 10021 lt_cv_ld_exported_symbols_list=yes 10022else 10023 echo "$as_me: failed program was:" >&5 10024sed 's/^/| /' conftest.$ac_ext >&5 10025 10026 lt_cv_ld_exported_symbols_list=no 10027fi 10028 10029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10030 conftest$ac_exeext conftest.$ac_ext 10031 LDFLAGS="$save_LDFLAGS" 10032 10033fi 10034{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 10035echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 10036 case $host_os in 10037 rhapsody* | darwin1.[0123]) 10038 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 10039 darwin1.*) 10040 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10041 darwin*) 10042 # if running on 10.5 or later, the deployment target defaults 10043 # to the OS version, if on x86, and 10.4, the deployment 10044 # target defaults to 10.4. Don't you love it? 10045 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10046 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10047 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10048 10.[012]*) 10049 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10050 10.*) 10051 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10052 esac 10053 ;; 10054 esac 10055 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 10056 _lt_dar_single_mod='$single_module' 10057 fi 10058 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 10059 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 10060 else 10061 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 10062 fi 10063 if test "$DSYMUTIL" != ":"; then 10064 _lt_dsymutil="~$DSYMUTIL \$lib || :" 10065 else 10066 _lt_dsymutil= 10067 fi 10068 ;; 10069 esac 10070 10071 10072enable_dlopen=no 10073enable_win32_dll=no 10074 10075# Check whether --enable-libtool-lock was given. 10076if test "${enable_libtool_lock+set}" = set; then 10077 enableval=$enable_libtool_lock; 10078fi 10079 10080test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 10081 10082 10083# Check whether --with-pic was given. 10084if test "${with_pic+set}" = set; then 10085 withval=$with_pic; pic_mode="$withval" 10086else 10087 pic_mode=default 10088fi 10089 10090test -z "$pic_mode" && pic_mode=default 10091 10092# Use C for the default configuration in the libtool script 10093tagname= 10094lt_save_CC="$CC" 10095ac_ext=c 10096ac_cpp='$CPP $CPPFLAGS' 10097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10099ac_compiler_gnu=$ac_cv_c_compiler_gnu 10100 10101 10102# Source file extension for C test sources. 10103ac_ext=c 10104 10105# Object file extension for compiled C test sources. 10106objext=o 10107objext=$objext 10108 10109# Code to be used in simple compile tests 10110lt_simple_compile_test_code="int some_variable = 0;" 10111 10112# Code to be used in simple link tests 10113lt_simple_link_test_code='int main(){return(0);}' 10114 10115 10116# If no C compiler was specified, use CC. 10117LTCC=${LTCC-"$CC"} 10118 10119# If no C compiler flags were specified, use CFLAGS. 10120LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10121 10122# Allow CC to be a program name with arguments. 10123compiler=$CC 10124 10125 10126# save warnings/boilerplate of simple test code 10127ac_outfile=conftest.$ac_objext 10128echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10129eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10130_lt_compiler_boilerplate=`cat conftest.err` 10131$rm conftest* 10132 10133ac_outfile=conftest.$ac_objext 10134echo "$lt_simple_link_test_code" >conftest.$ac_ext 10135eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10136_lt_linker_boilerplate=`cat conftest.err` 10137$rm -r conftest* 10138 10139 10140 10141lt_prog_compiler_no_builtin_flag= 10142 10143if test "$GCC" = yes; then 10144 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 10145 10146 10147{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10148echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 10149if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 10150 echo $ECHO_N "(cached) $ECHO_C" >&6 10151else 10152 lt_cv_prog_compiler_rtti_exceptions=no 10153 ac_outfile=conftest.$ac_objext 10154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10155 lt_compiler_flag="-fno-rtti -fno-exceptions" 10156 # Insert the option either (1) after the last *FLAGS variable, or 10157 # (2) before a word containing "conftest.", or (3) at the end. 10158 # Note that $ac_compile itself does not contain backslashes and begins 10159 # with a dollar sign (not a hyphen), so the echo should work correctly. 10160 # The option is referenced via a variable to avoid confusing sed. 10161 lt_compile=`echo "$ac_compile" | $SED \ 10162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10164 -e 's:$: $lt_compiler_flag:'` 10165 (eval echo "\"\$as_me:10165: $lt_compile\"" >&5) 10166 (eval "$lt_compile" 2>conftest.err) 10167 ac_status=$? 10168 cat conftest.err >&5 10169 echo "$as_me:10169: \$? = $ac_status" >&5 10170 if (exit $ac_status) && test -s "$ac_outfile"; then 10171 # The compiler can only warn and ignore the option if not recognized 10172 # So say no if there are warnings other than the usual output. 10173 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 10174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10175 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10176 lt_cv_prog_compiler_rtti_exceptions=yes 10177 fi 10178 fi 10179 $rm conftest* 10180 10181fi 10182{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10183echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10184 10185if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10186 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10187else 10188 : 10189fi 10190 10191fi 10192 10193lt_prog_compiler_wl= 10194lt_prog_compiler_pic= 10195lt_prog_compiler_static= 10196 10197{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10198echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 10199 10200 if test "$GCC" = yes; then 10201 lt_prog_compiler_wl='-Wl,' 10202 lt_prog_compiler_static='-static' 10203 10204 case $host_os in 10205 aix*) 10206 # All AIX code is PIC. 10207 if test "$host_cpu" = ia64; then 10208 # AIX 5 now supports IA64 processor 10209 lt_prog_compiler_static='-Bstatic' 10210 fi 10211 ;; 10212 10213 amigaos*) 10214 # FIXME: we need at least 68020 code to build shared libraries, but 10215 # adding the `-m68020' flag to GCC prevents building anything better, 10216 # like `-m68040'. 10217 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10218 ;; 10219 10220 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10221 # PIC is the default for these OSes. 10222 ;; 10223 10224 mingw* | cygwin* | pw32* | os2*) 10225 # This hack is so that the source file can tell whether it is being 10226 # built for inclusion in a dll (and should export symbols for example). 10227 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10228 # (--disable-auto-import) libraries 10229 lt_prog_compiler_pic='-DDLL_EXPORT' 10230 ;; 10231 10232 darwin* | rhapsody*) 10233 # PIC is the default on this platform 10234 # Common symbols not allowed in MH_DYLIB files 10235 lt_prog_compiler_pic='-fno-common' 10236 ;; 10237 10238 interix[3-9]*) 10239 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10240 # Instead, we relocate shared libraries at runtime. 10241 ;; 10242 10243 msdosdjgpp*) 10244 # Just because we use GCC doesn't mean we suddenly get shared libraries 10245 # on systems that don't support them. 10246 lt_prog_compiler_can_build_shared=no 10247 enable_shared=no 10248 ;; 10249 10250 sysv4*MP*) 10251 if test -d /usr/nec; then 10252 lt_prog_compiler_pic=-Kconform_pic 10253 fi 10254 ;; 10255 10256 hpux*) 10257 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10258 # not for PA HP-UX. 10259 case $host_cpu in 10260 hppa*64*|ia64*) 10261 # +Z the default 10262 ;; 10263 *) 10264 lt_prog_compiler_pic='-fPIC' 10265 ;; 10266 esac 10267 ;; 10268 10269 *) 10270 lt_prog_compiler_pic='-fPIC' 10271 ;; 10272 esac 10273 else 10274 # PORTME Check for flag to pass linker flags through the system compiler. 10275 case $host_os in 10276 aix*) 10277 lt_prog_compiler_wl='-Wl,' 10278 if test "$host_cpu" = ia64; then 10279 # AIX 5 now supports IA64 processor 10280 lt_prog_compiler_static='-Bstatic' 10281 else 10282 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10283 fi 10284 ;; 10285 darwin*) 10286 # PIC is the default on this platform 10287 # Common symbols not allowed in MH_DYLIB files 10288 case $cc_basename in 10289 xlc*) 10290 lt_prog_compiler_pic='-qnocommon' 10291 lt_prog_compiler_wl='-Wl,' 10292 ;; 10293 esac 10294 ;; 10295 10296 mingw* | cygwin* | pw32* | os2*) 10297 # This hack is so that the source file can tell whether it is being 10298 # built for inclusion in a dll (and should export symbols for example). 10299 lt_prog_compiler_pic='-DDLL_EXPORT' 10300 ;; 10301 10302 hpux9* | hpux10* | hpux11*) 10303 lt_prog_compiler_wl='-Wl,' 10304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10305 # not for PA HP-UX. 10306 case $host_cpu in 10307 hppa*64*|ia64*) 10308 # +Z the default 10309 ;; 10310 *) 10311 lt_prog_compiler_pic='+Z' 10312 ;; 10313 esac 10314 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10315 lt_prog_compiler_static='${wl}-a ${wl}archive' 10316 ;; 10317 10318 irix5* | irix6* | nonstopux*) 10319 lt_prog_compiler_wl='-Wl,' 10320 # PIC (with -KPIC) is the default. 10321 lt_prog_compiler_static='-non_shared' 10322 ;; 10323 10324 newsos6) 10325 lt_prog_compiler_pic='-KPIC' 10326 lt_prog_compiler_static='-Bstatic' 10327 ;; 10328 10329 linux* | k*bsd*-gnu) 10330 case $cc_basename in 10331 icc* | ecc*) 10332 lt_prog_compiler_wl='-Wl,' 10333 lt_prog_compiler_pic='-KPIC' 10334 lt_prog_compiler_static='-static' 10335 ;; 10336 pgcc* | pgf77* | pgf90* | pgf95*) 10337 # Portland Group compilers (*not* the Pentium gcc compiler, 10338 # which looks to be a dead project) 10339 lt_prog_compiler_wl='-Wl,' 10340 lt_prog_compiler_pic='-fpic' 10341 lt_prog_compiler_static='-Bstatic' 10342 ;; 10343 ccc*) 10344 lt_prog_compiler_wl='-Wl,' 10345 # All Alpha code is PIC. 10346 lt_prog_compiler_static='-non_shared' 10347 ;; 10348 *) 10349 case `$CC -V 2>&1 | sed 5q` in 10350 *Sun\ C*) 10351 # Sun C 5.9 10352 lt_prog_compiler_pic='-KPIC' 10353 lt_prog_compiler_static='-Bstatic' 10354 lt_prog_compiler_wl='-Wl,' 10355 ;; 10356 *Sun\ F*) 10357 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10358 lt_prog_compiler_pic='-KPIC' 10359 lt_prog_compiler_static='-Bstatic' 10360 lt_prog_compiler_wl='' 10361 ;; 10362 esac 10363 ;; 10364 esac 10365 ;; 10366 10367 osf3* | osf4* | osf5*) 10368 lt_prog_compiler_wl='-Wl,' 10369 # All OSF/1 code is PIC. 10370 lt_prog_compiler_static='-non_shared' 10371 ;; 10372 10373 rdos*) 10374 lt_prog_compiler_static='-non_shared' 10375 ;; 10376 10377 solaris*) 10378 lt_prog_compiler_pic='-KPIC' 10379 lt_prog_compiler_static='-Bstatic' 10380 case $cc_basename in 10381 f77* | f90* | f95*) 10382 lt_prog_compiler_wl='-Qoption ld ';; 10383 *) 10384 lt_prog_compiler_wl='-Wl,';; 10385 esac 10386 ;; 10387 10388 sunos4*) 10389 lt_prog_compiler_wl='-Qoption ld ' 10390 lt_prog_compiler_pic='-PIC' 10391 lt_prog_compiler_static='-Bstatic' 10392 ;; 10393 10394 sysv4 | sysv4.2uw2* | sysv4.3*) 10395 lt_prog_compiler_wl='-Wl,' 10396 lt_prog_compiler_pic='-KPIC' 10397 lt_prog_compiler_static='-Bstatic' 10398 ;; 10399 10400 sysv4*MP*) 10401 if test -d /usr/nec ;then 10402 lt_prog_compiler_pic='-Kconform_pic' 10403 lt_prog_compiler_static='-Bstatic' 10404 fi 10405 ;; 10406 10407 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10408 lt_prog_compiler_wl='-Wl,' 10409 lt_prog_compiler_pic='-KPIC' 10410 lt_prog_compiler_static='-Bstatic' 10411 ;; 10412 10413 unicos*) 10414 lt_prog_compiler_wl='-Wl,' 10415 lt_prog_compiler_can_build_shared=no 10416 ;; 10417 10418 uts4*) 10419 lt_prog_compiler_pic='-pic' 10420 lt_prog_compiler_static='-Bstatic' 10421 ;; 10422 10423 *) 10424 lt_prog_compiler_can_build_shared=no 10425 ;; 10426 esac 10427 fi 10428 10429{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 10430echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 10431 10432# 10433# Check to make sure the PIC flag actually works. 10434# 10435if test -n "$lt_prog_compiler_pic"; then 10436 10437{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10438echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 10439if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 10440 echo $ECHO_N "(cached) $ECHO_C" >&6 10441else 10442 lt_cv_prog_compiler_pic_works=no 10443 ac_outfile=conftest.$ac_objext 10444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10445 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10446 # Insert the option either (1) after the last *FLAGS variable, or 10447 # (2) before a word containing "conftest.", or (3) at the end. 10448 # Note that $ac_compile itself does not contain backslashes and begins 10449 # with a dollar sign (not a hyphen), so the echo should work correctly. 10450 # The option is referenced via a variable to avoid confusing sed. 10451 lt_compile=`echo "$ac_compile" | $SED \ 10452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10454 -e 's:$: $lt_compiler_flag:'` 10455 (eval echo "\"\$as_me:10455: $lt_compile\"" >&5) 10456 (eval "$lt_compile" 2>conftest.err) 10457 ac_status=$? 10458 cat conftest.err >&5 10459 echo "$as_me:10459: \$? = $ac_status" >&5 10460 if (exit $ac_status) && test -s "$ac_outfile"; then 10461 # The compiler can only warn and ignore the option if not recognized 10462 # So say no if there are warnings other than the usual output. 10463 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 10464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10466 lt_cv_prog_compiler_pic_works=yes 10467 fi 10468 fi 10469 $rm conftest* 10470 10471fi 10472{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 10473echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 10474 10475if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10476 case $lt_prog_compiler_pic in 10477 "" | " "*) ;; 10478 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10479 esac 10480else 10481 lt_prog_compiler_pic= 10482 lt_prog_compiler_can_build_shared=no 10483fi 10484 10485fi 10486case $host_os in 10487 # For platforms which do not support PIC, -DPIC is meaningless: 10488 *djgpp*) 10489 lt_prog_compiler_pic= 10490 ;; 10491 *) 10492 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10493 ;; 10494esac 10495 10496# 10497# Check to make sure the static flag actually works. 10498# 10499wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10500{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10501echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 10502if test "${lt_cv_prog_compiler_static_works+set}" = set; then 10503 echo $ECHO_N "(cached) $ECHO_C" >&6 10504else 10505 lt_cv_prog_compiler_static_works=no 10506 save_LDFLAGS="$LDFLAGS" 10507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10508 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10510 # The linker can only warn and ignore the option if not recognized 10511 # So say no if there are warnings 10512 if test -s conftest.err; then 10513 # Append any errors to the config.log. 10514 cat conftest.err 1>&5 10515 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 10516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10517 if diff conftest.exp conftest.er2 >/dev/null; then 10518 lt_cv_prog_compiler_static_works=yes 10519 fi 10520 else 10521 lt_cv_prog_compiler_static_works=yes 10522 fi 10523 fi 10524 $rm -r conftest* 10525 LDFLAGS="$save_LDFLAGS" 10526 10527fi 10528{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 10529echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 10530 10531if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10532 : 10533else 10534 lt_prog_compiler_static= 10535fi 10536 10537 10538{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 10539echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 10540if test "${lt_cv_prog_compiler_c_o+set}" = set; then 10541 echo $ECHO_N "(cached) $ECHO_C" >&6 10542else 10543 lt_cv_prog_compiler_c_o=no 10544 $rm -r conftest 2>/dev/null 10545 mkdir conftest 10546 cd conftest 10547 mkdir out 10548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10549 10550 lt_compiler_flag="-o out/conftest2.$ac_objext" 10551 # Insert the option either (1) after the last *FLAGS variable, or 10552 # (2) before a word containing "conftest.", or (3) at the end. 10553 # Note that $ac_compile itself does not contain backslashes and begins 10554 # with a dollar sign (not a hyphen), so the echo should work correctly. 10555 lt_compile=`echo "$ac_compile" | $SED \ 10556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10558 -e 's:$: $lt_compiler_flag:'` 10559 (eval echo "\"\$as_me:10559: $lt_compile\"" >&5) 10560 (eval "$lt_compile" 2>out/conftest.err) 10561 ac_status=$? 10562 cat out/conftest.err >&5 10563 echo "$as_me:10563: \$? = $ac_status" >&5 10564 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10565 then 10566 # The compiler can only warn and ignore the option if not recognized 10567 # So say no if there are warnings 10568 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 10569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10571 lt_cv_prog_compiler_c_o=yes 10572 fi 10573 fi 10574 chmod u+w . 2>&5 10575 $rm conftest* 10576 # SGI C++ compiler will create directory out/ii_files/ for 10577 # template instantiation 10578 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 10579 $rm out/* && rmdir out 10580 cd .. 10581 rmdir conftest 10582 $rm conftest* 10583 10584fi 10585{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 10586echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 10587 10588 10589hard_links="nottested" 10590if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10591 # do not overwrite the value of need_locks provided by the user 10592 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 10593echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 10594 hard_links=yes 10595 $rm conftest* 10596 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10597 touch conftest.a 10598 ln conftest.a conftest.b 2>&5 || hard_links=no 10599 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10600 { echo "$as_me:$LINENO: result: $hard_links" >&5 10601echo "${ECHO_T}$hard_links" >&6; } 10602 if test "$hard_links" = no; then 10603 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10604echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10605 need_locks=warn 10606 fi 10607else 10608 need_locks=no 10609fi 10610 10611{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10612echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10613 10614 runpath_var= 10615 allow_undefined_flag= 10616 enable_shared_with_static_runtimes=no 10617 archive_cmds= 10618 archive_expsym_cmds= 10619 old_archive_From_new_cmds= 10620 old_archive_from_expsyms_cmds= 10621 export_dynamic_flag_spec= 10622 whole_archive_flag_spec= 10623 thread_safe_flag_spec= 10624 hardcode_libdir_flag_spec= 10625 hardcode_libdir_flag_spec_ld= 10626 hardcode_libdir_separator= 10627 hardcode_direct=no 10628 hardcode_minus_L=no 10629 hardcode_shlibpath_var=unsupported 10630 link_all_deplibs=unknown 10631 hardcode_automatic=no 10632 module_cmds= 10633 module_expsym_cmds= 10634 always_export_symbols=no 10635 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10636 # include_expsyms should be a list of space-separated symbols to be *always* 10637 # included in the symbol list 10638 include_expsyms= 10639 # exclude_expsyms can be an extended regexp of symbols to exclude 10640 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10641 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10642 # as well as any symbol that contains `d'. 10643 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10644 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10645 # platforms (ab)use it in PIC code, but their linkers get confused if 10646 # the symbol is explicitly referenced. Since portable code cannot 10647 # rely on this symbol name, it's probably fine to never include it in 10648 # preloaded symbol tables. 10649 # Exclude shared library initialization/finalization symbols. 10650 extract_expsyms_cmds= 10651 # Just being paranoid about ensuring that cc_basename is set. 10652 for cc_temp in $compiler""; do 10653 case $cc_temp in 10654 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10655 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10656 \-*) ;; 10657 *) break;; 10658 esac 10659done 10660cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10661 10662 case $host_os in 10663 cygwin* | mingw* | pw32*) 10664 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10665 # When not using gcc, we currently assume that we are using 10666 # Microsoft Visual C++. 10667 if test "$GCC" != yes; then 10668 with_gnu_ld=no 10669 fi 10670 ;; 10671 interix*) 10672 # we just hope/assume this is gcc and not c89 (= MSVC++) 10673 with_gnu_ld=yes 10674 ;; 10675 openbsd*) 10676 with_gnu_ld=no 10677 ;; 10678 esac 10679 10680 ld_shlibs=yes 10681 if test "$with_gnu_ld" = yes; then 10682 # If archive_cmds runs LD, not CC, wlarc should be empty 10683 wlarc='${wl}' 10684 10685 # Set some defaults for GNU ld with shared library support. These 10686 # are reset later if shared libraries are not supported. Putting them 10687 # here allows them to be overridden if necessary. 10688 runpath_var=LD_RUN_PATH 10689 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 10690 export_dynamic_flag_spec='${wl}--export-dynamic' 10691 # ancient GNU ld didn't support --whole-archive et. al. 10692 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 10693 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10694 else 10695 whole_archive_flag_spec= 10696 fi 10697 supports_anon_versioning=no 10698 case `$LD -v 2>/dev/null` in 10699 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10700 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10701 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10702 *\ 2.11.*) ;; # other 2.11 versions 10703 *) supports_anon_versioning=yes ;; 10704 esac 10705 10706 # See if GNU ld supports shared libraries. 10707 case $host_os in 10708 aix[3-9]*) 10709 # On AIX/PPC, the GNU linker is very broken 10710 if test "$host_cpu" != ia64; then 10711 ld_shlibs=no 10712 cat <<EOF 1>&2 10713 10714*** Warning: the GNU linker, at least up to release 2.9.1, is reported 10715*** to be unable to reliably create shared libraries on AIX. 10716*** Therefore, libtool is disabling shared libraries support. If you 10717*** really care for shared libraries, you may want to modify your PATH 10718*** so that a non-GNU linker is found, and then restart. 10719 10720EOF 10721 fi 10722 ;; 10723 10724 amigaos*) 10725 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)' 10726 hardcode_libdir_flag_spec='-L$libdir' 10727 hardcode_minus_L=yes 10728 10729 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 10730 # that the semantics of dynamic libraries on AmigaOS, at least up 10731 # to version 4, is to share data among multiple programs linked 10732 # with the same dynamic library. Since this doesn't match the 10733 # behavior of shared libraries on other platforms, we can't use 10734 # them. 10735 ld_shlibs=no 10736 ;; 10737 10738 beos*) 10739 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10740 allow_undefined_flag=unsupported 10741 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10742 # support --undefined. This deserves some investigation. FIXME 10743 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10744 else 10745 ld_shlibs=no 10746 fi 10747 ;; 10748 10749 cygwin* | mingw* | pw32*) 10750 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10751 # as there is no search path for DLLs. 10752 hardcode_libdir_flag_spec='-L$libdir' 10753 allow_undefined_flag=unsupported 10754 always_export_symbols=no 10755 enable_shared_with_static_runtimes=yes 10756 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10757 10758 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10760 # If the export-symbols file already is a .def file (1st line 10761 # is EXPORTS), use it as is; otherwise, prepend... 10762 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10763 cp $export_symbols $output_objdir/$soname.def; 10764 else 10765 echo EXPORTS > $output_objdir/$soname.def; 10766 cat $export_symbols >> $output_objdir/$soname.def; 10767 fi~ 10768 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10769 else 10770 ld_shlibs=no 10771 fi 10772 ;; 10773 10774 interix[3-9]*) 10775 hardcode_direct=no 10776 hardcode_shlibpath_var=no 10777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10778 export_dynamic_flag_spec='${wl}-E' 10779 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10780 # Instead, shared libraries are loaded at an image base (0x10000000 by 10781 # default) and relocated if they conflict, which is a slow very memory 10782 # consuming and fragmenting process. To avoid this, we pick a random, 10783 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10784 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10786 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' 10787 ;; 10788 10789 gnu* | linux* | k*bsd*-gnu) 10790 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10791 tmp_addflag= 10792 case $cc_basename,$host_cpu in 10793 pgcc*) # Portland Group C compiler 10794 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' 10795 tmp_addflag=' $pic_flag' 10796 ;; 10797 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 10798 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' 10799 tmp_addflag=' $pic_flag -Mnomain' ;; 10800 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10801 tmp_addflag=' -i_dynamic' ;; 10802 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10803 tmp_addflag=' -i_dynamic -nofor_main' ;; 10804 ifc* | ifort*) # Intel Fortran compiler 10805 tmp_addflag=' -nofor_main' ;; 10806 esac 10807 case `$CC -V 2>&1 | sed 5q` in 10808 *Sun\ C*) # Sun C 5.9 10809 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 10810 tmp_sharedflag='-G' ;; 10811 *Sun\ F*) # Sun Fortran 8.3 10812 tmp_sharedflag='-G' ;; 10813 *) 10814 tmp_sharedflag='-shared' ;; 10815 esac 10816 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10817 10818 if test $supports_anon_versioning = yes; then 10819 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 10820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10821 $echo "local: *; };" >> $output_objdir/$libname.ver~ 10822 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10823 fi 10824 link_all_deplibs=no 10825 else 10826 ld_shlibs=no 10827 fi 10828 ;; 10829 10830 netbsd* | netbsdelf*-gnu) 10831 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10832 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10833 wlarc= 10834 else 10835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10836 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10837 fi 10838 ;; 10839 10840 solaris*) 10841 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 10842 ld_shlibs=no 10843 cat <<EOF 1>&2 10844 10845*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10846*** create shared libraries on Solaris systems. Therefore, libtool 10847*** is disabling shared libraries support. We urge you to upgrade GNU 10848*** binutils to release 2.9.1 or newer. Another option is to modify 10849*** your PATH or compiler configuration so that the native linker is 10850*** used, and then restart. 10851 10852EOF 10853 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10855 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10856 else 10857 ld_shlibs=no 10858 fi 10859 ;; 10860 10861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10862 case `$LD -v 2>&1` in 10863 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10864 ld_shlibs=no 10865 cat <<_LT_EOF 1>&2 10866 10867*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10868*** reliably create shared libraries on SCO systems. Therefore, libtool 10869*** is disabling shared libraries support. We urge you to upgrade GNU 10870*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10871*** your PATH or compiler configuration so that the native linker is 10872*** used, and then restart. 10873 10874_LT_EOF 10875 ;; 10876 *) 10877 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10878 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 10879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 10880 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 10881 else 10882 ld_shlibs=no 10883 fi 10884 ;; 10885 esac 10886 ;; 10887 10888 sunos4*) 10889 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10890 wlarc= 10891 hardcode_direct=yes 10892 hardcode_shlibpath_var=no 10893 ;; 10894 10895 *) 10896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10898 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10899 else 10900 ld_shlibs=no 10901 fi 10902 ;; 10903 esac 10904 10905 if test "$ld_shlibs" = no; then 10906 runpath_var= 10907 hardcode_libdir_flag_spec= 10908 export_dynamic_flag_spec= 10909 whole_archive_flag_spec= 10910 fi 10911 else 10912 # PORTME fill in a description of your system's linker (not GNU ld) 10913 case $host_os in 10914 aix3*) 10915 allow_undefined_flag=unsupported 10916 always_export_symbols=yes 10917 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' 10918 # Note: this linker hardcodes the directories in LIBPATH if there 10919 # are no directories specified by -L. 10920 hardcode_minus_L=yes 10921 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10922 # Neither direct hardcoding nor static linking is supported with a 10923 # broken collect2. 10924 hardcode_direct=unsupported 10925 fi 10926 ;; 10927 10928 aix[4-9]*) 10929 if test "$host_cpu" = ia64; then 10930 # On IA64, the linker does run time linking by default, so we don't 10931 # have to do anything special. 10932 aix_use_runtimelinking=no 10933 exp_sym_flag='-Bexport' 10934 no_entry_flag="" 10935 else 10936 # If we're using GNU nm, then we don't want the "-C" option. 10937 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10938 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 10939 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' 10940 else 10941 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' 10942 fi 10943 aix_use_runtimelinking=no 10944 10945 # Test if we are trying to use run time linking or normal 10946 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10947 # need to do runtime linking. 10948 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10949 for ld_flag in $LDFLAGS; do 10950 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10951 aix_use_runtimelinking=yes 10952 break 10953 fi 10954 done 10955 ;; 10956 esac 10957 10958 exp_sym_flag='-bexport' 10959 no_entry_flag='-bnoentry' 10960 fi 10961 10962 # When large executables or shared objects are built, AIX ld can 10963 # have problems creating the table of contents. If linking a library 10964 # or program results in "error TOC overflow" add -mminimal-toc to 10965 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10966 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10967 10968 archive_cmds='' 10969 hardcode_direct=yes 10970 hardcode_libdir_separator=':' 10971 link_all_deplibs=yes 10972 10973 if test "$GCC" = yes; then 10974 case $host_os in aix4.[012]|aix4.[012].*) 10975 # We only want to do this on AIX 4.2 and lower, the check 10976 # below for broken collect2 doesn't work under 4.3+ 10977 collect2name=`${CC} -print-prog-name=collect2` 10978 if test -f "$collect2name" && \ 10979 strings "$collect2name" | grep resolve_lib_name >/dev/null 10980 then 10981 # We have reworked collect2 10982 : 10983 else 10984 # We have old collect2 10985 hardcode_direct=unsupported 10986 # It fails to find uninstalled libraries when the uninstalled 10987 # path is not listed in the libpath. Setting hardcode_minus_L 10988 # to unsupported forces relinking 10989 hardcode_minus_L=yes 10990 hardcode_libdir_flag_spec='-L$libdir' 10991 hardcode_libdir_separator= 10992 fi 10993 ;; 10994 esac 10995 shared_flag='-shared' 10996 if test "$aix_use_runtimelinking" = yes; then 10997 shared_flag="$shared_flag "'${wl}-G' 10998 fi 10999 else 11000 # not using gcc 11001 if test "$host_cpu" = ia64; then 11002 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11003 # chokes on -Wl,-G. The following line is correct: 11004 shared_flag='-G' 11005 else 11006 if test "$aix_use_runtimelinking" = yes; then 11007 shared_flag='${wl}-G' 11008 else 11009 shared_flag='${wl}-bM:SRE' 11010 fi 11011 fi 11012 fi 11013 11014 # It seems that -bexpall does not export symbols beginning with 11015 # underscore (_), so it is better to generate a list of symbols to export. 11016 always_export_symbols=yes 11017 if test "$aix_use_runtimelinking" = yes; then 11018 # Warning - without using the other runtime loading flags (-brtl), 11019 # -berok will link without error, but may produce a broken library. 11020 allow_undefined_flag='-berok' 11021 # Determine the default libpath from the value encoded in an empty executable. 11022 cat >conftest.$ac_ext <<_ACEOF 11023/* confdefs.h. */ 11024_ACEOF 11025cat confdefs.h >>conftest.$ac_ext 11026cat >>conftest.$ac_ext <<_ACEOF 11027/* end confdefs.h. */ 11028 11029int 11030main () 11031{ 11032 11033 ; 11034 return 0; 11035} 11036_ACEOF 11037rm -f conftest.$ac_objext conftest$ac_exeext 11038if { (ac_try="$ac_link" 11039case "(($ac_try" in 11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11041 *) ac_try_echo=$ac_try;; 11042esac 11043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11044 (eval "$ac_link") 2>conftest.er1 11045 ac_status=$? 11046 grep -v '^ *+' conftest.er1 >conftest.err 11047 rm -f conftest.er1 11048 cat conftest.err >&5 11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11050 (exit $ac_status); } && { 11051 test -z "$ac_c_werror_flag" || 11052 test ! -s conftest.err 11053 } && test -s conftest$ac_exeext && 11054 $as_test_x conftest$ac_exeext; then 11055 11056lt_aix_libpath_sed=' 11057 /Import File Strings/,/^$/ { 11058 /^0/ { 11059 s/^0 *\(.*\)$/\1/ 11060 p 11061 } 11062 }' 11063aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11064# Check for a 64-bit object if we didn't find anything. 11065if test -z "$aix_libpath"; then 11066 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11067fi 11068else 11069 echo "$as_me: failed program was:" >&5 11070sed 's/^/| /' conftest.$ac_ext >&5 11071 11072 11073fi 11074 11075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11076 conftest$ac_exeext conftest.$ac_ext 11077if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11078 11079 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11080 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" 11081 else 11082 if test "$host_cpu" = ia64; then 11083 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11084 allow_undefined_flag="-z nodefs" 11085 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" 11086 else 11087 # Determine the default libpath from the value encoded in an empty executable. 11088 cat >conftest.$ac_ext <<_ACEOF 11089/* confdefs.h. */ 11090_ACEOF 11091cat confdefs.h >>conftest.$ac_ext 11092cat >>conftest.$ac_ext <<_ACEOF 11093/* end confdefs.h. */ 11094 11095int 11096main () 11097{ 11098 11099 ; 11100 return 0; 11101} 11102_ACEOF 11103rm -f conftest.$ac_objext conftest$ac_exeext 11104if { (ac_try="$ac_link" 11105case "(($ac_try" in 11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11107 *) ac_try_echo=$ac_try;; 11108esac 11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11110 (eval "$ac_link") 2>conftest.er1 11111 ac_status=$? 11112 grep -v '^ *+' conftest.er1 >conftest.err 11113 rm -f conftest.er1 11114 cat conftest.err >&5 11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11116 (exit $ac_status); } && { 11117 test -z "$ac_c_werror_flag" || 11118 test ! -s conftest.err 11119 } && test -s conftest$ac_exeext && 11120 $as_test_x conftest$ac_exeext; then 11121 11122lt_aix_libpath_sed=' 11123 /Import File Strings/,/^$/ { 11124 /^0/ { 11125 s/^0 *\(.*\)$/\1/ 11126 p 11127 } 11128 }' 11129aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11130# Check for a 64-bit object if we didn't find anything. 11131if test -z "$aix_libpath"; then 11132 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11133fi 11134else 11135 echo "$as_me: failed program was:" >&5 11136sed 's/^/| /' conftest.$ac_ext >&5 11137 11138 11139fi 11140 11141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11142 conftest$ac_exeext conftest.$ac_ext 11143if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11144 11145 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11146 # Warning - without using the other run time loading flags, 11147 # -berok will link without error, but may produce a broken library. 11148 no_undefined_flag=' ${wl}-bernotok' 11149 allow_undefined_flag=' ${wl}-berok' 11150 # Exported symbols can be pulled into shared objects from archives 11151 whole_archive_flag_spec='$convenience' 11152 archive_cmds_need_lc=yes 11153 # This is similar to how AIX traditionally builds its shared libraries. 11154 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' 11155 fi 11156 fi 11157 ;; 11158 11159 amigaos*) 11160 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)' 11161 hardcode_libdir_flag_spec='-L$libdir' 11162 hardcode_minus_L=yes 11163 # see comment about different semantics on the GNU ld section 11164 ld_shlibs=no 11165 ;; 11166 11167 bsdi[45]*) 11168 export_dynamic_flag_spec=-rdynamic 11169 ;; 11170 11171 cygwin* | mingw* | pw32*) 11172 # When not using gcc, we currently assume that we are using 11173 # Microsoft Visual C++. 11174 # hardcode_libdir_flag_spec is actually meaningless, as there is 11175 # no search path for DLLs. 11176 hardcode_libdir_flag_spec=' ' 11177 allow_undefined_flag=unsupported 11178 # Tell ltmain to make .lib files, not .a files. 11179 libext=lib 11180 # Tell ltmain to make .dll files, not .so files. 11181 shrext_cmds=".dll" 11182 # FIXME: Setting linknames here is a bad hack. 11183 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 11184 # The linker will automatically build a .lib file if we build a DLL. 11185 old_archive_From_new_cmds='true' 11186 # FIXME: Should let the user specify the lib program. 11187 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11188 fix_srcfile_path='`cygpath -w "$srcfile"`' 11189 enable_shared_with_static_runtimes=yes 11190 ;; 11191 11192 darwin* | rhapsody*) 11193 case $host_os in 11194 rhapsody* | darwin1.[012]) 11195 allow_undefined_flag='${wl}-undefined ${wl}suppress' 11196 ;; 11197 *) # Darwin 1.3 on 11198 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11199 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11200 else 11201 case ${MACOSX_DEPLOYMENT_TARGET} in 11202 10.[012]) 11203 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11204 ;; 11205 10.*) 11206 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 11207 ;; 11208 esac 11209 fi 11210 ;; 11211 esac 11212 archive_cmds_need_lc=no 11213 hardcode_direct=no 11214 hardcode_automatic=yes 11215 hardcode_shlibpath_var=unsupported 11216 whole_archive_flag_spec='' 11217 link_all_deplibs=yes 11218 if test "$GCC" = yes ; then 11219 output_verbose_link_cmd='echo' 11220 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11221 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11222 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 11223 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 11224 else 11225 case $cc_basename in 11226 xlc*) 11227 output_verbose_link_cmd='echo' 11228 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11229 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11230 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11231 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11232 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}' 11233 ;; 11234 *) 11235 ld_shlibs=no 11236 ;; 11237 esac 11238 fi 11239 ;; 11240 11241 dgux*) 11242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11243 hardcode_libdir_flag_spec='-L$libdir' 11244 hardcode_shlibpath_var=no 11245 ;; 11246 11247 freebsd1*) 11248 ld_shlibs=no 11249 ;; 11250 11251 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11252 # support. Future versions do this automatically, but an explicit c++rt0.o 11253 # does not break anything, and helps significantly (at the cost of a little 11254 # extra space). 11255 freebsd2.2*) 11256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11257 hardcode_libdir_flag_spec='-R$libdir' 11258 hardcode_direct=yes 11259 hardcode_shlibpath_var=no 11260 ;; 11261 11262 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11263 freebsd2*) 11264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11265 hardcode_direct=yes 11266 hardcode_minus_L=yes 11267 hardcode_shlibpath_var=no 11268 ;; 11269 11270 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11271 freebsd* | dragonfly*) 11272 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 11273 hardcode_libdir_flag_spec='-R$libdir' 11274 hardcode_direct=yes 11275 hardcode_shlibpath_var=no 11276 ;; 11277 11278 hpux9*) 11279 if test "$GCC" = yes; then 11280 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' 11281 else 11282 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' 11283 fi 11284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11285 hardcode_libdir_separator=: 11286 hardcode_direct=yes 11287 11288 # hardcode_minus_L: Not really in the search PATH, 11289 # but as the default location of the library. 11290 hardcode_minus_L=yes 11291 export_dynamic_flag_spec='${wl}-E' 11292 ;; 11293 11294 hpux10*) 11295 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 11296 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11297 else 11298 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11299 fi 11300 if test "$with_gnu_ld" = no; then 11301 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11302 hardcode_libdir_separator=: 11303 11304 hardcode_direct=yes 11305 export_dynamic_flag_spec='${wl}-E' 11306 11307 # hardcode_minus_L: Not really in the search PATH, 11308 # but as the default location of the library. 11309 hardcode_minus_L=yes 11310 fi 11311 ;; 11312 11313 hpux11*) 11314 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 11315 case $host_cpu in 11316 hppa*64*) 11317 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11318 ;; 11319 ia64*) 11320 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11321 ;; 11322 *) 11323 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11324 ;; 11325 esac 11326 else 11327 case $host_cpu in 11328 hppa*64*) 11329 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11330 ;; 11331 ia64*) 11332 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11333 ;; 11334 *) 11335 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11336 ;; 11337 esac 11338 fi 11339 if test "$with_gnu_ld" = no; then 11340 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11341 hardcode_libdir_separator=: 11342 11343 case $host_cpu in 11344 hppa*64*|ia64*) 11345 hardcode_libdir_flag_spec_ld='+b $libdir' 11346 hardcode_direct=no 11347 hardcode_shlibpath_var=no 11348 ;; 11349 *) 11350 hardcode_direct=yes 11351 export_dynamic_flag_spec='${wl}-E' 11352 11353 # hardcode_minus_L: Not really in the search PATH, 11354 # but as the default location of the library. 11355 hardcode_minus_L=yes 11356 ;; 11357 esac 11358 fi 11359 ;; 11360 11361 irix5* | irix6* | nonstopux*) 11362 if test "$GCC" = yes; then 11363 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' 11364 else 11365 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' 11366 hardcode_libdir_flag_spec_ld='-rpath $libdir' 11367 fi 11368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11369 hardcode_libdir_separator=: 11370 link_all_deplibs=yes 11371 ;; 11372 11373 netbsd* | netbsdelf*-gnu) 11374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11376 else 11377 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11378 fi 11379 hardcode_libdir_flag_spec='-R$libdir' 11380 hardcode_direct=yes 11381 hardcode_shlibpath_var=no 11382 ;; 11383 11384 newsos6) 11385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11386 hardcode_direct=yes 11387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11388 hardcode_libdir_separator=: 11389 hardcode_shlibpath_var=no 11390 ;; 11391 11392 openbsd*) 11393 if test -f /usr/libexec/ld.so; then 11394 hardcode_direct=yes 11395 hardcode_shlibpath_var=no 11396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11397 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11398 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11399 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11400 export_dynamic_flag_spec='${wl}-E' 11401 else 11402 case $host_os in 11403 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11405 hardcode_libdir_flag_spec='-R$libdir' 11406 ;; 11407 *) 11408 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11409 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11410 ;; 11411 esac 11412 fi 11413 else 11414 ld_shlibs=no 11415 fi 11416 ;; 11417 11418 os2*) 11419 hardcode_libdir_flag_spec='-L$libdir' 11420 hardcode_minus_L=yes 11421 allow_undefined_flag=unsupported 11422 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' 11423 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11424 ;; 11425 11426 osf3*) 11427 if test "$GCC" = yes; then 11428 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11429 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' 11430 else 11431 allow_undefined_flag=' -expect_unresolved \*' 11432 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' 11433 fi 11434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11435 hardcode_libdir_separator=: 11436 ;; 11437 11438 osf4* | osf5*) # as osf3* with the addition of -msym flag 11439 if test "$GCC" = yes; then 11440 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11441 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' 11442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11443 else 11444 allow_undefined_flag=' -expect_unresolved \*' 11445 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' 11446 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 11447 $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' 11448 11449 # Both c and cxx compiler support -rpath directly 11450 hardcode_libdir_flag_spec='-rpath $libdir' 11451 fi 11452 hardcode_libdir_separator=: 11453 ;; 11454 11455 solaris*) 11456 no_undefined_flag=' -z text' 11457 if test "$GCC" = yes; then 11458 wlarc='${wl}' 11459 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11460 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11461 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 11462 else 11463 wlarc='' 11464 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11465 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11466 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 11467 fi 11468 hardcode_libdir_flag_spec='-R$libdir' 11469 hardcode_shlibpath_var=no 11470 case $host_os in 11471 solaris2.[0-5] | solaris2.[0-5].*) ;; 11472 *) 11473 # The compiler driver will combine and reorder linker options, 11474 # but understands `-z linker_flag'. GCC discards it without `$wl', 11475 # but is careful enough not to reorder. 11476 # Supported since Solaris 2.6 (maybe 2.5.1?) 11477 if test "$GCC" = yes; then 11478 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11479 else 11480 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11481 fi 11482 ;; 11483 esac 11484 link_all_deplibs=yes 11485 ;; 11486 11487 sunos4*) 11488 if test "x$host_vendor" = xsequent; then 11489 # Use $CC to link under sequent, because it throws in some extra .o 11490 # files that make .init and .fini sections work. 11491 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11492 else 11493 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11494 fi 11495 hardcode_libdir_flag_spec='-L$libdir' 11496 hardcode_direct=yes 11497 hardcode_minus_L=yes 11498 hardcode_shlibpath_var=no 11499 ;; 11500 11501 sysv4) 11502 case $host_vendor in 11503 sni) 11504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11505 hardcode_direct=yes # is this really true??? 11506 ;; 11507 siemens) 11508 ## LD is ld it makes a PLAMLIB 11509 ## CC just makes a GrossModule. 11510 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11511 reload_cmds='$CC -r -o $output$reload_objs' 11512 hardcode_direct=no 11513 ;; 11514 motorola) 11515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11516 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11517 ;; 11518 esac 11519 runpath_var='LD_RUN_PATH' 11520 hardcode_shlibpath_var=no 11521 ;; 11522 11523 sysv4.3*) 11524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11525 hardcode_shlibpath_var=no 11526 export_dynamic_flag_spec='-Bexport' 11527 ;; 11528 11529 sysv4*MP*) 11530 if test -d /usr/nec; then 11531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11532 hardcode_shlibpath_var=no 11533 runpath_var=LD_RUN_PATH 11534 hardcode_runpath_var=yes 11535 ld_shlibs=yes 11536 fi 11537 ;; 11538 11539 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11540 no_undefined_flag='${wl}-z,text' 11541 archive_cmds_need_lc=no 11542 hardcode_shlibpath_var=no 11543 runpath_var='LD_RUN_PATH' 11544 11545 if test "$GCC" = yes; then 11546 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11547 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11548 else 11549 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11550 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11551 fi 11552 ;; 11553 11554 sysv5* | sco3.2v5* | sco5v6*) 11555 # Note: We can NOT use -z defs as we might desire, because we do not 11556 # link with -lc, and that would cause any symbols used from libc to 11557 # always be unresolved, which means just about no library would 11558 # ever link correctly. If we're not using GNU ld we use -z text 11559 # though, which does catch some bad symbols but isn't as heavy-handed 11560 # as -z defs. 11561 no_undefined_flag='${wl}-z,text' 11562 allow_undefined_flag='${wl}-z,nodefs' 11563 archive_cmds_need_lc=no 11564 hardcode_shlibpath_var=no 11565 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11566 hardcode_libdir_separator=':' 11567 link_all_deplibs=yes 11568 export_dynamic_flag_spec='${wl}-Bexport' 11569 runpath_var='LD_RUN_PATH' 11570 11571 if test "$GCC" = yes; then 11572 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11573 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11574 else 11575 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11576 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11577 fi 11578 ;; 11579 11580 uts4*) 11581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11582 hardcode_libdir_flag_spec='-L$libdir' 11583 hardcode_shlibpath_var=no 11584 ;; 11585 11586 *) 11587 ld_shlibs=no 11588 ;; 11589 esac 11590 fi 11591 11592{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 11593echo "${ECHO_T}$ld_shlibs" >&6; } 11594test "$ld_shlibs" = no && can_build_shared=no 11595 11596# 11597# Do we need to explicitly link libc? 11598# 11599case "x$archive_cmds_need_lc" in 11600x|xyes) 11601 # Assume -lc should be added 11602 archive_cmds_need_lc=yes 11603 11604 if test "$enable_shared" = yes && test "$GCC" = yes; then 11605 case $archive_cmds in 11606 *'~'*) 11607 # FIXME: we may have to deal with multi-command sequences. 11608 ;; 11609 '$CC '*) 11610 # Test whether the compiler implicitly links with -lc since on some 11611 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11612 # to ld, don't add -lc before -lgcc. 11613 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11614echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 11615 $rm conftest* 11616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11617 11618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11619 (eval $ac_compile) 2>&5 11620 ac_status=$? 11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11622 (exit $ac_status); } 2>conftest.err; then 11623 soname=conftest 11624 lib=conftest 11625 libobjs=conftest.$ac_objext 11626 deplibs= 11627 wl=$lt_prog_compiler_wl 11628 pic_flag=$lt_prog_compiler_pic 11629 compiler_flags=-v 11630 linker_flags=-v 11631 verstring= 11632 output_objdir=. 11633 libname=conftest 11634 lt_save_allow_undefined_flag=$allow_undefined_flag 11635 allow_undefined_flag= 11636 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11637 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11638 ac_status=$? 11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11640 (exit $ac_status); } 11641 then 11642 archive_cmds_need_lc=no 11643 else 11644 archive_cmds_need_lc=yes 11645 fi 11646 allow_undefined_flag=$lt_save_allow_undefined_flag 11647 else 11648 cat conftest.err 1>&5 11649 fi 11650 $rm conftest* 11651 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 11652echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 11653 ;; 11654 esac 11655 fi 11656 ;; 11657esac 11658 11659{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11660echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 11661library_names_spec= 11662libname_spec='lib$name' 11663soname_spec= 11664shrext_cmds=".so" 11665postinstall_cmds= 11666postuninstall_cmds= 11667finish_cmds= 11668finish_eval= 11669shlibpath_var= 11670shlibpath_overrides_runpath=unknown 11671version_type=none 11672dynamic_linker="$host_os ld.so" 11673sys_lib_dlsearch_path_spec="/lib /usr/lib" 11674 11675if test "$GCC" = yes; then 11676 case $host_os in 11677 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11678 *) lt_awk_arg="/^libraries:/" ;; 11679 esac 11680 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11681 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 11682 # if the path contains ";" then we assume it to be the separator 11683 # otherwise default to the standard path separator (i.e. ":") - it is 11684 # assumed that no part of a normal pathname contains ";" but that should 11685 # okay in the real world where ";" in dirpaths is itself problematic. 11686 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 11687 else 11688 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11689 fi 11690 # Ok, now we have the path, separated by spaces, we can step through it 11691 # and add multilib dir if necessary. 11692 lt_tmp_lt_search_path_spec= 11693 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11694 for lt_sys_path in $lt_search_path_spec; do 11695 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11696 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11697 else 11698 test -d "$lt_sys_path" && \ 11699 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11700 fi 11701 done 11702 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 11703BEGIN {RS=" "; FS="/|\n";} { 11704 lt_foo=""; 11705 lt_count=0; 11706 for (lt_i = NF; lt_i > 0; lt_i--) { 11707 if ($lt_i != "" && $lt_i != ".") { 11708 if ($lt_i == "..") { 11709 lt_count++; 11710 } else { 11711 if (lt_count == 0) { 11712 lt_foo="/" $lt_i lt_foo; 11713 } else { 11714 lt_count--; 11715 } 11716 } 11717 } 11718 } 11719 if (lt_foo != "") { lt_freq[lt_foo]++; } 11720 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11721}'` 11722 sys_lib_search_path_spec=`echo $lt_search_path_spec` 11723else 11724 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11725fi 11726need_lib_prefix=unknown 11727hardcode_into_libs=no 11728 11729# when you set need_version to no, make sure it does not cause -set_version 11730# flags to be left without arguments 11731need_version=unknown 11732 11733case $host_os in 11734aix3*) 11735 version_type=linux 11736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11737 shlibpath_var=LIBPATH 11738 11739 # AIX 3 has no versioning support, so we append a major version to the name. 11740 soname_spec='${libname}${release}${shared_ext}$major' 11741 ;; 11742 11743aix[4-9]*) 11744 version_type=linux 11745 need_lib_prefix=no 11746 need_version=no 11747 hardcode_into_libs=yes 11748 if test "$host_cpu" = ia64; then 11749 # AIX 5 supports IA64 11750 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11751 shlibpath_var=LD_LIBRARY_PATH 11752 else 11753 # With GCC up to 2.95.x, collect2 would create an import file 11754 # for dependence libraries. The import file would start with 11755 # the line `#! .'. This would cause the generated library to 11756 # depend on `.', always an invalid library. This was fixed in 11757 # development snapshots of GCC prior to 3.0. 11758 case $host_os in 11759 aix4 | aix4.[01] | aix4.[01].*) 11760 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11761 echo ' yes ' 11762 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11763 : 11764 else 11765 can_build_shared=no 11766 fi 11767 ;; 11768 esac 11769 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11770 # soname into executable. Probably we can add versioning support to 11771 # collect2, so additional links can be useful in future. 11772 if test "$aix_use_runtimelinking" = yes; then 11773 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11774 # instead of lib<name>.a to let people know that these are not 11775 # typical AIX shared libraries. 11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11777 else 11778 # We preserve .a as extension for shared libraries through AIX4.2 11779 # and later when we are not doing run time linking. 11780 library_names_spec='${libname}${release}.a $libname.a' 11781 soname_spec='${libname}${release}${shared_ext}$major' 11782 fi 11783 shlibpath_var=LIBPATH 11784 fi 11785 ;; 11786 11787amigaos*) 11788 library_names_spec='$libname.ixlibrary $libname.a' 11789 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11790 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' 11791 ;; 11792 11793beos*) 11794 library_names_spec='${libname}${shared_ext}' 11795 dynamic_linker="$host_os ld.so" 11796 shlibpath_var=LIBRARY_PATH 11797 ;; 11798 11799bsdi[45]*) 11800 version_type=linux 11801 need_version=no 11802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11803 soname_spec='${libname}${release}${shared_ext}$major' 11804 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11805 shlibpath_var=LD_LIBRARY_PATH 11806 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11807 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11808 # the default ld.so.conf also contains /usr/contrib/lib and 11809 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11810 # libtool to hard-code these into programs 11811 ;; 11812 11813cygwin* | mingw* | pw32*) 11814 version_type=windows 11815 shrext_cmds=".dll" 11816 need_version=no 11817 need_lib_prefix=no 11818 11819 case $GCC,$host_os in 11820 yes,cygwin* | yes,mingw* | yes,pw32*) 11821 library_names_spec='$libname.dll.a' 11822 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11823 postinstall_cmds='base_file=`basename \${file}`~ 11824 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11825 dldir=$destdir/`dirname \$dlpath`~ 11826 test -d \$dldir || mkdir -p \$dldir~ 11827 $install_prog $dir/$dlname \$dldir/$dlname~ 11828 chmod a+x \$dldir/$dlname' 11829 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11830 dlpath=$dir/\$dldll~ 11831 $rm \$dlpath' 11832 shlibpath_overrides_runpath=yes 11833 11834 case $host_os in 11835 cygwin*) 11836 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11837 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11838 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11839 ;; 11840 mingw*) 11841 # MinGW DLLs use traditional 'lib' prefix 11842 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11843 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11844 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11845 # It is most probably a Windows format PATH printed by 11846 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11847 # path with ; separators, and with drive letters. We can handle the 11848 # drive letters (cygwin fileutils understands them), so leave them, 11849 # especially as we might pass files found there to a mingw objdump, 11850 # which wouldn't understand a cygwinified path. Ahh. 11851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11852 else 11853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11854 fi 11855 ;; 11856 pw32*) 11857 # pw32 DLLs use 'pw' prefix rather than 'lib' 11858 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11859 ;; 11860 esac 11861 ;; 11862 11863 *) 11864 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11865 ;; 11866 esac 11867 dynamic_linker='Win32 ld.exe' 11868 # FIXME: first we should search . and the directory the executable is in 11869 shlibpath_var=PATH 11870 ;; 11871 11872darwin* | rhapsody*) 11873 dynamic_linker="$host_os dyld" 11874 version_type=darwin 11875 need_lib_prefix=no 11876 need_version=no 11877 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11878 soname_spec='${libname}${release}${major}$shared_ext' 11879 shlibpath_overrides_runpath=yes 11880 shlibpath_var=DYLD_LIBRARY_PATH 11881 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11882 11883 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11884 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11885 ;; 11886 11887dgux*) 11888 version_type=linux 11889 need_lib_prefix=no 11890 need_version=no 11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11892 soname_spec='${libname}${release}${shared_ext}$major' 11893 shlibpath_var=LD_LIBRARY_PATH 11894 ;; 11895 11896freebsd1*) 11897 dynamic_linker=no 11898 ;; 11899 11900freebsd* | dragonfly*) 11901 # DragonFly does not have aout. When/if they implement a new 11902 # versioning mechanism, adjust this. 11903 if test -x /usr/bin/objformat; then 11904 objformat=`/usr/bin/objformat` 11905 else 11906 case $host_os in 11907 freebsd[123]*) objformat=aout ;; 11908 *) objformat=elf ;; 11909 esac 11910 fi 11911 version_type=freebsd-$objformat 11912 case $version_type in 11913 freebsd-elf*) 11914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11915 need_version=no 11916 need_lib_prefix=no 11917 ;; 11918 freebsd-*) 11919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11920 need_version=yes 11921 ;; 11922 esac 11923 shlibpath_var=LD_LIBRARY_PATH 11924 case $host_os in 11925 freebsd2*) 11926 shlibpath_overrides_runpath=yes 11927 ;; 11928 freebsd3.[01]* | freebsdelf3.[01]*) 11929 shlibpath_overrides_runpath=yes 11930 hardcode_into_libs=yes 11931 ;; 11932 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11933 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11934 shlibpath_overrides_runpath=no 11935 hardcode_into_libs=yes 11936 ;; 11937 *) # from 4.6 on, and DragonFly 11938 shlibpath_overrides_runpath=yes 11939 hardcode_into_libs=yes 11940 ;; 11941 esac 11942 ;; 11943 11944gnu*) 11945 version_type=linux 11946 need_lib_prefix=no 11947 need_version=no 11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11949 soname_spec='${libname}${release}${shared_ext}$major' 11950 shlibpath_var=LD_LIBRARY_PATH 11951 hardcode_into_libs=yes 11952 ;; 11953 11954hpux9* | hpux10* | hpux11*) 11955 # Give a soname corresponding to the major version so that dld.sl refuses to 11956 # link against other versions. 11957 version_type=sunos 11958 need_lib_prefix=no 11959 need_version=no 11960 case $host_cpu in 11961 ia64*) 11962 shrext_cmds='.so' 11963 hardcode_into_libs=yes 11964 dynamic_linker="$host_os dld.so" 11965 shlibpath_var=LD_LIBRARY_PATH 11966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11968 soname_spec='${libname}${release}${shared_ext}$major' 11969 if test "X$HPUX_IA64_MODE" = X32; then 11970 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11971 else 11972 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11973 fi 11974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11975 ;; 11976 hppa*64*) 11977 shrext_cmds='.sl' 11978 hardcode_into_libs=yes 11979 dynamic_linker="$host_os dld.sl" 11980 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11983 soname_spec='${libname}${release}${shared_ext}$major' 11984 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11986 ;; 11987 *) 11988 shrext_cmds='.sl' 11989 dynamic_linker="$host_os dld.sl" 11990 shlibpath_var=SHLIB_PATH 11991 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11993 soname_spec='${libname}${release}${shared_ext}$major' 11994 ;; 11995 esac 11996 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11997 postinstall_cmds='chmod 555 $lib' 11998 ;; 11999 12000interix[3-9]*) 12001 version_type=linux 12002 need_lib_prefix=no 12003 need_version=no 12004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12005 soname_spec='${libname}${release}${shared_ext}$major' 12006 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12007 shlibpath_var=LD_LIBRARY_PATH 12008 shlibpath_overrides_runpath=no 12009 hardcode_into_libs=yes 12010 ;; 12011 12012irix5* | irix6* | nonstopux*) 12013 case $host_os in 12014 nonstopux*) version_type=nonstopux ;; 12015 *) 12016 if test "$lt_cv_prog_gnu_ld" = yes; then 12017 version_type=linux 12018 else 12019 version_type=irix 12020 fi ;; 12021 esac 12022 need_lib_prefix=no 12023 need_version=no 12024 soname_spec='${libname}${release}${shared_ext}$major' 12025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12026 case $host_os in 12027 irix5* | nonstopux*) 12028 libsuff= shlibsuff= 12029 ;; 12030 *) 12031 case $LD in # libtool.m4 will add one of these switches to LD 12032 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12033 libsuff= shlibsuff= libmagic=32-bit;; 12034 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12035 libsuff=32 shlibsuff=N32 libmagic=N32;; 12036 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12037 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12038 *) libsuff= shlibsuff= libmagic=never-match;; 12039 esac 12040 ;; 12041 esac 12042 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12043 shlibpath_overrides_runpath=no 12044 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12045 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12046 hardcode_into_libs=yes 12047 ;; 12048 12049# No shared lib support for Linux oldld, aout, or coff. 12050linux*oldld* | linux*aout* | linux*coff*) 12051 dynamic_linker=no 12052 ;; 12053 12054# This must be Linux ELF. 12055linux* | k*bsd*-gnu) 12056 version_type=linux 12057 need_lib_prefix=no 12058 need_version=no 12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12060 soname_spec='${libname}${release}${shared_ext}$major' 12061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12062 shlibpath_var=LD_LIBRARY_PATH 12063 shlibpath_overrides_runpath=no 12064 # This implies no fast_install, which is unacceptable. 12065 # Some rework will be needed to allow for fast_install 12066 # before this can be enabled. 12067 hardcode_into_libs=yes 12068 12069 # Append ld.so.conf contents to the search path 12070 if test -f /etc/ld.so.conf; then 12071 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12072 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12073 fi 12074 12075 # We used to test for /lib/ld.so.1 and disable shared libraries on 12076 # powerpc, because MkLinux only supported shared libraries with the 12077 # GNU dynamic linker. Since this was broken with cross compilers, 12078 # most powerpc-linux boxes support dynamic linking these days and 12079 # people can always --disable-shared, the test was removed, and we 12080 # assume the GNU/Linux dynamic linker is in use. 12081 dynamic_linker='GNU/Linux ld.so' 12082 ;; 12083 12084netbsdelf*-gnu) 12085 version_type=linux 12086 need_lib_prefix=no 12087 need_version=no 12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12089 soname_spec='${libname}${release}${shared_ext}$major' 12090 shlibpath_var=LD_LIBRARY_PATH 12091 shlibpath_overrides_runpath=no 12092 hardcode_into_libs=yes 12093 dynamic_linker='NetBSD ld.elf_so' 12094 ;; 12095 12096netbsd*) 12097 version_type=sunos 12098 need_lib_prefix=no 12099 need_version=no 12100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12103 dynamic_linker='NetBSD (a.out) ld.so' 12104 else 12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12106 soname_spec='${libname}${release}${shared_ext}$major' 12107 dynamic_linker='NetBSD ld.elf_so' 12108 fi 12109 shlibpath_var=LD_LIBRARY_PATH 12110 shlibpath_overrides_runpath=yes 12111 hardcode_into_libs=yes 12112 ;; 12113 12114newsos6) 12115 version_type=linux 12116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12117 shlibpath_var=LD_LIBRARY_PATH 12118 shlibpath_overrides_runpath=yes 12119 ;; 12120 12121nto-qnx*) 12122 version_type=linux 12123 need_lib_prefix=no 12124 need_version=no 12125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12126 soname_spec='${libname}${release}${shared_ext}$major' 12127 shlibpath_var=LD_LIBRARY_PATH 12128 shlibpath_overrides_runpath=yes 12129 ;; 12130 12131openbsd*) 12132 version_type=sunos 12133 sys_lib_dlsearch_path_spec="/usr/lib" 12134 need_lib_prefix=no 12135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12136 case $host_os in 12137 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12138 *) need_version=no ;; 12139 esac 12140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12142 shlibpath_var=LD_LIBRARY_PATH 12143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12144 case $host_os in 12145 openbsd2.[89] | openbsd2.[89].*) 12146 shlibpath_overrides_runpath=no 12147 ;; 12148 *) 12149 shlibpath_overrides_runpath=yes 12150 ;; 12151 esac 12152 else 12153 shlibpath_overrides_runpath=yes 12154 fi 12155 ;; 12156 12157os2*) 12158 libname_spec='$name' 12159 shrext_cmds=".dll" 12160 need_lib_prefix=no 12161 library_names_spec='$libname${shared_ext} $libname.a' 12162 dynamic_linker='OS/2 ld.exe' 12163 shlibpath_var=LIBPATH 12164 ;; 12165 12166osf3* | osf4* | osf5*) 12167 version_type=osf 12168 need_lib_prefix=no 12169 need_version=no 12170 soname_spec='${libname}${release}${shared_ext}$major' 12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12172 shlibpath_var=LD_LIBRARY_PATH 12173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12175 ;; 12176 12177rdos*) 12178 dynamic_linker=no 12179 ;; 12180 12181solaris*) 12182 version_type=linux 12183 need_lib_prefix=no 12184 need_version=no 12185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12186 soname_spec='${libname}${release}${shared_ext}$major' 12187 shlibpath_var=LD_LIBRARY_PATH 12188 shlibpath_overrides_runpath=yes 12189 hardcode_into_libs=yes 12190 # ldd complains unless libraries are executable 12191 postinstall_cmds='chmod +x $lib' 12192 ;; 12193 12194sunos4*) 12195 version_type=sunos 12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12198 shlibpath_var=LD_LIBRARY_PATH 12199 shlibpath_overrides_runpath=yes 12200 if test "$with_gnu_ld" = yes; then 12201 need_lib_prefix=no 12202 fi 12203 need_version=yes 12204 ;; 12205 12206sysv4 | sysv4.3*) 12207 version_type=linux 12208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12209 soname_spec='${libname}${release}${shared_ext}$major' 12210 shlibpath_var=LD_LIBRARY_PATH 12211 case $host_vendor in 12212 sni) 12213 shlibpath_overrides_runpath=no 12214 need_lib_prefix=no 12215 export_dynamic_flag_spec='${wl}-Blargedynsym' 12216 runpath_var=LD_RUN_PATH 12217 ;; 12218 siemens) 12219 need_lib_prefix=no 12220 ;; 12221 motorola) 12222 need_lib_prefix=no 12223 need_version=no 12224 shlibpath_overrides_runpath=no 12225 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12226 ;; 12227 esac 12228 ;; 12229 12230sysv4*MP*) 12231 if test -d /usr/nec ;then 12232 version_type=linux 12233 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12234 soname_spec='$libname${shared_ext}.$major' 12235 shlibpath_var=LD_LIBRARY_PATH 12236 fi 12237 ;; 12238 12239sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12240 version_type=freebsd-elf 12241 need_lib_prefix=no 12242 need_version=no 12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12244 soname_spec='${libname}${release}${shared_ext}$major' 12245 shlibpath_var=LD_LIBRARY_PATH 12246 hardcode_into_libs=yes 12247 if test "$with_gnu_ld" = yes; then 12248 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12249 shlibpath_overrides_runpath=no 12250 else 12251 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12252 shlibpath_overrides_runpath=yes 12253 case $host_os in 12254 sco3.2v5*) 12255 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12256 ;; 12257 esac 12258 fi 12259 sys_lib_dlsearch_path_spec='/usr/lib' 12260 ;; 12261 12262uts4*) 12263 version_type=linux 12264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12265 soname_spec='${libname}${release}${shared_ext}$major' 12266 shlibpath_var=LD_LIBRARY_PATH 12267 ;; 12268 12269*) 12270 dynamic_linker=no 12271 ;; 12272esac 12273{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12274echo "${ECHO_T}$dynamic_linker" >&6; } 12275test "$dynamic_linker" = no && can_build_shared=no 12276 12277if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12278 echo $ECHO_N "(cached) $ECHO_C" >&6 12279else 12280 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 12281fi 12282 12283sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12284if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12285 echo $ECHO_N "(cached) $ECHO_C" >&6 12286else 12287 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 12288fi 12289 12290sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12291 12292variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12293if test "$GCC" = yes; then 12294 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12295fi 12296 12297{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12298echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 12299hardcode_action= 12300if test -n "$hardcode_libdir_flag_spec" || \ 12301 test -n "$runpath_var" || \ 12302 test "X$hardcode_automatic" = "Xyes" ; then 12303 12304 # We can hardcode non-existant directories. 12305 if test "$hardcode_direct" != no && 12306 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12307 # have to relink, otherwise we might link with an installed library 12308 # when we should be linking with a yet-to-be-installed one 12309 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 12310 test "$hardcode_minus_L" != no; then 12311 # Linking always hardcodes the temporary library directory. 12312 hardcode_action=relink 12313 else 12314 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12315 hardcode_action=immediate 12316 fi 12317else 12318 # We cannot hardcode anything, or else we can only hardcode existing 12319 # directories. 12320 hardcode_action=unsupported 12321fi 12322{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 12323echo "${ECHO_T}$hardcode_action" >&6; } 12324 12325if test "$hardcode_action" = relink; then 12326 # Fast installation is not supported 12327 enable_fast_install=no 12328elif test "$shlibpath_overrides_runpath" = yes || 12329 test "$enable_shared" = no; then 12330 # Fast installation is not necessary 12331 enable_fast_install=needless 12332fi 12333 12334striplib= 12335old_striplib= 12336{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12337echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 12338if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12339 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12340 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12341 { echo "$as_me:$LINENO: result: yes" >&5 12342echo "${ECHO_T}yes" >&6; } 12343else 12344# FIXME - insert some real tests, host_os isn't really good enough 12345 case $host_os in 12346 darwin*) 12347 if test -n "$STRIP" ; then 12348 striplib="$STRIP -x" 12349 old_striplib="$STRIP -S" 12350 { echo "$as_me:$LINENO: result: yes" >&5 12351echo "${ECHO_T}yes" >&6; } 12352 else 12353 { echo "$as_me:$LINENO: result: no" >&5 12354echo "${ECHO_T}no" >&6; } 12355fi 12356 ;; 12357 *) 12358 { echo "$as_me:$LINENO: result: no" >&5 12359echo "${ECHO_T}no" >&6; } 12360 ;; 12361 esac 12362fi 12363 12364if test "x$enable_dlopen" != xyes; then 12365 enable_dlopen=unknown 12366 enable_dlopen_self=unknown 12367 enable_dlopen_self_static=unknown 12368else 12369 lt_cv_dlopen=no 12370 lt_cv_dlopen_libs= 12371 12372 case $host_os in 12373 beos*) 12374 lt_cv_dlopen="load_add_on" 12375 lt_cv_dlopen_libs= 12376 lt_cv_dlopen_self=yes 12377 ;; 12378 12379 mingw* | pw32*) 12380 lt_cv_dlopen="LoadLibrary" 12381 lt_cv_dlopen_libs= 12382 ;; 12383 12384 cygwin*) 12385 lt_cv_dlopen="dlopen" 12386 lt_cv_dlopen_libs= 12387 ;; 12388 12389 darwin*) 12390 # if libdl is installed we need to link against it 12391 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12392echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 12393if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12394 echo $ECHO_N "(cached) $ECHO_C" >&6 12395else 12396 ac_check_lib_save_LIBS=$LIBS 12397LIBS="-ldl $LIBS" 12398cat >conftest.$ac_ext <<_ACEOF 12399/* confdefs.h. */ 12400_ACEOF 12401cat confdefs.h >>conftest.$ac_ext 12402cat >>conftest.$ac_ext <<_ACEOF 12403/* end confdefs.h. */ 12404 12405/* Override any GCC internal prototype to avoid an error. 12406 Use char because int might match the return type of a GCC 12407 builtin and then its argument prototype would still apply. */ 12408#ifdef __cplusplus 12409extern "C" 12410#endif 12411char dlopen (); 12412int 12413main () 12414{ 12415return dlopen (); 12416 ; 12417 return 0; 12418} 12419_ACEOF 12420rm -f conftest.$ac_objext conftest$ac_exeext 12421if { (ac_try="$ac_link" 12422case "(($ac_try" in 12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12424 *) ac_try_echo=$ac_try;; 12425esac 12426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12427 (eval "$ac_link") 2>conftest.er1 12428 ac_status=$? 12429 grep -v '^ *+' conftest.er1 >conftest.err 12430 rm -f conftest.er1 12431 cat conftest.err >&5 12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12433 (exit $ac_status); } && { 12434 test -z "$ac_c_werror_flag" || 12435 test ! -s conftest.err 12436 } && test -s conftest$ac_exeext && 12437 $as_test_x conftest$ac_exeext; then 12438 ac_cv_lib_dl_dlopen=yes 12439else 12440 echo "$as_me: failed program was:" >&5 12441sed 's/^/| /' conftest.$ac_ext >&5 12442 12443 ac_cv_lib_dl_dlopen=no 12444fi 12445 12446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12447 conftest$ac_exeext conftest.$ac_ext 12448LIBS=$ac_check_lib_save_LIBS 12449fi 12450{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12451echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 12452if test $ac_cv_lib_dl_dlopen = yes; then 12453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12454else 12455 12456 lt_cv_dlopen="dyld" 12457 lt_cv_dlopen_libs= 12458 lt_cv_dlopen_self=yes 12459 12460fi 12461 12462 ;; 12463 12464 *) 12465 { echo "$as_me:$LINENO: checking for shl_load" >&5 12466echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 12467if test "${ac_cv_func_shl_load+set}" = set; then 12468 echo $ECHO_N "(cached) $ECHO_C" >&6 12469else 12470 cat >conftest.$ac_ext <<_ACEOF 12471/* confdefs.h. */ 12472_ACEOF 12473cat confdefs.h >>conftest.$ac_ext 12474cat >>conftest.$ac_ext <<_ACEOF 12475/* end confdefs.h. */ 12476/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12477 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12478#define shl_load innocuous_shl_load 12479 12480/* System header to define __stub macros and hopefully few prototypes, 12481 which can conflict with char shl_load (); below. 12482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12483 <limits.h> exists even on freestanding compilers. */ 12484 12485#ifdef __STDC__ 12486# include <limits.h> 12487#else 12488# include <assert.h> 12489#endif 12490 12491#undef shl_load 12492 12493/* Override any GCC internal prototype to avoid an error. 12494 Use char because int might match the return type of a GCC 12495 builtin and then its argument prototype would still apply. */ 12496#ifdef __cplusplus 12497extern "C" 12498#endif 12499char shl_load (); 12500/* The GNU C library defines this for functions which it implements 12501 to always fail with ENOSYS. Some functions are actually named 12502 something starting with __ and the normal name is an alias. */ 12503#if defined __stub_shl_load || defined __stub___shl_load 12504choke me 12505#endif 12506 12507int 12508main () 12509{ 12510return shl_load (); 12511 ; 12512 return 0; 12513} 12514_ACEOF 12515rm -f conftest.$ac_objext conftest$ac_exeext 12516if { (ac_try="$ac_link" 12517case "(($ac_try" in 12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12519 *) ac_try_echo=$ac_try;; 12520esac 12521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12522 (eval "$ac_link") 2>conftest.er1 12523 ac_status=$? 12524 grep -v '^ *+' conftest.er1 >conftest.err 12525 rm -f conftest.er1 12526 cat conftest.err >&5 12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12528 (exit $ac_status); } && { 12529 test -z "$ac_c_werror_flag" || 12530 test ! -s conftest.err 12531 } && test -s conftest$ac_exeext && 12532 $as_test_x conftest$ac_exeext; then 12533 ac_cv_func_shl_load=yes 12534else 12535 echo "$as_me: failed program was:" >&5 12536sed 's/^/| /' conftest.$ac_ext >&5 12537 12538 ac_cv_func_shl_load=no 12539fi 12540 12541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12542 conftest$ac_exeext conftest.$ac_ext 12543fi 12544{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12545echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 12546if test $ac_cv_func_shl_load = yes; then 12547 lt_cv_dlopen="shl_load" 12548else 12549 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12550echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 12551if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12552 echo $ECHO_N "(cached) $ECHO_C" >&6 12553else 12554 ac_check_lib_save_LIBS=$LIBS 12555LIBS="-ldld $LIBS" 12556cat >conftest.$ac_ext <<_ACEOF 12557/* confdefs.h. */ 12558_ACEOF 12559cat confdefs.h >>conftest.$ac_ext 12560cat >>conftest.$ac_ext <<_ACEOF 12561/* end confdefs.h. */ 12562 12563/* Override any GCC internal prototype to avoid an error. 12564 Use char because int might match the return type of a GCC 12565 builtin and then its argument prototype would still apply. */ 12566#ifdef __cplusplus 12567extern "C" 12568#endif 12569char shl_load (); 12570int 12571main () 12572{ 12573return shl_load (); 12574 ; 12575 return 0; 12576} 12577_ACEOF 12578rm -f conftest.$ac_objext conftest$ac_exeext 12579if { (ac_try="$ac_link" 12580case "(($ac_try" in 12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12582 *) ac_try_echo=$ac_try;; 12583esac 12584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12585 (eval "$ac_link") 2>conftest.er1 12586 ac_status=$? 12587 grep -v '^ *+' conftest.er1 >conftest.err 12588 rm -f conftest.er1 12589 cat conftest.err >&5 12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12591 (exit $ac_status); } && { 12592 test -z "$ac_c_werror_flag" || 12593 test ! -s conftest.err 12594 } && test -s conftest$ac_exeext && 12595 $as_test_x conftest$ac_exeext; then 12596 ac_cv_lib_dld_shl_load=yes 12597else 12598 echo "$as_me: failed program was:" >&5 12599sed 's/^/| /' conftest.$ac_ext >&5 12600 12601 ac_cv_lib_dld_shl_load=no 12602fi 12603 12604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12605 conftest$ac_exeext conftest.$ac_ext 12606LIBS=$ac_check_lib_save_LIBS 12607fi 12608{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12609echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 12610if test $ac_cv_lib_dld_shl_load = yes; then 12611 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12612else 12613 { echo "$as_me:$LINENO: checking for dlopen" >&5 12614echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 12615if test "${ac_cv_func_dlopen+set}" = set; then 12616 echo $ECHO_N "(cached) $ECHO_C" >&6 12617else 12618 cat >conftest.$ac_ext <<_ACEOF 12619/* confdefs.h. */ 12620_ACEOF 12621cat confdefs.h >>conftest.$ac_ext 12622cat >>conftest.$ac_ext <<_ACEOF 12623/* end confdefs.h. */ 12624/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12625 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12626#define dlopen innocuous_dlopen 12627 12628/* System header to define __stub macros and hopefully few prototypes, 12629 which can conflict with char dlopen (); below. 12630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12631 <limits.h> exists even on freestanding compilers. */ 12632 12633#ifdef __STDC__ 12634# include <limits.h> 12635#else 12636# include <assert.h> 12637#endif 12638 12639#undef dlopen 12640 12641/* Override any GCC internal prototype to avoid an error. 12642 Use char because int might match the return type of a GCC 12643 builtin and then its argument prototype would still apply. */ 12644#ifdef __cplusplus 12645extern "C" 12646#endif 12647char dlopen (); 12648/* The GNU C library defines this for functions which it implements 12649 to always fail with ENOSYS. Some functions are actually named 12650 something starting with __ and the normal name is an alias. */ 12651#if defined __stub_dlopen || defined __stub___dlopen 12652choke me 12653#endif 12654 12655int 12656main () 12657{ 12658return dlopen (); 12659 ; 12660 return 0; 12661} 12662_ACEOF 12663rm -f conftest.$ac_objext conftest$ac_exeext 12664if { (ac_try="$ac_link" 12665case "(($ac_try" in 12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12667 *) ac_try_echo=$ac_try;; 12668esac 12669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12670 (eval "$ac_link") 2>conftest.er1 12671 ac_status=$? 12672 grep -v '^ *+' conftest.er1 >conftest.err 12673 rm -f conftest.er1 12674 cat conftest.err >&5 12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12676 (exit $ac_status); } && { 12677 test -z "$ac_c_werror_flag" || 12678 test ! -s conftest.err 12679 } && test -s conftest$ac_exeext && 12680 $as_test_x conftest$ac_exeext; then 12681 ac_cv_func_dlopen=yes 12682else 12683 echo "$as_me: failed program was:" >&5 12684sed 's/^/| /' conftest.$ac_ext >&5 12685 12686 ac_cv_func_dlopen=no 12687fi 12688 12689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12690 conftest$ac_exeext conftest.$ac_ext 12691fi 12692{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12693echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 12694if test $ac_cv_func_dlopen = yes; then 12695 lt_cv_dlopen="dlopen" 12696else 12697 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12698echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 12699if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12700 echo $ECHO_N "(cached) $ECHO_C" >&6 12701else 12702 ac_check_lib_save_LIBS=$LIBS 12703LIBS="-ldl $LIBS" 12704cat >conftest.$ac_ext <<_ACEOF 12705/* confdefs.h. */ 12706_ACEOF 12707cat confdefs.h >>conftest.$ac_ext 12708cat >>conftest.$ac_ext <<_ACEOF 12709/* end confdefs.h. */ 12710 12711/* Override any GCC internal prototype to avoid an error. 12712 Use char because int might match the return type of a GCC 12713 builtin and then its argument prototype would still apply. */ 12714#ifdef __cplusplus 12715extern "C" 12716#endif 12717char dlopen (); 12718int 12719main () 12720{ 12721return dlopen (); 12722 ; 12723 return 0; 12724} 12725_ACEOF 12726rm -f conftest.$ac_objext conftest$ac_exeext 12727if { (ac_try="$ac_link" 12728case "(($ac_try" in 12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12730 *) ac_try_echo=$ac_try;; 12731esac 12732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12733 (eval "$ac_link") 2>conftest.er1 12734 ac_status=$? 12735 grep -v '^ *+' conftest.er1 >conftest.err 12736 rm -f conftest.er1 12737 cat conftest.err >&5 12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12739 (exit $ac_status); } && { 12740 test -z "$ac_c_werror_flag" || 12741 test ! -s conftest.err 12742 } && test -s conftest$ac_exeext && 12743 $as_test_x conftest$ac_exeext; then 12744 ac_cv_lib_dl_dlopen=yes 12745else 12746 echo "$as_me: failed program was:" >&5 12747sed 's/^/| /' conftest.$ac_ext >&5 12748 12749 ac_cv_lib_dl_dlopen=no 12750fi 12751 12752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12753 conftest$ac_exeext conftest.$ac_ext 12754LIBS=$ac_check_lib_save_LIBS 12755fi 12756{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12757echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 12758if test $ac_cv_lib_dl_dlopen = yes; then 12759 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12760else 12761 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12762echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 12763if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12764 echo $ECHO_N "(cached) $ECHO_C" >&6 12765else 12766 ac_check_lib_save_LIBS=$LIBS 12767LIBS="-lsvld $LIBS" 12768cat >conftest.$ac_ext <<_ACEOF 12769/* confdefs.h. */ 12770_ACEOF 12771cat confdefs.h >>conftest.$ac_ext 12772cat >>conftest.$ac_ext <<_ACEOF 12773/* end confdefs.h. */ 12774 12775/* Override any GCC internal prototype to avoid an error. 12776 Use char because int might match the return type of a GCC 12777 builtin and then its argument prototype would still apply. */ 12778#ifdef __cplusplus 12779extern "C" 12780#endif 12781char dlopen (); 12782int 12783main () 12784{ 12785return dlopen (); 12786 ; 12787 return 0; 12788} 12789_ACEOF 12790rm -f conftest.$ac_objext conftest$ac_exeext 12791if { (ac_try="$ac_link" 12792case "(($ac_try" in 12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12794 *) ac_try_echo=$ac_try;; 12795esac 12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12797 (eval "$ac_link") 2>conftest.er1 12798 ac_status=$? 12799 grep -v '^ *+' conftest.er1 >conftest.err 12800 rm -f conftest.er1 12801 cat conftest.err >&5 12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12803 (exit $ac_status); } && { 12804 test -z "$ac_c_werror_flag" || 12805 test ! -s conftest.err 12806 } && test -s conftest$ac_exeext && 12807 $as_test_x conftest$ac_exeext; then 12808 ac_cv_lib_svld_dlopen=yes 12809else 12810 echo "$as_me: failed program was:" >&5 12811sed 's/^/| /' conftest.$ac_ext >&5 12812 12813 ac_cv_lib_svld_dlopen=no 12814fi 12815 12816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12817 conftest$ac_exeext conftest.$ac_ext 12818LIBS=$ac_check_lib_save_LIBS 12819fi 12820{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12821echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 12822if test $ac_cv_lib_svld_dlopen = yes; then 12823 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12824else 12825 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12826echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 12827if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12828 echo $ECHO_N "(cached) $ECHO_C" >&6 12829else 12830 ac_check_lib_save_LIBS=$LIBS 12831LIBS="-ldld $LIBS" 12832cat >conftest.$ac_ext <<_ACEOF 12833/* confdefs.h. */ 12834_ACEOF 12835cat confdefs.h >>conftest.$ac_ext 12836cat >>conftest.$ac_ext <<_ACEOF 12837/* end confdefs.h. */ 12838 12839/* Override any GCC internal prototype to avoid an error. 12840 Use char because int might match the return type of a GCC 12841 builtin and then its argument prototype would still apply. */ 12842#ifdef __cplusplus 12843extern "C" 12844#endif 12845char dld_link (); 12846int 12847main () 12848{ 12849return dld_link (); 12850 ; 12851 return 0; 12852} 12853_ACEOF 12854rm -f conftest.$ac_objext conftest$ac_exeext 12855if { (ac_try="$ac_link" 12856case "(($ac_try" in 12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12858 *) ac_try_echo=$ac_try;; 12859esac 12860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12861 (eval "$ac_link") 2>conftest.er1 12862 ac_status=$? 12863 grep -v '^ *+' conftest.er1 >conftest.err 12864 rm -f conftest.er1 12865 cat conftest.err >&5 12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12867 (exit $ac_status); } && { 12868 test -z "$ac_c_werror_flag" || 12869 test ! -s conftest.err 12870 } && test -s conftest$ac_exeext && 12871 $as_test_x conftest$ac_exeext; then 12872 ac_cv_lib_dld_dld_link=yes 12873else 12874 echo "$as_me: failed program was:" >&5 12875sed 's/^/| /' conftest.$ac_ext >&5 12876 12877 ac_cv_lib_dld_dld_link=no 12878fi 12879 12880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12881 conftest$ac_exeext conftest.$ac_ext 12882LIBS=$ac_check_lib_save_LIBS 12883fi 12884{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12885echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 12886if test $ac_cv_lib_dld_dld_link = yes; then 12887 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12888fi 12889 12890 12891fi 12892 12893 12894fi 12895 12896 12897fi 12898 12899 12900fi 12901 12902 12903fi 12904 12905 ;; 12906 esac 12907 12908 if test "x$lt_cv_dlopen" != xno; then 12909 enable_dlopen=yes 12910 else 12911 enable_dlopen=no 12912 fi 12913 12914 case $lt_cv_dlopen in 12915 dlopen) 12916 save_CPPFLAGS="$CPPFLAGS" 12917 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12918 12919 save_LDFLAGS="$LDFLAGS" 12920 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12921 12922 save_LIBS="$LIBS" 12923 LIBS="$lt_cv_dlopen_libs $LIBS" 12924 12925 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12926echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 12927if test "${lt_cv_dlopen_self+set}" = set; then 12928 echo $ECHO_N "(cached) $ECHO_C" >&6 12929else 12930 if test "$cross_compiling" = yes; then : 12931 lt_cv_dlopen_self=cross 12932else 12933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12934 lt_status=$lt_dlunknown 12935 cat > conftest.$ac_ext <<EOF 12936#line 12936 "configure" 12937#include "confdefs.h" 12938 12939#if HAVE_DLFCN_H 12940#include <dlfcn.h> 12941#endif 12942 12943#include <stdio.h> 12944 12945#ifdef RTLD_GLOBAL 12946# define LT_DLGLOBAL RTLD_GLOBAL 12947#else 12948# ifdef DL_GLOBAL 12949# define LT_DLGLOBAL DL_GLOBAL 12950# else 12951# define LT_DLGLOBAL 0 12952# endif 12953#endif 12954 12955/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12956 find out it does not work in some platform. */ 12957#ifndef LT_DLLAZY_OR_NOW 12958# ifdef RTLD_LAZY 12959# define LT_DLLAZY_OR_NOW RTLD_LAZY 12960# else 12961# ifdef DL_LAZY 12962# define LT_DLLAZY_OR_NOW DL_LAZY 12963# else 12964# ifdef RTLD_NOW 12965# define LT_DLLAZY_OR_NOW RTLD_NOW 12966# else 12967# ifdef DL_NOW 12968# define LT_DLLAZY_OR_NOW DL_NOW 12969# else 12970# define LT_DLLAZY_OR_NOW 0 12971# endif 12972# endif 12973# endif 12974# endif 12975#endif 12976 12977#ifdef __cplusplus 12978extern "C" void exit (int); 12979#endif 12980 12981void fnord() { int i=42;} 12982int main () 12983{ 12984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12985 int status = $lt_dlunknown; 12986 12987 if (self) 12988 { 12989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12990 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12991 /* dlclose (self); */ 12992 } 12993 else 12994 puts (dlerror ()); 12995 12996 exit (status); 12997} 12998EOF 12999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13000 (eval $ac_link) 2>&5 13001 ac_status=$? 13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13003 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13004 (./conftest; exit; ) >&5 2>/dev/null 13005 lt_status=$? 13006 case x$lt_status in 13007 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13008 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13009 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13010 esac 13011 else : 13012 # compilation failed 13013 lt_cv_dlopen_self=no 13014 fi 13015fi 13016rm -fr conftest* 13017 13018 13019fi 13020{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 13021echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 13022 13023 if test "x$lt_cv_dlopen_self" = xyes; then 13024 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13025 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 13026echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 13027if test "${lt_cv_dlopen_self_static+set}" = set; then 13028 echo $ECHO_N "(cached) $ECHO_C" >&6 13029else 13030 if test "$cross_compiling" = yes; then : 13031 lt_cv_dlopen_self_static=cross 13032else 13033 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13034 lt_status=$lt_dlunknown 13035 cat > conftest.$ac_ext <<EOF 13036#line 13036 "configure" 13037#include "confdefs.h" 13038 13039#if HAVE_DLFCN_H 13040#include <dlfcn.h> 13041#endif 13042 13043#include <stdio.h> 13044 13045#ifdef RTLD_GLOBAL 13046# define LT_DLGLOBAL RTLD_GLOBAL 13047#else 13048# ifdef DL_GLOBAL 13049# define LT_DLGLOBAL DL_GLOBAL 13050# else 13051# define LT_DLGLOBAL 0 13052# endif 13053#endif 13054 13055/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13056 find out it does not work in some platform. */ 13057#ifndef LT_DLLAZY_OR_NOW 13058# ifdef RTLD_LAZY 13059# define LT_DLLAZY_OR_NOW RTLD_LAZY 13060# else 13061# ifdef DL_LAZY 13062# define LT_DLLAZY_OR_NOW DL_LAZY 13063# else 13064# ifdef RTLD_NOW 13065# define LT_DLLAZY_OR_NOW RTLD_NOW 13066# else 13067# ifdef DL_NOW 13068# define LT_DLLAZY_OR_NOW DL_NOW 13069# else 13070# define LT_DLLAZY_OR_NOW 0 13071# endif 13072# endif 13073# endif 13074# endif 13075#endif 13076 13077#ifdef __cplusplus 13078extern "C" void exit (int); 13079#endif 13080 13081void fnord() { int i=42;} 13082int main () 13083{ 13084 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13085 int status = $lt_dlunknown; 13086 13087 if (self) 13088 { 13089 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13090 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13091 /* dlclose (self); */ 13092 } 13093 else 13094 puts (dlerror ()); 13095 13096 exit (status); 13097} 13098EOF 13099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13100 (eval $ac_link) 2>&5 13101 ac_status=$? 13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13103 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13104 (./conftest; exit; ) >&5 2>/dev/null 13105 lt_status=$? 13106 case x$lt_status in 13107 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13108 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13109 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13110 esac 13111 else : 13112 # compilation failed 13113 lt_cv_dlopen_self_static=no 13114 fi 13115fi 13116rm -fr conftest* 13117 13118 13119fi 13120{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13121echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 13122 fi 13123 13124 CPPFLAGS="$save_CPPFLAGS" 13125 LDFLAGS="$save_LDFLAGS" 13126 LIBS="$save_LIBS" 13127 ;; 13128 esac 13129 13130 case $lt_cv_dlopen_self in 13131 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13132 *) enable_dlopen_self=unknown ;; 13133 esac 13134 13135 case $lt_cv_dlopen_self_static in 13136 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13137 *) enable_dlopen_self_static=unknown ;; 13138 esac 13139fi 13140 13141 13142# Report which library types will actually be built 13143{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13144echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13145{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13146echo "${ECHO_T}$can_build_shared" >&6; } 13147 13148{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13149echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13150test "$can_build_shared" = "no" && enable_shared=no 13151 13152# On AIX, shared libraries and static libraries use the same namespace, and 13153# are all built from PIC. 13154case $host_os in 13155aix3*) 13156 test "$enable_shared" = yes && enable_static=no 13157 if test -n "$RANLIB"; then 13158 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13159 postinstall_cmds='$RANLIB $lib' 13160 fi 13161 ;; 13162 13163aix[4-9]*) 13164 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13165 test "$enable_shared" = yes && enable_static=no 13166 fi 13167 ;; 13168esac 13169{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13170echo "${ECHO_T}$enable_shared" >&6; } 13171 13172{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13173echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13174# Make sure either enable_shared or enable_static is yes. 13175test "$enable_shared" = yes || enable_static=yes 13176{ echo "$as_me:$LINENO: result: $enable_static" >&5 13177echo "${ECHO_T}$enable_static" >&6; } 13178 13179# The else clause should only fire when bootstrapping the 13180# libtool distribution, otherwise you forgot to ship ltmain.sh 13181# with your package, and you will get complaints that there are 13182# no rules to generate ltmain.sh. 13183if test -f "$ltmain"; then 13184 # See if we are running on zsh, and set the options which allow our commands through 13185 # without removal of \ escapes. 13186 if test -n "${ZSH_VERSION+set}" ; then 13187 setopt NO_GLOB_SUBST 13188 fi 13189 # Now quote all the things that may contain metacharacters while being 13190 # careful not to overquote the AC_SUBSTed values. We take copies of the 13191 # variables and quote the copies for generation of the libtool script. 13192 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13193 SED SHELL STRIP \ 13194 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13195 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13196 deplibs_check_method reload_flag reload_cmds need_locks \ 13197 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13198 lt_cv_sys_global_symbol_to_c_name_address \ 13199 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13200 old_postinstall_cmds old_postuninstall_cmds \ 13201 compiler \ 13202 CC \ 13203 LD \ 13204 lt_prog_compiler_wl \ 13205 lt_prog_compiler_pic \ 13206 lt_prog_compiler_static \ 13207 lt_prog_compiler_no_builtin_flag \ 13208 export_dynamic_flag_spec \ 13209 thread_safe_flag_spec \ 13210 whole_archive_flag_spec \ 13211 enable_shared_with_static_runtimes \ 13212 old_archive_cmds \ 13213 old_archive_from_new_cmds \ 13214 predep_objects \ 13215 postdep_objects \ 13216 predeps \ 13217 postdeps \ 13218 compiler_lib_search_path \ 13219 compiler_lib_search_dirs \ 13220 archive_cmds \ 13221 archive_expsym_cmds \ 13222 postinstall_cmds \ 13223 postuninstall_cmds \ 13224 old_archive_from_expsyms_cmds \ 13225 allow_undefined_flag \ 13226 no_undefined_flag \ 13227 export_symbols_cmds \ 13228 hardcode_libdir_flag_spec \ 13229 hardcode_libdir_flag_spec_ld \ 13230 hardcode_libdir_separator \ 13231 hardcode_automatic \ 13232 module_cmds \ 13233 module_expsym_cmds \ 13234 lt_cv_prog_compiler_c_o \ 13235 fix_srcfile_path \ 13236 exclude_expsyms \ 13237 include_expsyms; do 13238 13239 case $var in 13240 old_archive_cmds | \ 13241 old_archive_from_new_cmds | \ 13242 archive_cmds | \ 13243 archive_expsym_cmds | \ 13244 module_cmds | \ 13245 module_expsym_cmds | \ 13246 old_archive_from_expsyms_cmds | \ 13247 export_symbols_cmds | \ 13248 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13249 postinstall_cmds | postuninstall_cmds | \ 13250 old_postinstall_cmds | old_postuninstall_cmds | \ 13251 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13252 # Double-quote double-evaled strings. 13253 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13254 ;; 13255 *) 13256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13257 ;; 13258 esac 13259 done 13260 13261 case $lt_echo in 13262 *'\$0 --fallback-echo"') 13263 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13264 ;; 13265 esac 13266 13267cfgfile="${ofile}T" 13268 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 13269 $rm -f "$cfgfile" 13270 { echo "$as_me:$LINENO: creating $ofile" >&5 13271echo "$as_me: creating $ofile" >&6;} 13272 13273 cat <<__EOF__ >> "$cfgfile" 13274#! $SHELL 13275 13276# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13277# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 13278# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13279# 13280# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 13281# Free Software Foundation, Inc. 13282# 13283# This file is part of GNU Libtool: 13284# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 13285# 13286# This program is free software; you can redistribute it and/or modify 13287# it under the terms of the GNU General Public License as published by 13288# the Free Software Foundation; either version 2 of the License, or 13289# (at your option) any later version. 13290# 13291# This program is distributed in the hope that it will be useful, but 13292# WITHOUT ANY WARRANTY; without even the implied warranty of 13293# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13294# General Public License for more details. 13295# 13296# You should have received a copy of the GNU General Public License 13297# along with this program; if not, write to the Free Software 13298# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13299# 13300# As a special exception to the GNU General Public License, if you 13301# distribute this file as part of a program that contains a 13302# configuration script generated by Autoconf, you may include it under 13303# the same distribution terms that you use for the rest of that program. 13304 13305# A sed program that does not truncate output. 13306SED=$lt_SED 13307 13308# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13309Xsed="$SED -e 1s/^X//" 13310 13311# The HP-UX ksh and POSIX shell print the target directory to stdout 13312# if CDPATH is set. 13313(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13314 13315# The names of the tagged configurations supported by this script. 13316available_tags= 13317 13318# ### BEGIN LIBTOOL CONFIG 13319 13320# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13321 13322# Shell to use when invoking shell scripts. 13323SHELL=$lt_SHELL 13324 13325# Whether or not to build shared libraries. 13326build_libtool_libs=$enable_shared 13327 13328# Whether or not to build static libraries. 13329build_old_libs=$enable_static 13330 13331# Whether or not to add -lc for building shared libraries. 13332build_libtool_need_lc=$archive_cmds_need_lc 13333 13334# Whether or not to disallow shared libs when runtime libs are static 13335allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13336 13337# Whether or not to optimize for fast installation. 13338fast_install=$enable_fast_install 13339 13340# The host system. 13341host_alias=$host_alias 13342host=$host 13343host_os=$host_os 13344 13345# The build system. 13346build_alias=$build_alias 13347build=$build 13348build_os=$build_os 13349 13350# An echo program that does not interpret backslashes. 13351echo=$lt_echo 13352 13353# The archiver. 13354AR=$lt_AR 13355AR_FLAGS=$lt_AR_FLAGS 13356 13357# A C compiler. 13358LTCC=$lt_LTCC 13359 13360# LTCC compiler flags. 13361LTCFLAGS=$lt_LTCFLAGS 13362 13363# A language-specific compiler. 13364CC=$lt_compiler 13365 13366# Is the compiler the GNU C compiler? 13367with_gcc=$GCC 13368 13369# An ERE matcher. 13370EGREP=$lt_EGREP 13371 13372# The linker used to build libraries. 13373LD=$lt_LD 13374 13375# Whether we need hard or soft links. 13376LN_S=$lt_LN_S 13377 13378# A BSD-compatible nm program. 13379NM=$lt_NM 13380 13381# A symbol stripping program 13382STRIP=$lt_STRIP 13383 13384# Used to examine libraries when file_magic_cmd begins "file" 13385MAGIC_CMD=$MAGIC_CMD 13386 13387# Used on cygwin: DLL creation program. 13388DLLTOOL="$DLLTOOL" 13389 13390# Used on cygwin: object dumper. 13391OBJDUMP="$OBJDUMP" 13392 13393# Used on cygwin: assembler. 13394AS="$AS" 13395 13396# The name of the directory that contains temporary libtool files. 13397objdir=$objdir 13398 13399# How to create reloadable object files. 13400reload_flag=$lt_reload_flag 13401reload_cmds=$lt_reload_cmds 13402 13403# How to pass a linker flag through the compiler. 13404wl=$lt_lt_prog_compiler_wl 13405 13406# Object file suffix (normally "o"). 13407objext="$ac_objext" 13408 13409# Old archive suffix (normally "a"). 13410libext="$libext" 13411 13412# Shared library suffix (normally ".so"). 13413shrext_cmds='$shrext_cmds' 13414 13415# Executable file suffix (normally ""). 13416exeext="$exeext" 13417 13418# Additional compiler flags for building library objects. 13419pic_flag=$lt_lt_prog_compiler_pic 13420pic_mode=$pic_mode 13421 13422# What is the maximum length of a command? 13423max_cmd_len=$lt_cv_sys_max_cmd_len 13424 13425# Does compiler simultaneously support -c and -o options? 13426compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13427 13428# Must we lock files when doing compilation? 13429need_locks=$lt_need_locks 13430 13431# Do we need the lib prefix for modules? 13432need_lib_prefix=$need_lib_prefix 13433 13434# Do we need a version for libraries? 13435need_version=$need_version 13436 13437# Whether dlopen is supported. 13438dlopen_support=$enable_dlopen 13439 13440# Whether dlopen of programs is supported. 13441dlopen_self=$enable_dlopen_self 13442 13443# Whether dlopen of statically linked programs is supported. 13444dlopen_self_static=$enable_dlopen_self_static 13445 13446# Compiler flag to prevent dynamic linking. 13447link_static_flag=$lt_lt_prog_compiler_static 13448 13449# Compiler flag to turn off builtin functions. 13450no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13451 13452# Compiler flag to allow reflexive dlopens. 13453export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13454 13455# Compiler flag to generate shared objects directly from archives. 13456whole_archive_flag_spec=$lt_whole_archive_flag_spec 13457 13458# Compiler flag to generate thread-safe objects. 13459thread_safe_flag_spec=$lt_thread_safe_flag_spec 13460 13461# Library versioning type. 13462version_type=$version_type 13463 13464# Format of library name prefix. 13465libname_spec=$lt_libname_spec 13466 13467# List of archive names. First name is the real one, the rest are links. 13468# The last name is the one that the linker finds with -lNAME. 13469library_names_spec=$lt_library_names_spec 13470 13471# The coded name of the library, if different from the real name. 13472soname_spec=$lt_soname_spec 13473 13474# Commands used to build and install an old-style archive. 13475RANLIB=$lt_RANLIB 13476old_archive_cmds=$lt_old_archive_cmds 13477old_postinstall_cmds=$lt_old_postinstall_cmds 13478old_postuninstall_cmds=$lt_old_postuninstall_cmds 13479 13480# Create an old-style archive from a shared archive. 13481old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13482 13483# Create a temporary old-style archive to link instead of a shared archive. 13484old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13485 13486# Commands used to build and install a shared archive. 13487archive_cmds=$lt_archive_cmds 13488archive_expsym_cmds=$lt_archive_expsym_cmds 13489postinstall_cmds=$lt_postinstall_cmds 13490postuninstall_cmds=$lt_postuninstall_cmds 13491 13492# Commands used to build a loadable module (assumed same as above if empty) 13493module_cmds=$lt_module_cmds 13494module_expsym_cmds=$lt_module_expsym_cmds 13495 13496# Commands to strip libraries. 13497old_striplib=$lt_old_striplib 13498striplib=$lt_striplib 13499 13500# Dependencies to place before the objects being linked to create a 13501# shared library. 13502predep_objects=$lt_predep_objects 13503 13504# Dependencies to place after the objects being linked to create a 13505# shared library. 13506postdep_objects=$lt_postdep_objects 13507 13508# Dependencies to place before the objects being linked to create a 13509# shared library. 13510predeps=$lt_predeps 13511 13512# Dependencies to place after the objects being linked to create a 13513# shared library. 13514postdeps=$lt_postdeps 13515 13516# The directories searched by this compiler when creating a shared 13517# library 13518compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 13519 13520# The library search path used internally by the compiler when linking 13521# a shared library. 13522compiler_lib_search_path=$lt_compiler_lib_search_path 13523 13524# Method to check whether dependent libraries are shared objects. 13525deplibs_check_method=$lt_deplibs_check_method 13526 13527# Command to use when deplibs_check_method == file_magic. 13528file_magic_cmd=$lt_file_magic_cmd 13529 13530# Flag that allows shared libraries with undefined symbols to be built. 13531allow_undefined_flag=$lt_allow_undefined_flag 13532 13533# Flag that forces no undefined symbols. 13534no_undefined_flag=$lt_no_undefined_flag 13535 13536# Commands used to finish a libtool library installation in a directory. 13537finish_cmds=$lt_finish_cmds 13538 13539# Same as above, but a single script fragment to be evaled but not shown. 13540finish_eval=$lt_finish_eval 13541 13542# Take the output of nm and produce a listing of raw symbols and C names. 13543global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13544 13545# Transform the output of nm in a proper C declaration 13546global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13547 13548# Transform the output of nm in a C name address pair 13549global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13550 13551# This is the shared library runtime path variable. 13552runpath_var=$runpath_var 13553 13554# This is the shared library path variable. 13555shlibpath_var=$shlibpath_var 13556 13557# Is shlibpath searched before the hard-coded library search path? 13558shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13559 13560# How to hardcode a shared library path into an executable. 13561hardcode_action=$hardcode_action 13562 13563# Whether we should hardcode library paths into libraries. 13564hardcode_into_libs=$hardcode_into_libs 13565 13566# Flag to hardcode \$libdir into a binary during linking. 13567# This must work even if \$libdir does not exist. 13568hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13569 13570# If ld is used when linking, flag to hardcode \$libdir into 13571# a binary during linking. This must work even if \$libdir does 13572# not exist. 13573hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13574 13575# Whether we need a single -rpath flag with a separated argument. 13576hardcode_libdir_separator=$lt_hardcode_libdir_separator 13577 13578# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13579# resulting binary. 13580hardcode_direct=$hardcode_direct 13581 13582# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13583# resulting binary. 13584hardcode_minus_L=$hardcode_minus_L 13585 13586# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13587# the resulting binary. 13588hardcode_shlibpath_var=$hardcode_shlibpath_var 13589 13590# Set to yes if building a shared library automatically hardcodes DIR into the library 13591# and all subsequent libraries and executables linked against it. 13592hardcode_automatic=$hardcode_automatic 13593 13594# Variables whose values should be saved in libtool wrapper scripts and 13595# restored at relink time. 13596variables_saved_for_relink="$variables_saved_for_relink" 13597 13598# Whether libtool must link a program against all its dependency libraries. 13599link_all_deplibs=$link_all_deplibs 13600 13601# Compile-time system search path for libraries 13602sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13603 13604# Run-time system search path for libraries 13605sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13606 13607# Fix the shell variable \$srcfile for the compiler. 13608fix_srcfile_path=$lt_fix_srcfile_path 13609 13610# Set to yes if exported symbols are required. 13611always_export_symbols=$always_export_symbols 13612 13613# The commands to list exported symbols. 13614export_symbols_cmds=$lt_export_symbols_cmds 13615 13616# The commands to extract the exported symbol list from a shared archive. 13617extract_expsyms_cmds=$lt_extract_expsyms_cmds 13618 13619# Symbols that should not be listed in the preloaded symbols. 13620exclude_expsyms=$lt_exclude_expsyms 13621 13622# Symbols that must always be exported. 13623include_expsyms=$lt_include_expsyms 13624 13625# ### END LIBTOOL CONFIG 13626 13627__EOF__ 13628 13629 13630 case $host_os in 13631 aix3*) 13632 cat <<\EOF >> "$cfgfile" 13633 13634# AIX sometimes has problems with the GCC collect2 program. For some 13635# reason, if we set the COLLECT_NAMES environment variable, the problems 13636# vanish in a puff of smoke. 13637if test "X${COLLECT_NAMES+set}" != Xset; then 13638 COLLECT_NAMES= 13639 export COLLECT_NAMES 13640fi 13641EOF 13642 ;; 13643 esac 13644 13645 # We use sed instead of cat because bash on DJGPP gets confused if 13646 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13647 # text mode, it properly converts lines to CR/LF. This bash problem 13648 # is reportedly fixed, but why not run on old versions too? 13649 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 13650 13651 mv -f "$cfgfile" "$ofile" || \ 13652 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13653 chmod +x "$ofile" 13654 13655else 13656 # If there is no Makefile yet, we rely on a make rule to execute 13657 # `config.status --recheck' to rerun these tests and create the 13658 # libtool script then. 13659 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13660 if test -f "$ltmain_in"; then 13661 test -f Makefile && make "$ltmain" 13662 fi 13663fi 13664 13665 13666ac_ext=c 13667ac_cpp='$CPP $CPPFLAGS' 13668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13670ac_compiler_gnu=$ac_cv_c_compiler_gnu 13671 13672CC="$lt_save_CC" 13673 13674 13675# Check whether --with-tags was given. 13676if test "${with_tags+set}" = set; then 13677 withval=$with_tags; tagnames="$withval" 13678fi 13679 13680 13681if test -f "$ltmain" && test -n "$tagnames"; then 13682 if test ! -f "${ofile}"; then 13683 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 13684echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 13685 fi 13686 13687 if test -z "$LTCC"; then 13688 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 13689 if test -z "$LTCC"; then 13690 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 13691echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 13692 else 13693 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 13694echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 13695 fi 13696 fi 13697 if test -z "$LTCFLAGS"; then 13698 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 13699 fi 13700 13701 # Extract list of available tagged configurations in $ofile. 13702 # Note that this assumes the entire list is on one line. 13703 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 13704 13705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13706 for tagname in $tagnames; do 13707 IFS="$lt_save_ifs" 13708 # Check whether tagname contains only valid characters 13709 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 13710 "") ;; 13711 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 13712echo "$as_me: error: invalid tag name: $tagname" >&2;} 13713 { (exit 1); exit 1; }; } 13714 ;; 13715 esac 13716 13717 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 13718 then 13719 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 13720echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 13721 { (exit 1); exit 1; }; } 13722 fi 13723 13724 # Update the list of available tags. 13725 if test -n "$tagname"; then 13726 echo appending configuration tag \"$tagname\" to $ofile 13727 13728 case $tagname in 13729 CXX) 13730 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 13731 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 13732 (test "X$CXX" != "Xg++"))) ; then 13733 ac_ext=cpp 13734ac_cpp='$CXXCPP $CPPFLAGS' 13735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13738 13739 13740 13741 13742archive_cmds_need_lc_CXX=no 13743allow_undefined_flag_CXX= 13744always_export_symbols_CXX=no 13745archive_expsym_cmds_CXX= 13746export_dynamic_flag_spec_CXX= 13747hardcode_direct_CXX=no 13748hardcode_libdir_flag_spec_CXX= 13749hardcode_libdir_flag_spec_ld_CXX= 13750hardcode_libdir_separator_CXX= 13751hardcode_minus_L_CXX=no 13752hardcode_shlibpath_var_CXX=unsupported 13753hardcode_automatic_CXX=no 13754module_cmds_CXX= 13755module_expsym_cmds_CXX= 13756link_all_deplibs_CXX=unknown 13757old_archive_cmds_CXX=$old_archive_cmds 13758no_undefined_flag_CXX= 13759whole_archive_flag_spec_CXX= 13760enable_shared_with_static_runtimes_CXX=no 13761 13762# Dependencies to place before and after the object being linked: 13763predep_objects_CXX= 13764postdep_objects_CXX= 13765predeps_CXX= 13766postdeps_CXX= 13767compiler_lib_search_path_CXX= 13768compiler_lib_search_dirs_CXX= 13769 13770# Source file extension for C++ test sources. 13771ac_ext=cpp 13772 13773# Object file extension for compiled C++ test sources. 13774objext=o 13775objext_CXX=$objext 13776 13777# Code to be used in simple compile tests 13778lt_simple_compile_test_code="int some_variable = 0;" 13779 13780# Code to be used in simple link tests 13781lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13782 13783# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13784 13785# If no C compiler was specified, use CC. 13786LTCC=${LTCC-"$CC"} 13787 13788# If no C compiler flags were specified, use CFLAGS. 13789LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13790 13791# Allow CC to be a program name with arguments. 13792compiler=$CC 13793 13794 13795# save warnings/boilerplate of simple test code 13796ac_outfile=conftest.$ac_objext 13797echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13798eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13799_lt_compiler_boilerplate=`cat conftest.err` 13800$rm conftest* 13801 13802ac_outfile=conftest.$ac_objext 13803echo "$lt_simple_link_test_code" >conftest.$ac_ext 13804eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13805_lt_linker_boilerplate=`cat conftest.err` 13806$rm -r conftest* 13807 13808 13809# Allow CC to be a program name with arguments. 13810lt_save_CC=$CC 13811lt_save_LD=$LD 13812lt_save_GCC=$GCC 13813GCC=$GXX 13814lt_save_with_gnu_ld=$with_gnu_ld 13815lt_save_path_LD=$lt_cv_path_LD 13816if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13817 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13818else 13819 $as_unset lt_cv_prog_gnu_ld 13820fi 13821if test -n "${lt_cv_path_LDCXX+set}"; then 13822 lt_cv_path_LD=$lt_cv_path_LDCXX 13823else 13824 $as_unset lt_cv_path_LD 13825fi 13826test -z "${LDCXX+set}" || LD=$LDCXX 13827CC=${CXX-"c++"} 13828compiler=$CC 13829compiler_CXX=$CC 13830for cc_temp in $compiler""; do 13831 case $cc_temp in 13832 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13833 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13834 \-*) ;; 13835 *) break;; 13836 esac 13837done 13838cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13839 13840 13841# We don't want -fno-exception wen compiling C++ code, so set the 13842# no_builtin_flag separately 13843if test "$GXX" = yes; then 13844 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13845else 13846 lt_prog_compiler_no_builtin_flag_CXX= 13847fi 13848 13849if test "$GXX" = yes; then 13850 # Set up default GNU C++ configuration 13851 13852 13853# Check whether --with-gnu-ld was given. 13854if test "${with_gnu_ld+set}" = set; then 13855 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13856else 13857 with_gnu_ld=no 13858fi 13859 13860ac_prog=ld 13861if test "$GCC" = yes; then 13862 # Check if gcc -print-prog-name=ld gives a path. 13863 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 13864echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 13865 case $host in 13866 *-*-mingw*) 13867 # gcc leaves a trailing carriage return which upsets mingw 13868 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13869 *) 13870 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13871 esac 13872 case $ac_prog in 13873 # Accept absolute paths. 13874 [\\/]* | ?:[\\/]*) 13875 re_direlt='/[^/][^/]*/\.\./' 13876 # Canonicalize the pathname of ld 13877 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 13878 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 13879 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 13880 done 13881 test -z "$LD" && LD="$ac_prog" 13882 ;; 13883 "") 13884 # If it fails, then pretend we aren't using GCC. 13885 ac_prog=ld 13886 ;; 13887 *) 13888 # If it is relative, then search for the first ld in PATH. 13889 with_gnu_ld=unknown 13890 ;; 13891 esac 13892elif test "$with_gnu_ld" = yes; then 13893 { echo "$as_me:$LINENO: checking for GNU ld" >&5 13894echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 13895else 13896 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 13897echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 13898fi 13899if test "${lt_cv_path_LD+set}" = set; then 13900 echo $ECHO_N "(cached) $ECHO_C" >&6 13901else 13902 if test -z "$LD"; then 13903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13904 for ac_dir in $PATH; do 13905 IFS="$lt_save_ifs" 13906 test -z "$ac_dir" && ac_dir=. 13907 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13908 lt_cv_path_LD="$ac_dir/$ac_prog" 13909 # Check to see if the program is GNU ld. I'd rather use --version, 13910 # but apparently some variants of GNU ld only accept -v. 13911 # Break only if it was the GNU/non-GNU ld that we prefer. 13912 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13913 *GNU* | *'with BFD'*) 13914 test "$with_gnu_ld" != no && break 13915 ;; 13916 *) 13917 test "$with_gnu_ld" != yes && break 13918 ;; 13919 esac 13920 fi 13921 done 13922 IFS="$lt_save_ifs" 13923else 13924 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13925fi 13926fi 13927 13928LD="$lt_cv_path_LD" 13929if test -n "$LD"; then 13930 { echo "$as_me:$LINENO: result: $LD" >&5 13931echo "${ECHO_T}$LD" >&6; } 13932else 13933 { echo "$as_me:$LINENO: result: no" >&5 13934echo "${ECHO_T}no" >&6; } 13935fi 13936test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 13937echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 13938 { (exit 1); exit 1; }; } 13939{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 13940echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 13941if test "${lt_cv_prog_gnu_ld+set}" = set; then 13942 echo $ECHO_N "(cached) $ECHO_C" >&6 13943else 13944 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13945case `$LD -v 2>&1 </dev/null` in 13946*GNU* | *'with BFD'*) 13947 lt_cv_prog_gnu_ld=yes 13948 ;; 13949*) 13950 lt_cv_prog_gnu_ld=no 13951 ;; 13952esac 13953fi 13954{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 13955echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 13956with_gnu_ld=$lt_cv_prog_gnu_ld 13957 13958 13959 13960 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13961 # archiving commands below assume that GNU ld is being used. 13962 if test "$with_gnu_ld" = yes; then 13963 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13964 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' 13965 13966 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13967 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13968 13969 # If archive_cmds runs LD, not CC, wlarc should be empty 13970 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13971 # investigate it a little bit more. (MM) 13972 wlarc='${wl}' 13973 13974 # ancient GNU ld didn't support --whole-archive et. al. 13975 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 13976 grep 'no-whole-archive' > /dev/null; then 13977 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13978 else 13979 whole_archive_flag_spec_CXX= 13980 fi 13981 else 13982 with_gnu_ld=no 13983 wlarc= 13984 13985 # A generic and very simple default shared library creation 13986 # command for GNU C++ for the case where it uses the native 13987 # linker, instead of GNU ld. If possible, this setting should 13988 # overridden to take advantage of the native linker features on 13989 # the platform it is being used on. 13990 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13991 fi 13992 13993 # Commands to make compiler produce verbose output that lists 13994 # what "hidden" libraries, object files and flags are used when 13995 # linking a shared library. 13996 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13997 13998else 13999 GXX=no 14000 with_gnu_ld=no 14001 wlarc= 14002fi 14003 14004# PORTME: fill in a description of your system's C++ link characteristics 14005{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14006echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14007ld_shlibs_CXX=yes 14008case $host_os in 14009 aix3*) 14010 # FIXME: insert proper C++ library support 14011 ld_shlibs_CXX=no 14012 ;; 14013 aix[4-9]*) 14014 if test "$host_cpu" = ia64; then 14015 # On IA64, the linker does run time linking by default, so we don't 14016 # have to do anything special. 14017 aix_use_runtimelinking=no 14018 exp_sym_flag='-Bexport' 14019 no_entry_flag="" 14020 else 14021 aix_use_runtimelinking=no 14022 14023 # Test if we are trying to use run time linking or normal 14024 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14025 # need to do runtime linking. 14026 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14027 for ld_flag in $LDFLAGS; do 14028 case $ld_flag in 14029 *-brtl*) 14030 aix_use_runtimelinking=yes 14031 break 14032 ;; 14033 esac 14034 done 14035 ;; 14036 esac 14037 14038 exp_sym_flag='-bexport' 14039 no_entry_flag='-bnoentry' 14040 fi 14041 14042 # When large executables or shared objects are built, AIX ld can 14043 # have problems creating the table of contents. If linking a library 14044 # or program results in "error TOC overflow" add -mminimal-toc to 14045 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14046 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14047 14048 archive_cmds_CXX='' 14049 hardcode_direct_CXX=yes 14050 hardcode_libdir_separator_CXX=':' 14051 link_all_deplibs_CXX=yes 14052 14053 if test "$GXX" = yes; then 14054 case $host_os in aix4.[012]|aix4.[012].*) 14055 # We only want to do this on AIX 4.2 and lower, the check 14056 # below for broken collect2 doesn't work under 4.3+ 14057 collect2name=`${CC} -print-prog-name=collect2` 14058 if test -f "$collect2name" && \ 14059 strings "$collect2name" | grep resolve_lib_name >/dev/null 14060 then 14061 # We have reworked collect2 14062 : 14063 else 14064 # We have old collect2 14065 hardcode_direct_CXX=unsupported 14066 # It fails to find uninstalled libraries when the uninstalled 14067 # path is not listed in the libpath. Setting hardcode_minus_L 14068 # to unsupported forces relinking 14069 hardcode_minus_L_CXX=yes 14070 hardcode_libdir_flag_spec_CXX='-L$libdir' 14071 hardcode_libdir_separator_CXX= 14072 fi 14073 ;; 14074 esac 14075 shared_flag='-shared' 14076 if test "$aix_use_runtimelinking" = yes; then 14077 shared_flag="$shared_flag "'${wl}-G' 14078 fi 14079 else 14080 # not using gcc 14081 if test "$host_cpu" = ia64; then 14082 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14083 # chokes on -Wl,-G. The following line is correct: 14084 shared_flag='-G' 14085 else 14086 if test "$aix_use_runtimelinking" = yes; then 14087 shared_flag='${wl}-G' 14088 else 14089 shared_flag='${wl}-bM:SRE' 14090 fi 14091 fi 14092 fi 14093 14094 # It seems that -bexpall does not export symbols beginning with 14095 # underscore (_), so it is better to generate a list of symbols to export. 14096 always_export_symbols_CXX=yes 14097 if test "$aix_use_runtimelinking" = yes; then 14098 # Warning - without using the other runtime loading flags (-brtl), 14099 # -berok will link without error, but may produce a broken library. 14100 allow_undefined_flag_CXX='-berok' 14101 # Determine the default libpath from the value encoded in an empty executable. 14102 cat >conftest.$ac_ext <<_ACEOF 14103/* confdefs.h. */ 14104_ACEOF 14105cat confdefs.h >>conftest.$ac_ext 14106cat >>conftest.$ac_ext <<_ACEOF 14107/* end confdefs.h. */ 14108 14109int 14110main () 14111{ 14112 14113 ; 14114 return 0; 14115} 14116_ACEOF 14117rm -f conftest.$ac_objext conftest$ac_exeext 14118if { (ac_try="$ac_link" 14119case "(($ac_try" in 14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14121 *) ac_try_echo=$ac_try;; 14122esac 14123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14124 (eval "$ac_link") 2>conftest.er1 14125 ac_status=$? 14126 grep -v '^ *+' conftest.er1 >conftest.err 14127 rm -f conftest.er1 14128 cat conftest.err >&5 14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14130 (exit $ac_status); } && { 14131 test -z "$ac_cxx_werror_flag" || 14132 test ! -s conftest.err 14133 } && test -s conftest$ac_exeext && 14134 $as_test_x conftest$ac_exeext; then 14135 14136lt_aix_libpath_sed=' 14137 /Import File Strings/,/^$/ { 14138 /^0/ { 14139 s/^0 *\(.*\)$/\1/ 14140 p 14141 } 14142 }' 14143aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14144# Check for a 64-bit object if we didn't find anything. 14145if test -z "$aix_libpath"; then 14146 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14147fi 14148else 14149 echo "$as_me: failed program was:" >&5 14150sed 's/^/| /' conftest.$ac_ext >&5 14151 14152 14153fi 14154 14155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14156 conftest$ac_exeext conftest.$ac_ext 14157if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14158 14159 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14160 14161 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" 14162 else 14163 if test "$host_cpu" = ia64; then 14164 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 14165 allow_undefined_flag_CXX="-z nodefs" 14166 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" 14167 else 14168 # Determine the default libpath from the value encoded in an empty executable. 14169 cat >conftest.$ac_ext <<_ACEOF 14170/* confdefs.h. */ 14171_ACEOF 14172cat confdefs.h >>conftest.$ac_ext 14173cat >>conftest.$ac_ext <<_ACEOF 14174/* end confdefs.h. */ 14175 14176int 14177main () 14178{ 14179 14180 ; 14181 return 0; 14182} 14183_ACEOF 14184rm -f conftest.$ac_objext conftest$ac_exeext 14185if { (ac_try="$ac_link" 14186case "(($ac_try" in 14187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14188 *) ac_try_echo=$ac_try;; 14189esac 14190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14191 (eval "$ac_link") 2>conftest.er1 14192 ac_status=$? 14193 grep -v '^ *+' conftest.er1 >conftest.err 14194 rm -f conftest.er1 14195 cat conftest.err >&5 14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14197 (exit $ac_status); } && { 14198 test -z "$ac_cxx_werror_flag" || 14199 test ! -s conftest.err 14200 } && test -s conftest$ac_exeext && 14201 $as_test_x conftest$ac_exeext; then 14202 14203lt_aix_libpath_sed=' 14204 /Import File Strings/,/^$/ { 14205 /^0/ { 14206 s/^0 *\(.*\)$/\1/ 14207 p 14208 } 14209 }' 14210aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14211# Check for a 64-bit object if we didn't find anything. 14212if test -z "$aix_libpath"; then 14213 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14214fi 14215else 14216 echo "$as_me: failed program was:" >&5 14217sed 's/^/| /' conftest.$ac_ext >&5 14218 14219 14220fi 14221 14222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14223 conftest$ac_exeext conftest.$ac_ext 14224if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14225 14226 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14227 # Warning - without using the other run time loading flags, 14228 # -berok will link without error, but may produce a broken library. 14229 no_undefined_flag_CXX=' ${wl}-bernotok' 14230 allow_undefined_flag_CXX=' ${wl}-berok' 14231 # Exported symbols can be pulled into shared objects from archives 14232 whole_archive_flag_spec_CXX='$convenience' 14233 archive_cmds_need_lc_CXX=yes 14234 # This is similar to how AIX traditionally builds its shared libraries. 14235 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' 14236 fi 14237 fi 14238 ;; 14239 14240 beos*) 14241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14242 allow_undefined_flag_CXX=unsupported 14243 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14244 # support --undefined. This deserves some investigation. FIXME 14245 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14246 else 14247 ld_shlibs_CXX=no 14248 fi 14249 ;; 14250 14251 chorus*) 14252 case $cc_basename in 14253 *) 14254 # FIXME: insert proper C++ library support 14255 ld_shlibs_CXX=no 14256 ;; 14257 esac 14258 ;; 14259 14260 cygwin* | mingw* | pw32*) 14261 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14262 # as there is no search path for DLLs. 14263 hardcode_libdir_flag_spec_CXX='-L$libdir' 14264 allow_undefined_flag_CXX=unsupported 14265 always_export_symbols_CXX=no 14266 enable_shared_with_static_runtimes_CXX=yes 14267 14268 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14269 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' 14270 # If the export-symbols file already is a .def file (1st line 14271 # is EXPORTS), use it as is; otherwise, prepend... 14272 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14273 cp $export_symbols $output_objdir/$soname.def; 14274 else 14275 echo EXPORTS > $output_objdir/$soname.def; 14276 cat $export_symbols >> $output_objdir/$soname.def; 14277 fi~ 14278 $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' 14279 else 14280 ld_shlibs_CXX=no 14281 fi 14282 ;; 14283 darwin* | rhapsody*) 14284 archive_cmds_need_lc_CXX=no 14285 hardcode_direct_CXX=no 14286 hardcode_automatic_CXX=yes 14287 hardcode_shlibpath_var_CXX=unsupported 14288 whole_archive_flag_spec_CXX='' 14289 link_all_deplibs_CXX=yes 14290 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 14291 if test "$GXX" = yes ; then 14292 output_verbose_link_cmd='echo' 14293 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14294 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14295 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 14296 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 14297 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 14298 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 14299 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 14300 fi 14301 else 14302 case $cc_basename in 14303 xlc*) 14304 output_verbose_link_cmd='echo' 14305 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 14306 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14307 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14308 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14309 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}' 14310 ;; 14311 *) 14312 ld_shlibs_CXX=no 14313 ;; 14314 esac 14315 fi 14316 ;; 14317 14318 dgux*) 14319 case $cc_basename in 14320 ec++*) 14321 # FIXME: insert proper C++ library support 14322 ld_shlibs_CXX=no 14323 ;; 14324 ghcx*) 14325 # Green Hills C++ Compiler 14326 # FIXME: insert proper C++ library support 14327 ld_shlibs_CXX=no 14328 ;; 14329 *) 14330 # FIXME: insert proper C++ library support 14331 ld_shlibs_CXX=no 14332 ;; 14333 esac 14334 ;; 14335 freebsd[12]*) 14336 # C++ shared libraries reported to be fairly broken before switch to ELF 14337 ld_shlibs_CXX=no 14338 ;; 14339 freebsd-elf*) 14340 archive_cmds_need_lc_CXX=no 14341 ;; 14342 freebsd* | dragonfly*) 14343 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14344 # conventions 14345 ld_shlibs_CXX=yes 14346 ;; 14347 gnu*) 14348 ;; 14349 hpux9*) 14350 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14351 hardcode_libdir_separator_CXX=: 14352 export_dynamic_flag_spec_CXX='${wl}-E' 14353 hardcode_direct_CXX=yes 14354 hardcode_minus_L_CXX=yes # Not in the search PATH, 14355 # but as the default 14356 # location of the library. 14357 14358 case $cc_basename in 14359 CC*) 14360 # FIXME: insert proper C++ library support 14361 ld_shlibs_CXX=no 14362 ;; 14363 aCC*) 14364 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' 14365 # Commands to make compiler produce verbose output that lists 14366 # what "hidden" libraries, object files and flags are used when 14367 # linking a shared library. 14368 # 14369 # There doesn't appear to be a way to prevent this compiler from 14370 # explicitly linking system object files so we need to strip them 14371 # from the output so that they don't get included in the library 14372 # dependencies. 14373 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' 14374 ;; 14375 *) 14376 if test "$GXX" = yes; then 14377 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' 14378 else 14379 # FIXME: insert proper C++ library support 14380 ld_shlibs_CXX=no 14381 fi 14382 ;; 14383 esac 14384 ;; 14385 hpux10*|hpux11*) 14386 if test $with_gnu_ld = no; then 14387 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14388 hardcode_libdir_separator_CXX=: 14389 14390 case $host_cpu in 14391 hppa*64*|ia64*) ;; 14392 *) 14393 export_dynamic_flag_spec_CXX='${wl}-E' 14394 ;; 14395 esac 14396 fi 14397 case $host_cpu in 14398 hppa*64*|ia64*) 14399 hardcode_direct_CXX=no 14400 hardcode_shlibpath_var_CXX=no 14401 ;; 14402 *) 14403 hardcode_direct_CXX=yes 14404 hardcode_minus_L_CXX=yes # Not in the search PATH, 14405 # but as the default 14406 # location of the library. 14407 ;; 14408 esac 14409 14410 case $cc_basename in 14411 CC*) 14412 # FIXME: insert proper C++ library support 14413 ld_shlibs_CXX=no 14414 ;; 14415 aCC*) 14416 case $host_cpu in 14417 hppa*64*) 14418 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14419 ;; 14420 ia64*) 14421 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14422 ;; 14423 *) 14424 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14425 ;; 14426 esac 14427 # Commands to make compiler produce verbose output that lists 14428 # what "hidden" libraries, object files and flags are used when 14429 # linking a shared library. 14430 # 14431 # There doesn't appear to be a way to prevent this compiler from 14432 # explicitly linking system object files so we need to strip them 14433 # from the output so that they don't get included in the library 14434 # dependencies. 14435 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' 14436 ;; 14437 *) 14438 if test "$GXX" = yes; then 14439 if test $with_gnu_ld = no; then 14440 case $host_cpu in 14441 hppa*64*) 14442 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14443 ;; 14444 ia64*) 14445 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14446 ;; 14447 *) 14448 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' 14449 ;; 14450 esac 14451 fi 14452 else 14453 # FIXME: insert proper C++ library support 14454 ld_shlibs_CXX=no 14455 fi 14456 ;; 14457 esac 14458 ;; 14459 interix[3-9]*) 14460 hardcode_direct_CXX=no 14461 hardcode_shlibpath_var_CXX=no 14462 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14463 export_dynamic_flag_spec_CXX='${wl}-E' 14464 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14465 # Instead, shared libraries are loaded at an image base (0x10000000 by 14466 # default) and relocated if they conflict, which is a slow very memory 14467 # consuming and fragmenting process. To avoid this, we pick a random, 14468 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14469 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14470 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' 14471 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' 14472 ;; 14473 irix5* | irix6*) 14474 case $cc_basename in 14475 CC*) 14476 # SGI C++ 14477 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' 14478 14479 # Archives containing C++ object files must be created using 14480 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14481 # necessary to make sure instantiated templates are included 14482 # in the archive. 14483 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14484 ;; 14485 *) 14486 if test "$GXX" = yes; then 14487 if test "$with_gnu_ld" = no; then 14488 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' 14489 else 14490 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' 14491 fi 14492 fi 14493 link_all_deplibs_CXX=yes 14494 ;; 14495 esac 14496 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14497 hardcode_libdir_separator_CXX=: 14498 ;; 14499 linux* | k*bsd*-gnu) 14500 case $cc_basename in 14501 KCC*) 14502 # Kuck and Associates, Inc. (KAI) C++ Compiler 14503 14504 # KCC will only create a shared library if the output file 14505 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14506 # to its proper name (with version) after linking. 14507 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' 14508 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' 14509 # Commands to make compiler produce verbose output that lists 14510 # what "hidden" libraries, object files and flags are used when 14511 # linking a shared library. 14512 # 14513 # There doesn't appear to be a way to prevent this compiler from 14514 # explicitly linking system object files so we need to strip them 14515 # from the output so that they don't get included in the library 14516 # dependencies. 14517 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' 14518 14519 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 14520 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14521 14522 # Archives containing C++ object files must be created using 14523 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14524 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14525 ;; 14526 icpc*) 14527 # Intel C++ 14528 with_gnu_ld=yes 14529 # version 8.0 and above of icpc choke on multiply defined symbols 14530 # if we add $predep_objects and $postdep_objects, however 7.1 and 14531 # earlier do not add the objects themselves. 14532 case `$CC -V 2>&1` in 14533 *"Version 7."*) 14534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14535 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' 14536 ;; 14537 *) # Version 8.0 or newer 14538 tmp_idyn= 14539 case $host_cpu in 14540 ia64*) tmp_idyn=' -i_dynamic';; 14541 esac 14542 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14543 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' 14544 ;; 14545 esac 14546 archive_cmds_need_lc_CXX=no 14547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14548 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14549 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14550 ;; 14551 pgCC* | pgcpp*) 14552 # Portland Group C++ compiler 14553 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14554 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' 14555 14556 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 14557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14558 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' 14559 ;; 14560 cxx*) 14561 # Compaq C++ 14562 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14563 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' 14564 14565 runpath_var=LD_RUN_PATH 14566 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14567 hardcode_libdir_separator_CXX=: 14568 14569 # Commands to make compiler produce verbose output that lists 14570 # what "hidden" libraries, object files and flags are used when 14571 # linking a shared library. 14572 # 14573 # There doesn't appear to be a way to prevent this compiler from 14574 # explicitly linking system object files so we need to strip them 14575 # from the output so that they don't get included in the library 14576 # dependencies. 14577 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' 14578 ;; 14579 *) 14580 case `$CC -V 2>&1 | sed 5q` in 14581 *Sun\ C*) 14582 # Sun C++ 5.9 14583 no_undefined_flag_CXX=' -zdefs' 14584 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14585 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 14586 hardcode_libdir_flag_spec_CXX='-R$libdir' 14587 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14588 14589 # Not sure whether something based on 14590 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14591 # would be better. 14592 output_verbose_link_cmd='echo' 14593 14594 # Archives containing C++ object files must be created using 14595 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14596 # necessary to make sure instantiated templates are included 14597 # in the archive. 14598 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14599 ;; 14600 esac 14601 ;; 14602 esac 14603 ;; 14604 lynxos*) 14605 # FIXME: insert proper C++ library support 14606 ld_shlibs_CXX=no 14607 ;; 14608 m88k*) 14609 # FIXME: insert proper C++ library support 14610 ld_shlibs_CXX=no 14611 ;; 14612 mvs*) 14613 case $cc_basename in 14614 cxx*) 14615 # FIXME: insert proper C++ library support 14616 ld_shlibs_CXX=no 14617 ;; 14618 *) 14619 # FIXME: insert proper C++ library support 14620 ld_shlibs_CXX=no 14621 ;; 14622 esac 14623 ;; 14624 netbsd* | netbsdelf*-gnu) 14625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14626 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14627 wlarc= 14628 hardcode_libdir_flag_spec_CXX='-R$libdir' 14629 hardcode_direct_CXX=yes 14630 hardcode_shlibpath_var_CXX=no 14631 fi 14632 # Workaround some broken pre-1.5 toolchains 14633 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14634 ;; 14635 openbsd2*) 14636 # C++ shared libraries are fairly broken 14637 ld_shlibs_CXX=no 14638 ;; 14639 openbsd*) 14640 if test -f /usr/libexec/ld.so; then 14641 hardcode_direct_CXX=yes 14642 hardcode_shlibpath_var_CXX=no 14643 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14644 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14646 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 14647 export_dynamic_flag_spec_CXX='${wl}-E' 14648 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14649 fi 14650 output_verbose_link_cmd='echo' 14651 else 14652 ld_shlibs_CXX=no 14653 fi 14654 ;; 14655 osf3*) 14656 case $cc_basename in 14657 KCC*) 14658 # Kuck and Associates, Inc. (KAI) C++ Compiler 14659 14660 # KCC will only create a shared library if the output file 14661 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14662 # to its proper name (with version) after linking. 14663 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' 14664 14665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14666 hardcode_libdir_separator_CXX=: 14667 14668 # Archives containing C++ object files must be created using 14669 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14670 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14671 14672 ;; 14673 RCC*) 14674 # Rational C++ 2.4.1 14675 # FIXME: insert proper C++ library support 14676 ld_shlibs_CXX=no 14677 ;; 14678 cxx*) 14679 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14680 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' 14681 14682 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14683 hardcode_libdir_separator_CXX=: 14684 14685 # Commands to make compiler produce verbose output that lists 14686 # what "hidden" libraries, object files and flags are used when 14687 # linking a shared library. 14688 # 14689 # There doesn't appear to be a way to prevent this compiler from 14690 # explicitly linking system object files so we need to strip them 14691 # from the output so that they don't get included in the library 14692 # dependencies. 14693 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' 14694 ;; 14695 *) 14696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14697 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14698 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' 14699 14700 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14701 hardcode_libdir_separator_CXX=: 14702 14703 # Commands to make compiler produce verbose output that lists 14704 # what "hidden" libraries, object files and flags are used when 14705 # linking a shared library. 14706 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 14707 14708 else 14709 # FIXME: insert proper C++ library support 14710 ld_shlibs_CXX=no 14711 fi 14712 ;; 14713 esac 14714 ;; 14715 osf4* | osf5*) 14716 case $cc_basename in 14717 KCC*) 14718 # Kuck and Associates, Inc. (KAI) C++ Compiler 14719 14720 # KCC will only create a shared library if the output file 14721 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14722 # to its proper name (with version) after linking. 14723 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' 14724 14725 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14726 hardcode_libdir_separator_CXX=: 14727 14728 # Archives containing C++ object files must be created using 14729 # the KAI C++ compiler. 14730 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 14731 ;; 14732 RCC*) 14733 # Rational C++ 2.4.1 14734 # FIXME: insert proper C++ library support 14735 ld_shlibs_CXX=no 14736 ;; 14737 cxx*) 14738 allow_undefined_flag_CXX=' -expect_unresolved \*' 14739 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' 14740 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14741 echo "-hidden">> $lib.exp~ 14742 $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~ 14743 $rm $lib.exp' 14744 14745 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14746 hardcode_libdir_separator_CXX=: 14747 14748 # Commands to make compiler produce verbose output that lists 14749 # what "hidden" libraries, object files and flags are used when 14750 # linking a shared library. 14751 # 14752 # There doesn't appear to be a way to prevent this compiler from 14753 # explicitly linking system object files so we need to strip them 14754 # from the output so that they don't get included in the library 14755 # dependencies. 14756 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' 14757 ;; 14758 *) 14759 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14760 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14761 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' 14762 14763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14764 hardcode_libdir_separator_CXX=: 14765 14766 # Commands to make compiler produce verbose output that lists 14767 # what "hidden" libraries, object files and flags are used when 14768 # linking a shared library. 14769 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 14770 14771 else 14772 # FIXME: insert proper C++ library support 14773 ld_shlibs_CXX=no 14774 fi 14775 ;; 14776 esac 14777 ;; 14778 psos*) 14779 # FIXME: insert proper C++ library support 14780 ld_shlibs_CXX=no 14781 ;; 14782 sunos4*) 14783 case $cc_basename in 14784 CC*) 14785 # Sun C++ 4.x 14786 # FIXME: insert proper C++ library support 14787 ld_shlibs_CXX=no 14788 ;; 14789 lcc*) 14790 # Lucid 14791 # FIXME: insert proper C++ library support 14792 ld_shlibs_CXX=no 14793 ;; 14794 *) 14795 # FIXME: insert proper C++ library support 14796 ld_shlibs_CXX=no 14797 ;; 14798 esac 14799 ;; 14800 solaris*) 14801 case $cc_basename in 14802 CC*) 14803 # Sun C++ 4.2, 5.x and Centerline C++ 14804 archive_cmds_need_lc_CXX=yes 14805 no_undefined_flag_CXX=' -zdefs' 14806 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14807 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14808 $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' 14809 14810 hardcode_libdir_flag_spec_CXX='-R$libdir' 14811 hardcode_shlibpath_var_CXX=no 14812 case $host_os in 14813 solaris2.[0-5] | solaris2.[0-5].*) ;; 14814 *) 14815 # The compiler driver will combine and reorder linker options, 14816 # but understands `-z linker_flag'. 14817 # Supported since Solaris 2.6 (maybe 2.5.1?) 14818 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14819 ;; 14820 esac 14821 link_all_deplibs_CXX=yes 14822 14823 output_verbose_link_cmd='echo' 14824 14825 # Archives containing C++ object files must be created using 14826 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14827 # necessary to make sure instantiated templates are included 14828 # in the archive. 14829 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14830 ;; 14831 gcx*) 14832 # Green Hills C++ Compiler 14833 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14834 14835 # The C++ compiler must be used to create the archive. 14836 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14837 ;; 14838 *) 14839 # GNU C++ compiler with Solaris linker 14840 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14841 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14842 if $CC --version | grep -v '^2\.7' > /dev/null; then 14843 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14844 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14845 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 14846 14847 # Commands to make compiler produce verbose output that lists 14848 # what "hidden" libraries, object files and flags are used when 14849 # linking a shared library. 14850 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 14851 else 14852 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14853 # platform. 14854 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14855 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14856 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 14857 14858 # Commands to make compiler produce verbose output that lists 14859 # what "hidden" libraries, object files and flags are used when 14860 # linking a shared library. 14861 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 14862 fi 14863 14864 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14865 case $host_os in 14866 solaris2.[0-5] | solaris2.[0-5].*) ;; 14867 *) 14868 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14869 ;; 14870 esac 14871 fi 14872 ;; 14873 esac 14874 ;; 14875 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14876 no_undefined_flag_CXX='${wl}-z,text' 14877 archive_cmds_need_lc_CXX=no 14878 hardcode_shlibpath_var_CXX=no 14879 runpath_var='LD_RUN_PATH' 14880 14881 case $cc_basename in 14882 CC*) 14883 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14884 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14885 ;; 14886 *) 14887 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14888 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14889 ;; 14890 esac 14891 ;; 14892 sysv5* | sco3.2v5* | sco5v6*) 14893 # Note: We can NOT use -z defs as we might desire, because we do not 14894 # link with -lc, and that would cause any symbols used from libc to 14895 # always be unresolved, which means just about no library would 14896 # ever link correctly. If we're not using GNU ld we use -z text 14897 # though, which does catch some bad symbols but isn't as heavy-handed 14898 # as -z defs. 14899 # For security reasons, it is highly recommended that you always 14900 # use absolute paths for naming shared libraries, and exclude the 14901 # DT_RUNPATH tag from executables and libraries. But doing so 14902 # requires that you compile everything twice, which is a pain. 14903 # So that behaviour is only enabled if SCOABSPATH is set to a 14904 # non-empty value in the environment. Most likely only useful for 14905 # creating official distributions of packages. 14906 # This is a hack until libtool officially supports absolute path 14907 # names for shared libraries. 14908 no_undefined_flag_CXX='${wl}-z,text' 14909 allow_undefined_flag_CXX='${wl}-z,nodefs' 14910 archive_cmds_need_lc_CXX=no 14911 hardcode_shlibpath_var_CXX=no 14912 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14913 hardcode_libdir_separator_CXX=':' 14914 link_all_deplibs_CXX=yes 14915 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14916 runpath_var='LD_RUN_PATH' 14917 14918 case $cc_basename in 14919 CC*) 14920 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14921 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14922 ;; 14923 *) 14924 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14925 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14926 ;; 14927 esac 14928 ;; 14929 tandem*) 14930 case $cc_basename in 14931 NCC*) 14932 # NonStop-UX NCC 3.20 14933 # FIXME: insert proper C++ library support 14934 ld_shlibs_CXX=no 14935 ;; 14936 *) 14937 # FIXME: insert proper C++ library support 14938 ld_shlibs_CXX=no 14939 ;; 14940 esac 14941 ;; 14942 vxworks*) 14943 # FIXME: insert proper C++ library support 14944 ld_shlibs_CXX=no 14945 ;; 14946 *) 14947 # FIXME: insert proper C++ library support 14948 ld_shlibs_CXX=no 14949 ;; 14950esac 14951{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14952echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 14953test "$ld_shlibs_CXX" = no && can_build_shared=no 14954 14955GCC_CXX="$GXX" 14956LD_CXX="$LD" 14957 14958cat > conftest.$ac_ext <<EOF 14959class Foo 14960{ 14961public: 14962 Foo (void) { a = 0; } 14963private: 14964 int a; 14965}; 14966EOF 14967 14968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14969 (eval $ac_compile) 2>&5 14970 ac_status=$? 14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14972 (exit $ac_status); }; then 14973 # Parse the compiler output and extract the necessary 14974 # objects, libraries and library flags. 14975 14976 # Sentinel used to keep track of whether or not we are before 14977 # the conftest object file. 14978 pre_test_object_deps_done=no 14979 14980 # The `*' in the case matches for architectures that use `case' in 14981 # $output_verbose_cmd can trigger glob expansion during the loop 14982 # eval without this substitution. 14983 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 14984 14985 for p in `eval $output_verbose_link_cmd`; do 14986 case $p in 14987 14988 -L* | -R* | -l*) 14989 # Some compilers place space between "-{L,R}" and the path. 14990 # Remove the space. 14991 if test $p = "-L" \ 14992 || test $p = "-R"; then 14993 prev=$p 14994 continue 14995 else 14996 prev= 14997 fi 14998 14999 if test "$pre_test_object_deps_done" = no; then 15000 case $p in 15001 -L* | -R*) 15002 # Internal compiler library paths should come after those 15003 # provided the user. The postdeps already come after the 15004 # user supplied libs so there is no need to process them. 15005 if test -z "$compiler_lib_search_path_CXX"; then 15006 compiler_lib_search_path_CXX="${prev}${p}" 15007 else 15008 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 15009 fi 15010 ;; 15011 # The "-l" case would never come before the object being 15012 # linked, so don't bother handling this case. 15013 esac 15014 else 15015 if test -z "$postdeps_CXX"; then 15016 postdeps_CXX="${prev}${p}" 15017 else 15018 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 15019 fi 15020 fi 15021 ;; 15022 15023 *.$objext) 15024 # This assumes that the test object file only shows up 15025 # once in the compiler output. 15026 if test "$p" = "conftest.$objext"; then 15027 pre_test_object_deps_done=yes 15028 continue 15029 fi 15030 15031 if test "$pre_test_object_deps_done" = no; then 15032 if test -z "$predep_objects_CXX"; then 15033 predep_objects_CXX="$p" 15034 else 15035 predep_objects_CXX="$predep_objects_CXX $p" 15036 fi 15037 else 15038 if test -z "$postdep_objects_CXX"; then 15039 postdep_objects_CXX="$p" 15040 else 15041 postdep_objects_CXX="$postdep_objects_CXX $p" 15042 fi 15043 fi 15044 ;; 15045 15046 *) ;; # Ignore the rest. 15047 15048 esac 15049 done 15050 15051 # Clean up. 15052 rm -f a.out a.exe 15053else 15054 echo "libtool.m4: error: problem compiling CXX test program" 15055fi 15056 15057$rm -f confest.$objext 15058 15059compiler_lib_search_dirs_CXX= 15060if test -n "$compiler_lib_search_path_CXX"; then 15061 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 15062fi 15063 15064# PORTME: override above test on systems where it is broken 15065case $host_os in 15066interix[3-9]*) 15067 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15068 # hack all around it, let's just trust "g++" to DTRT. 15069 predep_objects_CXX= 15070 postdep_objects_CXX= 15071 postdeps_CXX= 15072 ;; 15073 15074linux*) 15075 case `$CC -V 2>&1 | sed 5q` in 15076 *Sun\ C*) 15077 # Sun C++ 5.9 15078 # 15079 # The more standards-conforming stlport4 library is 15080 # incompatible with the Cstd library. Avoid specifying 15081 # it if it's in CXXFLAGS. Ignore libCrun as 15082 # -library=stlport4 depends on it. 15083 case " $CXX $CXXFLAGS " in 15084 *" -library=stlport4 "*) 15085 solaris_use_stlport4=yes 15086 ;; 15087 esac 15088 if test "$solaris_use_stlport4" != yes; then 15089 postdeps_CXX='-library=Cstd -library=Crun' 15090 fi 15091 ;; 15092 esac 15093 ;; 15094 15095solaris*) 15096 case $cc_basename in 15097 CC*) 15098 # The more standards-conforming stlport4 library is 15099 # incompatible with the Cstd library. Avoid specifying 15100 # it if it's in CXXFLAGS. Ignore libCrun as 15101 # -library=stlport4 depends on it. 15102 case " $CXX $CXXFLAGS " in 15103 *" -library=stlport4 "*) 15104 solaris_use_stlport4=yes 15105 ;; 15106 esac 15107 15108 # Adding this requires a known-good setup of shared libraries for 15109 # Sun compiler versions before 5.6, else PIC objects from an old 15110 # archive will be linked into the output, leading to subtle bugs. 15111 if test "$solaris_use_stlport4" != yes; then 15112 postdeps_CXX='-library=Cstd -library=Crun' 15113 fi 15114 ;; 15115 esac 15116 ;; 15117esac 15118 15119case " $postdeps_CXX " in 15120*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15121esac 15122 15123lt_prog_compiler_wl_CXX= 15124lt_prog_compiler_pic_CXX= 15125lt_prog_compiler_static_CXX= 15126 15127{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15128echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 15129 15130 # C++ specific cases for pic, static, wl, etc. 15131 if test "$GXX" = yes; then 15132 lt_prog_compiler_wl_CXX='-Wl,' 15133 lt_prog_compiler_static_CXX='-static' 15134 15135 case $host_os in 15136 aix*) 15137 # All AIX code is PIC. 15138 if test "$host_cpu" = ia64; then 15139 # AIX 5 now supports IA64 processor 15140 lt_prog_compiler_static_CXX='-Bstatic' 15141 fi 15142 ;; 15143 amigaos*) 15144 # FIXME: we need at least 68020 code to build shared libraries, but 15145 # adding the `-m68020' flag to GCC prevents building anything better, 15146 # like `-m68040'. 15147 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15148 ;; 15149 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15150 # PIC is the default for these OSes. 15151 ;; 15152 mingw* | cygwin* | os2* | pw32*) 15153 # This hack is so that the source file can tell whether it is being 15154 # built for inclusion in a dll (and should export symbols for example). 15155 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15156 # (--disable-auto-import) libraries 15157 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15158 ;; 15159 darwin* | rhapsody*) 15160 # PIC is the default on this platform 15161 # Common symbols not allowed in MH_DYLIB files 15162 lt_prog_compiler_pic_CXX='-fno-common' 15163 ;; 15164 *djgpp*) 15165 # DJGPP does not support shared libraries at all 15166 lt_prog_compiler_pic_CXX= 15167 ;; 15168 interix[3-9]*) 15169 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15170 # Instead, we relocate shared libraries at runtime. 15171 ;; 15172 sysv4*MP*) 15173 if test -d /usr/nec; then 15174 lt_prog_compiler_pic_CXX=-Kconform_pic 15175 fi 15176 ;; 15177 hpux*) 15178 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15179 # not for PA HP-UX. 15180 case $host_cpu in 15181 hppa*64*|ia64*) 15182 ;; 15183 *) 15184 lt_prog_compiler_pic_CXX='-fPIC' 15185 ;; 15186 esac 15187 ;; 15188 *) 15189 lt_prog_compiler_pic_CXX='-fPIC' 15190 ;; 15191 esac 15192 else 15193 case $host_os in 15194 aix[4-9]*) 15195 # All AIX code is PIC. 15196 if test "$host_cpu" = ia64; then 15197 # AIX 5 now supports IA64 processor 15198 lt_prog_compiler_static_CXX='-Bstatic' 15199 else 15200 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15201 fi 15202 ;; 15203 chorus*) 15204 case $cc_basename in 15205 cxch68*) 15206 # Green Hills C++ Compiler 15207 # _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" 15208 ;; 15209 esac 15210 ;; 15211 darwin*) 15212 # PIC is the default on this platform 15213 # Common symbols not allowed in MH_DYLIB files 15214 case $cc_basename in 15215 xlc*) 15216 lt_prog_compiler_pic_CXX='-qnocommon' 15217 lt_prog_compiler_wl_CXX='-Wl,' 15218 ;; 15219 esac 15220 ;; 15221 dgux*) 15222 case $cc_basename in 15223 ec++*) 15224 lt_prog_compiler_pic_CXX='-KPIC' 15225 ;; 15226 ghcx*) 15227 # Green Hills C++ Compiler 15228 lt_prog_compiler_pic_CXX='-pic' 15229 ;; 15230 *) 15231 ;; 15232 esac 15233 ;; 15234 freebsd* | dragonfly*) 15235 # FreeBSD uses GNU C++ 15236 ;; 15237 hpux9* | hpux10* | hpux11*) 15238 case $cc_basename in 15239 CC*) 15240 lt_prog_compiler_wl_CXX='-Wl,' 15241 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15242 if test "$host_cpu" != ia64; then 15243 lt_prog_compiler_pic_CXX='+Z' 15244 fi 15245 ;; 15246 aCC*) 15247 lt_prog_compiler_wl_CXX='-Wl,' 15248 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15249 case $host_cpu in 15250 hppa*64*|ia64*) 15251 # +Z the default 15252 ;; 15253 *) 15254 lt_prog_compiler_pic_CXX='+Z' 15255 ;; 15256 esac 15257 ;; 15258 *) 15259 ;; 15260 esac 15261 ;; 15262 interix*) 15263 # This is c89, which is MS Visual C++ (no shared libs) 15264 # Anyone wants to do a port? 15265 ;; 15266 irix5* | irix6* | nonstopux*) 15267 case $cc_basename in 15268 CC*) 15269 lt_prog_compiler_wl_CXX='-Wl,' 15270 lt_prog_compiler_static_CXX='-non_shared' 15271 # CC pic flag -KPIC is the default. 15272 ;; 15273 *) 15274 ;; 15275 esac 15276 ;; 15277 linux* | k*bsd*-gnu) 15278 case $cc_basename in 15279 KCC*) 15280 # KAI C++ Compiler 15281 lt_prog_compiler_wl_CXX='--backend -Wl,' 15282 lt_prog_compiler_pic_CXX='-fPIC' 15283 ;; 15284 icpc* | ecpc*) 15285 # Intel C++ 15286 lt_prog_compiler_wl_CXX='-Wl,' 15287 lt_prog_compiler_pic_CXX='-KPIC' 15288 lt_prog_compiler_static_CXX='-static' 15289 ;; 15290 pgCC* | pgcpp*) 15291 # Portland Group C++ compiler. 15292 lt_prog_compiler_wl_CXX='-Wl,' 15293 lt_prog_compiler_pic_CXX='-fpic' 15294 lt_prog_compiler_static_CXX='-Bstatic' 15295 ;; 15296 cxx*) 15297 # Compaq C++ 15298 # Make sure the PIC flag is empty. It appears that all Alpha 15299 # Linux and Compaq Tru64 Unix objects are PIC. 15300 lt_prog_compiler_pic_CXX= 15301 lt_prog_compiler_static_CXX='-non_shared' 15302 ;; 15303 *) 15304 case `$CC -V 2>&1 | sed 5q` in 15305 *Sun\ C*) 15306 # Sun C++ 5.9 15307 lt_prog_compiler_pic_CXX='-KPIC' 15308 lt_prog_compiler_static_CXX='-Bstatic' 15309 lt_prog_compiler_wl_CXX='-Qoption ld ' 15310 ;; 15311 esac 15312 ;; 15313 esac 15314 ;; 15315 lynxos*) 15316 ;; 15317 m88k*) 15318 ;; 15319 mvs*) 15320 case $cc_basename in 15321 cxx*) 15322 lt_prog_compiler_pic_CXX='-W c,exportall' 15323 ;; 15324 *) 15325 ;; 15326 esac 15327 ;; 15328 netbsd* | netbsdelf*-gnu) 15329 ;; 15330 osf3* | osf4* | osf5*) 15331 case $cc_basename in 15332 KCC*) 15333 lt_prog_compiler_wl_CXX='--backend -Wl,' 15334 ;; 15335 RCC*) 15336 # Rational C++ 2.4.1 15337 lt_prog_compiler_pic_CXX='-pic' 15338 ;; 15339 cxx*) 15340 # Digital/Compaq C++ 15341 lt_prog_compiler_wl_CXX='-Wl,' 15342 # Make sure the PIC flag is empty. It appears that all Alpha 15343 # Linux and Compaq Tru64 Unix objects are PIC. 15344 lt_prog_compiler_pic_CXX= 15345 lt_prog_compiler_static_CXX='-non_shared' 15346 ;; 15347 *) 15348 ;; 15349 esac 15350 ;; 15351 psos*) 15352 ;; 15353 solaris*) 15354 case $cc_basename in 15355 CC*) 15356 # Sun C++ 4.2, 5.x and Centerline C++ 15357 lt_prog_compiler_pic_CXX='-KPIC' 15358 lt_prog_compiler_static_CXX='-Bstatic' 15359 lt_prog_compiler_wl_CXX='-Qoption ld ' 15360 ;; 15361 gcx*) 15362 # Green Hills C++ Compiler 15363 lt_prog_compiler_pic_CXX='-PIC' 15364 ;; 15365 *) 15366 ;; 15367 esac 15368 ;; 15369 sunos4*) 15370 case $cc_basename in 15371 CC*) 15372 # Sun C++ 4.x 15373 lt_prog_compiler_pic_CXX='-pic' 15374 lt_prog_compiler_static_CXX='-Bstatic' 15375 ;; 15376 lcc*) 15377 # Lucid 15378 lt_prog_compiler_pic_CXX='-pic' 15379 ;; 15380 *) 15381 ;; 15382 esac 15383 ;; 15384 tandem*) 15385 case $cc_basename in 15386 NCC*) 15387 # NonStop-UX NCC 3.20 15388 lt_prog_compiler_pic_CXX='-KPIC' 15389 ;; 15390 *) 15391 ;; 15392 esac 15393 ;; 15394 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15395 case $cc_basename in 15396 CC*) 15397 lt_prog_compiler_wl_CXX='-Wl,' 15398 lt_prog_compiler_pic_CXX='-KPIC' 15399 lt_prog_compiler_static_CXX='-Bstatic' 15400 ;; 15401 esac 15402 ;; 15403 vxworks*) 15404 ;; 15405 *) 15406 lt_prog_compiler_can_build_shared_CXX=no 15407 ;; 15408 esac 15409 fi 15410 15411{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 15412echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 15413 15414# 15415# Check to make sure the PIC flag actually works. 15416# 15417if test -n "$lt_prog_compiler_pic_CXX"; then 15418 15419{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15420echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 15421if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 15422 echo $ECHO_N "(cached) $ECHO_C" >&6 15423else 15424 lt_cv_prog_compiler_pic_works_CXX=no 15425 ac_outfile=conftest.$ac_objext 15426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15427 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 15428 # Insert the option either (1) after the last *FLAGS variable, or 15429 # (2) before a word containing "conftest.", or (3) at the end. 15430 # Note that $ac_compile itself does not contain backslashes and begins 15431 # with a dollar sign (not a hyphen), so the echo should work correctly. 15432 # The option is referenced via a variable to avoid confusing sed. 15433 lt_compile=`echo "$ac_compile" | $SED \ 15434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15436 -e 's:$: $lt_compiler_flag:'` 15437 (eval echo "\"\$as_me:15437: $lt_compile\"" >&5) 15438 (eval "$lt_compile" 2>conftest.err) 15439 ac_status=$? 15440 cat conftest.err >&5 15441 echo "$as_me:15441: \$? = $ac_status" >&5 15442 if (exit $ac_status) && test -s "$ac_outfile"; then 15443 # The compiler can only warn and ignore the option if not recognized 15444 # So say no if there are warnings other than the usual output. 15445 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15448 lt_cv_prog_compiler_pic_works_CXX=yes 15449 fi 15450 fi 15451 $rm conftest* 15452 15453fi 15454{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15455echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15456 15457if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 15458 case $lt_prog_compiler_pic_CXX in 15459 "" | " "*) ;; 15460 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15461 esac 15462else 15463 lt_prog_compiler_pic_CXX= 15464 lt_prog_compiler_can_build_shared_CXX=no 15465fi 15466 15467fi 15468case $host_os in 15469 # For platforms which do not support PIC, -DPIC is meaningless: 15470 *djgpp*) 15471 lt_prog_compiler_pic_CXX= 15472 ;; 15473 *) 15474 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15475 ;; 15476esac 15477 15478# 15479# Check to make sure the static flag actually works. 15480# 15481wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15482{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15483echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 15484if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 15485 echo $ECHO_N "(cached) $ECHO_C" >&6 15486else 15487 lt_cv_prog_compiler_static_works_CXX=no 15488 save_LDFLAGS="$LDFLAGS" 15489 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15490 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15492 # The linker can only warn and ignore the option if not recognized 15493 # So say no if there are warnings 15494 if test -s conftest.err; then 15495 # Append any errors to the config.log. 15496 cat conftest.err 1>&5 15497 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15499 if diff conftest.exp conftest.er2 >/dev/null; then 15500 lt_cv_prog_compiler_static_works_CXX=yes 15501 fi 15502 else 15503 lt_cv_prog_compiler_static_works_CXX=yes 15504 fi 15505 fi 15506 $rm -r conftest* 15507 LDFLAGS="$save_LDFLAGS" 15508 15509fi 15510{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15511echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } 15512 15513if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 15514 : 15515else 15516 lt_prog_compiler_static_CXX= 15517fi 15518 15519 15520{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15521echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 15522if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 15523 echo $ECHO_N "(cached) $ECHO_C" >&6 15524else 15525 lt_cv_prog_compiler_c_o_CXX=no 15526 $rm -r conftest 2>/dev/null 15527 mkdir conftest 15528 cd conftest 15529 mkdir out 15530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15531 15532 lt_compiler_flag="-o out/conftest2.$ac_objext" 15533 # Insert the option either (1) after the last *FLAGS variable, or 15534 # (2) before a word containing "conftest.", or (3) at the end. 15535 # Note that $ac_compile itself does not contain backslashes and begins 15536 # with a dollar sign (not a hyphen), so the echo should work correctly. 15537 lt_compile=`echo "$ac_compile" | $SED \ 15538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15540 -e 's:$: $lt_compiler_flag:'` 15541 (eval echo "\"\$as_me:15541: $lt_compile\"" >&5) 15542 (eval "$lt_compile" 2>out/conftest.err) 15543 ac_status=$? 15544 cat out/conftest.err >&5 15545 echo "$as_me:15545: \$? = $ac_status" >&5 15546 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15547 then 15548 # The compiler can only warn and ignore the option if not recognized 15549 # So say no if there are warnings 15550 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15553 lt_cv_prog_compiler_c_o_CXX=yes 15554 fi 15555 fi 15556 chmod u+w . 2>&5 15557 $rm conftest* 15558 # SGI C++ compiler will create directory out/ii_files/ for 15559 # template instantiation 15560 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15561 $rm out/* && rmdir out 15562 cd .. 15563 rmdir conftest 15564 $rm conftest* 15565 15566fi 15567{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15568echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 15569 15570 15571hard_links="nottested" 15572if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 15573 # do not overwrite the value of need_locks provided by the user 15574 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15575echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 15576 hard_links=yes 15577 $rm conftest* 15578 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15579 touch conftest.a 15580 ln conftest.a conftest.b 2>&5 || hard_links=no 15581 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15582 { echo "$as_me:$LINENO: result: $hard_links" >&5 15583echo "${ECHO_T}$hard_links" >&6; } 15584 if test "$hard_links" = no; then 15585 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15586echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15587 need_locks=warn 15588 fi 15589else 15590 need_locks=no 15591fi 15592 15593{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15594echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 15595 15596 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15597 case $host_os in 15598 aix[4-9]*) 15599 # If we're using GNU nm, then we don't want the "-C" option. 15600 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15601 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15602 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' 15603 else 15604 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' 15605 fi 15606 ;; 15607 pw32*) 15608 export_symbols_cmds_CXX="$ltdll_cmds" 15609 ;; 15610 cygwin* | mingw*) 15611 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' 15612 ;; 15613 linux* | k*bsd*-gnu) 15614 link_all_deplibs_CXX=no 15615 ;; 15616 *) 15617 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15618 ;; 15619 esac 15620 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15621 15622{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 15623echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 15624test "$ld_shlibs_CXX" = no && can_build_shared=no 15625 15626# 15627# Do we need to explicitly link libc? 15628# 15629case "x$archive_cmds_need_lc_CXX" in 15630x|xyes) 15631 # Assume -lc should be added 15632 archive_cmds_need_lc_CXX=yes 15633 15634 if test "$enable_shared" = yes && test "$GCC" = yes; then 15635 case $archive_cmds_CXX in 15636 *'~'*) 15637 # FIXME: we may have to deal with multi-command sequences. 15638 ;; 15639 '$CC '*) 15640 # Test whether the compiler implicitly links with -lc since on some 15641 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15642 # to ld, don't add -lc before -lgcc. 15643 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15644echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15645 $rm conftest* 15646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15647 15648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15649 (eval $ac_compile) 2>&5 15650 ac_status=$? 15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15652 (exit $ac_status); } 2>conftest.err; then 15653 soname=conftest 15654 lib=conftest 15655 libobjs=conftest.$ac_objext 15656 deplibs= 15657 wl=$lt_prog_compiler_wl_CXX 15658 pic_flag=$lt_prog_compiler_pic_CXX 15659 compiler_flags=-v 15660 linker_flags=-v 15661 verstring= 15662 output_objdir=. 15663 libname=conftest 15664 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15665 allow_undefined_flag_CXX= 15666 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15667 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15668 ac_status=$? 15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15670 (exit $ac_status); } 15671 then 15672 archive_cmds_need_lc_CXX=no 15673 else 15674 archive_cmds_need_lc_CXX=yes 15675 fi 15676 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15677 else 15678 cat conftest.err 1>&5 15679 fi 15680 $rm conftest* 15681 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 15682echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 15683 ;; 15684 esac 15685 fi 15686 ;; 15687esac 15688 15689{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15690echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15691library_names_spec= 15692libname_spec='lib$name' 15693soname_spec= 15694shrext_cmds=".so" 15695postinstall_cmds= 15696postuninstall_cmds= 15697finish_cmds= 15698finish_eval= 15699shlibpath_var= 15700shlibpath_overrides_runpath=unknown 15701version_type=none 15702dynamic_linker="$host_os ld.so" 15703sys_lib_dlsearch_path_spec="/lib /usr/lib" 15704 15705need_lib_prefix=unknown 15706hardcode_into_libs=no 15707 15708# when you set need_version to no, make sure it does not cause -set_version 15709# flags to be left without arguments 15710need_version=unknown 15711 15712case $host_os in 15713aix3*) 15714 version_type=linux 15715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15716 shlibpath_var=LIBPATH 15717 15718 # AIX 3 has no versioning support, so we append a major version to the name. 15719 soname_spec='${libname}${release}${shared_ext}$major' 15720 ;; 15721 15722aix[4-9]*) 15723 version_type=linux 15724 need_lib_prefix=no 15725 need_version=no 15726 hardcode_into_libs=yes 15727 if test "$host_cpu" = ia64; then 15728 # AIX 5 supports IA64 15729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15730 shlibpath_var=LD_LIBRARY_PATH 15731 else 15732 # With GCC up to 2.95.x, collect2 would create an import file 15733 # for dependence libraries. The import file would start with 15734 # the line `#! .'. This would cause the generated library to 15735 # depend on `.', always an invalid library. This was fixed in 15736 # development snapshots of GCC prior to 3.0. 15737 case $host_os in 15738 aix4 | aix4.[01] | aix4.[01].*) 15739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15740 echo ' yes ' 15741 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15742 : 15743 else 15744 can_build_shared=no 15745 fi 15746 ;; 15747 esac 15748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15749 # soname into executable. Probably we can add versioning support to 15750 # collect2, so additional links can be useful in future. 15751 if test "$aix_use_runtimelinking" = yes; then 15752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15753 # instead of lib<name>.a to let people know that these are not 15754 # typical AIX shared libraries. 15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15756 else 15757 # We preserve .a as extension for shared libraries through AIX4.2 15758 # and later when we are not doing run time linking. 15759 library_names_spec='${libname}${release}.a $libname.a' 15760 soname_spec='${libname}${release}${shared_ext}$major' 15761 fi 15762 shlibpath_var=LIBPATH 15763 fi 15764 ;; 15765 15766amigaos*) 15767 library_names_spec='$libname.ixlibrary $libname.a' 15768 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15769 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' 15770 ;; 15771 15772beos*) 15773 library_names_spec='${libname}${shared_ext}' 15774 dynamic_linker="$host_os ld.so" 15775 shlibpath_var=LIBRARY_PATH 15776 ;; 15777 15778bsdi[45]*) 15779 version_type=linux 15780 need_version=no 15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15782 soname_spec='${libname}${release}${shared_ext}$major' 15783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15784 shlibpath_var=LD_LIBRARY_PATH 15785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15787 # the default ld.so.conf also contains /usr/contrib/lib and 15788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15789 # libtool to hard-code these into programs 15790 ;; 15791 15792cygwin* | mingw* | pw32*) 15793 version_type=windows 15794 shrext_cmds=".dll" 15795 need_version=no 15796 need_lib_prefix=no 15797 15798 case $GCC,$host_os in 15799 yes,cygwin* | yes,mingw* | yes,pw32*) 15800 library_names_spec='$libname.dll.a' 15801 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15802 postinstall_cmds='base_file=`basename \${file}`~ 15803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15804 dldir=$destdir/`dirname \$dlpath`~ 15805 test -d \$dldir || mkdir -p \$dldir~ 15806 $install_prog $dir/$dlname \$dldir/$dlname~ 15807 chmod a+x \$dldir/$dlname' 15808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15809 dlpath=$dir/\$dldll~ 15810 $rm \$dlpath' 15811 shlibpath_overrides_runpath=yes 15812 15813 case $host_os in 15814 cygwin*) 15815 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15818 ;; 15819 mingw*) 15820 # MinGW DLLs use traditional 'lib' prefix 15821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15823 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15824 # It is most probably a Windows format PATH printed by 15825 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15826 # path with ; separators, and with drive letters. We can handle the 15827 # drive letters (cygwin fileutils understands them), so leave them, 15828 # especially as we might pass files found there to a mingw objdump, 15829 # which wouldn't understand a cygwinified path. Ahh. 15830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15831 else 15832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15833 fi 15834 ;; 15835 pw32*) 15836 # pw32 DLLs use 'pw' prefix rather than 'lib' 15837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15838 ;; 15839 esac 15840 ;; 15841 15842 *) 15843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15844 ;; 15845 esac 15846 dynamic_linker='Win32 ld.exe' 15847 # FIXME: first we should search . and the directory the executable is in 15848 shlibpath_var=PATH 15849 ;; 15850 15851darwin* | rhapsody*) 15852 dynamic_linker="$host_os dyld" 15853 version_type=darwin 15854 need_lib_prefix=no 15855 need_version=no 15856 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15857 soname_spec='${libname}${release}${major}$shared_ext' 15858 shlibpath_overrides_runpath=yes 15859 shlibpath_var=DYLD_LIBRARY_PATH 15860 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15861 15862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15863 ;; 15864 15865dgux*) 15866 version_type=linux 15867 need_lib_prefix=no 15868 need_version=no 15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15870 soname_spec='${libname}${release}${shared_ext}$major' 15871 shlibpath_var=LD_LIBRARY_PATH 15872 ;; 15873 15874freebsd1*) 15875 dynamic_linker=no 15876 ;; 15877 15878freebsd* | dragonfly*) 15879 # DragonFly does not have aout. When/if they implement a new 15880 # versioning mechanism, adjust this. 15881 if test -x /usr/bin/objformat; then 15882 objformat=`/usr/bin/objformat` 15883 else 15884 case $host_os in 15885 freebsd[123]*) objformat=aout ;; 15886 *) objformat=elf ;; 15887 esac 15888 fi 15889 version_type=freebsd-$objformat 15890 case $version_type in 15891 freebsd-elf*) 15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15893 need_version=no 15894 need_lib_prefix=no 15895 ;; 15896 freebsd-*) 15897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15898 need_version=yes 15899 ;; 15900 esac 15901 shlibpath_var=LD_LIBRARY_PATH 15902 case $host_os in 15903 freebsd2*) 15904 shlibpath_overrides_runpath=yes 15905 ;; 15906 freebsd3.[01]* | freebsdelf3.[01]*) 15907 shlibpath_overrides_runpath=yes 15908 hardcode_into_libs=yes 15909 ;; 15910 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15911 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15912 shlibpath_overrides_runpath=no 15913 hardcode_into_libs=yes 15914 ;; 15915 *) # from 4.6 on, and DragonFly 15916 shlibpath_overrides_runpath=yes 15917 hardcode_into_libs=yes 15918 ;; 15919 esac 15920 ;; 15921 15922gnu*) 15923 version_type=linux 15924 need_lib_prefix=no 15925 need_version=no 15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15927 soname_spec='${libname}${release}${shared_ext}$major' 15928 shlibpath_var=LD_LIBRARY_PATH 15929 hardcode_into_libs=yes 15930 ;; 15931 15932hpux9* | hpux10* | hpux11*) 15933 # Give a soname corresponding to the major version so that dld.sl refuses to 15934 # link against other versions. 15935 version_type=sunos 15936 need_lib_prefix=no 15937 need_version=no 15938 case $host_cpu in 15939 ia64*) 15940 shrext_cmds='.so' 15941 hardcode_into_libs=yes 15942 dynamic_linker="$host_os dld.so" 15943 shlibpath_var=LD_LIBRARY_PATH 15944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15946 soname_spec='${libname}${release}${shared_ext}$major' 15947 if test "X$HPUX_IA64_MODE" = X32; then 15948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15949 else 15950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15951 fi 15952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15953 ;; 15954 hppa*64*) 15955 shrext_cmds='.sl' 15956 hardcode_into_libs=yes 15957 dynamic_linker="$host_os dld.sl" 15958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15961 soname_spec='${libname}${release}${shared_ext}$major' 15962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15964 ;; 15965 *) 15966 shrext_cmds='.sl' 15967 dynamic_linker="$host_os dld.sl" 15968 shlibpath_var=SHLIB_PATH 15969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15971 soname_spec='${libname}${release}${shared_ext}$major' 15972 ;; 15973 esac 15974 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15975 postinstall_cmds='chmod 555 $lib' 15976 ;; 15977 15978interix[3-9]*) 15979 version_type=linux 15980 need_lib_prefix=no 15981 need_version=no 15982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15983 soname_spec='${libname}${release}${shared_ext}$major' 15984 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15985 shlibpath_var=LD_LIBRARY_PATH 15986 shlibpath_overrides_runpath=no 15987 hardcode_into_libs=yes 15988 ;; 15989 15990irix5* | irix6* | nonstopux*) 15991 case $host_os in 15992 nonstopux*) version_type=nonstopux ;; 15993 *) 15994 if test "$lt_cv_prog_gnu_ld" = yes; then 15995 version_type=linux 15996 else 15997 version_type=irix 15998 fi ;; 15999 esac 16000 need_lib_prefix=no 16001 need_version=no 16002 soname_spec='${libname}${release}${shared_ext}$major' 16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16004 case $host_os in 16005 irix5* | nonstopux*) 16006 libsuff= shlibsuff= 16007 ;; 16008 *) 16009 case $LD in # libtool.m4 will add one of these switches to LD 16010 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16011 libsuff= shlibsuff= libmagic=32-bit;; 16012 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16013 libsuff=32 shlibsuff=N32 libmagic=N32;; 16014 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16015 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16016 *) libsuff= shlibsuff= libmagic=never-match;; 16017 esac 16018 ;; 16019 esac 16020 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16021 shlibpath_overrides_runpath=no 16022 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16023 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16024 hardcode_into_libs=yes 16025 ;; 16026 16027# No shared lib support for Linux oldld, aout, or coff. 16028linux*oldld* | linux*aout* | linux*coff*) 16029 dynamic_linker=no 16030 ;; 16031 16032# This must be Linux ELF. 16033linux* | k*bsd*-gnu) 16034 version_type=linux 16035 need_lib_prefix=no 16036 need_version=no 16037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16038 soname_spec='${libname}${release}${shared_ext}$major' 16039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16040 shlibpath_var=LD_LIBRARY_PATH 16041 shlibpath_overrides_runpath=no 16042 # This implies no fast_install, which is unacceptable. 16043 # Some rework will be needed to allow for fast_install 16044 # before this can be enabled. 16045 hardcode_into_libs=yes 16046 16047 # Append ld.so.conf contents to the search path 16048 if test -f /etc/ld.so.conf; then 16049 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16050 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16051 fi 16052 16053 # We used to test for /lib/ld.so.1 and disable shared libraries on 16054 # powerpc, because MkLinux only supported shared libraries with the 16055 # GNU dynamic linker. Since this was broken with cross compilers, 16056 # most powerpc-linux boxes support dynamic linking these days and 16057 # people can always --disable-shared, the test was removed, and we 16058 # assume the GNU/Linux dynamic linker is in use. 16059 dynamic_linker='GNU/Linux ld.so' 16060 ;; 16061 16062netbsdelf*-gnu) 16063 version_type=linux 16064 need_lib_prefix=no 16065 need_version=no 16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16067 soname_spec='${libname}${release}${shared_ext}$major' 16068 shlibpath_var=LD_LIBRARY_PATH 16069 shlibpath_overrides_runpath=no 16070 hardcode_into_libs=yes 16071 dynamic_linker='NetBSD ld.elf_so' 16072 ;; 16073 16074netbsd*) 16075 version_type=sunos 16076 need_lib_prefix=no 16077 need_version=no 16078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16081 dynamic_linker='NetBSD (a.out) ld.so' 16082 else 16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16084 soname_spec='${libname}${release}${shared_ext}$major' 16085 dynamic_linker='NetBSD ld.elf_so' 16086 fi 16087 shlibpath_var=LD_LIBRARY_PATH 16088 shlibpath_overrides_runpath=yes 16089 hardcode_into_libs=yes 16090 ;; 16091 16092newsos6) 16093 version_type=linux 16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16095 shlibpath_var=LD_LIBRARY_PATH 16096 shlibpath_overrides_runpath=yes 16097 ;; 16098 16099nto-qnx*) 16100 version_type=linux 16101 need_lib_prefix=no 16102 need_version=no 16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16104 soname_spec='${libname}${release}${shared_ext}$major' 16105 shlibpath_var=LD_LIBRARY_PATH 16106 shlibpath_overrides_runpath=yes 16107 ;; 16108 16109openbsd*) 16110 version_type=sunos 16111 sys_lib_dlsearch_path_spec="/usr/lib" 16112 need_lib_prefix=no 16113 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16114 case $host_os in 16115 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16116 *) need_version=no ;; 16117 esac 16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16120 shlibpath_var=LD_LIBRARY_PATH 16121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16122 case $host_os in 16123 openbsd2.[89] | openbsd2.[89].*) 16124 shlibpath_overrides_runpath=no 16125 ;; 16126 *) 16127 shlibpath_overrides_runpath=yes 16128 ;; 16129 esac 16130 else 16131 shlibpath_overrides_runpath=yes 16132 fi 16133 ;; 16134 16135os2*) 16136 libname_spec='$name' 16137 shrext_cmds=".dll" 16138 need_lib_prefix=no 16139 library_names_spec='$libname${shared_ext} $libname.a' 16140 dynamic_linker='OS/2 ld.exe' 16141 shlibpath_var=LIBPATH 16142 ;; 16143 16144osf3* | osf4* | osf5*) 16145 version_type=osf 16146 need_lib_prefix=no 16147 need_version=no 16148 soname_spec='${libname}${release}${shared_ext}$major' 16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16150 shlibpath_var=LD_LIBRARY_PATH 16151 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16152 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16153 ;; 16154 16155rdos*) 16156 dynamic_linker=no 16157 ;; 16158 16159solaris*) 16160 version_type=linux 16161 need_lib_prefix=no 16162 need_version=no 16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16164 soname_spec='${libname}${release}${shared_ext}$major' 16165 shlibpath_var=LD_LIBRARY_PATH 16166 shlibpath_overrides_runpath=yes 16167 hardcode_into_libs=yes 16168 # ldd complains unless libraries are executable 16169 postinstall_cmds='chmod +x $lib' 16170 ;; 16171 16172sunos4*) 16173 version_type=sunos 16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16175 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16176 shlibpath_var=LD_LIBRARY_PATH 16177 shlibpath_overrides_runpath=yes 16178 if test "$with_gnu_ld" = yes; then 16179 need_lib_prefix=no 16180 fi 16181 need_version=yes 16182 ;; 16183 16184sysv4 | sysv4.3*) 16185 version_type=linux 16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16187 soname_spec='${libname}${release}${shared_ext}$major' 16188 shlibpath_var=LD_LIBRARY_PATH 16189 case $host_vendor in 16190 sni) 16191 shlibpath_overrides_runpath=no 16192 need_lib_prefix=no 16193 export_dynamic_flag_spec='${wl}-Blargedynsym' 16194 runpath_var=LD_RUN_PATH 16195 ;; 16196 siemens) 16197 need_lib_prefix=no 16198 ;; 16199 motorola) 16200 need_lib_prefix=no 16201 need_version=no 16202 shlibpath_overrides_runpath=no 16203 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16204 ;; 16205 esac 16206 ;; 16207 16208sysv4*MP*) 16209 if test -d /usr/nec ;then 16210 version_type=linux 16211 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16212 soname_spec='$libname${shared_ext}.$major' 16213 shlibpath_var=LD_LIBRARY_PATH 16214 fi 16215 ;; 16216 16217sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16218 version_type=freebsd-elf 16219 need_lib_prefix=no 16220 need_version=no 16221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16222 soname_spec='${libname}${release}${shared_ext}$major' 16223 shlibpath_var=LD_LIBRARY_PATH 16224 hardcode_into_libs=yes 16225 if test "$with_gnu_ld" = yes; then 16226 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16227 shlibpath_overrides_runpath=no 16228 else 16229 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16230 shlibpath_overrides_runpath=yes 16231 case $host_os in 16232 sco3.2v5*) 16233 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16234 ;; 16235 esac 16236 fi 16237 sys_lib_dlsearch_path_spec='/usr/lib' 16238 ;; 16239 16240uts4*) 16241 version_type=linux 16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16243 soname_spec='${libname}${release}${shared_ext}$major' 16244 shlibpath_var=LD_LIBRARY_PATH 16245 ;; 16246 16247*) 16248 dynamic_linker=no 16249 ;; 16250esac 16251{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16252echo "${ECHO_T}$dynamic_linker" >&6; } 16253test "$dynamic_linker" = no && can_build_shared=no 16254 16255if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16256 echo $ECHO_N "(cached) $ECHO_C" >&6 16257else 16258 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16259fi 16260 16261sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16262if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16263 echo $ECHO_N "(cached) $ECHO_C" >&6 16264else 16265 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16266fi 16267 16268sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16269 16270variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16271if test "$GCC" = yes; then 16272 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16273fi 16274 16275{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16276echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16277hardcode_action_CXX= 16278if test -n "$hardcode_libdir_flag_spec_CXX" || \ 16279 test -n "$runpath_var_CXX" || \ 16280 test "X$hardcode_automatic_CXX" = "Xyes" ; then 16281 16282 # We can hardcode non-existant directories. 16283 if test "$hardcode_direct_CXX" != no && 16284 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16285 # have to relink, otherwise we might link with an installed library 16286 # when we should be linking with a yet-to-be-installed one 16287 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 16288 test "$hardcode_minus_L_CXX" != no; then 16289 # Linking always hardcodes the temporary library directory. 16290 hardcode_action_CXX=relink 16291 else 16292 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16293 hardcode_action_CXX=immediate 16294 fi 16295else 16296 # We cannot hardcode anything, or else we can only hardcode existing 16297 # directories. 16298 hardcode_action_CXX=unsupported 16299fi 16300{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 16301echo "${ECHO_T}$hardcode_action_CXX" >&6; } 16302 16303if test "$hardcode_action_CXX" = relink; then 16304 # Fast installation is not supported 16305 enable_fast_install=no 16306elif test "$shlibpath_overrides_runpath" = yes || 16307 test "$enable_shared" = no; then 16308 # Fast installation is not necessary 16309 enable_fast_install=needless 16310fi 16311 16312 16313# The else clause should only fire when bootstrapping the 16314# libtool distribution, otherwise you forgot to ship ltmain.sh 16315# with your package, and you will get complaints that there are 16316# no rules to generate ltmain.sh. 16317if test -f "$ltmain"; then 16318 # See if we are running on zsh, and set the options which allow our commands through 16319 # without removal of \ escapes. 16320 if test -n "${ZSH_VERSION+set}" ; then 16321 setopt NO_GLOB_SUBST 16322 fi 16323 # Now quote all the things that may contain metacharacters while being 16324 # careful not to overquote the AC_SUBSTed values. We take copies of the 16325 # variables and quote the copies for generation of the libtool script. 16326 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16327 SED SHELL STRIP \ 16328 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16329 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16330 deplibs_check_method reload_flag reload_cmds need_locks \ 16331 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16332 lt_cv_sys_global_symbol_to_c_name_address \ 16333 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16334 old_postinstall_cmds old_postuninstall_cmds \ 16335 compiler_CXX \ 16336 CC_CXX \ 16337 LD_CXX \ 16338 lt_prog_compiler_wl_CXX \ 16339 lt_prog_compiler_pic_CXX \ 16340 lt_prog_compiler_static_CXX \ 16341 lt_prog_compiler_no_builtin_flag_CXX \ 16342 export_dynamic_flag_spec_CXX \ 16343 thread_safe_flag_spec_CXX \ 16344 whole_archive_flag_spec_CXX \ 16345 enable_shared_with_static_runtimes_CXX \ 16346 old_archive_cmds_CXX \ 16347 old_archive_from_new_cmds_CXX \ 16348 predep_objects_CXX \ 16349 postdep_objects_CXX \ 16350 predeps_CXX \ 16351 postdeps_CXX \ 16352 compiler_lib_search_path_CXX \ 16353 compiler_lib_search_dirs_CXX \ 16354 archive_cmds_CXX \ 16355 archive_expsym_cmds_CXX \ 16356 postinstall_cmds_CXX \ 16357 postuninstall_cmds_CXX \ 16358 old_archive_from_expsyms_cmds_CXX \ 16359 allow_undefined_flag_CXX \ 16360 no_undefined_flag_CXX \ 16361 export_symbols_cmds_CXX \ 16362 hardcode_libdir_flag_spec_CXX \ 16363 hardcode_libdir_flag_spec_ld_CXX \ 16364 hardcode_libdir_separator_CXX \ 16365 hardcode_automatic_CXX \ 16366 module_cmds_CXX \ 16367 module_expsym_cmds_CXX \ 16368 lt_cv_prog_compiler_c_o_CXX \ 16369 fix_srcfile_path_CXX \ 16370 exclude_expsyms_CXX \ 16371 include_expsyms_CXX; do 16372 16373 case $var in 16374 old_archive_cmds_CXX | \ 16375 old_archive_from_new_cmds_CXX | \ 16376 archive_cmds_CXX | \ 16377 archive_expsym_cmds_CXX | \ 16378 module_cmds_CXX | \ 16379 module_expsym_cmds_CXX | \ 16380 old_archive_from_expsyms_cmds_CXX | \ 16381 export_symbols_cmds_CXX | \ 16382 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16383 postinstall_cmds | postuninstall_cmds | \ 16384 old_postinstall_cmds | old_postuninstall_cmds | \ 16385 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16386 # Double-quote double-evaled strings. 16387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16388 ;; 16389 *) 16390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16391 ;; 16392 esac 16393 done 16394 16395 case $lt_echo in 16396 *'\$0 --fallback-echo"') 16397 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16398 ;; 16399 esac 16400 16401cfgfile="$ofile" 16402 16403 cat <<__EOF__ >> "$cfgfile" 16404# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16405 16406# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16407 16408# Shell to use when invoking shell scripts. 16409SHELL=$lt_SHELL 16410 16411# Whether or not to build shared libraries. 16412build_libtool_libs=$enable_shared 16413 16414# Whether or not to build static libraries. 16415build_old_libs=$enable_static 16416 16417# Whether or not to add -lc for building shared libraries. 16418build_libtool_need_lc=$archive_cmds_need_lc_CXX 16419 16420# Whether or not to disallow shared libs when runtime libs are static 16421allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 16422 16423# Whether or not to optimize for fast installation. 16424fast_install=$enable_fast_install 16425 16426# The host system. 16427host_alias=$host_alias 16428host=$host 16429host_os=$host_os 16430 16431# The build system. 16432build_alias=$build_alias 16433build=$build 16434build_os=$build_os 16435 16436# An echo program that does not interpret backslashes. 16437echo=$lt_echo 16438 16439# The archiver. 16440AR=$lt_AR 16441AR_FLAGS=$lt_AR_FLAGS 16442 16443# A C compiler. 16444LTCC=$lt_LTCC 16445 16446# LTCC compiler flags. 16447LTCFLAGS=$lt_LTCFLAGS 16448 16449# A language-specific compiler. 16450CC=$lt_compiler_CXX 16451 16452# Is the compiler the GNU C compiler? 16453with_gcc=$GCC_CXX 16454 16455# An ERE matcher. 16456EGREP=$lt_EGREP 16457 16458# The linker used to build libraries. 16459LD=$lt_LD_CXX 16460 16461# Whether we need hard or soft links. 16462LN_S=$lt_LN_S 16463 16464# A BSD-compatible nm program. 16465NM=$lt_NM 16466 16467# A symbol stripping program 16468STRIP=$lt_STRIP 16469 16470# Used to examine libraries when file_magic_cmd begins "file" 16471MAGIC_CMD=$MAGIC_CMD 16472 16473# Used on cygwin: DLL creation program. 16474DLLTOOL="$DLLTOOL" 16475 16476# Used on cygwin: object dumper. 16477OBJDUMP="$OBJDUMP" 16478 16479# Used on cygwin: assembler. 16480AS="$AS" 16481 16482# The name of the directory that contains temporary libtool files. 16483objdir=$objdir 16484 16485# How to create reloadable object files. 16486reload_flag=$lt_reload_flag 16487reload_cmds=$lt_reload_cmds 16488 16489# How to pass a linker flag through the compiler. 16490wl=$lt_lt_prog_compiler_wl_CXX 16491 16492# Object file suffix (normally "o"). 16493objext="$ac_objext" 16494 16495# Old archive suffix (normally "a"). 16496libext="$libext" 16497 16498# Shared library suffix (normally ".so"). 16499shrext_cmds='$shrext_cmds' 16500 16501# Executable file suffix (normally ""). 16502exeext="$exeext" 16503 16504# Additional compiler flags for building library objects. 16505pic_flag=$lt_lt_prog_compiler_pic_CXX 16506pic_mode=$pic_mode 16507 16508# What is the maximum length of a command? 16509max_cmd_len=$lt_cv_sys_max_cmd_len 16510 16511# Does compiler simultaneously support -c and -o options? 16512compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 16513 16514# Must we lock files when doing compilation? 16515need_locks=$lt_need_locks 16516 16517# Do we need the lib prefix for modules? 16518need_lib_prefix=$need_lib_prefix 16519 16520# Do we need a version for libraries? 16521need_version=$need_version 16522 16523# Whether dlopen is supported. 16524dlopen_support=$enable_dlopen 16525 16526# Whether dlopen of programs is supported. 16527dlopen_self=$enable_dlopen_self 16528 16529# Whether dlopen of statically linked programs is supported. 16530dlopen_self_static=$enable_dlopen_self_static 16531 16532# Compiler flag to prevent dynamic linking. 16533link_static_flag=$lt_lt_prog_compiler_static_CXX 16534 16535# Compiler flag to turn off builtin functions. 16536no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 16537 16538# Compiler flag to allow reflexive dlopens. 16539export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 16540 16541# Compiler flag to generate shared objects directly from archives. 16542whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 16543 16544# Compiler flag to generate thread-safe objects. 16545thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 16546 16547# Library versioning type. 16548version_type=$version_type 16549 16550# Format of library name prefix. 16551libname_spec=$lt_libname_spec 16552 16553# List of archive names. First name is the real one, the rest are links. 16554# The last name is the one that the linker finds with -lNAME. 16555library_names_spec=$lt_library_names_spec 16556 16557# The coded name of the library, if different from the real name. 16558soname_spec=$lt_soname_spec 16559 16560# Commands used to build and install an old-style archive. 16561RANLIB=$lt_RANLIB 16562old_archive_cmds=$lt_old_archive_cmds_CXX 16563old_postinstall_cmds=$lt_old_postinstall_cmds 16564old_postuninstall_cmds=$lt_old_postuninstall_cmds 16565 16566# Create an old-style archive from a shared archive. 16567old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 16568 16569# Create a temporary old-style archive to link instead of a shared archive. 16570old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 16571 16572# Commands used to build and install a shared archive. 16573archive_cmds=$lt_archive_cmds_CXX 16574archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 16575postinstall_cmds=$lt_postinstall_cmds 16576postuninstall_cmds=$lt_postuninstall_cmds 16577 16578# Commands used to build a loadable module (assumed same as above if empty) 16579module_cmds=$lt_module_cmds_CXX 16580module_expsym_cmds=$lt_module_expsym_cmds_CXX 16581 16582# Commands to strip libraries. 16583old_striplib=$lt_old_striplib 16584striplib=$lt_striplib 16585 16586# Dependencies to place before the objects being linked to create a 16587# shared library. 16588predep_objects=$lt_predep_objects_CXX 16589 16590# Dependencies to place after the objects being linked to create a 16591# shared library. 16592postdep_objects=$lt_postdep_objects_CXX 16593 16594# Dependencies to place before the objects being linked to create a 16595# shared library. 16596predeps=$lt_predeps_CXX 16597 16598# Dependencies to place after the objects being linked to create a 16599# shared library. 16600postdeps=$lt_postdeps_CXX 16601 16602# The directories searched by this compiler when creating a shared 16603# library 16604compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 16605 16606# The library search path used internally by the compiler when linking 16607# a shared library. 16608compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 16609 16610# Method to check whether dependent libraries are shared objects. 16611deplibs_check_method=$lt_deplibs_check_method 16612 16613# Command to use when deplibs_check_method == file_magic. 16614file_magic_cmd=$lt_file_magic_cmd 16615 16616# Flag that allows shared libraries with undefined symbols to be built. 16617allow_undefined_flag=$lt_allow_undefined_flag_CXX 16618 16619# Flag that forces no undefined symbols. 16620no_undefined_flag=$lt_no_undefined_flag_CXX 16621 16622# Commands used to finish a libtool library installation in a directory. 16623finish_cmds=$lt_finish_cmds 16624 16625# Same as above, but a single script fragment to be evaled but not shown. 16626finish_eval=$lt_finish_eval 16627 16628# Take the output of nm and produce a listing of raw symbols and C names. 16629global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16630 16631# Transform the output of nm in a proper C declaration 16632global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16633 16634# Transform the output of nm in a C name address pair 16635global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16636 16637# This is the shared library runtime path variable. 16638runpath_var=$runpath_var 16639 16640# This is the shared library path variable. 16641shlibpath_var=$shlibpath_var 16642 16643# Is shlibpath searched before the hard-coded library search path? 16644shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16645 16646# How to hardcode a shared library path into an executable. 16647hardcode_action=$hardcode_action_CXX 16648 16649# Whether we should hardcode library paths into libraries. 16650hardcode_into_libs=$hardcode_into_libs 16651 16652# Flag to hardcode \$libdir into a binary during linking. 16653# This must work even if \$libdir does not exist. 16654hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 16655 16656# If ld is used when linking, flag to hardcode \$libdir into 16657# a binary during linking. This must work even if \$libdir does 16658# not exist. 16659hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 16660 16661# Whether we need a single -rpath flag with a separated argument. 16662hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 16663 16664# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16665# resulting binary. 16666hardcode_direct=$hardcode_direct_CXX 16667 16668# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16669# resulting binary. 16670hardcode_minus_L=$hardcode_minus_L_CXX 16671 16672# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16673# the resulting binary. 16674hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 16675 16676# Set to yes if building a shared library automatically hardcodes DIR into the library 16677# and all subsequent libraries and executables linked against it. 16678hardcode_automatic=$hardcode_automatic_CXX 16679 16680# Variables whose values should be saved in libtool wrapper scripts and 16681# restored at relink time. 16682variables_saved_for_relink="$variables_saved_for_relink" 16683 16684# Whether libtool must link a program against all its dependency libraries. 16685link_all_deplibs=$link_all_deplibs_CXX 16686 16687# Compile-time system search path for libraries 16688sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16689 16690# Run-time system search path for libraries 16691sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16692 16693# Fix the shell variable \$srcfile for the compiler. 16694fix_srcfile_path=$lt_fix_srcfile_path 16695 16696# Set to yes if exported symbols are required. 16697always_export_symbols=$always_export_symbols_CXX 16698 16699# The commands to list exported symbols. 16700export_symbols_cmds=$lt_export_symbols_cmds_CXX 16701 16702# The commands to extract the exported symbol list from a shared archive. 16703extract_expsyms_cmds=$lt_extract_expsyms_cmds 16704 16705# Symbols that should not be listed in the preloaded symbols. 16706exclude_expsyms=$lt_exclude_expsyms_CXX 16707 16708# Symbols that must always be exported. 16709include_expsyms=$lt_include_expsyms_CXX 16710 16711# ### END LIBTOOL TAG CONFIG: $tagname 16712 16713__EOF__ 16714 16715 16716else 16717 # If there is no Makefile yet, we rely on a make rule to execute 16718 # `config.status --recheck' to rerun these tests and create the 16719 # libtool script then. 16720 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16721 if test -f "$ltmain_in"; then 16722 test -f Makefile && make "$ltmain" 16723 fi 16724fi 16725 16726 16727ac_ext=c 16728ac_cpp='$CPP $CPPFLAGS' 16729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16731ac_compiler_gnu=$ac_cv_c_compiler_gnu 16732 16733CC=$lt_save_CC 16734LDCXX=$LD 16735LD=$lt_save_LD 16736GCC=$lt_save_GCC 16737with_gnu_ldcxx=$with_gnu_ld 16738with_gnu_ld=$lt_save_with_gnu_ld 16739lt_cv_path_LDCXX=$lt_cv_path_LD 16740lt_cv_path_LD=$lt_save_path_LD 16741lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16742lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16743 16744 else 16745 tagname="" 16746 fi 16747 ;; 16748 16749 F77) 16750 if test -n "$F77" && test "X$F77" != "Xno"; then 16751 16752ac_ext=f 16753ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 16754ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16755ac_compiler_gnu=$ac_cv_f77_compiler_gnu 16756 16757 16758archive_cmds_need_lc_F77=no 16759allow_undefined_flag_F77= 16760always_export_symbols_F77=no 16761archive_expsym_cmds_F77= 16762export_dynamic_flag_spec_F77= 16763hardcode_direct_F77=no 16764hardcode_libdir_flag_spec_F77= 16765hardcode_libdir_flag_spec_ld_F77= 16766hardcode_libdir_separator_F77= 16767hardcode_minus_L_F77=no 16768hardcode_automatic_F77=no 16769module_cmds_F77= 16770module_expsym_cmds_F77= 16771link_all_deplibs_F77=unknown 16772old_archive_cmds_F77=$old_archive_cmds 16773no_undefined_flag_F77= 16774whole_archive_flag_spec_F77= 16775enable_shared_with_static_runtimes_F77=no 16776 16777# Source file extension for f77 test sources. 16778ac_ext=f 16779 16780# Object file extension for compiled f77 test sources. 16781objext=o 16782objext_F77=$objext 16783 16784# Code to be used in simple compile tests 16785lt_simple_compile_test_code="\ 16786 subroutine t 16787 return 16788 end 16789" 16790 16791# Code to be used in simple link tests 16792lt_simple_link_test_code="\ 16793 program t 16794 end 16795" 16796 16797# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16798 16799# If no C compiler was specified, use CC. 16800LTCC=${LTCC-"$CC"} 16801 16802# If no C compiler flags were specified, use CFLAGS. 16803LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16804 16805# Allow CC to be a program name with arguments. 16806compiler=$CC 16807 16808 16809# save warnings/boilerplate of simple test code 16810ac_outfile=conftest.$ac_objext 16811echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16812eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16813_lt_compiler_boilerplate=`cat conftest.err` 16814$rm conftest* 16815 16816ac_outfile=conftest.$ac_objext 16817echo "$lt_simple_link_test_code" >conftest.$ac_ext 16818eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16819_lt_linker_boilerplate=`cat conftest.err` 16820$rm -r conftest* 16821 16822 16823# Allow CC to be a program name with arguments. 16824lt_save_CC="$CC" 16825CC=${F77-"f77"} 16826compiler=$CC 16827compiler_F77=$CC 16828for cc_temp in $compiler""; do 16829 case $cc_temp in 16830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16832 \-*) ;; 16833 *) break;; 16834 esac 16835done 16836cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16837 16838 16839{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 16840echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 16841{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 16842echo "${ECHO_T}$can_build_shared" >&6; } 16843 16844{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 16845echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 16846test "$can_build_shared" = "no" && enable_shared=no 16847 16848# On AIX, shared libraries and static libraries use the same namespace, and 16849# are all built from PIC. 16850case $host_os in 16851aix3*) 16852 test "$enable_shared" = yes && enable_static=no 16853 if test -n "$RANLIB"; then 16854 archive_cmds="$archive_cmds~\$RANLIB \$lib" 16855 postinstall_cmds='$RANLIB $lib' 16856 fi 16857 ;; 16858aix[4-9]*) 16859 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 16860 test "$enable_shared" = yes && enable_static=no 16861 fi 16862 ;; 16863esac 16864{ echo "$as_me:$LINENO: result: $enable_shared" >&5 16865echo "${ECHO_T}$enable_shared" >&6; } 16866 16867{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 16868echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 16869# Make sure either enable_shared or enable_static is yes. 16870test "$enable_shared" = yes || enable_static=yes 16871{ echo "$as_me:$LINENO: result: $enable_static" >&5 16872echo "${ECHO_T}$enable_static" >&6; } 16873 16874GCC_F77="$G77" 16875LD_F77="$LD" 16876 16877lt_prog_compiler_wl_F77= 16878lt_prog_compiler_pic_F77= 16879lt_prog_compiler_static_F77= 16880 16881{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16882echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16883 16884 if test "$GCC" = yes; then 16885 lt_prog_compiler_wl_F77='-Wl,' 16886 lt_prog_compiler_static_F77='-static' 16887 16888 case $host_os in 16889 aix*) 16890 # All AIX code is PIC. 16891 if test "$host_cpu" = ia64; then 16892 # AIX 5 now supports IA64 processor 16893 lt_prog_compiler_static_F77='-Bstatic' 16894 fi 16895 ;; 16896 16897 amigaos*) 16898 # FIXME: we need at least 68020 code to build shared libraries, but 16899 # adding the `-m68020' flag to GCC prevents building anything better, 16900 # like `-m68040'. 16901 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 16902 ;; 16903 16904 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16905 # PIC is the default for these OSes. 16906 ;; 16907 16908 mingw* | cygwin* | pw32* | os2*) 16909 # This hack is so that the source file can tell whether it is being 16910 # built for inclusion in a dll (and should export symbols for example). 16911 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16912 # (--disable-auto-import) libraries 16913 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 16914 ;; 16915 16916 darwin* | rhapsody*) 16917 # PIC is the default on this platform 16918 # Common symbols not allowed in MH_DYLIB files 16919 lt_prog_compiler_pic_F77='-fno-common' 16920 ;; 16921 16922 interix[3-9]*) 16923 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16924 # Instead, we relocate shared libraries at runtime. 16925 ;; 16926 16927 msdosdjgpp*) 16928 # Just because we use GCC doesn't mean we suddenly get shared libraries 16929 # on systems that don't support them. 16930 lt_prog_compiler_can_build_shared_F77=no 16931 enable_shared=no 16932 ;; 16933 16934 sysv4*MP*) 16935 if test -d /usr/nec; then 16936 lt_prog_compiler_pic_F77=-Kconform_pic 16937 fi 16938 ;; 16939 16940 hpux*) 16941 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16942 # not for PA HP-UX. 16943 case $host_cpu in 16944 hppa*64*|ia64*) 16945 # +Z the default 16946 ;; 16947 *) 16948 lt_prog_compiler_pic_F77='-fPIC' 16949 ;; 16950 esac 16951 ;; 16952 16953 *) 16954 lt_prog_compiler_pic_F77='-fPIC' 16955 ;; 16956 esac 16957 else 16958 # PORTME Check for flag to pass linker flags through the system compiler. 16959 case $host_os in 16960 aix*) 16961 lt_prog_compiler_wl_F77='-Wl,' 16962 if test "$host_cpu" = ia64; then 16963 # AIX 5 now supports IA64 processor 16964 lt_prog_compiler_static_F77='-Bstatic' 16965 else 16966 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 16967 fi 16968 ;; 16969 darwin*) 16970 # PIC is the default on this platform 16971 # Common symbols not allowed in MH_DYLIB files 16972 case $cc_basename in 16973 xlc*) 16974 lt_prog_compiler_pic_F77='-qnocommon' 16975 lt_prog_compiler_wl_F77='-Wl,' 16976 ;; 16977 esac 16978 ;; 16979 16980 mingw* | cygwin* | pw32* | os2*) 16981 # This hack is so that the source file can tell whether it is being 16982 # built for inclusion in a dll (and should export symbols for example). 16983 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 16984 ;; 16985 16986 hpux9* | hpux10* | hpux11*) 16987 lt_prog_compiler_wl_F77='-Wl,' 16988 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16989 # not for PA HP-UX. 16990 case $host_cpu in 16991 hppa*64*|ia64*) 16992 # +Z the default 16993 ;; 16994 *) 16995 lt_prog_compiler_pic_F77='+Z' 16996 ;; 16997 esac 16998 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16999 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 17000 ;; 17001 17002 irix5* | irix6* | nonstopux*) 17003 lt_prog_compiler_wl_F77='-Wl,' 17004 # PIC (with -KPIC) is the default. 17005 lt_prog_compiler_static_F77='-non_shared' 17006 ;; 17007 17008 newsos6) 17009 lt_prog_compiler_pic_F77='-KPIC' 17010 lt_prog_compiler_static_F77='-Bstatic' 17011 ;; 17012 17013 linux* | k*bsd*-gnu) 17014 case $cc_basename in 17015 icc* | ecc*) 17016 lt_prog_compiler_wl_F77='-Wl,' 17017 lt_prog_compiler_pic_F77='-KPIC' 17018 lt_prog_compiler_static_F77='-static' 17019 ;; 17020 pgcc* | pgf77* | pgf90* | pgf95*) 17021 # Portland Group compilers (*not* the Pentium gcc compiler, 17022 # which looks to be a dead project) 17023 lt_prog_compiler_wl_F77='-Wl,' 17024 lt_prog_compiler_pic_F77='-fpic' 17025 lt_prog_compiler_static_F77='-Bstatic' 17026 ;; 17027 ccc*) 17028 lt_prog_compiler_wl_F77='-Wl,' 17029 # All Alpha code is PIC. 17030 lt_prog_compiler_static_F77='-non_shared' 17031 ;; 17032 *) 17033 case `$CC -V 2>&1 | sed 5q` in 17034 *Sun\ C*) 17035 # Sun C 5.9 17036 lt_prog_compiler_pic_F77='-KPIC' 17037 lt_prog_compiler_static_F77='-Bstatic' 17038 lt_prog_compiler_wl_F77='-Wl,' 17039 ;; 17040 *Sun\ F*) 17041 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17042 lt_prog_compiler_pic_F77='-KPIC' 17043 lt_prog_compiler_static_F77='-Bstatic' 17044 lt_prog_compiler_wl_F77='' 17045 ;; 17046 esac 17047 ;; 17048 esac 17049 ;; 17050 17051 osf3* | osf4* | osf5*) 17052 lt_prog_compiler_wl_F77='-Wl,' 17053 # All OSF/1 code is PIC. 17054 lt_prog_compiler_static_F77='-non_shared' 17055 ;; 17056 17057 rdos*) 17058 lt_prog_compiler_static_F77='-non_shared' 17059 ;; 17060 17061 solaris*) 17062 lt_prog_compiler_pic_F77='-KPIC' 17063 lt_prog_compiler_static_F77='-Bstatic' 17064 case $cc_basename in 17065 f77* | f90* | f95*) 17066 lt_prog_compiler_wl_F77='-Qoption ld ';; 17067 *) 17068 lt_prog_compiler_wl_F77='-Wl,';; 17069 esac 17070 ;; 17071 17072 sunos4*) 17073 lt_prog_compiler_wl_F77='-Qoption ld ' 17074 lt_prog_compiler_pic_F77='-PIC' 17075 lt_prog_compiler_static_F77='-Bstatic' 17076 ;; 17077 17078 sysv4 | sysv4.2uw2* | sysv4.3*) 17079 lt_prog_compiler_wl_F77='-Wl,' 17080 lt_prog_compiler_pic_F77='-KPIC' 17081 lt_prog_compiler_static_F77='-Bstatic' 17082 ;; 17083 17084 sysv4*MP*) 17085 if test -d /usr/nec ;then 17086 lt_prog_compiler_pic_F77='-Kconform_pic' 17087 lt_prog_compiler_static_F77='-Bstatic' 17088 fi 17089 ;; 17090 17091 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17092 lt_prog_compiler_wl_F77='-Wl,' 17093 lt_prog_compiler_pic_F77='-KPIC' 17094 lt_prog_compiler_static_F77='-Bstatic' 17095 ;; 17096 17097 unicos*) 17098 lt_prog_compiler_wl_F77='-Wl,' 17099 lt_prog_compiler_can_build_shared_F77=no 17100 ;; 17101 17102 uts4*) 17103 lt_prog_compiler_pic_F77='-pic' 17104 lt_prog_compiler_static_F77='-Bstatic' 17105 ;; 17106 17107 *) 17108 lt_prog_compiler_can_build_shared_F77=no 17109 ;; 17110 esac 17111 fi 17112 17113{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 17114echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 17115 17116# 17117# Check to make sure the PIC flag actually works. 17118# 17119if test -n "$lt_prog_compiler_pic_F77"; then 17120 17121{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 17122echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 17123if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 17124 echo $ECHO_N "(cached) $ECHO_C" >&6 17125else 17126 lt_cv_prog_compiler_pic_works_F77=no 17127 ac_outfile=conftest.$ac_objext 17128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17129 lt_compiler_flag="$lt_prog_compiler_pic_F77" 17130 # Insert the option either (1) after the last *FLAGS variable, or 17131 # (2) before a word containing "conftest.", or (3) at the end. 17132 # Note that $ac_compile itself does not contain backslashes and begins 17133 # with a dollar sign (not a hyphen), so the echo should work correctly. 17134 # The option is referenced via a variable to avoid confusing sed. 17135 lt_compile=`echo "$ac_compile" | $SED \ 17136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17138 -e 's:$: $lt_compiler_flag:'` 17139 (eval echo "\"\$as_me:17139: $lt_compile\"" >&5) 17140 (eval "$lt_compile" 2>conftest.err) 17141 ac_status=$? 17142 cat conftest.err >&5 17143 echo "$as_me:17143: \$? = $ac_status" >&5 17144 if (exit $ac_status) && test -s "$ac_outfile"; then 17145 # The compiler can only warn and ignore the option if not recognized 17146 # So say no if there are warnings other than the usual output. 17147 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17150 lt_cv_prog_compiler_pic_works_F77=yes 17151 fi 17152 fi 17153 $rm conftest* 17154 17155fi 17156{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 17157echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } 17158 17159if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 17160 case $lt_prog_compiler_pic_F77 in 17161 "" | " "*) ;; 17162 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 17163 esac 17164else 17165 lt_prog_compiler_pic_F77= 17166 lt_prog_compiler_can_build_shared_F77=no 17167fi 17168 17169fi 17170case $host_os in 17171 # For platforms which do not support PIC, -DPIC is meaningless: 17172 *djgpp*) 17173 lt_prog_compiler_pic_F77= 17174 ;; 17175 *) 17176 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 17177 ;; 17178esac 17179 17180# 17181# Check to make sure the static flag actually works. 17182# 17183wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 17184{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17185echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17186if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 17187 echo $ECHO_N "(cached) $ECHO_C" >&6 17188else 17189 lt_cv_prog_compiler_static_works_F77=no 17190 save_LDFLAGS="$LDFLAGS" 17191 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17192 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17194 # The linker can only warn and ignore the option if not recognized 17195 # So say no if there are warnings 17196 if test -s conftest.err; then 17197 # Append any errors to the config.log. 17198 cat conftest.err 1>&5 17199 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17201 if diff conftest.exp conftest.er2 >/dev/null; then 17202 lt_cv_prog_compiler_static_works_F77=yes 17203 fi 17204 else 17205 lt_cv_prog_compiler_static_works_F77=yes 17206 fi 17207 fi 17208 $rm -r conftest* 17209 LDFLAGS="$save_LDFLAGS" 17210 17211fi 17212{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 17213echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } 17214 17215if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 17216 : 17217else 17218 lt_prog_compiler_static_F77= 17219fi 17220 17221 17222{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17223echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17224if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 17225 echo $ECHO_N "(cached) $ECHO_C" >&6 17226else 17227 lt_cv_prog_compiler_c_o_F77=no 17228 $rm -r conftest 2>/dev/null 17229 mkdir conftest 17230 cd conftest 17231 mkdir out 17232 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17233 17234 lt_compiler_flag="-o out/conftest2.$ac_objext" 17235 # Insert the option either (1) after the last *FLAGS variable, or 17236 # (2) before a word containing "conftest.", or (3) at the end. 17237 # Note that $ac_compile itself does not contain backslashes and begins 17238 # with a dollar sign (not a hyphen), so the echo should work correctly. 17239 lt_compile=`echo "$ac_compile" | $SED \ 17240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17242 -e 's:$: $lt_compiler_flag:'` 17243 (eval echo "\"\$as_me:17243: $lt_compile\"" >&5) 17244 (eval "$lt_compile" 2>out/conftest.err) 17245 ac_status=$? 17246 cat out/conftest.err >&5 17247 echo "$as_me:17247: \$? = $ac_status" >&5 17248 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17249 then 17250 # The compiler can only warn and ignore the option if not recognized 17251 # So say no if there are warnings 17252 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17253 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17254 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17255 lt_cv_prog_compiler_c_o_F77=yes 17256 fi 17257 fi 17258 chmod u+w . 2>&5 17259 $rm conftest* 17260 # SGI C++ compiler will create directory out/ii_files/ for 17261 # template instantiation 17262 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17263 $rm out/* && rmdir out 17264 cd .. 17265 rmdir conftest 17266 $rm conftest* 17267 17268fi 17269{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 17270echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 17271 17272 17273hard_links="nottested" 17274if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 17275 # do not overwrite the value of need_locks provided by the user 17276 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17277echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17278 hard_links=yes 17279 $rm conftest* 17280 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17281 touch conftest.a 17282 ln conftest.a conftest.b 2>&5 || hard_links=no 17283 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17284 { echo "$as_me:$LINENO: result: $hard_links" >&5 17285echo "${ECHO_T}$hard_links" >&6; } 17286 if test "$hard_links" = no; then 17287 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17288echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17289 need_locks=warn 17290 fi 17291else 17292 need_locks=no 17293fi 17294 17295{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17296echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17297 17298 runpath_var= 17299 allow_undefined_flag_F77= 17300 enable_shared_with_static_runtimes_F77=no 17301 archive_cmds_F77= 17302 archive_expsym_cmds_F77= 17303 old_archive_From_new_cmds_F77= 17304 old_archive_from_expsyms_cmds_F77= 17305 export_dynamic_flag_spec_F77= 17306 whole_archive_flag_spec_F77= 17307 thread_safe_flag_spec_F77= 17308 hardcode_libdir_flag_spec_F77= 17309 hardcode_libdir_flag_spec_ld_F77= 17310 hardcode_libdir_separator_F77= 17311 hardcode_direct_F77=no 17312 hardcode_minus_L_F77=no 17313 hardcode_shlibpath_var_F77=unsupported 17314 link_all_deplibs_F77=unknown 17315 hardcode_automatic_F77=no 17316 module_cmds_F77= 17317 module_expsym_cmds_F77= 17318 always_export_symbols_F77=no 17319 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17320 # include_expsyms should be a list of space-separated symbols to be *always* 17321 # included in the symbol list 17322 include_expsyms_F77= 17323 # exclude_expsyms can be an extended regexp of symbols to exclude 17324 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17325 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17326 # as well as any symbol that contains `d'. 17327 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17328 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17329 # platforms (ab)use it in PIC code, but their linkers get confused if 17330 # the symbol is explicitly referenced. Since portable code cannot 17331 # rely on this symbol name, it's probably fine to never include it in 17332 # preloaded symbol tables. 17333 # Exclude shared library initialization/finalization symbols. 17334 extract_expsyms_cmds= 17335 # Just being paranoid about ensuring that cc_basename is set. 17336 for cc_temp in $compiler""; do 17337 case $cc_temp in 17338 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17339 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17340 \-*) ;; 17341 *) break;; 17342 esac 17343done 17344cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17345 17346 case $host_os in 17347 cygwin* | mingw* | pw32*) 17348 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17349 # When not using gcc, we currently assume that we are using 17350 # Microsoft Visual C++. 17351 if test "$GCC" != yes; then 17352 with_gnu_ld=no 17353 fi 17354 ;; 17355 interix*) 17356 # we just hope/assume this is gcc and not c89 (= MSVC++) 17357 with_gnu_ld=yes 17358 ;; 17359 openbsd*) 17360 with_gnu_ld=no 17361 ;; 17362 esac 17363 17364 ld_shlibs_F77=yes 17365 if test "$with_gnu_ld" = yes; then 17366 # If archive_cmds runs LD, not CC, wlarc should be empty 17367 wlarc='${wl}' 17368 17369 # Set some defaults for GNU ld with shared library support. These 17370 # are reset later if shared libraries are not supported. Putting them 17371 # here allows them to be overridden if necessary. 17372 runpath_var=LD_RUN_PATH 17373 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 17374 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 17375 # ancient GNU ld didn't support --whole-archive et. al. 17376 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17377 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17378 else 17379 whole_archive_flag_spec_F77= 17380 fi 17381 supports_anon_versioning=no 17382 case `$LD -v 2>/dev/null` in 17383 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17384 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17385 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17386 *\ 2.11.*) ;; # other 2.11 versions 17387 *) supports_anon_versioning=yes ;; 17388 esac 17389 17390 # See if GNU ld supports shared libraries. 17391 case $host_os in 17392 aix[3-9]*) 17393 # On AIX/PPC, the GNU linker is very broken 17394 if test "$host_cpu" != ia64; then 17395 ld_shlibs_F77=no 17396 cat <<EOF 1>&2 17397 17398*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17399*** to be unable to reliably create shared libraries on AIX. 17400*** Therefore, libtool is disabling shared libraries support. If you 17401*** really care for shared libraries, you may want to modify your PATH 17402*** so that a non-GNU linker is found, and then restart. 17403 17404EOF 17405 fi 17406 ;; 17407 17408 amigaos*) 17409 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)' 17410 hardcode_libdir_flag_spec_F77='-L$libdir' 17411 hardcode_minus_L_F77=yes 17412 17413 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17414 # that the semantics of dynamic libraries on AmigaOS, at least up 17415 # to version 4, is to share data among multiple programs linked 17416 # with the same dynamic library. Since this doesn't match the 17417 # behavior of shared libraries on other platforms, we can't use 17418 # them. 17419 ld_shlibs_F77=no 17420 ;; 17421 17422 beos*) 17423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17424 allow_undefined_flag_F77=unsupported 17425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17426 # support --undefined. This deserves some investigation. FIXME 17427 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17428 else 17429 ld_shlibs_F77=no 17430 fi 17431 ;; 17432 17433 cygwin* | mingw* | pw32*) 17434 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 17435 # as there is no search path for DLLs. 17436 hardcode_libdir_flag_spec_F77='-L$libdir' 17437 allow_undefined_flag_F77=unsupported 17438 always_export_symbols_F77=no 17439 enable_shared_with_static_runtimes_F77=yes 17440 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17441 17442 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17443 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17444 # If the export-symbols file already is a .def file (1st line 17445 # is EXPORTS), use it as is; otherwise, prepend... 17446 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17447 cp $export_symbols $output_objdir/$soname.def; 17448 else 17449 echo EXPORTS > $output_objdir/$soname.def; 17450 cat $export_symbols >> $output_objdir/$soname.def; 17451 fi~ 17452 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17453 else 17454 ld_shlibs_F77=no 17455 fi 17456 ;; 17457 17458 interix[3-9]*) 17459 hardcode_direct_F77=no 17460 hardcode_shlibpath_var_F77=no 17461 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 17462 export_dynamic_flag_spec_F77='${wl}-E' 17463 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17464 # Instead, shared libraries are loaded at an image base (0x10000000 by 17465 # default) and relocated if they conflict, which is a slow very memory 17466 # consuming and fragmenting process. To avoid this, we pick a random, 17467 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17468 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17469 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' 17470 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' 17471 ;; 17472 17473 gnu* | linux* | k*bsd*-gnu) 17474 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17475 tmp_addflag= 17476 case $cc_basename,$host_cpu in 17477 pgcc*) # Portland Group C compiler 17478 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' 17479 tmp_addflag=' $pic_flag' 17480 ;; 17481 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17482 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' 17483 tmp_addflag=' $pic_flag -Mnomain' ;; 17484 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17485 tmp_addflag=' -i_dynamic' ;; 17486 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17487 tmp_addflag=' -i_dynamic -nofor_main' ;; 17488 ifc* | ifort*) # Intel Fortran compiler 17489 tmp_addflag=' -nofor_main' ;; 17490 esac 17491 case `$CC -V 2>&1 | sed 5q` in 17492 *Sun\ C*) # Sun C 5.9 17493 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17494 tmp_sharedflag='-G' ;; 17495 *Sun\ F*) # Sun Fortran 8.3 17496 tmp_sharedflag='-G' ;; 17497 *) 17498 tmp_sharedflag='-shared' ;; 17499 esac 17500 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17501 17502 if test $supports_anon_versioning = yes; then 17503 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 17504 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17505 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17506 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17507 fi 17508 link_all_deplibs_F77=no 17509 else 17510 ld_shlibs_F77=no 17511 fi 17512 ;; 17513 17514 netbsd* | netbsdelf*-gnu) 17515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17516 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17517 wlarc= 17518 else 17519 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17520 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17521 fi 17522 ;; 17523 17524 solaris*) 17525 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17526 ld_shlibs_F77=no 17527 cat <<EOF 1>&2 17528 17529*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17530*** create shared libraries on Solaris systems. Therefore, libtool 17531*** is disabling shared libraries support. We urge you to upgrade GNU 17532*** binutils to release 2.9.1 or newer. Another option is to modify 17533*** your PATH or compiler configuration so that the native linker is 17534*** used, and then restart. 17535 17536EOF 17537 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17538 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17539 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17540 else 17541 ld_shlibs_F77=no 17542 fi 17543 ;; 17544 17545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17546 case `$LD -v 2>&1` in 17547 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17548 ld_shlibs_F77=no 17549 cat <<_LT_EOF 1>&2 17550 17551*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17552*** reliably create shared libraries on SCO systems. Therefore, libtool 17553*** is disabling shared libraries support. We urge you to upgrade GNU 17554*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17555*** your PATH or compiler configuration so that the native linker is 17556*** used, and then restart. 17557 17558_LT_EOF 17559 ;; 17560 *) 17561 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17562 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17563 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17564 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17565 else 17566 ld_shlibs_F77=no 17567 fi 17568 ;; 17569 esac 17570 ;; 17571 17572 sunos4*) 17573 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17574 wlarc= 17575 hardcode_direct_F77=yes 17576 hardcode_shlibpath_var_F77=no 17577 ;; 17578 17579 *) 17580 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17581 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17582 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17583 else 17584 ld_shlibs_F77=no 17585 fi 17586 ;; 17587 esac 17588 17589 if test "$ld_shlibs_F77" = no; then 17590 runpath_var= 17591 hardcode_libdir_flag_spec_F77= 17592 export_dynamic_flag_spec_F77= 17593 whole_archive_flag_spec_F77= 17594 fi 17595 else 17596 # PORTME fill in a description of your system's linker (not GNU ld) 17597 case $host_os in 17598 aix3*) 17599 allow_undefined_flag_F77=unsupported 17600 always_export_symbols_F77=yes 17601 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' 17602 # Note: this linker hardcodes the directories in LIBPATH if there 17603 # are no directories specified by -L. 17604 hardcode_minus_L_F77=yes 17605 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17606 # Neither direct hardcoding nor static linking is supported with a 17607 # broken collect2. 17608 hardcode_direct_F77=unsupported 17609 fi 17610 ;; 17611 17612 aix[4-9]*) 17613 if test "$host_cpu" = ia64; then 17614 # On IA64, the linker does run time linking by default, so we don't 17615 # have to do anything special. 17616 aix_use_runtimelinking=no 17617 exp_sym_flag='-Bexport' 17618 no_entry_flag="" 17619 else 17620 # If we're using GNU nm, then we don't want the "-C" option. 17621 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17622 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17623 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' 17624 else 17625 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' 17626 fi 17627 aix_use_runtimelinking=no 17628 17629 # Test if we are trying to use run time linking or normal 17630 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17631 # need to do runtime linking. 17632 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17633 for ld_flag in $LDFLAGS; do 17634 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17635 aix_use_runtimelinking=yes 17636 break 17637 fi 17638 done 17639 ;; 17640 esac 17641 17642 exp_sym_flag='-bexport' 17643 no_entry_flag='-bnoentry' 17644 fi 17645 17646 # When large executables or shared objects are built, AIX ld can 17647 # have problems creating the table of contents. If linking a library 17648 # or program results in "error TOC overflow" add -mminimal-toc to 17649 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17650 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17651 17652 archive_cmds_F77='' 17653 hardcode_direct_F77=yes 17654 hardcode_libdir_separator_F77=':' 17655 link_all_deplibs_F77=yes 17656 17657 if test "$GCC" = yes; then 17658 case $host_os in aix4.[012]|aix4.[012].*) 17659 # We only want to do this on AIX 4.2 and lower, the check 17660 # below for broken collect2 doesn't work under 4.3+ 17661 collect2name=`${CC} -print-prog-name=collect2` 17662 if test -f "$collect2name" && \ 17663 strings "$collect2name" | grep resolve_lib_name >/dev/null 17664 then 17665 # We have reworked collect2 17666 : 17667 else 17668 # We have old collect2 17669 hardcode_direct_F77=unsupported 17670 # It fails to find uninstalled libraries when the uninstalled 17671 # path is not listed in the libpath. Setting hardcode_minus_L 17672 # to unsupported forces relinking 17673 hardcode_minus_L_F77=yes 17674 hardcode_libdir_flag_spec_F77='-L$libdir' 17675 hardcode_libdir_separator_F77= 17676 fi 17677 ;; 17678 esac 17679 shared_flag='-shared' 17680 if test "$aix_use_runtimelinking" = yes; then 17681 shared_flag="$shared_flag "'${wl}-G' 17682 fi 17683 else 17684 # not using gcc 17685 if test "$host_cpu" = ia64; then 17686 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17687 # chokes on -Wl,-G. The following line is correct: 17688 shared_flag='-G' 17689 else 17690 if test "$aix_use_runtimelinking" = yes; then 17691 shared_flag='${wl}-G' 17692 else 17693 shared_flag='${wl}-bM:SRE' 17694 fi 17695 fi 17696 fi 17697 17698 # It seems that -bexpall does not export symbols beginning with 17699 # underscore (_), so it is better to generate a list of symbols to export. 17700 always_export_symbols_F77=yes 17701 if test "$aix_use_runtimelinking" = yes; then 17702 # Warning - without using the other runtime loading flags (-brtl), 17703 # -berok will link without error, but may produce a broken library. 17704 allow_undefined_flag_F77='-berok' 17705 # Determine the default libpath from the value encoded in an empty executable. 17706 cat >conftest.$ac_ext <<_ACEOF 17707 program main 17708 17709 end 17710_ACEOF 17711rm -f conftest.$ac_objext conftest$ac_exeext 17712if { (ac_try="$ac_link" 17713case "(($ac_try" in 17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17715 *) ac_try_echo=$ac_try;; 17716esac 17717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17718 (eval "$ac_link") 2>conftest.er1 17719 ac_status=$? 17720 grep -v '^ *+' conftest.er1 >conftest.err 17721 rm -f conftest.er1 17722 cat conftest.err >&5 17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17724 (exit $ac_status); } && { 17725 test -z "$ac_f77_werror_flag" || 17726 test ! -s conftest.err 17727 } && test -s conftest$ac_exeext && 17728 $as_test_x conftest$ac_exeext; then 17729 17730lt_aix_libpath_sed=' 17731 /Import File Strings/,/^$/ { 17732 /^0/ { 17733 s/^0 *\(.*\)$/\1/ 17734 p 17735 } 17736 }' 17737aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17738# Check for a 64-bit object if we didn't find anything. 17739if test -z "$aix_libpath"; then 17740 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17741fi 17742else 17743 echo "$as_me: failed program was:" >&5 17744sed 's/^/| /' conftest.$ac_ext >&5 17745 17746 17747fi 17748 17749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17750 conftest$ac_exeext conftest.$ac_ext 17751if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17752 17753 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 17754 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" 17755 else 17756 if test "$host_cpu" = ia64; then 17757 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 17758 allow_undefined_flag_F77="-z nodefs" 17759 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" 17760 else 17761 # Determine the default libpath from the value encoded in an empty executable. 17762 cat >conftest.$ac_ext <<_ACEOF 17763 program main 17764 17765 end 17766_ACEOF 17767rm -f conftest.$ac_objext conftest$ac_exeext 17768if { (ac_try="$ac_link" 17769case "(($ac_try" in 17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17771 *) ac_try_echo=$ac_try;; 17772esac 17773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17774 (eval "$ac_link") 2>conftest.er1 17775 ac_status=$? 17776 grep -v '^ *+' conftest.er1 >conftest.err 17777 rm -f conftest.er1 17778 cat conftest.err >&5 17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17780 (exit $ac_status); } && { 17781 test -z "$ac_f77_werror_flag" || 17782 test ! -s conftest.err 17783 } && test -s conftest$ac_exeext && 17784 $as_test_x conftest$ac_exeext; then 17785 17786lt_aix_libpath_sed=' 17787 /Import File Strings/,/^$/ { 17788 /^0/ { 17789 s/^0 *\(.*\)$/\1/ 17790 p 17791 } 17792 }' 17793aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17794# Check for a 64-bit object if we didn't find anything. 17795if test -z "$aix_libpath"; then 17796 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17797fi 17798else 17799 echo "$as_me: failed program was:" >&5 17800sed 's/^/| /' conftest.$ac_ext >&5 17801 17802 17803fi 17804 17805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17806 conftest$ac_exeext conftest.$ac_ext 17807if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17808 17809 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 17810 # Warning - without using the other run time loading flags, 17811 # -berok will link without error, but may produce a broken library. 17812 no_undefined_flag_F77=' ${wl}-bernotok' 17813 allow_undefined_flag_F77=' ${wl}-berok' 17814 # Exported symbols can be pulled into shared objects from archives 17815 whole_archive_flag_spec_F77='$convenience' 17816 archive_cmds_need_lc_F77=yes 17817 # This is similar to how AIX traditionally builds its shared libraries. 17818 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' 17819 fi 17820 fi 17821 ;; 17822 17823 amigaos*) 17824 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)' 17825 hardcode_libdir_flag_spec_F77='-L$libdir' 17826 hardcode_minus_L_F77=yes 17827 # see comment about different semantics on the GNU ld section 17828 ld_shlibs_F77=no 17829 ;; 17830 17831 bsdi[45]*) 17832 export_dynamic_flag_spec_F77=-rdynamic 17833 ;; 17834 17835 cygwin* | mingw* | pw32*) 17836 # When not using gcc, we currently assume that we are using 17837 # Microsoft Visual C++. 17838 # hardcode_libdir_flag_spec is actually meaningless, as there is 17839 # no search path for DLLs. 17840 hardcode_libdir_flag_spec_F77=' ' 17841 allow_undefined_flag_F77=unsupported 17842 # Tell ltmain to make .lib files, not .a files. 17843 libext=lib 17844 # Tell ltmain to make .dll files, not .so files. 17845 shrext_cmds=".dll" 17846 # FIXME: Setting linknames here is a bad hack. 17847 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17848 # The linker will automatically build a .lib file if we build a DLL. 17849 old_archive_From_new_cmds_F77='true' 17850 # FIXME: Should let the user specify the lib program. 17851 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 17852 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 17853 enable_shared_with_static_runtimes_F77=yes 17854 ;; 17855 17856 darwin* | rhapsody*) 17857 case $host_os in 17858 rhapsody* | darwin1.[012]) 17859 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 17860 ;; 17861 *) # Darwin 1.3 on 17862 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17863 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17864 else 17865 case ${MACOSX_DEPLOYMENT_TARGET} in 17866 10.[012]) 17867 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17868 ;; 17869 10.*) 17870 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 17871 ;; 17872 esac 17873 fi 17874 ;; 17875 esac 17876 archive_cmds_need_lc_F77=no 17877 hardcode_direct_F77=no 17878 hardcode_automatic_F77=yes 17879 hardcode_shlibpath_var_F77=unsupported 17880 whole_archive_flag_spec_F77='' 17881 link_all_deplibs_F77=yes 17882 if test "$GCC" = yes ; then 17883 output_verbose_link_cmd='echo' 17884 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 17885 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17886 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 17887 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 17888 else 17889 case $cc_basename in 17890 xlc*) 17891 output_verbose_link_cmd='echo' 17892 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17893 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17894 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17895 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17896 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}' 17897 ;; 17898 *) 17899 ld_shlibs_F77=no 17900 ;; 17901 esac 17902 fi 17903 ;; 17904 17905 dgux*) 17906 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17907 hardcode_libdir_flag_spec_F77='-L$libdir' 17908 hardcode_shlibpath_var_F77=no 17909 ;; 17910 17911 freebsd1*) 17912 ld_shlibs_F77=no 17913 ;; 17914 17915 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17916 # support. Future versions do this automatically, but an explicit c++rt0.o 17917 # does not break anything, and helps significantly (at the cost of a little 17918 # extra space). 17919 freebsd2.2*) 17920 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17921 hardcode_libdir_flag_spec_F77='-R$libdir' 17922 hardcode_direct_F77=yes 17923 hardcode_shlibpath_var_F77=no 17924 ;; 17925 17926 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17927 freebsd2*) 17928 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17929 hardcode_direct_F77=yes 17930 hardcode_minus_L_F77=yes 17931 hardcode_shlibpath_var_F77=no 17932 ;; 17933 17934 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17935 freebsd* | dragonfly*) 17936 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17937 hardcode_libdir_flag_spec_F77='-R$libdir' 17938 hardcode_direct_F77=yes 17939 hardcode_shlibpath_var_F77=no 17940 ;; 17941 17942 hpux9*) 17943 if test "$GCC" = yes; then 17944 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' 17945 else 17946 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' 17947 fi 17948 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 17949 hardcode_libdir_separator_F77=: 17950 hardcode_direct_F77=yes 17951 17952 # hardcode_minus_L: Not really in the search PATH, 17953 # but as the default location of the library. 17954 hardcode_minus_L_F77=yes 17955 export_dynamic_flag_spec_F77='${wl}-E' 17956 ;; 17957 17958 hpux10*) 17959 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17960 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17961 else 17962 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17963 fi 17964 if test "$with_gnu_ld" = no; then 17965 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 17966 hardcode_libdir_separator_F77=: 17967 17968 hardcode_direct_F77=yes 17969 export_dynamic_flag_spec_F77='${wl}-E' 17970 17971 # hardcode_minus_L: Not really in the search PATH, 17972 # but as the default location of the library. 17973 hardcode_minus_L_F77=yes 17974 fi 17975 ;; 17976 17977 hpux11*) 17978 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17979 case $host_cpu in 17980 hppa*64*) 17981 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17982 ;; 17983 ia64*) 17984 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17985 ;; 17986 *) 17987 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17988 ;; 17989 esac 17990 else 17991 case $host_cpu in 17992 hppa*64*) 17993 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17994 ;; 17995 ia64*) 17996 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17997 ;; 17998 *) 17999 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18000 ;; 18001 esac 18002 fi 18003 if test "$with_gnu_ld" = no; then 18004 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 18005 hardcode_libdir_separator_F77=: 18006 18007 case $host_cpu in 18008 hppa*64*|ia64*) 18009 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 18010 hardcode_direct_F77=no 18011 hardcode_shlibpath_var_F77=no 18012 ;; 18013 *) 18014 hardcode_direct_F77=yes 18015 export_dynamic_flag_spec_F77='${wl}-E' 18016 18017 # hardcode_minus_L: Not really in the search PATH, 18018 # but as the default location of the library. 18019 hardcode_minus_L_F77=yes 18020 ;; 18021 esac 18022 fi 18023 ;; 18024 18025 irix5* | irix6* | nonstopux*) 18026 if test "$GCC" = yes; then 18027 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' 18028 else 18029 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' 18030 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 18031 fi 18032 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 18033 hardcode_libdir_separator_F77=: 18034 link_all_deplibs_F77=yes 18035 ;; 18036 18037 netbsd* | netbsdelf*-gnu) 18038 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18039 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18040 else 18041 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18042 fi 18043 hardcode_libdir_flag_spec_F77='-R$libdir' 18044 hardcode_direct_F77=yes 18045 hardcode_shlibpath_var_F77=no 18046 ;; 18047 18048 newsos6) 18049 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18050 hardcode_direct_F77=yes 18051 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 18052 hardcode_libdir_separator_F77=: 18053 hardcode_shlibpath_var_F77=no 18054 ;; 18055 18056 openbsd*) 18057 if test -f /usr/libexec/ld.so; then 18058 hardcode_direct_F77=yes 18059 hardcode_shlibpath_var_F77=no 18060 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18061 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18062 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18063 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 18064 export_dynamic_flag_spec_F77='${wl}-E' 18065 else 18066 case $host_os in 18067 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18068 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18069 hardcode_libdir_flag_spec_F77='-R$libdir' 18070 ;; 18071 *) 18072 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18073 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 18074 ;; 18075 esac 18076 fi 18077 else 18078 ld_shlibs_F77=no 18079 fi 18080 ;; 18081 18082 os2*) 18083 hardcode_libdir_flag_spec_F77='-L$libdir' 18084 hardcode_minus_L_F77=yes 18085 allow_undefined_flag_F77=unsupported 18086 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' 18087 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18088 ;; 18089 18090 osf3*) 18091 if test "$GCC" = yes; then 18092 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 18093 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' 18094 else 18095 allow_undefined_flag_F77=' -expect_unresolved \*' 18096 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' 18097 fi 18098 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 18099 hardcode_libdir_separator_F77=: 18100 ;; 18101 18102 osf4* | osf5*) # as osf3* with the addition of -msym flag 18103 if test "$GCC" = yes; then 18104 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 18105 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' 18106 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 18107 else 18108 allow_undefined_flag_F77=' -expect_unresolved \*' 18109 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' 18110 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~ 18111 $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' 18112 18113 # Both c and cxx compiler support -rpath directly 18114 hardcode_libdir_flag_spec_F77='-rpath $libdir' 18115 fi 18116 hardcode_libdir_separator_F77=: 18117 ;; 18118 18119 solaris*) 18120 no_undefined_flag_F77=' -z text' 18121 if test "$GCC" = yes; then 18122 wlarc='${wl}' 18123 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18124 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18125 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18126 else 18127 wlarc='' 18128 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18129 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18130 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18131 fi 18132 hardcode_libdir_flag_spec_F77='-R$libdir' 18133 hardcode_shlibpath_var_F77=no 18134 case $host_os in 18135 solaris2.[0-5] | solaris2.[0-5].*) ;; 18136 *) 18137 # The compiler driver will combine and reorder linker options, 18138 # but understands `-z linker_flag'. GCC discards it without `$wl', 18139 # but is careful enough not to reorder. 18140 # Supported since Solaris 2.6 (maybe 2.5.1?) 18141 if test "$GCC" = yes; then 18142 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18143 else 18144 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 18145 fi 18146 ;; 18147 esac 18148 link_all_deplibs_F77=yes 18149 ;; 18150 18151 sunos4*) 18152 if test "x$host_vendor" = xsequent; then 18153 # Use $CC to link under sequent, because it throws in some extra .o 18154 # files that make .init and .fini sections work. 18155 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18156 else 18157 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18158 fi 18159 hardcode_libdir_flag_spec_F77='-L$libdir' 18160 hardcode_direct_F77=yes 18161 hardcode_minus_L_F77=yes 18162 hardcode_shlibpath_var_F77=no 18163 ;; 18164 18165 sysv4) 18166 case $host_vendor in 18167 sni) 18168 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18169 hardcode_direct_F77=yes # is this really true??? 18170 ;; 18171 siemens) 18172 ## LD is ld it makes a PLAMLIB 18173 ## CC just makes a GrossModule. 18174 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18175 reload_cmds_F77='$CC -r -o $output$reload_objs' 18176 hardcode_direct_F77=no 18177 ;; 18178 motorola) 18179 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18180 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 18181 ;; 18182 esac 18183 runpath_var='LD_RUN_PATH' 18184 hardcode_shlibpath_var_F77=no 18185 ;; 18186 18187 sysv4.3*) 18188 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18189 hardcode_shlibpath_var_F77=no 18190 export_dynamic_flag_spec_F77='-Bexport' 18191 ;; 18192 18193 sysv4*MP*) 18194 if test -d /usr/nec; then 18195 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18196 hardcode_shlibpath_var_F77=no 18197 runpath_var=LD_RUN_PATH 18198 hardcode_runpath_var=yes 18199 ld_shlibs_F77=yes 18200 fi 18201 ;; 18202 18203 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18204 no_undefined_flag_F77='${wl}-z,text' 18205 archive_cmds_need_lc_F77=no 18206 hardcode_shlibpath_var_F77=no 18207 runpath_var='LD_RUN_PATH' 18208 18209 if test "$GCC" = yes; then 18210 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18211 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18212 else 18213 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18214 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18215 fi 18216 ;; 18217 18218 sysv5* | sco3.2v5* | sco5v6*) 18219 # Note: We can NOT use -z defs as we might desire, because we do not 18220 # link with -lc, and that would cause any symbols used from libc to 18221 # always be unresolved, which means just about no library would 18222 # ever link correctly. If we're not using GNU ld we use -z text 18223 # though, which does catch some bad symbols but isn't as heavy-handed 18224 # as -z defs. 18225 no_undefined_flag_F77='${wl}-z,text' 18226 allow_undefined_flag_F77='${wl}-z,nodefs' 18227 archive_cmds_need_lc_F77=no 18228 hardcode_shlibpath_var_F77=no 18229 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18230 hardcode_libdir_separator_F77=':' 18231 link_all_deplibs_F77=yes 18232 export_dynamic_flag_spec_F77='${wl}-Bexport' 18233 runpath_var='LD_RUN_PATH' 18234 18235 if test "$GCC" = yes; then 18236 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18237 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18238 else 18239 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18240 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18241 fi 18242 ;; 18243 18244 uts4*) 18245 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18246 hardcode_libdir_flag_spec_F77='-L$libdir' 18247 hardcode_shlibpath_var_F77=no 18248 ;; 18249 18250 *) 18251 ld_shlibs_F77=no 18252 ;; 18253 esac 18254 fi 18255 18256{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 18257echo "${ECHO_T}$ld_shlibs_F77" >&6; } 18258test "$ld_shlibs_F77" = no && can_build_shared=no 18259 18260# 18261# Do we need to explicitly link libc? 18262# 18263case "x$archive_cmds_need_lc_F77" in 18264x|xyes) 18265 # Assume -lc should be added 18266 archive_cmds_need_lc_F77=yes 18267 18268 if test "$enable_shared" = yes && test "$GCC" = yes; then 18269 case $archive_cmds_F77 in 18270 *'~'*) 18271 # FIXME: we may have to deal with multi-command sequences. 18272 ;; 18273 '$CC '*) 18274 # Test whether the compiler implicitly links with -lc since on some 18275 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18276 # to ld, don't add -lc before -lgcc. 18277 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18278echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18279 $rm conftest* 18280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18281 18282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18283 (eval $ac_compile) 2>&5 18284 ac_status=$? 18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18286 (exit $ac_status); } 2>conftest.err; then 18287 soname=conftest 18288 lib=conftest 18289 libobjs=conftest.$ac_objext 18290 deplibs= 18291 wl=$lt_prog_compiler_wl_F77 18292 pic_flag=$lt_prog_compiler_pic_F77 18293 compiler_flags=-v 18294 linker_flags=-v 18295 verstring= 18296 output_objdir=. 18297 libname=conftest 18298 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 18299 allow_undefined_flag_F77= 18300 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18301 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18302 ac_status=$? 18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18304 (exit $ac_status); } 18305 then 18306 archive_cmds_need_lc_F77=no 18307 else 18308 archive_cmds_need_lc_F77=yes 18309 fi 18310 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 18311 else 18312 cat conftest.err 1>&5 18313 fi 18314 $rm conftest* 18315 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 18316echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 18317 ;; 18318 esac 18319 fi 18320 ;; 18321esac 18322 18323{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18324echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18325library_names_spec= 18326libname_spec='lib$name' 18327soname_spec= 18328shrext_cmds=".so" 18329postinstall_cmds= 18330postuninstall_cmds= 18331finish_cmds= 18332finish_eval= 18333shlibpath_var= 18334shlibpath_overrides_runpath=unknown 18335version_type=none 18336dynamic_linker="$host_os ld.so" 18337sys_lib_dlsearch_path_spec="/lib /usr/lib" 18338 18339need_lib_prefix=unknown 18340hardcode_into_libs=no 18341 18342# when you set need_version to no, make sure it does not cause -set_version 18343# flags to be left without arguments 18344need_version=unknown 18345 18346case $host_os in 18347aix3*) 18348 version_type=linux 18349 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18350 shlibpath_var=LIBPATH 18351 18352 # AIX 3 has no versioning support, so we append a major version to the name. 18353 soname_spec='${libname}${release}${shared_ext}$major' 18354 ;; 18355 18356aix[4-9]*) 18357 version_type=linux 18358 need_lib_prefix=no 18359 need_version=no 18360 hardcode_into_libs=yes 18361 if test "$host_cpu" = ia64; then 18362 # AIX 5 supports IA64 18363 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18364 shlibpath_var=LD_LIBRARY_PATH 18365 else 18366 # With GCC up to 2.95.x, collect2 would create an import file 18367 # for dependence libraries. The import file would start with 18368 # the line `#! .'. This would cause the generated library to 18369 # depend on `.', always an invalid library. This was fixed in 18370 # development snapshots of GCC prior to 3.0. 18371 case $host_os in 18372 aix4 | aix4.[01] | aix4.[01].*) 18373 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18374 echo ' yes ' 18375 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18376 : 18377 else 18378 can_build_shared=no 18379 fi 18380 ;; 18381 esac 18382 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18383 # soname into executable. Probably we can add versioning support to 18384 # collect2, so additional links can be useful in future. 18385 if test "$aix_use_runtimelinking" = yes; then 18386 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18387 # instead of lib<name>.a to let people know that these are not 18388 # typical AIX shared libraries. 18389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18390 else 18391 # We preserve .a as extension for shared libraries through AIX4.2 18392 # and later when we are not doing run time linking. 18393 library_names_spec='${libname}${release}.a $libname.a' 18394 soname_spec='${libname}${release}${shared_ext}$major' 18395 fi 18396 shlibpath_var=LIBPATH 18397 fi 18398 ;; 18399 18400amigaos*) 18401 library_names_spec='$libname.ixlibrary $libname.a' 18402 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18403 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' 18404 ;; 18405 18406beos*) 18407 library_names_spec='${libname}${shared_ext}' 18408 dynamic_linker="$host_os ld.so" 18409 shlibpath_var=LIBRARY_PATH 18410 ;; 18411 18412bsdi[45]*) 18413 version_type=linux 18414 need_version=no 18415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18416 soname_spec='${libname}${release}${shared_ext}$major' 18417 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18418 shlibpath_var=LD_LIBRARY_PATH 18419 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18420 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18421 # the default ld.so.conf also contains /usr/contrib/lib and 18422 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18423 # libtool to hard-code these into programs 18424 ;; 18425 18426cygwin* | mingw* | pw32*) 18427 version_type=windows 18428 shrext_cmds=".dll" 18429 need_version=no 18430 need_lib_prefix=no 18431 18432 case $GCC,$host_os in 18433 yes,cygwin* | yes,mingw* | yes,pw32*) 18434 library_names_spec='$libname.dll.a' 18435 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18436 postinstall_cmds='base_file=`basename \${file}`~ 18437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18438 dldir=$destdir/`dirname \$dlpath`~ 18439 test -d \$dldir || mkdir -p \$dldir~ 18440 $install_prog $dir/$dlname \$dldir/$dlname~ 18441 chmod a+x \$dldir/$dlname' 18442 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18443 dlpath=$dir/\$dldll~ 18444 $rm \$dlpath' 18445 shlibpath_overrides_runpath=yes 18446 18447 case $host_os in 18448 cygwin*) 18449 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18450 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18451 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18452 ;; 18453 mingw*) 18454 # MinGW DLLs use traditional 'lib' prefix 18455 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18456 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18457 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18458 # It is most probably a Windows format PATH printed by 18459 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18460 # path with ; separators, and with drive letters. We can handle the 18461 # drive letters (cygwin fileutils understands them), so leave them, 18462 # especially as we might pass files found there to a mingw objdump, 18463 # which wouldn't understand a cygwinified path. Ahh. 18464 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18465 else 18466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18467 fi 18468 ;; 18469 pw32*) 18470 # pw32 DLLs use 'pw' prefix rather than 'lib' 18471 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18472 ;; 18473 esac 18474 ;; 18475 18476 *) 18477 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18478 ;; 18479 esac 18480 dynamic_linker='Win32 ld.exe' 18481 # FIXME: first we should search . and the directory the executable is in 18482 shlibpath_var=PATH 18483 ;; 18484 18485darwin* | rhapsody*) 18486 dynamic_linker="$host_os dyld" 18487 version_type=darwin 18488 need_lib_prefix=no 18489 need_version=no 18490 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18491 soname_spec='${libname}${release}${major}$shared_ext' 18492 shlibpath_overrides_runpath=yes 18493 shlibpath_var=DYLD_LIBRARY_PATH 18494 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18495 18496 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18497 ;; 18498 18499dgux*) 18500 version_type=linux 18501 need_lib_prefix=no 18502 need_version=no 18503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18504 soname_spec='${libname}${release}${shared_ext}$major' 18505 shlibpath_var=LD_LIBRARY_PATH 18506 ;; 18507 18508freebsd1*) 18509 dynamic_linker=no 18510 ;; 18511 18512freebsd* | dragonfly*) 18513 # DragonFly does not have aout. When/if they implement a new 18514 # versioning mechanism, adjust this. 18515 if test -x /usr/bin/objformat; then 18516 objformat=`/usr/bin/objformat` 18517 else 18518 case $host_os in 18519 freebsd[123]*) objformat=aout ;; 18520 *) objformat=elf ;; 18521 esac 18522 fi 18523 version_type=freebsd-$objformat 18524 case $version_type in 18525 freebsd-elf*) 18526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18527 need_version=no 18528 need_lib_prefix=no 18529 ;; 18530 freebsd-*) 18531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18532 need_version=yes 18533 ;; 18534 esac 18535 shlibpath_var=LD_LIBRARY_PATH 18536 case $host_os in 18537 freebsd2*) 18538 shlibpath_overrides_runpath=yes 18539 ;; 18540 freebsd3.[01]* | freebsdelf3.[01]*) 18541 shlibpath_overrides_runpath=yes 18542 hardcode_into_libs=yes 18543 ;; 18544 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18545 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18546 shlibpath_overrides_runpath=no 18547 hardcode_into_libs=yes 18548 ;; 18549 *) # from 4.6 on, and DragonFly 18550 shlibpath_overrides_runpath=yes 18551 hardcode_into_libs=yes 18552 ;; 18553 esac 18554 ;; 18555 18556gnu*) 18557 version_type=linux 18558 need_lib_prefix=no 18559 need_version=no 18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18561 soname_spec='${libname}${release}${shared_ext}$major' 18562 shlibpath_var=LD_LIBRARY_PATH 18563 hardcode_into_libs=yes 18564 ;; 18565 18566hpux9* | hpux10* | hpux11*) 18567 # Give a soname corresponding to the major version so that dld.sl refuses to 18568 # link against other versions. 18569 version_type=sunos 18570 need_lib_prefix=no 18571 need_version=no 18572 case $host_cpu in 18573 ia64*) 18574 shrext_cmds='.so' 18575 hardcode_into_libs=yes 18576 dynamic_linker="$host_os dld.so" 18577 shlibpath_var=LD_LIBRARY_PATH 18578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18580 soname_spec='${libname}${release}${shared_ext}$major' 18581 if test "X$HPUX_IA64_MODE" = X32; then 18582 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18583 else 18584 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18585 fi 18586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18587 ;; 18588 hppa*64*) 18589 shrext_cmds='.sl' 18590 hardcode_into_libs=yes 18591 dynamic_linker="$host_os dld.sl" 18592 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18595 soname_spec='${libname}${release}${shared_ext}$major' 18596 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18598 ;; 18599 *) 18600 shrext_cmds='.sl' 18601 dynamic_linker="$host_os dld.sl" 18602 shlibpath_var=SHLIB_PATH 18603 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18605 soname_spec='${libname}${release}${shared_ext}$major' 18606 ;; 18607 esac 18608 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18609 postinstall_cmds='chmod 555 $lib' 18610 ;; 18611 18612interix[3-9]*) 18613 version_type=linux 18614 need_lib_prefix=no 18615 need_version=no 18616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18617 soname_spec='${libname}${release}${shared_ext}$major' 18618 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18619 shlibpath_var=LD_LIBRARY_PATH 18620 shlibpath_overrides_runpath=no 18621 hardcode_into_libs=yes 18622 ;; 18623 18624irix5* | irix6* | nonstopux*) 18625 case $host_os in 18626 nonstopux*) version_type=nonstopux ;; 18627 *) 18628 if test "$lt_cv_prog_gnu_ld" = yes; then 18629 version_type=linux 18630 else 18631 version_type=irix 18632 fi ;; 18633 esac 18634 need_lib_prefix=no 18635 need_version=no 18636 soname_spec='${libname}${release}${shared_ext}$major' 18637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18638 case $host_os in 18639 irix5* | nonstopux*) 18640 libsuff= shlibsuff= 18641 ;; 18642 *) 18643 case $LD in # libtool.m4 will add one of these switches to LD 18644 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18645 libsuff= shlibsuff= libmagic=32-bit;; 18646 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18647 libsuff=32 shlibsuff=N32 libmagic=N32;; 18648 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18649 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18650 *) libsuff= shlibsuff= libmagic=never-match;; 18651 esac 18652 ;; 18653 esac 18654 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18655 shlibpath_overrides_runpath=no 18656 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18657 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18658 hardcode_into_libs=yes 18659 ;; 18660 18661# No shared lib support for Linux oldld, aout, or coff. 18662linux*oldld* | linux*aout* | linux*coff*) 18663 dynamic_linker=no 18664 ;; 18665 18666# This must be Linux ELF. 18667linux* | k*bsd*-gnu) 18668 version_type=linux 18669 need_lib_prefix=no 18670 need_version=no 18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18672 soname_spec='${libname}${release}${shared_ext}$major' 18673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18674 shlibpath_var=LD_LIBRARY_PATH 18675 shlibpath_overrides_runpath=no 18676 # This implies no fast_install, which is unacceptable. 18677 # Some rework will be needed to allow for fast_install 18678 # before this can be enabled. 18679 hardcode_into_libs=yes 18680 18681 # Append ld.so.conf contents to the search path 18682 if test -f /etc/ld.so.conf; then 18683 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18684 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18685 fi 18686 18687 # We used to test for /lib/ld.so.1 and disable shared libraries on 18688 # powerpc, because MkLinux only supported shared libraries with the 18689 # GNU dynamic linker. Since this was broken with cross compilers, 18690 # most powerpc-linux boxes support dynamic linking these days and 18691 # people can always --disable-shared, the test was removed, and we 18692 # assume the GNU/Linux dynamic linker is in use. 18693 dynamic_linker='GNU/Linux ld.so' 18694 ;; 18695 18696netbsdelf*-gnu) 18697 version_type=linux 18698 need_lib_prefix=no 18699 need_version=no 18700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18701 soname_spec='${libname}${release}${shared_ext}$major' 18702 shlibpath_var=LD_LIBRARY_PATH 18703 shlibpath_overrides_runpath=no 18704 hardcode_into_libs=yes 18705 dynamic_linker='NetBSD ld.elf_so' 18706 ;; 18707 18708netbsd*) 18709 version_type=sunos 18710 need_lib_prefix=no 18711 need_version=no 18712 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18715 dynamic_linker='NetBSD (a.out) ld.so' 18716 else 18717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18718 soname_spec='${libname}${release}${shared_ext}$major' 18719 dynamic_linker='NetBSD ld.elf_so' 18720 fi 18721 shlibpath_var=LD_LIBRARY_PATH 18722 shlibpath_overrides_runpath=yes 18723 hardcode_into_libs=yes 18724 ;; 18725 18726newsos6) 18727 version_type=linux 18728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18729 shlibpath_var=LD_LIBRARY_PATH 18730 shlibpath_overrides_runpath=yes 18731 ;; 18732 18733nto-qnx*) 18734 version_type=linux 18735 need_lib_prefix=no 18736 need_version=no 18737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18738 soname_spec='${libname}${release}${shared_ext}$major' 18739 shlibpath_var=LD_LIBRARY_PATH 18740 shlibpath_overrides_runpath=yes 18741 ;; 18742 18743openbsd*) 18744 version_type=sunos 18745 sys_lib_dlsearch_path_spec="/usr/lib" 18746 need_lib_prefix=no 18747 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18748 case $host_os in 18749 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18750 *) need_version=no ;; 18751 esac 18752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18754 shlibpath_var=LD_LIBRARY_PATH 18755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18756 case $host_os in 18757 openbsd2.[89] | openbsd2.[89].*) 18758 shlibpath_overrides_runpath=no 18759 ;; 18760 *) 18761 shlibpath_overrides_runpath=yes 18762 ;; 18763 esac 18764 else 18765 shlibpath_overrides_runpath=yes 18766 fi 18767 ;; 18768 18769os2*) 18770 libname_spec='$name' 18771 shrext_cmds=".dll" 18772 need_lib_prefix=no 18773 library_names_spec='$libname${shared_ext} $libname.a' 18774 dynamic_linker='OS/2 ld.exe' 18775 shlibpath_var=LIBPATH 18776 ;; 18777 18778osf3* | osf4* | osf5*) 18779 version_type=osf 18780 need_lib_prefix=no 18781 need_version=no 18782 soname_spec='${libname}${release}${shared_ext}$major' 18783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18784 shlibpath_var=LD_LIBRARY_PATH 18785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18786 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18787 ;; 18788 18789rdos*) 18790 dynamic_linker=no 18791 ;; 18792 18793solaris*) 18794 version_type=linux 18795 need_lib_prefix=no 18796 need_version=no 18797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18798 soname_spec='${libname}${release}${shared_ext}$major' 18799 shlibpath_var=LD_LIBRARY_PATH 18800 shlibpath_overrides_runpath=yes 18801 hardcode_into_libs=yes 18802 # ldd complains unless libraries are executable 18803 postinstall_cmds='chmod +x $lib' 18804 ;; 18805 18806sunos4*) 18807 version_type=sunos 18808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18809 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18810 shlibpath_var=LD_LIBRARY_PATH 18811 shlibpath_overrides_runpath=yes 18812 if test "$with_gnu_ld" = yes; then 18813 need_lib_prefix=no 18814 fi 18815 need_version=yes 18816 ;; 18817 18818sysv4 | sysv4.3*) 18819 version_type=linux 18820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18821 soname_spec='${libname}${release}${shared_ext}$major' 18822 shlibpath_var=LD_LIBRARY_PATH 18823 case $host_vendor in 18824 sni) 18825 shlibpath_overrides_runpath=no 18826 need_lib_prefix=no 18827 export_dynamic_flag_spec='${wl}-Blargedynsym' 18828 runpath_var=LD_RUN_PATH 18829 ;; 18830 siemens) 18831 need_lib_prefix=no 18832 ;; 18833 motorola) 18834 need_lib_prefix=no 18835 need_version=no 18836 shlibpath_overrides_runpath=no 18837 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18838 ;; 18839 esac 18840 ;; 18841 18842sysv4*MP*) 18843 if test -d /usr/nec ;then 18844 version_type=linux 18845 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18846 soname_spec='$libname${shared_ext}.$major' 18847 shlibpath_var=LD_LIBRARY_PATH 18848 fi 18849 ;; 18850 18851sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18852 version_type=freebsd-elf 18853 need_lib_prefix=no 18854 need_version=no 18855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18856 soname_spec='${libname}${release}${shared_ext}$major' 18857 shlibpath_var=LD_LIBRARY_PATH 18858 hardcode_into_libs=yes 18859 if test "$with_gnu_ld" = yes; then 18860 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18861 shlibpath_overrides_runpath=no 18862 else 18863 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18864 shlibpath_overrides_runpath=yes 18865 case $host_os in 18866 sco3.2v5*) 18867 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18868 ;; 18869 esac 18870 fi 18871 sys_lib_dlsearch_path_spec='/usr/lib' 18872 ;; 18873 18874uts4*) 18875 version_type=linux 18876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18877 soname_spec='${libname}${release}${shared_ext}$major' 18878 shlibpath_var=LD_LIBRARY_PATH 18879 ;; 18880 18881*) 18882 dynamic_linker=no 18883 ;; 18884esac 18885{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18886echo "${ECHO_T}$dynamic_linker" >&6; } 18887test "$dynamic_linker" = no && can_build_shared=no 18888 18889if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18890 echo $ECHO_N "(cached) $ECHO_C" >&6 18891else 18892 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18893fi 18894 18895sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18896if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18897 echo $ECHO_N "(cached) $ECHO_C" >&6 18898else 18899 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18900fi 18901 18902sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18903 18904variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18905if test "$GCC" = yes; then 18906 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18907fi 18908 18909{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18910echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18911hardcode_action_F77= 18912if test -n "$hardcode_libdir_flag_spec_F77" || \ 18913 test -n "$runpath_var_F77" || \ 18914 test "X$hardcode_automatic_F77" = "Xyes" ; then 18915 18916 # We can hardcode non-existant directories. 18917 if test "$hardcode_direct_F77" != no && 18918 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18919 # have to relink, otherwise we might link with an installed library 18920 # when we should be linking with a yet-to-be-installed one 18921 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 18922 test "$hardcode_minus_L_F77" != no; then 18923 # Linking always hardcodes the temporary library directory. 18924 hardcode_action_F77=relink 18925 else 18926 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18927 hardcode_action_F77=immediate 18928 fi 18929else 18930 # We cannot hardcode anything, or else we can only hardcode existing 18931 # directories. 18932 hardcode_action_F77=unsupported 18933fi 18934{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 18935echo "${ECHO_T}$hardcode_action_F77" >&6; } 18936 18937if test "$hardcode_action_F77" = relink; then 18938 # Fast installation is not supported 18939 enable_fast_install=no 18940elif test "$shlibpath_overrides_runpath" = yes || 18941 test "$enable_shared" = no; then 18942 # Fast installation is not necessary 18943 enable_fast_install=needless 18944fi 18945 18946 18947# The else clause should only fire when bootstrapping the 18948# libtool distribution, otherwise you forgot to ship ltmain.sh 18949# with your package, and you will get complaints that there are 18950# no rules to generate ltmain.sh. 18951if test -f "$ltmain"; then 18952 # See if we are running on zsh, and set the options which allow our commands through 18953 # without removal of \ escapes. 18954 if test -n "${ZSH_VERSION+set}" ; then 18955 setopt NO_GLOB_SUBST 18956 fi 18957 # Now quote all the things that may contain metacharacters while being 18958 # careful not to overquote the AC_SUBSTed values. We take copies of the 18959 # variables and quote the copies for generation of the libtool script. 18960 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18961 SED SHELL STRIP \ 18962 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18963 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18964 deplibs_check_method reload_flag reload_cmds need_locks \ 18965 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18966 lt_cv_sys_global_symbol_to_c_name_address \ 18967 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18968 old_postinstall_cmds old_postuninstall_cmds \ 18969 compiler_F77 \ 18970 CC_F77 \ 18971 LD_F77 \ 18972 lt_prog_compiler_wl_F77 \ 18973 lt_prog_compiler_pic_F77 \ 18974 lt_prog_compiler_static_F77 \ 18975 lt_prog_compiler_no_builtin_flag_F77 \ 18976 export_dynamic_flag_spec_F77 \ 18977 thread_safe_flag_spec_F77 \ 18978 whole_archive_flag_spec_F77 \ 18979 enable_shared_with_static_runtimes_F77 \ 18980 old_archive_cmds_F77 \ 18981 old_archive_from_new_cmds_F77 \ 18982 predep_objects_F77 \ 18983 postdep_objects_F77 \ 18984 predeps_F77 \ 18985 postdeps_F77 \ 18986 compiler_lib_search_path_F77 \ 18987 compiler_lib_search_dirs_F77 \ 18988 archive_cmds_F77 \ 18989 archive_expsym_cmds_F77 \ 18990 postinstall_cmds_F77 \ 18991 postuninstall_cmds_F77 \ 18992 old_archive_from_expsyms_cmds_F77 \ 18993 allow_undefined_flag_F77 \ 18994 no_undefined_flag_F77 \ 18995 export_symbols_cmds_F77 \ 18996 hardcode_libdir_flag_spec_F77 \ 18997 hardcode_libdir_flag_spec_ld_F77 \ 18998 hardcode_libdir_separator_F77 \ 18999 hardcode_automatic_F77 \ 19000 module_cmds_F77 \ 19001 module_expsym_cmds_F77 \ 19002 lt_cv_prog_compiler_c_o_F77 \ 19003 fix_srcfile_path_F77 \ 19004 exclude_expsyms_F77 \ 19005 include_expsyms_F77; do 19006 19007 case $var in 19008 old_archive_cmds_F77 | \ 19009 old_archive_from_new_cmds_F77 | \ 19010 archive_cmds_F77 | \ 19011 archive_expsym_cmds_F77 | \ 19012 module_cmds_F77 | \ 19013 module_expsym_cmds_F77 | \ 19014 old_archive_from_expsyms_cmds_F77 | \ 19015 export_symbols_cmds_F77 | \ 19016 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19017 postinstall_cmds | postuninstall_cmds | \ 19018 old_postinstall_cmds | old_postuninstall_cmds | \ 19019 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19020 # Double-quote double-evaled strings. 19021 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19022 ;; 19023 *) 19024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19025 ;; 19026 esac 19027 done 19028 19029 case $lt_echo in 19030 *'\$0 --fallback-echo"') 19031 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19032 ;; 19033 esac 19034 19035cfgfile="$ofile" 19036 19037 cat <<__EOF__ >> "$cfgfile" 19038# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19039 19040# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19041 19042# Shell to use when invoking shell scripts. 19043SHELL=$lt_SHELL 19044 19045# Whether or not to build shared libraries. 19046build_libtool_libs=$enable_shared 19047 19048# Whether or not to build static libraries. 19049build_old_libs=$enable_static 19050 19051# Whether or not to add -lc for building shared libraries. 19052build_libtool_need_lc=$archive_cmds_need_lc_F77 19053 19054# Whether or not to disallow shared libs when runtime libs are static 19055allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 19056 19057# Whether or not to optimize for fast installation. 19058fast_install=$enable_fast_install 19059 19060# The host system. 19061host_alias=$host_alias 19062host=$host 19063host_os=$host_os 19064 19065# The build system. 19066build_alias=$build_alias 19067build=$build 19068build_os=$build_os 19069 19070# An echo program that does not interpret backslashes. 19071echo=$lt_echo 19072 19073# The archiver. 19074AR=$lt_AR 19075AR_FLAGS=$lt_AR_FLAGS 19076 19077# A C compiler. 19078LTCC=$lt_LTCC 19079 19080# LTCC compiler flags. 19081LTCFLAGS=$lt_LTCFLAGS 19082 19083# A language-specific compiler. 19084CC=$lt_compiler_F77 19085 19086# Is the compiler the GNU C compiler? 19087with_gcc=$GCC_F77 19088 19089# An ERE matcher. 19090EGREP=$lt_EGREP 19091 19092# The linker used to build libraries. 19093LD=$lt_LD_F77 19094 19095# Whether we need hard or soft links. 19096LN_S=$lt_LN_S 19097 19098# A BSD-compatible nm program. 19099NM=$lt_NM 19100 19101# A symbol stripping program 19102STRIP=$lt_STRIP 19103 19104# Used to examine libraries when file_magic_cmd begins "file" 19105MAGIC_CMD=$MAGIC_CMD 19106 19107# Used on cygwin: DLL creation program. 19108DLLTOOL="$DLLTOOL" 19109 19110# Used on cygwin: object dumper. 19111OBJDUMP="$OBJDUMP" 19112 19113# Used on cygwin: assembler. 19114AS="$AS" 19115 19116# The name of the directory that contains temporary libtool files. 19117objdir=$objdir 19118 19119# How to create reloadable object files. 19120reload_flag=$lt_reload_flag 19121reload_cmds=$lt_reload_cmds 19122 19123# How to pass a linker flag through the compiler. 19124wl=$lt_lt_prog_compiler_wl_F77 19125 19126# Object file suffix (normally "o"). 19127objext="$ac_objext" 19128 19129# Old archive suffix (normally "a"). 19130libext="$libext" 19131 19132# Shared library suffix (normally ".so"). 19133shrext_cmds='$shrext_cmds' 19134 19135# Executable file suffix (normally ""). 19136exeext="$exeext" 19137 19138# Additional compiler flags for building library objects. 19139pic_flag=$lt_lt_prog_compiler_pic_F77 19140pic_mode=$pic_mode 19141 19142# What is the maximum length of a command? 19143max_cmd_len=$lt_cv_sys_max_cmd_len 19144 19145# Does compiler simultaneously support -c and -o options? 19146compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 19147 19148# Must we lock files when doing compilation? 19149need_locks=$lt_need_locks 19150 19151# Do we need the lib prefix for modules? 19152need_lib_prefix=$need_lib_prefix 19153 19154# Do we need a version for libraries? 19155need_version=$need_version 19156 19157# Whether dlopen is supported. 19158dlopen_support=$enable_dlopen 19159 19160# Whether dlopen of programs is supported. 19161dlopen_self=$enable_dlopen_self 19162 19163# Whether dlopen of statically linked programs is supported. 19164dlopen_self_static=$enable_dlopen_self_static 19165 19166# Compiler flag to prevent dynamic linking. 19167link_static_flag=$lt_lt_prog_compiler_static_F77 19168 19169# Compiler flag to turn off builtin functions. 19170no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 19171 19172# Compiler flag to allow reflexive dlopens. 19173export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 19174 19175# Compiler flag to generate shared objects directly from archives. 19176whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 19177 19178# Compiler flag to generate thread-safe objects. 19179thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 19180 19181# Library versioning type. 19182version_type=$version_type 19183 19184# Format of library name prefix. 19185libname_spec=$lt_libname_spec 19186 19187# List of archive names. First name is the real one, the rest are links. 19188# The last name is the one that the linker finds with -lNAME. 19189library_names_spec=$lt_library_names_spec 19190 19191# The coded name of the library, if different from the real name. 19192soname_spec=$lt_soname_spec 19193 19194# Commands used to build and install an old-style archive. 19195RANLIB=$lt_RANLIB 19196old_archive_cmds=$lt_old_archive_cmds_F77 19197old_postinstall_cmds=$lt_old_postinstall_cmds 19198old_postuninstall_cmds=$lt_old_postuninstall_cmds 19199 19200# Create an old-style archive from a shared archive. 19201old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 19202 19203# Create a temporary old-style archive to link instead of a shared archive. 19204old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 19205 19206# Commands used to build and install a shared archive. 19207archive_cmds=$lt_archive_cmds_F77 19208archive_expsym_cmds=$lt_archive_expsym_cmds_F77 19209postinstall_cmds=$lt_postinstall_cmds 19210postuninstall_cmds=$lt_postuninstall_cmds 19211 19212# Commands used to build a loadable module (assumed same as above if empty) 19213module_cmds=$lt_module_cmds_F77 19214module_expsym_cmds=$lt_module_expsym_cmds_F77 19215 19216# Commands to strip libraries. 19217old_striplib=$lt_old_striplib 19218striplib=$lt_striplib 19219 19220# Dependencies to place before the objects being linked to create a 19221# shared library. 19222predep_objects=$lt_predep_objects_F77 19223 19224# Dependencies to place after the objects being linked to create a 19225# shared library. 19226postdep_objects=$lt_postdep_objects_F77 19227 19228# Dependencies to place before the objects being linked to create a 19229# shared library. 19230predeps=$lt_predeps_F77 19231 19232# Dependencies to place after the objects being linked to create a 19233# shared library. 19234postdeps=$lt_postdeps_F77 19235 19236# The directories searched by this compiler when creating a shared 19237# library 19238compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 19239 19240# The library search path used internally by the compiler when linking 19241# a shared library. 19242compiler_lib_search_path=$lt_compiler_lib_search_path_F77 19243 19244# Method to check whether dependent libraries are shared objects. 19245deplibs_check_method=$lt_deplibs_check_method 19246 19247# Command to use when deplibs_check_method == file_magic. 19248file_magic_cmd=$lt_file_magic_cmd 19249 19250# Flag that allows shared libraries with undefined symbols to be built. 19251allow_undefined_flag=$lt_allow_undefined_flag_F77 19252 19253# Flag that forces no undefined symbols. 19254no_undefined_flag=$lt_no_undefined_flag_F77 19255 19256# Commands used to finish a libtool library installation in a directory. 19257finish_cmds=$lt_finish_cmds 19258 19259# Same as above, but a single script fragment to be evaled but not shown. 19260finish_eval=$lt_finish_eval 19261 19262# Take the output of nm and produce a listing of raw symbols and C names. 19263global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19264 19265# Transform the output of nm in a proper C declaration 19266global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19267 19268# Transform the output of nm in a C name address pair 19269global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19270 19271# This is the shared library runtime path variable. 19272runpath_var=$runpath_var 19273 19274# This is the shared library path variable. 19275shlibpath_var=$shlibpath_var 19276 19277# Is shlibpath searched before the hard-coded library search path? 19278shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19279 19280# How to hardcode a shared library path into an executable. 19281hardcode_action=$hardcode_action_F77 19282 19283# Whether we should hardcode library paths into libraries. 19284hardcode_into_libs=$hardcode_into_libs 19285 19286# Flag to hardcode \$libdir into a binary during linking. 19287# This must work even if \$libdir does not exist. 19288hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 19289 19290# If ld is used when linking, flag to hardcode \$libdir into 19291# a binary during linking. This must work even if \$libdir does 19292# not exist. 19293hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 19294 19295# Whether we need a single -rpath flag with a separated argument. 19296hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 19297 19298# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19299# resulting binary. 19300hardcode_direct=$hardcode_direct_F77 19301 19302# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19303# resulting binary. 19304hardcode_minus_L=$hardcode_minus_L_F77 19305 19306# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19307# the resulting binary. 19308hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 19309 19310# Set to yes if building a shared library automatically hardcodes DIR into the library 19311# and all subsequent libraries and executables linked against it. 19312hardcode_automatic=$hardcode_automatic_F77 19313 19314# Variables whose values should be saved in libtool wrapper scripts and 19315# restored at relink time. 19316variables_saved_for_relink="$variables_saved_for_relink" 19317 19318# Whether libtool must link a program against all its dependency libraries. 19319link_all_deplibs=$link_all_deplibs_F77 19320 19321# Compile-time system search path for libraries 19322sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19323 19324# Run-time system search path for libraries 19325sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19326 19327# Fix the shell variable \$srcfile for the compiler. 19328fix_srcfile_path=$lt_fix_srcfile_path 19329 19330# Set to yes if exported symbols are required. 19331always_export_symbols=$always_export_symbols_F77 19332 19333# The commands to list exported symbols. 19334export_symbols_cmds=$lt_export_symbols_cmds_F77 19335 19336# The commands to extract the exported symbol list from a shared archive. 19337extract_expsyms_cmds=$lt_extract_expsyms_cmds 19338 19339# Symbols that should not be listed in the preloaded symbols. 19340exclude_expsyms=$lt_exclude_expsyms_F77 19341 19342# Symbols that must always be exported. 19343include_expsyms=$lt_include_expsyms_F77 19344 19345# ### END LIBTOOL TAG CONFIG: $tagname 19346 19347__EOF__ 19348 19349 19350else 19351 # If there is no Makefile yet, we rely on a make rule to execute 19352 # `config.status --recheck' to rerun these tests and create the 19353 # libtool script then. 19354 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19355 if test -f "$ltmain_in"; then 19356 test -f Makefile && make "$ltmain" 19357 fi 19358fi 19359 19360 19361ac_ext=c 19362ac_cpp='$CPP $CPPFLAGS' 19363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19365ac_compiler_gnu=$ac_cv_c_compiler_gnu 19366 19367CC="$lt_save_CC" 19368 19369 else 19370 tagname="" 19371 fi 19372 ;; 19373 19374 GCJ) 19375 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 19376 19377 19378# Source file extension for Java test sources. 19379ac_ext=java 19380 19381# Object file extension for compiled Java test sources. 19382objext=o 19383objext_GCJ=$objext 19384 19385# Code to be used in simple compile tests 19386lt_simple_compile_test_code="class foo {}" 19387 19388# Code to be used in simple link tests 19389lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 19390 19391# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19392 19393# If no C compiler was specified, use CC. 19394LTCC=${LTCC-"$CC"} 19395 19396# If no C compiler flags were specified, use CFLAGS. 19397LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19398 19399# Allow CC to be a program name with arguments. 19400compiler=$CC 19401 19402 19403# save warnings/boilerplate of simple test code 19404ac_outfile=conftest.$ac_objext 19405echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19406eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19407_lt_compiler_boilerplate=`cat conftest.err` 19408$rm conftest* 19409 19410ac_outfile=conftest.$ac_objext 19411echo "$lt_simple_link_test_code" >conftest.$ac_ext 19412eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19413_lt_linker_boilerplate=`cat conftest.err` 19414$rm -r conftest* 19415 19416 19417# Allow CC to be a program name with arguments. 19418lt_save_CC="$CC" 19419CC=${GCJ-"gcj"} 19420compiler=$CC 19421compiler_GCJ=$CC 19422for cc_temp in $compiler""; do 19423 case $cc_temp in 19424 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19425 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19426 \-*) ;; 19427 *) break;; 19428 esac 19429done 19430cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19431 19432 19433# GCJ did not exist at the time GCC didn't implicitly link libc in. 19434archive_cmds_need_lc_GCJ=no 19435 19436old_archive_cmds_GCJ=$old_archive_cmds 19437 19438 19439lt_prog_compiler_no_builtin_flag_GCJ= 19440 19441if test "$GCC" = yes; then 19442 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 19443 19444 19445{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 19446echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 19447if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 19448 echo $ECHO_N "(cached) $ECHO_C" >&6 19449else 19450 lt_cv_prog_compiler_rtti_exceptions=no 19451 ac_outfile=conftest.$ac_objext 19452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19453 lt_compiler_flag="-fno-rtti -fno-exceptions" 19454 # Insert the option either (1) after the last *FLAGS variable, or 19455 # (2) before a word containing "conftest.", or (3) at the end. 19456 # Note that $ac_compile itself does not contain backslashes and begins 19457 # with a dollar sign (not a hyphen), so the echo should work correctly. 19458 # The option is referenced via a variable to avoid confusing sed. 19459 lt_compile=`echo "$ac_compile" | $SED \ 19460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19462 -e 's:$: $lt_compiler_flag:'` 19463 (eval echo "\"\$as_me:19463: $lt_compile\"" >&5) 19464 (eval "$lt_compile" 2>conftest.err) 19465 ac_status=$? 19466 cat conftest.err >&5 19467 echo "$as_me:19467: \$? = $ac_status" >&5 19468 if (exit $ac_status) && test -s "$ac_outfile"; then 19469 # The compiler can only warn and ignore the option if not recognized 19470 # So say no if there are warnings other than the usual output. 19471 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 19472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19474 lt_cv_prog_compiler_rtti_exceptions=yes 19475 fi 19476 fi 19477 $rm conftest* 19478 19479fi 19480{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 19481echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 19482 19483if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 19484 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 19485else 19486 : 19487fi 19488 19489fi 19490 19491lt_prog_compiler_wl_GCJ= 19492lt_prog_compiler_pic_GCJ= 19493lt_prog_compiler_static_GCJ= 19494 19495{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 19496echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 19497 19498 if test "$GCC" = yes; then 19499 lt_prog_compiler_wl_GCJ='-Wl,' 19500 lt_prog_compiler_static_GCJ='-static' 19501 19502 case $host_os in 19503 aix*) 19504 # All AIX code is PIC. 19505 if test "$host_cpu" = ia64; then 19506 # AIX 5 now supports IA64 processor 19507 lt_prog_compiler_static_GCJ='-Bstatic' 19508 fi 19509 ;; 19510 19511 amigaos*) 19512 # FIXME: we need at least 68020 code to build shared libraries, but 19513 # adding the `-m68020' flag to GCC prevents building anything better, 19514 # like `-m68040'. 19515 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 19516 ;; 19517 19518 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19519 # PIC is the default for these OSes. 19520 ;; 19521 19522 mingw* | cygwin* | pw32* | os2*) 19523 # This hack is so that the source file can tell whether it is being 19524 # built for inclusion in a dll (and should export symbols for example). 19525 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19526 # (--disable-auto-import) libraries 19527 19528 ;; 19529 19530 darwin* | rhapsody*) 19531 # PIC is the default on this platform 19532 # Common symbols not allowed in MH_DYLIB files 19533 lt_prog_compiler_pic_GCJ='-fno-common' 19534 ;; 19535 19536 interix[3-9]*) 19537 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19538 # Instead, we relocate shared libraries at runtime. 19539 ;; 19540 19541 msdosdjgpp*) 19542 # Just because we use GCC doesn't mean we suddenly get shared libraries 19543 # on systems that don't support them. 19544 lt_prog_compiler_can_build_shared_GCJ=no 19545 enable_shared=no 19546 ;; 19547 19548 sysv4*MP*) 19549 if test -d /usr/nec; then 19550 lt_prog_compiler_pic_GCJ=-Kconform_pic 19551 fi 19552 ;; 19553 19554 hpux*) 19555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19556 # not for PA HP-UX. 19557 case $host_cpu in 19558 hppa*64*|ia64*) 19559 # +Z the default 19560 ;; 19561 *) 19562 lt_prog_compiler_pic_GCJ='-fPIC' 19563 ;; 19564 esac 19565 ;; 19566 19567 *) 19568 lt_prog_compiler_pic_GCJ='-fPIC' 19569 ;; 19570 esac 19571 else 19572 # PORTME Check for flag to pass linker flags through the system compiler. 19573 case $host_os in 19574 aix*) 19575 lt_prog_compiler_wl_GCJ='-Wl,' 19576 if test "$host_cpu" = ia64; then 19577 # AIX 5 now supports IA64 processor 19578 lt_prog_compiler_static_GCJ='-Bstatic' 19579 else 19580 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 19581 fi 19582 ;; 19583 darwin*) 19584 # PIC is the default on this platform 19585 # Common symbols not allowed in MH_DYLIB files 19586 case $cc_basename in 19587 xlc*) 19588 lt_prog_compiler_pic_GCJ='-qnocommon' 19589 lt_prog_compiler_wl_GCJ='-Wl,' 19590 ;; 19591 esac 19592 ;; 19593 19594 mingw* | cygwin* | pw32* | os2*) 19595 # This hack is so that the source file can tell whether it is being 19596 # built for inclusion in a dll (and should export symbols for example). 19597 19598 ;; 19599 19600 hpux9* | hpux10* | hpux11*) 19601 lt_prog_compiler_wl_GCJ='-Wl,' 19602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19603 # not for PA HP-UX. 19604 case $host_cpu in 19605 hppa*64*|ia64*) 19606 # +Z the default 19607 ;; 19608 *) 19609 lt_prog_compiler_pic_GCJ='+Z' 19610 ;; 19611 esac 19612 # Is there a better lt_prog_compiler_static that works with the bundled CC? 19613 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 19614 ;; 19615 19616 irix5* | irix6* | nonstopux*) 19617 lt_prog_compiler_wl_GCJ='-Wl,' 19618 # PIC (with -KPIC) is the default. 19619 lt_prog_compiler_static_GCJ='-non_shared' 19620 ;; 19621 19622 newsos6) 19623 lt_prog_compiler_pic_GCJ='-KPIC' 19624 lt_prog_compiler_static_GCJ='-Bstatic' 19625 ;; 19626 19627 linux* | k*bsd*-gnu) 19628 case $cc_basename in 19629 icc* | ecc*) 19630 lt_prog_compiler_wl_GCJ='-Wl,' 19631 lt_prog_compiler_pic_GCJ='-KPIC' 19632 lt_prog_compiler_static_GCJ='-static' 19633 ;; 19634 pgcc* | pgf77* | pgf90* | pgf95*) 19635 # Portland Group compilers (*not* the Pentium gcc compiler, 19636 # which looks to be a dead project) 19637 lt_prog_compiler_wl_GCJ='-Wl,' 19638 lt_prog_compiler_pic_GCJ='-fpic' 19639 lt_prog_compiler_static_GCJ='-Bstatic' 19640 ;; 19641 ccc*) 19642 lt_prog_compiler_wl_GCJ='-Wl,' 19643 # All Alpha code is PIC. 19644 lt_prog_compiler_static_GCJ='-non_shared' 19645 ;; 19646 *) 19647 case `$CC -V 2>&1 | sed 5q` in 19648 *Sun\ C*) 19649 # Sun C 5.9 19650 lt_prog_compiler_pic_GCJ='-KPIC' 19651 lt_prog_compiler_static_GCJ='-Bstatic' 19652 lt_prog_compiler_wl_GCJ='-Wl,' 19653 ;; 19654 *Sun\ F*) 19655 # Sun Fortran 8.3 passes all unrecognized flags to the linker 19656 lt_prog_compiler_pic_GCJ='-KPIC' 19657 lt_prog_compiler_static_GCJ='-Bstatic' 19658 lt_prog_compiler_wl_GCJ='' 19659 ;; 19660 esac 19661 ;; 19662 esac 19663 ;; 19664 19665 osf3* | osf4* | osf5*) 19666 lt_prog_compiler_wl_GCJ='-Wl,' 19667 # All OSF/1 code is PIC. 19668 lt_prog_compiler_static_GCJ='-non_shared' 19669 ;; 19670 19671 rdos*) 19672 lt_prog_compiler_static_GCJ='-non_shared' 19673 ;; 19674 19675 solaris*) 19676 lt_prog_compiler_pic_GCJ='-KPIC' 19677 lt_prog_compiler_static_GCJ='-Bstatic' 19678 case $cc_basename in 19679 f77* | f90* | f95*) 19680 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 19681 *) 19682 lt_prog_compiler_wl_GCJ='-Wl,';; 19683 esac 19684 ;; 19685 19686 sunos4*) 19687 lt_prog_compiler_wl_GCJ='-Qoption ld ' 19688 lt_prog_compiler_pic_GCJ='-PIC' 19689 lt_prog_compiler_static_GCJ='-Bstatic' 19690 ;; 19691 19692 sysv4 | sysv4.2uw2* | sysv4.3*) 19693 lt_prog_compiler_wl_GCJ='-Wl,' 19694 lt_prog_compiler_pic_GCJ='-KPIC' 19695 lt_prog_compiler_static_GCJ='-Bstatic' 19696 ;; 19697 19698 sysv4*MP*) 19699 if test -d /usr/nec ;then 19700 lt_prog_compiler_pic_GCJ='-Kconform_pic' 19701 lt_prog_compiler_static_GCJ='-Bstatic' 19702 fi 19703 ;; 19704 19705 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19706 lt_prog_compiler_wl_GCJ='-Wl,' 19707 lt_prog_compiler_pic_GCJ='-KPIC' 19708 lt_prog_compiler_static_GCJ='-Bstatic' 19709 ;; 19710 19711 unicos*) 19712 lt_prog_compiler_wl_GCJ='-Wl,' 19713 lt_prog_compiler_can_build_shared_GCJ=no 19714 ;; 19715 19716 uts4*) 19717 lt_prog_compiler_pic_GCJ='-pic' 19718 lt_prog_compiler_static_GCJ='-Bstatic' 19719 ;; 19720 19721 *) 19722 lt_prog_compiler_can_build_shared_GCJ=no 19723 ;; 19724 esac 19725 fi 19726 19727{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 19728echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 19729 19730# 19731# Check to make sure the PIC flag actually works. 19732# 19733if test -n "$lt_prog_compiler_pic_GCJ"; then 19734 19735{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 19736echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 19737if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 19738 echo $ECHO_N "(cached) $ECHO_C" >&6 19739else 19740 lt_cv_prog_compiler_pic_works_GCJ=no 19741 ac_outfile=conftest.$ac_objext 19742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19743 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 19744 # Insert the option either (1) after the last *FLAGS variable, or 19745 # (2) before a word containing "conftest.", or (3) at the end. 19746 # Note that $ac_compile itself does not contain backslashes and begins 19747 # with a dollar sign (not a hyphen), so the echo should work correctly. 19748 # The option is referenced via a variable to avoid confusing sed. 19749 lt_compile=`echo "$ac_compile" | $SED \ 19750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19752 -e 's:$: $lt_compiler_flag:'` 19753 (eval echo "\"\$as_me:19753: $lt_compile\"" >&5) 19754 (eval "$lt_compile" 2>conftest.err) 19755 ac_status=$? 19756 cat conftest.err >&5 19757 echo "$as_me:19757: \$? = $ac_status" >&5 19758 if (exit $ac_status) && test -s "$ac_outfile"; then 19759 # The compiler can only warn and ignore the option if not recognized 19760 # So say no if there are warnings other than the usual output. 19761 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 19762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19763 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19764 lt_cv_prog_compiler_pic_works_GCJ=yes 19765 fi 19766 fi 19767 $rm conftest* 19768 19769fi 19770{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 19771echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 19772 19773if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 19774 case $lt_prog_compiler_pic_GCJ in 19775 "" | " "*) ;; 19776 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 19777 esac 19778else 19779 lt_prog_compiler_pic_GCJ= 19780 lt_prog_compiler_can_build_shared_GCJ=no 19781fi 19782 19783fi 19784case $host_os in 19785 # For platforms which do not support PIC, -DPIC is meaningless: 19786 *djgpp*) 19787 lt_prog_compiler_pic_GCJ= 19788 ;; 19789 *) 19790 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 19791 ;; 19792esac 19793 19794# 19795# Check to make sure the static flag actually works. 19796# 19797wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 19798{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19799echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 19800if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 19801 echo $ECHO_N "(cached) $ECHO_C" >&6 19802else 19803 lt_cv_prog_compiler_static_works_GCJ=no 19804 save_LDFLAGS="$LDFLAGS" 19805 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19806 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19807 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19808 # The linker can only warn and ignore the option if not recognized 19809 # So say no if there are warnings 19810 if test -s conftest.err; then 19811 # Append any errors to the config.log. 19812 cat conftest.err 1>&5 19813 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 19814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19815 if diff conftest.exp conftest.er2 >/dev/null; then 19816 lt_cv_prog_compiler_static_works_GCJ=yes 19817 fi 19818 else 19819 lt_cv_prog_compiler_static_works_GCJ=yes 19820 fi 19821 fi 19822 $rm -r conftest* 19823 LDFLAGS="$save_LDFLAGS" 19824 19825fi 19826{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 19827echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } 19828 19829if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 19830 : 19831else 19832 lt_prog_compiler_static_GCJ= 19833fi 19834 19835 19836{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 19837echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 19838if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 19839 echo $ECHO_N "(cached) $ECHO_C" >&6 19840else 19841 lt_cv_prog_compiler_c_o_GCJ=no 19842 $rm -r conftest 2>/dev/null 19843 mkdir conftest 19844 cd conftest 19845 mkdir out 19846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19847 19848 lt_compiler_flag="-o out/conftest2.$ac_objext" 19849 # Insert the option either (1) after the last *FLAGS variable, or 19850 # (2) before a word containing "conftest.", or (3) at the end. 19851 # Note that $ac_compile itself does not contain backslashes and begins 19852 # with a dollar sign (not a hyphen), so the echo should work correctly. 19853 lt_compile=`echo "$ac_compile" | $SED \ 19854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19856 -e 's:$: $lt_compiler_flag:'` 19857 (eval echo "\"\$as_me:19857: $lt_compile\"" >&5) 19858 (eval "$lt_compile" 2>out/conftest.err) 19859 ac_status=$? 19860 cat out/conftest.err >&5 19861 echo "$as_me:19861: \$? = $ac_status" >&5 19862 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19863 then 19864 # The compiler can only warn and ignore the option if not recognized 19865 # So say no if there are warnings 19866 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 19867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19869 lt_cv_prog_compiler_c_o_GCJ=yes 19870 fi 19871 fi 19872 chmod u+w . 2>&5 19873 $rm conftest* 19874 # SGI C++ compiler will create directory out/ii_files/ for 19875 # template instantiation 19876 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 19877 $rm out/* && rmdir out 19878 cd .. 19879 rmdir conftest 19880 $rm conftest* 19881 19882fi 19883{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 19884echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 19885 19886 19887hard_links="nottested" 19888if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 19889 # do not overwrite the value of need_locks provided by the user 19890 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 19891echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 19892 hard_links=yes 19893 $rm conftest* 19894 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19895 touch conftest.a 19896 ln conftest.a conftest.b 2>&5 || hard_links=no 19897 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19898 { echo "$as_me:$LINENO: result: $hard_links" >&5 19899echo "${ECHO_T}$hard_links" >&6; } 19900 if test "$hard_links" = no; then 19901 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 19902echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 19903 need_locks=warn 19904 fi 19905else 19906 need_locks=no 19907fi 19908 19909{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19910echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 19911 19912 runpath_var= 19913 allow_undefined_flag_GCJ= 19914 enable_shared_with_static_runtimes_GCJ=no 19915 archive_cmds_GCJ= 19916 archive_expsym_cmds_GCJ= 19917 old_archive_From_new_cmds_GCJ= 19918 old_archive_from_expsyms_cmds_GCJ= 19919 export_dynamic_flag_spec_GCJ= 19920 whole_archive_flag_spec_GCJ= 19921 thread_safe_flag_spec_GCJ= 19922 hardcode_libdir_flag_spec_GCJ= 19923 hardcode_libdir_flag_spec_ld_GCJ= 19924 hardcode_libdir_separator_GCJ= 19925 hardcode_direct_GCJ=no 19926 hardcode_minus_L_GCJ=no 19927 hardcode_shlibpath_var_GCJ=unsupported 19928 link_all_deplibs_GCJ=unknown 19929 hardcode_automatic_GCJ=no 19930 module_cmds_GCJ= 19931 module_expsym_cmds_GCJ= 19932 always_export_symbols_GCJ=no 19933 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19934 # include_expsyms should be a list of space-separated symbols to be *always* 19935 # included in the symbol list 19936 include_expsyms_GCJ= 19937 # exclude_expsyms can be an extended regexp of symbols to exclude 19938 # it will be wrapped by ` (' and `)$', so one must not match beginning or 19939 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 19940 # as well as any symbol that contains `d'. 19941 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19942 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 19943 # platforms (ab)use it in PIC code, but their linkers get confused if 19944 # the symbol is explicitly referenced. Since portable code cannot 19945 # rely on this symbol name, it's probably fine to never include it in 19946 # preloaded symbol tables. 19947 # Exclude shared library initialization/finalization symbols. 19948 extract_expsyms_cmds= 19949 # Just being paranoid about ensuring that cc_basename is set. 19950 for cc_temp in $compiler""; do 19951 case $cc_temp in 19952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19954 \-*) ;; 19955 *) break;; 19956 esac 19957done 19958cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19959 19960 case $host_os in 19961 cygwin* | mingw* | pw32*) 19962 # FIXME: the MSVC++ port hasn't been tested in a loooong time 19963 # When not using gcc, we currently assume that we are using 19964 # Microsoft Visual C++. 19965 if test "$GCC" != yes; then 19966 with_gnu_ld=no 19967 fi 19968 ;; 19969 interix*) 19970 # we just hope/assume this is gcc and not c89 (= MSVC++) 19971 with_gnu_ld=yes 19972 ;; 19973 openbsd*) 19974 with_gnu_ld=no 19975 ;; 19976 esac 19977 19978 ld_shlibs_GCJ=yes 19979 if test "$with_gnu_ld" = yes; then 19980 # If archive_cmds runs LD, not CC, wlarc should be empty 19981 wlarc='${wl}' 19982 19983 # Set some defaults for GNU ld with shared library support. These 19984 # are reset later if shared libraries are not supported. Putting them 19985 # here allows them to be overridden if necessary. 19986 runpath_var=LD_RUN_PATH 19987 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 19988 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 19989 # ancient GNU ld didn't support --whole-archive et. al. 19990 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 19991 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 19992 else 19993 whole_archive_flag_spec_GCJ= 19994 fi 19995 supports_anon_versioning=no 19996 case `$LD -v 2>/dev/null` in 19997 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 19998 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 19999 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 20000 *\ 2.11.*) ;; # other 2.11 versions 20001 *) supports_anon_versioning=yes ;; 20002 esac 20003 20004 # See if GNU ld supports shared libraries. 20005 case $host_os in 20006 aix[3-9]*) 20007 # On AIX/PPC, the GNU linker is very broken 20008 if test "$host_cpu" != ia64; then 20009 ld_shlibs_GCJ=no 20010 cat <<EOF 1>&2 20011 20012*** Warning: the GNU linker, at least up to release 2.9.1, is reported 20013*** to be unable to reliably create shared libraries on AIX. 20014*** Therefore, libtool is disabling shared libraries support. If you 20015*** really care for shared libraries, you may want to modify your PATH 20016*** so that a non-GNU linker is found, and then restart. 20017 20018EOF 20019 fi 20020 ;; 20021 20022 amigaos*) 20023 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)' 20024 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20025 hardcode_minus_L_GCJ=yes 20026 20027 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 20028 # that the semantics of dynamic libraries on AmigaOS, at least up 20029 # to version 4, is to share data among multiple programs linked 20030 # with the same dynamic library. Since this doesn't match the 20031 # behavior of shared libraries on other platforms, we can't use 20032 # them. 20033 ld_shlibs_GCJ=no 20034 ;; 20035 20036 beos*) 20037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 20038 allow_undefined_flag_GCJ=unsupported 20039 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 20040 # support --undefined. This deserves some investigation. FIXME 20041 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20042 else 20043 ld_shlibs_GCJ=no 20044 fi 20045 ;; 20046 20047 cygwin* | mingw* | pw32*) 20048 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 20049 # as there is no search path for DLLs. 20050 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20051 allow_undefined_flag_GCJ=unsupported 20052 always_export_symbols_GCJ=no 20053 enable_shared_with_static_runtimes_GCJ=yes 20054 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 20055 20056 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 20057 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 20058 # If the export-symbols file already is a .def file (1st line 20059 # is EXPORTS), use it as is; otherwise, prepend... 20060 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 20061 cp $export_symbols $output_objdir/$soname.def; 20062 else 20063 echo EXPORTS > $output_objdir/$soname.def; 20064 cat $export_symbols >> $output_objdir/$soname.def; 20065 fi~ 20066 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 20067 else 20068 ld_shlibs_GCJ=no 20069 fi 20070 ;; 20071 20072 interix[3-9]*) 20073 hardcode_direct_GCJ=no 20074 hardcode_shlibpath_var_GCJ=no 20075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 20076 export_dynamic_flag_spec_GCJ='${wl}-E' 20077 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 20078 # Instead, shared libraries are loaded at an image base (0x10000000 by 20079 # default) and relocated if they conflict, which is a slow very memory 20080 # consuming and fragmenting process. To avoid this, we pick a random, 20081 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 20082 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 20083 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' 20084 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' 20085 ;; 20086 20087 gnu* | linux* | k*bsd*-gnu) 20088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 20089 tmp_addflag= 20090 case $cc_basename,$host_cpu in 20091 pgcc*) # Portland Group C compiler 20092 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' 20093 tmp_addflag=' $pic_flag' 20094 ;; 20095 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 20096 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' 20097 tmp_addflag=' $pic_flag -Mnomain' ;; 20098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 20099 tmp_addflag=' -i_dynamic' ;; 20100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 20101 tmp_addflag=' -i_dynamic -nofor_main' ;; 20102 ifc* | ifort*) # Intel Fortran compiler 20103 tmp_addflag=' -nofor_main' ;; 20104 esac 20105 case `$CC -V 2>&1 | sed 5q` in 20106 *Sun\ C*) # Sun C 5.9 20107 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 20108 tmp_sharedflag='-G' ;; 20109 *Sun\ F*) # Sun Fortran 8.3 20110 tmp_sharedflag='-G' ;; 20111 *) 20112 tmp_sharedflag='-shared' ;; 20113 esac 20114 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20115 20116 if test $supports_anon_versioning = yes; then 20117 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 20118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20119 $echo "local: *; };" >> $output_objdir/$libname.ver~ 20120 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 20121 fi 20122 link_all_deplibs_GCJ=no 20123 else 20124 ld_shlibs_GCJ=no 20125 fi 20126 ;; 20127 20128 netbsd* | netbsdelf*-gnu) 20129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 20130 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 20131 wlarc= 20132 else 20133 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20134 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 20135 fi 20136 ;; 20137 20138 solaris*) 20139 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 20140 ld_shlibs_GCJ=no 20141 cat <<EOF 1>&2 20142 20143*** Warning: The releases 2.8.* of the GNU linker cannot reliably 20144*** create shared libraries on Solaris systems. Therefore, libtool 20145*** is disabling shared libraries support. We urge you to upgrade GNU 20146*** binutils to release 2.9.1 or newer. Another option is to modify 20147*** your PATH or compiler configuration so that the native linker is 20148*** used, and then restart. 20149 20150EOF 20151 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 20152 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20153 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 20154 else 20155 ld_shlibs_GCJ=no 20156 fi 20157 ;; 20158 20159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 20160 case `$LD -v 2>&1` in 20161 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 20162 ld_shlibs_GCJ=no 20163 cat <<_LT_EOF 1>&2 20164 20165*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 20166*** reliably create shared libraries on SCO systems. Therefore, libtool 20167*** is disabling shared libraries support. We urge you to upgrade GNU 20168*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 20169*** your PATH or compiler configuration so that the native linker is 20170*** used, and then restart. 20171 20172_LT_EOF 20173 ;; 20174 *) 20175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 20176 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 20177 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 20178 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 20179 else 20180 ld_shlibs_GCJ=no 20181 fi 20182 ;; 20183 esac 20184 ;; 20185 20186 sunos4*) 20187 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20188 wlarc= 20189 hardcode_direct_GCJ=yes 20190 hardcode_shlibpath_var_GCJ=no 20191 ;; 20192 20193 *) 20194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 20195 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20196 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 20197 else 20198 ld_shlibs_GCJ=no 20199 fi 20200 ;; 20201 esac 20202 20203 if test "$ld_shlibs_GCJ" = no; then 20204 runpath_var= 20205 hardcode_libdir_flag_spec_GCJ= 20206 export_dynamic_flag_spec_GCJ= 20207 whole_archive_flag_spec_GCJ= 20208 fi 20209 else 20210 # PORTME fill in a description of your system's linker (not GNU ld) 20211 case $host_os in 20212 aix3*) 20213 allow_undefined_flag_GCJ=unsupported 20214 always_export_symbols_GCJ=yes 20215 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' 20216 # Note: this linker hardcodes the directories in LIBPATH if there 20217 # are no directories specified by -L. 20218 hardcode_minus_L_GCJ=yes 20219 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 20220 # Neither direct hardcoding nor static linking is supported with a 20221 # broken collect2. 20222 hardcode_direct_GCJ=unsupported 20223 fi 20224 ;; 20225 20226 aix[4-9]*) 20227 if test "$host_cpu" = ia64; then 20228 # On IA64, the linker does run time linking by default, so we don't 20229 # have to do anything special. 20230 aix_use_runtimelinking=no 20231 exp_sym_flag='-Bexport' 20232 no_entry_flag="" 20233 else 20234 # If we're using GNU nm, then we don't want the "-C" option. 20235 # -C means demangle to AIX nm, but means don't demangle with GNU nm 20236 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 20237 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' 20238 else 20239 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' 20240 fi 20241 aix_use_runtimelinking=no 20242 20243 # Test if we are trying to use run time linking or normal 20244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20245 # need to do runtime linking. 20246 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20247 for ld_flag in $LDFLAGS; do 20248 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 20249 aix_use_runtimelinking=yes 20250 break 20251 fi 20252 done 20253 ;; 20254 esac 20255 20256 exp_sym_flag='-bexport' 20257 no_entry_flag='-bnoentry' 20258 fi 20259 20260 # When large executables or shared objects are built, AIX ld can 20261 # have problems creating the table of contents. If linking a library 20262 # or program results in "error TOC overflow" add -mminimal-toc to 20263 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20264 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20265 20266 archive_cmds_GCJ='' 20267 hardcode_direct_GCJ=yes 20268 hardcode_libdir_separator_GCJ=':' 20269 link_all_deplibs_GCJ=yes 20270 20271 if test "$GCC" = yes; then 20272 case $host_os in aix4.[012]|aix4.[012].*) 20273 # We only want to do this on AIX 4.2 and lower, the check 20274 # below for broken collect2 doesn't work under 4.3+ 20275 collect2name=`${CC} -print-prog-name=collect2` 20276 if test -f "$collect2name" && \ 20277 strings "$collect2name" | grep resolve_lib_name >/dev/null 20278 then 20279 # We have reworked collect2 20280 : 20281 else 20282 # We have old collect2 20283 hardcode_direct_GCJ=unsupported 20284 # It fails to find uninstalled libraries when the uninstalled 20285 # path is not listed in the libpath. Setting hardcode_minus_L 20286 # to unsupported forces relinking 20287 hardcode_minus_L_GCJ=yes 20288 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20289 hardcode_libdir_separator_GCJ= 20290 fi 20291 ;; 20292 esac 20293 shared_flag='-shared' 20294 if test "$aix_use_runtimelinking" = yes; then 20295 shared_flag="$shared_flag "'${wl}-G' 20296 fi 20297 else 20298 # not using gcc 20299 if test "$host_cpu" = ia64; then 20300 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20301 # chokes on -Wl,-G. The following line is correct: 20302 shared_flag='-G' 20303 else 20304 if test "$aix_use_runtimelinking" = yes; then 20305 shared_flag='${wl}-G' 20306 else 20307 shared_flag='${wl}-bM:SRE' 20308 fi 20309 fi 20310 fi 20311 20312 # It seems that -bexpall does not export symbols beginning with 20313 # underscore (_), so it is better to generate a list of symbols to export. 20314 always_export_symbols_GCJ=yes 20315 if test "$aix_use_runtimelinking" = yes; then 20316 # Warning - without using the other runtime loading flags (-brtl), 20317 # -berok will link without error, but may produce a broken library. 20318 allow_undefined_flag_GCJ='-berok' 20319 # Determine the default libpath from the value encoded in an empty executable. 20320 cat >conftest.$ac_ext <<_ACEOF 20321/* confdefs.h. */ 20322_ACEOF 20323cat confdefs.h >>conftest.$ac_ext 20324cat >>conftest.$ac_ext <<_ACEOF 20325/* end confdefs.h. */ 20326 20327int 20328main () 20329{ 20330 20331 ; 20332 return 0; 20333} 20334_ACEOF 20335rm -f conftest.$ac_objext conftest$ac_exeext 20336if { (ac_try="$ac_link" 20337case "(($ac_try" in 20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20339 *) ac_try_echo=$ac_try;; 20340esac 20341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20342 (eval "$ac_link") 2>conftest.er1 20343 ac_status=$? 20344 grep -v '^ *+' conftest.er1 >conftest.err 20345 rm -f conftest.er1 20346 cat conftest.err >&5 20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20348 (exit $ac_status); } && { 20349 test -z "$ac_c_werror_flag" || 20350 test ! -s conftest.err 20351 } && test -s conftest$ac_exeext && 20352 $as_test_x conftest$ac_exeext; then 20353 20354lt_aix_libpath_sed=' 20355 /Import File Strings/,/^$/ { 20356 /^0/ { 20357 s/^0 *\(.*\)$/\1/ 20358 p 20359 } 20360 }' 20361aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20362# Check for a 64-bit object if we didn't find anything. 20363if test -z "$aix_libpath"; then 20364 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20365fi 20366else 20367 echo "$as_me: failed program was:" >&5 20368sed 's/^/| /' conftest.$ac_ext >&5 20369 20370 20371fi 20372 20373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20374 conftest$ac_exeext conftest.$ac_ext 20375if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 20376 20377 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 20378 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" 20379 else 20380 if test "$host_cpu" = ia64; then 20381 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 20382 allow_undefined_flag_GCJ="-z nodefs" 20383 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" 20384 else 20385 # Determine the default libpath from the value encoded in an empty executable. 20386 cat >conftest.$ac_ext <<_ACEOF 20387/* confdefs.h. */ 20388_ACEOF 20389cat confdefs.h >>conftest.$ac_ext 20390cat >>conftest.$ac_ext <<_ACEOF 20391/* end confdefs.h. */ 20392 20393int 20394main () 20395{ 20396 20397 ; 20398 return 0; 20399} 20400_ACEOF 20401rm -f conftest.$ac_objext conftest$ac_exeext 20402if { (ac_try="$ac_link" 20403case "(($ac_try" in 20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20405 *) ac_try_echo=$ac_try;; 20406esac 20407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20408 (eval "$ac_link") 2>conftest.er1 20409 ac_status=$? 20410 grep -v '^ *+' conftest.er1 >conftest.err 20411 rm -f conftest.er1 20412 cat conftest.err >&5 20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20414 (exit $ac_status); } && { 20415 test -z "$ac_c_werror_flag" || 20416 test ! -s conftest.err 20417 } && test -s conftest$ac_exeext && 20418 $as_test_x conftest$ac_exeext; then 20419 20420lt_aix_libpath_sed=' 20421 /Import File Strings/,/^$/ { 20422 /^0/ { 20423 s/^0 *\(.*\)$/\1/ 20424 p 20425 } 20426 }' 20427aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20428# Check for a 64-bit object if we didn't find anything. 20429if test -z "$aix_libpath"; then 20430 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20431fi 20432else 20433 echo "$as_me: failed program was:" >&5 20434sed 's/^/| /' conftest.$ac_ext >&5 20435 20436 20437fi 20438 20439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20440 conftest$ac_exeext conftest.$ac_ext 20441if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 20442 20443 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 20444 # Warning - without using the other run time loading flags, 20445 # -berok will link without error, but may produce a broken library. 20446 no_undefined_flag_GCJ=' ${wl}-bernotok' 20447 allow_undefined_flag_GCJ=' ${wl}-berok' 20448 # Exported symbols can be pulled into shared objects from archives 20449 whole_archive_flag_spec_GCJ='$convenience' 20450 archive_cmds_need_lc_GCJ=yes 20451 # This is similar to how AIX traditionally builds its shared libraries. 20452 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' 20453 fi 20454 fi 20455 ;; 20456 20457 amigaos*) 20458 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)' 20459 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20460 hardcode_minus_L_GCJ=yes 20461 # see comment about different semantics on the GNU ld section 20462 ld_shlibs_GCJ=no 20463 ;; 20464 20465 bsdi[45]*) 20466 export_dynamic_flag_spec_GCJ=-rdynamic 20467 ;; 20468 20469 cygwin* | mingw* | pw32*) 20470 # When not using gcc, we currently assume that we are using 20471 # Microsoft Visual C++. 20472 # hardcode_libdir_flag_spec is actually meaningless, as there is 20473 # no search path for DLLs. 20474 hardcode_libdir_flag_spec_GCJ=' ' 20475 allow_undefined_flag_GCJ=unsupported 20476 # Tell ltmain to make .lib files, not .a files. 20477 libext=lib 20478 # Tell ltmain to make .dll files, not .so files. 20479 shrext_cmds=".dll" 20480 # FIXME: Setting linknames here is a bad hack. 20481 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 20482 # The linker will automatically build a .lib file if we build a DLL. 20483 old_archive_From_new_cmds_GCJ='true' 20484 # FIXME: Should let the user specify the lib program. 20485 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 20486 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 20487 enable_shared_with_static_runtimes_GCJ=yes 20488 ;; 20489 20490 darwin* | rhapsody*) 20491 case $host_os in 20492 rhapsody* | darwin1.[012]) 20493 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 20494 ;; 20495 *) # Darwin 1.3 on 20496 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 20497 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 20498 else 20499 case ${MACOSX_DEPLOYMENT_TARGET} in 20500 10.[012]) 20501 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 20502 ;; 20503 10.*) 20504 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 20505 ;; 20506 esac 20507 fi 20508 ;; 20509 esac 20510 archive_cmds_need_lc_GCJ=no 20511 hardcode_direct_GCJ=no 20512 hardcode_automatic_GCJ=yes 20513 hardcode_shlibpath_var_GCJ=unsupported 20514 whole_archive_flag_spec_GCJ='' 20515 link_all_deplibs_GCJ=yes 20516 if test "$GCC" = yes ; then 20517 output_verbose_link_cmd='echo' 20518 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 20519 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 20520 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 20521 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 20522 else 20523 case $cc_basename in 20524 xlc*) 20525 output_verbose_link_cmd='echo' 20526 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 20527 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 20528 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 20529 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 20530 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}' 20531 ;; 20532 *) 20533 ld_shlibs_GCJ=no 20534 ;; 20535 esac 20536 fi 20537 ;; 20538 20539 dgux*) 20540 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20541 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20542 hardcode_shlibpath_var_GCJ=no 20543 ;; 20544 20545 freebsd1*) 20546 ld_shlibs_GCJ=no 20547 ;; 20548 20549 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 20550 # support. Future versions do this automatically, but an explicit c++rt0.o 20551 # does not break anything, and helps significantly (at the cost of a little 20552 # extra space). 20553 freebsd2.2*) 20554 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 20555 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20556 hardcode_direct_GCJ=yes 20557 hardcode_shlibpath_var_GCJ=no 20558 ;; 20559 20560 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 20561 freebsd2*) 20562 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20563 hardcode_direct_GCJ=yes 20564 hardcode_minus_L_GCJ=yes 20565 hardcode_shlibpath_var_GCJ=no 20566 ;; 20567 20568 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 20569 freebsd* | dragonfly*) 20570 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 20571 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20572 hardcode_direct_GCJ=yes 20573 hardcode_shlibpath_var_GCJ=no 20574 ;; 20575 20576 hpux9*) 20577 if test "$GCC" = yes; then 20578 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' 20579 else 20580 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' 20581 fi 20582 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 20583 hardcode_libdir_separator_GCJ=: 20584 hardcode_direct_GCJ=yes 20585 20586 # hardcode_minus_L: Not really in the search PATH, 20587 # but as the default location of the library. 20588 hardcode_minus_L_GCJ=yes 20589 export_dynamic_flag_spec_GCJ='${wl}-E' 20590 ;; 20591 20592 hpux10*) 20593 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 20594 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20595 else 20596 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20597 fi 20598 if test "$with_gnu_ld" = no; then 20599 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 20600 hardcode_libdir_separator_GCJ=: 20601 20602 hardcode_direct_GCJ=yes 20603 export_dynamic_flag_spec_GCJ='${wl}-E' 20604 20605 # hardcode_minus_L: Not really in the search PATH, 20606 # but as the default location of the library. 20607 hardcode_minus_L_GCJ=yes 20608 fi 20609 ;; 20610 20611 hpux11*) 20612 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 20613 case $host_cpu in 20614 hppa*64*) 20615 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20616 ;; 20617 ia64*) 20618 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20619 ;; 20620 *) 20621 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20622 ;; 20623 esac 20624 else 20625 case $host_cpu in 20626 hppa*64*) 20627 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20628 ;; 20629 ia64*) 20630 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20631 ;; 20632 *) 20633 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20634 ;; 20635 esac 20636 fi 20637 if test "$with_gnu_ld" = no; then 20638 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 20639 hardcode_libdir_separator_GCJ=: 20640 20641 case $host_cpu in 20642 hppa*64*|ia64*) 20643 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 20644 hardcode_direct_GCJ=no 20645 hardcode_shlibpath_var_GCJ=no 20646 ;; 20647 *) 20648 hardcode_direct_GCJ=yes 20649 export_dynamic_flag_spec_GCJ='${wl}-E' 20650 20651 # hardcode_minus_L: Not really in the search PATH, 20652 # but as the default location of the library. 20653 hardcode_minus_L_GCJ=yes 20654 ;; 20655 esac 20656 fi 20657 ;; 20658 20659 irix5* | irix6* | nonstopux*) 20660 if test "$GCC" = yes; then 20661 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' 20662 else 20663 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' 20664 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 20665 fi 20666 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 20667 hardcode_libdir_separator_GCJ=: 20668 link_all_deplibs_GCJ=yes 20669 ;; 20670 20671 netbsd* | netbsdelf*-gnu) 20672 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 20673 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 20674 else 20675 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 20676 fi 20677 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20678 hardcode_direct_GCJ=yes 20679 hardcode_shlibpath_var_GCJ=no 20680 ;; 20681 20682 newsos6) 20683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20684 hardcode_direct_GCJ=yes 20685 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 20686 hardcode_libdir_separator_GCJ=: 20687 hardcode_shlibpath_var_GCJ=no 20688 ;; 20689 20690 openbsd*) 20691 if test -f /usr/libexec/ld.so; then 20692 hardcode_direct_GCJ=yes 20693 hardcode_shlibpath_var_GCJ=no 20694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20695 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20696 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 20697 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 20698 export_dynamic_flag_spec_GCJ='${wl}-E' 20699 else 20700 case $host_os in 20701 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 20702 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20703 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20704 ;; 20705 *) 20706 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20707 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 20708 ;; 20709 esac 20710 fi 20711 else 20712 ld_shlibs_GCJ=no 20713 fi 20714 ;; 20715 20716 os2*) 20717 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20718 hardcode_minus_L_GCJ=yes 20719 allow_undefined_flag_GCJ=unsupported 20720 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' 20721 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 20722 ;; 20723 20724 osf3*) 20725 if test "$GCC" = yes; then 20726 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 20727 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' 20728 else 20729 allow_undefined_flag_GCJ=' -expect_unresolved \*' 20730 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' 20731 fi 20732 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 20733 hardcode_libdir_separator_GCJ=: 20734 ;; 20735 20736 osf4* | osf5*) # as osf3* with the addition of -msym flag 20737 if test "$GCC" = yes; then 20738 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 20739 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' 20740 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 20741 else 20742 allow_undefined_flag_GCJ=' -expect_unresolved \*' 20743 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' 20744 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~ 20745 $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' 20746 20747 # Both c and cxx compiler support -rpath directly 20748 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 20749 fi 20750 hardcode_libdir_separator_GCJ=: 20751 ;; 20752 20753 solaris*) 20754 no_undefined_flag_GCJ=' -z text' 20755 if test "$GCC" = yes; then 20756 wlarc='${wl}' 20757 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20758 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 20759 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 20760 else 20761 wlarc='' 20762 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 20763 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 20764 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 20765 fi 20766 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20767 hardcode_shlibpath_var_GCJ=no 20768 case $host_os in 20769 solaris2.[0-5] | solaris2.[0-5].*) ;; 20770 *) 20771 # The compiler driver will combine and reorder linker options, 20772 # but understands `-z linker_flag'. GCC discards it without `$wl', 20773 # but is careful enough not to reorder. 20774 # Supported since Solaris 2.6 (maybe 2.5.1?) 20775 if test "$GCC" = yes; then 20776 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 20777 else 20778 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 20779 fi 20780 ;; 20781 esac 20782 link_all_deplibs_GCJ=yes 20783 ;; 20784 20785 sunos4*) 20786 if test "x$host_vendor" = xsequent; then 20787 # Use $CC to link under sequent, because it throws in some extra .o 20788 # files that make .init and .fini sections work. 20789 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20790 else 20791 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20792 fi 20793 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20794 hardcode_direct_GCJ=yes 20795 hardcode_minus_L_GCJ=yes 20796 hardcode_shlibpath_var_GCJ=no 20797 ;; 20798 20799 sysv4) 20800 case $host_vendor in 20801 sni) 20802 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20803 hardcode_direct_GCJ=yes # is this really true??? 20804 ;; 20805 siemens) 20806 ## LD is ld it makes a PLAMLIB 20807 ## CC just makes a GrossModule. 20808 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 20809 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 20810 hardcode_direct_GCJ=no 20811 ;; 20812 motorola) 20813 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20814 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 20815 ;; 20816 esac 20817 runpath_var='LD_RUN_PATH' 20818 hardcode_shlibpath_var_GCJ=no 20819 ;; 20820 20821 sysv4.3*) 20822 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20823 hardcode_shlibpath_var_GCJ=no 20824 export_dynamic_flag_spec_GCJ='-Bexport' 20825 ;; 20826 20827 sysv4*MP*) 20828 if test -d /usr/nec; then 20829 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20830 hardcode_shlibpath_var_GCJ=no 20831 runpath_var=LD_RUN_PATH 20832 hardcode_runpath_var=yes 20833 ld_shlibs_GCJ=yes 20834 fi 20835 ;; 20836 20837 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20838 no_undefined_flag_GCJ='${wl}-z,text' 20839 archive_cmds_need_lc_GCJ=no 20840 hardcode_shlibpath_var_GCJ=no 20841 runpath_var='LD_RUN_PATH' 20842 20843 if test "$GCC" = yes; then 20844 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20845 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20846 else 20847 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20848 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20849 fi 20850 ;; 20851 20852 sysv5* | sco3.2v5* | sco5v6*) 20853 # Note: We can NOT use -z defs as we might desire, because we do not 20854 # link with -lc, and that would cause any symbols used from libc to 20855 # always be unresolved, which means just about no library would 20856 # ever link correctly. If we're not using GNU ld we use -z text 20857 # though, which does catch some bad symbols but isn't as heavy-handed 20858 # as -z defs. 20859 no_undefined_flag_GCJ='${wl}-z,text' 20860 allow_undefined_flag_GCJ='${wl}-z,nodefs' 20861 archive_cmds_need_lc_GCJ=no 20862 hardcode_shlibpath_var_GCJ=no 20863 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 20864 hardcode_libdir_separator_GCJ=':' 20865 link_all_deplibs_GCJ=yes 20866 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 20867 runpath_var='LD_RUN_PATH' 20868 20869 if test "$GCC" = yes; then 20870 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 20871 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 20872 else 20873 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 20874 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 20875 fi 20876 ;; 20877 20878 uts4*) 20879 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20880 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20881 hardcode_shlibpath_var_GCJ=no 20882 ;; 20883 20884 *) 20885 ld_shlibs_GCJ=no 20886 ;; 20887 esac 20888 fi 20889 20890{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 20891echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 20892test "$ld_shlibs_GCJ" = no && can_build_shared=no 20893 20894# 20895# Do we need to explicitly link libc? 20896# 20897case "x$archive_cmds_need_lc_GCJ" in 20898x|xyes) 20899 # Assume -lc should be added 20900 archive_cmds_need_lc_GCJ=yes 20901 20902 if test "$enable_shared" = yes && test "$GCC" = yes; then 20903 case $archive_cmds_GCJ in 20904 *'~'*) 20905 # FIXME: we may have to deal with multi-command sequences. 20906 ;; 20907 '$CC '*) 20908 # Test whether the compiler implicitly links with -lc since on some 20909 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20910 # to ld, don't add -lc before -lgcc. 20911 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 20912echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 20913 $rm conftest* 20914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20915 20916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20917 (eval $ac_compile) 2>&5 20918 ac_status=$? 20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20920 (exit $ac_status); } 2>conftest.err; then 20921 soname=conftest 20922 lib=conftest 20923 libobjs=conftest.$ac_objext 20924 deplibs= 20925 wl=$lt_prog_compiler_wl_GCJ 20926 pic_flag=$lt_prog_compiler_pic_GCJ 20927 compiler_flags=-v 20928 linker_flags=-v 20929 verstring= 20930 output_objdir=. 20931 libname=conftest 20932 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 20933 allow_undefined_flag_GCJ= 20934 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 20935 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 20936 ac_status=$? 20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20938 (exit $ac_status); } 20939 then 20940 archive_cmds_need_lc_GCJ=no 20941 else 20942 archive_cmds_need_lc_GCJ=yes 20943 fi 20944 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 20945 else 20946 cat conftest.err 1>&5 20947 fi 20948 $rm conftest* 20949 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 20950echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 20951 ;; 20952 esac 20953 fi 20954 ;; 20955esac 20956 20957{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 20958echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 20959library_names_spec= 20960libname_spec='lib$name' 20961soname_spec= 20962shrext_cmds=".so" 20963postinstall_cmds= 20964postuninstall_cmds= 20965finish_cmds= 20966finish_eval= 20967shlibpath_var= 20968shlibpath_overrides_runpath=unknown 20969version_type=none 20970dynamic_linker="$host_os ld.so" 20971sys_lib_dlsearch_path_spec="/lib /usr/lib" 20972 20973need_lib_prefix=unknown 20974hardcode_into_libs=no 20975 20976# when you set need_version to no, make sure it does not cause -set_version 20977# flags to be left without arguments 20978need_version=unknown 20979 20980case $host_os in 20981aix3*) 20982 version_type=linux 20983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 20984 shlibpath_var=LIBPATH 20985 20986 # AIX 3 has no versioning support, so we append a major version to the name. 20987 soname_spec='${libname}${release}${shared_ext}$major' 20988 ;; 20989 20990aix[4-9]*) 20991 version_type=linux 20992 need_lib_prefix=no 20993 need_version=no 20994 hardcode_into_libs=yes 20995 if test "$host_cpu" = ia64; then 20996 # AIX 5 supports IA64 20997 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 20998 shlibpath_var=LD_LIBRARY_PATH 20999 else 21000 # With GCC up to 2.95.x, collect2 would create an import file 21001 # for dependence libraries. The import file would start with 21002 # the line `#! .'. This would cause the generated library to 21003 # depend on `.', always an invalid library. This was fixed in 21004 # development snapshots of GCC prior to 3.0. 21005 case $host_os in 21006 aix4 | aix4.[01] | aix4.[01].*) 21007 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21008 echo ' yes ' 21009 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 21010 : 21011 else 21012 can_build_shared=no 21013 fi 21014 ;; 21015 esac 21016 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 21017 # soname into executable. Probably we can add versioning support to 21018 # collect2, so additional links can be useful in future. 21019 if test "$aix_use_runtimelinking" = yes; then 21020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21021 # instead of lib<name>.a to let people know that these are not 21022 # typical AIX shared libraries. 21023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21024 else 21025 # We preserve .a as extension for shared libraries through AIX4.2 21026 # and later when we are not doing run time linking. 21027 library_names_spec='${libname}${release}.a $libname.a' 21028 soname_spec='${libname}${release}${shared_ext}$major' 21029 fi 21030 shlibpath_var=LIBPATH 21031 fi 21032 ;; 21033 21034amigaos*) 21035 library_names_spec='$libname.ixlibrary $libname.a' 21036 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21037 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' 21038 ;; 21039 21040beos*) 21041 library_names_spec='${libname}${shared_ext}' 21042 dynamic_linker="$host_os ld.so" 21043 shlibpath_var=LIBRARY_PATH 21044 ;; 21045 21046bsdi[45]*) 21047 version_type=linux 21048 need_version=no 21049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21050 soname_spec='${libname}${release}${shared_ext}$major' 21051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21052 shlibpath_var=LD_LIBRARY_PATH 21053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21055 # the default ld.so.conf also contains /usr/contrib/lib and 21056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21057 # libtool to hard-code these into programs 21058 ;; 21059 21060cygwin* | mingw* | pw32*) 21061 version_type=windows 21062 shrext_cmds=".dll" 21063 need_version=no 21064 need_lib_prefix=no 21065 21066 case $GCC,$host_os in 21067 yes,cygwin* | yes,mingw* | yes,pw32*) 21068 library_names_spec='$libname.dll.a' 21069 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21070 postinstall_cmds='base_file=`basename \${file}`~ 21071 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 21072 dldir=$destdir/`dirname \$dlpath`~ 21073 test -d \$dldir || mkdir -p \$dldir~ 21074 $install_prog $dir/$dlname \$dldir/$dlname~ 21075 chmod a+x \$dldir/$dlname' 21076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21077 dlpath=$dir/\$dldll~ 21078 $rm \$dlpath' 21079 shlibpath_overrides_runpath=yes 21080 21081 case $host_os in 21082 cygwin*) 21083 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21084 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21085 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 21086 ;; 21087 mingw*) 21088 # MinGW DLLs use traditional 'lib' prefix 21089 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 21091 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 21092 # It is most probably a Windows format PATH printed by 21093 # mingw gcc, but we are running on Cygwin. Gcc prints its search 21094 # path with ; separators, and with drive letters. We can handle the 21095 # drive letters (cygwin fileutils understands them), so leave them, 21096 # especially as we might pass files found there to a mingw objdump, 21097 # which wouldn't understand a cygwinified path. Ahh. 21098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21099 else 21100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21101 fi 21102 ;; 21103 pw32*) 21104 # pw32 DLLs use 'pw' prefix rather than 'lib' 21105 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21106 ;; 21107 esac 21108 ;; 21109 21110 *) 21111 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 21112 ;; 21113 esac 21114 dynamic_linker='Win32 ld.exe' 21115 # FIXME: first we should search . and the directory the executable is in 21116 shlibpath_var=PATH 21117 ;; 21118 21119darwin* | rhapsody*) 21120 dynamic_linker="$host_os dyld" 21121 version_type=darwin 21122 need_lib_prefix=no 21123 need_version=no 21124 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 21125 soname_spec='${libname}${release}${major}$shared_ext' 21126 shlibpath_overrides_runpath=yes 21127 shlibpath_var=DYLD_LIBRARY_PATH 21128 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21129 21130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21131 ;; 21132 21133dgux*) 21134 version_type=linux 21135 need_lib_prefix=no 21136 need_version=no 21137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 21138 soname_spec='${libname}${release}${shared_ext}$major' 21139 shlibpath_var=LD_LIBRARY_PATH 21140 ;; 21141 21142freebsd1*) 21143 dynamic_linker=no 21144 ;; 21145 21146freebsd* | dragonfly*) 21147 # DragonFly does not have aout. When/if they implement a new 21148 # versioning mechanism, adjust this. 21149 if test -x /usr/bin/objformat; then 21150 objformat=`/usr/bin/objformat` 21151 else 21152 case $host_os in 21153 freebsd[123]*) objformat=aout ;; 21154 *) objformat=elf ;; 21155 esac 21156 fi 21157 version_type=freebsd-$objformat 21158 case $version_type in 21159 freebsd-elf*) 21160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21161 need_version=no 21162 need_lib_prefix=no 21163 ;; 21164 freebsd-*) 21165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 21166 need_version=yes 21167 ;; 21168 esac 21169 shlibpath_var=LD_LIBRARY_PATH 21170 case $host_os in 21171 freebsd2*) 21172 shlibpath_overrides_runpath=yes 21173 ;; 21174 freebsd3.[01]* | freebsdelf3.[01]*) 21175 shlibpath_overrides_runpath=yes 21176 hardcode_into_libs=yes 21177 ;; 21178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21180 shlibpath_overrides_runpath=no 21181 hardcode_into_libs=yes 21182 ;; 21183 *) # from 4.6 on, and DragonFly 21184 shlibpath_overrides_runpath=yes 21185 hardcode_into_libs=yes 21186 ;; 21187 esac 21188 ;; 21189 21190gnu*) 21191 version_type=linux 21192 need_lib_prefix=no 21193 need_version=no 21194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 21195 soname_spec='${libname}${release}${shared_ext}$major' 21196 shlibpath_var=LD_LIBRARY_PATH 21197 hardcode_into_libs=yes 21198 ;; 21199 21200hpux9* | hpux10* | hpux11*) 21201 # Give a soname corresponding to the major version so that dld.sl refuses to 21202 # link against other versions. 21203 version_type=sunos 21204 need_lib_prefix=no 21205 need_version=no 21206 case $host_cpu in 21207 ia64*) 21208 shrext_cmds='.so' 21209 hardcode_into_libs=yes 21210 dynamic_linker="$host_os dld.so" 21211 shlibpath_var=LD_LIBRARY_PATH 21212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21214 soname_spec='${libname}${release}${shared_ext}$major' 21215 if test "X$HPUX_IA64_MODE" = X32; then 21216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21217 else 21218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21219 fi 21220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21221 ;; 21222 hppa*64*) 21223 shrext_cmds='.sl' 21224 hardcode_into_libs=yes 21225 dynamic_linker="$host_os dld.sl" 21226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21229 soname_spec='${libname}${release}${shared_ext}$major' 21230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21232 ;; 21233 *) 21234 shrext_cmds='.sl' 21235 dynamic_linker="$host_os dld.sl" 21236 shlibpath_var=SHLIB_PATH 21237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21239 soname_spec='${libname}${release}${shared_ext}$major' 21240 ;; 21241 esac 21242 # HP-UX runs *really* slowly unless shared libraries are mode 555. 21243 postinstall_cmds='chmod 555 $lib' 21244 ;; 21245 21246interix[3-9]*) 21247 version_type=linux 21248 need_lib_prefix=no 21249 need_version=no 21250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21251 soname_spec='${libname}${release}${shared_ext}$major' 21252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21253 shlibpath_var=LD_LIBRARY_PATH 21254 shlibpath_overrides_runpath=no 21255 hardcode_into_libs=yes 21256 ;; 21257 21258irix5* | irix6* | nonstopux*) 21259 case $host_os in 21260 nonstopux*) version_type=nonstopux ;; 21261 *) 21262 if test "$lt_cv_prog_gnu_ld" = yes; then 21263 version_type=linux 21264 else 21265 version_type=irix 21266 fi ;; 21267 esac 21268 need_lib_prefix=no 21269 need_version=no 21270 soname_spec='${libname}${release}${shared_ext}$major' 21271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 21272 case $host_os in 21273 irix5* | nonstopux*) 21274 libsuff= shlibsuff= 21275 ;; 21276 *) 21277 case $LD in # libtool.m4 will add one of these switches to LD 21278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21279 libsuff= shlibsuff= libmagic=32-bit;; 21280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21281 libsuff=32 shlibsuff=N32 libmagic=N32;; 21282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21283 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21284 *) libsuff= shlibsuff= libmagic=never-match;; 21285 esac 21286 ;; 21287 esac 21288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21289 shlibpath_overrides_runpath=no 21290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 21291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 21292 hardcode_into_libs=yes 21293 ;; 21294 21295# No shared lib support for Linux oldld, aout, or coff. 21296linux*oldld* | linux*aout* | linux*coff*) 21297 dynamic_linker=no 21298 ;; 21299 21300# This must be Linux ELF. 21301linux* | k*bsd*-gnu) 21302 version_type=linux 21303 need_lib_prefix=no 21304 need_version=no 21305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21306 soname_spec='${libname}${release}${shared_ext}$major' 21307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21308 shlibpath_var=LD_LIBRARY_PATH 21309 shlibpath_overrides_runpath=no 21310 # This implies no fast_install, which is unacceptable. 21311 # Some rework will be needed to allow for fast_install 21312 # before this can be enabled. 21313 hardcode_into_libs=yes 21314 21315 # Append ld.so.conf contents to the search path 21316 if test -f /etc/ld.so.conf; then 21317 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 21318 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 21319 fi 21320 21321 # We used to test for /lib/ld.so.1 and disable shared libraries on 21322 # powerpc, because MkLinux only supported shared libraries with the 21323 # GNU dynamic linker. Since this was broken with cross compilers, 21324 # most powerpc-linux boxes support dynamic linking these days and 21325 # people can always --disable-shared, the test was removed, and we 21326 # assume the GNU/Linux dynamic linker is in use. 21327 dynamic_linker='GNU/Linux ld.so' 21328 ;; 21329 21330netbsdelf*-gnu) 21331 version_type=linux 21332 need_lib_prefix=no 21333 need_version=no 21334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21335 soname_spec='${libname}${release}${shared_ext}$major' 21336 shlibpath_var=LD_LIBRARY_PATH 21337 shlibpath_overrides_runpath=no 21338 hardcode_into_libs=yes 21339 dynamic_linker='NetBSD ld.elf_so' 21340 ;; 21341 21342netbsd*) 21343 version_type=sunos 21344 need_lib_prefix=no 21345 need_version=no 21346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 21347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21349 dynamic_linker='NetBSD (a.out) ld.so' 21350 else 21351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21352 soname_spec='${libname}${release}${shared_ext}$major' 21353 dynamic_linker='NetBSD ld.elf_so' 21354 fi 21355 shlibpath_var=LD_LIBRARY_PATH 21356 shlibpath_overrides_runpath=yes 21357 hardcode_into_libs=yes 21358 ;; 21359 21360newsos6) 21361 version_type=linux 21362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21363 shlibpath_var=LD_LIBRARY_PATH 21364 shlibpath_overrides_runpath=yes 21365 ;; 21366 21367nto-qnx*) 21368 version_type=linux 21369 need_lib_prefix=no 21370 need_version=no 21371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21372 soname_spec='${libname}${release}${shared_ext}$major' 21373 shlibpath_var=LD_LIBRARY_PATH 21374 shlibpath_overrides_runpath=yes 21375 ;; 21376 21377openbsd*) 21378 version_type=sunos 21379 sys_lib_dlsearch_path_spec="/usr/lib" 21380 need_lib_prefix=no 21381 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 21382 case $host_os in 21383 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 21384 *) need_version=no ;; 21385 esac 21386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21388 shlibpath_var=LD_LIBRARY_PATH 21389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21390 case $host_os in 21391 openbsd2.[89] | openbsd2.[89].*) 21392 shlibpath_overrides_runpath=no 21393 ;; 21394 *) 21395 shlibpath_overrides_runpath=yes 21396 ;; 21397 esac 21398 else 21399 shlibpath_overrides_runpath=yes 21400 fi 21401 ;; 21402 21403os2*) 21404 libname_spec='$name' 21405 shrext_cmds=".dll" 21406 need_lib_prefix=no 21407 library_names_spec='$libname${shared_ext} $libname.a' 21408 dynamic_linker='OS/2 ld.exe' 21409 shlibpath_var=LIBPATH 21410 ;; 21411 21412osf3* | osf4* | osf5*) 21413 version_type=osf 21414 need_lib_prefix=no 21415 need_version=no 21416 soname_spec='${libname}${release}${shared_ext}$major' 21417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21418 shlibpath_var=LD_LIBRARY_PATH 21419 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21420 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 21421 ;; 21422 21423rdos*) 21424 dynamic_linker=no 21425 ;; 21426 21427solaris*) 21428 version_type=linux 21429 need_lib_prefix=no 21430 need_version=no 21431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21432 soname_spec='${libname}${release}${shared_ext}$major' 21433 shlibpath_var=LD_LIBRARY_PATH 21434 shlibpath_overrides_runpath=yes 21435 hardcode_into_libs=yes 21436 # ldd complains unless libraries are executable 21437 postinstall_cmds='chmod +x $lib' 21438 ;; 21439 21440sunos4*) 21441 version_type=sunos 21442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21443 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21444 shlibpath_var=LD_LIBRARY_PATH 21445 shlibpath_overrides_runpath=yes 21446 if test "$with_gnu_ld" = yes; then 21447 need_lib_prefix=no 21448 fi 21449 need_version=yes 21450 ;; 21451 21452sysv4 | sysv4.3*) 21453 version_type=linux 21454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21455 soname_spec='${libname}${release}${shared_ext}$major' 21456 shlibpath_var=LD_LIBRARY_PATH 21457 case $host_vendor in 21458 sni) 21459 shlibpath_overrides_runpath=no 21460 need_lib_prefix=no 21461 export_dynamic_flag_spec='${wl}-Blargedynsym' 21462 runpath_var=LD_RUN_PATH 21463 ;; 21464 siemens) 21465 need_lib_prefix=no 21466 ;; 21467 motorola) 21468 need_lib_prefix=no 21469 need_version=no 21470 shlibpath_overrides_runpath=no 21471 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21472 ;; 21473 esac 21474 ;; 21475 21476sysv4*MP*) 21477 if test -d /usr/nec ;then 21478 version_type=linux 21479 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 21480 soname_spec='$libname${shared_ext}.$major' 21481 shlibpath_var=LD_LIBRARY_PATH 21482 fi 21483 ;; 21484 21485sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21486 version_type=freebsd-elf 21487 need_lib_prefix=no 21488 need_version=no 21489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21490 soname_spec='${libname}${release}${shared_ext}$major' 21491 shlibpath_var=LD_LIBRARY_PATH 21492 hardcode_into_libs=yes 21493 if test "$with_gnu_ld" = yes; then 21494 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21495 shlibpath_overrides_runpath=no 21496 else 21497 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21498 shlibpath_overrides_runpath=yes 21499 case $host_os in 21500 sco3.2v5*) 21501 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21502 ;; 21503 esac 21504 fi 21505 sys_lib_dlsearch_path_spec='/usr/lib' 21506 ;; 21507 21508uts4*) 21509 version_type=linux 21510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21511 soname_spec='${libname}${release}${shared_ext}$major' 21512 shlibpath_var=LD_LIBRARY_PATH 21513 ;; 21514 21515*) 21516 dynamic_linker=no 21517 ;; 21518esac 21519{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 21520echo "${ECHO_T}$dynamic_linker" >&6; } 21521test "$dynamic_linker" = no && can_build_shared=no 21522 21523if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 21524 echo $ECHO_N "(cached) $ECHO_C" >&6 21525else 21526 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 21527fi 21528 21529sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 21530if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 21531 echo $ECHO_N "(cached) $ECHO_C" >&6 21532else 21533 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 21534fi 21535 21536sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 21537 21538variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21539if test "$GCC" = yes; then 21540 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21541fi 21542 21543{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 21544echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 21545hardcode_action_GCJ= 21546if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 21547 test -n "$runpath_var_GCJ" || \ 21548 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 21549 21550 # We can hardcode non-existant directories. 21551 if test "$hardcode_direct_GCJ" != no && 21552 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21553 # have to relink, otherwise we might link with an installed library 21554 # when we should be linking with a yet-to-be-installed one 21555 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 21556 test "$hardcode_minus_L_GCJ" != no; then 21557 # Linking always hardcodes the temporary library directory. 21558 hardcode_action_GCJ=relink 21559 else 21560 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21561 hardcode_action_GCJ=immediate 21562 fi 21563else 21564 # We cannot hardcode anything, or else we can only hardcode existing 21565 # directories. 21566 hardcode_action_GCJ=unsupported 21567fi 21568{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 21569echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 21570 21571if test "$hardcode_action_GCJ" = relink; then 21572 # Fast installation is not supported 21573 enable_fast_install=no 21574elif test "$shlibpath_overrides_runpath" = yes || 21575 test "$enable_shared" = no; then 21576 # Fast installation is not necessary 21577 enable_fast_install=needless 21578fi 21579 21580 21581# The else clause should only fire when bootstrapping the 21582# libtool distribution, otherwise you forgot to ship ltmain.sh 21583# with your package, and you will get complaints that there are 21584# no rules to generate ltmain.sh. 21585if test -f "$ltmain"; then 21586 # See if we are running on zsh, and set the options which allow our commands through 21587 # without removal of \ escapes. 21588 if test -n "${ZSH_VERSION+set}" ; then 21589 setopt NO_GLOB_SUBST 21590 fi 21591 # Now quote all the things that may contain metacharacters while being 21592 # careful not to overquote the AC_SUBSTed values. We take copies of the 21593 # variables and quote the copies for generation of the libtool script. 21594 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 21595 SED SHELL STRIP \ 21596 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 21597 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 21598 deplibs_check_method reload_flag reload_cmds need_locks \ 21599 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 21600 lt_cv_sys_global_symbol_to_c_name_address \ 21601 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 21602 old_postinstall_cmds old_postuninstall_cmds \ 21603 compiler_GCJ \ 21604 CC_GCJ \ 21605 LD_GCJ \ 21606 lt_prog_compiler_wl_GCJ \ 21607 lt_prog_compiler_pic_GCJ \ 21608 lt_prog_compiler_static_GCJ \ 21609 lt_prog_compiler_no_builtin_flag_GCJ \ 21610 export_dynamic_flag_spec_GCJ \ 21611 thread_safe_flag_spec_GCJ \ 21612 whole_archive_flag_spec_GCJ \ 21613 enable_shared_with_static_runtimes_GCJ \ 21614 old_archive_cmds_GCJ \ 21615 old_archive_from_new_cmds_GCJ \ 21616 predep_objects_GCJ \ 21617 postdep_objects_GCJ \ 21618 predeps_GCJ \ 21619 postdeps_GCJ \ 21620 compiler_lib_search_path_GCJ \ 21621 compiler_lib_search_dirs_GCJ \ 21622 archive_cmds_GCJ \ 21623 archive_expsym_cmds_GCJ \ 21624 postinstall_cmds_GCJ \ 21625 postuninstall_cmds_GCJ \ 21626 old_archive_from_expsyms_cmds_GCJ \ 21627 allow_undefined_flag_GCJ \ 21628 no_undefined_flag_GCJ \ 21629 export_symbols_cmds_GCJ \ 21630 hardcode_libdir_flag_spec_GCJ \ 21631 hardcode_libdir_flag_spec_ld_GCJ \ 21632 hardcode_libdir_separator_GCJ \ 21633 hardcode_automatic_GCJ \ 21634 module_cmds_GCJ \ 21635 module_expsym_cmds_GCJ \ 21636 lt_cv_prog_compiler_c_o_GCJ \ 21637 fix_srcfile_path_GCJ \ 21638 exclude_expsyms_GCJ \ 21639 include_expsyms_GCJ; do 21640 21641 case $var in 21642 old_archive_cmds_GCJ | \ 21643 old_archive_from_new_cmds_GCJ | \ 21644 archive_cmds_GCJ | \ 21645 archive_expsym_cmds_GCJ | \ 21646 module_cmds_GCJ | \ 21647 module_expsym_cmds_GCJ | \ 21648 old_archive_from_expsyms_cmds_GCJ | \ 21649 export_symbols_cmds_GCJ | \ 21650 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 21651 postinstall_cmds | postuninstall_cmds | \ 21652 old_postinstall_cmds | old_postuninstall_cmds | \ 21653 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 21654 # Double-quote double-evaled strings. 21655 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 21656 ;; 21657 *) 21658 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 21659 ;; 21660 esac 21661 done 21662 21663 case $lt_echo in 21664 *'\$0 --fallback-echo"') 21665 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 21666 ;; 21667 esac 21668 21669cfgfile="$ofile" 21670 21671 cat <<__EOF__ >> "$cfgfile" 21672# ### BEGIN LIBTOOL TAG CONFIG: $tagname 21673 21674# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21675 21676# Shell to use when invoking shell scripts. 21677SHELL=$lt_SHELL 21678 21679# Whether or not to build shared libraries. 21680build_libtool_libs=$enable_shared 21681 21682# Whether or not to build static libraries. 21683build_old_libs=$enable_static 21684 21685# Whether or not to add -lc for building shared libraries. 21686build_libtool_need_lc=$archive_cmds_need_lc_GCJ 21687 21688# Whether or not to disallow shared libs when runtime libs are static 21689allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 21690 21691# Whether or not to optimize for fast installation. 21692fast_install=$enable_fast_install 21693 21694# The host system. 21695host_alias=$host_alias 21696host=$host 21697host_os=$host_os 21698 21699# The build system. 21700build_alias=$build_alias 21701build=$build 21702build_os=$build_os 21703 21704# An echo program that does not interpret backslashes. 21705echo=$lt_echo 21706 21707# The archiver. 21708AR=$lt_AR 21709AR_FLAGS=$lt_AR_FLAGS 21710 21711# A C compiler. 21712LTCC=$lt_LTCC 21713 21714# LTCC compiler flags. 21715LTCFLAGS=$lt_LTCFLAGS 21716 21717# A language-specific compiler. 21718CC=$lt_compiler_GCJ 21719 21720# Is the compiler the GNU C compiler? 21721with_gcc=$GCC_GCJ 21722 21723# An ERE matcher. 21724EGREP=$lt_EGREP 21725 21726# The linker used to build libraries. 21727LD=$lt_LD_GCJ 21728 21729# Whether we need hard or soft links. 21730LN_S=$lt_LN_S 21731 21732# A BSD-compatible nm program. 21733NM=$lt_NM 21734 21735# A symbol stripping program 21736STRIP=$lt_STRIP 21737 21738# Used to examine libraries when file_magic_cmd begins "file" 21739MAGIC_CMD=$MAGIC_CMD 21740 21741# Used on cygwin: DLL creation program. 21742DLLTOOL="$DLLTOOL" 21743 21744# Used on cygwin: object dumper. 21745OBJDUMP="$OBJDUMP" 21746 21747# Used on cygwin: assembler. 21748AS="$AS" 21749 21750# The name of the directory that contains temporary libtool files. 21751objdir=$objdir 21752 21753# How to create reloadable object files. 21754reload_flag=$lt_reload_flag 21755reload_cmds=$lt_reload_cmds 21756 21757# How to pass a linker flag through the compiler. 21758wl=$lt_lt_prog_compiler_wl_GCJ 21759 21760# Object file suffix (normally "o"). 21761objext="$ac_objext" 21762 21763# Old archive suffix (normally "a"). 21764libext="$libext" 21765 21766# Shared library suffix (normally ".so"). 21767shrext_cmds='$shrext_cmds' 21768 21769# Executable file suffix (normally ""). 21770exeext="$exeext" 21771 21772# Additional compiler flags for building library objects. 21773pic_flag=$lt_lt_prog_compiler_pic_GCJ 21774pic_mode=$pic_mode 21775 21776# What is the maximum length of a command? 21777max_cmd_len=$lt_cv_sys_max_cmd_len 21778 21779# Does compiler simultaneously support -c and -o options? 21780compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 21781 21782# Must we lock files when doing compilation? 21783need_locks=$lt_need_locks 21784 21785# Do we need the lib prefix for modules? 21786need_lib_prefix=$need_lib_prefix 21787 21788# Do we need a version for libraries? 21789need_version=$need_version 21790 21791# Whether dlopen is supported. 21792dlopen_support=$enable_dlopen 21793 21794# Whether dlopen of programs is supported. 21795dlopen_self=$enable_dlopen_self 21796 21797# Whether dlopen of statically linked programs is supported. 21798dlopen_self_static=$enable_dlopen_self_static 21799 21800# Compiler flag to prevent dynamic linking. 21801link_static_flag=$lt_lt_prog_compiler_static_GCJ 21802 21803# Compiler flag to turn off builtin functions. 21804no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 21805 21806# Compiler flag to allow reflexive dlopens. 21807export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 21808 21809# Compiler flag to generate shared objects directly from archives. 21810whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 21811 21812# Compiler flag to generate thread-safe objects. 21813thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 21814 21815# Library versioning type. 21816version_type=$version_type 21817 21818# Format of library name prefix. 21819libname_spec=$lt_libname_spec 21820 21821# List of archive names. First name is the real one, the rest are links. 21822# The last name is the one that the linker finds with -lNAME. 21823library_names_spec=$lt_library_names_spec 21824 21825# The coded name of the library, if different from the real name. 21826soname_spec=$lt_soname_spec 21827 21828# Commands used to build and install an old-style archive. 21829RANLIB=$lt_RANLIB 21830old_archive_cmds=$lt_old_archive_cmds_GCJ 21831old_postinstall_cmds=$lt_old_postinstall_cmds 21832old_postuninstall_cmds=$lt_old_postuninstall_cmds 21833 21834# Create an old-style archive from a shared archive. 21835old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 21836 21837# Create a temporary old-style archive to link instead of a shared archive. 21838old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 21839 21840# Commands used to build and install a shared archive. 21841archive_cmds=$lt_archive_cmds_GCJ 21842archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 21843postinstall_cmds=$lt_postinstall_cmds 21844postuninstall_cmds=$lt_postuninstall_cmds 21845 21846# Commands used to build a loadable module (assumed same as above if empty) 21847module_cmds=$lt_module_cmds_GCJ 21848module_expsym_cmds=$lt_module_expsym_cmds_GCJ 21849 21850# Commands to strip libraries. 21851old_striplib=$lt_old_striplib 21852striplib=$lt_striplib 21853 21854# Dependencies to place before the objects being linked to create a 21855# shared library. 21856predep_objects=$lt_predep_objects_GCJ 21857 21858# Dependencies to place after the objects being linked to create a 21859# shared library. 21860postdep_objects=$lt_postdep_objects_GCJ 21861 21862# Dependencies to place before the objects being linked to create a 21863# shared library. 21864predeps=$lt_predeps_GCJ 21865 21866# Dependencies to place after the objects being linked to create a 21867# shared library. 21868postdeps=$lt_postdeps_GCJ 21869 21870# The directories searched by this compiler when creating a shared 21871# library 21872compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 21873 21874# The library search path used internally by the compiler when linking 21875# a shared library. 21876compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 21877 21878# Method to check whether dependent libraries are shared objects. 21879deplibs_check_method=$lt_deplibs_check_method 21880 21881# Command to use when deplibs_check_method == file_magic. 21882file_magic_cmd=$lt_file_magic_cmd 21883 21884# Flag that allows shared libraries with undefined symbols to be built. 21885allow_undefined_flag=$lt_allow_undefined_flag_GCJ 21886 21887# Flag that forces no undefined symbols. 21888no_undefined_flag=$lt_no_undefined_flag_GCJ 21889 21890# Commands used to finish a libtool library installation in a directory. 21891finish_cmds=$lt_finish_cmds 21892 21893# Same as above, but a single script fragment to be evaled but not shown. 21894finish_eval=$lt_finish_eval 21895 21896# Take the output of nm and produce a listing of raw symbols and C names. 21897global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21898 21899# Transform the output of nm in a proper C declaration 21900global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21901 21902# Transform the output of nm in a C name address pair 21903global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21904 21905# This is the shared library runtime path variable. 21906runpath_var=$runpath_var 21907 21908# This is the shared library path variable. 21909shlibpath_var=$shlibpath_var 21910 21911# Is shlibpath searched before the hard-coded library search path? 21912shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21913 21914# How to hardcode a shared library path into an executable. 21915hardcode_action=$hardcode_action_GCJ 21916 21917# Whether we should hardcode library paths into libraries. 21918hardcode_into_libs=$hardcode_into_libs 21919 21920# Flag to hardcode \$libdir into a binary during linking. 21921# This must work even if \$libdir does not exist. 21922hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 21923 21924# If ld is used when linking, flag to hardcode \$libdir into 21925# a binary during linking. This must work even if \$libdir does 21926# not exist. 21927hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 21928 21929# Whether we need a single -rpath flag with a separated argument. 21930hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 21931 21932# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 21933# resulting binary. 21934hardcode_direct=$hardcode_direct_GCJ 21935 21936# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 21937# resulting binary. 21938hardcode_minus_L=$hardcode_minus_L_GCJ 21939 21940# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 21941# the resulting binary. 21942hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 21943 21944# Set to yes if building a shared library automatically hardcodes DIR into the library 21945# and all subsequent libraries and executables linked against it. 21946hardcode_automatic=$hardcode_automatic_GCJ 21947 21948# Variables whose values should be saved in libtool wrapper scripts and 21949# restored at relink time. 21950variables_saved_for_relink="$variables_saved_for_relink" 21951 21952# Whether libtool must link a program against all its dependency libraries. 21953link_all_deplibs=$link_all_deplibs_GCJ 21954 21955# Compile-time system search path for libraries 21956sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21957 21958# Run-time system search path for libraries 21959sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21960 21961# Fix the shell variable \$srcfile for the compiler. 21962fix_srcfile_path=$lt_fix_srcfile_path 21963 21964# Set to yes if exported symbols are required. 21965always_export_symbols=$always_export_symbols_GCJ 21966 21967# The commands to list exported symbols. 21968export_symbols_cmds=$lt_export_symbols_cmds_GCJ 21969 21970# The commands to extract the exported symbol list from a shared archive. 21971extract_expsyms_cmds=$lt_extract_expsyms_cmds 21972 21973# Symbols that should not be listed in the preloaded symbols. 21974exclude_expsyms=$lt_exclude_expsyms_GCJ 21975 21976# Symbols that must always be exported. 21977include_expsyms=$lt_include_expsyms_GCJ 21978 21979# ### END LIBTOOL TAG CONFIG: $tagname 21980 21981__EOF__ 21982 21983 21984else 21985 # If there is no Makefile yet, we rely on a make rule to execute 21986 # `config.status --recheck' to rerun these tests and create the 21987 # libtool script then. 21988 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 21989 if test -f "$ltmain_in"; then 21990 test -f Makefile && make "$ltmain" 21991 fi 21992fi 21993 21994 21995ac_ext=c 21996ac_cpp='$CPP $CPPFLAGS' 21997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21999ac_compiler_gnu=$ac_cv_c_compiler_gnu 22000 22001CC="$lt_save_CC" 22002 22003 else 22004 tagname="" 22005 fi 22006 ;; 22007 22008 RC) 22009 22010 22011# Source file extension for RC test sources. 22012ac_ext=rc 22013 22014# Object file extension for compiled RC test sources. 22015objext=o 22016objext_RC=$objext 22017 22018# Code to be used in simple compile tests 22019lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 22020 22021# Code to be used in simple link tests 22022lt_simple_link_test_code="$lt_simple_compile_test_code" 22023 22024# ltmain only uses $CC for tagged configurations so make sure $CC is set. 22025 22026# If no C compiler was specified, use CC. 22027LTCC=${LTCC-"$CC"} 22028 22029# If no C compiler flags were specified, use CFLAGS. 22030LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 22031 22032# Allow CC to be a program name with arguments. 22033compiler=$CC 22034 22035 22036# save warnings/boilerplate of simple test code 22037ac_outfile=conftest.$ac_objext 22038echo "$lt_simple_compile_test_code" >conftest.$ac_ext 22039eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 22040_lt_compiler_boilerplate=`cat conftest.err` 22041$rm conftest* 22042 22043ac_outfile=conftest.$ac_objext 22044echo "$lt_simple_link_test_code" >conftest.$ac_ext 22045eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 22046_lt_linker_boilerplate=`cat conftest.err` 22047$rm -r conftest* 22048 22049 22050# Allow CC to be a program name with arguments. 22051lt_save_CC="$CC" 22052CC=${RC-"windres"} 22053compiler=$CC 22054compiler_RC=$CC 22055for cc_temp in $compiler""; do 22056 case $cc_temp in 22057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22059 \-*) ;; 22060 *) break;; 22061 esac 22062done 22063cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 22064 22065lt_cv_prog_compiler_c_o_RC=yes 22066 22067# The else clause should only fire when bootstrapping the 22068# libtool distribution, otherwise you forgot to ship ltmain.sh 22069# with your package, and you will get complaints that there are 22070# no rules to generate ltmain.sh. 22071if test -f "$ltmain"; then 22072 # See if we are running on zsh, and set the options which allow our commands through 22073 # without removal of \ escapes. 22074 if test -n "${ZSH_VERSION+set}" ; then 22075 setopt NO_GLOB_SUBST 22076 fi 22077 # Now quote all the things that may contain metacharacters while being 22078 # careful not to overquote the AC_SUBSTed values. We take copies of the 22079 # variables and quote the copies for generation of the libtool script. 22080 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 22081 SED SHELL STRIP \ 22082 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 22083 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 22084 deplibs_check_method reload_flag reload_cmds need_locks \ 22085 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 22086 lt_cv_sys_global_symbol_to_c_name_address \ 22087 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 22088 old_postinstall_cmds old_postuninstall_cmds \ 22089 compiler_RC \ 22090 CC_RC \ 22091 LD_RC \ 22092 lt_prog_compiler_wl_RC \ 22093 lt_prog_compiler_pic_RC \ 22094 lt_prog_compiler_static_RC \ 22095 lt_prog_compiler_no_builtin_flag_RC \ 22096 export_dynamic_flag_spec_RC \ 22097 thread_safe_flag_spec_RC \ 22098 whole_archive_flag_spec_RC \ 22099 enable_shared_with_static_runtimes_RC \ 22100 old_archive_cmds_RC \ 22101 old_archive_from_new_cmds_RC \ 22102 predep_objects_RC \ 22103 postdep_objects_RC \ 22104 predeps_RC \ 22105 postdeps_RC \ 22106 compiler_lib_search_path_RC \ 22107 compiler_lib_search_dirs_RC \ 22108 archive_cmds_RC \ 22109 archive_expsym_cmds_RC \ 22110 postinstall_cmds_RC \ 22111 postuninstall_cmds_RC \ 22112 old_archive_from_expsyms_cmds_RC \ 22113 allow_undefined_flag_RC \ 22114 no_undefined_flag_RC \ 22115 export_symbols_cmds_RC \ 22116 hardcode_libdir_flag_spec_RC \ 22117 hardcode_libdir_flag_spec_ld_RC \ 22118 hardcode_libdir_separator_RC \ 22119 hardcode_automatic_RC \ 22120 module_cmds_RC \ 22121 module_expsym_cmds_RC \ 22122 lt_cv_prog_compiler_c_o_RC \ 22123 fix_srcfile_path_RC \ 22124 exclude_expsyms_RC \ 22125 include_expsyms_RC; do 22126 22127 case $var in 22128 old_archive_cmds_RC | \ 22129 old_archive_from_new_cmds_RC | \ 22130 archive_cmds_RC | \ 22131 archive_expsym_cmds_RC | \ 22132 module_cmds_RC | \ 22133 module_expsym_cmds_RC | \ 22134 old_archive_from_expsyms_cmds_RC | \ 22135 export_symbols_cmds_RC | \ 22136 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 22137 postinstall_cmds | postuninstall_cmds | \ 22138 old_postinstall_cmds | old_postuninstall_cmds | \ 22139 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 22140 # Double-quote double-evaled strings. 22141 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 22142 ;; 22143 *) 22144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 22145 ;; 22146 esac 22147 done 22148 22149 case $lt_echo in 22150 *'\$0 --fallback-echo"') 22151 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 22152 ;; 22153 esac 22154 22155cfgfile="$ofile" 22156 22157 cat <<__EOF__ >> "$cfgfile" 22158# ### BEGIN LIBTOOL TAG CONFIG: $tagname 22159 22160# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22161 22162# Shell to use when invoking shell scripts. 22163SHELL=$lt_SHELL 22164 22165# Whether or not to build shared libraries. 22166build_libtool_libs=$enable_shared 22167 22168# Whether or not to build static libraries. 22169build_old_libs=$enable_static 22170 22171# Whether or not to add -lc for building shared libraries. 22172build_libtool_need_lc=$archive_cmds_need_lc_RC 22173 22174# Whether or not to disallow shared libs when runtime libs are static 22175allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 22176 22177# Whether or not to optimize for fast installation. 22178fast_install=$enable_fast_install 22179 22180# The host system. 22181host_alias=$host_alias 22182host=$host 22183host_os=$host_os 22184 22185# The build system. 22186build_alias=$build_alias 22187build=$build 22188build_os=$build_os 22189 22190# An echo program that does not interpret backslashes. 22191echo=$lt_echo 22192 22193# The archiver. 22194AR=$lt_AR 22195AR_FLAGS=$lt_AR_FLAGS 22196 22197# A C compiler. 22198LTCC=$lt_LTCC 22199 22200# LTCC compiler flags. 22201LTCFLAGS=$lt_LTCFLAGS 22202 22203# A language-specific compiler. 22204CC=$lt_compiler_RC 22205 22206# Is the compiler the GNU C compiler? 22207with_gcc=$GCC_RC 22208 22209# An ERE matcher. 22210EGREP=$lt_EGREP 22211 22212# The linker used to build libraries. 22213LD=$lt_LD_RC 22214 22215# Whether we need hard or soft links. 22216LN_S=$lt_LN_S 22217 22218# A BSD-compatible nm program. 22219NM=$lt_NM 22220 22221# A symbol stripping program 22222STRIP=$lt_STRIP 22223 22224# Used to examine libraries when file_magic_cmd begins "file" 22225MAGIC_CMD=$MAGIC_CMD 22226 22227# Used on cygwin: DLL creation program. 22228DLLTOOL="$DLLTOOL" 22229 22230# Used on cygwin: object dumper. 22231OBJDUMP="$OBJDUMP" 22232 22233# Used on cygwin: assembler. 22234AS="$AS" 22235 22236# The name of the directory that contains temporary libtool files. 22237objdir=$objdir 22238 22239# How to create reloadable object files. 22240reload_flag=$lt_reload_flag 22241reload_cmds=$lt_reload_cmds 22242 22243# How to pass a linker flag through the compiler. 22244wl=$lt_lt_prog_compiler_wl_RC 22245 22246# Object file suffix (normally "o"). 22247objext="$ac_objext" 22248 22249# Old archive suffix (normally "a"). 22250libext="$libext" 22251 22252# Shared library suffix (normally ".so"). 22253shrext_cmds='$shrext_cmds' 22254 22255# Executable file suffix (normally ""). 22256exeext="$exeext" 22257 22258# Additional compiler flags for building library objects. 22259pic_flag=$lt_lt_prog_compiler_pic_RC 22260pic_mode=$pic_mode 22261 22262# What is the maximum length of a command? 22263max_cmd_len=$lt_cv_sys_max_cmd_len 22264 22265# Does compiler simultaneously support -c and -o options? 22266compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 22267 22268# Must we lock files when doing compilation? 22269need_locks=$lt_need_locks 22270 22271# Do we need the lib prefix for modules? 22272need_lib_prefix=$need_lib_prefix 22273 22274# Do we need a version for libraries? 22275need_version=$need_version 22276 22277# Whether dlopen is supported. 22278dlopen_support=$enable_dlopen 22279 22280# Whether dlopen of programs is supported. 22281dlopen_self=$enable_dlopen_self 22282 22283# Whether dlopen of statically linked programs is supported. 22284dlopen_self_static=$enable_dlopen_self_static 22285 22286# Compiler flag to prevent dynamic linking. 22287link_static_flag=$lt_lt_prog_compiler_static_RC 22288 22289# Compiler flag to turn off builtin functions. 22290no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 22291 22292# Compiler flag to allow reflexive dlopens. 22293export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 22294 22295# Compiler flag to generate shared objects directly from archives. 22296whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 22297 22298# Compiler flag to generate thread-safe objects. 22299thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 22300 22301# Library versioning type. 22302version_type=$version_type 22303 22304# Format of library name prefix. 22305libname_spec=$lt_libname_spec 22306 22307# List of archive names. First name is the real one, the rest are links. 22308# The last name is the one that the linker finds with -lNAME. 22309library_names_spec=$lt_library_names_spec 22310 22311# The coded name of the library, if different from the real name. 22312soname_spec=$lt_soname_spec 22313 22314# Commands used to build and install an old-style archive. 22315RANLIB=$lt_RANLIB 22316old_archive_cmds=$lt_old_archive_cmds_RC 22317old_postinstall_cmds=$lt_old_postinstall_cmds 22318old_postuninstall_cmds=$lt_old_postuninstall_cmds 22319 22320# Create an old-style archive from a shared archive. 22321old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 22322 22323# Create a temporary old-style archive to link instead of a shared archive. 22324old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 22325 22326# Commands used to build and install a shared archive. 22327archive_cmds=$lt_archive_cmds_RC 22328archive_expsym_cmds=$lt_archive_expsym_cmds_RC 22329postinstall_cmds=$lt_postinstall_cmds 22330postuninstall_cmds=$lt_postuninstall_cmds 22331 22332# Commands used to build a loadable module (assumed same as above if empty) 22333module_cmds=$lt_module_cmds_RC 22334module_expsym_cmds=$lt_module_expsym_cmds_RC 22335 22336# Commands to strip libraries. 22337old_striplib=$lt_old_striplib 22338striplib=$lt_striplib 22339 22340# Dependencies to place before the objects being linked to create a 22341# shared library. 22342predep_objects=$lt_predep_objects_RC 22343 22344# Dependencies to place after the objects being linked to create a 22345# shared library. 22346postdep_objects=$lt_postdep_objects_RC 22347 22348# Dependencies to place before the objects being linked to create a 22349# shared library. 22350predeps=$lt_predeps_RC 22351 22352# Dependencies to place after the objects being linked to create a 22353# shared library. 22354postdeps=$lt_postdeps_RC 22355 22356# The directories searched by this compiler when creating a shared 22357# library 22358compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 22359 22360# The library search path used internally by the compiler when linking 22361# a shared library. 22362compiler_lib_search_path=$lt_compiler_lib_search_path_RC 22363 22364# Method to check whether dependent libraries are shared objects. 22365deplibs_check_method=$lt_deplibs_check_method 22366 22367# Command to use when deplibs_check_method == file_magic. 22368file_magic_cmd=$lt_file_magic_cmd 22369 22370# Flag that allows shared libraries with undefined symbols to be built. 22371allow_undefined_flag=$lt_allow_undefined_flag_RC 22372 22373# Flag that forces no undefined symbols. 22374no_undefined_flag=$lt_no_undefined_flag_RC 22375 22376# Commands used to finish a libtool library installation in a directory. 22377finish_cmds=$lt_finish_cmds 22378 22379# Same as above, but a single script fragment to be evaled but not shown. 22380finish_eval=$lt_finish_eval 22381 22382# Take the output of nm and produce a listing of raw symbols and C names. 22383global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22384 22385# Transform the output of nm in a proper C declaration 22386global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22387 22388# Transform the output of nm in a C name address pair 22389global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22390 22391# This is the shared library runtime path variable. 22392runpath_var=$runpath_var 22393 22394# This is the shared library path variable. 22395shlibpath_var=$shlibpath_var 22396 22397# Is shlibpath searched before the hard-coded library search path? 22398shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22399 22400# How to hardcode a shared library path into an executable. 22401hardcode_action=$hardcode_action_RC 22402 22403# Whether we should hardcode library paths into libraries. 22404hardcode_into_libs=$hardcode_into_libs 22405 22406# Flag to hardcode \$libdir into a binary during linking. 22407# This must work even if \$libdir does not exist. 22408hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 22409 22410# If ld is used when linking, flag to hardcode \$libdir into 22411# a binary during linking. This must work even if \$libdir does 22412# not exist. 22413hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 22414 22415# Whether we need a single -rpath flag with a separated argument. 22416hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 22417 22418# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 22419# resulting binary. 22420hardcode_direct=$hardcode_direct_RC 22421 22422# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 22423# resulting binary. 22424hardcode_minus_L=$hardcode_minus_L_RC 22425 22426# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 22427# the resulting binary. 22428hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 22429 22430# Set to yes if building a shared library automatically hardcodes DIR into the library 22431# and all subsequent libraries and executables linked against it. 22432hardcode_automatic=$hardcode_automatic_RC 22433 22434# Variables whose values should be saved in libtool wrapper scripts and 22435# restored at relink time. 22436variables_saved_for_relink="$variables_saved_for_relink" 22437 22438# Whether libtool must link a program against all its dependency libraries. 22439link_all_deplibs=$link_all_deplibs_RC 22440 22441# Compile-time system search path for libraries 22442sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22443 22444# Run-time system search path for libraries 22445sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 22446 22447# Fix the shell variable \$srcfile for the compiler. 22448fix_srcfile_path=$lt_fix_srcfile_path 22449 22450# Set to yes if exported symbols are required. 22451always_export_symbols=$always_export_symbols_RC 22452 22453# The commands to list exported symbols. 22454export_symbols_cmds=$lt_export_symbols_cmds_RC 22455 22456# The commands to extract the exported symbol list from a shared archive. 22457extract_expsyms_cmds=$lt_extract_expsyms_cmds 22458 22459# Symbols that should not be listed in the preloaded symbols. 22460exclude_expsyms=$lt_exclude_expsyms_RC 22461 22462# Symbols that must always be exported. 22463include_expsyms=$lt_include_expsyms_RC 22464 22465# ### END LIBTOOL TAG CONFIG: $tagname 22466 22467__EOF__ 22468 22469 22470else 22471 # If there is no Makefile yet, we rely on a make rule to execute 22472 # `config.status --recheck' to rerun these tests and create the 22473 # libtool script then. 22474 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 22475 if test -f "$ltmain_in"; then 22476 test -f Makefile && make "$ltmain" 22477 fi 22478fi 22479 22480 22481ac_ext=c 22482ac_cpp='$CPP $CPPFLAGS' 22483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22485ac_compiler_gnu=$ac_cv_c_compiler_gnu 22486 22487CC="$lt_save_CC" 22488 22489 ;; 22490 22491 *) 22492 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 22493echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 22494 { (exit 1); exit 1; }; } 22495 ;; 22496 esac 22497 22498 # Append the new tag name to the list of available tags. 22499 if test -n "$tagname" ; then 22500 available_tags="$available_tags $tagname" 22501 fi 22502 fi 22503 done 22504 IFS="$lt_save_ifs" 22505 22506 # Now substitute the updated list of available tags. 22507 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 22508 mv "${ofile}T" "$ofile" 22509 chmod +x "$ofile" 22510 else 22511 rm -f "${ofile}T" 22512 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 22513echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 22514 { (exit 1); exit 1; }; } 22515 fi 22516fi 22517 22518 22519 22520# This can be used to rebuild libtool when needed 22521LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 22522 22523# Always use our own libtool. 22524LIBTOOL='$(SHELL) $(top_builddir)/libtool' 22525 22526# Prevent multiple expansion 22527 22528 22529 22530 22531 22532 22533 22534 22535 22536 22537 22538 22539 22540 22541 22542 22543 22544 22545 22546 22547 22548ac_config_files="$ac_config_files sphinx3.pc Makefile src/Makefile src/libs3decoder/Makefile src/libs3decoder/libAPI/Makefile src/libs3decoder/libam/Makefile src/libs3decoder/libconfidence/Makefile src/libs3decoder/libcommon/Makefile src/libs3decoder/libdict/Makefile src/libs3decoder/libep/Makefile src/libs3decoder/liblm/Makefile src/libs3decoder/libsearch/Makefile src/libs3decoder/libcfg/Makefile src/programs/Makefile src/tests/Makefile src/tests/performance/Makefile src/tests/performance/an4/Makefile src/tests/performance/hub4/Makefile src/tests/performance/rm1/Makefile src/tests/performance/wsj20k/Makefile src/tests/performance/wsj5k/Makefile src/tests/performance/tidigits/Makefile src/tests/performance/ti46/Makefile src/tests/performance/Communicator/Makefile src/tests/performance/ICSI/Makefile src/tests/performance/spoke3/Makefile src/tests/regression/Makefile src/tests/regression/checkStyle.sh src/tests/regression/testfuncs.sh src/tests/unit_tests/Makefile src/tests/unit_tests/test_logs3/Makefile scripts/Makefile scripts/sphinx3-simple model/Makefile model/ep/Makefile model/hmm/Makefile model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/Makefile model/hmm/tidigits/Makefile model/hmm/RM1_cd_semi/Makefile model/lm/Makefile model/lm/an4/Makefile model/lm/an4/args.an4 model/lm/an4/args.an4.test model/lm/an4/args.an4.test.cls model/lm/an4/args.an4.test.mllr model/lm/an4/args.an4.test.fsg model/lm/an4/an4.ug.cls.lmctl include/Makefile doc/Makefile" 22549 22550cat >confcache <<\_ACEOF 22551# This file is a shell script that caches the results of configure 22552# tests run on this system so they can be shared between configure 22553# scripts and configure runs, see configure's option --config-cache. 22554# It is not useful on other systems. If it contains results you don't 22555# want to keep, you may remove or edit it. 22556# 22557# config.status only pays attention to the cache file if you give it 22558# the --recheck option to rerun configure. 22559# 22560# `ac_cv_env_foo' variables (set or unset) will be overridden when 22561# loading this file, other *unset* `ac_cv_foo' will be assigned the 22562# following values. 22563 22564_ACEOF 22565 22566# The following way of writing the cache mishandles newlines in values, 22567# but we know of no workaround that is simple, portable, and efficient. 22568# So, we kill variables containing newlines. 22569# Ultrix sh set writes to stderr and can't be redirected directly, 22570# and sets the high bit in the cache file unless we assign to the vars. 22571( 22572 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22573 eval ac_val=\$$ac_var 22574 case $ac_val in #( 22575 *${as_nl}*) 22576 case $ac_var in #( 22577 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22578echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22579 esac 22580 case $ac_var in #( 22581 _ | IFS | as_nl) ;; #( 22582 *) $as_unset $ac_var ;; 22583 esac ;; 22584 esac 22585 done 22586 22587 (set) 2>&1 | 22588 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22589 *${as_nl}ac_space=\ *) 22590 # `set' does not quote correctly, so add quotes (double-quote 22591 # substitution turns \\\\ into \\, and sed turns \\ into \). 22592 sed -n \ 22593 "s/'/'\\\\''/g; 22594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22595 ;; #( 22596 *) 22597 # `set' quotes correctly as required by POSIX, so do not add quotes. 22598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22599 ;; 22600 esac | 22601 sort 22602) | 22603 sed ' 22604 /^ac_cv_env_/b end 22605 t clear 22606 :clear 22607 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22608 t end 22609 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22610 :end' >>confcache 22611if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22612 if test -w "$cache_file"; then 22613 test "x$cache_file" != "x/dev/null" && 22614 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22615echo "$as_me: updating cache $cache_file" >&6;} 22616 cat confcache >$cache_file 22617 else 22618 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22619echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22620 fi 22621fi 22622rm -f confcache 22623 22624test "x$prefix" = xNONE && prefix=$ac_default_prefix 22625# Let make expand exec_prefix. 22626test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22627 22628# Transform confdefs.h into DEFS. 22629# Protect against shell expansion while executing Makefile rules. 22630# Protect against Makefile macro expansion. 22631# 22632# If the first sed substitution is executed (which looks for macros that 22633# take arguments), then branch to the quote section. Otherwise, 22634# look for a macro that doesn't take arguments. 22635ac_script=' 22636t clear 22637:clear 22638s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 22639t quote 22640s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 22641t quote 22642b any 22643:quote 22644s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 22645s/\[/\\&/g 22646s/\]/\\&/g 22647s/\$/$$/g 22648H 22649:any 22650${ 22651 g 22652 s/^\n// 22653 s/\n/ /g 22654 p 22655} 22656' 22657DEFS=`sed -n "$ac_script" confdefs.h` 22658 22659 22660ac_libobjs= 22661ac_ltlibobjs= 22662for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22663 # 1. Remove the extension, and $U if already installed. 22664 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22665 ac_i=`echo "$ac_i" | sed "$ac_script"` 22666 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22667 # will be set to the directory where LIBOBJS objects are built. 22668 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22669 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22670done 22671LIBOBJS=$ac_libobjs 22672 22673LTLIBOBJS=$ac_ltlibobjs 22674 22675 22676if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22677 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22678Usually this means the macro was only invoked conditionally." >&5 22679echo "$as_me: error: conditional \"AMDEP\" was never defined. 22680Usually this means the macro was only invoked conditionally." >&2;} 22681 { (exit 1); exit 1; }; } 22682fi 22683if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22684 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22685Usually this means the macro was only invoked conditionally." >&5 22686echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22687Usually this means the macro was only invoked conditionally." >&2;} 22688 { (exit 1); exit 1; }; } 22689fi 22690if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22691 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22692Usually this means the macro was only invoked conditionally." >&5 22693echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22694Usually this means the macro was only invoked conditionally." >&2;} 22695 { (exit 1); exit 1; }; } 22696fi 22697if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22698 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22699Usually this means the macro was only invoked conditionally." >&5 22700echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22701Usually this means the macro was only invoked conditionally." >&2;} 22702 { (exit 1); exit 1; }; } 22703fi 22704if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22705 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22706Usually this means the macro was only invoked conditionally." >&5 22707echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22708Usually this means the macro was only invoked conditionally." >&2;} 22709 { (exit 1); exit 1; }; } 22710fi 22711 22712: ${CONFIG_STATUS=./config.status} 22713ac_clean_files_save=$ac_clean_files 22714ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22715{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22716echo "$as_me: creating $CONFIG_STATUS" >&6;} 22717cat >$CONFIG_STATUS <<_ACEOF 22718#! $SHELL 22719# Generated by $as_me. 22720# Run this file to recreate the current configuration. 22721# Compiler output produced by configure, useful for debugging 22722# configure, is in config.log if it exists. 22723 22724debug=false 22725ac_cs_recheck=false 22726ac_cs_silent=false 22727SHELL=\${CONFIG_SHELL-$SHELL} 22728_ACEOF 22729 22730cat >>$CONFIG_STATUS <<\_ACEOF 22731## --------------------- ## 22732## M4sh Initialization. ## 22733## --------------------- ## 22734 22735# Be more Bourne compatible 22736DUALCASE=1; export DUALCASE # for MKS sh 22737if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22738 emulate sh 22739 NULLCMD=: 22740 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22741 # is contrary to our usage. Disable this feature. 22742 alias -g '${1+"$@"}'='"$@"' 22743 setopt NO_GLOB_SUBST 22744else 22745 case `(set -o) 2>/dev/null` in 22746 *posix*) set -o posix ;; 22747esac 22748 22749fi 22750 22751 22752 22753 22754# PATH needs CR 22755# Avoid depending upon Character Ranges. 22756as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22757as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22758as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22759as_cr_digits='0123456789' 22760as_cr_alnum=$as_cr_Letters$as_cr_digits 22761 22762# The user is always right. 22763if test "${PATH_SEPARATOR+set}" != set; then 22764 echo "#! /bin/sh" >conf$$.sh 22765 echo "exit 0" >>conf$$.sh 22766 chmod +x conf$$.sh 22767 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22768 PATH_SEPARATOR=';' 22769 else 22770 PATH_SEPARATOR=: 22771 fi 22772 rm -f conf$$.sh 22773fi 22774 22775# Support unset when possible. 22776if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22777 as_unset=unset 22778else 22779 as_unset=false 22780fi 22781 22782 22783# IFS 22784# We need space, tab and new line, in precisely that order. Quoting is 22785# there to prevent editors from complaining about space-tab. 22786# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22787# splitting by setting IFS to empty value.) 22788as_nl=' 22789' 22790IFS=" "" $as_nl" 22791 22792# Find who we are. Look in the path if we contain no directory separator. 22793case $0 in 22794 *[\\/]* ) as_myself=$0 ;; 22795 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22796for as_dir in $PATH 22797do 22798 IFS=$as_save_IFS 22799 test -z "$as_dir" && as_dir=. 22800 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22801done 22802IFS=$as_save_IFS 22803 22804 ;; 22805esac 22806# We did not find ourselves, most probably we were run as `sh COMMAND' 22807# in which case we are not to be found in the path. 22808if test "x$as_myself" = x; then 22809 as_myself=$0 22810fi 22811if test ! -f "$as_myself"; then 22812 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22813 { (exit 1); exit 1; } 22814fi 22815 22816# Work around bugs in pre-3.0 UWIN ksh. 22817for as_var in ENV MAIL MAILPATH 22818do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22819done 22820PS1='$ ' 22821PS2='> ' 22822PS4='+ ' 22823 22824# NLS nuisances. 22825for as_var in \ 22826 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22827 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22828 LC_TELEPHONE LC_TIME 22829do 22830 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22831 eval $as_var=C; export $as_var 22832 else 22833 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22834 fi 22835done 22836 22837# Required to use basename. 22838if expr a : '\(a\)' >/dev/null 2>&1 && 22839 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22840 as_expr=expr 22841else 22842 as_expr=false 22843fi 22844 22845if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22846 as_basename=basename 22847else 22848 as_basename=false 22849fi 22850 22851 22852# Name of the executable. 22853as_me=`$as_basename -- "$0" || 22854$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22855 X"$0" : 'X\(//\)$' \| \ 22856 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22857echo X/"$0" | 22858 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22859 s//\1/ 22860 q 22861 } 22862 /^X\/\(\/\/\)$/{ 22863 s//\1/ 22864 q 22865 } 22866 /^X\/\(\/\).*/{ 22867 s//\1/ 22868 q 22869 } 22870 s/.*/./; q'` 22871 22872# CDPATH. 22873$as_unset CDPATH 22874 22875 22876 22877 as_lineno_1=$LINENO 22878 as_lineno_2=$LINENO 22879 test "x$as_lineno_1" != "x$as_lineno_2" && 22880 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22881 22882 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22883 # uniformly replaced by the line number. The first 'sed' inserts a 22884 # line-number line after each line using $LINENO; the second 'sed' 22885 # does the real work. The second script uses 'N' to pair each 22886 # line-number line with the line containing $LINENO, and appends 22887 # trailing '-' during substitution so that $LINENO is not a special 22888 # case at line end. 22889 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22890 # scripts with optimization help from Paolo Bonzini. Blame Lee 22891 # E. McMahon (1931-1989) for sed's syntax. :-) 22892 sed -n ' 22893 p 22894 /[$]LINENO/= 22895 ' <$as_myself | 22896 sed ' 22897 s/[$]LINENO.*/&-/ 22898 t lineno 22899 b 22900 :lineno 22901 N 22902 :loop 22903 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22904 t loop 22905 s/-\n.*// 22906 ' >$as_me.lineno && 22907 chmod +x "$as_me.lineno" || 22908 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22909 { (exit 1); exit 1; }; } 22910 22911 # Don't try to exec as it changes $[0], causing all sort of problems 22912 # (the dirname of $[0] is not the place where we might find the 22913 # original and so on. Autoconf is especially sensitive to this). 22914 . "./$as_me.lineno" 22915 # Exit status is that of the last command. 22916 exit 22917} 22918 22919 22920if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22921 as_dirname=dirname 22922else 22923 as_dirname=false 22924fi 22925 22926ECHO_C= ECHO_N= ECHO_T= 22927case `echo -n x` in 22928-n*) 22929 case `echo 'x\c'` in 22930 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22931 *) ECHO_C='\c';; 22932 esac;; 22933*) 22934 ECHO_N='-n';; 22935esac 22936 22937if expr a : '\(a\)' >/dev/null 2>&1 && 22938 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22939 as_expr=expr 22940else 22941 as_expr=false 22942fi 22943 22944rm -f conf$$ conf$$.exe conf$$.file 22945if test -d conf$$.dir; then 22946 rm -f conf$$.dir/conf$$.file 22947else 22948 rm -f conf$$.dir 22949 mkdir conf$$.dir 22950fi 22951echo >conf$$.file 22952if ln -s conf$$.file conf$$ 2>/dev/null; then 22953 as_ln_s='ln -s' 22954 # ... but there are two gotchas: 22955 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22956 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22957 # In both cases, we have to default to `cp -p'. 22958 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22959 as_ln_s='cp -p' 22960elif ln conf$$.file conf$$ 2>/dev/null; then 22961 as_ln_s=ln 22962else 22963 as_ln_s='cp -p' 22964fi 22965rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22966rmdir conf$$.dir 2>/dev/null 22967 22968if mkdir -p . 2>/dev/null; then 22969 as_mkdir_p=: 22970else 22971 test -d ./-p && rmdir ./-p 22972 as_mkdir_p=false 22973fi 22974 22975if test -x / >/dev/null 2>&1; then 22976 as_test_x='test -x' 22977else 22978 if ls -dL / >/dev/null 2>&1; then 22979 as_ls_L_option=L 22980 else 22981 as_ls_L_option= 22982 fi 22983 as_test_x=' 22984 eval sh -c '\'' 22985 if test -d "$1"; then 22986 test -d "$1/."; 22987 else 22988 case $1 in 22989 -*)set "./$1";; 22990 esac; 22991 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22992 ???[sx]*):;;*)false;;esac;fi 22993 '\'' sh 22994 ' 22995fi 22996as_executable_p=$as_test_x 22997 22998# Sed expression to map a string onto a valid CPP name. 22999as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23000 23001# Sed expression to map a string onto a valid variable name. 23002as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23003 23004 23005exec 6>&1 23006 23007# Save the log message, to keep $[0] and so on meaningful, and to 23008# report actual input values of CONFIG_FILES etc. instead of their 23009# values after options handling. 23010ac_log=" 23011This file was extended by $as_me, which was 23012generated by GNU Autoconf 2.61. Invocation command line was 23013 23014 CONFIG_FILES = $CONFIG_FILES 23015 CONFIG_HEADERS = $CONFIG_HEADERS 23016 CONFIG_LINKS = $CONFIG_LINKS 23017 CONFIG_COMMANDS = $CONFIG_COMMANDS 23018 $ $0 $@ 23019 23020on `(hostname || uname -n) 2>/dev/null | sed 1q` 23021" 23022 23023_ACEOF 23024 23025cat >>$CONFIG_STATUS <<_ACEOF 23026# Files that config.status was made for. 23027config_files="$ac_config_files" 23028config_commands="$ac_config_commands" 23029 23030_ACEOF 23031 23032cat >>$CONFIG_STATUS <<\_ACEOF 23033ac_cs_usage="\ 23034\`$as_me' instantiates files from templates according to the 23035current configuration. 23036 23037Usage: $0 [OPTIONS] [FILE]... 23038 23039 -h, --help print this help, then exit 23040 -V, --version print version number and configuration settings, then exit 23041 -q, --quiet do not print progress messages 23042 -d, --debug don't remove temporary files 23043 --recheck update $as_me by reconfiguring in the same conditions 23044 --file=FILE[:TEMPLATE] 23045 instantiate the configuration file FILE 23046 23047Configuration files: 23048$config_files 23049 23050Configuration commands: 23051$config_commands 23052 23053Report bugs to <bug-autoconf@gnu.org>." 23054 23055_ACEOF 23056cat >>$CONFIG_STATUS <<_ACEOF 23057ac_cs_version="\\ 23058config.status 23059configured by $0, generated by GNU Autoconf 2.61, 23060 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 23061 23062Copyright (C) 2006 Free Software Foundation, Inc. 23063This config.status script is free software; the Free Software Foundation 23064gives unlimited permission to copy, distribute and modify it." 23065 23066ac_pwd='$ac_pwd' 23067srcdir='$srcdir' 23068INSTALL='$INSTALL' 23069_ACEOF 23070 23071cat >>$CONFIG_STATUS <<\_ACEOF 23072# If no file are specified by the user, then we need to provide default 23073# value. By we need to know if files were specified by the user. 23074ac_need_defaults=: 23075while test $# != 0 23076do 23077 case $1 in 23078 --*=*) 23079 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23080 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23081 ac_shift=: 23082 ;; 23083 *) 23084 ac_option=$1 23085 ac_optarg=$2 23086 ac_shift=shift 23087 ;; 23088 esac 23089 23090 case $ac_option in 23091 # Handling of the options. 23092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23093 ac_cs_recheck=: ;; 23094 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23095 echo "$ac_cs_version"; exit ;; 23096 --debug | --debu | --deb | --de | --d | -d ) 23097 debug=: ;; 23098 --file | --fil | --fi | --f ) 23099 $ac_shift 23100 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23101 ac_need_defaults=false;; 23102 --he | --h | --help | --hel | -h ) 23103 echo "$ac_cs_usage"; exit ;; 23104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23105 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23106 ac_cs_silent=: ;; 23107 23108 # This is an error. 23109 -*) { echo "$as_me: error: unrecognized option: $1 23110Try \`$0 --help' for more information." >&2 23111 { (exit 1); exit 1; }; } ;; 23112 23113 *) ac_config_targets="$ac_config_targets $1" 23114 ac_need_defaults=false ;; 23115 23116 esac 23117 shift 23118done 23119 23120ac_configure_extra_args= 23121 23122if $ac_cs_silent; then 23123 exec 6>/dev/null 23124 ac_configure_extra_args="$ac_configure_extra_args --silent" 23125fi 23126 23127_ACEOF 23128cat >>$CONFIG_STATUS <<_ACEOF 23129if \$ac_cs_recheck; then 23130 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23131 CONFIG_SHELL=$SHELL 23132 export CONFIG_SHELL 23133 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23134fi 23135 23136_ACEOF 23137cat >>$CONFIG_STATUS <<\_ACEOF 23138exec 5>>config.log 23139{ 23140 echo 23141 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23142## Running $as_me. ## 23143_ASBOX 23144 echo "$ac_log" 23145} >&5 23146 23147_ACEOF 23148cat >>$CONFIG_STATUS <<_ACEOF 23149# 23150# INIT-COMMANDS 23151# 23152AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23153 23154_ACEOF 23155 23156cat >>$CONFIG_STATUS <<\_ACEOF 23157 23158# Handling of arguments. 23159for ac_config_target in $ac_config_targets 23160do 23161 case $ac_config_target in 23162 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23163 "sphinx3.pc") CONFIG_FILES="$CONFIG_FILES sphinx3.pc" ;; 23164 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23165 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23166 "src/libs3decoder/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs3decoder/Makefile" ;; 23167 "src/libs3decoder/libAPI/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs3decoder/libAPI/Makefile" ;; 23168 "src/libs3decoder/libam/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs3decoder/libam/Makefile" ;; 23169 "src/libs3decoder/libconfidence/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs3decoder/libconfidence/Makefile" ;; 23170 "src/libs3decoder/libcommon/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs3decoder/libcommon/Makefile" ;; 23171 "src/libs3decoder/libdict/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs3decoder/libdict/Makefile" ;; 23172 "src/libs3decoder/libep/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs3decoder/libep/Makefile" ;; 23173 "src/libs3decoder/liblm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs3decoder/liblm/Makefile" ;; 23174 "src/libs3decoder/libsearch/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs3decoder/libsearch/Makefile" ;; 23175 "src/libs3decoder/libcfg/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs3decoder/libcfg/Makefile" ;; 23176 "src/programs/Makefile") CONFIG_FILES="$CONFIG_FILES src/programs/Makefile" ;; 23177 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; 23178 "src/tests/performance/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/performance/Makefile" ;; 23179 "src/tests/performance/an4/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/performance/an4/Makefile" ;; 23180 "src/tests/performance/hub4/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/performance/hub4/Makefile" ;; 23181 "src/tests/performance/rm1/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/performance/rm1/Makefile" ;; 23182 "src/tests/performance/wsj20k/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/performance/wsj20k/Makefile" ;; 23183 "src/tests/performance/wsj5k/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/performance/wsj5k/Makefile" ;; 23184 "src/tests/performance/tidigits/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/performance/tidigits/Makefile" ;; 23185 "src/tests/performance/ti46/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/performance/ti46/Makefile" ;; 23186 "src/tests/performance/Communicator/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/performance/Communicator/Makefile" ;; 23187 "src/tests/performance/ICSI/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/performance/ICSI/Makefile" ;; 23188 "src/tests/performance/spoke3/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/performance/spoke3/Makefile" ;; 23189 "src/tests/regression/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/regression/Makefile" ;; 23190 "src/tests/regression/checkStyle.sh") CONFIG_FILES="$CONFIG_FILES src/tests/regression/checkStyle.sh" ;; 23191 "src/tests/regression/testfuncs.sh") CONFIG_FILES="$CONFIG_FILES src/tests/regression/testfuncs.sh" ;; 23192 "src/tests/unit_tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/unit_tests/Makefile" ;; 23193 "src/tests/unit_tests/test_logs3/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/unit_tests/test_logs3/Makefile" ;; 23194 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 23195 "scripts/sphinx3-simple") CONFIG_FILES="$CONFIG_FILES scripts/sphinx3-simple" ;; 23196 "model/Makefile") CONFIG_FILES="$CONFIG_FILES model/Makefile" ;; 23197 "model/ep/Makefile") CONFIG_FILES="$CONFIG_FILES model/ep/Makefile" ;; 23198 "model/hmm/Makefile") CONFIG_FILES="$CONFIG_FILES model/hmm/Makefile" ;; 23199 "model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/Makefile") CONFIG_FILES="$CONFIG_FILES model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/Makefile" ;; 23200 "model/hmm/tidigits/Makefile") CONFIG_FILES="$CONFIG_FILES model/hmm/tidigits/Makefile" ;; 23201 "model/hmm/RM1_cd_semi/Makefile") CONFIG_FILES="$CONFIG_FILES model/hmm/RM1_cd_semi/Makefile" ;; 23202 "model/lm/Makefile") CONFIG_FILES="$CONFIG_FILES model/lm/Makefile" ;; 23203 "model/lm/an4/Makefile") CONFIG_FILES="$CONFIG_FILES model/lm/an4/Makefile" ;; 23204 "model/lm/an4/args.an4") CONFIG_FILES="$CONFIG_FILES model/lm/an4/args.an4" ;; 23205 "model/lm/an4/args.an4.test") CONFIG_FILES="$CONFIG_FILES model/lm/an4/args.an4.test" ;; 23206 "model/lm/an4/args.an4.test.cls") CONFIG_FILES="$CONFIG_FILES model/lm/an4/args.an4.test.cls" ;; 23207 "model/lm/an4/args.an4.test.mllr") CONFIG_FILES="$CONFIG_FILES model/lm/an4/args.an4.test.mllr" ;; 23208 "model/lm/an4/args.an4.test.fsg") CONFIG_FILES="$CONFIG_FILES model/lm/an4/args.an4.test.fsg" ;; 23209 "model/lm/an4/an4.ug.cls.lmctl") CONFIG_FILES="$CONFIG_FILES model/lm/an4/an4.ug.cls.lmctl" ;; 23210 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 23211 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 23212 23213 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23214echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23215 { (exit 1); exit 1; }; };; 23216 esac 23217done 23218 23219 23220# If the user did not use the arguments to specify the items to instantiate, 23221# then the envvar interface is used. Set only those that are not. 23222# We use the long form for the default assignment because of an extremely 23223# bizarre bug on SunOS 4.1.3. 23224if $ac_need_defaults; then 23225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23226 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23227fi 23228 23229# Have a temporary directory for convenience. Make it in the build tree 23230# simply because there is no reason against having it here, and in addition, 23231# creating and moving files from /tmp can sometimes cause problems. 23232# Hook for its removal unless debugging. 23233# Note that there is a small window in which the directory will not be cleaned: 23234# after its creation but before its name has been assigned to `$tmp'. 23235$debug || 23236{ 23237 tmp= 23238 trap 'exit_status=$? 23239 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23240' 0 23241 trap '{ (exit 1); exit 1; }' 1 2 13 15 23242} 23243# Create a (secure) tmp directory for tmp files. 23244 23245{ 23246 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23247 test -n "$tmp" && test -d "$tmp" 23248} || 23249{ 23250 tmp=./conf$$-$RANDOM 23251 (umask 077 && mkdir "$tmp") 23252} || 23253{ 23254 echo "$me: cannot create a temporary directory in ." >&2 23255 { (exit 1); exit 1; } 23256} 23257 23258# 23259# Set up the sed scripts for CONFIG_FILES section. 23260# 23261 23262# No need to generate the scripts if there are no CONFIG_FILES. 23263# This happens for instance when ./config.status config.h 23264if test -n "$CONFIG_FILES"; then 23265 23266_ACEOF 23267 23268 23269 23270ac_delim='%!_!# ' 23271for ac_last_try in false false false false false :; do 23272 cat >conf$$subs.sed <<_ACEOF 23273SHELL!$SHELL$ac_delim 23274PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 23275PACKAGE_NAME!$PACKAGE_NAME$ac_delim 23276PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 23277PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 23278PACKAGE_STRING!$PACKAGE_STRING$ac_delim 23279PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 23280exec_prefix!$exec_prefix$ac_delim 23281prefix!$prefix$ac_delim 23282program_transform_name!$program_transform_name$ac_delim 23283bindir!$bindir$ac_delim 23284sbindir!$sbindir$ac_delim 23285libexecdir!$libexecdir$ac_delim 23286datarootdir!$datarootdir$ac_delim 23287datadir!$datadir$ac_delim 23288sysconfdir!$sysconfdir$ac_delim 23289sharedstatedir!$sharedstatedir$ac_delim 23290localstatedir!$localstatedir$ac_delim 23291includedir!$includedir$ac_delim 23292oldincludedir!$oldincludedir$ac_delim 23293docdir!$docdir$ac_delim 23294infodir!$infodir$ac_delim 23295htmldir!$htmldir$ac_delim 23296dvidir!$dvidir$ac_delim 23297pdfdir!$pdfdir$ac_delim 23298psdir!$psdir$ac_delim 23299libdir!$libdir$ac_delim 23300localedir!$localedir$ac_delim 23301mandir!$mandir$ac_delim 23302DEFS!$DEFS$ac_delim 23303ECHO_C!$ECHO_C$ac_delim 23304ECHO_N!$ECHO_N$ac_delim 23305ECHO_T!$ECHO_T$ac_delim 23306LIBS!$LIBS$ac_delim 23307build_alias!$build_alias$ac_delim 23308host_alias!$host_alias$ac_delim 23309target_alias!$target_alias$ac_delim 23310INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 23311INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 23312INSTALL_DATA!$INSTALL_DATA$ac_delim 23313CYGPATH_W!$CYGPATH_W$ac_delim 23314PACKAGE!$PACKAGE$ac_delim 23315VERSION!$VERSION$ac_delim 23316ACLOCAL!$ACLOCAL$ac_delim 23317AUTOCONF!$AUTOCONF$ac_delim 23318AUTOMAKE!$AUTOMAKE$ac_delim 23319AUTOHEADER!$AUTOHEADER$ac_delim 23320MAKEINFO!$MAKEINFO$ac_delim 23321install_sh!$install_sh$ac_delim 23322STRIP!$STRIP$ac_delim 23323INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 23324mkdir_p!$mkdir_p$ac_delim 23325AWK!$AWK$ac_delim 23326SET_MAKE!$SET_MAKE$ac_delim 23327am__leading_dot!$am__leading_dot$ac_delim 23328AMTAR!$AMTAR$ac_delim 23329am__tar!$am__tar$ac_delim 23330am__untar!$am__untar$ac_delim 23331build!$build$ac_delim 23332build_cpu!$build_cpu$ac_delim 23333build_vendor!$build_vendor$ac_delim 23334build_os!$build_os$ac_delim 23335host!$host$ac_delim 23336host_cpu!$host_cpu$ac_delim 23337host_vendor!$host_vendor$ac_delim 23338host_os!$host_os$ac_delim 23339CC!$CC$ac_delim 23340CFLAGS!$CFLAGS$ac_delim 23341LDFLAGS!$LDFLAGS$ac_delim 23342CPPFLAGS!$CPPFLAGS$ac_delim 23343ac_ct_CC!$ac_ct_CC$ac_delim 23344EXEEXT!$EXEEXT$ac_delim 23345OBJEXT!$OBJEXT$ac_delim 23346DEPDIR!$DEPDIR$ac_delim 23347am__include!$am__include$ac_delim 23348am__quote!$am__quote$ac_delim 23349AMDEP_TRUE!$AMDEP_TRUE$ac_delim 23350AMDEP_FALSE!$AMDEP_FALSE$ac_delim 23351AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 23352CCDEPMODE!$CCDEPMODE$ac_delim 23353am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 23354am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 23355CPP!$CPP$ac_delim 23356GREP!$GREP$ac_delim 23357EGREP!$EGREP$ac_delim 23358PERL!$PERL$ac_delim 23359CSH!$CSH$ac_delim 23360sphinxbase!$sphinxbase$ac_delim 23361docdata!$docdata$ac_delim 23362epdata!$epdata$ac_delim 23363hmmdata!$hmmdata$ac_delim 23364lmdata!$lmdata$ac_delim 23365tidigitsdata!$tidigitsdata$ac_delim 23366ad_files!$ad_files$ac_delim 23367ad_libs!$ad_libs$ac_delim 23368ad_backend!$ad_backend$ac_delim 23369SED!$SED$ac_delim 23370_ACEOF 23371 23372 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23373 break 23374 elif $ac_last_try; then 23375 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23376echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23377 { (exit 1); exit 1; }; } 23378 else 23379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23380 fi 23381done 23382 23383ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23384if test -n "$ac_eof"; then 23385 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23386 ac_eof=`expr $ac_eof + 1` 23387fi 23388 23389cat >>$CONFIG_STATUS <<_ACEOF 23390cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23391/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23392_ACEOF 23393sed ' 23394s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23395s/^/s,@/; s/!/@,|#_!!_#|/ 23396:n 23397t n 23398s/'"$ac_delim"'$/,g/; t 23399s/$/\\/; p 23400N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23401' >>$CONFIG_STATUS <conf$$subs.sed 23402rm -f conf$$subs.sed 23403cat >>$CONFIG_STATUS <<_ACEOF 23404CEOF$ac_eof 23405_ACEOF 23406 23407 23408ac_delim='%!_!# ' 23409for ac_last_try in false false false false false :; do 23410 cat >conf$$subs.sed <<_ACEOF 23411LN_S!$LN_S$ac_delim 23412ECHO!$ECHO$ac_delim 23413AR!$AR$ac_delim 23414RANLIB!$RANLIB$ac_delim 23415DSYMUTIL!$DSYMUTIL$ac_delim 23416NMEDIT!$NMEDIT$ac_delim 23417CXX!$CXX$ac_delim 23418CXXFLAGS!$CXXFLAGS$ac_delim 23419ac_ct_CXX!$ac_ct_CXX$ac_delim 23420CXXDEPMODE!$CXXDEPMODE$ac_delim 23421am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 23422am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 23423CXXCPP!$CXXCPP$ac_delim 23424F77!$F77$ac_delim 23425FFLAGS!$FFLAGS$ac_delim 23426ac_ct_F77!$ac_ct_F77$ac_delim 23427LIBTOOL!$LIBTOOL$ac_delim 23428LIBOBJS!$LIBOBJS$ac_delim 23429LTLIBOBJS!$LTLIBOBJS$ac_delim 23430_ACEOF 23431 23432 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then 23433 break 23434 elif $ac_last_try; then 23435 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23436echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23437 { (exit 1); exit 1; }; } 23438 else 23439 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23440 fi 23441done 23442 23443ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23444if test -n "$ac_eof"; then 23445 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23446 ac_eof=`expr $ac_eof + 1` 23447fi 23448 23449cat >>$CONFIG_STATUS <<_ACEOF 23450cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23451/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23452_ACEOF 23453sed ' 23454s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23455s/^/s,@/; s/!/@,|#_!!_#|/ 23456:n 23457t n 23458s/'"$ac_delim"'$/,g/; t 23459s/$/\\/; p 23460N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23461' >>$CONFIG_STATUS <conf$$subs.sed 23462rm -f conf$$subs.sed 23463cat >>$CONFIG_STATUS <<_ACEOF 23464:end 23465s/|#_!!_#|//g 23466CEOF$ac_eof 23467_ACEOF 23468 23469 23470# VPATH may cause trouble with some makes, so we remove $(srcdir), 23471# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23472# trailing colons and then remove the whole line if VPATH becomes empty 23473# (actually we leave an empty line to preserve line numbers). 23474if test "x$srcdir" = x.; then 23475 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23476s/:*\$(srcdir):*/:/ 23477s/:*\${srcdir}:*/:/ 23478s/:*@srcdir@:*/:/ 23479s/^\([^=]*=[ ]*\):*/\1/ 23480s/:*$// 23481s/^[^=]*=[ ]*$// 23482}' 23483fi 23484 23485cat >>$CONFIG_STATUS <<\_ACEOF 23486fi # test -n "$CONFIG_FILES" 23487 23488 23489for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS 23490do 23491 case $ac_tag in 23492 :[FHLC]) ac_mode=$ac_tag; continue;; 23493 esac 23494 case $ac_mode$ac_tag in 23495 :[FHL]*:*);; 23496 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23497echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23498 { (exit 1); exit 1; }; };; 23499 :[FH]-) ac_tag=-:-;; 23500 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23501 esac 23502 ac_save_IFS=$IFS 23503 IFS=: 23504 set x $ac_tag 23505 IFS=$ac_save_IFS 23506 shift 23507 ac_file=$1 23508 shift 23509 23510 case $ac_mode in 23511 :L) ac_source=$1;; 23512 :[FH]) 23513 ac_file_inputs= 23514 for ac_f 23515 do 23516 case $ac_f in 23517 -) ac_f="$tmp/stdin";; 23518 *) # Look for the file first in the build tree, then in the source tree 23519 # (if the path is not absolute). The absolute path cannot be DOS-style, 23520 # because $ac_f cannot contain `:'. 23521 test -f "$ac_f" || 23522 case $ac_f in 23523 [\\/$]*) false;; 23524 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23525 esac || 23526 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23527echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23528 { (exit 1); exit 1; }; };; 23529 esac 23530 ac_file_inputs="$ac_file_inputs $ac_f" 23531 done 23532 23533 # Let's still pretend it is `configure' which instantiates (i.e., don't 23534 # use $as_me), people would be surprised to read: 23535 # /* config.h. Generated by config.status. */ 23536 configure_input="Generated from "`IFS=: 23537 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23538 if test x"$ac_file" != x-; then 23539 configure_input="$ac_file. $configure_input" 23540 { echo "$as_me:$LINENO: creating $ac_file" >&5 23541echo "$as_me: creating $ac_file" >&6;} 23542 fi 23543 23544 case $ac_tag in 23545 *:-:* | *:-) cat >"$tmp/stdin";; 23546 esac 23547 ;; 23548 esac 23549 23550 ac_dir=`$as_dirname -- "$ac_file" || 23551$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23552 X"$ac_file" : 'X\(//\)[^/]' \| \ 23553 X"$ac_file" : 'X\(//\)$' \| \ 23554 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23555echo X"$ac_file" | 23556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23557 s//\1/ 23558 q 23559 } 23560 /^X\(\/\/\)[^/].*/{ 23561 s//\1/ 23562 q 23563 } 23564 /^X\(\/\/\)$/{ 23565 s//\1/ 23566 q 23567 } 23568 /^X\(\/\).*/{ 23569 s//\1/ 23570 q 23571 } 23572 s/.*/./; q'` 23573 { as_dir="$ac_dir" 23574 case $as_dir in #( 23575 -*) as_dir=./$as_dir;; 23576 esac 23577 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23578 as_dirs= 23579 while :; do 23580 case $as_dir in #( 23581 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23582 *) as_qdir=$as_dir;; 23583 esac 23584 as_dirs="'$as_qdir' $as_dirs" 23585 as_dir=`$as_dirname -- "$as_dir" || 23586$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23587 X"$as_dir" : 'X\(//\)[^/]' \| \ 23588 X"$as_dir" : 'X\(//\)$' \| \ 23589 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23590echo X"$as_dir" | 23591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23592 s//\1/ 23593 q 23594 } 23595 /^X\(\/\/\)[^/].*/{ 23596 s//\1/ 23597 q 23598 } 23599 /^X\(\/\/\)$/{ 23600 s//\1/ 23601 q 23602 } 23603 /^X\(\/\).*/{ 23604 s//\1/ 23605 q 23606 } 23607 s/.*/./; q'` 23608 test -d "$as_dir" && break 23609 done 23610 test -z "$as_dirs" || eval "mkdir $as_dirs" 23611 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23612echo "$as_me: error: cannot create directory $as_dir" >&2;} 23613 { (exit 1); exit 1; }; }; } 23614 ac_builddir=. 23615 23616case "$ac_dir" in 23617.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23618*) 23619 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23620 # A ".." for each directory in $ac_dir_suffix. 23621 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23622 case $ac_top_builddir_sub in 23623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23625 esac ;; 23626esac 23627ac_abs_top_builddir=$ac_pwd 23628ac_abs_builddir=$ac_pwd$ac_dir_suffix 23629# for backward compatibility: 23630ac_top_builddir=$ac_top_build_prefix 23631 23632case $srcdir in 23633 .) # We are building in place. 23634 ac_srcdir=. 23635 ac_top_srcdir=$ac_top_builddir_sub 23636 ac_abs_top_srcdir=$ac_pwd ;; 23637 [\\/]* | ?:[\\/]* ) # Absolute name. 23638 ac_srcdir=$srcdir$ac_dir_suffix; 23639 ac_top_srcdir=$srcdir 23640 ac_abs_top_srcdir=$srcdir ;; 23641 *) # Relative name. 23642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23643 ac_top_srcdir=$ac_top_build_prefix$srcdir 23644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23645esac 23646ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23647 23648 23649 case $ac_mode in 23650 :F) 23651 # 23652 # CONFIG_FILE 23653 # 23654 23655 case $INSTALL in 23656 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23657 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23658 esac 23659_ACEOF 23660 23661cat >>$CONFIG_STATUS <<\_ACEOF 23662# If the template does not know about datarootdir, expand it. 23663# FIXME: This hack should be removed a few years after 2.60. 23664ac_datarootdir_hack=; ac_datarootdir_seen= 23665 23666case `sed -n '/datarootdir/ { 23667 p 23668 q 23669} 23670/@datadir@/p 23671/@docdir@/p 23672/@infodir@/p 23673/@localedir@/p 23674/@mandir@/p 23675' $ac_file_inputs` in 23676*datarootdir*) ac_datarootdir_seen=yes;; 23677*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23678 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23679echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23680_ACEOF 23681cat >>$CONFIG_STATUS <<_ACEOF 23682 ac_datarootdir_hack=' 23683 s&@datadir@&$datadir&g 23684 s&@docdir@&$docdir&g 23685 s&@infodir@&$infodir&g 23686 s&@localedir@&$localedir&g 23687 s&@mandir@&$mandir&g 23688 s&\\\${datarootdir}&$datarootdir&g' ;; 23689esac 23690_ACEOF 23691 23692# Neutralize VPATH when `$srcdir' = `.'. 23693# Shell code in configure.ac might set extrasub. 23694# FIXME: do we really want to maintain this feature? 23695cat >>$CONFIG_STATUS <<_ACEOF 23696 sed "$ac_vpsub 23697$extrasub 23698_ACEOF 23699cat >>$CONFIG_STATUS <<\_ACEOF 23700:t 23701/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23702s&@configure_input@&$configure_input&;t t 23703s&@top_builddir@&$ac_top_builddir_sub&;t t 23704s&@srcdir@&$ac_srcdir&;t t 23705s&@abs_srcdir@&$ac_abs_srcdir&;t t 23706s&@top_srcdir@&$ac_top_srcdir&;t t 23707s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23708s&@builddir@&$ac_builddir&;t t 23709s&@abs_builddir@&$ac_abs_builddir&;t t 23710s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23711s&@INSTALL@&$ac_INSTALL&;t t 23712$ac_datarootdir_hack 23713" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 23714 23715test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23716 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23717 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23718 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23719which seems to be undefined. Please make sure it is defined." >&5 23720echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23721which seems to be undefined. Please make sure it is defined." >&2;} 23722 23723 rm -f "$tmp/stdin" 23724 case $ac_file in 23725 -) cat "$tmp/out"; rm -f "$tmp/out";; 23726 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23727 esac 23728 ;; 23729 23730 23731 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23732echo "$as_me: executing $ac_file commands" >&6;} 23733 ;; 23734 esac 23735 23736 23737 case $ac_file$ac_mode in 23738 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23739 # Strip MF so we end up with the name of the file. 23740 mf=`echo "$mf" | sed -e 's/:.*$//'` 23741 # Check whether this is an Automake generated Makefile or not. 23742 # We used to match only the files named `Makefile.in', but 23743 # some people rename them; so instead we look at the file content. 23744 # Grep'ing the first line is not enough: some people post-process 23745 # each Makefile.in and add a new line on top of each file to say so. 23746 # So let's grep whole file. 23747 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23748 dirpart=`$as_dirname -- "$mf" || 23749$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23750 X"$mf" : 'X\(//\)[^/]' \| \ 23751 X"$mf" : 'X\(//\)$' \| \ 23752 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23753echo X"$mf" | 23754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23755 s//\1/ 23756 q 23757 } 23758 /^X\(\/\/\)[^/].*/{ 23759 s//\1/ 23760 q 23761 } 23762 /^X\(\/\/\)$/{ 23763 s//\1/ 23764 q 23765 } 23766 /^X\(\/\).*/{ 23767 s//\1/ 23768 q 23769 } 23770 s/.*/./; q'` 23771 else 23772 continue 23773 fi 23774 # Extract the definition of DEPDIR, am__include, and am__quote 23775 # from the Makefile without running `make'. 23776 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23777 test -z "$DEPDIR" && continue 23778 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23779 test -z "am__include" && continue 23780 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23781 # When using ansi2knr, U may be empty or an underscore; expand it 23782 U=`sed -n 's/^U = //p' < "$mf"` 23783 # Find all dependency output files, they are included files with 23784 # $(DEPDIR) in their names. We invoke sed twice because it is the 23785 # simplest approach to changing $(DEPDIR) to its actual value in the 23786 # expansion. 23787 for file in `sed -n " 23788 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23789 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23790 # Make sure the directory exists. 23791 test -f "$dirpart/$file" && continue 23792 fdir=`$as_dirname -- "$file" || 23793$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23794 X"$file" : 'X\(//\)[^/]' \| \ 23795 X"$file" : 'X\(//\)$' \| \ 23796 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23797echo X"$file" | 23798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23799 s//\1/ 23800 q 23801 } 23802 /^X\(\/\/\)[^/].*/{ 23803 s//\1/ 23804 q 23805 } 23806 /^X\(\/\/\)$/{ 23807 s//\1/ 23808 q 23809 } 23810 /^X\(\/\).*/{ 23811 s//\1/ 23812 q 23813 } 23814 s/.*/./; q'` 23815 { as_dir=$dirpart/$fdir 23816 case $as_dir in #( 23817 -*) as_dir=./$as_dir;; 23818 esac 23819 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23820 as_dirs= 23821 while :; do 23822 case $as_dir in #( 23823 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23824 *) as_qdir=$as_dir;; 23825 esac 23826 as_dirs="'$as_qdir' $as_dirs" 23827 as_dir=`$as_dirname -- "$as_dir" || 23828$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23829 X"$as_dir" : 'X\(//\)[^/]' \| \ 23830 X"$as_dir" : 'X\(//\)$' \| \ 23831 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23832echo X"$as_dir" | 23833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23834 s//\1/ 23835 q 23836 } 23837 /^X\(\/\/\)[^/].*/{ 23838 s//\1/ 23839 q 23840 } 23841 /^X\(\/\/\)$/{ 23842 s//\1/ 23843 q 23844 } 23845 /^X\(\/\).*/{ 23846 s//\1/ 23847 q 23848 } 23849 s/.*/./; q'` 23850 test -d "$as_dir" && break 23851 done 23852 test -z "$as_dirs" || eval "mkdir $as_dirs" 23853 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23854echo "$as_me: error: cannot create directory $as_dir" >&2;} 23855 { (exit 1); exit 1; }; }; } 23856 # echo "creating $dirpart/$file" 23857 echo '# dummy' > "$dirpart/$file" 23858 done 23859done 23860 ;; 23861 23862 esac 23863done # for ac_tag 23864 23865 23866{ (exit 0); exit 0; } 23867_ACEOF 23868chmod +x $CONFIG_STATUS 23869ac_clean_files=$ac_clean_files_save 23870 23871 23872# configure is writing to config.log, and then calls config.status. 23873# config.status does its own redirection, appending to config.log. 23874# Unfortunately, on DOS this fails, as config.log is still kept open 23875# by configure, so config.status won't be able to write to it; its 23876# output is simply discarded. So we exec the FD to /dev/null, 23877# effectively closing config.log, so it can be properly (re)opened and 23878# appended to by config.status. When coming back to configure, we 23879# need to make the FD available again. 23880if test "$no_create" != yes; then 23881 ac_cs_success=: 23882 ac_config_status_args= 23883 test "$silent" = yes && 23884 ac_config_status_args="$ac_config_status_args --quiet" 23885 exec 5>/dev/null 23886 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23887 exec 5>>config.log 23888 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23889 # would make configure fail if this is the last instruction. 23890 $ac_cs_success || { (exit 1); exit 1; } 23891fi 23892 23893 23894chmod +x scripts/sphinx3-simple 23895chmod +x src/tests/regression/*.sh 23896