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="vasprintf.c" 734# Factoring default headers for most tests. 735ac_includes_default="\ 736#include <stdio.h> 737#ifdef HAVE_SYS_TYPES_H 738# include <sys/types.h> 739#endif 740#ifdef HAVE_SYS_STAT_H 741# include <sys/stat.h> 742#endif 743#ifdef STDC_HEADERS 744# include <stdlib.h> 745# include <stddef.h> 746#else 747# ifdef HAVE_STDLIB_H 748# include <stdlib.h> 749# endif 750#endif 751#ifdef HAVE_STRING_H 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753# include <memory.h> 754# endif 755# include <string.h> 756#endif 757#ifdef HAVE_STRINGS_H 758# include <strings.h> 759#endif 760#ifdef HAVE_INTTYPES_H 761# include <inttypes.h> 762#endif 763#ifdef HAVE_STDINT_H 764# include <stdint.h> 765#endif 766#ifdef HAVE_UNISTD_H 767# include <unistd.h> 768#endif" 769 770ac_subst_vars='SHELL 771PATH_SEPARATOR 772PACKAGE_NAME 773PACKAGE_TARNAME 774PACKAGE_VERSION 775PACKAGE_STRING 776PACKAGE_BUGREPORT 777exec_prefix 778prefix 779program_transform_name 780bindir 781sbindir 782libexecdir 783datarootdir 784datadir 785sysconfdir 786sharedstatedir 787localstatedir 788includedir 789oldincludedir 790docdir 791infodir 792htmldir 793dvidir 794pdfdir 795psdir 796libdir 797localedir 798mandir 799DEFS 800ECHO_C 801ECHO_N 802ECHO_T 803LIBS 804build_alias 805host_alias 806target_alias 807INSTALL_PROGRAM 808INSTALL_SCRIPT 809INSTALL_DATA 810am__isrc 811CYGPATH_W 812PACKAGE 813VERSION 814ACLOCAL 815AUTOCONF 816AUTOMAKE 817AUTOHEADER 818MAKEINFO 819install_sh 820STRIP 821INSTALL_STRIP_PROGRAM 822mkdir_p 823AWK 824SET_MAKE 825am__leading_dot 826AMTAR 827am__tar 828am__untar 829CC 830CFLAGS 831LDFLAGS 832CPPFLAGS 833ac_ct_CC 834EXEEXT 835OBJEXT 836DEPDIR 837am__include 838am__quote 839AMDEP_TRUE 840AMDEP_FALSE 841AMDEPBACKSLASH 842CCDEPMODE 843am__fastdepCC_TRUE 844am__fastdepCC_FALSE 845CXX 846CXXFLAGS 847ac_ct_CXX 848CXXDEPMODE 849am__fastdepCXX_TRUE 850am__fastdepCXX_FALSE 851build 852build_cpu 853build_vendor 854build_os 855host 856host_cpu 857host_vendor 858host_os 859SED 860GREP 861EGREP 862LN_S 863ECHO 864AR 865RANLIB 866DLLTOOL 867AS 868OBJDUMP 869CPP 870CXXCPP 871F77 872FFLAGS 873ac_ct_F77 874LIBTOOL 875LTNOUNDEF 876ALLOCA 877ALLOCA_H 878DVIPS 879TEXI2PDF 880PERL 881LIBOBJS 882LTLIBOBJS' 883ac_subst_files='' 884 ac_precious_vars='build_alias 885host_alias 886target_alias 887CC 888CFLAGS 889LDFLAGS 890LIBS 891CPPFLAGS 892CXX 893CXXFLAGS 894CCC 895CPP 896CXXCPP 897F77 898FFLAGS' 899 900 901# Initialize some variables set by options. 902ac_init_help= 903ac_init_version=false 904# The variables have the same names as the options, with 905# dashes changed to underlines. 906cache_file=/dev/null 907exec_prefix=NONE 908no_create= 909no_recursion= 910prefix=NONE 911program_prefix=NONE 912program_suffix=NONE 913program_transform_name=s,x,x, 914silent= 915site= 916srcdir= 917verbose= 918x_includes=NONE 919x_libraries=NONE 920 921# Installation directory options. 922# These are left unexpanded so users can "make install exec_prefix=/foo" 923# and all the variables that are supposed to be based on exec_prefix 924# by default will actually change. 925# Use braces instead of parens because sh, perl, etc. also accept them. 926# (The list follows the same order as the GNU Coding Standards.) 927bindir='${exec_prefix}/bin' 928sbindir='${exec_prefix}/sbin' 929libexecdir='${exec_prefix}/libexec' 930datarootdir='${prefix}/share' 931datadir='${datarootdir}' 932sysconfdir='${prefix}/etc' 933sharedstatedir='${prefix}/com' 934localstatedir='${prefix}/var' 935includedir='${prefix}/include' 936oldincludedir='/usr/include' 937docdir='${datarootdir}/doc/${PACKAGE}' 938infodir='${datarootdir}/info' 939htmldir='${docdir}' 940dvidir='${docdir}' 941pdfdir='${docdir}' 942psdir='${docdir}' 943libdir='${exec_prefix}/lib' 944localedir='${datarootdir}/locale' 945mandir='${datarootdir}/man' 946 947ac_prev= 948ac_dashdash= 949for ac_option 950do 951 # If the previous option needs an argument, assign it. 952 if test -n "$ac_prev"; then 953 eval $ac_prev=\$ac_option 954 ac_prev= 955 continue 956 fi 957 958 case $ac_option in 959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 960 *) ac_optarg=yes ;; 961 esac 962 963 # Accept the important Cygnus configure options, so we can diagnose typos. 964 965 case $ac_dashdash$ac_option in 966 --) 967 ac_dashdash=yes ;; 968 969 -bindir | --bindir | --bindi | --bind | --bin | --bi) 970 ac_prev=bindir ;; 971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 972 bindir=$ac_optarg ;; 973 974 -build | --build | --buil | --bui | --bu) 975 ac_prev=build_alias ;; 976 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 977 build_alias=$ac_optarg ;; 978 979 -cache-file | --cache-file | --cache-fil | --cache-fi \ 980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 981 ac_prev=cache_file ;; 982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 984 cache_file=$ac_optarg ;; 985 986 --config-cache | -C) 987 cache_file=config.cache ;; 988 989 -datadir | --datadir | --datadi | --datad) 990 ac_prev=datadir ;; 991 -datadir=* | --datadir=* | --datadi=* | --datad=*) 992 datadir=$ac_optarg ;; 993 994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 995 | --dataroo | --dataro | --datar) 996 ac_prev=datarootdir ;; 997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 999 datarootdir=$ac_optarg ;; 1000 1001 -disable-* | --disable-*) 1002 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1003 # Reject names that are not valid shell variable names. 1004 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1005 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1006 { (exit 1); exit 1; }; } 1007 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1008 eval enable_$ac_feature=no ;; 1009 1010 -docdir | --docdir | --docdi | --doc | --do) 1011 ac_prev=docdir ;; 1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1013 docdir=$ac_optarg ;; 1014 1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1016 ac_prev=dvidir ;; 1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1018 dvidir=$ac_optarg ;; 1019 1020 -enable-* | --enable-*) 1021 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1022 # Reject names that are not valid shell variable names. 1023 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1024 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1025 { (exit 1); exit 1; }; } 1026 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1027 eval enable_$ac_feature=\$ac_optarg ;; 1028 1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1031 | --exec | --exe | --ex) 1032 ac_prev=exec_prefix ;; 1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1035 | --exec=* | --exe=* | --ex=*) 1036 exec_prefix=$ac_optarg ;; 1037 1038 -gas | --gas | --ga | --g) 1039 # Obsolete; use --with-gas. 1040 with_gas=yes ;; 1041 1042 -help | --help | --hel | --he | -h) 1043 ac_init_help=long ;; 1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1045 ac_init_help=recursive ;; 1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1047 ac_init_help=short ;; 1048 1049 -host | --host | --hos | --ho) 1050 ac_prev=host_alias ;; 1051 -host=* | --host=* | --hos=* | --ho=*) 1052 host_alias=$ac_optarg ;; 1053 1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1055 ac_prev=htmldir ;; 1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1057 | --ht=*) 1058 htmldir=$ac_optarg ;; 1059 1060 -includedir | --includedir | --includedi | --included | --include \ 1061 | --includ | --inclu | --incl | --inc) 1062 ac_prev=includedir ;; 1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1064 | --includ=* | --inclu=* | --incl=* | --inc=*) 1065 includedir=$ac_optarg ;; 1066 1067 -infodir | --infodir | --infodi | --infod | --info | --inf) 1068 ac_prev=infodir ;; 1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1070 infodir=$ac_optarg ;; 1071 1072 -libdir | --libdir | --libdi | --libd) 1073 ac_prev=libdir ;; 1074 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1075 libdir=$ac_optarg ;; 1076 1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1078 | --libexe | --libex | --libe) 1079 ac_prev=libexecdir ;; 1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1081 | --libexe=* | --libex=* | --libe=*) 1082 libexecdir=$ac_optarg ;; 1083 1084 -localedir | --localedir | --localedi | --localed | --locale) 1085 ac_prev=localedir ;; 1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1087 localedir=$ac_optarg ;; 1088 1089 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1090 | --localstate | --localstat | --localsta | --localst | --locals) 1091 ac_prev=localstatedir ;; 1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1094 localstatedir=$ac_optarg ;; 1095 1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1097 ac_prev=mandir ;; 1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1099 mandir=$ac_optarg ;; 1100 1101 -nfp | --nfp | --nf) 1102 # Obsolete; use --without-fp. 1103 with_fp=no ;; 1104 1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1106 | --no-cr | --no-c | -n) 1107 no_create=yes ;; 1108 1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1111 no_recursion=yes ;; 1112 1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1115 | --oldin | --oldi | --old | --ol | --o) 1116 ac_prev=oldincludedir ;; 1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1120 oldincludedir=$ac_optarg ;; 1121 1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1123 ac_prev=prefix ;; 1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1125 prefix=$ac_optarg ;; 1126 1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1128 | --program-pre | --program-pr | --program-p) 1129 ac_prev=program_prefix ;; 1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1132 program_prefix=$ac_optarg ;; 1133 1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1135 | --program-suf | --program-su | --program-s) 1136 ac_prev=program_suffix ;; 1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1139 program_suffix=$ac_optarg ;; 1140 1141 -program-transform-name | --program-transform-name \ 1142 | --program-transform-nam | --program-transform-na \ 1143 | --program-transform-n | --program-transform- \ 1144 | --program-transform | --program-transfor \ 1145 | --program-transfo | --program-transf \ 1146 | --program-trans | --program-tran \ 1147 | --progr-tra | --program-tr | --program-t) 1148 ac_prev=program_transform_name ;; 1149 -program-transform-name=* | --program-transform-name=* \ 1150 | --program-transform-nam=* | --program-transform-na=* \ 1151 | --program-transform-n=* | --program-transform-=* \ 1152 | --program-transform=* | --program-transfor=* \ 1153 | --program-transfo=* | --program-transf=* \ 1154 | --program-trans=* | --program-tran=* \ 1155 | --progr-tra=* | --program-tr=* | --program-t=*) 1156 program_transform_name=$ac_optarg ;; 1157 1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1159 ac_prev=pdfdir ;; 1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1161 pdfdir=$ac_optarg ;; 1162 1163 -psdir | --psdir | --psdi | --psd | --ps) 1164 ac_prev=psdir ;; 1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1166 psdir=$ac_optarg ;; 1167 1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1169 | -silent | --silent | --silen | --sile | --sil) 1170 silent=yes ;; 1171 1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1173 ac_prev=sbindir ;; 1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1175 | --sbi=* | --sb=*) 1176 sbindir=$ac_optarg ;; 1177 1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1180 | --sharedst | --shareds | --shared | --share | --shar \ 1181 | --sha | --sh) 1182 ac_prev=sharedstatedir ;; 1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1186 | --sha=* | --sh=*) 1187 sharedstatedir=$ac_optarg ;; 1188 1189 -site | --site | --sit) 1190 ac_prev=site ;; 1191 -site=* | --site=* | --sit=*) 1192 site=$ac_optarg ;; 1193 1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1195 ac_prev=srcdir ;; 1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1197 srcdir=$ac_optarg ;; 1198 1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1200 | --syscon | --sysco | --sysc | --sys | --sy) 1201 ac_prev=sysconfdir ;; 1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1204 sysconfdir=$ac_optarg ;; 1205 1206 -target | --target | --targe | --targ | --tar | --ta | --t) 1207 ac_prev=target_alias ;; 1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1209 target_alias=$ac_optarg ;; 1210 1211 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1212 verbose=yes ;; 1213 1214 -version | --version | --versio | --versi | --vers | -V) 1215 ac_init_version=: ;; 1216 1217 -with-* | --with-*) 1218 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1221 { echo "$as_me: error: invalid package name: $ac_package" >&2 1222 { (exit 1); exit 1; }; } 1223 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1224 eval with_$ac_package=\$ac_optarg ;; 1225 1226 -without-* | --without-*) 1227 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1228 # Reject names that are not valid shell variable names. 1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1230 { echo "$as_me: error: invalid package name: $ac_package" >&2 1231 { (exit 1); exit 1; }; } 1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1233 eval with_$ac_package=no ;; 1234 1235 --x) 1236 # Obsolete; use --with-x. 1237 with_x=yes ;; 1238 1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1240 | --x-incl | --x-inc | --x-in | --x-i) 1241 ac_prev=x_includes ;; 1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1244 x_includes=$ac_optarg ;; 1245 1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1248 ac_prev=x_libraries ;; 1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1251 x_libraries=$ac_optarg ;; 1252 1253 -*) { echo "$as_me: error: unrecognized option: $ac_option 1254Try \`$0 --help' for more information." >&2 1255 { (exit 1); exit 1; }; } 1256 ;; 1257 1258 *=*) 1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1260 # Reject names that are not valid shell variable names. 1261 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1262 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1263 { (exit 1); exit 1; }; } 1264 eval $ac_envvar=\$ac_optarg 1265 export $ac_envvar ;; 1266 1267 *) 1268 # FIXME: should be removed in autoconf 3.0. 1269 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1271 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1273 ;; 1274 1275 esac 1276done 1277 1278if test -n "$ac_prev"; then 1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1280 { echo "$as_me: error: missing argument to $ac_option" >&2 1281 { (exit 1); exit 1; }; } 1282fi 1283 1284# Be sure to have absolute directory names. 1285for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1286 datadir sysconfdir sharedstatedir localstatedir includedir \ 1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1288 libdir localedir mandir 1289do 1290 eval ac_val=\$$ac_var 1291 case $ac_val in 1292 [\\/$]* | ?:[\\/]* ) continue;; 1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1294 esac 1295 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1296 { (exit 1); exit 1; }; } 1297done 1298 1299# There might be people who depend on the old broken behavior: `$host' 1300# used to hold the argument of --host etc. 1301# FIXME: To remove some day. 1302build=$build_alias 1303host=$host_alias 1304target=$target_alias 1305 1306# FIXME: To remove some day. 1307if test "x$host_alias" != x; then 1308 if test "x$build_alias" = x; then 1309 cross_compiling=maybe 1310 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1311 If a cross compiler is detected then cross compile mode will be used." >&2 1312 elif test "x$build_alias" != "x$host_alias"; then 1313 cross_compiling=yes 1314 fi 1315fi 1316 1317ac_tool_prefix= 1318test -n "$host_alias" && ac_tool_prefix=$host_alias- 1319 1320test "$silent" = yes && exec 6>/dev/null 1321 1322 1323ac_pwd=`pwd` && test -n "$ac_pwd" && 1324ac_ls_di=`ls -di .` && 1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1326 { echo "$as_me: error: Working directory cannot be determined" >&2 1327 { (exit 1); exit 1; }; } 1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1329 { echo "$as_me: error: pwd does not report name of working directory" >&2 1330 { (exit 1); exit 1; }; } 1331 1332 1333# Find the source files, if location was not specified. 1334if test -z "$srcdir"; then 1335 ac_srcdir_defaulted=yes 1336 # Try the directory containing this script, then the parent directory. 1337 ac_confdir=`$as_dirname -- "$0" || 1338$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1339 X"$0" : 'X\(//\)[^/]' \| \ 1340 X"$0" : 'X\(//\)$' \| \ 1341 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1342echo X"$0" | 1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)[^/].*/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\/\)$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\).*/{ 1356 s//\1/ 1357 q 1358 } 1359 s/.*/./; q'` 1360 srcdir=$ac_confdir 1361 if test ! -r "$srcdir/$ac_unique_file"; then 1362 srcdir=.. 1363 fi 1364else 1365 ac_srcdir_defaulted=no 1366fi 1367if test ! -r "$srcdir/$ac_unique_file"; then 1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1369 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1370 { (exit 1); exit 1; }; } 1371fi 1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1373ac_abs_confdir=`( 1374 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1375 { (exit 1); exit 1; }; } 1376 pwd)` 1377# When building in place, set srcdir=. 1378if test "$ac_abs_confdir" = "$ac_pwd"; then 1379 srcdir=. 1380fi 1381# Remove unnecessary trailing slashes from srcdir. 1382# Double slashes in file names in object file debugging info 1383# mess up M-x gdb in Emacs. 1384case $srcdir in 1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1386esac 1387for ac_var in $ac_precious_vars; do 1388 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_env_${ac_var}_value=\$${ac_var} 1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1391 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1392done 1393 1394# 1395# Report the --help message. 1396# 1397if test "$ac_init_help" = "long"; then 1398 # Omit some internal or obsolete options to make the list less imposing. 1399 # This message is too long to be a string in the A/UX 3.1 sh. 1400 cat <<_ACEOF 1401\`configure' configures this package to adapt to many kinds of systems. 1402 1403Usage: $0 [OPTION]... [VAR=VALUE]... 1404 1405To assign environment variables (e.g., CC, CFLAGS...), specify them as 1406VAR=VALUE. See below for descriptions of some of the useful variables. 1407 1408Defaults for the options are specified in brackets. 1409 1410Configuration: 1411 -h, --help display this help and exit 1412 --help=short display options specific to this package 1413 --help=recursive display the short help of all the included packages 1414 -V, --version display version information and exit 1415 -q, --quiet, --silent do not print \`checking...' messages 1416 --cache-file=FILE cache test results in FILE [disabled] 1417 -C, --config-cache alias for \`--cache-file=config.cache' 1418 -n, --no-create do not create output files 1419 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1420 1421Installation directories: 1422 --prefix=PREFIX install architecture-independent files in PREFIX 1423 [$ac_default_prefix] 1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1425 [PREFIX] 1426 1427By default, \`make install' will install all the files in 1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1429an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1430for instance \`--prefix=\$HOME'. 1431 1432For better control, use the options below. 1433 1434Fine tuning of the installation directories: 1435 --bindir=DIR user executables [EPREFIX/bin] 1436 --sbindir=DIR system admin executables [EPREFIX/sbin] 1437 --libexecdir=DIR program executables [EPREFIX/libexec] 1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1441 --libdir=DIR object code libraries [EPREFIX/lib] 1442 --includedir=DIR C header files [PREFIX/include] 1443 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1446 --infodir=DIR info documentation [DATAROOTDIR/info] 1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1448 --mandir=DIR man documentation [DATAROOTDIR/man] 1449 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1450 --htmldir=DIR html documentation [DOCDIR] 1451 --dvidir=DIR dvi documentation [DOCDIR] 1452 --pdfdir=DIR pdf documentation [DOCDIR] 1453 --psdir=DIR ps documentation [DOCDIR] 1454_ACEOF 1455 1456 cat <<\_ACEOF 1457 1458Program names: 1459 --program-prefix=PREFIX prepend PREFIX to installed program names 1460 --program-suffix=SUFFIX append SUFFIX to installed program names 1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1462 1463System types: 1464 --build=BUILD configure for building on BUILD [guessed] 1465 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1466_ACEOF 1467fi 1468 1469if test -n "$ac_init_help"; then 1470 1471 cat <<\_ACEOF 1472 1473Optional Features: 1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1476 --disable-dependency-tracking speeds up one-time build 1477 --enable-dependency-tracking do not reject slow dependency extractors 1478 --enable-shared[=PKGS] build shared libraries [default=yes] 1479 --enable-static[=PKGS] build static libraries [default=yes] 1480 --enable-fast-install[=PKGS] 1481 optimize for fast installation [default=yes] 1482 --disable-libtool-lock avoid locking (might break parallel builds) 1483 1484Optional Packages: 1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1487 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1488 --with-pic try to use only PIC/non-PIC objects [default=use 1489 both] 1490 --with-tags[=TAGS] include additional configurations [automatic] 1491 1492Some influential environment variables: 1493 CC C compiler command 1494 CFLAGS C compiler flags 1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1496 nonstandard directory <lib dir> 1497 LIBS libraries to pass to the linker, e.g. -l<library> 1498 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1499 you have headers in a nonstandard directory <include dir> 1500 CXX C++ compiler command 1501 CXXFLAGS C++ compiler flags 1502 CPP C preprocessor 1503 CXXCPP C++ preprocessor 1504 F77 Fortran 77 compiler command 1505 FFLAGS Fortran 77 compiler flags 1506 1507Use these variables to override the choices made by `configure' or to help 1508it to find libraries and programs with nonstandard names/locations. 1509 1510_ACEOF 1511ac_status=$? 1512fi 1513 1514if test "$ac_init_help" = "recursive"; then 1515 # If there are subdirs, report their specific --help. 1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1517 test -d "$ac_dir" || continue 1518 ac_builddir=. 1519 1520case "$ac_dir" in 1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1522*) 1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1524 # A ".." for each directory in $ac_dir_suffix. 1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1526 case $ac_top_builddir_sub in 1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1529 esac ;; 1530esac 1531ac_abs_top_builddir=$ac_pwd 1532ac_abs_builddir=$ac_pwd$ac_dir_suffix 1533# for backward compatibility: 1534ac_top_builddir=$ac_top_build_prefix 1535 1536case $srcdir in 1537 .) # We are building in place. 1538 ac_srcdir=. 1539 ac_top_srcdir=$ac_top_builddir_sub 1540 ac_abs_top_srcdir=$ac_pwd ;; 1541 [\\/]* | ?:[\\/]* ) # Absolute name. 1542 ac_srcdir=$srcdir$ac_dir_suffix; 1543 ac_top_srcdir=$srcdir 1544 ac_abs_top_srcdir=$srcdir ;; 1545 *) # Relative name. 1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1547 ac_top_srcdir=$ac_top_build_prefix$srcdir 1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1549esac 1550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1551 1552 cd "$ac_dir" || { ac_status=$?; continue; } 1553 # Check for guested configure. 1554 if test -f "$ac_srcdir/configure.gnu"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1557 elif test -f "$ac_srcdir/configure"; then 1558 echo && 1559 $SHELL "$ac_srcdir/configure" --help=recursive 1560 else 1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1562 fi || ac_status=$? 1563 cd "$ac_pwd" || { ac_status=$?; break; } 1564 done 1565fi 1566 1567test -n "$ac_init_help" && exit $ac_status 1568if $ac_init_version; then 1569 cat <<\_ACEOF 1570configure 1571generated by GNU Autoconf 2.61 1572 1573Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15742002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1575This configure script is free software; the Free Software Foundation 1576gives unlimited permission to copy, distribute and modify it. 1577_ACEOF 1578 exit 1579fi 1580cat >config.log <<_ACEOF 1581This file contains any messages produced by compilers while 1582running configure, to aid debugging if configure makes a mistake. 1583 1584It was created by $as_me, which was 1585generated by GNU Autoconf 2.61. Invocation command line was 1586 1587 $ $0 $@ 1588 1589_ACEOF 1590exec 5>>config.log 1591{ 1592cat <<_ASUNAME 1593## --------- ## 1594## Platform. ## 1595## --------- ## 1596 1597hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1598uname -m = `(uname -m) 2>/dev/null || echo unknown` 1599uname -r = `(uname -r) 2>/dev/null || echo unknown` 1600uname -s = `(uname -s) 2>/dev/null || echo unknown` 1601uname -v = `(uname -v) 2>/dev/null || echo unknown` 1602 1603/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1604/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1605 1606/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1607/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1608/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1609/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1610/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1611/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1612/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1613 1614_ASUNAME 1615 1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1617for as_dir in $PATH 1618do 1619 IFS=$as_save_IFS 1620 test -z "$as_dir" && as_dir=. 1621 echo "PATH: $as_dir" 1622done 1623IFS=$as_save_IFS 1624 1625} >&5 1626 1627cat >&5 <<_ACEOF 1628 1629 1630## ----------- ## 1631## Core tests. ## 1632## ----------- ## 1633 1634_ACEOF 1635 1636 1637# Keep a trace of the command line. 1638# Strip out --no-create and --no-recursion so they do not pile up. 1639# Strip out --silent because we don't want to record it for future runs. 1640# Also quote any args containing shell meta-characters. 1641# Make two passes to allow for proper duplicate-argument suppression. 1642ac_configure_args= 1643ac_configure_args0= 1644ac_configure_args1= 1645ac_must_keep_next=false 1646for ac_pass in 1 2 1647do 1648 for ac_arg 1649 do 1650 case $ac_arg in 1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1653 | -silent | --silent | --silen | --sile | --sil) 1654 continue ;; 1655 *\'*) 1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1657 esac 1658 case $ac_pass in 1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1660 2) 1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1662 if test $ac_must_keep_next = true; then 1663 ac_must_keep_next=false # Got value, back to normal. 1664 else 1665 case $ac_arg in 1666 *=* | --config-cache | -C | -disable-* | --disable-* \ 1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1669 | -with-* | --with-* | -without-* | --without-* | --x) 1670 case "$ac_configure_args0 " in 1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1672 esac 1673 ;; 1674 -* ) ac_must_keep_next=true ;; 1675 esac 1676 fi 1677 ac_configure_args="$ac_configure_args '$ac_arg'" 1678 ;; 1679 esac 1680 done 1681done 1682$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1683$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1684 1685# When interrupted or exit'd, cleanup temporary files, and complete 1686# config.log. We remove comments because anyway the quotes in there 1687# would cause problems or look ugly. 1688# WARNING: Use '\'' to represent an apostrophe within the trap. 1689# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1690trap 'exit_status=$? 1691 # Save into config.log some information that might help in debugging. 1692 { 1693 echo 1694 1695 cat <<\_ASBOX 1696## ---------------- ## 1697## Cache variables. ## 1698## ---------------- ## 1699_ASBOX 1700 echo 1701 # The following way of writing the cache mishandles newlines in values, 1702( 1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1704 eval ac_val=\$$ac_var 1705 case $ac_val in #( 1706 *${as_nl}*) 1707 case $ac_var in #( 1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1709echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1710 esac 1711 case $ac_var in #( 1712 _ | IFS | as_nl) ;; #( 1713 *) $as_unset $ac_var ;; 1714 esac ;; 1715 esac 1716 done 1717 (set) 2>&1 | 1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1719 *${as_nl}ac_space=\ *) 1720 sed -n \ 1721 "s/'\''/'\''\\\\'\'''\''/g; 1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1723 ;; #( 1724 *) 1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1726 ;; 1727 esac | 1728 sort 1729) 1730 echo 1731 1732 cat <<\_ASBOX 1733## ----------------- ## 1734## Output variables. ## 1735## ----------------- ## 1736_ASBOX 1737 echo 1738 for ac_var in $ac_subst_vars 1739 do 1740 eval ac_val=\$$ac_var 1741 case $ac_val in 1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1743 esac 1744 echo "$ac_var='\''$ac_val'\''" 1745 done | sort 1746 echo 1747 1748 if test -n "$ac_subst_files"; then 1749 cat <<\_ASBOX 1750## ------------------- ## 1751## File substitutions. ## 1752## ------------------- ## 1753_ASBOX 1754 echo 1755 for ac_var in $ac_subst_files 1756 do 1757 eval ac_val=\$$ac_var 1758 case $ac_val in 1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1760 esac 1761 echo "$ac_var='\''$ac_val'\''" 1762 done | sort 1763 echo 1764 fi 1765 1766 if test -s confdefs.h; then 1767 cat <<\_ASBOX 1768## ----------- ## 1769## confdefs.h. ## 1770## ----------- ## 1771_ASBOX 1772 echo 1773 cat confdefs.h 1774 echo 1775 fi 1776 test "$ac_signal" != 0 && 1777 echo "$as_me: caught signal $ac_signal" 1778 echo "$as_me: exit $exit_status" 1779 } >&5 1780 rm -f core *.core core.conftest.* && 1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1782 exit $exit_status 1783' 0 1784for ac_signal in 1 2 13 15; do 1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1786done 1787ac_signal=0 1788 1789# confdefs.h avoids OS command line length limits that DEFS can exceed. 1790rm -f -r conftest* confdefs.h 1791 1792# Predefined preprocessor variables. 1793 1794cat >>confdefs.h <<_ACEOF 1795#define PACKAGE_NAME "$PACKAGE_NAME" 1796_ACEOF 1797 1798 1799cat >>confdefs.h <<_ACEOF 1800#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1801_ACEOF 1802 1803 1804cat >>confdefs.h <<_ACEOF 1805#define PACKAGE_VERSION "$PACKAGE_VERSION" 1806_ACEOF 1807 1808 1809cat >>confdefs.h <<_ACEOF 1810#define PACKAGE_STRING "$PACKAGE_STRING" 1811_ACEOF 1812 1813 1814cat >>confdefs.h <<_ACEOF 1815#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1816_ACEOF 1817 1818 1819# Let the site file select an alternate cache file if it wants to. 1820# Prefer explicitly selected file to automatically selected ones. 1821if test -n "$CONFIG_SITE"; then 1822 set x "$CONFIG_SITE" 1823elif test "x$prefix" != xNONE; then 1824 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1825else 1826 set x "$ac_default_prefix/share/config.site" \ 1827 "$ac_default_prefix/etc/config.site" 1828fi 1829shift 1830for ac_site_file 1831do 1832 if test -r "$ac_site_file"; then 1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1834echo "$as_me: loading site script $ac_site_file" >&6;} 1835 sed 's/^/| /' "$ac_site_file" >&5 1836 . "$ac_site_file" 1837 fi 1838done 1839 1840if test -r "$cache_file"; then 1841 # Some versions of bash will fail to source /dev/null (special 1842 # files actually), so we avoid doing that. 1843 if test -f "$cache_file"; then 1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1845echo "$as_me: loading cache $cache_file" >&6;} 1846 case $cache_file in 1847 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1848 *) . "./$cache_file";; 1849 esac 1850 fi 1851else 1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1853echo "$as_me: creating cache $cache_file" >&6;} 1854 >$cache_file 1855fi 1856 1857# Check that the precious variables saved in the cache have kept the same 1858# value. 1859ac_cache_corrupted=false 1860for ac_var in $ac_precious_vars; do 1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1862 eval ac_new_set=\$ac_env_${ac_var}_set 1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1864 eval ac_new_val=\$ac_env_${ac_var}_value 1865 case $ac_old_set,$ac_new_set in 1866 set,) 1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1868echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1869 ac_cache_corrupted=: ;; 1870 ,set) 1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1872echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1873 ac_cache_corrupted=: ;; 1874 ,);; 1875 *) 1876 if test "x$ac_old_val" != "x$ac_new_val"; then 1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1878echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1880echo "$as_me: former value: $ac_old_val" >&2;} 1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1882echo "$as_me: current value: $ac_new_val" >&2;} 1883 ac_cache_corrupted=: 1884 fi;; 1885 esac 1886 # Pass precious variables to config.status. 1887 if test "$ac_new_set" = set; then 1888 case $ac_new_val in 1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1890 *) ac_arg=$ac_var=$ac_new_val ;; 1891 esac 1892 case " $ac_configure_args " in 1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1895 esac 1896 fi 1897done 1898if $ac_cache_corrupted; then 1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1900echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1902echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1903 { (exit 1); exit 1; }; } 1904fi 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922ac_ext=c 1923ac_cpp='$CPP $CPPFLAGS' 1924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1926ac_compiler_gnu=$ac_cv_c_compiler_gnu 1927 1928 1929 1930ac_aux_dir= 1931for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do 1932 if test -f "$ac_dir/install-sh"; then 1933 ac_aux_dir=$ac_dir 1934 ac_install_sh="$ac_aux_dir/install-sh -c" 1935 break 1936 elif test -f "$ac_dir/install.sh"; then 1937 ac_aux_dir=$ac_dir 1938 ac_install_sh="$ac_aux_dir/install.sh -c" 1939 break 1940 elif test -f "$ac_dir/shtool"; then 1941 ac_aux_dir=$ac_dir 1942 ac_install_sh="$ac_aux_dir/shtool install -c" 1943 break 1944 fi 1945done 1946if test -z "$ac_aux_dir"; then 1947 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../build-aux \"$srcdir\"/../../build-aux" >&5 1948echo "$as_me: error: cannot find install-sh or install.sh in ../../build-aux \"$srcdir\"/../../build-aux" >&2;} 1949 { (exit 1); exit 1; }; } 1950fi 1951 1952# These three variables are undocumented and unsupported, 1953# and are intended to be withdrawn in a future Autoconf release. 1954# They can cause serious problems if a builder's source tree is in a directory 1955# whose full name contains unusual characters. 1956ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1957ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1958ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1959 1960 1961am__api_version='1.10' 1962 1963# Find a good install program. We prefer a C program (faster), 1964# so one script is as good as another. But avoid the broken or 1965# incompatible versions: 1966# SysV /etc/install, /usr/sbin/install 1967# SunOS /usr/etc/install 1968# IRIX /sbin/install 1969# AIX /bin/install 1970# AmigaOS /C/install, which installs bootblocks on floppy discs 1971# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1972# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1973# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1974# OS/2's system install, which has a completely different semantic 1975# ./install, which can be erroneously created by make from ./install.sh. 1976{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1977echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1978if test -z "$INSTALL"; then 1979if test "${ac_cv_path_install+set}" = set; then 1980 echo $ECHO_N "(cached) $ECHO_C" >&6 1981else 1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1983for as_dir in $PATH 1984do 1985 IFS=$as_save_IFS 1986 test -z "$as_dir" && as_dir=. 1987 # Account for people who put trailing slashes in PATH elements. 1988case $as_dir/ in 1989 ./ | .// | /cC/* | \ 1990 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1991 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1992 /usr/ucb/* ) ;; 1993 *) 1994 # OSF1 and SCO ODT 3.0 have their own names for install. 1995 # Don't use installbsd from OSF since it installs stuff as root 1996 # by default. 1997 for ac_prog in ginstall scoinst install; do 1998 for ac_exec_ext in '' $ac_executable_extensions; do 1999 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2000 if test $ac_prog = install && 2001 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2002 # AIX install. It has an incompatible calling convention. 2003 : 2004 elif test $ac_prog = install && 2005 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2006 # program-specific install script used by HP pwplus--don't use. 2007 : 2008 else 2009 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2010 break 3 2011 fi 2012 fi 2013 done 2014 done 2015 ;; 2016esac 2017done 2018IFS=$as_save_IFS 2019 2020 2021fi 2022 if test "${ac_cv_path_install+set}" = set; then 2023 INSTALL=$ac_cv_path_install 2024 else 2025 # As a last resort, use the slow shell script. Don't cache a 2026 # value for INSTALL within a source directory, because that will 2027 # break other packages using the cache if that directory is 2028 # removed, or if the value is a relative name. 2029 INSTALL=$ac_install_sh 2030 fi 2031fi 2032{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2033echo "${ECHO_T}$INSTALL" >&6; } 2034 2035# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2036# It thinks the first close brace ends the variable substitution. 2037test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2038 2039test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2040 2041test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2042 2043{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2044echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2045# Just in case 2046sleep 1 2047echo timestamp > conftest.file 2048# Do `set' in a subshell so we don't clobber the current shell's 2049# arguments. Must try -L first in case configure is actually a 2050# symlink; some systems play weird games with the mod time of symlinks 2051# (eg FreeBSD returns the mod time of the symlink's containing 2052# directory). 2053if ( 2054 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2055 if test "$*" = "X"; then 2056 # -L didn't work. 2057 set X `ls -t $srcdir/configure conftest.file` 2058 fi 2059 rm -f conftest.file 2060 if test "$*" != "X $srcdir/configure conftest.file" \ 2061 && test "$*" != "X conftest.file $srcdir/configure"; then 2062 2063 # If neither matched, then we have a broken ls. This can happen 2064 # if, for instance, CONFIG_SHELL is bash and it inherits a 2065 # broken ls alias from the environment. This has actually 2066 # happened. Such a system could not be considered "sane". 2067 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2068alias in your environment" >&5 2069echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2070alias in your environment" >&2;} 2071 { (exit 1); exit 1; }; } 2072 fi 2073 2074 test "$2" = conftest.file 2075 ) 2076then 2077 # Ok. 2078 : 2079else 2080 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2081Check your system clock" >&5 2082echo "$as_me: error: newly created file is older than distributed files! 2083Check your system clock" >&2;} 2084 { (exit 1); exit 1; }; } 2085fi 2086{ echo "$as_me:$LINENO: result: yes" >&5 2087echo "${ECHO_T}yes" >&6; } 2088test "$program_prefix" != NONE && 2089 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2090# Use a double $ so make ignores it. 2091test "$program_suffix" != NONE && 2092 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2093# Double any \ or $. echo might interpret backslashes. 2094# By default was `s,x,x', remove it if useless. 2095cat <<\_ACEOF >conftest.sed 2096s/[\\$]/&&/g;s/;s,x,x,$// 2097_ACEOF 2098program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2099rm -f conftest.sed 2100 2101# expand $ac_aux_dir to an absolute path 2102am_aux_dir=`cd $ac_aux_dir && pwd` 2103 2104test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2105# Use eval to expand $SHELL 2106if eval "$MISSING --run true"; then 2107 am_missing_run="$MISSING --run " 2108else 2109 am_missing_run= 2110 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2111echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2112fi 2113 2114{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2115echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2116if test -z "$MKDIR_P"; then 2117 if test "${ac_cv_path_mkdir+set}" = set; then 2118 echo $ECHO_N "(cached) $ECHO_C" >&6 2119else 2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2121for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2122do 2123 IFS=$as_save_IFS 2124 test -z "$as_dir" && as_dir=. 2125 for ac_prog in mkdir gmkdir; do 2126 for ac_exec_ext in '' $ac_executable_extensions; do 2127 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2128 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2129 'mkdir (GNU coreutils) '* | \ 2130 'mkdir (coreutils) '* | \ 2131 'mkdir (fileutils) '4.1*) 2132 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2133 break 3;; 2134 esac 2135 done 2136 done 2137done 2138IFS=$as_save_IFS 2139 2140fi 2141 2142 if test "${ac_cv_path_mkdir+set}" = set; then 2143 MKDIR_P="$ac_cv_path_mkdir -p" 2144 else 2145 # As a last resort, use the slow shell script. Don't cache a 2146 # value for MKDIR_P within a source directory, because that will 2147 # break other packages using the cache if that directory is 2148 # removed, or if the value is a relative name. 2149 test -d ./--version && rmdir ./--version 2150 MKDIR_P="$ac_install_sh -d" 2151 fi 2152fi 2153{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2154echo "${ECHO_T}$MKDIR_P" >&6; } 2155 2156mkdir_p="$MKDIR_P" 2157case $mkdir_p in 2158 [\\/$]* | ?:[\\/]*) ;; 2159 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2160esac 2161 2162for ac_prog in gawk mawk nawk awk 2163do 2164 # Extract the first word of "$ac_prog", so it can be a program name with args. 2165set dummy $ac_prog; ac_word=$2 2166{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2168if test "${ac_cv_prog_AWK+set}" = set; then 2169 echo $ECHO_N "(cached) $ECHO_C" >&6 2170else 2171 if test -n "$AWK"; then 2172 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2173else 2174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2175for as_dir in $PATH 2176do 2177 IFS=$as_save_IFS 2178 test -z "$as_dir" && as_dir=. 2179 for ac_exec_ext in '' $ac_executable_extensions; do 2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2181 ac_cv_prog_AWK="$ac_prog" 2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2183 break 2 2184 fi 2185done 2186done 2187IFS=$as_save_IFS 2188 2189fi 2190fi 2191AWK=$ac_cv_prog_AWK 2192if test -n "$AWK"; then 2193 { echo "$as_me:$LINENO: result: $AWK" >&5 2194echo "${ECHO_T}$AWK" >&6; } 2195else 2196 { echo "$as_me:$LINENO: result: no" >&5 2197echo "${ECHO_T}no" >&6; } 2198fi 2199 2200 2201 test -n "$AWK" && break 2202done 2203 2204{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2205echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2206set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2207if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2208 echo $ECHO_N "(cached) $ECHO_C" >&6 2209else 2210 cat >conftest.make <<\_ACEOF 2211SHELL = /bin/sh 2212all: 2213 @echo '@@@%%%=$(MAKE)=@@@%%%' 2214_ACEOF 2215# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2216case `${MAKE-make} -f conftest.make 2>/dev/null` in 2217 *@@@%%%=?*=@@@%%%*) 2218 eval ac_cv_prog_make_${ac_make}_set=yes;; 2219 *) 2220 eval ac_cv_prog_make_${ac_make}_set=no;; 2221esac 2222rm -f conftest.make 2223fi 2224if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2225 { echo "$as_me:$LINENO: result: yes" >&5 2226echo "${ECHO_T}yes" >&6; } 2227 SET_MAKE= 2228else 2229 { echo "$as_me:$LINENO: result: no" >&5 2230echo "${ECHO_T}no" >&6; } 2231 SET_MAKE="MAKE=${MAKE-make}" 2232fi 2233 2234rm -rf .tst 2>/dev/null 2235mkdir .tst 2>/dev/null 2236if test -d .tst; then 2237 am__leading_dot=. 2238else 2239 am__leading_dot=_ 2240fi 2241rmdir .tst 2>/dev/null 2242 2243if test "`cd $srcdir && pwd`" != "`pwd`"; then 2244 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2245 # is not polluted with repeated "-I." 2246 am__isrc=' -I$(srcdir)' 2247 # test to see if srcdir already configured 2248 if test -f $srcdir/config.status; then 2249 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2250echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2251 { (exit 1); exit 1; }; } 2252 fi 2253fi 2254 2255# test whether we have cygpath 2256if test -z "$CYGPATH_W"; then 2257 if (cygpath --version) >/dev/null 2>/dev/null; then 2258 CYGPATH_W='cygpath -w' 2259 else 2260 CYGPATH_W=echo 2261 fi 2262fi 2263 2264 2265# Define the identity of the package. 2266 PACKAGE=libasprintf 2267 VERSION=1.0 2268 2269 2270cat >>confdefs.h <<_ACEOF 2271#define PACKAGE "$PACKAGE" 2272_ACEOF 2273 2274 2275cat >>confdefs.h <<_ACEOF 2276#define VERSION "$VERSION" 2277_ACEOF 2278 2279# Some tools Automake needs. 2280 2281ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2282 2283 2284AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2285 2286 2287AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2288 2289 2290AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2291 2292 2293MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2294 2295install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2296 2297# Installed binaries are usually stripped using `strip' when the user 2298# run `make install-strip'. However `strip' might not be the right 2299# tool to use in cross-compilation environments, therefore Automake 2300# will honor the `STRIP' environment variable to overrule this program. 2301if test "$cross_compiling" != no; then 2302 if test -n "$ac_tool_prefix"; then 2303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2304set dummy ${ac_tool_prefix}strip; ac_word=$2 2305{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2307if test "${ac_cv_prog_STRIP+set}" = set; then 2308 echo $ECHO_N "(cached) $ECHO_C" >&6 2309else 2310 if test -n "$STRIP"; then 2311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2312else 2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2314for as_dir in $PATH 2315do 2316 IFS=$as_save_IFS 2317 test -z "$as_dir" && as_dir=. 2318 for ac_exec_ext in '' $ac_executable_extensions; do 2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2320 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2322 break 2 2323 fi 2324done 2325done 2326IFS=$as_save_IFS 2327 2328fi 2329fi 2330STRIP=$ac_cv_prog_STRIP 2331if test -n "$STRIP"; then 2332 { echo "$as_me:$LINENO: result: $STRIP" >&5 2333echo "${ECHO_T}$STRIP" >&6; } 2334else 2335 { echo "$as_me:$LINENO: result: no" >&5 2336echo "${ECHO_T}no" >&6; } 2337fi 2338 2339 2340fi 2341if test -z "$ac_cv_prog_STRIP"; then 2342 ac_ct_STRIP=$STRIP 2343 # Extract the first word of "strip", so it can be a program name with args. 2344set dummy strip; ac_word=$2 2345{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2347if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2348 echo $ECHO_N "(cached) $ECHO_C" >&6 2349else 2350 if test -n "$ac_ct_STRIP"; then 2351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2352else 2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2354for as_dir in $PATH 2355do 2356 IFS=$as_save_IFS 2357 test -z "$as_dir" && as_dir=. 2358 for ac_exec_ext in '' $ac_executable_extensions; do 2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2360 ac_cv_prog_ac_ct_STRIP="strip" 2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2362 break 2 2363 fi 2364done 2365done 2366IFS=$as_save_IFS 2367 2368fi 2369fi 2370ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2371if test -n "$ac_ct_STRIP"; then 2372 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2373echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2374else 2375 { echo "$as_me:$LINENO: result: no" >&5 2376echo "${ECHO_T}no" >&6; } 2377fi 2378 2379 if test "x$ac_ct_STRIP" = x; then 2380 STRIP=":" 2381 else 2382 case $cross_compiling:$ac_tool_warned in 2383yes:) 2384{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2385whose name does not start with the host triplet. If you think this 2386configuration is useful to you, please write to autoconf@gnu.org." >&5 2387echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2388whose name does not start with the host triplet. If you think this 2389configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2390ac_tool_warned=yes ;; 2391esac 2392 STRIP=$ac_ct_STRIP 2393 fi 2394else 2395 STRIP="$ac_cv_prog_STRIP" 2396fi 2397 2398fi 2399INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2400 2401# We need awk for the "check" target. The system "awk" is bad on 2402# some platforms. 2403# Always define AMTAR for backward compatibility. 2404 2405AMTAR=${AMTAR-"${am_missing_run}tar"} 2406 2407am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2408 2409 2410 2411 2412 2413ac_config_headers="$ac_config_headers config.h" 2414 2415 2416ac_ext=c 2417ac_cpp='$CPP $CPPFLAGS' 2418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2420ac_compiler_gnu=$ac_cv_c_compiler_gnu 2421if test -n "$ac_tool_prefix"; then 2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2423set dummy ${ac_tool_prefix}gcc; ac_word=$2 2424{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2426if test "${ac_cv_prog_CC+set}" = set; then 2427 echo $ECHO_N "(cached) $ECHO_C" >&6 2428else 2429 if test -n "$CC"; then 2430 ac_cv_prog_CC="$CC" # Let the user override the test. 2431else 2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2433for as_dir in $PATH 2434do 2435 IFS=$as_save_IFS 2436 test -z "$as_dir" && as_dir=. 2437 for ac_exec_ext in '' $ac_executable_extensions; do 2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2439 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2441 break 2 2442 fi 2443done 2444done 2445IFS=$as_save_IFS 2446 2447fi 2448fi 2449CC=$ac_cv_prog_CC 2450if test -n "$CC"; then 2451 { echo "$as_me:$LINENO: result: $CC" >&5 2452echo "${ECHO_T}$CC" >&6; } 2453else 2454 { echo "$as_me:$LINENO: result: no" >&5 2455echo "${ECHO_T}no" >&6; } 2456fi 2457 2458 2459fi 2460if test -z "$ac_cv_prog_CC"; then 2461 ac_ct_CC=$CC 2462 # Extract the first word of "gcc", so it can be a program name with args. 2463set dummy gcc; ac_word=$2 2464{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2467 echo $ECHO_N "(cached) $ECHO_C" >&6 2468else 2469 if test -n "$ac_ct_CC"; then 2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2471else 2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473for as_dir in $PATH 2474do 2475 IFS=$as_save_IFS 2476 test -z "$as_dir" && as_dir=. 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2479 ac_cv_prog_ac_ct_CC="gcc" 2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2481 break 2 2482 fi 2483done 2484done 2485IFS=$as_save_IFS 2486 2487fi 2488fi 2489ac_ct_CC=$ac_cv_prog_ac_ct_CC 2490if test -n "$ac_ct_CC"; then 2491 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2492echo "${ECHO_T}$ac_ct_CC" >&6; } 2493else 2494 { echo "$as_me:$LINENO: result: no" >&5 2495echo "${ECHO_T}no" >&6; } 2496fi 2497 2498 if test "x$ac_ct_CC" = x; then 2499 CC="" 2500 else 2501 case $cross_compiling:$ac_tool_warned in 2502yes:) 2503{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2504whose name does not start with the host triplet. If you think this 2505configuration is useful to you, please write to autoconf@gnu.org." >&5 2506echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2507whose name does not start with the host triplet. If you think this 2508configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2509ac_tool_warned=yes ;; 2510esac 2511 CC=$ac_ct_CC 2512 fi 2513else 2514 CC="$ac_cv_prog_CC" 2515fi 2516 2517if test -z "$CC"; then 2518 if test -n "$ac_tool_prefix"; then 2519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2520set dummy ${ac_tool_prefix}cc; ac_word=$2 2521{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2523if test "${ac_cv_prog_CC+set}" = set; then 2524 echo $ECHO_N "(cached) $ECHO_C" >&6 2525else 2526 if test -n "$CC"; then 2527 ac_cv_prog_CC="$CC" # Let the user override the test. 2528else 2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2530for as_dir in $PATH 2531do 2532 IFS=$as_save_IFS 2533 test -z "$as_dir" && as_dir=. 2534 for ac_exec_ext in '' $ac_executable_extensions; do 2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2536 ac_cv_prog_CC="${ac_tool_prefix}cc" 2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2538 break 2 2539 fi 2540done 2541done 2542IFS=$as_save_IFS 2543 2544fi 2545fi 2546CC=$ac_cv_prog_CC 2547if test -n "$CC"; then 2548 { echo "$as_me:$LINENO: result: $CC" >&5 2549echo "${ECHO_T}$CC" >&6; } 2550else 2551 { echo "$as_me:$LINENO: result: no" >&5 2552echo "${ECHO_T}no" >&6; } 2553fi 2554 2555 2556 fi 2557fi 2558if test -z "$CC"; then 2559 # Extract the first word of "cc", so it can be a program name with args. 2560set dummy cc; ac_word=$2 2561{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2563if test "${ac_cv_prog_CC+set}" = set; then 2564 echo $ECHO_N "(cached) $ECHO_C" >&6 2565else 2566 if test -n "$CC"; then 2567 ac_cv_prog_CC="$CC" # Let the user override the test. 2568else 2569 ac_prog_rejected=no 2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2571for as_dir in $PATH 2572do 2573 IFS=$as_save_IFS 2574 test -z "$as_dir" && as_dir=. 2575 for ac_exec_ext in '' $ac_executable_extensions; do 2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2578 ac_prog_rejected=yes 2579 continue 2580 fi 2581 ac_cv_prog_CC="cc" 2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2583 break 2 2584 fi 2585done 2586done 2587IFS=$as_save_IFS 2588 2589if test $ac_prog_rejected = yes; then 2590 # We found a bogon in the path, so make sure we never use it. 2591 set dummy $ac_cv_prog_CC 2592 shift 2593 if test $# != 0; then 2594 # We chose a different compiler from the bogus one. 2595 # However, it has the same basename, so the bogon will be chosen 2596 # first if we set CC to just the basename; use the full file name. 2597 shift 2598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2599 fi 2600fi 2601fi 2602fi 2603CC=$ac_cv_prog_CC 2604if test -n "$CC"; then 2605 { echo "$as_me:$LINENO: result: $CC" >&5 2606echo "${ECHO_T}$CC" >&6; } 2607else 2608 { echo "$as_me:$LINENO: result: no" >&5 2609echo "${ECHO_T}no" >&6; } 2610fi 2611 2612 2613fi 2614if test -z "$CC"; then 2615 if test -n "$ac_tool_prefix"; then 2616 for ac_prog in cl.exe 2617 do 2618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2619set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2620{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2622if test "${ac_cv_prog_CC+set}" = set; then 2623 echo $ECHO_N "(cached) $ECHO_C" >&6 2624else 2625 if test -n "$CC"; then 2626 ac_cv_prog_CC="$CC" # Let the user override the test. 2627else 2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH 2630do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2637 break 2 2638 fi 2639done 2640done 2641IFS=$as_save_IFS 2642 2643fi 2644fi 2645CC=$ac_cv_prog_CC 2646if test -n "$CC"; then 2647 { echo "$as_me:$LINENO: result: $CC" >&5 2648echo "${ECHO_T}$CC" >&6; } 2649else 2650 { echo "$as_me:$LINENO: result: no" >&5 2651echo "${ECHO_T}no" >&6; } 2652fi 2653 2654 2655 test -n "$CC" && break 2656 done 2657fi 2658if test -z "$CC"; then 2659 ac_ct_CC=$CC 2660 for ac_prog in cl.exe 2661do 2662 # Extract the first word of "$ac_prog", so it can be a program name with args. 2663set dummy $ac_prog; 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_ac_ct_CC+set}" = set; then 2667 echo $ECHO_N "(cached) $ECHO_C" >&6 2668else 2669 if test -n "$ac_ct_CC"; then 2670 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog" 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 2689ac_ct_CC=$ac_cv_prog_ac_ct_CC 2690if test -n "$ac_ct_CC"; then 2691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2692echo "${ECHO_T}$ac_ct_CC" >&6; } 2693else 2694 { echo "$as_me:$LINENO: result: no" >&5 2695echo "${ECHO_T}no" >&6; } 2696fi 2697 2698 2699 test -n "$ac_ct_CC" && break 2700done 2701 2702 if test "x$ac_ct_CC" = x; then 2703 CC="" 2704 else 2705 case $cross_compiling:$ac_tool_warned in 2706yes:) 2707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2708whose name does not start with the host triplet. If you think this 2709configuration is useful to you, please write to autoconf@gnu.org." >&5 2710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2711whose name does not start with the host triplet. If you think this 2712configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2713ac_tool_warned=yes ;; 2714esac 2715 CC=$ac_ct_CC 2716 fi 2717fi 2718 2719fi 2720 2721 2722test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2723See \`config.log' for more details." >&5 2724echo "$as_me: error: no acceptable C compiler found in \$PATH 2725See \`config.log' for more details." >&2;} 2726 { (exit 1); exit 1; }; } 2727 2728# Provide some information about the compiler. 2729echo "$as_me:$LINENO: checking for C compiler version" >&5 2730ac_compiler=`set X $ac_compile; echo $2` 2731{ (ac_try="$ac_compiler --version >&5" 2732case "(($ac_try" in 2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2734 *) ac_try_echo=$ac_try;; 2735esac 2736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2737 (eval "$ac_compiler --version >&5") 2>&5 2738 ac_status=$? 2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2740 (exit $ac_status); } 2741{ (ac_try="$ac_compiler -v >&5" 2742case "(($ac_try" in 2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2744 *) ac_try_echo=$ac_try;; 2745esac 2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2747 (eval "$ac_compiler -v >&5") 2>&5 2748 ac_status=$? 2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2750 (exit $ac_status); } 2751{ (ac_try="$ac_compiler -V >&5" 2752case "(($ac_try" in 2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2754 *) ac_try_echo=$ac_try;; 2755esac 2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2757 (eval "$ac_compiler -V >&5") 2>&5 2758 ac_status=$? 2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); } 2761 2762cat >conftest.$ac_ext <<_ACEOF 2763/* confdefs.h. */ 2764_ACEOF 2765cat confdefs.h >>conftest.$ac_ext 2766cat >>conftest.$ac_ext <<_ACEOF 2767/* end confdefs.h. */ 2768 2769int 2770main () 2771{ 2772 2773 ; 2774 return 0; 2775} 2776_ACEOF 2777ac_clean_files_save=$ac_clean_files 2778ac_clean_files="$ac_clean_files a.out a.exe b.out" 2779# Try to create an executable without -o first, disregard a.out. 2780# It will help us diagnose broken compilers, and finding out an intuition 2781# of exeext. 2782{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2783echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2784ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2785# 2786# List of possible output files, starting from the most likely. 2787# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2788# only as a last resort. b.out is created by i960 compilers. 2789ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2790# 2791# The IRIX 6 linker writes into existing files which may not be 2792# executable, retaining their permissions. Remove them first so a 2793# subsequent execution test works. 2794ac_rmfiles= 2795for ac_file in $ac_files 2796do 2797 case $ac_file in 2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2799 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2800 esac 2801done 2802rm -f $ac_rmfiles 2803 2804if { (ac_try="$ac_link_default" 2805case "(($ac_try" in 2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2807 *) ac_try_echo=$ac_try;; 2808esac 2809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2810 (eval "$ac_link_default") 2>&5 2811 ac_status=$? 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); }; then 2814 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2815# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2816# in a Makefile. We should not override ac_cv_exeext if it was cached, 2817# so that the user can short-circuit this test for compilers unknown to 2818# Autoconf. 2819for ac_file in $ac_files '' 2820do 2821 test -f "$ac_file" || continue 2822 case $ac_file in 2823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2824 ;; 2825 [ab].out ) 2826 # We found the default executable, but exeext='' is most 2827 # certainly right. 2828 break;; 2829 *.* ) 2830 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2831 then :; else 2832 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2833 fi 2834 # We set ac_cv_exeext here because the later test for it is not 2835 # safe: cross compilers may not add the suffix if given an `-o' 2836 # argument, so we may need to know it at that point already. 2837 # Even if this section looks crufty: it has the advantage of 2838 # actually working. 2839 break;; 2840 * ) 2841 break;; 2842 esac 2843done 2844test "$ac_cv_exeext" = no && ac_cv_exeext= 2845 2846else 2847 ac_file='' 2848fi 2849 2850{ echo "$as_me:$LINENO: result: $ac_file" >&5 2851echo "${ECHO_T}$ac_file" >&6; } 2852if test -z "$ac_file"; then 2853 echo "$as_me: failed program was:" >&5 2854sed 's/^/| /' conftest.$ac_ext >&5 2855 2856{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2857See \`config.log' for more details." >&5 2858echo "$as_me: error: C compiler cannot create executables 2859See \`config.log' for more details." >&2;} 2860 { (exit 77); exit 77; }; } 2861fi 2862 2863ac_exeext=$ac_cv_exeext 2864 2865# Check that the compiler produces executables we can run. If not, either 2866# the compiler is broken, or we cross compile. 2867{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2868echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2869# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2870# If not cross compiling, check that we can run a simple program. 2871if test "$cross_compiling" != yes; then 2872 if { ac_try='./$ac_file' 2873 { (case "(($ac_try" in 2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2875 *) ac_try_echo=$ac_try;; 2876esac 2877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2878 (eval "$ac_try") 2>&5 2879 ac_status=$? 2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2881 (exit $ac_status); }; }; then 2882 cross_compiling=no 2883 else 2884 if test "$cross_compiling" = maybe; then 2885 cross_compiling=yes 2886 else 2887 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2888If you meant to cross compile, use \`--host'. 2889See \`config.log' for more details." >&5 2890echo "$as_me: error: cannot run C compiled programs. 2891If you meant to cross compile, use \`--host'. 2892See \`config.log' for more details." >&2;} 2893 { (exit 1); exit 1; }; } 2894 fi 2895 fi 2896fi 2897{ echo "$as_me:$LINENO: result: yes" >&5 2898echo "${ECHO_T}yes" >&6; } 2899 2900rm -f a.out a.exe conftest$ac_cv_exeext b.out 2901ac_clean_files=$ac_clean_files_save 2902# Check that the compiler produces executables we can run. If not, either 2903# the compiler is broken, or we cross compile. 2904{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2905echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2906{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2907echo "${ECHO_T}$cross_compiling" >&6; } 2908 2909{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2910echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2911if { (ac_try="$ac_link" 2912case "(($ac_try" in 2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2914 *) ac_try_echo=$ac_try;; 2915esac 2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2917 (eval "$ac_link") 2>&5 2918 ac_status=$? 2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2920 (exit $ac_status); }; then 2921 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2922# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2923# work properly (i.e., refer to `conftest.exe'), while it won't with 2924# `rm'. 2925for ac_file in conftest.exe conftest conftest.*; do 2926 test -f "$ac_file" || continue 2927 case $ac_file in 2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2929 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2930 break;; 2931 * ) break;; 2932 esac 2933done 2934else 2935 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2936See \`config.log' for more details." >&5 2937echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2938See \`config.log' for more details." >&2;} 2939 { (exit 1); exit 1; }; } 2940fi 2941 2942rm -f conftest$ac_cv_exeext 2943{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2944echo "${ECHO_T}$ac_cv_exeext" >&6; } 2945 2946rm -f conftest.$ac_ext 2947EXEEXT=$ac_cv_exeext 2948ac_exeext=$EXEEXT 2949{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2950echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2951if test "${ac_cv_objext+set}" = set; then 2952 echo $ECHO_N "(cached) $ECHO_C" >&6 2953else 2954 cat >conftest.$ac_ext <<_ACEOF 2955/* confdefs.h. */ 2956_ACEOF 2957cat confdefs.h >>conftest.$ac_ext 2958cat >>conftest.$ac_ext <<_ACEOF 2959/* end confdefs.h. */ 2960 2961int 2962main () 2963{ 2964 2965 ; 2966 return 0; 2967} 2968_ACEOF 2969rm -f conftest.o conftest.obj 2970if { (ac_try="$ac_compile" 2971case "(($ac_try" in 2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2973 *) ac_try_echo=$ac_try;; 2974esac 2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2976 (eval "$ac_compile") 2>&5 2977 ac_status=$? 2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2979 (exit $ac_status); }; then 2980 for ac_file in conftest.o conftest.obj conftest.*; do 2981 test -f "$ac_file" || continue; 2982 case $ac_file in 2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2984 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2985 break;; 2986 esac 2987done 2988else 2989 echo "$as_me: failed program was:" >&5 2990sed 's/^/| /' conftest.$ac_ext >&5 2991 2992{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2993See \`config.log' for more details." >&5 2994echo "$as_me: error: cannot compute suffix of object files: cannot compile 2995See \`config.log' for more details." >&2;} 2996 { (exit 1); exit 1; }; } 2997fi 2998 2999rm -f conftest.$ac_cv_objext conftest.$ac_ext 3000fi 3001{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3002echo "${ECHO_T}$ac_cv_objext" >&6; } 3003OBJEXT=$ac_cv_objext 3004ac_objext=$OBJEXT 3005{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3006echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3007if test "${ac_cv_c_compiler_gnu+set}" = set; then 3008 echo $ECHO_N "(cached) $ECHO_C" >&6 3009else 3010 cat >conftest.$ac_ext <<_ACEOF 3011/* confdefs.h. */ 3012_ACEOF 3013cat confdefs.h >>conftest.$ac_ext 3014cat >>conftest.$ac_ext <<_ACEOF 3015/* end confdefs.h. */ 3016 3017int 3018main () 3019{ 3020#ifndef __GNUC__ 3021 choke me 3022#endif 3023 3024 ; 3025 return 0; 3026} 3027_ACEOF 3028rm -f conftest.$ac_objext 3029if { (ac_try="$ac_compile" 3030case "(($ac_try" in 3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3032 *) ac_try_echo=$ac_try;; 3033esac 3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3035 (eval "$ac_compile") 2>conftest.er1 3036 ac_status=$? 3037 grep -v '^ *+' conftest.er1 >conftest.err 3038 rm -f conftest.er1 3039 cat conftest.err >&5 3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3041 (exit $ac_status); } && { 3042 test -z "$ac_c_werror_flag" || 3043 test ! -s conftest.err 3044 } && test -s conftest.$ac_objext; then 3045 ac_compiler_gnu=yes 3046else 3047 echo "$as_me: failed program was:" >&5 3048sed 's/^/| /' conftest.$ac_ext >&5 3049 3050 ac_compiler_gnu=no 3051fi 3052 3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3054ac_cv_c_compiler_gnu=$ac_compiler_gnu 3055 3056fi 3057{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3058echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3059GCC=`test $ac_compiler_gnu = yes && echo yes` 3060ac_test_CFLAGS=${CFLAGS+set} 3061ac_save_CFLAGS=$CFLAGS 3062{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3063echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3064if test "${ac_cv_prog_cc_g+set}" = set; then 3065 echo $ECHO_N "(cached) $ECHO_C" >&6 3066else 3067 ac_save_c_werror_flag=$ac_c_werror_flag 3068 ac_c_werror_flag=yes 3069 ac_cv_prog_cc_g=no 3070 CFLAGS="-g" 3071 cat >conftest.$ac_ext <<_ACEOF 3072/* confdefs.h. */ 3073_ACEOF 3074cat confdefs.h >>conftest.$ac_ext 3075cat >>conftest.$ac_ext <<_ACEOF 3076/* end confdefs.h. */ 3077 3078int 3079main () 3080{ 3081 3082 ; 3083 return 0; 3084} 3085_ACEOF 3086rm -f conftest.$ac_objext 3087if { (ac_try="$ac_compile" 3088case "(($ac_try" in 3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3090 *) ac_try_echo=$ac_try;; 3091esac 3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3093 (eval "$ac_compile") 2>conftest.er1 3094 ac_status=$? 3095 grep -v '^ *+' conftest.er1 >conftest.err 3096 rm -f conftest.er1 3097 cat conftest.err >&5 3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); } && { 3100 test -z "$ac_c_werror_flag" || 3101 test ! -s conftest.err 3102 } && test -s conftest.$ac_objext; then 3103 ac_cv_prog_cc_g=yes 3104else 3105 echo "$as_me: failed program was:" >&5 3106sed 's/^/| /' conftest.$ac_ext >&5 3107 3108 CFLAGS="" 3109 cat >conftest.$ac_ext <<_ACEOF 3110/* confdefs.h. */ 3111_ACEOF 3112cat confdefs.h >>conftest.$ac_ext 3113cat >>conftest.$ac_ext <<_ACEOF 3114/* end confdefs.h. */ 3115 3116int 3117main () 3118{ 3119 3120 ; 3121 return 0; 3122} 3123_ACEOF 3124rm -f conftest.$ac_objext 3125if { (ac_try="$ac_compile" 3126case "(($ac_try" in 3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3128 *) ac_try_echo=$ac_try;; 3129esac 3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3131 (eval "$ac_compile") 2>conftest.er1 3132 ac_status=$? 3133 grep -v '^ *+' conftest.er1 >conftest.err 3134 rm -f conftest.er1 3135 cat conftest.err >&5 3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3137 (exit $ac_status); } && { 3138 test -z "$ac_c_werror_flag" || 3139 test ! -s conftest.err 3140 } && test -s conftest.$ac_objext; then 3141 : 3142else 3143 echo "$as_me: failed program was:" >&5 3144sed 's/^/| /' conftest.$ac_ext >&5 3145 3146 ac_c_werror_flag=$ac_save_c_werror_flag 3147 CFLAGS="-g" 3148 cat >conftest.$ac_ext <<_ACEOF 3149/* confdefs.h. */ 3150_ACEOF 3151cat confdefs.h >>conftest.$ac_ext 3152cat >>conftest.$ac_ext <<_ACEOF 3153/* end confdefs.h. */ 3154 3155int 3156main () 3157{ 3158 3159 ; 3160 return 0; 3161} 3162_ACEOF 3163rm -f conftest.$ac_objext 3164if { (ac_try="$ac_compile" 3165case "(($ac_try" in 3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3167 *) ac_try_echo=$ac_try;; 3168esac 3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3170 (eval "$ac_compile") 2>conftest.er1 3171 ac_status=$? 3172 grep -v '^ *+' conftest.er1 >conftest.err 3173 rm -f conftest.er1 3174 cat conftest.err >&5 3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3176 (exit $ac_status); } && { 3177 test -z "$ac_c_werror_flag" || 3178 test ! -s conftest.err 3179 } && test -s conftest.$ac_objext; then 3180 ac_cv_prog_cc_g=yes 3181else 3182 echo "$as_me: failed program was:" >&5 3183sed 's/^/| /' conftest.$ac_ext >&5 3184 3185 3186fi 3187 3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3189fi 3190 3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3192fi 3193 3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3195 ac_c_werror_flag=$ac_save_c_werror_flag 3196fi 3197{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3198echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3199if test "$ac_test_CFLAGS" = set; then 3200 CFLAGS=$ac_save_CFLAGS 3201elif test $ac_cv_prog_cc_g = yes; then 3202 if test "$GCC" = yes; then 3203 CFLAGS="-g -O2" 3204 else 3205 CFLAGS="-g" 3206 fi 3207else 3208 if test "$GCC" = yes; then 3209 CFLAGS="-O2" 3210 else 3211 CFLAGS= 3212 fi 3213fi 3214{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3215echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3216if test "${ac_cv_prog_cc_c89+set}" = set; then 3217 echo $ECHO_N "(cached) $ECHO_C" >&6 3218else 3219 ac_cv_prog_cc_c89=no 3220ac_save_CC=$CC 3221cat >conftest.$ac_ext <<_ACEOF 3222/* confdefs.h. */ 3223_ACEOF 3224cat confdefs.h >>conftest.$ac_ext 3225cat >>conftest.$ac_ext <<_ACEOF 3226/* end confdefs.h. */ 3227#include <stdarg.h> 3228#include <stdio.h> 3229#include <sys/types.h> 3230#include <sys/stat.h> 3231/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3232struct buf { int x; }; 3233FILE * (*rcsopen) (struct buf *, struct stat *, int); 3234static char *e (p, i) 3235 char **p; 3236 int i; 3237{ 3238 return p[i]; 3239} 3240static char *f (char * (*g) (char **, int), char **p, ...) 3241{ 3242 char *s; 3243 va_list v; 3244 va_start (v,p); 3245 s = g (p, va_arg (v,int)); 3246 va_end (v); 3247 return s; 3248} 3249 3250/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3251 function prototypes and stuff, but not '\xHH' hex character constants. 3252 These don't provoke an error unfortunately, instead are silently treated 3253 as 'x'. The following induces an error, until -std is added to get 3254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3255 array size at least. It's necessary to write '\x00'==0 to get something 3256 that's true only with -std. */ 3257int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3258 3259/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3260 inside strings and character constants. */ 3261#define FOO(x) 'x' 3262int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3263 3264int test (int i, double x); 3265struct s1 {int (*f) (int a);}; 3266struct s2 {int (*f) (double a);}; 3267int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3268int argc; 3269char **argv; 3270int 3271main () 3272{ 3273return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3274 ; 3275 return 0; 3276} 3277_ACEOF 3278for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3280do 3281 CC="$ac_save_CC $ac_arg" 3282 rm -f conftest.$ac_objext 3283if { (ac_try="$ac_compile" 3284case "(($ac_try" in 3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3286 *) ac_try_echo=$ac_try;; 3287esac 3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3289 (eval "$ac_compile") 2>conftest.er1 3290 ac_status=$? 3291 grep -v '^ *+' conftest.er1 >conftest.err 3292 rm -f conftest.er1 3293 cat conftest.err >&5 3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3295 (exit $ac_status); } && { 3296 test -z "$ac_c_werror_flag" || 3297 test ! -s conftest.err 3298 } && test -s conftest.$ac_objext; then 3299 ac_cv_prog_cc_c89=$ac_arg 3300else 3301 echo "$as_me: failed program was:" >&5 3302sed 's/^/| /' conftest.$ac_ext >&5 3303 3304 3305fi 3306 3307rm -f core conftest.err conftest.$ac_objext 3308 test "x$ac_cv_prog_cc_c89" != "xno" && break 3309done 3310rm -f conftest.$ac_ext 3311CC=$ac_save_CC 3312 3313fi 3314# AC_CACHE_VAL 3315case "x$ac_cv_prog_cc_c89" in 3316 x) 3317 { echo "$as_me:$LINENO: result: none needed" >&5 3318echo "${ECHO_T}none needed" >&6; } ;; 3319 xno) 3320 { echo "$as_me:$LINENO: result: unsupported" >&5 3321echo "${ECHO_T}unsupported" >&6; } ;; 3322 *) 3323 CC="$CC $ac_cv_prog_cc_c89" 3324 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3325echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3326esac 3327 3328 3329ac_ext=c 3330ac_cpp='$CPP $CPPFLAGS' 3331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3333ac_compiler_gnu=$ac_cv_c_compiler_gnu 3334DEPDIR="${am__leading_dot}deps" 3335 3336ac_config_commands="$ac_config_commands depfiles" 3337 3338 3339am_make=${MAKE-make} 3340cat > confinc << 'END' 3341am__doit: 3342 @echo done 3343.PHONY: am__doit 3344END 3345# If we don't find an include directive, just comment out the code. 3346{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3347echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3348am__include="#" 3349am__quote= 3350_am_result=none 3351# First try GNU make style include. 3352echo "include confinc" > confmf 3353# We grep out `Entering directory' and `Leaving directory' 3354# messages which can occur if `w' ends up in MAKEFLAGS. 3355# In particular we don't look at `^make:' because GNU make might 3356# be invoked under some other name (usually "gmake"), in which 3357# case it prints its new name instead of `make'. 3358if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3359 am__include=include 3360 am__quote= 3361 _am_result=GNU 3362fi 3363# Now try BSD make style include. 3364if test "$am__include" = "#"; then 3365 echo '.include "confinc"' > confmf 3366 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3367 am__include=.include 3368 am__quote="\"" 3369 _am_result=BSD 3370 fi 3371fi 3372 3373 3374{ echo "$as_me:$LINENO: result: $_am_result" >&5 3375echo "${ECHO_T}$_am_result" >&6; } 3376rm -f confinc confmf 3377 3378# Check whether --enable-dependency-tracking was given. 3379if test "${enable_dependency_tracking+set}" = set; then 3380 enableval=$enable_dependency_tracking; 3381fi 3382 3383if test "x$enable_dependency_tracking" != xno; then 3384 am_depcomp="$ac_aux_dir/depcomp" 3385 AMDEPBACKSLASH='\' 3386fi 3387 if test "x$enable_dependency_tracking" != xno; then 3388 AMDEP_TRUE= 3389 AMDEP_FALSE='#' 3390else 3391 AMDEP_TRUE='#' 3392 AMDEP_FALSE= 3393fi 3394 3395 3396 3397depcc="$CC" am_compiler_list= 3398 3399{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3400echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3401if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3402 echo $ECHO_N "(cached) $ECHO_C" >&6 3403else 3404 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3405 # We make a subdir and do the tests there. Otherwise we can end up 3406 # making bogus files that we don't know about and never remove. For 3407 # instance it was reported that on HP-UX the gcc test will end up 3408 # making a dummy file named `D' -- because `-MD' means `put the output 3409 # in D'. 3410 mkdir conftest.dir 3411 # Copy depcomp to subdir because otherwise we won't find it if we're 3412 # using a relative directory. 3413 cp "$am_depcomp" conftest.dir 3414 cd conftest.dir 3415 # We will build objects and dependencies in a subdirectory because 3416 # it helps to detect inapplicable dependency modes. For instance 3417 # both Tru64's cc and ICC support -MD to output dependencies as a 3418 # side effect of compilation, but ICC will put the dependencies in 3419 # the current directory while Tru64 will put them in the object 3420 # directory. 3421 mkdir sub 3422 3423 am_cv_CC_dependencies_compiler_type=none 3424 if test "$am_compiler_list" = ""; then 3425 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3426 fi 3427 for depmode in $am_compiler_list; do 3428 # Setup a source with many dependencies, because some compilers 3429 # like to wrap large dependency lists on column 80 (with \), and 3430 # we should not choose a depcomp mode which is confused by this. 3431 # 3432 # We need to recreate these files for each test, as the compiler may 3433 # overwrite some of them when testing with obscure command lines. 3434 # This happens at least with the AIX C compiler. 3435 : > sub/conftest.c 3436 for i in 1 2 3 4 5 6; do 3437 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3438 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3439 # Solaris 8's {/usr,}/bin/sh. 3440 touch sub/conftst$i.h 3441 done 3442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3443 3444 case $depmode in 3445 nosideeffect) 3446 # after this tag, mechanisms are not by side-effect, so they'll 3447 # only be used when explicitly requested 3448 if test "x$enable_dependency_tracking" = xyes; then 3449 continue 3450 else 3451 break 3452 fi 3453 ;; 3454 none) break ;; 3455 esac 3456 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3457 # mode. It turns out that the SunPro C++ compiler does not properly 3458 # handle `-M -o', and we need to detect this. 3459 if depmode=$depmode \ 3460 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3461 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3462 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3463 >/dev/null 2>conftest.err && 3464 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3465 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3466 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3467 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3468 # icc doesn't choke on unknown options, it will just issue warnings 3469 # or remarks (even with -Werror). So we grep stderr for any message 3470 # that says an option was ignored or not supported. 3471 # When given -MP, icc 7.0 and 7.1 complain thusly: 3472 # icc: Command line warning: ignoring option '-M'; no argument required 3473 # The diagnosis changed in icc 8.0: 3474 # icc: Command line remark: option '-MP' not supported 3475 if (grep 'ignoring option' conftest.err || 3476 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3477 am_cv_CC_dependencies_compiler_type=$depmode 3478 break 3479 fi 3480 fi 3481 done 3482 3483 cd .. 3484 rm -rf conftest.dir 3485else 3486 am_cv_CC_dependencies_compiler_type=none 3487fi 3488 3489fi 3490{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3491echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3492CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3493 3494 if 3495 test "x$enable_dependency_tracking" != xno \ 3496 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3497 am__fastdepCC_TRUE= 3498 am__fastdepCC_FALSE='#' 3499else 3500 am__fastdepCC_TRUE='#' 3501 am__fastdepCC_FALSE= 3502fi 3503 3504 3505ac_ext=cpp 3506ac_cpp='$CXXCPP $CPPFLAGS' 3507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3510if test -z "$CXX"; then 3511 if test -n "$CCC"; then 3512 CXX=$CCC 3513 else 3514 if test -n "$ac_tool_prefix"; then 3515 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3516 do 3517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3518set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3519{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3521if test "${ac_cv_prog_CXX+set}" = set; then 3522 echo $ECHO_N "(cached) $ECHO_C" >&6 3523else 3524 if test -n "$CXX"; then 3525 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3526else 3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3528for as_dir in $PATH 3529do 3530 IFS=$as_save_IFS 3531 test -z "$as_dir" && as_dir=. 3532 for ac_exec_ext in '' $ac_executable_extensions; do 3533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3534 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3536 break 2 3537 fi 3538done 3539done 3540IFS=$as_save_IFS 3541 3542fi 3543fi 3544CXX=$ac_cv_prog_CXX 3545if test -n "$CXX"; then 3546 { echo "$as_me:$LINENO: result: $CXX" >&5 3547echo "${ECHO_T}$CXX" >&6; } 3548else 3549 { echo "$as_me:$LINENO: result: no" >&5 3550echo "${ECHO_T}no" >&6; } 3551fi 3552 3553 3554 test -n "$CXX" && break 3555 done 3556fi 3557if test -z "$CXX"; then 3558 ac_ct_CXX=$CXX 3559 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3560do 3561 # Extract the first word of "$ac_prog", so it can be a program name with args. 3562set dummy $ac_prog; ac_word=$2 3563{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3565if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3566 echo $ECHO_N "(cached) $ECHO_C" >&6 3567else 3568 if test -n "$ac_ct_CXX"; then 3569 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3570else 3571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3572for as_dir in $PATH 3573do 3574 IFS=$as_save_IFS 3575 test -z "$as_dir" && as_dir=. 3576 for ac_exec_ext in '' $ac_executable_extensions; do 3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3578 ac_cv_prog_ac_ct_CXX="$ac_prog" 3579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3580 break 2 3581 fi 3582done 3583done 3584IFS=$as_save_IFS 3585 3586fi 3587fi 3588ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3589if test -n "$ac_ct_CXX"; then 3590 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3591echo "${ECHO_T}$ac_ct_CXX" >&6; } 3592else 3593 { echo "$as_me:$LINENO: result: no" >&5 3594echo "${ECHO_T}no" >&6; } 3595fi 3596 3597 3598 test -n "$ac_ct_CXX" && break 3599done 3600 3601 if test "x$ac_ct_CXX" = x; then 3602 CXX="g++" 3603 else 3604 case $cross_compiling:$ac_tool_warned in 3605yes:) 3606{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3607whose name does not start with the host triplet. If you think this 3608configuration is useful to you, please write to autoconf@gnu.org." >&5 3609echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3610whose name does not start with the host triplet. If you think this 3611configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3612ac_tool_warned=yes ;; 3613esac 3614 CXX=$ac_ct_CXX 3615 fi 3616fi 3617 3618 fi 3619fi 3620# Provide some information about the compiler. 3621echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3622ac_compiler=`set X $ac_compile; echo $2` 3623{ (ac_try="$ac_compiler --version >&5" 3624case "(($ac_try" in 3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3626 *) ac_try_echo=$ac_try;; 3627esac 3628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3629 (eval "$ac_compiler --version >&5") 2>&5 3630 ac_status=$? 3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3632 (exit $ac_status); } 3633{ (ac_try="$ac_compiler -v >&5" 3634case "(($ac_try" in 3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3636 *) ac_try_echo=$ac_try;; 3637esac 3638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3639 (eval "$ac_compiler -v >&5") 2>&5 3640 ac_status=$? 3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3642 (exit $ac_status); } 3643{ (ac_try="$ac_compiler -V >&5" 3644case "(($ac_try" in 3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3646 *) ac_try_echo=$ac_try;; 3647esac 3648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3649 (eval "$ac_compiler -V >&5") 2>&5 3650 ac_status=$? 3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3652 (exit $ac_status); } 3653 3654{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3655echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 3656if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3657 echo $ECHO_N "(cached) $ECHO_C" >&6 3658else 3659 cat >conftest.$ac_ext <<_ACEOF 3660/* confdefs.h. */ 3661_ACEOF 3662cat confdefs.h >>conftest.$ac_ext 3663cat >>conftest.$ac_ext <<_ACEOF 3664/* end confdefs.h. */ 3665 3666int 3667main () 3668{ 3669#ifndef __GNUC__ 3670 choke me 3671#endif 3672 3673 ; 3674 return 0; 3675} 3676_ACEOF 3677rm -f conftest.$ac_objext 3678if { (ac_try="$ac_compile" 3679case "(($ac_try" in 3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3681 *) ac_try_echo=$ac_try;; 3682esac 3683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3684 (eval "$ac_compile") 2>conftest.er1 3685 ac_status=$? 3686 grep -v '^ *+' conftest.er1 >conftest.err 3687 rm -f conftest.er1 3688 cat conftest.err >&5 3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3690 (exit $ac_status); } && { 3691 test -z "$ac_cxx_werror_flag" || 3692 test ! -s conftest.err 3693 } && test -s conftest.$ac_objext; then 3694 ac_compiler_gnu=yes 3695else 3696 echo "$as_me: failed program was:" >&5 3697sed 's/^/| /' conftest.$ac_ext >&5 3698 3699 ac_compiler_gnu=no 3700fi 3701 3702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3703ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3704 3705fi 3706{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3707echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3708GXX=`test $ac_compiler_gnu = yes && echo yes` 3709ac_test_CXXFLAGS=${CXXFLAGS+set} 3710ac_save_CXXFLAGS=$CXXFLAGS 3711{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3712echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3713if test "${ac_cv_prog_cxx_g+set}" = set; then 3714 echo $ECHO_N "(cached) $ECHO_C" >&6 3715else 3716 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3717 ac_cxx_werror_flag=yes 3718 ac_cv_prog_cxx_g=no 3719 CXXFLAGS="-g" 3720 cat >conftest.$ac_ext <<_ACEOF 3721/* confdefs.h. */ 3722_ACEOF 3723cat confdefs.h >>conftest.$ac_ext 3724cat >>conftest.$ac_ext <<_ACEOF 3725/* end confdefs.h. */ 3726 3727int 3728main () 3729{ 3730 3731 ; 3732 return 0; 3733} 3734_ACEOF 3735rm -f conftest.$ac_objext 3736if { (ac_try="$ac_compile" 3737case "(($ac_try" in 3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3739 *) ac_try_echo=$ac_try;; 3740esac 3741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3742 (eval "$ac_compile") 2>conftest.er1 3743 ac_status=$? 3744 grep -v '^ *+' conftest.er1 >conftest.err 3745 rm -f conftest.er1 3746 cat conftest.err >&5 3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3748 (exit $ac_status); } && { 3749 test -z "$ac_cxx_werror_flag" || 3750 test ! -s conftest.err 3751 } && test -s conftest.$ac_objext; then 3752 ac_cv_prog_cxx_g=yes 3753else 3754 echo "$as_me: failed program was:" >&5 3755sed 's/^/| /' conftest.$ac_ext >&5 3756 3757 CXXFLAGS="" 3758 cat >conftest.$ac_ext <<_ACEOF 3759/* confdefs.h. */ 3760_ACEOF 3761cat confdefs.h >>conftest.$ac_ext 3762cat >>conftest.$ac_ext <<_ACEOF 3763/* end confdefs.h. */ 3764 3765int 3766main () 3767{ 3768 3769 ; 3770 return 0; 3771} 3772_ACEOF 3773rm -f conftest.$ac_objext 3774if { (ac_try="$ac_compile" 3775case "(($ac_try" in 3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3777 *) ac_try_echo=$ac_try;; 3778esac 3779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3780 (eval "$ac_compile") 2>conftest.er1 3781 ac_status=$? 3782 grep -v '^ *+' conftest.er1 >conftest.err 3783 rm -f conftest.er1 3784 cat conftest.err >&5 3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3786 (exit $ac_status); } && { 3787 test -z "$ac_cxx_werror_flag" || 3788 test ! -s conftest.err 3789 } && test -s conftest.$ac_objext; then 3790 : 3791else 3792 echo "$as_me: failed program was:" >&5 3793sed 's/^/| /' conftest.$ac_ext >&5 3794 3795 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3796 CXXFLAGS="-g" 3797 cat >conftest.$ac_ext <<_ACEOF 3798/* confdefs.h. */ 3799_ACEOF 3800cat confdefs.h >>conftest.$ac_ext 3801cat >>conftest.$ac_ext <<_ACEOF 3802/* end confdefs.h. */ 3803 3804int 3805main () 3806{ 3807 3808 ; 3809 return 0; 3810} 3811_ACEOF 3812rm -f conftest.$ac_objext 3813if { (ac_try="$ac_compile" 3814case "(($ac_try" in 3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3816 *) ac_try_echo=$ac_try;; 3817esac 3818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3819 (eval "$ac_compile") 2>conftest.er1 3820 ac_status=$? 3821 grep -v '^ *+' conftest.er1 >conftest.err 3822 rm -f conftest.er1 3823 cat conftest.err >&5 3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3825 (exit $ac_status); } && { 3826 test -z "$ac_cxx_werror_flag" || 3827 test ! -s conftest.err 3828 } && test -s conftest.$ac_objext; then 3829 ac_cv_prog_cxx_g=yes 3830else 3831 echo "$as_me: failed program was:" >&5 3832sed 's/^/| /' conftest.$ac_ext >&5 3833 3834 3835fi 3836 3837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3838fi 3839 3840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3841fi 3842 3843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3844 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3845fi 3846{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3847echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3848if test "$ac_test_CXXFLAGS" = set; then 3849 CXXFLAGS=$ac_save_CXXFLAGS 3850elif test $ac_cv_prog_cxx_g = yes; then 3851 if test "$GXX" = yes; then 3852 CXXFLAGS="-g -O2" 3853 else 3854 CXXFLAGS="-g" 3855 fi 3856else 3857 if test "$GXX" = yes; then 3858 CXXFLAGS="-O2" 3859 else 3860 CXXFLAGS= 3861 fi 3862fi 3863ac_ext=c 3864ac_cpp='$CPP $CPPFLAGS' 3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3867ac_compiler_gnu=$ac_cv_c_compiler_gnu 3868 3869depcc="$CXX" am_compiler_list= 3870 3871{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3872echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3873if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3874 echo $ECHO_N "(cached) $ECHO_C" >&6 3875else 3876 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3877 # We make a subdir and do the tests there. Otherwise we can end up 3878 # making bogus files that we don't know about and never remove. For 3879 # instance it was reported that on HP-UX the gcc test will end up 3880 # making a dummy file named `D' -- because `-MD' means `put the output 3881 # in D'. 3882 mkdir conftest.dir 3883 # Copy depcomp to subdir because otherwise we won't find it if we're 3884 # using a relative directory. 3885 cp "$am_depcomp" conftest.dir 3886 cd conftest.dir 3887 # We will build objects and dependencies in a subdirectory because 3888 # it helps to detect inapplicable dependency modes. For instance 3889 # both Tru64's cc and ICC support -MD to output dependencies as a 3890 # side effect of compilation, but ICC will put the dependencies in 3891 # the current directory while Tru64 will put them in the object 3892 # directory. 3893 mkdir sub 3894 3895 am_cv_CXX_dependencies_compiler_type=none 3896 if test "$am_compiler_list" = ""; then 3897 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3898 fi 3899 for depmode in $am_compiler_list; do 3900 # Setup a source with many dependencies, because some compilers 3901 # like to wrap large dependency lists on column 80 (with \), and 3902 # we should not choose a depcomp mode which is confused by this. 3903 # 3904 # We need to recreate these files for each test, as the compiler may 3905 # overwrite some of them when testing with obscure command lines. 3906 # This happens at least with the AIX C compiler. 3907 : > sub/conftest.c 3908 for i in 1 2 3 4 5 6; do 3909 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3910 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3911 # Solaris 8's {/usr,}/bin/sh. 3912 touch sub/conftst$i.h 3913 done 3914 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3915 3916 case $depmode in 3917 nosideeffect) 3918 # after this tag, mechanisms are not by side-effect, so they'll 3919 # only be used when explicitly requested 3920 if test "x$enable_dependency_tracking" = xyes; then 3921 continue 3922 else 3923 break 3924 fi 3925 ;; 3926 none) break ;; 3927 esac 3928 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3929 # mode. It turns out that the SunPro C++ compiler does not properly 3930 # handle `-M -o', and we need to detect this. 3931 if depmode=$depmode \ 3932 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3933 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3934 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3935 >/dev/null 2>conftest.err && 3936 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3937 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3938 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3939 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3940 # icc doesn't choke on unknown options, it will just issue warnings 3941 # or remarks (even with -Werror). So we grep stderr for any message 3942 # that says an option was ignored or not supported. 3943 # When given -MP, icc 7.0 and 7.1 complain thusly: 3944 # icc: Command line warning: ignoring option '-M'; no argument required 3945 # The diagnosis changed in icc 8.0: 3946 # icc: Command line remark: option '-MP' not supported 3947 if (grep 'ignoring option' conftest.err || 3948 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3949 am_cv_CXX_dependencies_compiler_type=$depmode 3950 break 3951 fi 3952 fi 3953 done 3954 3955 cd .. 3956 rm -rf conftest.dir 3957else 3958 am_cv_CXX_dependencies_compiler_type=none 3959fi 3960 3961fi 3962{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3963echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 3964CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3965 3966 if 3967 test "x$enable_dependency_tracking" != xno \ 3968 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3969 am__fastdepCXX_TRUE= 3970 am__fastdepCXX_FALSE='#' 3971else 3972 am__fastdepCXX_TRUE='#' 3973 am__fastdepCXX_FALSE= 3974fi 3975 3976 3977# Find a good install program. We prefer a C program (faster), 3978# so one script is as good as another. But avoid the broken or 3979# incompatible versions: 3980# SysV /etc/install, /usr/sbin/install 3981# SunOS /usr/etc/install 3982# IRIX /sbin/install 3983# AIX /bin/install 3984# AmigaOS /C/install, which installs bootblocks on floppy discs 3985# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3986# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3987# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3988# OS/2's system install, which has a completely different semantic 3989# ./install, which can be erroneously created by make from ./install.sh. 3990{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3991echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3992if test -z "$INSTALL"; then 3993if test "${ac_cv_path_install+set}" = set; then 3994 echo $ECHO_N "(cached) $ECHO_C" >&6 3995else 3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3997for as_dir in $PATH 3998do 3999 IFS=$as_save_IFS 4000 test -z "$as_dir" && as_dir=. 4001 # Account for people who put trailing slashes in PATH elements. 4002case $as_dir/ in 4003 ./ | .// | /cC/* | \ 4004 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4005 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4006 /usr/ucb/* ) ;; 4007 *) 4008 # OSF1 and SCO ODT 3.0 have their own names for install. 4009 # Don't use installbsd from OSF since it installs stuff as root 4010 # by default. 4011 for ac_prog in ginstall scoinst install; do 4012 for ac_exec_ext in '' $ac_executable_extensions; do 4013 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4014 if test $ac_prog = install && 4015 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4016 # AIX install. It has an incompatible calling convention. 4017 : 4018 elif test $ac_prog = install && 4019 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4020 # program-specific install script used by HP pwplus--don't use. 4021 : 4022 else 4023 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4024 break 3 4025 fi 4026 fi 4027 done 4028 done 4029 ;; 4030esac 4031done 4032IFS=$as_save_IFS 4033 4034 4035fi 4036 if test "${ac_cv_path_install+set}" = set; then 4037 INSTALL=$ac_cv_path_install 4038 else 4039 # As a last resort, use the slow shell script. Don't cache a 4040 # value for INSTALL within a source directory, because that will 4041 # break other packages using the cache if that directory is 4042 # removed, or if the value is a relative name. 4043 INSTALL=$ac_install_sh 4044 fi 4045fi 4046{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4047echo "${ECHO_T}$INSTALL" >&6; } 4048 4049# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4050# It thinks the first close brace ends the variable substitution. 4051test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4052 4053test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4054 4055test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4056 4057 4058# Make sure we can run config.sub. 4059$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4060 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4061echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4062 { (exit 1); exit 1; }; } 4063 4064{ echo "$as_me:$LINENO: checking build system type" >&5 4065echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 4066if test "${ac_cv_build+set}" = set; then 4067 echo $ECHO_N "(cached) $ECHO_C" >&6 4068else 4069 ac_build_alias=$build_alias 4070test "x$ac_build_alias" = x && 4071 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4072test "x$ac_build_alias" = x && 4073 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4074echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4075 { (exit 1); exit 1; }; } 4076ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4077 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4078echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4079 { (exit 1); exit 1; }; } 4080 4081fi 4082{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4083echo "${ECHO_T}$ac_cv_build" >&6; } 4084case $ac_cv_build in 4085*-*-*) ;; 4086*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4087echo "$as_me: error: invalid value of canonical build" >&2;} 4088 { (exit 1); exit 1; }; };; 4089esac 4090build=$ac_cv_build 4091ac_save_IFS=$IFS; IFS='-' 4092set x $ac_cv_build 4093shift 4094build_cpu=$1 4095build_vendor=$2 4096shift; shift 4097# Remember, the first character of IFS is used to create $*, 4098# except with old shells: 4099build_os=$* 4100IFS=$ac_save_IFS 4101case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4102 4103 4104{ echo "$as_me:$LINENO: checking host system type" >&5 4105echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 4106if test "${ac_cv_host+set}" = set; then 4107 echo $ECHO_N "(cached) $ECHO_C" >&6 4108else 4109 if test "x$host_alias" = x; then 4110 ac_cv_host=$ac_cv_build 4111else 4112 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4113 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4114echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4115 { (exit 1); exit 1; }; } 4116fi 4117 4118fi 4119{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4120echo "${ECHO_T}$ac_cv_host" >&6; } 4121case $ac_cv_host in 4122*-*-*) ;; 4123*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4124echo "$as_me: error: invalid value of canonical host" >&2;} 4125 { (exit 1); exit 1; }; };; 4126esac 4127host=$ac_cv_host 4128ac_save_IFS=$IFS; IFS='-' 4129set x $ac_cv_host 4130shift 4131host_cpu=$1 4132host_vendor=$2 4133shift; shift 4134# Remember, the first character of IFS is used to create $*, 4135# except with old shells: 4136host_os=$* 4137IFS=$ac_save_IFS 4138case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 case "$host_os" in 4149 mingw* | cygwin*) 4150 { echo "$as_me:$LINENO: checking for auto-import of symbols" >&5 4151echo $ECHO_N "checking for auto-import of symbols... $ECHO_C" >&6; } 4152 if test "${gl_cv_ld_autoimport+set}" = set; then 4153 echo $ECHO_N "(cached) $ECHO_C" >&6 4154else 4155 4156 gl_save_LDFLAGS="$LDFLAGS" 4157 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" 4158 cat >conftest.$ac_ext <<_ACEOF 4159/* confdefs.h. */ 4160_ACEOF 4161cat confdefs.h >>conftest.$ac_ext 4162cat >>conftest.$ac_ext <<_ACEOF 4163/* end confdefs.h. */ 4164 4165int 4166main () 4167{ 4168 4169 ; 4170 return 0; 4171} 4172_ACEOF 4173rm -f conftest.$ac_objext conftest$ac_exeext 4174if { (ac_try="$ac_link" 4175case "(($ac_try" in 4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4177 *) ac_try_echo=$ac_try;; 4178esac 4179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4180 (eval "$ac_link") 2>conftest.er1 4181 ac_status=$? 4182 grep -v '^ *+' conftest.er1 >conftest.err 4183 rm -f conftest.er1 4184 cat conftest.err >&5 4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4186 (exit $ac_status); } && { 4187 test -z "$ac_c_werror_flag" || 4188 test ! -s conftest.err 4189 } && test -s conftest$ac_exeext && 4190 $as_test_x conftest$ac_exeext; then 4191 gl_cv_ld_autoimport=yes 4192else 4193 echo "$as_me: failed program was:" >&5 4194sed 's/^/| /' conftest.$ac_ext >&5 4195 4196 gl_cv_ld_autoimport=no 4197fi 4198 4199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4200 conftest$ac_exeext conftest.$ac_ext 4201 LDFLAGS="$gl_save_LDFLAGS" 4202fi 4203 4204 { echo "$as_me:$LINENO: result: $gl_cv_ld_autoimport" >&5 4205echo "${ECHO_T}$gl_cv_ld_autoimport" >&6; } 4206 if test $gl_cv_ld_autoimport = yes; then 4207 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" 4208 fi 4209 ;; 4210 esac 4211 4212 4213 4214# Check whether --enable-shared was given. 4215if test "${enable_shared+set}" = set; then 4216 enableval=$enable_shared; p=${PACKAGE-default} 4217 case $enableval in 4218 yes) enable_shared=yes ;; 4219 no) enable_shared=no ;; 4220 *) 4221 enable_shared=no 4222 # Look at the argument we got. We use all the common list separators. 4223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4224 for pkg in $enableval; do 4225 IFS="$lt_save_ifs" 4226 if test "X$pkg" = "X$p"; then 4227 enable_shared=yes 4228 fi 4229 done 4230 IFS="$lt_save_ifs" 4231 ;; 4232 esac 4233else 4234 enable_shared=yes 4235fi 4236 4237 4238# Check whether --enable-static was given. 4239if test "${enable_static+set}" = set; then 4240 enableval=$enable_static; p=${PACKAGE-default} 4241 case $enableval in 4242 yes) enable_static=yes ;; 4243 no) enable_static=no ;; 4244 *) 4245 enable_static=no 4246 # Look at the argument we got. We use all the common list separators. 4247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4248 for pkg in $enableval; do 4249 IFS="$lt_save_ifs" 4250 if test "X$pkg" = "X$p"; then 4251 enable_static=yes 4252 fi 4253 done 4254 IFS="$lt_save_ifs" 4255 ;; 4256 esac 4257else 4258 enable_static=yes 4259fi 4260 4261 4262# Check whether --enable-fast-install was given. 4263if test "${enable_fast_install+set}" = set; then 4264 enableval=$enable_fast_install; p=${PACKAGE-default} 4265 case $enableval in 4266 yes) enable_fast_install=yes ;; 4267 no) enable_fast_install=no ;; 4268 *) 4269 enable_fast_install=no 4270 # Look at the argument we got. We use all the common list separators. 4271 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4272 for pkg in $enableval; do 4273 IFS="$lt_save_ifs" 4274 if test "X$pkg" = "X$p"; then 4275 enable_fast_install=yes 4276 fi 4277 done 4278 IFS="$lt_save_ifs" 4279 ;; 4280 esac 4281else 4282 enable_fast_install=yes 4283fi 4284 4285 4286{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4287echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 4288if test "${lt_cv_path_SED+set}" = set; then 4289 echo $ECHO_N "(cached) $ECHO_C" >&6 4290else 4291 # Loop through the user's path and test for sed and gsed. 4292# Then use that list of sed's as ones to test for truncation. 4293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4294for as_dir in $PATH 4295do 4296 IFS=$as_save_IFS 4297 test -z "$as_dir" && as_dir=. 4298 for lt_ac_prog in sed gsed; do 4299 for ac_exec_ext in '' $ac_executable_extensions; do 4300 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 4301 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4302 fi 4303 done 4304 done 4305done 4306IFS=$as_save_IFS 4307lt_ac_max=0 4308lt_ac_count=0 4309# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4310# along with /bin/sed that truncates output. 4311for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4312 test ! -f $lt_ac_sed && continue 4313 cat /dev/null > conftest.in 4314 lt_ac_count=0 4315 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4316 # Check for GNU sed and select it if it is found. 4317 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4318 lt_cv_path_SED=$lt_ac_sed 4319 break 4320 fi 4321 while true; do 4322 cat conftest.in conftest.in >conftest.tmp 4323 mv conftest.tmp conftest.in 4324 cp conftest.in conftest.nl 4325 echo >>conftest.nl 4326 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4327 cmp -s conftest.out conftest.nl || break 4328 # 10000 chars as input seems more than enough 4329 test $lt_ac_count -gt 10 && break 4330 lt_ac_count=`expr $lt_ac_count + 1` 4331 if test $lt_ac_count -gt $lt_ac_max; then 4332 lt_ac_max=$lt_ac_count 4333 lt_cv_path_SED=$lt_ac_sed 4334 fi 4335 done 4336done 4337 4338fi 4339 4340SED=$lt_cv_path_SED 4341 4342{ echo "$as_me:$LINENO: result: $SED" >&5 4343echo "${ECHO_T}$SED" >&6; } 4344 4345{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4346echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4347if test "${ac_cv_path_GREP+set}" = set; then 4348 echo $ECHO_N "(cached) $ECHO_C" >&6 4349else 4350 # Extract the first word of "grep ggrep" to use in msg output 4351if test -z "$GREP"; then 4352set dummy grep ggrep; ac_prog_name=$2 4353if test "${ac_cv_path_GREP+set}" = set; then 4354 echo $ECHO_N "(cached) $ECHO_C" >&6 4355else 4356 ac_path_GREP_found=false 4357# Loop through the user's path and test for each of PROGNAME-LIST 4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4359for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4360do 4361 IFS=$as_save_IFS 4362 test -z "$as_dir" && as_dir=. 4363 for ac_prog in grep ggrep; do 4364 for ac_exec_ext in '' $ac_executable_extensions; do 4365 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4366 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4367 # Check for GNU ac_path_GREP and select it if it is found. 4368 # Check for GNU $ac_path_GREP 4369case `"$ac_path_GREP" --version 2>&1` in 4370*GNU*) 4371 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4372*) 4373 ac_count=0 4374 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4375 while : 4376 do 4377 cat "conftest.in" "conftest.in" >"conftest.tmp" 4378 mv "conftest.tmp" "conftest.in" 4379 cp "conftest.in" "conftest.nl" 4380 echo 'GREP' >> "conftest.nl" 4381 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4383 ac_count=`expr $ac_count + 1` 4384 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4385 # Best one so far, save it but keep looking for a better one 4386 ac_cv_path_GREP="$ac_path_GREP" 4387 ac_path_GREP_max=$ac_count 4388 fi 4389 # 10*(2^10) chars as input seems more than enough 4390 test $ac_count -gt 10 && break 4391 done 4392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4393esac 4394 4395 4396 $ac_path_GREP_found && break 3 4397 done 4398done 4399 4400done 4401IFS=$as_save_IFS 4402 4403 4404fi 4405 4406GREP="$ac_cv_path_GREP" 4407if test -z "$GREP"; then 4408 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4409echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4410 { (exit 1); exit 1; }; } 4411fi 4412 4413else 4414 ac_cv_path_GREP=$GREP 4415fi 4416 4417 4418fi 4419{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4420echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4421 GREP="$ac_cv_path_GREP" 4422 4423 4424{ echo "$as_me:$LINENO: checking for egrep" >&5 4425echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4426if test "${ac_cv_path_EGREP+set}" = set; then 4427 echo $ECHO_N "(cached) $ECHO_C" >&6 4428else 4429 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4430 then ac_cv_path_EGREP="$GREP -E" 4431 else 4432 # Extract the first word of "egrep" to use in msg output 4433if test -z "$EGREP"; then 4434set dummy egrep; ac_prog_name=$2 4435if test "${ac_cv_path_EGREP+set}" = set; then 4436 echo $ECHO_N "(cached) $ECHO_C" >&6 4437else 4438 ac_path_EGREP_found=false 4439# Loop through the user's path and test for each of PROGNAME-LIST 4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4441for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4442do 4443 IFS=$as_save_IFS 4444 test -z "$as_dir" && as_dir=. 4445 for ac_prog in egrep; do 4446 for ac_exec_ext in '' $ac_executable_extensions; do 4447 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4448 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4449 # Check for GNU ac_path_EGREP and select it if it is found. 4450 # Check for GNU $ac_path_EGREP 4451case `"$ac_path_EGREP" --version 2>&1` in 4452*GNU*) 4453 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4454*) 4455 ac_count=0 4456 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4457 while : 4458 do 4459 cat "conftest.in" "conftest.in" >"conftest.tmp" 4460 mv "conftest.tmp" "conftest.in" 4461 cp "conftest.in" "conftest.nl" 4462 echo 'EGREP' >> "conftest.nl" 4463 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4465 ac_count=`expr $ac_count + 1` 4466 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4467 # Best one so far, save it but keep looking for a better one 4468 ac_cv_path_EGREP="$ac_path_EGREP" 4469 ac_path_EGREP_max=$ac_count 4470 fi 4471 # 10*(2^10) chars as input seems more than enough 4472 test $ac_count -gt 10 && break 4473 done 4474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4475esac 4476 4477 4478 $ac_path_EGREP_found && break 3 4479 done 4480done 4481 4482done 4483IFS=$as_save_IFS 4484 4485 4486fi 4487 4488EGREP="$ac_cv_path_EGREP" 4489if test -z "$EGREP"; then 4490 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4491echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4492 { (exit 1); exit 1; }; } 4493fi 4494 4495else 4496 ac_cv_path_EGREP=$EGREP 4497fi 4498 4499 4500 fi 4501fi 4502{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4503echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4504 EGREP="$ac_cv_path_EGREP" 4505 4506 4507 4508# Check whether --with-gnu-ld was given. 4509if test "${with_gnu_ld+set}" = set; then 4510 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4511else 4512 with_gnu_ld=no 4513fi 4514 4515ac_prog=ld 4516if test "$GCC" = yes; then 4517 # Check if gcc -print-prog-name=ld gives a path. 4518 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4519echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4520 case $host in 4521 *-*-mingw*) 4522 # gcc leaves a trailing carriage return which upsets mingw 4523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4524 *) 4525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4526 esac 4527 case $ac_prog in 4528 # Accept absolute paths. 4529 [\\/]* | ?:[\\/]*) 4530 re_direlt='/[^/][^/]*/\.\./' 4531 # Canonicalize the pathname of ld 4532 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4533 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4534 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4535 done 4536 test -z "$LD" && LD="$ac_prog" 4537 ;; 4538 "") 4539 # If it fails, then pretend we aren't using GCC. 4540 ac_prog=ld 4541 ;; 4542 *) 4543 # If it is relative, then search for the first ld in PATH. 4544 with_gnu_ld=unknown 4545 ;; 4546 esac 4547elif test "$with_gnu_ld" = yes; then 4548 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4549echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4550else 4551 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4552echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4553fi 4554if test "${lt_cv_path_LD+set}" = set; then 4555 echo $ECHO_N "(cached) $ECHO_C" >&6 4556else 4557 if test -z "$LD"; then 4558 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4559 for ac_dir in $PATH; do 4560 IFS="$lt_save_ifs" 4561 test -z "$ac_dir" && ac_dir=. 4562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4563 lt_cv_path_LD="$ac_dir/$ac_prog" 4564 # Check to see if the program is GNU ld. I'd rather use --version, 4565 # but apparently some variants of GNU ld only accept -v. 4566 # Break only if it was the GNU/non-GNU ld that we prefer. 4567 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4568 *GNU* | *'with BFD'*) 4569 test "$with_gnu_ld" != no && break 4570 ;; 4571 *) 4572 test "$with_gnu_ld" != yes && break 4573 ;; 4574 esac 4575 fi 4576 done 4577 IFS="$lt_save_ifs" 4578else 4579 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4580fi 4581fi 4582 4583LD="$lt_cv_path_LD" 4584if test -n "$LD"; then 4585 { echo "$as_me:$LINENO: result: $LD" >&5 4586echo "${ECHO_T}$LD" >&6; } 4587else 4588 { echo "$as_me:$LINENO: result: no" >&5 4589echo "${ECHO_T}no" >&6; } 4590fi 4591test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4592echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4593 { (exit 1); exit 1; }; } 4594{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4595echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4596if test "${lt_cv_prog_gnu_ld+set}" = set; then 4597 echo $ECHO_N "(cached) $ECHO_C" >&6 4598else 4599 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4600case `$LD -v 2>&1 </dev/null` in 4601*GNU* | *'with BFD'*) 4602 lt_cv_prog_gnu_ld=yes 4603 ;; 4604*) 4605 lt_cv_prog_gnu_ld=no 4606 ;; 4607esac 4608fi 4609{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4610echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4611with_gnu_ld=$lt_cv_prog_gnu_ld 4612 4613 4614{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4615echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4616if test "${lt_cv_ld_reload_flag+set}" = set; then 4617 echo $ECHO_N "(cached) $ECHO_C" >&6 4618else 4619 lt_cv_ld_reload_flag='-r' 4620fi 4621{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4622echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4623reload_flag=$lt_cv_ld_reload_flag 4624case $reload_flag in 4625"" | " "*) ;; 4626*) reload_flag=" $reload_flag" ;; 4627esac 4628reload_cmds='$LD$reload_flag -o $output$reload_objs' 4629case $host_os in 4630 darwin*) 4631 if test "$GCC" = yes; then 4632 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4633 else 4634 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4635 fi 4636 ;; 4637esac 4638 4639{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4640echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4641if test "${lt_cv_path_NM+set}" = set; then 4642 echo $ECHO_N "(cached) $ECHO_C" >&6 4643else 4644 if test -n "$NM"; then 4645 # Let the user override the test. 4646 lt_cv_path_NM="$NM" 4647else 4648 lt_nm_to_check="${ac_tool_prefix}nm" 4649 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4650 lt_nm_to_check="$lt_nm_to_check nm" 4651 fi 4652 for lt_tmp_nm in $lt_nm_to_check; do 4653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4654 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4655 IFS="$lt_save_ifs" 4656 test -z "$ac_dir" && ac_dir=. 4657 tmp_nm="$ac_dir/$lt_tmp_nm" 4658 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4659 # Check to see if the nm accepts a BSD-compat flag. 4660 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4661 # nm: unknown option "B" ignored 4662 # Tru64's nm complains that /dev/null is an invalid object file 4663 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4664 */dev/null* | *'Invalid file or object type'*) 4665 lt_cv_path_NM="$tmp_nm -B" 4666 break 4667 ;; 4668 *) 4669 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4670 */dev/null*) 4671 lt_cv_path_NM="$tmp_nm -p" 4672 break 4673 ;; 4674 *) 4675 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4676 continue # so that we can try to find one that supports BSD flags 4677 ;; 4678 esac 4679 ;; 4680 esac 4681 fi 4682 done 4683 IFS="$lt_save_ifs" 4684 done 4685 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4686fi 4687fi 4688{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4689echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4690NM="$lt_cv_path_NM" 4691 4692{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4693echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4694LN_S=$as_ln_s 4695if test "$LN_S" = "ln -s"; then 4696 { echo "$as_me:$LINENO: result: yes" >&5 4697echo "${ECHO_T}yes" >&6; } 4698else 4699 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4700echo "${ECHO_T}no, using $LN_S" >&6; } 4701fi 4702 4703{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4704echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4705if test "${lt_cv_deplibs_check_method+set}" = set; then 4706 echo $ECHO_N "(cached) $ECHO_C" >&6 4707else 4708 lt_cv_file_magic_cmd='$MAGIC_CMD' 4709lt_cv_file_magic_test_file= 4710lt_cv_deplibs_check_method='unknown' 4711# Need to set the preceding variable on all platforms that support 4712# interlibrary dependencies. 4713# 'none' -- dependencies not supported. 4714# `unknown' -- same as none, but documents that we really don't know. 4715# 'pass_all' -- all dependencies passed with no checks. 4716# 'test_compile' -- check by making test program. 4717# 'file_magic [[regex]]' -- check by looking for files in library path 4718# which responds to the $file_magic_cmd with a given extended regex. 4719# If you have `file' or equivalent on your system and you're not sure 4720# whether `pass_all' will *always* work, you probably want this one. 4721 4722case $host_os in 4723aix4* | aix5*) 4724 lt_cv_deplibs_check_method=pass_all 4725 ;; 4726 4727beos*) 4728 lt_cv_deplibs_check_method=pass_all 4729 ;; 4730 4731bsdi[45]*) 4732 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4733 lt_cv_file_magic_cmd='/usr/bin/file -L' 4734 lt_cv_file_magic_test_file=/shlib/libc.so 4735 ;; 4736 4737cygwin*) 4738 # func_win32_libid is a shell function defined in ltmain.sh 4739 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4740 lt_cv_file_magic_cmd='func_win32_libid' 4741 ;; 4742 4743mingw* | pw32*) 4744 # Base MSYS/MinGW do not provide the 'file' command needed by 4745 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4746 # unless we find 'file', for example because we are cross-compiling. 4747 if ( file / ) >/dev/null 2>&1; then 4748 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4749 lt_cv_file_magic_cmd='func_win32_libid' 4750 else 4751 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4752 lt_cv_file_magic_cmd='$OBJDUMP -f' 4753 fi 4754 ;; 4755 4756darwin* | rhapsody*) 4757 lt_cv_deplibs_check_method=pass_all 4758 ;; 4759 4760freebsd* | dragonfly*) 4761 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4762 case $host_cpu in 4763 i*86 ) 4764 # Not sure whether the presence of OpenBSD here was a mistake. 4765 # Let's accept both of them until this is cleared up. 4766 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4767 lt_cv_file_magic_cmd=/usr/bin/file 4768 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4769 ;; 4770 esac 4771 else 4772 lt_cv_deplibs_check_method=pass_all 4773 fi 4774 ;; 4775 4776gnu*) 4777 lt_cv_deplibs_check_method=pass_all 4778 ;; 4779 4780hpux10.20* | hpux11*) 4781 lt_cv_file_magic_cmd=/usr/bin/file 4782 case $host_cpu in 4783 ia64*) 4784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4785 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4786 ;; 4787 hppa*64*) 4788 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]' 4789 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4790 ;; 4791 *) 4792 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4793 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4794 ;; 4795 esac 4796 ;; 4797 4798interix[3-9]*) 4799 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4801 ;; 4802 4803irix5* | irix6* | nonstopux*) 4804 case $LD in 4805 *-32|*"-32 ") libmagic=32-bit;; 4806 *-n32|*"-n32 ") libmagic=N32;; 4807 *-64|*"-64 ") libmagic=64-bit;; 4808 *) libmagic=never-match;; 4809 esac 4810 lt_cv_deplibs_check_method=pass_all 4811 ;; 4812 4813# This must be Linux ELF. 4814linux* | k*bsd*-gnu) 4815 lt_cv_deplibs_check_method=pass_all 4816 ;; 4817 4818netbsd*) 4819 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4821 else 4822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4823 fi 4824 ;; 4825 4826newos6*) 4827 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4828 lt_cv_file_magic_cmd=/usr/bin/file 4829 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4830 ;; 4831 4832nto-qnx*) 4833 lt_cv_deplibs_check_method=unknown 4834 ;; 4835 4836openbsd*) 4837 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4839 else 4840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4841 fi 4842 ;; 4843 4844osf3* | osf4* | osf5*) 4845 lt_cv_deplibs_check_method=pass_all 4846 ;; 4847 4848rdos*) 4849 lt_cv_deplibs_check_method=pass_all 4850 ;; 4851 4852solaris*) 4853 lt_cv_deplibs_check_method=pass_all 4854 ;; 4855 4856sysv4 | sysv4.3*) 4857 case $host_vendor in 4858 motorola) 4859 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]' 4860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4861 ;; 4862 ncr) 4863 lt_cv_deplibs_check_method=pass_all 4864 ;; 4865 sequent) 4866 lt_cv_file_magic_cmd='/bin/file' 4867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4868 ;; 4869 sni) 4870 lt_cv_file_magic_cmd='/bin/file' 4871 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4872 lt_cv_file_magic_test_file=/lib/libc.so 4873 ;; 4874 siemens) 4875 lt_cv_deplibs_check_method=pass_all 4876 ;; 4877 pc) 4878 lt_cv_deplibs_check_method=pass_all 4879 ;; 4880 esac 4881 ;; 4882 4883sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4884 lt_cv_deplibs_check_method=pass_all 4885 ;; 4886esac 4887 4888fi 4889{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4890echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4891file_magic_cmd=$lt_cv_file_magic_cmd 4892deplibs_check_method=$lt_cv_deplibs_check_method 4893test -z "$deplibs_check_method" && deplibs_check_method=unknown 4894 4895 4896# If no C compiler was specified, use CC. 4897LTCC=${LTCC-"$CC"} 4898 4899# If no C compiler flags were specified, use CFLAGS. 4900LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4901 4902# Allow CC to be a program name with arguments. 4903compiler=$CC 4904 4905# Check whether --enable-libtool-lock was given. 4906if test "${enable_libtool_lock+set}" = set; then 4907 enableval=$enable_libtool_lock; 4908fi 4909 4910test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4911 4912# Some flags need to be propagated to the compiler or linker for good 4913# libtool support. 4914case $host in 4915ia64-*-hpux*) 4916 # Find out which ABI we are using. 4917 echo 'int i;' > conftest.$ac_ext 4918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4919 (eval $ac_compile) 2>&5 4920 ac_status=$? 4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4922 (exit $ac_status); }; then 4923 case `/usr/bin/file conftest.$ac_objext` in 4924 *ELF-32*) 4925 HPUX_IA64_MODE="32" 4926 ;; 4927 *ELF-64*) 4928 HPUX_IA64_MODE="64" 4929 ;; 4930 esac 4931 fi 4932 rm -rf conftest* 4933 ;; 4934*-*-irix6*) 4935 # Find out which ABI we are using. 4936 echo '#line 4936 "configure"' > conftest.$ac_ext 4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4938 (eval $ac_compile) 2>&5 4939 ac_status=$? 4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4941 (exit $ac_status); }; then 4942 if test "$lt_cv_prog_gnu_ld" = yes; then 4943 case `/usr/bin/file conftest.$ac_objext` in 4944 *32-bit*) 4945 LD="${LD-ld} -melf32bsmip" 4946 ;; 4947 *N32*) 4948 LD="${LD-ld} -melf32bmipn32" 4949 ;; 4950 *64-bit*) 4951 LD="${LD-ld} -melf64bmip" 4952 ;; 4953 esac 4954 else 4955 case `/usr/bin/file conftest.$ac_objext` in 4956 *32-bit*) 4957 LD="${LD-ld} -32" 4958 ;; 4959 *N32*) 4960 LD="${LD-ld} -n32" 4961 ;; 4962 *64-bit*) 4963 LD="${LD-ld} -64" 4964 ;; 4965 esac 4966 fi 4967 fi 4968 rm -rf conftest* 4969 ;; 4970 4971x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4972s390*-*linux*|sparc*-*linux*) 4973 # Find out which ABI we are using. 4974 echo 'int i;' > conftest.$ac_ext 4975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4976 (eval $ac_compile) 2>&5 4977 ac_status=$? 4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4979 (exit $ac_status); }; then 4980 case `/usr/bin/file conftest.o` in 4981 *32-bit*) 4982 case $host in 4983 x86_64-*kfreebsd*-gnu) 4984 LD="${LD-ld} -m elf_i386_fbsd" 4985 ;; 4986 x86_64-*linux*) 4987 LD="${LD-ld} -m elf_i386" 4988 ;; 4989 ppc64-*linux*|powerpc64-*linux*) 4990 LD="${LD-ld} -m elf32ppclinux" 4991 ;; 4992 s390x-*linux*) 4993 LD="${LD-ld} -m elf_s390" 4994 ;; 4995 sparc64-*linux*) 4996 LD="${LD-ld} -m elf32_sparc" 4997 ;; 4998 esac 4999 ;; 5000 *64-bit*) 5001 case $host in 5002 x86_64-*kfreebsd*-gnu) 5003 LD="${LD-ld} -m elf_x86_64_fbsd" 5004 ;; 5005 x86_64-*linux*) 5006 LD="${LD-ld} -m elf_x86_64" 5007 ;; 5008 ppc*-*linux*|powerpc*-*linux*) 5009 LD="${LD-ld} -m elf64ppc" 5010 ;; 5011 s390*-*linux*) 5012 LD="${LD-ld} -m elf64_s390" 5013 ;; 5014 sparc*-*linux*) 5015 LD="${LD-ld} -m elf64_sparc" 5016 ;; 5017 esac 5018 ;; 5019 esac 5020 fi 5021 rm -rf conftest* 5022 ;; 5023 5024*-*-sco3.2v5*) 5025 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5026 SAVE_CFLAGS="$CFLAGS" 5027 CFLAGS="$CFLAGS -belf" 5028 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5029echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 5030if test "${lt_cv_cc_needs_belf+set}" = set; then 5031 echo $ECHO_N "(cached) $ECHO_C" >&6 5032else 5033 ac_ext=c 5034ac_cpp='$CPP $CPPFLAGS' 5035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5037ac_compiler_gnu=$ac_cv_c_compiler_gnu 5038 5039 cat >conftest.$ac_ext <<_ACEOF 5040/* confdefs.h. */ 5041_ACEOF 5042cat confdefs.h >>conftest.$ac_ext 5043cat >>conftest.$ac_ext <<_ACEOF 5044/* end confdefs.h. */ 5045 5046int 5047main () 5048{ 5049 5050 ; 5051 return 0; 5052} 5053_ACEOF 5054rm -f conftest.$ac_objext conftest$ac_exeext 5055if { (ac_try="$ac_link" 5056case "(($ac_try" in 5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5058 *) ac_try_echo=$ac_try;; 5059esac 5060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5061 (eval "$ac_link") 2>conftest.er1 5062 ac_status=$? 5063 grep -v '^ *+' conftest.er1 >conftest.err 5064 rm -f conftest.er1 5065 cat conftest.err >&5 5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5067 (exit $ac_status); } && { 5068 test -z "$ac_c_werror_flag" || 5069 test ! -s conftest.err 5070 } && test -s conftest$ac_exeext && 5071 $as_test_x conftest$ac_exeext; then 5072 lt_cv_cc_needs_belf=yes 5073else 5074 echo "$as_me: failed program was:" >&5 5075sed 's/^/| /' conftest.$ac_ext >&5 5076 5077 lt_cv_cc_needs_belf=no 5078fi 5079 5080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5081 conftest$ac_exeext conftest.$ac_ext 5082 ac_ext=c 5083ac_cpp='$CPP $CPPFLAGS' 5084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5086ac_compiler_gnu=$ac_cv_c_compiler_gnu 5087 5088fi 5089{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5090echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 5091 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5092 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5093 CFLAGS="$SAVE_CFLAGS" 5094 fi 5095 ;; 5096sparc*-*solaris*) 5097 # Find out which ABI we are using. 5098 echo 'int i;' > conftest.$ac_ext 5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5100 (eval $ac_compile) 2>&5 5101 ac_status=$? 5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5103 (exit $ac_status); }; then 5104 case `/usr/bin/file conftest.o` in 5105 *64-bit*) 5106 case $lt_cv_prog_gnu_ld in 5107 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5108 *) LD="${LD-ld} -64" ;; 5109 esac 5110 ;; 5111 esac 5112 fi 5113 rm -rf conftest* 5114 ;; 5115 5116*-*-cygwin* | *-*-mingw* | *-*-pw32*) 5117 if test -n "$ac_tool_prefix"; then 5118 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5119set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5120{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5122if test "${ac_cv_prog_DLLTOOL+set}" = set; then 5123 echo $ECHO_N "(cached) $ECHO_C" >&6 5124else 5125 if test -n "$DLLTOOL"; then 5126 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5127else 5128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5129for as_dir in $PATH 5130do 5131 IFS=$as_save_IFS 5132 test -z "$as_dir" && as_dir=. 5133 for ac_exec_ext in '' $ac_executable_extensions; do 5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5135 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5137 break 2 5138 fi 5139done 5140done 5141IFS=$as_save_IFS 5142 5143fi 5144fi 5145DLLTOOL=$ac_cv_prog_DLLTOOL 5146if test -n "$DLLTOOL"; then 5147 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 5148echo "${ECHO_T}$DLLTOOL" >&6; } 5149else 5150 { echo "$as_me:$LINENO: result: no" >&5 5151echo "${ECHO_T}no" >&6; } 5152fi 5153 5154 5155fi 5156if test -z "$ac_cv_prog_DLLTOOL"; then 5157 ac_ct_DLLTOOL=$DLLTOOL 5158 # Extract the first word of "dlltool", so it can be a program name with args. 5159set dummy dlltool; ac_word=$2 5160{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5162if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 5163 echo $ECHO_N "(cached) $ECHO_C" >&6 5164else 5165 if test -n "$ac_ct_DLLTOOL"; then 5166 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5167else 5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5169for as_dir in $PATH 5170do 5171 IFS=$as_save_IFS 5172 test -z "$as_dir" && as_dir=. 5173 for ac_exec_ext in '' $ac_executable_extensions; do 5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5175 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5177 break 2 5178 fi 5179done 5180done 5181IFS=$as_save_IFS 5182 5183fi 5184fi 5185ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5186if test -n "$ac_ct_DLLTOOL"; then 5187 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 5188echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } 5189else 5190 { echo "$as_me:$LINENO: result: no" >&5 5191echo "${ECHO_T}no" >&6; } 5192fi 5193 5194 if test "x$ac_ct_DLLTOOL" = x; then 5195 DLLTOOL="false" 5196 else 5197 case $cross_compiling:$ac_tool_warned in 5198yes:) 5199{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5200whose name does not start with the host triplet. If you think this 5201configuration is useful to you, please write to autoconf@gnu.org." >&5 5202echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5203whose name does not start with the host triplet. If you think this 5204configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5205ac_tool_warned=yes ;; 5206esac 5207 DLLTOOL=$ac_ct_DLLTOOL 5208 fi 5209else 5210 DLLTOOL="$ac_cv_prog_DLLTOOL" 5211fi 5212 5213 if test -n "$ac_tool_prefix"; then 5214 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5215set dummy ${ac_tool_prefix}as; ac_word=$2 5216{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5218if test "${ac_cv_prog_AS+set}" = set; then 5219 echo $ECHO_N "(cached) $ECHO_C" >&6 5220else 5221 if test -n "$AS"; then 5222 ac_cv_prog_AS="$AS" # Let the user override the test. 5223else 5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5225for as_dir in $PATH 5226do 5227 IFS=$as_save_IFS 5228 test -z "$as_dir" && as_dir=. 5229 for ac_exec_ext in '' $ac_executable_extensions; do 5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5231 ac_cv_prog_AS="${ac_tool_prefix}as" 5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5233 break 2 5234 fi 5235done 5236done 5237IFS=$as_save_IFS 5238 5239fi 5240fi 5241AS=$ac_cv_prog_AS 5242if test -n "$AS"; then 5243 { echo "$as_me:$LINENO: result: $AS" >&5 5244echo "${ECHO_T}$AS" >&6; } 5245else 5246 { echo "$as_me:$LINENO: result: no" >&5 5247echo "${ECHO_T}no" >&6; } 5248fi 5249 5250 5251fi 5252if test -z "$ac_cv_prog_AS"; then 5253 ac_ct_AS=$AS 5254 # Extract the first word of "as", so it can be a program name with args. 5255set dummy as; ac_word=$2 5256{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5258if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 5259 echo $ECHO_N "(cached) $ECHO_C" >&6 5260else 5261 if test -n "$ac_ct_AS"; then 5262 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5263else 5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5265for as_dir in $PATH 5266do 5267 IFS=$as_save_IFS 5268 test -z "$as_dir" && as_dir=. 5269 for ac_exec_ext in '' $ac_executable_extensions; do 5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5271 ac_cv_prog_ac_ct_AS="as" 5272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5273 break 2 5274 fi 5275done 5276done 5277IFS=$as_save_IFS 5278 5279fi 5280fi 5281ac_ct_AS=$ac_cv_prog_ac_ct_AS 5282if test -n "$ac_ct_AS"; then 5283 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 5284echo "${ECHO_T}$ac_ct_AS" >&6; } 5285else 5286 { echo "$as_me:$LINENO: result: no" >&5 5287echo "${ECHO_T}no" >&6; } 5288fi 5289 5290 if test "x$ac_ct_AS" = x; then 5291 AS="false" 5292 else 5293 case $cross_compiling:$ac_tool_warned in 5294yes:) 5295{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5296whose name does not start with the host triplet. If you think this 5297configuration is useful to you, please write to autoconf@gnu.org." >&5 5298echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5299whose name does not start with the host triplet. If you think this 5300configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5301ac_tool_warned=yes ;; 5302esac 5303 AS=$ac_ct_AS 5304 fi 5305else 5306 AS="$ac_cv_prog_AS" 5307fi 5308 5309 if test -n "$ac_tool_prefix"; then 5310 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5311set dummy ${ac_tool_prefix}objdump; ac_word=$2 5312{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5314if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5315 echo $ECHO_N "(cached) $ECHO_C" >&6 5316else 5317 if test -n "$OBJDUMP"; then 5318 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5319else 5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5321for as_dir in $PATH 5322do 5323 IFS=$as_save_IFS 5324 test -z "$as_dir" && as_dir=. 5325 for ac_exec_ext in '' $ac_executable_extensions; do 5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5327 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5329 break 2 5330 fi 5331done 5332done 5333IFS=$as_save_IFS 5334 5335fi 5336fi 5337OBJDUMP=$ac_cv_prog_OBJDUMP 5338if test -n "$OBJDUMP"; then 5339 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5340echo "${ECHO_T}$OBJDUMP" >&6; } 5341else 5342 { echo "$as_me:$LINENO: result: no" >&5 5343echo "${ECHO_T}no" >&6; } 5344fi 5345 5346 5347fi 5348if test -z "$ac_cv_prog_OBJDUMP"; then 5349 ac_ct_OBJDUMP=$OBJDUMP 5350 # Extract the first word of "objdump", so it can be a program name with args. 5351set dummy objdump; ac_word=$2 5352{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5354if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5355 echo $ECHO_N "(cached) $ECHO_C" >&6 5356else 5357 if test -n "$ac_ct_OBJDUMP"; then 5358 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5359else 5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5361for as_dir in $PATH 5362do 5363 IFS=$as_save_IFS 5364 test -z "$as_dir" && as_dir=. 5365 for ac_exec_ext in '' $ac_executable_extensions; do 5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5367 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5369 break 2 5370 fi 5371done 5372done 5373IFS=$as_save_IFS 5374 5375fi 5376fi 5377ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5378if test -n "$ac_ct_OBJDUMP"; then 5379 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5380echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 5381else 5382 { echo "$as_me:$LINENO: result: no" >&5 5383echo "${ECHO_T}no" >&6; } 5384fi 5385 5386 if test "x$ac_ct_OBJDUMP" = x; then 5387 OBJDUMP="false" 5388 else 5389 case $cross_compiling:$ac_tool_warned in 5390yes:) 5391{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5392whose name does not start with the host triplet. If you think this 5393configuration is useful to you, please write to autoconf@gnu.org." >&5 5394echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5395whose name does not start with the host triplet. If you think this 5396configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5397ac_tool_warned=yes ;; 5398esac 5399 OBJDUMP=$ac_ct_OBJDUMP 5400 fi 5401else 5402 OBJDUMP="$ac_cv_prog_OBJDUMP" 5403fi 5404 5405 ;; 5406 5407esac 5408 5409need_locks="$enable_libtool_lock" 5410 5411 5412ac_ext=c 5413ac_cpp='$CPP $CPPFLAGS' 5414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5416ac_compiler_gnu=$ac_cv_c_compiler_gnu 5417{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5418echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5419# On Suns, sometimes $CPP names a directory. 5420if test -n "$CPP" && test -d "$CPP"; then 5421 CPP= 5422fi 5423if test -z "$CPP"; then 5424 if test "${ac_cv_prog_CPP+set}" = set; then 5425 echo $ECHO_N "(cached) $ECHO_C" >&6 5426else 5427 # Double quotes because CPP needs to be expanded 5428 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5429 do 5430 ac_preproc_ok=false 5431for ac_c_preproc_warn_flag in '' yes 5432do 5433 # Use a header file that comes with gcc, so configuring glibc 5434 # with a fresh cross-compiler works. 5435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5436 # <limits.h> exists even on freestanding compilers. 5437 # On the NeXT, cc -E runs the code through the compiler's parser, 5438 # not just through cpp. "Syntax error" is here to catch this case. 5439 cat >conftest.$ac_ext <<_ACEOF 5440/* confdefs.h. */ 5441_ACEOF 5442cat confdefs.h >>conftest.$ac_ext 5443cat >>conftest.$ac_ext <<_ACEOF 5444/* end confdefs.h. */ 5445#ifdef __STDC__ 5446# include <limits.h> 5447#else 5448# include <assert.h> 5449#endif 5450 Syntax error 5451_ACEOF 5452if { (ac_try="$ac_cpp conftest.$ac_ext" 5453case "(($ac_try" in 5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5455 *) ac_try_echo=$ac_try;; 5456esac 5457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5459 ac_status=$? 5460 grep -v '^ *+' conftest.er1 >conftest.err 5461 rm -f conftest.er1 5462 cat conftest.err >&5 5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5464 (exit $ac_status); } >/dev/null && { 5465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5466 test ! -s conftest.err 5467 }; then 5468 : 5469else 5470 echo "$as_me: failed program was:" >&5 5471sed 's/^/| /' conftest.$ac_ext >&5 5472 5473 # Broken: fails on valid input. 5474continue 5475fi 5476 5477rm -f conftest.err conftest.$ac_ext 5478 5479 # OK, works on sane cases. Now check whether nonexistent headers 5480 # can be detected and how. 5481 cat >conftest.$ac_ext <<_ACEOF 5482/* confdefs.h. */ 5483_ACEOF 5484cat confdefs.h >>conftest.$ac_ext 5485cat >>conftest.$ac_ext <<_ACEOF 5486/* end confdefs.h. */ 5487#include <ac_nonexistent.h> 5488_ACEOF 5489if { (ac_try="$ac_cpp conftest.$ac_ext" 5490case "(($ac_try" in 5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5492 *) ac_try_echo=$ac_try;; 5493esac 5494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5496 ac_status=$? 5497 grep -v '^ *+' conftest.er1 >conftest.err 5498 rm -f conftest.er1 5499 cat conftest.err >&5 5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5501 (exit $ac_status); } >/dev/null && { 5502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5503 test ! -s conftest.err 5504 }; then 5505 # Broken: success on invalid input. 5506continue 5507else 5508 echo "$as_me: failed program was:" >&5 5509sed 's/^/| /' conftest.$ac_ext >&5 5510 5511 # Passes both tests. 5512ac_preproc_ok=: 5513break 5514fi 5515 5516rm -f conftest.err conftest.$ac_ext 5517 5518done 5519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5520rm -f conftest.err conftest.$ac_ext 5521if $ac_preproc_ok; then 5522 break 5523fi 5524 5525 done 5526 ac_cv_prog_CPP=$CPP 5527 5528fi 5529 CPP=$ac_cv_prog_CPP 5530else 5531 ac_cv_prog_CPP=$CPP 5532fi 5533{ echo "$as_me:$LINENO: result: $CPP" >&5 5534echo "${ECHO_T}$CPP" >&6; } 5535ac_preproc_ok=false 5536for ac_c_preproc_warn_flag in '' yes 5537do 5538 # Use a header file that comes with gcc, so configuring glibc 5539 # with a fresh cross-compiler works. 5540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5541 # <limits.h> exists even on freestanding compilers. 5542 # On the NeXT, cc -E runs the code through the compiler's parser, 5543 # not just through cpp. "Syntax error" is here to catch this case. 5544 cat >conftest.$ac_ext <<_ACEOF 5545/* confdefs.h. */ 5546_ACEOF 5547cat confdefs.h >>conftest.$ac_ext 5548cat >>conftest.$ac_ext <<_ACEOF 5549/* end confdefs.h. */ 5550#ifdef __STDC__ 5551# include <limits.h> 5552#else 5553# include <assert.h> 5554#endif 5555 Syntax error 5556_ACEOF 5557if { (ac_try="$ac_cpp conftest.$ac_ext" 5558case "(($ac_try" in 5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5560 *) ac_try_echo=$ac_try;; 5561esac 5562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5564 ac_status=$? 5565 grep -v '^ *+' conftest.er1 >conftest.err 5566 rm -f conftest.er1 5567 cat conftest.err >&5 5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5569 (exit $ac_status); } >/dev/null && { 5570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5571 test ! -s conftest.err 5572 }; then 5573 : 5574else 5575 echo "$as_me: failed program was:" >&5 5576sed 's/^/| /' conftest.$ac_ext >&5 5577 5578 # Broken: fails on valid input. 5579continue 5580fi 5581 5582rm -f conftest.err conftest.$ac_ext 5583 5584 # OK, works on sane cases. Now check whether nonexistent headers 5585 # can be detected and how. 5586 cat >conftest.$ac_ext <<_ACEOF 5587/* confdefs.h. */ 5588_ACEOF 5589cat confdefs.h >>conftest.$ac_ext 5590cat >>conftest.$ac_ext <<_ACEOF 5591/* end confdefs.h. */ 5592#include <ac_nonexistent.h> 5593_ACEOF 5594if { (ac_try="$ac_cpp conftest.$ac_ext" 5595case "(($ac_try" in 5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5597 *) ac_try_echo=$ac_try;; 5598esac 5599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5601 ac_status=$? 5602 grep -v '^ *+' conftest.er1 >conftest.err 5603 rm -f conftest.er1 5604 cat conftest.err >&5 5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5606 (exit $ac_status); } >/dev/null && { 5607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5608 test ! -s conftest.err 5609 }; then 5610 # Broken: success on invalid input. 5611continue 5612else 5613 echo "$as_me: failed program was:" >&5 5614sed 's/^/| /' conftest.$ac_ext >&5 5615 5616 # Passes both tests. 5617ac_preproc_ok=: 5618break 5619fi 5620 5621rm -f conftest.err conftest.$ac_ext 5622 5623done 5624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5625rm -f conftest.err conftest.$ac_ext 5626if $ac_preproc_ok; then 5627 : 5628else 5629 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5630See \`config.log' for more details." >&5 5631echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5632See \`config.log' for more details." >&2;} 5633 { (exit 1); exit 1; }; } 5634fi 5635 5636ac_ext=c 5637ac_cpp='$CPP $CPPFLAGS' 5638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5640ac_compiler_gnu=$ac_cv_c_compiler_gnu 5641 5642 5643{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5644echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5645if test "${ac_cv_header_stdc+set}" = set; then 5646 echo $ECHO_N "(cached) $ECHO_C" >&6 5647else 5648 cat >conftest.$ac_ext <<_ACEOF 5649/* confdefs.h. */ 5650_ACEOF 5651cat confdefs.h >>conftest.$ac_ext 5652cat >>conftest.$ac_ext <<_ACEOF 5653/* end confdefs.h. */ 5654#include <stdlib.h> 5655#include <stdarg.h> 5656#include <string.h> 5657#include <float.h> 5658 5659int 5660main () 5661{ 5662 5663 ; 5664 return 0; 5665} 5666_ACEOF 5667rm -f conftest.$ac_objext 5668if { (ac_try="$ac_compile" 5669case "(($ac_try" in 5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5671 *) ac_try_echo=$ac_try;; 5672esac 5673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5674 (eval "$ac_compile") 2>conftest.er1 5675 ac_status=$? 5676 grep -v '^ *+' conftest.er1 >conftest.err 5677 rm -f conftest.er1 5678 cat conftest.err >&5 5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5680 (exit $ac_status); } && { 5681 test -z "$ac_c_werror_flag" || 5682 test ! -s conftest.err 5683 } && test -s conftest.$ac_objext; then 5684 ac_cv_header_stdc=yes 5685else 5686 echo "$as_me: failed program was:" >&5 5687sed 's/^/| /' conftest.$ac_ext >&5 5688 5689 ac_cv_header_stdc=no 5690fi 5691 5692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5693 5694if test $ac_cv_header_stdc = yes; then 5695 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5696 cat >conftest.$ac_ext <<_ACEOF 5697/* confdefs.h. */ 5698_ACEOF 5699cat confdefs.h >>conftest.$ac_ext 5700cat >>conftest.$ac_ext <<_ACEOF 5701/* end confdefs.h. */ 5702#include <string.h> 5703 5704_ACEOF 5705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5706 $EGREP "memchr" >/dev/null 2>&1; then 5707 : 5708else 5709 ac_cv_header_stdc=no 5710fi 5711rm -f conftest* 5712 5713fi 5714 5715if test $ac_cv_header_stdc = yes; then 5716 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5717 cat >conftest.$ac_ext <<_ACEOF 5718/* confdefs.h. */ 5719_ACEOF 5720cat confdefs.h >>conftest.$ac_ext 5721cat >>conftest.$ac_ext <<_ACEOF 5722/* end confdefs.h. */ 5723#include <stdlib.h> 5724 5725_ACEOF 5726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5727 $EGREP "free" >/dev/null 2>&1; then 5728 : 5729else 5730 ac_cv_header_stdc=no 5731fi 5732rm -f conftest* 5733 5734fi 5735 5736if test $ac_cv_header_stdc = yes; then 5737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5738 if test "$cross_compiling" = yes; then 5739 : 5740else 5741 cat >conftest.$ac_ext <<_ACEOF 5742/* confdefs.h. */ 5743_ACEOF 5744cat confdefs.h >>conftest.$ac_ext 5745cat >>conftest.$ac_ext <<_ACEOF 5746/* end confdefs.h. */ 5747#include <ctype.h> 5748#include <stdlib.h> 5749#if ((' ' & 0x0FF) == 0x020) 5750# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5751# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5752#else 5753# define ISLOWER(c) \ 5754 (('a' <= (c) && (c) <= 'i') \ 5755 || ('j' <= (c) && (c) <= 'r') \ 5756 || ('s' <= (c) && (c) <= 'z')) 5757# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5758#endif 5759 5760#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5761int 5762main () 5763{ 5764 int i; 5765 for (i = 0; i < 256; i++) 5766 if (XOR (islower (i), ISLOWER (i)) 5767 || toupper (i) != TOUPPER (i)) 5768 return 2; 5769 return 0; 5770} 5771_ACEOF 5772rm -f conftest$ac_exeext 5773if { (ac_try="$ac_link" 5774case "(($ac_try" in 5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5776 *) ac_try_echo=$ac_try;; 5777esac 5778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5779 (eval "$ac_link") 2>&5 5780 ac_status=$? 5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5783 { (case "(($ac_try" in 5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5785 *) ac_try_echo=$ac_try;; 5786esac 5787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5788 (eval "$ac_try") 2>&5 5789 ac_status=$? 5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5791 (exit $ac_status); }; }; then 5792 : 5793else 5794 echo "$as_me: program exited with status $ac_status" >&5 5795echo "$as_me: failed program was:" >&5 5796sed 's/^/| /' conftest.$ac_ext >&5 5797 5798( exit $ac_status ) 5799ac_cv_header_stdc=no 5800fi 5801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5802fi 5803 5804 5805fi 5806fi 5807{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5808echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5809if test $ac_cv_header_stdc = yes; then 5810 5811cat >>confdefs.h <<\_ACEOF 5812#define STDC_HEADERS 1 5813_ACEOF 5814 5815fi 5816 5817# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5828 inttypes.h stdint.h unistd.h 5829do 5830as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5831{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5834 echo $ECHO_N "(cached) $ECHO_C" >&6 5835else 5836 cat >conftest.$ac_ext <<_ACEOF 5837/* confdefs.h. */ 5838_ACEOF 5839cat confdefs.h >>conftest.$ac_ext 5840cat >>conftest.$ac_ext <<_ACEOF 5841/* end confdefs.h. */ 5842$ac_includes_default 5843 5844#include <$ac_header> 5845_ACEOF 5846rm -f conftest.$ac_objext 5847if { (ac_try="$ac_compile" 5848case "(($ac_try" in 5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5850 *) ac_try_echo=$ac_try;; 5851esac 5852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5853 (eval "$ac_compile") 2>conftest.er1 5854 ac_status=$? 5855 grep -v '^ *+' conftest.er1 >conftest.err 5856 rm -f conftest.er1 5857 cat conftest.err >&5 5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5859 (exit $ac_status); } && { 5860 test -z "$ac_c_werror_flag" || 5861 test ! -s conftest.err 5862 } && test -s conftest.$ac_objext; then 5863 eval "$as_ac_Header=yes" 5864else 5865 echo "$as_me: failed program was:" >&5 5866sed 's/^/| /' conftest.$ac_ext >&5 5867 5868 eval "$as_ac_Header=no" 5869fi 5870 5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5872fi 5873ac_res=`eval echo '${'$as_ac_Header'}'` 5874 { echo "$as_me:$LINENO: result: $ac_res" >&5 5875echo "${ECHO_T}$ac_res" >&6; } 5876if test `eval echo '${'$as_ac_Header'}'` = yes; then 5877 cat >>confdefs.h <<_ACEOF 5878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5879_ACEOF 5880 5881fi 5882 5883done 5884 5885 5886 5887for ac_header in dlfcn.h 5888do 5889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5891 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5893if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5894 echo $ECHO_N "(cached) $ECHO_C" >&6 5895fi 5896ac_res=`eval echo '${'$as_ac_Header'}'` 5897 { echo "$as_me:$LINENO: result: $ac_res" >&5 5898echo "${ECHO_T}$ac_res" >&6; } 5899else 5900 # Is the header compilable? 5901{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5903cat >conftest.$ac_ext <<_ACEOF 5904/* confdefs.h. */ 5905_ACEOF 5906cat confdefs.h >>conftest.$ac_ext 5907cat >>conftest.$ac_ext <<_ACEOF 5908/* end confdefs.h. */ 5909$ac_includes_default 5910#include <$ac_header> 5911_ACEOF 5912rm -f conftest.$ac_objext 5913if { (ac_try="$ac_compile" 5914case "(($ac_try" in 5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5916 *) ac_try_echo=$ac_try;; 5917esac 5918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5919 (eval "$ac_compile") 2>conftest.er1 5920 ac_status=$? 5921 grep -v '^ *+' conftest.er1 >conftest.err 5922 rm -f conftest.er1 5923 cat conftest.err >&5 5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5925 (exit $ac_status); } && { 5926 test -z "$ac_c_werror_flag" || 5927 test ! -s conftest.err 5928 } && test -s conftest.$ac_objext; then 5929 ac_header_compiler=yes 5930else 5931 echo "$as_me: failed program was:" >&5 5932sed 's/^/| /' conftest.$ac_ext >&5 5933 5934 ac_header_compiler=no 5935fi 5936 5937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5938{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5939echo "${ECHO_T}$ac_header_compiler" >&6; } 5940 5941# Is the header present? 5942{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5944cat >conftest.$ac_ext <<_ACEOF 5945/* confdefs.h. */ 5946_ACEOF 5947cat confdefs.h >>conftest.$ac_ext 5948cat >>conftest.$ac_ext <<_ACEOF 5949/* end confdefs.h. */ 5950#include <$ac_header> 5951_ACEOF 5952if { (ac_try="$ac_cpp conftest.$ac_ext" 5953case "(($ac_try" in 5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5955 *) ac_try_echo=$ac_try;; 5956esac 5957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5959 ac_status=$? 5960 grep -v '^ *+' conftest.er1 >conftest.err 5961 rm -f conftest.er1 5962 cat conftest.err >&5 5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5964 (exit $ac_status); } >/dev/null && { 5965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5966 test ! -s conftest.err 5967 }; then 5968 ac_header_preproc=yes 5969else 5970 echo "$as_me: failed program was:" >&5 5971sed 's/^/| /' conftest.$ac_ext >&5 5972 5973 ac_header_preproc=no 5974fi 5975 5976rm -f conftest.err conftest.$ac_ext 5977{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5978echo "${ECHO_T}$ac_header_preproc" >&6; } 5979 5980# So? What about this header? 5981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5982 yes:no: ) 5983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5987 ac_header_preproc=yes 5988 ;; 5989 no:yes:* ) 5990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6002 6003 ;; 6004esac 6005{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6008 echo $ECHO_N "(cached) $ECHO_C" >&6 6009else 6010 eval "$as_ac_Header=\$ac_header_preproc" 6011fi 6012ac_res=`eval echo '${'$as_ac_Header'}'` 6013 { echo "$as_me:$LINENO: result: $ac_res" >&5 6014echo "${ECHO_T}$ac_res" >&6; } 6015 6016fi 6017if test `eval echo '${'$as_ac_Header'}'` = yes; then 6018 cat >>confdefs.h <<_ACEOF 6019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6020_ACEOF 6021 6022fi 6023 6024done 6025 6026 6027 6028if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6029 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6030 (test "X$CXX" != "Xg++"))) ; then 6031 ac_ext=cpp 6032ac_cpp='$CXXCPP $CPPFLAGS' 6033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6036{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6037echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6038if test -z "$CXXCPP"; then 6039 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6040 echo $ECHO_N "(cached) $ECHO_C" >&6 6041else 6042 # Double quotes because CXXCPP needs to be expanded 6043 for CXXCPP in "$CXX -E" "/lib/cpp" 6044 do 6045 ac_preproc_ok=false 6046for ac_cxx_preproc_warn_flag in '' yes 6047do 6048 # Use a header file that comes with gcc, so configuring glibc 6049 # with a fresh cross-compiler works. 6050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6051 # <limits.h> exists even on freestanding compilers. 6052 # On the NeXT, cc -E runs the code through the compiler's parser, 6053 # not just through cpp. "Syntax error" is here to catch this case. 6054 cat >conftest.$ac_ext <<_ACEOF 6055/* confdefs.h. */ 6056_ACEOF 6057cat confdefs.h >>conftest.$ac_ext 6058cat >>conftest.$ac_ext <<_ACEOF 6059/* end confdefs.h. */ 6060#ifdef __STDC__ 6061# include <limits.h> 6062#else 6063# include <assert.h> 6064#endif 6065 Syntax error 6066_ACEOF 6067if { (ac_try="$ac_cpp conftest.$ac_ext" 6068case "(($ac_try" in 6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6070 *) ac_try_echo=$ac_try;; 6071esac 6072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6074 ac_status=$? 6075 grep -v '^ *+' conftest.er1 >conftest.err 6076 rm -f conftest.er1 6077 cat conftest.err >&5 6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6079 (exit $ac_status); } >/dev/null && { 6080 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6081 test ! -s conftest.err 6082 }; then 6083 : 6084else 6085 echo "$as_me: failed program was:" >&5 6086sed 's/^/| /' conftest.$ac_ext >&5 6087 6088 # Broken: fails on valid input. 6089continue 6090fi 6091 6092rm -f conftest.err conftest.$ac_ext 6093 6094 # OK, works on sane cases. Now check whether nonexistent headers 6095 # can be detected and how. 6096 cat >conftest.$ac_ext <<_ACEOF 6097/* confdefs.h. */ 6098_ACEOF 6099cat confdefs.h >>conftest.$ac_ext 6100cat >>conftest.$ac_ext <<_ACEOF 6101/* end confdefs.h. */ 6102#include <ac_nonexistent.h> 6103_ACEOF 6104if { (ac_try="$ac_cpp conftest.$ac_ext" 6105case "(($ac_try" in 6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6107 *) ac_try_echo=$ac_try;; 6108esac 6109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6111 ac_status=$? 6112 grep -v '^ *+' conftest.er1 >conftest.err 6113 rm -f conftest.er1 6114 cat conftest.err >&5 6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6116 (exit $ac_status); } >/dev/null && { 6117 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6118 test ! -s conftest.err 6119 }; then 6120 # Broken: success on invalid input. 6121continue 6122else 6123 echo "$as_me: failed program was:" >&5 6124sed 's/^/| /' conftest.$ac_ext >&5 6125 6126 # Passes both tests. 6127ac_preproc_ok=: 6128break 6129fi 6130 6131rm -f conftest.err conftest.$ac_ext 6132 6133done 6134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6135rm -f conftest.err conftest.$ac_ext 6136if $ac_preproc_ok; then 6137 break 6138fi 6139 6140 done 6141 ac_cv_prog_CXXCPP=$CXXCPP 6142 6143fi 6144 CXXCPP=$ac_cv_prog_CXXCPP 6145else 6146 ac_cv_prog_CXXCPP=$CXXCPP 6147fi 6148{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6149echo "${ECHO_T}$CXXCPP" >&6; } 6150ac_preproc_ok=false 6151for ac_cxx_preproc_warn_flag in '' yes 6152do 6153 # Use a header file that comes with gcc, so configuring glibc 6154 # with a fresh cross-compiler works. 6155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6156 # <limits.h> exists even on freestanding compilers. 6157 # On the NeXT, cc -E runs the code through the compiler's parser, 6158 # not just through cpp. "Syntax error" is here to catch this case. 6159 cat >conftest.$ac_ext <<_ACEOF 6160/* confdefs.h. */ 6161_ACEOF 6162cat confdefs.h >>conftest.$ac_ext 6163cat >>conftest.$ac_ext <<_ACEOF 6164/* end confdefs.h. */ 6165#ifdef __STDC__ 6166# include <limits.h> 6167#else 6168# include <assert.h> 6169#endif 6170 Syntax error 6171_ACEOF 6172if { (ac_try="$ac_cpp conftest.$ac_ext" 6173case "(($ac_try" in 6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6175 *) ac_try_echo=$ac_try;; 6176esac 6177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6179 ac_status=$? 6180 grep -v '^ *+' conftest.er1 >conftest.err 6181 rm -f conftest.er1 6182 cat conftest.err >&5 6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6184 (exit $ac_status); } >/dev/null && { 6185 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6186 test ! -s conftest.err 6187 }; then 6188 : 6189else 6190 echo "$as_me: failed program was:" >&5 6191sed 's/^/| /' conftest.$ac_ext >&5 6192 6193 # Broken: fails on valid input. 6194continue 6195fi 6196 6197rm -f conftest.err conftest.$ac_ext 6198 6199 # OK, works on sane cases. Now check whether nonexistent headers 6200 # can be detected and how. 6201 cat >conftest.$ac_ext <<_ACEOF 6202/* confdefs.h. */ 6203_ACEOF 6204cat confdefs.h >>conftest.$ac_ext 6205cat >>conftest.$ac_ext <<_ACEOF 6206/* end confdefs.h. */ 6207#include <ac_nonexistent.h> 6208_ACEOF 6209if { (ac_try="$ac_cpp conftest.$ac_ext" 6210case "(($ac_try" in 6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6212 *) ac_try_echo=$ac_try;; 6213esac 6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6216 ac_status=$? 6217 grep -v '^ *+' conftest.er1 >conftest.err 6218 rm -f conftest.er1 6219 cat conftest.err >&5 6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6221 (exit $ac_status); } >/dev/null && { 6222 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6223 test ! -s conftest.err 6224 }; then 6225 # Broken: success on invalid input. 6226continue 6227else 6228 echo "$as_me: failed program was:" >&5 6229sed 's/^/| /' conftest.$ac_ext >&5 6230 6231 # Passes both tests. 6232ac_preproc_ok=: 6233break 6234fi 6235 6236rm -f conftest.err conftest.$ac_ext 6237 6238done 6239# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6240rm -f conftest.err conftest.$ac_ext 6241if $ac_preproc_ok; then 6242 : 6243else 6244 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6245See \`config.log' for more details." >&5 6246echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6247See \`config.log' for more details." >&2;} 6248 { (exit 1); exit 1; }; } 6249fi 6250 6251ac_ext=cpp 6252ac_cpp='$CXXCPP $CPPFLAGS' 6253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6256 6257fi 6258 6259 6260ac_ext=f 6261ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6262ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6263ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6264if test -n "$ac_tool_prefix"; then 6265 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 6266 do 6267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6268set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6269{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6271if test "${ac_cv_prog_F77+set}" = set; then 6272 echo $ECHO_N "(cached) $ECHO_C" >&6 6273else 6274 if test -n "$F77"; then 6275 ac_cv_prog_F77="$F77" # Let the user override the test. 6276else 6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6278for as_dir in $PATH 6279do 6280 IFS=$as_save_IFS 6281 test -z "$as_dir" && as_dir=. 6282 for ac_exec_ext in '' $ac_executable_extensions; do 6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6284 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6286 break 2 6287 fi 6288done 6289done 6290IFS=$as_save_IFS 6291 6292fi 6293fi 6294F77=$ac_cv_prog_F77 6295if test -n "$F77"; then 6296 { echo "$as_me:$LINENO: result: $F77" >&5 6297echo "${ECHO_T}$F77" >&6; } 6298else 6299 { echo "$as_me:$LINENO: result: no" >&5 6300echo "${ECHO_T}no" >&6; } 6301fi 6302 6303 6304 test -n "$F77" && break 6305 done 6306fi 6307if test -z "$F77"; then 6308 ac_ct_F77=$F77 6309 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 6310do 6311 # Extract the first word of "$ac_prog", so it can be a program name with args. 6312set dummy $ac_prog; ac_word=$2 6313{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6315if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6316 echo $ECHO_N "(cached) $ECHO_C" >&6 6317else 6318 if test -n "$ac_ct_F77"; then 6319 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6320else 6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6322for as_dir in $PATH 6323do 6324 IFS=$as_save_IFS 6325 test -z "$as_dir" && as_dir=. 6326 for ac_exec_ext in '' $ac_executable_extensions; do 6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6328 ac_cv_prog_ac_ct_F77="$ac_prog" 6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6330 break 2 6331 fi 6332done 6333done 6334IFS=$as_save_IFS 6335 6336fi 6337fi 6338ac_ct_F77=$ac_cv_prog_ac_ct_F77 6339if test -n "$ac_ct_F77"; then 6340 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6341echo "${ECHO_T}$ac_ct_F77" >&6; } 6342else 6343 { echo "$as_me:$LINENO: result: no" >&5 6344echo "${ECHO_T}no" >&6; } 6345fi 6346 6347 6348 test -n "$ac_ct_F77" && break 6349done 6350 6351 if test "x$ac_ct_F77" = x; then 6352 F77="" 6353 else 6354 case $cross_compiling:$ac_tool_warned in 6355yes:) 6356{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6357whose name does not start with the host triplet. If you think this 6358configuration is useful to you, please write to autoconf@gnu.org." >&5 6359echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6360whose name does not start with the host triplet. If you think this 6361configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6362ac_tool_warned=yes ;; 6363esac 6364 F77=$ac_ct_F77 6365 fi 6366fi 6367 6368 6369# Provide some information about the compiler. 6370echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6371ac_compiler=`set X $ac_compile; echo $2` 6372{ (ac_try="$ac_compiler --version >&5" 6373case "(($ac_try" in 6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6375 *) ac_try_echo=$ac_try;; 6376esac 6377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6378 (eval "$ac_compiler --version >&5") 2>&5 6379 ac_status=$? 6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6381 (exit $ac_status); } 6382{ (ac_try="$ac_compiler -v >&5" 6383case "(($ac_try" in 6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6385 *) ac_try_echo=$ac_try;; 6386esac 6387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6388 (eval "$ac_compiler -v >&5") 2>&5 6389 ac_status=$? 6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6391 (exit $ac_status); } 6392{ (ac_try="$ac_compiler -V >&5" 6393case "(($ac_try" in 6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6395 *) ac_try_echo=$ac_try;; 6396esac 6397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6398 (eval "$ac_compiler -V >&5") 2>&5 6399 ac_status=$? 6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6401 (exit $ac_status); } 6402rm -f a.out 6403 6404# If we don't use `.F' as extension, the preprocessor is not run on the 6405# input file. (Note that this only needs to work for GNU compilers.) 6406ac_save_ext=$ac_ext 6407ac_ext=F 6408{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6409echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6410if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6411 echo $ECHO_N "(cached) $ECHO_C" >&6 6412else 6413 cat >conftest.$ac_ext <<_ACEOF 6414 program main 6415#ifndef __GNUC__ 6416 choke me 6417#endif 6418 6419 end 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_f77_werror_flag" || 6436 test ! -s conftest.err 6437 } && test -s conftest.$ac_objext; then 6438 ac_compiler_gnu=yes 6439else 6440 echo "$as_me: failed program was:" >&5 6441sed 's/^/| /' conftest.$ac_ext >&5 6442 6443 ac_compiler_gnu=no 6444fi 6445 6446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6447ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6448 6449fi 6450{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6451echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6452ac_ext=$ac_save_ext 6453ac_test_FFLAGS=${FFLAGS+set} 6454ac_save_FFLAGS=$FFLAGS 6455FFLAGS= 6456{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6457echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6458if test "${ac_cv_prog_f77_g+set}" = set; then 6459 echo $ECHO_N "(cached) $ECHO_C" >&6 6460else 6461 FFLAGS=-g 6462cat >conftest.$ac_ext <<_ACEOF 6463 program main 6464 6465 end 6466_ACEOF 6467rm -f conftest.$ac_objext 6468if { (ac_try="$ac_compile" 6469case "(($ac_try" in 6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6471 *) ac_try_echo=$ac_try;; 6472esac 6473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6474 (eval "$ac_compile") 2>conftest.er1 6475 ac_status=$? 6476 grep -v '^ *+' conftest.er1 >conftest.err 6477 rm -f conftest.er1 6478 cat conftest.err >&5 6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6480 (exit $ac_status); } && { 6481 test -z "$ac_f77_werror_flag" || 6482 test ! -s conftest.err 6483 } && test -s conftest.$ac_objext; then 6484 ac_cv_prog_f77_g=yes 6485else 6486 echo "$as_me: failed program was:" >&5 6487sed 's/^/| /' conftest.$ac_ext >&5 6488 6489 ac_cv_prog_f77_g=no 6490fi 6491 6492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6493 6494fi 6495{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6496echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6497if test "$ac_test_FFLAGS" = set; then 6498 FFLAGS=$ac_save_FFLAGS 6499elif test $ac_cv_prog_f77_g = yes; then 6500 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6501 FFLAGS="-g -O2" 6502 else 6503 FFLAGS="-g" 6504 fi 6505else 6506 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6507 FFLAGS="-O2" 6508 else 6509 FFLAGS= 6510 fi 6511fi 6512 6513G77=`test $ac_compiler_gnu = yes && echo yes` 6514ac_ext=c 6515ac_cpp='$CPP $CPPFLAGS' 6516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6518ac_compiler_gnu=$ac_cv_c_compiler_gnu 6519 6520 6521 6522# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6523 6524# find the maximum length of command line arguments 6525{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6526echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6527if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6528 echo $ECHO_N "(cached) $ECHO_C" >&6 6529else 6530 i=0 6531 teststring="ABCD" 6532 6533 case $build_os in 6534 msdosdjgpp*) 6535 # On DJGPP, this test can blow up pretty badly due to problems in libc 6536 # (any single argument exceeding 2000 bytes causes a buffer overrun 6537 # during glob expansion). Even if it were fixed, the result of this 6538 # check would be larger than it should be. 6539 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6540 ;; 6541 6542 gnu*) 6543 # Under GNU Hurd, this test is not required because there is 6544 # no limit to the length of command line arguments. 6545 # Libtool will interpret -1 as no limit whatsoever 6546 lt_cv_sys_max_cmd_len=-1; 6547 ;; 6548 6549 cygwin* | mingw*) 6550 # On Win9x/ME, this test blows up -- it succeeds, but takes 6551 # about 5 minutes as the teststring grows exponentially. 6552 # Worse, since 9x/ME are not pre-emptively multitasking, 6553 # you end up with a "frozen" computer, even though with patience 6554 # the test eventually succeeds (with a max line length of 256k). 6555 # Instead, let's just punt: use the minimum linelength reported by 6556 # all of the supported platforms: 8192 (on NT/2K/XP). 6557 lt_cv_sys_max_cmd_len=8192; 6558 ;; 6559 6560 amigaos*) 6561 # On AmigaOS with pdksh, this test takes hours, literally. 6562 # So we just punt and use a minimum line length of 8192. 6563 lt_cv_sys_max_cmd_len=8192; 6564 ;; 6565 6566 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6567 # This has been around since 386BSD, at least. Likely further. 6568 if test -x /sbin/sysctl; then 6569 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6570 elif test -x /usr/sbin/sysctl; then 6571 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6572 else 6573 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6574 fi 6575 # And add a safety zone 6576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6578 ;; 6579 6580 interix*) 6581 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6582 lt_cv_sys_max_cmd_len=196608 6583 ;; 6584 6585 osf*) 6586 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6587 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6588 # nice to cause kernel panics so lets avoid the loop below. 6589 # First set a reasonable default. 6590 lt_cv_sys_max_cmd_len=16384 6591 # 6592 if test -x /sbin/sysconfig; then 6593 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6594 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6595 esac 6596 fi 6597 ;; 6598 sco3.2v5*) 6599 lt_cv_sys_max_cmd_len=102400 6600 ;; 6601 sysv5* | sco5v6* | sysv4.2uw2*) 6602 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6603 if test -n "$kargmax"; then 6604 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6605 else 6606 lt_cv_sys_max_cmd_len=32768 6607 fi 6608 ;; 6609 *) 6610 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6611 if test -n "$lt_cv_sys_max_cmd_len"; then 6612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6614 else 6615 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6616 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6617 = "XX$teststring") >/dev/null 2>&1 && 6618 new_result=`expr "X$teststring" : ".*" 2>&1` && 6619 lt_cv_sys_max_cmd_len=$new_result && 6620 test $i != 17 # 1/2 MB should be enough 6621 do 6622 i=`expr $i + 1` 6623 teststring=$teststring$teststring 6624 done 6625 teststring= 6626 # Add a significant safety factor because C++ compilers can tack on massive 6627 # amounts of additional arguments before passing them to the linker. 6628 # It appears as though 1/2 is a usable value. 6629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6630 fi 6631 ;; 6632 esac 6633 6634fi 6635 6636if test -n $lt_cv_sys_max_cmd_len ; then 6637 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6638echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6639else 6640 { echo "$as_me:$LINENO: result: none" >&5 6641echo "${ECHO_T}none" >&6; } 6642fi 6643 6644 6645 6646 6647 6648# Check for command to grab the raw symbol name followed by C symbol from nm. 6649{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6650echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6651if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6652 echo $ECHO_N "(cached) $ECHO_C" >&6 6653else 6654 6655# These are sane defaults that work on at least a few old systems. 6656# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6657 6658# Character class describing NM global symbol codes. 6659symcode='[BCDEGRST]' 6660 6661# Regexp to match symbols that can be accessed directly from C. 6662sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6663 6664# Transform an extracted symbol line into a proper C declaration 6665lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6666 6667# Transform an extracted symbol line into symbol name and symbol address 6668lt_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'" 6669 6670# Define system-specific variables. 6671case $host_os in 6672aix*) 6673 symcode='[BCDT]' 6674 ;; 6675cygwin* | mingw* | pw32*) 6676 symcode='[ABCDGISTW]' 6677 ;; 6678hpux*) # Its linker distinguishes data from code symbols 6679 if test "$host_cpu" = ia64; then 6680 symcode='[ABCDEGRST]' 6681 fi 6682 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6683 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'" 6684 ;; 6685linux* | k*bsd*-gnu) 6686 if test "$host_cpu" = ia64; then 6687 symcode='[ABCDGIRSTW]' 6688 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6689 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'" 6690 fi 6691 ;; 6692irix* | nonstopux*) 6693 symcode='[BCDEGRST]' 6694 ;; 6695osf*) 6696 symcode='[BCDEGQRST]' 6697 ;; 6698solaris*) 6699 symcode='[BDRT]' 6700 ;; 6701sco3.2v5*) 6702 symcode='[DT]' 6703 ;; 6704sysv4.2uw2*) 6705 symcode='[DT]' 6706 ;; 6707sysv5* | sco5v6* | unixware* | OpenUNIX*) 6708 symcode='[ABDT]' 6709 ;; 6710sysv4) 6711 symcode='[DFNSTU]' 6712 ;; 6713esac 6714 6715# Handle CRLF in mingw tool chain 6716opt_cr= 6717case $build_os in 6718mingw*) 6719 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6720 ;; 6721esac 6722 6723# If we're using GNU nm, then use its standard symbol codes. 6724case `$NM -V 2>&1` in 6725*GNU* | *'with BFD'*) 6726 symcode='[ABCDGIRSTW]' ;; 6727esac 6728 6729# Try without a prefix undercore, then with it. 6730for ac_symprfx in "" "_"; do 6731 6732 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6733 symxfrm="\\1 $ac_symprfx\\2 \\2" 6734 6735 # Write the raw and C identifiers. 6736 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6737 6738 # Check to see that the pipe works correctly. 6739 pipe_works=no 6740 6741 rm -f conftest* 6742 cat > conftest.$ac_ext <<EOF 6743#ifdef __cplusplus 6744extern "C" { 6745#endif 6746char nm_test_var; 6747void nm_test_func(){} 6748#ifdef __cplusplus 6749} 6750#endif 6751int main(){nm_test_var='a';nm_test_func();return(0);} 6752EOF 6753 6754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6755 (eval $ac_compile) 2>&5 6756 ac_status=$? 6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6758 (exit $ac_status); }; then 6759 # Now try to grab the symbols. 6760 nlist=conftest.nm 6761 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6762 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6763 ac_status=$? 6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6765 (exit $ac_status); } && test -s "$nlist"; then 6766 # Try sorting and uniquifying the output. 6767 if sort "$nlist" | uniq > "$nlist"T; then 6768 mv -f "$nlist"T "$nlist" 6769 else 6770 rm -f "$nlist"T 6771 fi 6772 6773 # Make sure that we snagged all the symbols we need. 6774 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6775 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6776 cat <<EOF > conftest.$ac_ext 6777#ifdef __cplusplus 6778extern "C" { 6779#endif 6780 6781EOF 6782 # Now generate the symbol file. 6783 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6784 6785 cat <<EOF >> conftest.$ac_ext 6786#if defined (__STDC__) && __STDC__ 6787# define lt_ptr_t void * 6788#else 6789# define lt_ptr_t char * 6790# define const 6791#endif 6792 6793/* The mapping between symbol names and symbols. */ 6794const struct { 6795 const char *name; 6796 lt_ptr_t address; 6797} 6798lt_preloaded_symbols[] = 6799{ 6800EOF 6801 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6802 cat <<\EOF >> conftest.$ac_ext 6803 {0, (lt_ptr_t) 0} 6804}; 6805 6806#ifdef __cplusplus 6807} 6808#endif 6809EOF 6810 # Now try linking the two files. 6811 mv conftest.$ac_objext conftstm.$ac_objext 6812 lt_save_LIBS="$LIBS" 6813 lt_save_CFLAGS="$CFLAGS" 6814 LIBS="conftstm.$ac_objext" 6815 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6817 (eval $ac_link) 2>&5 6818 ac_status=$? 6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6820 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6821 pipe_works=yes 6822 fi 6823 LIBS="$lt_save_LIBS" 6824 CFLAGS="$lt_save_CFLAGS" 6825 else 6826 echo "cannot find nm_test_func in $nlist" >&5 6827 fi 6828 else 6829 echo "cannot find nm_test_var in $nlist" >&5 6830 fi 6831 else 6832 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6833 fi 6834 else 6835 echo "$progname: failed program was:" >&5 6836 cat conftest.$ac_ext >&5 6837 fi 6838 rm -f conftest* conftst* 6839 6840 # Do not use the global_symbol_pipe unless it works. 6841 if test "$pipe_works" = yes; then 6842 break 6843 else 6844 lt_cv_sys_global_symbol_pipe= 6845 fi 6846done 6847 6848fi 6849 6850if test -z "$lt_cv_sys_global_symbol_pipe"; then 6851 lt_cv_sys_global_symbol_to_cdecl= 6852fi 6853if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6854 { echo "$as_me:$LINENO: result: failed" >&5 6855echo "${ECHO_T}failed" >&6; } 6856else 6857 { echo "$as_me:$LINENO: result: ok" >&5 6858echo "${ECHO_T}ok" >&6; } 6859fi 6860 6861{ echo "$as_me:$LINENO: checking for objdir" >&5 6862echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6863if test "${lt_cv_objdir+set}" = set; then 6864 echo $ECHO_N "(cached) $ECHO_C" >&6 6865else 6866 rm -f .libs 2>/dev/null 6867mkdir .libs 2>/dev/null 6868if test -d .libs; then 6869 lt_cv_objdir=.libs 6870else 6871 # MS-DOS does not allow filenames that begin with a dot. 6872 lt_cv_objdir=_libs 6873fi 6874rmdir .libs 2>/dev/null 6875fi 6876{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6877echo "${ECHO_T}$lt_cv_objdir" >&6; } 6878objdir=$lt_cv_objdir 6879 6880 6881 6882 6883 6884case $host_os in 6885aix3*) 6886 # AIX sometimes has problems with the GCC collect2 program. For some 6887 # reason, if we set the COLLECT_NAMES environment variable, the problems 6888 # vanish in a puff of smoke. 6889 if test "X${COLLECT_NAMES+set}" != Xset; then 6890 COLLECT_NAMES= 6891 export COLLECT_NAMES 6892 fi 6893 ;; 6894esac 6895 6896# Sed substitution that helps us do robust quoting. It backslashifies 6897# metacharacters that are still active within double-quoted strings. 6898Xsed='sed -e 1s/^X//' 6899sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6900 6901# Same as above, but do not quote variable references. 6902double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6903 6904# Sed substitution to delay expansion of an escaped shell variable in a 6905# double_quote_subst'ed string. 6906delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6907 6908# Sed substitution to avoid accidental globbing in evaled expressions 6909no_glob_subst='s/\*/\\\*/g' 6910 6911# Constants: 6912rm="rm -f" 6913 6914# Global variables: 6915default_ofile=libtool 6916can_build_shared=yes 6917 6918# All known linkers require a `.a' archive for static linking (except MSVC, 6919# which needs '.lib'). 6920libext=a 6921ltmain="$ac_aux_dir/ltmain.sh" 6922ofile="$default_ofile" 6923with_gnu_ld="$lt_cv_prog_gnu_ld" 6924 6925if test -n "$ac_tool_prefix"; then 6926 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6927set dummy ${ac_tool_prefix}ar; ac_word=$2 6928{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6930if test "${ac_cv_prog_AR+set}" = set; then 6931 echo $ECHO_N "(cached) $ECHO_C" >&6 6932else 6933 if test -n "$AR"; then 6934 ac_cv_prog_AR="$AR" # Let the user override the test. 6935else 6936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6937for as_dir in $PATH 6938do 6939 IFS=$as_save_IFS 6940 test -z "$as_dir" && as_dir=. 6941 for ac_exec_ext in '' $ac_executable_extensions; do 6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6943 ac_cv_prog_AR="${ac_tool_prefix}ar" 6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6945 break 2 6946 fi 6947done 6948done 6949IFS=$as_save_IFS 6950 6951fi 6952fi 6953AR=$ac_cv_prog_AR 6954if test -n "$AR"; then 6955 { echo "$as_me:$LINENO: result: $AR" >&5 6956echo "${ECHO_T}$AR" >&6; } 6957else 6958 { echo "$as_me:$LINENO: result: no" >&5 6959echo "${ECHO_T}no" >&6; } 6960fi 6961 6962 6963fi 6964if test -z "$ac_cv_prog_AR"; then 6965 ac_ct_AR=$AR 6966 # Extract the first word of "ar", so it can be a program name with args. 6967set dummy ar; ac_word=$2 6968{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6970if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6971 echo $ECHO_N "(cached) $ECHO_C" >&6 6972else 6973 if test -n "$ac_ct_AR"; then 6974 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6975else 6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6977for as_dir in $PATH 6978do 6979 IFS=$as_save_IFS 6980 test -z "$as_dir" && as_dir=. 6981 for ac_exec_ext in '' $ac_executable_extensions; do 6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6983 ac_cv_prog_ac_ct_AR="ar" 6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6985 break 2 6986 fi 6987done 6988done 6989IFS=$as_save_IFS 6990 6991fi 6992fi 6993ac_ct_AR=$ac_cv_prog_ac_ct_AR 6994if test -n "$ac_ct_AR"; then 6995 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6996echo "${ECHO_T}$ac_ct_AR" >&6; } 6997else 6998 { echo "$as_me:$LINENO: result: no" >&5 6999echo "${ECHO_T}no" >&6; } 7000fi 7001 7002 if test "x$ac_ct_AR" = x; then 7003 AR="false" 7004 else 7005 case $cross_compiling:$ac_tool_warned in 7006yes:) 7007{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7008whose name does not start with the host triplet. If you think this 7009configuration is useful to you, please write to autoconf@gnu.org." >&5 7010echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7011whose name does not start with the host triplet. If you think this 7012configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7013ac_tool_warned=yes ;; 7014esac 7015 AR=$ac_ct_AR 7016 fi 7017else 7018 AR="$ac_cv_prog_AR" 7019fi 7020 7021if test -n "$ac_tool_prefix"; then 7022 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7023set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7024{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7026if test "${ac_cv_prog_RANLIB+set}" = set; then 7027 echo $ECHO_N "(cached) $ECHO_C" >&6 7028else 7029 if test -n "$RANLIB"; then 7030 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7031else 7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7033for as_dir in $PATH 7034do 7035 IFS=$as_save_IFS 7036 test -z "$as_dir" && as_dir=. 7037 for ac_exec_ext in '' $ac_executable_extensions; do 7038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7039 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7041 break 2 7042 fi 7043done 7044done 7045IFS=$as_save_IFS 7046 7047fi 7048fi 7049RANLIB=$ac_cv_prog_RANLIB 7050if test -n "$RANLIB"; then 7051 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7052echo "${ECHO_T}$RANLIB" >&6; } 7053else 7054 { echo "$as_me:$LINENO: result: no" >&5 7055echo "${ECHO_T}no" >&6; } 7056fi 7057 7058 7059fi 7060if test -z "$ac_cv_prog_RANLIB"; then 7061 ac_ct_RANLIB=$RANLIB 7062 # Extract the first word of "ranlib", so it can be a program name with args. 7063set dummy ranlib; ac_word=$2 7064{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7066if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7067 echo $ECHO_N "(cached) $ECHO_C" >&6 7068else 7069 if test -n "$ac_ct_RANLIB"; then 7070 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7071else 7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7073for as_dir in $PATH 7074do 7075 IFS=$as_save_IFS 7076 test -z "$as_dir" && as_dir=. 7077 for ac_exec_ext in '' $ac_executable_extensions; do 7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7079 ac_cv_prog_ac_ct_RANLIB="ranlib" 7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7081 break 2 7082 fi 7083done 7084done 7085IFS=$as_save_IFS 7086 7087fi 7088fi 7089ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7090if test -n "$ac_ct_RANLIB"; then 7091 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7092echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7093else 7094 { echo "$as_me:$LINENO: result: no" >&5 7095echo "${ECHO_T}no" >&6; } 7096fi 7097 7098 if test "x$ac_ct_RANLIB" = x; then 7099 RANLIB=":" 7100 else 7101 case $cross_compiling:$ac_tool_warned in 7102yes:) 7103{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7104whose name does not start with the host triplet. If you think this 7105configuration is useful to you, please write to autoconf@gnu.org." >&5 7106echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7107whose name does not start with the host triplet. If you think this 7108configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7109ac_tool_warned=yes ;; 7110esac 7111 RANLIB=$ac_ct_RANLIB 7112 fi 7113else 7114 RANLIB="$ac_cv_prog_RANLIB" 7115fi 7116 7117if test -n "$ac_tool_prefix"; then 7118 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7119set dummy ${ac_tool_prefix}strip; ac_word=$2 7120{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7122if test "${ac_cv_prog_STRIP+set}" = set; then 7123 echo $ECHO_N "(cached) $ECHO_C" >&6 7124else 7125 if test -n "$STRIP"; then 7126 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7127else 7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7129for as_dir in $PATH 7130do 7131 IFS=$as_save_IFS 7132 test -z "$as_dir" && as_dir=. 7133 for ac_exec_ext in '' $ac_executable_extensions; do 7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7135 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7137 break 2 7138 fi 7139done 7140done 7141IFS=$as_save_IFS 7142 7143fi 7144fi 7145STRIP=$ac_cv_prog_STRIP 7146if test -n "$STRIP"; then 7147 { echo "$as_me:$LINENO: result: $STRIP" >&5 7148echo "${ECHO_T}$STRIP" >&6; } 7149else 7150 { echo "$as_me:$LINENO: result: no" >&5 7151echo "${ECHO_T}no" >&6; } 7152fi 7153 7154 7155fi 7156if test -z "$ac_cv_prog_STRIP"; then 7157 ac_ct_STRIP=$STRIP 7158 # Extract the first word of "strip", so it can be a program name with args. 7159set dummy strip; ac_word=$2 7160{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7162if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7163 echo $ECHO_N "(cached) $ECHO_C" >&6 7164else 7165 if test -n "$ac_ct_STRIP"; then 7166 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7167else 7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7169for as_dir in $PATH 7170do 7171 IFS=$as_save_IFS 7172 test -z "$as_dir" && as_dir=. 7173 for ac_exec_ext in '' $ac_executable_extensions; do 7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7175 ac_cv_prog_ac_ct_STRIP="strip" 7176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7177 break 2 7178 fi 7179done 7180done 7181IFS=$as_save_IFS 7182 7183fi 7184fi 7185ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7186if test -n "$ac_ct_STRIP"; then 7187 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7188echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7189else 7190 { echo "$as_me:$LINENO: result: no" >&5 7191echo "${ECHO_T}no" >&6; } 7192fi 7193 7194 if test "x$ac_ct_STRIP" = x; then 7195 STRIP=":" 7196 else 7197 case $cross_compiling:$ac_tool_warned in 7198yes:) 7199{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7200whose name does not start with the host triplet. If you think this 7201configuration is useful to you, please write to autoconf@gnu.org." >&5 7202echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7203whose name does not start with the host triplet. If you think this 7204configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7205ac_tool_warned=yes ;; 7206esac 7207 STRIP=$ac_ct_STRIP 7208 fi 7209else 7210 STRIP="$ac_cv_prog_STRIP" 7211fi 7212 7213 7214old_CC="$CC" 7215old_CFLAGS="$CFLAGS" 7216 7217# Set sane defaults for various variables 7218test -z "$AR" && AR=ar 7219test -z "$AR_FLAGS" && AR_FLAGS=cru 7220test -z "$AS" && AS=as 7221test -z "$CC" && CC=cc 7222test -z "$LTCC" && LTCC=$CC 7223test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7224test -z "$DLLTOOL" && DLLTOOL=dlltool 7225test -z "$LD" && LD=ld 7226test -z "$LN_S" && LN_S="ln -s" 7227test -z "$MAGIC_CMD" && MAGIC_CMD=file 7228test -z "$NM" && NM=nm 7229test -z "$SED" && SED=sed 7230test -z "$OBJDUMP" && OBJDUMP=objdump 7231test -z "$RANLIB" && RANLIB=: 7232test -z "$STRIP" && STRIP=: 7233test -z "$ac_objext" && ac_objext=o 7234 7235# Determine commands to create old-style static archives. 7236old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7237old_postinstall_cmds='chmod 644 $oldlib' 7238old_postuninstall_cmds= 7239 7240if test -n "$RANLIB"; then 7241 case $host_os in 7242 openbsd*) 7243 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7244 ;; 7245 *) 7246 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7247 ;; 7248 esac 7249 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7250fi 7251 7252for cc_temp in $compiler""; do 7253 case $cc_temp in 7254 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7255 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7256 \-*) ;; 7257 *) break;; 7258 esac 7259done 7260cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7261 7262 7263# Only perform the check for file, if the check method requires it 7264case $deplibs_check_method in 7265file_magic*) 7266 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7267 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7268echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7269if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7270 echo $ECHO_N "(cached) $ECHO_C" >&6 7271else 7272 case $MAGIC_CMD in 7273[\\/*] | ?:[\\/]*) 7274 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7275 ;; 7276*) 7277 lt_save_MAGIC_CMD="$MAGIC_CMD" 7278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7279 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7280 for ac_dir in $ac_dummy; do 7281 IFS="$lt_save_ifs" 7282 test -z "$ac_dir" && ac_dir=. 7283 if test -f $ac_dir/${ac_tool_prefix}file; then 7284 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7285 if test -n "$file_magic_test_file"; then 7286 case $deplibs_check_method in 7287 "file_magic "*) 7288 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7290 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7291 $EGREP "$file_magic_regex" > /dev/null; then 7292 : 7293 else 7294 cat <<EOF 1>&2 7295 7296*** Warning: the command libtool uses to detect shared libraries, 7297*** $file_magic_cmd, produces output that libtool cannot recognize. 7298*** The result is that libtool may fail to recognize shared libraries 7299*** as such. This will affect the creation of libtool libraries that 7300*** depend on shared libraries, but programs linked with such libtool 7301*** libraries will work regardless of this problem. Nevertheless, you 7302*** may want to report the problem to your system manager and/or to 7303*** bug-libtool@gnu.org 7304 7305EOF 7306 fi ;; 7307 esac 7308 fi 7309 break 7310 fi 7311 done 7312 IFS="$lt_save_ifs" 7313 MAGIC_CMD="$lt_save_MAGIC_CMD" 7314 ;; 7315esac 7316fi 7317 7318MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7319if test -n "$MAGIC_CMD"; then 7320 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7321echo "${ECHO_T}$MAGIC_CMD" >&6; } 7322else 7323 { echo "$as_me:$LINENO: result: no" >&5 7324echo "${ECHO_T}no" >&6; } 7325fi 7326 7327if test -z "$lt_cv_path_MAGIC_CMD"; then 7328 if test -n "$ac_tool_prefix"; then 7329 { echo "$as_me:$LINENO: checking for file" >&5 7330echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7331if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7332 echo $ECHO_N "(cached) $ECHO_C" >&6 7333else 7334 case $MAGIC_CMD in 7335[\\/*] | ?:[\\/]*) 7336 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7337 ;; 7338*) 7339 lt_save_MAGIC_CMD="$MAGIC_CMD" 7340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7341 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7342 for ac_dir in $ac_dummy; do 7343 IFS="$lt_save_ifs" 7344 test -z "$ac_dir" && ac_dir=. 7345 if test -f $ac_dir/file; then 7346 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7347 if test -n "$file_magic_test_file"; then 7348 case $deplibs_check_method in 7349 "file_magic "*) 7350 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7352 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7353 $EGREP "$file_magic_regex" > /dev/null; then 7354 : 7355 else 7356 cat <<EOF 1>&2 7357 7358*** Warning: the command libtool uses to detect shared libraries, 7359*** $file_magic_cmd, produces output that libtool cannot recognize. 7360*** The result is that libtool may fail to recognize shared libraries 7361*** as such. This will affect the creation of libtool libraries that 7362*** depend on shared libraries, but programs linked with such libtool 7363*** libraries will work regardless of this problem. Nevertheless, you 7364*** may want to report the problem to your system manager and/or to 7365*** bug-libtool@gnu.org 7366 7367EOF 7368 fi ;; 7369 esac 7370 fi 7371 break 7372 fi 7373 done 7374 IFS="$lt_save_ifs" 7375 MAGIC_CMD="$lt_save_MAGIC_CMD" 7376 ;; 7377esac 7378fi 7379 7380MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7381if test -n "$MAGIC_CMD"; then 7382 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7383echo "${ECHO_T}$MAGIC_CMD" >&6; } 7384else 7385 { echo "$as_me:$LINENO: result: no" >&5 7386echo "${ECHO_T}no" >&6; } 7387fi 7388 7389 else 7390 MAGIC_CMD=: 7391 fi 7392fi 7393 7394 fi 7395 ;; 7396esac 7397 7398enable_dlopen=no 7399enable_win32_dll=yes 7400 7401# Check whether --enable-libtool-lock was given. 7402if test "${enable_libtool_lock+set}" = set; then 7403 enableval=$enable_libtool_lock; 7404fi 7405 7406test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7407 7408 7409# Check whether --with-pic was given. 7410if test "${with_pic+set}" = set; then 7411 withval=$with_pic; pic_mode="$withval" 7412else 7413 pic_mode=default 7414fi 7415 7416test -z "$pic_mode" && pic_mode=default 7417 7418# Use C for the default configuration in the libtool script 7419tagname= 7420lt_save_CC="$CC" 7421ac_ext=c 7422ac_cpp='$CPP $CPPFLAGS' 7423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7425ac_compiler_gnu=$ac_cv_c_compiler_gnu 7426 7427 7428# Source file extension for C test sources. 7429ac_ext=c 7430 7431# Object file extension for compiled C test sources. 7432objext=o 7433objext=$objext 7434 7435# Code to be used in simple compile tests 7436lt_simple_compile_test_code="int some_variable = 0;" 7437 7438# Code to be used in simple link tests 7439lt_simple_link_test_code='int main(){return(0);}' 7440 7441 7442# If no C compiler was specified, use CC. 7443LTCC=${LTCC-"$CC"} 7444 7445# If no C compiler flags were specified, use CFLAGS. 7446LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7447 7448# Allow CC to be a program name with arguments. 7449compiler=$CC 7450 7451 7452# save warnings/boilerplate of simple test code 7453ac_outfile=conftest.$ac_objext 7454echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7455eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7456_lt_compiler_boilerplate=`cat conftest.err` 7457$rm conftest* 7458 7459ac_outfile=conftest.$ac_objext 7460echo "$lt_simple_link_test_code" >conftest.$ac_ext 7461eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7462_lt_linker_boilerplate=`cat conftest.err` 7463$rm conftest* 7464 7465 7466## CAVEAT EMPTOR: 7467## There is no encapsulation within the following macros, do not change 7468## the running order or otherwise move them around unless you know exactly 7469## what you are doing... 7470 7471lt_prog_compiler_no_builtin_flag= 7472 7473if test "$GCC" = yes; then 7474 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7475 7476 7477{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7478echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7479if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7480 echo $ECHO_N "(cached) $ECHO_C" >&6 7481else 7482 lt_cv_prog_compiler_rtti_exceptions=no 7483 ac_outfile=conftest.$ac_objext 7484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7485 lt_compiler_flag="-fno-rtti -fno-exceptions" 7486 # Insert the option either (1) after the last *FLAGS variable, or 7487 # (2) before a word containing "conftest.", or (3) at the end. 7488 # Note that $ac_compile itself does not contain backslashes and begins 7489 # with a dollar sign (not a hyphen), so the echo should work correctly. 7490 # The option is referenced via a variable to avoid confusing sed. 7491 lt_compile=`echo "$ac_compile" | $SED \ 7492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7494 -e 's:$: $lt_compiler_flag:'` 7495 (eval echo "\"\$as_me:7495: $lt_compile\"" >&5) 7496 (eval "$lt_compile" 2>conftest.err) 7497 ac_status=$? 7498 cat conftest.err >&5 7499 echo "$as_me:7499: \$? = $ac_status" >&5 7500 if (exit $ac_status) && test -s "$ac_outfile"; then 7501 # The compiler can only warn and ignore the option if not recognized 7502 # So say no if there are warnings other than the usual output. 7503 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7505 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7506 lt_cv_prog_compiler_rtti_exceptions=yes 7507 fi 7508 fi 7509 $rm conftest* 7510 7511fi 7512{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7513echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7514 7515if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7516 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7517else 7518 : 7519fi 7520 7521fi 7522 7523lt_prog_compiler_wl= 7524lt_prog_compiler_pic= 7525lt_prog_compiler_static= 7526 7527{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7528echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7529 7530 if test "$GCC" = yes; then 7531 lt_prog_compiler_wl='-Wl,' 7532 lt_prog_compiler_static='-static' 7533 7534 case $host_os in 7535 aix*) 7536 # All AIX code is PIC. 7537 if test "$host_cpu" = ia64; then 7538 # AIX 5 now supports IA64 processor 7539 lt_prog_compiler_static='-Bstatic' 7540 fi 7541 ;; 7542 7543 amigaos*) 7544 # FIXME: we need at least 68020 code to build shared libraries, but 7545 # adding the `-m68020' flag to GCC prevents building anything better, 7546 # like `-m68040'. 7547 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7548 ;; 7549 7550 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7551 # PIC is the default for these OSes. 7552 ;; 7553 7554 mingw* | cygwin* | pw32* | os2*) 7555 # This hack is so that the source file can tell whether it is being 7556 # built for inclusion in a dll (and should export symbols for example). 7557 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7558 # (--disable-auto-import) libraries 7559 lt_prog_compiler_pic='-DDLL_EXPORT' 7560 ;; 7561 7562 darwin* | rhapsody*) 7563 # PIC is the default on this platform 7564 # Common symbols not allowed in MH_DYLIB files 7565 lt_prog_compiler_pic='-fno-common' 7566 ;; 7567 7568 interix[3-9]*) 7569 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7570 # Instead, we relocate shared libraries at runtime. 7571 ;; 7572 7573 msdosdjgpp*) 7574 # Just because we use GCC doesn't mean we suddenly get shared libraries 7575 # on systems that don't support them. 7576 lt_prog_compiler_can_build_shared=no 7577 enable_shared=no 7578 ;; 7579 7580 sysv4*MP*) 7581 if test -d /usr/nec; then 7582 lt_prog_compiler_pic=-Kconform_pic 7583 fi 7584 ;; 7585 7586 hpux*) 7587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7588 # not for PA HP-UX. 7589 case $host_cpu in 7590 hppa*64*|ia64*) 7591 # +Z the default 7592 ;; 7593 *) 7594 lt_prog_compiler_pic='-fPIC' 7595 ;; 7596 esac 7597 ;; 7598 7599 *) 7600 lt_prog_compiler_pic='-fPIC' 7601 ;; 7602 esac 7603 else 7604 # PORTME Check for flag to pass linker flags through the system compiler. 7605 case $host_os in 7606 aix*) 7607 lt_prog_compiler_wl='-Wl,' 7608 if test "$host_cpu" = ia64; then 7609 # AIX 5 now supports IA64 processor 7610 lt_prog_compiler_static='-Bstatic' 7611 else 7612 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7613 fi 7614 ;; 7615 darwin*) 7616 # PIC is the default on this platform 7617 # Common symbols not allowed in MH_DYLIB files 7618 case $cc_basename in 7619 xlc*) 7620 lt_prog_compiler_pic='-qnocommon' 7621 lt_prog_compiler_wl='-Wl,' 7622 ;; 7623 esac 7624 ;; 7625 7626 mingw* | cygwin* | pw32* | os2*) 7627 # This hack is so that the source file can tell whether it is being 7628 # built for inclusion in a dll (and should export symbols for example). 7629 lt_prog_compiler_pic='-DDLL_EXPORT' 7630 ;; 7631 7632 hpux9* | hpux10* | hpux11*) 7633 lt_prog_compiler_wl='-Wl,' 7634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7635 # not for PA HP-UX. 7636 case $host_cpu in 7637 hppa*64*|ia64*) 7638 # +Z the default 7639 ;; 7640 *) 7641 lt_prog_compiler_pic='+Z' 7642 ;; 7643 esac 7644 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7645 lt_prog_compiler_static='${wl}-a ${wl}archive' 7646 ;; 7647 7648 irix5* | irix6* | nonstopux*) 7649 lt_prog_compiler_wl='-Wl,' 7650 # PIC (with -KPIC) is the default. 7651 lt_prog_compiler_static='-non_shared' 7652 ;; 7653 7654 newsos6) 7655 lt_prog_compiler_pic='-KPIC' 7656 lt_prog_compiler_static='-Bstatic' 7657 ;; 7658 7659 linux* | k*bsd*-gnu) 7660 case $cc_basename in 7661 icc* | ecc*) 7662 lt_prog_compiler_wl='-Wl,' 7663 lt_prog_compiler_pic='-KPIC' 7664 lt_prog_compiler_static='-static' 7665 ;; 7666 pgcc* | pgf77* | pgf90* | pgf95*) 7667 # Portland Group compilers (*not* the Pentium gcc compiler, 7668 # which looks to be a dead project) 7669 lt_prog_compiler_wl='-Wl,' 7670 lt_prog_compiler_pic='-fpic' 7671 lt_prog_compiler_static='-Bstatic' 7672 ;; 7673 ccc*) 7674 lt_prog_compiler_wl='-Wl,' 7675 # All Alpha code is PIC. 7676 lt_prog_compiler_static='-non_shared' 7677 ;; 7678 como) 7679 lt_prog_compiler_wl='-lopt=' 7680 ;; 7681 *) 7682 case `$CC -V 2>&1 | sed 5q` in 7683 *Sun\ C*) 7684 # Sun C 5.9 7685 lt_prog_compiler_pic='-KPIC' 7686 lt_prog_compiler_static='-Bstatic' 7687 lt_prog_compiler_wl='-Wl,' 7688 ;; 7689 *Sun\ F*) 7690 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7691 lt_prog_compiler_pic='-KPIC' 7692 lt_prog_compiler_static='-Bstatic' 7693 lt_prog_compiler_wl='' 7694 ;; 7695 esac 7696 ;; 7697 esac 7698 ;; 7699 7700 osf3* | osf4* | osf5*) 7701 lt_prog_compiler_wl='-Wl,' 7702 # All OSF/1 code is PIC. 7703 lt_prog_compiler_static='-non_shared' 7704 ;; 7705 7706 rdos*) 7707 lt_prog_compiler_static='-non_shared' 7708 ;; 7709 7710 solaris*) 7711 lt_prog_compiler_pic='-KPIC' 7712 lt_prog_compiler_static='-Bstatic' 7713 case $cc_basename in 7714 f77* | f90* | f95*) 7715 lt_prog_compiler_wl='-Qoption ld ';; 7716 *) 7717 lt_prog_compiler_wl='-Wl,';; 7718 esac 7719 ;; 7720 7721 sunos4*) 7722 lt_prog_compiler_wl='-Qoption ld ' 7723 lt_prog_compiler_pic='-PIC' 7724 lt_prog_compiler_static='-Bstatic' 7725 ;; 7726 7727 sysv4 | sysv4.2uw2* | sysv4.3*) 7728 lt_prog_compiler_wl='-Wl,' 7729 lt_prog_compiler_pic='-KPIC' 7730 lt_prog_compiler_static='-Bstatic' 7731 ;; 7732 7733 sysv4*MP*) 7734 if test -d /usr/nec ;then 7735 lt_prog_compiler_pic='-Kconform_pic' 7736 lt_prog_compiler_static='-Bstatic' 7737 fi 7738 ;; 7739 7740 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7741 lt_prog_compiler_wl='-Wl,' 7742 lt_prog_compiler_pic='-KPIC' 7743 lt_prog_compiler_static='-Bstatic' 7744 ;; 7745 7746 unicos*) 7747 lt_prog_compiler_wl='-Wl,' 7748 lt_prog_compiler_can_build_shared=no 7749 ;; 7750 7751 uts4*) 7752 lt_prog_compiler_pic='-pic' 7753 lt_prog_compiler_static='-Bstatic' 7754 ;; 7755 7756 *) 7757 lt_prog_compiler_can_build_shared=no 7758 ;; 7759 esac 7760 fi 7761 7762{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7763echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7764 7765# 7766# Check to make sure the PIC flag actually works. 7767# 7768if test -n "$lt_prog_compiler_pic"; then 7769 7770{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7771echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7772if test "${lt_prog_compiler_pic_works+set}" = set; then 7773 echo $ECHO_N "(cached) $ECHO_C" >&6 7774else 7775 lt_prog_compiler_pic_works=no 7776 ac_outfile=conftest.$ac_objext 7777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7778 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7779 # Insert the option either (1) after the last *FLAGS variable, or 7780 # (2) before a word containing "conftest.", or (3) at the end. 7781 # Note that $ac_compile itself does not contain backslashes and begins 7782 # with a dollar sign (not a hyphen), so the echo should work correctly. 7783 # The option is referenced via a variable to avoid confusing sed. 7784 lt_compile=`echo "$ac_compile" | $SED \ 7785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7787 -e 's:$: $lt_compiler_flag:'` 7788 (eval echo "\"\$as_me:7788: $lt_compile\"" >&5) 7789 (eval "$lt_compile" 2>conftest.err) 7790 ac_status=$? 7791 cat conftest.err >&5 7792 echo "$as_me:7792: \$? = $ac_status" >&5 7793 if (exit $ac_status) && test -s "$ac_outfile"; then 7794 # The compiler can only warn and ignore the option if not recognized 7795 # So say no if there are warnings other than the usual output. 7796 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7799 lt_prog_compiler_pic_works=yes 7800 fi 7801 fi 7802 $rm conftest* 7803 7804fi 7805{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7806echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7807 7808if test x"$lt_prog_compiler_pic_works" = xyes; then 7809 case $lt_prog_compiler_pic in 7810 "" | " "*) ;; 7811 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7812 esac 7813else 7814 lt_prog_compiler_pic= 7815 lt_prog_compiler_can_build_shared=no 7816fi 7817 7818fi 7819case $host_os in 7820 # For platforms which do not support PIC, -DPIC is meaningless: 7821 *djgpp*) 7822 lt_prog_compiler_pic= 7823 ;; 7824 *) 7825 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7826 ;; 7827esac 7828 7829# 7830# Check to make sure the static flag actually works. 7831# 7832wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7833{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7834echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7835if test "${lt_prog_compiler_static_works+set}" = set; then 7836 echo $ECHO_N "(cached) $ECHO_C" >&6 7837else 7838 lt_prog_compiler_static_works=no 7839 save_LDFLAGS="$LDFLAGS" 7840 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7841 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7843 # The linker can only warn and ignore the option if not recognized 7844 # So say no if there are warnings 7845 if test -s conftest.err; then 7846 # Append any errors to the config.log. 7847 cat conftest.err 1>&5 7848 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7849 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7850 if diff conftest.exp conftest.er2 >/dev/null; then 7851 lt_prog_compiler_static_works=yes 7852 fi 7853 else 7854 lt_prog_compiler_static_works=yes 7855 fi 7856 fi 7857 $rm conftest* 7858 LDFLAGS="$save_LDFLAGS" 7859 7860fi 7861{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7862echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7863 7864if test x"$lt_prog_compiler_static_works" = xyes; then 7865 : 7866else 7867 lt_prog_compiler_static= 7868fi 7869 7870 7871{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7872echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7873if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7874 echo $ECHO_N "(cached) $ECHO_C" >&6 7875else 7876 lt_cv_prog_compiler_c_o=no 7877 $rm -r conftest 2>/dev/null 7878 mkdir conftest 7879 cd conftest 7880 mkdir out 7881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7882 7883 lt_compiler_flag="-o out/conftest2.$ac_objext" 7884 # Insert the option either (1) after the last *FLAGS variable, or 7885 # (2) before a word containing "conftest.", or (3) at the end. 7886 # Note that $ac_compile itself does not contain backslashes and begins 7887 # with a dollar sign (not a hyphen), so the echo should work correctly. 7888 lt_compile=`echo "$ac_compile" | $SED \ 7889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7891 -e 's:$: $lt_compiler_flag:'` 7892 (eval echo "\"\$as_me:7892: $lt_compile\"" >&5) 7893 (eval "$lt_compile" 2>out/conftest.err) 7894 ac_status=$? 7895 cat out/conftest.err >&5 7896 echo "$as_me:7896: \$? = $ac_status" >&5 7897 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7898 then 7899 # The compiler can only warn and ignore the option if not recognized 7900 # So say no if there are warnings 7901 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7904 lt_cv_prog_compiler_c_o=yes 7905 fi 7906 fi 7907 chmod u+w . 2>&5 7908 $rm conftest* 7909 # SGI C++ compiler will create directory out/ii_files/ for 7910 # template instantiation 7911 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7912 $rm out/* && rmdir out 7913 cd .. 7914 rmdir conftest 7915 $rm conftest* 7916 7917fi 7918{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7919echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7920 7921 7922hard_links="nottested" 7923if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7924 # do not overwrite the value of need_locks provided by the user 7925 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7926echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7927 hard_links=yes 7928 $rm conftest* 7929 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7930 touch conftest.a 7931 ln conftest.a conftest.b 2>&5 || hard_links=no 7932 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7933 { echo "$as_me:$LINENO: result: $hard_links" >&5 7934echo "${ECHO_T}$hard_links" >&6; } 7935 if test "$hard_links" = no; then 7936 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7937echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7938 need_locks=warn 7939 fi 7940else 7941 need_locks=no 7942fi 7943 7944{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7945echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7946 7947 runpath_var= 7948 allow_undefined_flag= 7949 enable_shared_with_static_runtimes=no 7950 archive_cmds= 7951 archive_expsym_cmds= 7952 old_archive_From_new_cmds= 7953 old_archive_from_expsyms_cmds= 7954 export_dynamic_flag_spec= 7955 whole_archive_flag_spec= 7956 thread_safe_flag_spec= 7957 hardcode_libdir_flag_spec= 7958 hardcode_libdir_flag_spec_ld= 7959 hardcode_libdir_separator= 7960 hardcode_direct=no 7961 hardcode_minus_L=no 7962 hardcode_shlibpath_var=unsupported 7963 link_all_deplibs=unknown 7964 hardcode_automatic=no 7965 module_cmds= 7966 module_expsym_cmds= 7967 always_export_symbols=no 7968 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7969 # include_expsyms should be a list of space-separated symbols to be *always* 7970 # included in the symbol list 7971 include_expsyms= 7972 # exclude_expsyms can be an extended regexp of symbols to exclude 7973 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7974 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7975 # as well as any symbol that contains `d'. 7976 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7977 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7978 # platforms (ab)use it in PIC code, but their linkers get confused if 7979 # the symbol is explicitly referenced. Since portable code cannot 7980 # rely on this symbol name, it's probably fine to never include it in 7981 # preloaded symbol tables. 7982 extract_expsyms_cmds= 7983 # Just being paranoid about ensuring that cc_basename is set. 7984 for cc_temp in $compiler""; do 7985 case $cc_temp in 7986 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7987 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7988 \-*) ;; 7989 *) break;; 7990 esac 7991done 7992cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7993 7994 case $host_os in 7995 cygwin* | mingw* | pw32*) 7996 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7997 # When not using gcc, we currently assume that we are using 7998 # Microsoft Visual C++. 7999 if test "$GCC" != yes; then 8000 with_gnu_ld=no 8001 fi 8002 ;; 8003 interix*) 8004 # we just hope/assume this is gcc and not c89 (= MSVC++) 8005 with_gnu_ld=yes 8006 ;; 8007 openbsd*) 8008 with_gnu_ld=no 8009 ;; 8010 esac 8011 8012 ld_shlibs=yes 8013 if test "$with_gnu_ld" = yes; then 8014 # If archive_cmds runs LD, not CC, wlarc should be empty 8015 wlarc='${wl}' 8016 8017 # Set some defaults for GNU ld with shared library support. These 8018 # are reset later if shared libraries are not supported. Putting them 8019 # here allows them to be overridden if necessary. 8020 runpath_var=LD_RUN_PATH 8021 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8022 export_dynamic_flag_spec='${wl}--export-dynamic' 8023 # ancient GNU ld didn't support --whole-archive et. al. 8024 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8025 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8026 else 8027 whole_archive_flag_spec= 8028 fi 8029 supports_anon_versioning=no 8030 case `$LD -v 2>/dev/null` in 8031 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8032 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8033 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8034 *\ 2.11.*) ;; # other 2.11 versions 8035 *) supports_anon_versioning=yes ;; 8036 esac 8037 8038 # See if GNU ld supports shared libraries. 8039 case $host_os in 8040 aix3* | aix4* | aix5*) 8041 # On AIX/PPC, the GNU linker is very broken 8042 if test "$host_cpu" != ia64; then 8043 ld_shlibs=no 8044 cat <<EOF 1>&2 8045 8046*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8047*** to be unable to reliably create shared libraries on AIX. 8048*** Therefore, libtool is disabling shared libraries support. If you 8049*** really care for shared libraries, you may want to modify your PATH 8050*** so that a non-GNU linker is found, and then restart. 8051 8052EOF 8053 fi 8054 ;; 8055 8056 amigaos*) 8057 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)' 8058 hardcode_libdir_flag_spec='-L$libdir' 8059 hardcode_minus_L=yes 8060 8061 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8062 # that the semantics of dynamic libraries on AmigaOS, at least up 8063 # to version 4, is to share data among multiple programs linked 8064 # with the same dynamic library. Since this doesn't match the 8065 # behavior of shared libraries on other platforms, we can't use 8066 # them. 8067 ld_shlibs=no 8068 ;; 8069 8070 beos*) 8071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8072 allow_undefined_flag=unsupported 8073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8074 # support --undefined. This deserves some investigation. FIXME 8075 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8076 else 8077 ld_shlibs=no 8078 fi 8079 ;; 8080 8081 cygwin* | mingw* | pw32*) 8082 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8083 # as there is no search path for DLLs. 8084 hardcode_libdir_flag_spec='-L$libdir' 8085 allow_undefined_flag=unsupported 8086 always_export_symbols=no 8087 enable_shared_with_static_runtimes=yes 8088 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8089 8090 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8092 # If the export-symbols file already is a .def file (1st line 8093 # is EXPORTS), use it as is; otherwise, prepend... 8094 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8095 cp $export_symbols $output_objdir/$soname.def; 8096 else 8097 echo EXPORTS > $output_objdir/$soname.def; 8098 cat $export_symbols >> $output_objdir/$soname.def; 8099 fi~ 8100 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8101 else 8102 ld_shlibs=no 8103 fi 8104 ;; 8105 8106 interix[3-9]*) 8107 hardcode_direct=no 8108 hardcode_shlibpath_var=no 8109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8110 export_dynamic_flag_spec='${wl}-E' 8111 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8112 # Instead, shared libraries are loaded at an image base (0x10000000 by 8113 # default) and relocated if they conflict, which is a slow very memory 8114 # consuming and fragmenting process. To avoid this, we pick a random, 8115 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8116 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8117 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8118 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' 8119 ;; 8120 8121 gnu* | linux* | k*bsd*-gnu) 8122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8123 tmp_addflag= 8124 case $cc_basename,$host_cpu in 8125 pgcc*) # Portland Group C compiler 8126 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' 8127 tmp_addflag=' $pic_flag' 8128 ;; 8129 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8130 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' 8131 tmp_addflag=' $pic_flag -Mnomain' ;; 8132 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8133 tmp_addflag=' -i_dynamic' ;; 8134 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8135 tmp_addflag=' -i_dynamic -nofor_main' ;; 8136 ifc* | ifort*) # Intel Fortran compiler 8137 tmp_addflag=' -nofor_main' ;; 8138 esac 8139 case `$CC -V 2>&1 | sed 5q` in 8140 *Sun\ C*) # Sun C 5.9 8141 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' 8142 tmp_sharedflag='-G' ;; 8143 *Sun\ F*) # Sun Fortran 8.3 8144 tmp_sharedflag='-G' ;; 8145 *) 8146 tmp_sharedflag='-shared' ;; 8147 esac 8148 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8149 8150 if test $supports_anon_versioning = yes; then 8151 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8153 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8154 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8155 fi 8156 else 8157 ld_shlibs=no 8158 fi 8159 ;; 8160 8161 netbsd*) 8162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8163 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8164 wlarc= 8165 else 8166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8167 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8168 fi 8169 ;; 8170 8171 solaris*) 8172 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8173 ld_shlibs=no 8174 cat <<EOF 1>&2 8175 8176*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8177*** create shared libraries on Solaris systems. Therefore, libtool 8178*** is disabling shared libraries support. We urge you to upgrade GNU 8179*** binutils to release 2.9.1 or newer. Another option is to modify 8180*** your PATH or compiler configuration so that the native linker is 8181*** used, and then restart. 8182 8183EOF 8184 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8187 else 8188 ld_shlibs=no 8189 fi 8190 ;; 8191 8192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8193 case `$LD -v 2>&1` in 8194 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8195 ld_shlibs=no 8196 cat <<_LT_EOF 1>&2 8197 8198*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8199*** reliably create shared libraries on SCO systems. Therefore, libtool 8200*** is disabling shared libraries support. We urge you to upgrade GNU 8201*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8202*** your PATH or compiler configuration so that the native linker is 8203*** used, and then restart. 8204 8205_LT_EOF 8206 ;; 8207 *) 8208 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8209 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8212 else 8213 ld_shlibs=no 8214 fi 8215 ;; 8216 esac 8217 ;; 8218 8219 sunos4*) 8220 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8221 wlarc= 8222 hardcode_direct=yes 8223 hardcode_shlibpath_var=no 8224 ;; 8225 8226 *) 8227 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8229 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8230 else 8231 ld_shlibs=no 8232 fi 8233 ;; 8234 esac 8235 8236 if test "$ld_shlibs" = no; then 8237 runpath_var= 8238 hardcode_libdir_flag_spec= 8239 export_dynamic_flag_spec= 8240 whole_archive_flag_spec= 8241 fi 8242 else 8243 # PORTME fill in a description of your system's linker (not GNU ld) 8244 case $host_os in 8245 aix3*) 8246 allow_undefined_flag=unsupported 8247 always_export_symbols=yes 8248 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' 8249 # Note: this linker hardcodes the directories in LIBPATH if there 8250 # are no directories specified by -L. 8251 hardcode_minus_L=yes 8252 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8253 # Neither direct hardcoding nor static linking is supported with a 8254 # broken collect2. 8255 hardcode_direct=unsupported 8256 fi 8257 ;; 8258 8259 aix4* | aix5*) 8260 if test "$host_cpu" = ia64; then 8261 # On IA64, the linker does run time linking by default, so we don't 8262 # have to do anything special. 8263 aix_use_runtimelinking=no 8264 exp_sym_flag='-Bexport' 8265 no_entry_flag="" 8266 else 8267 # If we're using GNU nm, then we don't want the "-C" option. 8268 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8269 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8270 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' 8271 else 8272 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' 8273 fi 8274 aix_use_runtimelinking=no 8275 8276 # Test if we are trying to use run time linking or normal 8277 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8278 # need to do runtime linking. 8279 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8280 for ld_flag in $LDFLAGS; do 8281 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8282 aix_use_runtimelinking=yes 8283 break 8284 fi 8285 done 8286 ;; 8287 esac 8288 8289 exp_sym_flag='-bexport' 8290 no_entry_flag='-bnoentry' 8291 fi 8292 8293 # When large executables or shared objects are built, AIX ld can 8294 # have problems creating the table of contents. If linking a library 8295 # or program results in "error TOC overflow" add -mminimal-toc to 8296 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8297 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8298 8299 archive_cmds='' 8300 hardcode_direct=yes 8301 hardcode_libdir_separator=':' 8302 link_all_deplibs=yes 8303 8304 if test "$GCC" = yes; then 8305 case $host_os in aix4.[012]|aix4.[012].*) 8306 # We only want to do this on AIX 4.2 and lower, the check 8307 # below for broken collect2 doesn't work under 4.3+ 8308 collect2name=`${CC} -print-prog-name=collect2` 8309 if test -f "$collect2name" && \ 8310 strings "$collect2name" | grep resolve_lib_name >/dev/null 8311 then 8312 # We have reworked collect2 8313 : 8314 else 8315 # We have old collect2 8316 hardcode_direct=unsupported 8317 # It fails to find uninstalled libraries when the uninstalled 8318 # path is not listed in the libpath. Setting hardcode_minus_L 8319 # to unsupported forces relinking 8320 hardcode_minus_L=yes 8321 hardcode_libdir_flag_spec='-L$libdir' 8322 hardcode_libdir_separator= 8323 fi 8324 ;; 8325 esac 8326 shared_flag='-shared' 8327 if test "$aix_use_runtimelinking" = yes; then 8328 shared_flag="$shared_flag "'${wl}-G' 8329 fi 8330 else 8331 # not using gcc 8332 if test "$host_cpu" = ia64; then 8333 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8334 # chokes on -Wl,-G. The following line is correct: 8335 shared_flag='-G' 8336 else 8337 if test "$aix_use_runtimelinking" = yes; then 8338 shared_flag='${wl}-G' 8339 else 8340 shared_flag='${wl}-bM:SRE' 8341 fi 8342 fi 8343 fi 8344 8345 # It seems that -bexpall does not export symbols beginning with 8346 # underscore (_), so it is better to generate a list of symbols to export. 8347 always_export_symbols=yes 8348 if test "$aix_use_runtimelinking" = yes; then 8349 # Warning - without using the other runtime loading flags (-brtl), 8350 # -berok will link without error, but may produce a broken library. 8351 allow_undefined_flag='-berok' 8352 # Determine the default libpath from the value encoded in an empty executable. 8353 cat >conftest.$ac_ext <<_ACEOF 8354/* confdefs.h. */ 8355_ACEOF 8356cat confdefs.h >>conftest.$ac_ext 8357cat >>conftest.$ac_ext <<_ACEOF 8358/* end confdefs.h. */ 8359 8360int 8361main () 8362{ 8363 8364 ; 8365 return 0; 8366} 8367_ACEOF 8368rm -f conftest.$ac_objext conftest$ac_exeext 8369if { (ac_try="$ac_link" 8370case "(($ac_try" in 8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8372 *) ac_try_echo=$ac_try;; 8373esac 8374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8375 (eval "$ac_link") 2>conftest.er1 8376 ac_status=$? 8377 grep -v '^ *+' conftest.er1 >conftest.err 8378 rm -f conftest.er1 8379 cat conftest.err >&5 8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8381 (exit $ac_status); } && { 8382 test -z "$ac_c_werror_flag" || 8383 test ! -s conftest.err 8384 } && test -s conftest$ac_exeext && 8385 $as_test_x conftest$ac_exeext; then 8386 8387lt_aix_libpath_sed=' 8388 /Import File Strings/,/^$/ { 8389 /^0/ { 8390 s/^0 *\(.*\)$/\1/ 8391 p 8392 } 8393 }' 8394aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8395# Check for a 64-bit object if we didn't find anything. 8396if test -z "$aix_libpath"; then 8397 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8398fi 8399else 8400 echo "$as_me: failed program was:" >&5 8401sed 's/^/| /' conftest.$ac_ext >&5 8402 8403 8404fi 8405 8406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8407 conftest$ac_exeext conftest.$ac_ext 8408if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8409 8410 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8411 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" 8412 else 8413 if test "$host_cpu" = ia64; then 8414 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8415 allow_undefined_flag="-z nodefs" 8416 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" 8417 else 8418 # Determine the default libpath from the value encoded in an empty executable. 8419 cat >conftest.$ac_ext <<_ACEOF 8420/* confdefs.h. */ 8421_ACEOF 8422cat confdefs.h >>conftest.$ac_ext 8423cat >>conftest.$ac_ext <<_ACEOF 8424/* end confdefs.h. */ 8425 8426int 8427main () 8428{ 8429 8430 ; 8431 return 0; 8432} 8433_ACEOF 8434rm -f conftest.$ac_objext conftest$ac_exeext 8435if { (ac_try="$ac_link" 8436case "(($ac_try" in 8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8438 *) ac_try_echo=$ac_try;; 8439esac 8440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8441 (eval "$ac_link") 2>conftest.er1 8442 ac_status=$? 8443 grep -v '^ *+' conftest.er1 >conftest.err 8444 rm -f conftest.er1 8445 cat conftest.err >&5 8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8447 (exit $ac_status); } && { 8448 test -z "$ac_c_werror_flag" || 8449 test ! -s conftest.err 8450 } && test -s conftest$ac_exeext && 8451 $as_test_x conftest$ac_exeext; then 8452 8453lt_aix_libpath_sed=' 8454 /Import File Strings/,/^$/ { 8455 /^0/ { 8456 s/^0 *\(.*\)$/\1/ 8457 p 8458 } 8459 }' 8460aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8461# Check for a 64-bit object if we didn't find anything. 8462if test -z "$aix_libpath"; then 8463 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8464fi 8465else 8466 echo "$as_me: failed program was:" >&5 8467sed 's/^/| /' conftest.$ac_ext >&5 8468 8469 8470fi 8471 8472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8473 conftest$ac_exeext conftest.$ac_ext 8474if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8475 8476 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8477 # Warning - without using the other run time loading flags, 8478 # -berok will link without error, but may produce a broken library. 8479 no_undefined_flag=' ${wl}-bernotok' 8480 allow_undefined_flag=' ${wl}-berok' 8481 # Exported symbols can be pulled into shared objects from archives 8482 whole_archive_flag_spec='$convenience' 8483 archive_cmds_need_lc=yes 8484 # This is similar to how AIX traditionally builds its shared libraries. 8485 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' 8486 fi 8487 fi 8488 ;; 8489 8490 amigaos*) 8491 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)' 8492 hardcode_libdir_flag_spec='-L$libdir' 8493 hardcode_minus_L=yes 8494 # see comment about different semantics on the GNU ld section 8495 ld_shlibs=no 8496 ;; 8497 8498 bsdi[45]*) 8499 export_dynamic_flag_spec=-rdynamic 8500 ;; 8501 8502 cygwin* | mingw* | pw32*) 8503 # When not using gcc, we currently assume that we are using 8504 # Microsoft Visual C++. 8505 # hardcode_libdir_flag_spec is actually meaningless, as there is 8506 # no search path for DLLs. 8507 hardcode_libdir_flag_spec=' ' 8508 allow_undefined_flag=unsupported 8509 # Tell ltmain to make .lib files, not .a files. 8510 libext=lib 8511 # Tell ltmain to make .dll files, not .so files. 8512 shrext_cmds=".dll" 8513 # FIXME: Setting linknames here is a bad hack. 8514 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8515 # The linker will automatically build a .lib file if we build a DLL. 8516 old_archive_From_new_cmds='true' 8517 # FIXME: Should let the user specify the lib program. 8518 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8519 fix_srcfile_path='`cygpath -w "$srcfile"`' 8520 enable_shared_with_static_runtimes=yes 8521 ;; 8522 8523 darwin* | rhapsody*) 8524 case $host_os in 8525 rhapsody* | darwin1.[012]) 8526 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8527 ;; 8528 *) # Darwin 1.3 on 8529 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8530 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8531 else 8532 case ${MACOSX_DEPLOYMENT_TARGET} in 8533 10.[012]) 8534 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8535 ;; 8536 10.*) 8537 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8538 ;; 8539 esac 8540 fi 8541 ;; 8542 esac 8543 archive_cmds_need_lc=no 8544 hardcode_direct=no 8545 hardcode_automatic=yes 8546 hardcode_shlibpath_var=unsupported 8547 whole_archive_flag_spec='' 8548 link_all_deplibs=yes 8549 if test "$GCC" = yes ; then 8550 output_verbose_link_cmd='echo' 8551 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8552 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8553 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8554 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8555 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}' 8556 else 8557 case $cc_basename in 8558 xlc*) 8559 output_verbose_link_cmd='echo' 8560 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8561 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8563 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}' 8564 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}' 8565 ;; 8566 *) 8567 ld_shlibs=no 8568 ;; 8569 esac 8570 fi 8571 ;; 8572 8573 dgux*) 8574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8575 hardcode_libdir_flag_spec='-L$libdir' 8576 hardcode_shlibpath_var=no 8577 ;; 8578 8579 freebsd1*) 8580 ld_shlibs=no 8581 ;; 8582 8583 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8584 # support. Future versions do this automatically, but an explicit c++rt0.o 8585 # does not break anything, and helps significantly (at the cost of a little 8586 # extra space). 8587 freebsd2.2*) 8588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8589 hardcode_libdir_flag_spec='-R$libdir' 8590 hardcode_direct=yes 8591 hardcode_shlibpath_var=no 8592 ;; 8593 8594 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8595 freebsd2*) 8596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8597 hardcode_direct=yes 8598 hardcode_minus_L=yes 8599 hardcode_shlibpath_var=no 8600 ;; 8601 8602 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8603 freebsd* | dragonfly*) 8604 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8605 hardcode_libdir_flag_spec='-R$libdir' 8606 hardcode_direct=yes 8607 hardcode_shlibpath_var=no 8608 ;; 8609 8610 hpux9*) 8611 if test "$GCC" = yes; then 8612 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' 8613 else 8614 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' 8615 fi 8616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8617 hardcode_libdir_separator=: 8618 hardcode_direct=yes 8619 8620 # hardcode_minus_L: Not really in the search PATH, 8621 # but as the default location of the library. 8622 hardcode_minus_L=yes 8623 export_dynamic_flag_spec='${wl}-E' 8624 ;; 8625 8626 hpux10*) 8627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8628 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8629 else 8630 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8631 fi 8632 if test "$with_gnu_ld" = no; then 8633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8634 hardcode_libdir_separator=: 8635 8636 hardcode_direct=yes 8637 export_dynamic_flag_spec='${wl}-E' 8638 8639 # hardcode_minus_L: Not really in the search PATH, 8640 # but as the default location of the library. 8641 hardcode_minus_L=yes 8642 fi 8643 ;; 8644 8645 hpux11*) 8646 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8647 case $host_cpu in 8648 hppa*64*) 8649 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8650 ;; 8651 ia64*) 8652 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8653 ;; 8654 *) 8655 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8656 ;; 8657 esac 8658 else 8659 case $host_cpu in 8660 hppa*64*) 8661 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8662 ;; 8663 ia64*) 8664 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8665 ;; 8666 *) 8667 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8668 ;; 8669 esac 8670 fi 8671 if test "$with_gnu_ld" = no; then 8672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8673 hardcode_libdir_separator=: 8674 8675 case $host_cpu in 8676 hppa*64*|ia64*) 8677 hardcode_libdir_flag_spec_ld='+b $libdir' 8678 hardcode_direct=no 8679 hardcode_shlibpath_var=no 8680 ;; 8681 *) 8682 hardcode_direct=yes 8683 export_dynamic_flag_spec='${wl}-E' 8684 8685 # hardcode_minus_L: Not really in the search PATH, 8686 # but as the default location of the library. 8687 hardcode_minus_L=yes 8688 ;; 8689 esac 8690 fi 8691 ;; 8692 8693 irix5* | irix6* | nonstopux*) 8694 if test "$GCC" = yes; then 8695 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' 8696 else 8697 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' 8698 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8699 fi 8700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8701 hardcode_libdir_separator=: 8702 link_all_deplibs=yes 8703 ;; 8704 8705 netbsd*) 8706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8708 else 8709 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8710 fi 8711 hardcode_libdir_flag_spec='-R$libdir' 8712 hardcode_direct=yes 8713 hardcode_shlibpath_var=no 8714 ;; 8715 8716 newsos6) 8717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8718 hardcode_direct=yes 8719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8720 hardcode_libdir_separator=: 8721 hardcode_shlibpath_var=no 8722 ;; 8723 8724 openbsd*) 8725 if test -f /usr/libexec/ld.so; then 8726 hardcode_direct=yes 8727 hardcode_shlibpath_var=no 8728 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8730 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8731 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8732 export_dynamic_flag_spec='${wl}-E' 8733 else 8734 case $host_os in 8735 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8737 hardcode_libdir_flag_spec='-R$libdir' 8738 ;; 8739 *) 8740 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8742 ;; 8743 esac 8744 fi 8745 else 8746 ld_shlibs=no 8747 fi 8748 ;; 8749 8750 os2*) 8751 hardcode_libdir_flag_spec='-L$libdir' 8752 hardcode_minus_L=yes 8753 allow_undefined_flag=unsupported 8754 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' 8755 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8756 ;; 8757 8758 osf3*) 8759 if test "$GCC" = yes; then 8760 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8761 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' 8762 else 8763 allow_undefined_flag=' -expect_unresolved \*' 8764 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' 8765 fi 8766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8767 hardcode_libdir_separator=: 8768 ;; 8769 8770 osf4* | osf5*) # as osf3* with the addition of -msym flag 8771 if test "$GCC" = yes; then 8772 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8773 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' 8774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8775 else 8776 allow_undefined_flag=' -expect_unresolved \*' 8777 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' 8778 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8779 $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' 8780 8781 # Both c and cxx compiler support -rpath directly 8782 hardcode_libdir_flag_spec='-rpath $libdir' 8783 fi 8784 hardcode_libdir_separator=: 8785 ;; 8786 8787 solaris*) 8788 no_undefined_flag=' -z text' 8789 if test "$GCC" = yes; then 8790 wlarc='${wl}' 8791 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8792 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8793 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8794 else 8795 wlarc='' 8796 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8797 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8798 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8799 fi 8800 hardcode_libdir_flag_spec='-R$libdir' 8801 hardcode_shlibpath_var=no 8802 case $host_os in 8803 solaris2.[0-5] | solaris2.[0-5].*) ;; 8804 *) 8805 # The compiler driver will combine and reorder linker options, 8806 # but understands `-z linker_flag'. GCC discards it without `$wl', 8807 # but is careful enough not to reorder. 8808 # Supported since Solaris 2.6 (maybe 2.5.1?) 8809 if test "$GCC" = yes; then 8810 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8811 else 8812 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8813 fi 8814 ;; 8815 esac 8816 link_all_deplibs=yes 8817 ;; 8818 8819 sunos4*) 8820 if test "x$host_vendor" = xsequent; then 8821 # Use $CC to link under sequent, because it throws in some extra .o 8822 # files that make .init and .fini sections work. 8823 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8824 else 8825 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8826 fi 8827 hardcode_libdir_flag_spec='-L$libdir' 8828 hardcode_direct=yes 8829 hardcode_minus_L=yes 8830 hardcode_shlibpath_var=no 8831 ;; 8832 8833 sysv4) 8834 case $host_vendor in 8835 sni) 8836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8837 hardcode_direct=yes # is this really true??? 8838 ;; 8839 siemens) 8840 ## LD is ld it makes a PLAMLIB 8841 ## CC just makes a GrossModule. 8842 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8843 reload_cmds='$CC -r -o $output$reload_objs' 8844 hardcode_direct=no 8845 ;; 8846 motorola) 8847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8848 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8849 ;; 8850 esac 8851 runpath_var='LD_RUN_PATH' 8852 hardcode_shlibpath_var=no 8853 ;; 8854 8855 sysv4.3*) 8856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8857 hardcode_shlibpath_var=no 8858 export_dynamic_flag_spec='-Bexport' 8859 ;; 8860 8861 sysv4*MP*) 8862 if test -d /usr/nec; then 8863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8864 hardcode_shlibpath_var=no 8865 runpath_var=LD_RUN_PATH 8866 hardcode_runpath_var=yes 8867 ld_shlibs=yes 8868 fi 8869 ;; 8870 8871 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8872 no_undefined_flag='${wl}-z,text' 8873 archive_cmds_need_lc=no 8874 hardcode_shlibpath_var=no 8875 runpath_var='LD_RUN_PATH' 8876 8877 if test "$GCC" = yes; then 8878 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8879 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8880 else 8881 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8882 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8883 fi 8884 ;; 8885 8886 sysv5* | sco3.2v5* | sco5v6*) 8887 # Note: We can NOT use -z defs as we might desire, because we do not 8888 # link with -lc, and that would cause any symbols used from libc to 8889 # always be unresolved, which means just about no library would 8890 # ever link correctly. If we're not using GNU ld we use -z text 8891 # though, which does catch some bad symbols but isn't as heavy-handed 8892 # as -z defs. 8893 no_undefined_flag='${wl}-z,text' 8894 allow_undefined_flag='${wl}-z,nodefs' 8895 archive_cmds_need_lc=no 8896 hardcode_shlibpath_var=no 8897 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8898 hardcode_libdir_separator=':' 8899 link_all_deplibs=yes 8900 export_dynamic_flag_spec='${wl}-Bexport' 8901 runpath_var='LD_RUN_PATH' 8902 8903 if test "$GCC" = yes; then 8904 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8905 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8906 else 8907 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8908 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8909 fi 8910 ;; 8911 8912 uts4*) 8913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8914 hardcode_libdir_flag_spec='-L$libdir' 8915 hardcode_shlibpath_var=no 8916 ;; 8917 8918 *) 8919 ld_shlibs=no 8920 ;; 8921 esac 8922 fi 8923 8924{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8925echo "${ECHO_T}$ld_shlibs" >&6; } 8926test "$ld_shlibs" = no && can_build_shared=no 8927 8928# 8929# Do we need to explicitly link libc? 8930# 8931case "x$archive_cmds_need_lc" in 8932x|xyes) 8933 # Assume -lc should be added 8934 archive_cmds_need_lc=yes 8935 8936 if test "$enable_shared" = yes && test "$GCC" = yes; then 8937 case $archive_cmds in 8938 *'~'*) 8939 # FIXME: we may have to deal with multi-command sequences. 8940 ;; 8941 '$CC '*) 8942 # Test whether the compiler implicitly links with -lc since on some 8943 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8944 # to ld, don't add -lc before -lgcc. 8945 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8946echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8947 $rm conftest* 8948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8949 8950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8951 (eval $ac_compile) 2>&5 8952 ac_status=$? 8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8954 (exit $ac_status); } 2>conftest.err; then 8955 soname=conftest 8956 lib=conftest 8957 libobjs=conftest.$ac_objext 8958 deplibs= 8959 wl=$lt_prog_compiler_wl 8960 pic_flag=$lt_prog_compiler_pic 8961 compiler_flags=-v 8962 linker_flags=-v 8963 verstring= 8964 output_objdir=. 8965 libname=conftest 8966 lt_save_allow_undefined_flag=$allow_undefined_flag 8967 allow_undefined_flag= 8968 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8969 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8970 ac_status=$? 8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8972 (exit $ac_status); } 8973 then 8974 archive_cmds_need_lc=no 8975 else 8976 archive_cmds_need_lc=yes 8977 fi 8978 allow_undefined_flag=$lt_save_allow_undefined_flag 8979 else 8980 cat conftest.err 1>&5 8981 fi 8982 $rm conftest* 8983 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8984echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8985 ;; 8986 esac 8987 fi 8988 ;; 8989esac 8990 8991{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8992echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8993library_names_spec= 8994libname_spec='lib$name' 8995soname_spec= 8996shrext_cmds=".so" 8997postinstall_cmds= 8998postuninstall_cmds= 8999finish_cmds= 9000finish_eval= 9001shlibpath_var= 9002shlibpath_overrides_runpath=unknown 9003version_type=none 9004dynamic_linker="$host_os ld.so" 9005sys_lib_dlsearch_path_spec="/lib /usr/lib" 9006 9007if test "$GCC" = yes; then 9008 case $host_os in 9009 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9010 *) lt_awk_arg="/^libraries:/" ;; 9011 esac 9012 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9013 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9014 # if the path contains ";" then we assume it to be the separator 9015 # otherwise default to the standard path separator (i.e. ":") - it is 9016 # assumed that no part of a normal pathname contains ";" but that should 9017 # okay in the real world where ";" in dirpaths is itself problematic. 9018 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9019 else 9020 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9021 fi 9022 # Ok, now we have the path, separated by spaces, we can step through it 9023 # and add multilib dir if necessary. 9024 lt_tmp_lt_search_path_spec= 9025 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9026 for lt_sys_path in $lt_search_path_spec; do 9027 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9028 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9029 else 9030 test -d "$lt_sys_path" && \ 9031 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9032 fi 9033 done 9034 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9035BEGIN {RS=" "; FS="/|\n";} { 9036 lt_foo=""; 9037 lt_count=0; 9038 for (lt_i = NF; lt_i > 0; lt_i--) { 9039 if ($lt_i != "" && $lt_i != ".") { 9040 if ($lt_i == "..") { 9041 lt_count++; 9042 } else { 9043 if (lt_count == 0) { 9044 lt_foo="/" $lt_i lt_foo; 9045 } else { 9046 lt_count--; 9047 } 9048 } 9049 } 9050 } 9051 if (lt_foo != "") { lt_freq[lt_foo]++; } 9052 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9053}'` 9054 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9055else 9056 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9057fi 9058need_lib_prefix=unknown 9059hardcode_into_libs=no 9060 9061# when you set need_version to no, make sure it does not cause -set_version 9062# flags to be left without arguments 9063need_version=unknown 9064 9065case $host_os in 9066aix3*) 9067 version_type=linux 9068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9069 shlibpath_var=LIBPATH 9070 9071 # AIX 3 has no versioning support, so we append a major version to the name. 9072 soname_spec='${libname}${release}${shared_ext}$major' 9073 ;; 9074 9075aix4* | aix5*) 9076 version_type=linux 9077 need_lib_prefix=no 9078 need_version=no 9079 hardcode_into_libs=yes 9080 if test "$host_cpu" = ia64; then 9081 # AIX 5 supports IA64 9082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9083 shlibpath_var=LD_LIBRARY_PATH 9084 else 9085 # With GCC up to 2.95.x, collect2 would create an import file 9086 # for dependence libraries. The import file would start with 9087 # the line `#! .'. This would cause the generated library to 9088 # depend on `.', always an invalid library. This was fixed in 9089 # development snapshots of GCC prior to 3.0. 9090 case $host_os in 9091 aix4 | aix4.[01] | aix4.[01].*) 9092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9093 echo ' yes ' 9094 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9095 : 9096 else 9097 can_build_shared=no 9098 fi 9099 ;; 9100 esac 9101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9102 # soname into executable. Probably we can add versioning support to 9103 # collect2, so additional links can be useful in future. 9104 if test "$aix_use_runtimelinking" = yes; then 9105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9106 # instead of lib<name>.a to let people know that these are not 9107 # typical AIX shared libraries. 9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9109 else 9110 # We preserve .a as extension for shared libraries through AIX4.2 9111 # and later when we are not doing run time linking. 9112 library_names_spec='${libname}${release}.a $libname.a' 9113 soname_spec='${libname}${release}${shared_ext}$major' 9114 fi 9115 shlibpath_var=LIBPATH 9116 fi 9117 ;; 9118 9119amigaos*) 9120 library_names_spec='$libname.ixlibrary $libname.a' 9121 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9122 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' 9123 ;; 9124 9125beos*) 9126 library_names_spec='${libname}${shared_ext}' 9127 dynamic_linker="$host_os ld.so" 9128 shlibpath_var=LIBRARY_PATH 9129 ;; 9130 9131bsdi[45]*) 9132 version_type=linux 9133 need_version=no 9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9135 soname_spec='${libname}${release}${shared_ext}$major' 9136 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9137 shlibpath_var=LD_LIBRARY_PATH 9138 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9139 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9140 # the default ld.so.conf also contains /usr/contrib/lib and 9141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9142 # libtool to hard-code these into programs 9143 ;; 9144 9145cygwin* | mingw* | pw32*) 9146 version_type=windows 9147 shrext_cmds=".dll" 9148 need_version=no 9149 need_lib_prefix=no 9150 9151 case $GCC,$host_os in 9152 yes,cygwin* | yes,mingw* | yes,pw32*) 9153 library_names_spec='$libname.dll.a' 9154 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9155 postinstall_cmds='base_file=`basename \${file}`~ 9156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9157 dldir=$destdir/`dirname \$dlpath`~ 9158 test -d \$dldir || mkdir -p \$dldir~ 9159 $install_prog $dir/$dlname \$dldir/$dlname~ 9160 chmod a+x \$dldir/$dlname' 9161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9162 dlpath=$dir/\$dldll~ 9163 $rm \$dlpath' 9164 shlibpath_overrides_runpath=yes 9165 9166 case $host_os in 9167 cygwin*) 9168 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9169 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9170 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9171 ;; 9172 mingw*) 9173 # MinGW DLLs use traditional 'lib' prefix 9174 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9175 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9176 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9177 # It is most probably a Windows format PATH printed by 9178 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9179 # path with ; separators, and with drive letters. We can handle the 9180 # drive letters (cygwin fileutils understands them), so leave them, 9181 # especially as we might pass files found there to a mingw objdump, 9182 # which wouldn't understand a cygwinified path. Ahh. 9183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9184 else 9185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9186 fi 9187 ;; 9188 pw32*) 9189 # pw32 DLLs use 'pw' prefix rather than 'lib' 9190 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9191 ;; 9192 esac 9193 ;; 9194 9195 *) 9196 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9197 ;; 9198 esac 9199 dynamic_linker='Win32 ld.exe' 9200 # FIXME: first we should search . and the directory the executable is in 9201 shlibpath_var=PATH 9202 ;; 9203 9204darwin* | rhapsody*) 9205 dynamic_linker="$host_os dyld" 9206 version_type=darwin 9207 need_lib_prefix=no 9208 need_version=no 9209 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9210 soname_spec='${libname}${release}${major}$shared_ext' 9211 shlibpath_overrides_runpath=yes 9212 shlibpath_var=DYLD_LIBRARY_PATH 9213 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9214 9215 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9216 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9217 ;; 9218 9219dgux*) 9220 version_type=linux 9221 need_lib_prefix=no 9222 need_version=no 9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9224 soname_spec='${libname}${release}${shared_ext}$major' 9225 shlibpath_var=LD_LIBRARY_PATH 9226 ;; 9227 9228freebsd1*) 9229 dynamic_linker=no 9230 ;; 9231 9232freebsd* | dragonfly*) 9233 # DragonFly does not have aout. When/if they implement a new 9234 # versioning mechanism, adjust this. 9235 if test -x /usr/bin/objformat; then 9236 objformat=`/usr/bin/objformat` 9237 else 9238 case $host_os in 9239 freebsd[123]*) objformat=aout ;; 9240 *) objformat=elf ;; 9241 esac 9242 fi 9243 version_type=freebsd-$objformat 9244 case $version_type in 9245 freebsd-elf*) 9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9247 need_version=no 9248 need_lib_prefix=no 9249 ;; 9250 freebsd-*) 9251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9252 need_version=yes 9253 ;; 9254 esac 9255 shlibpath_var=LD_LIBRARY_PATH 9256 case $host_os in 9257 freebsd2*) 9258 shlibpath_overrides_runpath=yes 9259 ;; 9260 freebsd3.[01]* | freebsdelf3.[01]*) 9261 shlibpath_overrides_runpath=yes 9262 hardcode_into_libs=yes 9263 ;; 9264 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9265 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9266 shlibpath_overrides_runpath=no 9267 hardcode_into_libs=yes 9268 ;; 9269 *) # from 4.6 on, and DragonFly 9270 shlibpath_overrides_runpath=yes 9271 hardcode_into_libs=yes 9272 ;; 9273 esac 9274 ;; 9275 9276gnu*) 9277 version_type=linux 9278 need_lib_prefix=no 9279 need_version=no 9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9281 soname_spec='${libname}${release}${shared_ext}$major' 9282 shlibpath_var=LD_LIBRARY_PATH 9283 hardcode_into_libs=yes 9284 ;; 9285 9286hpux9* | hpux10* | hpux11*) 9287 # Give a soname corresponding to the major version so that dld.sl refuses to 9288 # link against other versions. 9289 version_type=sunos 9290 need_lib_prefix=no 9291 need_version=no 9292 case $host_cpu in 9293 ia64*) 9294 shrext_cmds='.so' 9295 hardcode_into_libs=yes 9296 dynamic_linker="$host_os dld.so" 9297 shlibpath_var=LD_LIBRARY_PATH 9298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9300 soname_spec='${libname}${release}${shared_ext}$major' 9301 if test "X$HPUX_IA64_MODE" = X32; then 9302 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9303 else 9304 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9305 fi 9306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9307 ;; 9308 hppa*64*) 9309 shrext_cmds='.sl' 9310 hardcode_into_libs=yes 9311 dynamic_linker="$host_os dld.sl" 9312 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9315 soname_spec='${libname}${release}${shared_ext}$major' 9316 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9318 ;; 9319 *) 9320 shrext_cmds='.sl' 9321 dynamic_linker="$host_os dld.sl" 9322 shlibpath_var=SHLIB_PATH 9323 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9325 soname_spec='${libname}${release}${shared_ext}$major' 9326 ;; 9327 esac 9328 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9329 postinstall_cmds='chmod 555 $lib' 9330 ;; 9331 9332interix[3-9]*) 9333 version_type=linux 9334 need_lib_prefix=no 9335 need_version=no 9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9337 soname_spec='${libname}${release}${shared_ext}$major' 9338 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9339 shlibpath_var=LD_LIBRARY_PATH 9340 shlibpath_overrides_runpath=no 9341 hardcode_into_libs=yes 9342 ;; 9343 9344irix5* | irix6* | nonstopux*) 9345 case $host_os in 9346 nonstopux*) version_type=nonstopux ;; 9347 *) 9348 if test "$lt_cv_prog_gnu_ld" = yes; then 9349 version_type=linux 9350 else 9351 version_type=irix 9352 fi ;; 9353 esac 9354 need_lib_prefix=no 9355 need_version=no 9356 soname_spec='${libname}${release}${shared_ext}$major' 9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9358 case $host_os in 9359 irix5* | nonstopux*) 9360 libsuff= shlibsuff= 9361 ;; 9362 *) 9363 case $LD in # libtool.m4 will add one of these switches to LD 9364 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9365 libsuff= shlibsuff= libmagic=32-bit;; 9366 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9367 libsuff=32 shlibsuff=N32 libmagic=N32;; 9368 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9369 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9370 *) libsuff= shlibsuff= libmagic=never-match;; 9371 esac 9372 ;; 9373 esac 9374 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9375 shlibpath_overrides_runpath=no 9376 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9377 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9378 hardcode_into_libs=yes 9379 ;; 9380 9381# No shared lib support for Linux oldld, aout, or coff. 9382linux*oldld* | linux*aout* | linux*coff*) 9383 dynamic_linker=no 9384 ;; 9385 9386# This must be Linux ELF. 9387linux* | k*bsd*-gnu) 9388 version_type=linux 9389 need_lib_prefix=no 9390 need_version=no 9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9392 soname_spec='${libname}${release}${shared_ext}$major' 9393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9394 shlibpath_var=LD_LIBRARY_PATH 9395 shlibpath_overrides_runpath=no 9396 # This implies no fast_install, which is unacceptable. 9397 # Some rework will be needed to allow for fast_install 9398 # before this can be enabled. 9399 hardcode_into_libs=yes 9400 9401 # Append ld.so.conf contents to the search path 9402 if test -f /etc/ld.so.conf; then 9403 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' ' '` 9404 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9405 fi 9406 9407 # We used to test for /lib/ld.so.1 and disable shared libraries on 9408 # powerpc, because MkLinux only supported shared libraries with the 9409 # GNU dynamic linker. Since this was broken with cross compilers, 9410 # most powerpc-linux boxes support dynamic linking these days and 9411 # people can always --disable-shared, the test was removed, and we 9412 # assume the GNU/Linux dynamic linker is in use. 9413 dynamic_linker='GNU/Linux ld.so' 9414 ;; 9415 9416netbsd*) 9417 version_type=sunos 9418 need_lib_prefix=no 9419 need_version=no 9420 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9423 dynamic_linker='NetBSD (a.out) ld.so' 9424 else 9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9426 soname_spec='${libname}${release}${shared_ext}$major' 9427 dynamic_linker='NetBSD ld.elf_so' 9428 fi 9429 shlibpath_var=LD_LIBRARY_PATH 9430 shlibpath_overrides_runpath=yes 9431 hardcode_into_libs=yes 9432 ;; 9433 9434newsos6) 9435 version_type=linux 9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9437 shlibpath_var=LD_LIBRARY_PATH 9438 shlibpath_overrides_runpath=yes 9439 ;; 9440 9441nto-qnx*) 9442 version_type=linux 9443 need_lib_prefix=no 9444 need_version=no 9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9446 soname_spec='${libname}${release}${shared_ext}$major' 9447 shlibpath_var=LD_LIBRARY_PATH 9448 shlibpath_overrides_runpath=yes 9449 ;; 9450 9451openbsd*) 9452 version_type=sunos 9453 sys_lib_dlsearch_path_spec="/usr/lib" 9454 need_lib_prefix=no 9455 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9456 case $host_os in 9457 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9458 *) need_version=no ;; 9459 esac 9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9462 shlibpath_var=LD_LIBRARY_PATH 9463 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9464 case $host_os in 9465 openbsd2.[89] | openbsd2.[89].*) 9466 shlibpath_overrides_runpath=no 9467 ;; 9468 *) 9469 shlibpath_overrides_runpath=yes 9470 ;; 9471 esac 9472 else 9473 shlibpath_overrides_runpath=yes 9474 fi 9475 ;; 9476 9477os2*) 9478 libname_spec='$name' 9479 shrext_cmds=".dll" 9480 need_lib_prefix=no 9481 library_names_spec='$libname${shared_ext} $libname.a' 9482 dynamic_linker='OS/2 ld.exe' 9483 shlibpath_var=LIBPATH 9484 ;; 9485 9486osf3* | osf4* | osf5*) 9487 version_type=osf 9488 need_lib_prefix=no 9489 need_version=no 9490 soname_spec='${libname}${release}${shared_ext}$major' 9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9492 shlibpath_var=LD_LIBRARY_PATH 9493 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9494 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9495 ;; 9496 9497rdos*) 9498 dynamic_linker=no 9499 ;; 9500 9501solaris*) 9502 version_type=linux 9503 need_lib_prefix=no 9504 need_version=no 9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9506 soname_spec='${libname}${release}${shared_ext}$major' 9507 shlibpath_var=LD_LIBRARY_PATH 9508 shlibpath_overrides_runpath=yes 9509 hardcode_into_libs=yes 9510 # ldd complains unless libraries are executable 9511 postinstall_cmds='chmod +x $lib' 9512 ;; 9513 9514sunos4*) 9515 version_type=sunos 9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9517 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9518 shlibpath_var=LD_LIBRARY_PATH 9519 shlibpath_overrides_runpath=yes 9520 if test "$with_gnu_ld" = yes; then 9521 need_lib_prefix=no 9522 fi 9523 need_version=yes 9524 ;; 9525 9526sysv4 | sysv4.3*) 9527 version_type=linux 9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9529 soname_spec='${libname}${release}${shared_ext}$major' 9530 shlibpath_var=LD_LIBRARY_PATH 9531 case $host_vendor in 9532 sni) 9533 shlibpath_overrides_runpath=no 9534 need_lib_prefix=no 9535 export_dynamic_flag_spec='${wl}-Blargedynsym' 9536 runpath_var=LD_RUN_PATH 9537 ;; 9538 siemens) 9539 need_lib_prefix=no 9540 ;; 9541 motorola) 9542 need_lib_prefix=no 9543 need_version=no 9544 shlibpath_overrides_runpath=no 9545 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9546 ;; 9547 esac 9548 ;; 9549 9550sysv4*MP*) 9551 if test -d /usr/nec ;then 9552 version_type=linux 9553 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9554 soname_spec='$libname${shared_ext}.$major' 9555 shlibpath_var=LD_LIBRARY_PATH 9556 fi 9557 ;; 9558 9559sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9560 version_type=freebsd-elf 9561 need_lib_prefix=no 9562 need_version=no 9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9564 soname_spec='${libname}${release}${shared_ext}$major' 9565 shlibpath_var=LD_LIBRARY_PATH 9566 hardcode_into_libs=yes 9567 if test "$with_gnu_ld" = yes; then 9568 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9569 shlibpath_overrides_runpath=no 9570 else 9571 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9572 shlibpath_overrides_runpath=yes 9573 case $host_os in 9574 sco3.2v5*) 9575 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9576 ;; 9577 esac 9578 fi 9579 sys_lib_dlsearch_path_spec='/usr/lib' 9580 ;; 9581 9582uts4*) 9583 version_type=linux 9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9585 soname_spec='${libname}${release}${shared_ext}$major' 9586 shlibpath_var=LD_LIBRARY_PATH 9587 ;; 9588 9589*) 9590 dynamic_linker=no 9591 ;; 9592esac 9593{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9594echo "${ECHO_T}$dynamic_linker" >&6; } 9595test "$dynamic_linker" = no && can_build_shared=no 9596 9597variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9598if test "$GCC" = yes; then 9599 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9600fi 9601 9602{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9603echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9604hardcode_action= 9605if test -n "$hardcode_libdir_flag_spec" || \ 9606 test -n "$runpath_var" || \ 9607 test "X$hardcode_automatic" = "Xyes" ; then 9608 9609 # We can hardcode non-existant directories. 9610 if test "$hardcode_direct" != no && 9611 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9612 # have to relink, otherwise we might link with an installed library 9613 # when we should be linking with a yet-to-be-installed one 9614 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9615 test "$hardcode_minus_L" != no; then 9616 # Linking always hardcodes the temporary library directory. 9617 hardcode_action=relink 9618 else 9619 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9620 hardcode_action=immediate 9621 fi 9622else 9623 # We cannot hardcode anything, or else we can only hardcode existing 9624 # directories. 9625 hardcode_action=unsupported 9626fi 9627{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9628echo "${ECHO_T}$hardcode_action" >&6; } 9629 9630if test "$hardcode_action" = relink; then 9631 # Fast installation is not supported 9632 enable_fast_install=no 9633elif test "$shlibpath_overrides_runpath" = yes || 9634 test "$enable_shared" = no; then 9635 # Fast installation is not necessary 9636 enable_fast_install=needless 9637fi 9638 9639striplib= 9640old_striplib= 9641{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9642echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9643if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9644 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9645 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9646 { echo "$as_me:$LINENO: result: yes" >&5 9647echo "${ECHO_T}yes" >&6; } 9648else 9649# FIXME - insert some real tests, host_os isn't really good enough 9650 case $host_os in 9651 darwin*) 9652 if test -n "$STRIP" ; then 9653 striplib="$STRIP -x" 9654 old_striplib="$STRIP -S" 9655 { echo "$as_me:$LINENO: result: yes" >&5 9656echo "${ECHO_T}yes" >&6; } 9657 else 9658 { echo "$as_me:$LINENO: result: no" >&5 9659echo "${ECHO_T}no" >&6; } 9660fi 9661 ;; 9662 *) 9663 { echo "$as_me:$LINENO: result: no" >&5 9664echo "${ECHO_T}no" >&6; } 9665 ;; 9666 esac 9667fi 9668 9669if test "x$enable_dlopen" != xyes; then 9670 enable_dlopen=unknown 9671 enable_dlopen_self=unknown 9672 enable_dlopen_self_static=unknown 9673else 9674 lt_cv_dlopen=no 9675 lt_cv_dlopen_libs= 9676 9677 case $host_os in 9678 beos*) 9679 lt_cv_dlopen="load_add_on" 9680 lt_cv_dlopen_libs= 9681 lt_cv_dlopen_self=yes 9682 ;; 9683 9684 mingw* | pw32*) 9685 lt_cv_dlopen="LoadLibrary" 9686 lt_cv_dlopen_libs= 9687 ;; 9688 9689 cygwin*) 9690 lt_cv_dlopen="dlopen" 9691 lt_cv_dlopen_libs= 9692 ;; 9693 9694 darwin*) 9695 # if libdl is installed we need to link against it 9696 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9697echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9698if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9699 echo $ECHO_N "(cached) $ECHO_C" >&6 9700else 9701 ac_check_lib_save_LIBS=$LIBS 9702LIBS="-ldl $LIBS" 9703cat >conftest.$ac_ext <<_ACEOF 9704/* confdefs.h. */ 9705_ACEOF 9706cat confdefs.h >>conftest.$ac_ext 9707cat >>conftest.$ac_ext <<_ACEOF 9708/* end confdefs.h. */ 9709 9710/* Override any GCC internal prototype to avoid an error. 9711 Use char because int might match the return type of a GCC 9712 builtin and then its argument prototype would still apply. */ 9713#ifdef __cplusplus 9714extern "C" 9715#endif 9716char dlopen (); 9717int 9718main () 9719{ 9720return dlopen (); 9721 ; 9722 return 0; 9723} 9724_ACEOF 9725rm -f conftest.$ac_objext conftest$ac_exeext 9726if { (ac_try="$ac_link" 9727case "(($ac_try" in 9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9729 *) ac_try_echo=$ac_try;; 9730esac 9731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9732 (eval "$ac_link") 2>conftest.er1 9733 ac_status=$? 9734 grep -v '^ *+' conftest.er1 >conftest.err 9735 rm -f conftest.er1 9736 cat conftest.err >&5 9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9738 (exit $ac_status); } && { 9739 test -z "$ac_c_werror_flag" || 9740 test ! -s conftest.err 9741 } && test -s conftest$ac_exeext && 9742 $as_test_x conftest$ac_exeext; then 9743 ac_cv_lib_dl_dlopen=yes 9744else 9745 echo "$as_me: failed program was:" >&5 9746sed 's/^/| /' conftest.$ac_ext >&5 9747 9748 ac_cv_lib_dl_dlopen=no 9749fi 9750 9751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9752 conftest$ac_exeext conftest.$ac_ext 9753LIBS=$ac_check_lib_save_LIBS 9754fi 9755{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9756echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9757if test $ac_cv_lib_dl_dlopen = yes; then 9758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9759else 9760 9761 lt_cv_dlopen="dyld" 9762 lt_cv_dlopen_libs= 9763 lt_cv_dlopen_self=yes 9764 9765fi 9766 9767 ;; 9768 9769 *) 9770 { echo "$as_me:$LINENO: checking for shl_load" >&5 9771echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9772if test "${ac_cv_func_shl_load+set}" = set; then 9773 echo $ECHO_N "(cached) $ECHO_C" >&6 9774else 9775 cat >conftest.$ac_ext <<_ACEOF 9776/* confdefs.h. */ 9777_ACEOF 9778cat confdefs.h >>conftest.$ac_ext 9779cat >>conftest.$ac_ext <<_ACEOF 9780/* end confdefs.h. */ 9781/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9782 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9783#define shl_load innocuous_shl_load 9784 9785/* System header to define __stub macros and hopefully few prototypes, 9786 which can conflict with char shl_load (); below. 9787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9788 <limits.h> exists even on freestanding compilers. */ 9789 9790#ifdef __STDC__ 9791# include <limits.h> 9792#else 9793# include <assert.h> 9794#endif 9795 9796#undef shl_load 9797 9798/* Override any GCC internal prototype to avoid an error. 9799 Use char because int might match the return type of a GCC 9800 builtin and then its argument prototype would still apply. */ 9801#ifdef __cplusplus 9802extern "C" 9803#endif 9804char shl_load (); 9805/* The GNU C library defines this for functions which it implements 9806 to always fail with ENOSYS. Some functions are actually named 9807 something starting with __ and the normal name is an alias. */ 9808#if defined __stub_shl_load || defined __stub___shl_load 9809choke me 9810#endif 9811 9812int 9813main () 9814{ 9815return shl_load (); 9816 ; 9817 return 0; 9818} 9819_ACEOF 9820rm -f conftest.$ac_objext conftest$ac_exeext 9821if { (ac_try="$ac_link" 9822case "(($ac_try" in 9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9824 *) ac_try_echo=$ac_try;; 9825esac 9826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9827 (eval "$ac_link") 2>conftest.er1 9828 ac_status=$? 9829 grep -v '^ *+' conftest.er1 >conftest.err 9830 rm -f conftest.er1 9831 cat conftest.err >&5 9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9833 (exit $ac_status); } && { 9834 test -z "$ac_c_werror_flag" || 9835 test ! -s conftest.err 9836 } && test -s conftest$ac_exeext && 9837 $as_test_x conftest$ac_exeext; then 9838 ac_cv_func_shl_load=yes 9839else 9840 echo "$as_me: failed program was:" >&5 9841sed 's/^/| /' conftest.$ac_ext >&5 9842 9843 ac_cv_func_shl_load=no 9844fi 9845 9846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9847 conftest$ac_exeext conftest.$ac_ext 9848fi 9849{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9850echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9851if test $ac_cv_func_shl_load = yes; then 9852 lt_cv_dlopen="shl_load" 9853else 9854 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9855echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9856if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9857 echo $ECHO_N "(cached) $ECHO_C" >&6 9858else 9859 ac_check_lib_save_LIBS=$LIBS 9860LIBS="-ldld $LIBS" 9861cat >conftest.$ac_ext <<_ACEOF 9862/* confdefs.h. */ 9863_ACEOF 9864cat confdefs.h >>conftest.$ac_ext 9865cat >>conftest.$ac_ext <<_ACEOF 9866/* end confdefs.h. */ 9867 9868/* Override any GCC internal prototype to avoid an error. 9869 Use char because int might match the return type of a GCC 9870 builtin and then its argument prototype would still apply. */ 9871#ifdef __cplusplus 9872extern "C" 9873#endif 9874char shl_load (); 9875int 9876main () 9877{ 9878return shl_load (); 9879 ; 9880 return 0; 9881} 9882_ACEOF 9883rm -f conftest.$ac_objext conftest$ac_exeext 9884if { (ac_try="$ac_link" 9885case "(($ac_try" in 9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9887 *) ac_try_echo=$ac_try;; 9888esac 9889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9890 (eval "$ac_link") 2>conftest.er1 9891 ac_status=$? 9892 grep -v '^ *+' conftest.er1 >conftest.err 9893 rm -f conftest.er1 9894 cat conftest.err >&5 9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9896 (exit $ac_status); } && { 9897 test -z "$ac_c_werror_flag" || 9898 test ! -s conftest.err 9899 } && test -s conftest$ac_exeext && 9900 $as_test_x conftest$ac_exeext; then 9901 ac_cv_lib_dld_shl_load=yes 9902else 9903 echo "$as_me: failed program was:" >&5 9904sed 's/^/| /' conftest.$ac_ext >&5 9905 9906 ac_cv_lib_dld_shl_load=no 9907fi 9908 9909rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9910 conftest$ac_exeext conftest.$ac_ext 9911LIBS=$ac_check_lib_save_LIBS 9912fi 9913{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9914echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9915if test $ac_cv_lib_dld_shl_load = yes; then 9916 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9917else 9918 { echo "$as_me:$LINENO: checking for dlopen" >&5 9919echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9920if test "${ac_cv_func_dlopen+set}" = set; then 9921 echo $ECHO_N "(cached) $ECHO_C" >&6 9922else 9923 cat >conftest.$ac_ext <<_ACEOF 9924/* confdefs.h. */ 9925_ACEOF 9926cat confdefs.h >>conftest.$ac_ext 9927cat >>conftest.$ac_ext <<_ACEOF 9928/* end confdefs.h. */ 9929/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9930 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9931#define dlopen innocuous_dlopen 9932 9933/* System header to define __stub macros and hopefully few prototypes, 9934 which can conflict with char dlopen (); below. 9935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9936 <limits.h> exists even on freestanding compilers. */ 9937 9938#ifdef __STDC__ 9939# include <limits.h> 9940#else 9941# include <assert.h> 9942#endif 9943 9944#undef dlopen 9945 9946/* Override any GCC internal prototype to avoid an error. 9947 Use char because int might match the return type of a GCC 9948 builtin and then its argument prototype would still apply. */ 9949#ifdef __cplusplus 9950extern "C" 9951#endif 9952char dlopen (); 9953/* The GNU C library defines this for functions which it implements 9954 to always fail with ENOSYS. Some functions are actually named 9955 something starting with __ and the normal name is an alias. */ 9956#if defined __stub_dlopen || defined __stub___dlopen 9957choke me 9958#endif 9959 9960int 9961main () 9962{ 9963return dlopen (); 9964 ; 9965 return 0; 9966} 9967_ACEOF 9968rm -f conftest.$ac_objext conftest$ac_exeext 9969if { (ac_try="$ac_link" 9970case "(($ac_try" in 9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9972 *) ac_try_echo=$ac_try;; 9973esac 9974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9975 (eval "$ac_link") 2>conftest.er1 9976 ac_status=$? 9977 grep -v '^ *+' conftest.er1 >conftest.err 9978 rm -f conftest.er1 9979 cat conftest.err >&5 9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9981 (exit $ac_status); } && { 9982 test -z "$ac_c_werror_flag" || 9983 test ! -s conftest.err 9984 } && test -s conftest$ac_exeext && 9985 $as_test_x conftest$ac_exeext; then 9986 ac_cv_func_dlopen=yes 9987else 9988 echo "$as_me: failed program was:" >&5 9989sed 's/^/| /' conftest.$ac_ext >&5 9990 9991 ac_cv_func_dlopen=no 9992fi 9993 9994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9995 conftest$ac_exeext conftest.$ac_ext 9996fi 9997{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9998echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9999if test $ac_cv_func_dlopen = yes; then 10000 lt_cv_dlopen="dlopen" 10001else 10002 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10003echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10004if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10005 echo $ECHO_N "(cached) $ECHO_C" >&6 10006else 10007 ac_check_lib_save_LIBS=$LIBS 10008LIBS="-ldl $LIBS" 10009cat >conftest.$ac_ext <<_ACEOF 10010/* confdefs.h. */ 10011_ACEOF 10012cat confdefs.h >>conftest.$ac_ext 10013cat >>conftest.$ac_ext <<_ACEOF 10014/* end confdefs.h. */ 10015 10016/* Override any GCC internal prototype to avoid an error. 10017 Use char because int might match the return type of a GCC 10018 builtin and then its argument prototype would still apply. */ 10019#ifdef __cplusplus 10020extern "C" 10021#endif 10022char dlopen (); 10023int 10024main () 10025{ 10026return dlopen (); 10027 ; 10028 return 0; 10029} 10030_ACEOF 10031rm -f conftest.$ac_objext conftest$ac_exeext 10032if { (ac_try="$ac_link" 10033case "(($ac_try" in 10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10035 *) ac_try_echo=$ac_try;; 10036esac 10037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10038 (eval "$ac_link") 2>conftest.er1 10039 ac_status=$? 10040 grep -v '^ *+' conftest.er1 >conftest.err 10041 rm -f conftest.er1 10042 cat conftest.err >&5 10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10044 (exit $ac_status); } && { 10045 test -z "$ac_c_werror_flag" || 10046 test ! -s conftest.err 10047 } && test -s conftest$ac_exeext && 10048 $as_test_x conftest$ac_exeext; then 10049 ac_cv_lib_dl_dlopen=yes 10050else 10051 echo "$as_me: failed program was:" >&5 10052sed 's/^/| /' conftest.$ac_ext >&5 10053 10054 ac_cv_lib_dl_dlopen=no 10055fi 10056 10057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10058 conftest$ac_exeext conftest.$ac_ext 10059LIBS=$ac_check_lib_save_LIBS 10060fi 10061{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10062echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10063if test $ac_cv_lib_dl_dlopen = yes; then 10064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10065else 10066 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10067echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10068if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10069 echo $ECHO_N "(cached) $ECHO_C" >&6 10070else 10071 ac_check_lib_save_LIBS=$LIBS 10072LIBS="-lsvld $LIBS" 10073cat >conftest.$ac_ext <<_ACEOF 10074/* confdefs.h. */ 10075_ACEOF 10076cat confdefs.h >>conftest.$ac_ext 10077cat >>conftest.$ac_ext <<_ACEOF 10078/* end confdefs.h. */ 10079 10080/* Override any GCC internal prototype to avoid an error. 10081 Use char because int might match the return type of a GCC 10082 builtin and then its argument prototype would still apply. */ 10083#ifdef __cplusplus 10084extern "C" 10085#endif 10086char dlopen (); 10087int 10088main () 10089{ 10090return dlopen (); 10091 ; 10092 return 0; 10093} 10094_ACEOF 10095rm -f conftest.$ac_objext conftest$ac_exeext 10096if { (ac_try="$ac_link" 10097case "(($ac_try" in 10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10099 *) ac_try_echo=$ac_try;; 10100esac 10101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10102 (eval "$ac_link") 2>conftest.er1 10103 ac_status=$? 10104 grep -v '^ *+' conftest.er1 >conftest.err 10105 rm -f conftest.er1 10106 cat conftest.err >&5 10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10108 (exit $ac_status); } && { 10109 test -z "$ac_c_werror_flag" || 10110 test ! -s conftest.err 10111 } && test -s conftest$ac_exeext && 10112 $as_test_x conftest$ac_exeext; then 10113 ac_cv_lib_svld_dlopen=yes 10114else 10115 echo "$as_me: failed program was:" >&5 10116sed 's/^/| /' conftest.$ac_ext >&5 10117 10118 ac_cv_lib_svld_dlopen=no 10119fi 10120 10121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10122 conftest$ac_exeext conftest.$ac_ext 10123LIBS=$ac_check_lib_save_LIBS 10124fi 10125{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10126echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10127if test $ac_cv_lib_svld_dlopen = yes; then 10128 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10129else 10130 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10131echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10132if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10133 echo $ECHO_N "(cached) $ECHO_C" >&6 10134else 10135 ac_check_lib_save_LIBS=$LIBS 10136LIBS="-ldld $LIBS" 10137cat >conftest.$ac_ext <<_ACEOF 10138/* confdefs.h. */ 10139_ACEOF 10140cat confdefs.h >>conftest.$ac_ext 10141cat >>conftest.$ac_ext <<_ACEOF 10142/* end confdefs.h. */ 10143 10144/* Override any GCC internal prototype to avoid an error. 10145 Use char because int might match the return type of a GCC 10146 builtin and then its argument prototype would still apply. */ 10147#ifdef __cplusplus 10148extern "C" 10149#endif 10150char dld_link (); 10151int 10152main () 10153{ 10154return dld_link (); 10155 ; 10156 return 0; 10157} 10158_ACEOF 10159rm -f conftest.$ac_objext conftest$ac_exeext 10160if { (ac_try="$ac_link" 10161case "(($ac_try" in 10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10163 *) ac_try_echo=$ac_try;; 10164esac 10165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10166 (eval "$ac_link") 2>conftest.er1 10167 ac_status=$? 10168 grep -v '^ *+' conftest.er1 >conftest.err 10169 rm -f conftest.er1 10170 cat conftest.err >&5 10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10172 (exit $ac_status); } && { 10173 test -z "$ac_c_werror_flag" || 10174 test ! -s conftest.err 10175 } && test -s conftest$ac_exeext && 10176 $as_test_x conftest$ac_exeext; then 10177 ac_cv_lib_dld_dld_link=yes 10178else 10179 echo "$as_me: failed program was:" >&5 10180sed 's/^/| /' conftest.$ac_ext >&5 10181 10182 ac_cv_lib_dld_dld_link=no 10183fi 10184 10185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10186 conftest$ac_exeext conftest.$ac_ext 10187LIBS=$ac_check_lib_save_LIBS 10188fi 10189{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10190echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10191if test $ac_cv_lib_dld_dld_link = yes; then 10192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10193fi 10194 10195 10196fi 10197 10198 10199fi 10200 10201 10202fi 10203 10204 10205fi 10206 10207 10208fi 10209 10210 ;; 10211 esac 10212 10213 if test "x$lt_cv_dlopen" != xno; then 10214 enable_dlopen=yes 10215 else 10216 enable_dlopen=no 10217 fi 10218 10219 case $lt_cv_dlopen in 10220 dlopen) 10221 save_CPPFLAGS="$CPPFLAGS" 10222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10223 10224 save_LDFLAGS="$LDFLAGS" 10225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10226 10227 save_LIBS="$LIBS" 10228 LIBS="$lt_cv_dlopen_libs $LIBS" 10229 10230 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10231echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10232if test "${lt_cv_dlopen_self+set}" = set; then 10233 echo $ECHO_N "(cached) $ECHO_C" >&6 10234else 10235 if test "$cross_compiling" = yes; then : 10236 lt_cv_dlopen_self=cross 10237else 10238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10239 lt_status=$lt_dlunknown 10240 cat > conftest.$ac_ext <<EOF 10241#line 10241 "configure" 10242#include "confdefs.h" 10243 10244#if HAVE_DLFCN_H 10245#include <dlfcn.h> 10246#endif 10247 10248#include <stdio.h> 10249 10250#ifdef RTLD_GLOBAL 10251# define LT_DLGLOBAL RTLD_GLOBAL 10252#else 10253# ifdef DL_GLOBAL 10254# define LT_DLGLOBAL DL_GLOBAL 10255# else 10256# define LT_DLGLOBAL 0 10257# endif 10258#endif 10259 10260/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10261 find out it does not work in some platform. */ 10262#ifndef LT_DLLAZY_OR_NOW 10263# ifdef RTLD_LAZY 10264# define LT_DLLAZY_OR_NOW RTLD_LAZY 10265# else 10266# ifdef DL_LAZY 10267# define LT_DLLAZY_OR_NOW DL_LAZY 10268# else 10269# ifdef RTLD_NOW 10270# define LT_DLLAZY_OR_NOW RTLD_NOW 10271# else 10272# ifdef DL_NOW 10273# define LT_DLLAZY_OR_NOW DL_NOW 10274# else 10275# define LT_DLLAZY_OR_NOW 0 10276# endif 10277# endif 10278# endif 10279# endif 10280#endif 10281 10282#ifdef __cplusplus 10283extern "C" void exit (int); 10284#endif 10285 10286void fnord() { int i=42;} 10287int main () 10288{ 10289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10290 int status = $lt_dlunknown; 10291 10292 if (self) 10293 { 10294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10295 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10296 /* dlclose (self); */ 10297 } 10298 else 10299 puts (dlerror ()); 10300 10301 exit (status); 10302} 10303EOF 10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10305 (eval $ac_link) 2>&5 10306 ac_status=$? 10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10308 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10309 (./conftest; exit; ) >&5 2>/dev/null 10310 lt_status=$? 10311 case x$lt_status in 10312 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10313 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10314 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10315 esac 10316 else : 10317 # compilation failed 10318 lt_cv_dlopen_self=no 10319 fi 10320fi 10321rm -fr conftest* 10322 10323 10324fi 10325{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10326echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10327 10328 if test "x$lt_cv_dlopen_self" = xyes; then 10329 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10330 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10331echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10332if test "${lt_cv_dlopen_self_static+set}" = set; then 10333 echo $ECHO_N "(cached) $ECHO_C" >&6 10334else 10335 if test "$cross_compiling" = yes; then : 10336 lt_cv_dlopen_self_static=cross 10337else 10338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10339 lt_status=$lt_dlunknown 10340 cat > conftest.$ac_ext <<EOF 10341#line 10341 "configure" 10342#include "confdefs.h" 10343 10344#if HAVE_DLFCN_H 10345#include <dlfcn.h> 10346#endif 10347 10348#include <stdio.h> 10349 10350#ifdef RTLD_GLOBAL 10351# define LT_DLGLOBAL RTLD_GLOBAL 10352#else 10353# ifdef DL_GLOBAL 10354# define LT_DLGLOBAL DL_GLOBAL 10355# else 10356# define LT_DLGLOBAL 0 10357# endif 10358#endif 10359 10360/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10361 find out it does not work in some platform. */ 10362#ifndef LT_DLLAZY_OR_NOW 10363# ifdef RTLD_LAZY 10364# define LT_DLLAZY_OR_NOW RTLD_LAZY 10365# else 10366# ifdef DL_LAZY 10367# define LT_DLLAZY_OR_NOW DL_LAZY 10368# else 10369# ifdef RTLD_NOW 10370# define LT_DLLAZY_OR_NOW RTLD_NOW 10371# else 10372# ifdef DL_NOW 10373# define LT_DLLAZY_OR_NOW DL_NOW 10374# else 10375# define LT_DLLAZY_OR_NOW 0 10376# endif 10377# endif 10378# endif 10379# endif 10380#endif 10381 10382#ifdef __cplusplus 10383extern "C" void exit (int); 10384#endif 10385 10386void fnord() { int i=42;} 10387int main () 10388{ 10389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10390 int status = $lt_dlunknown; 10391 10392 if (self) 10393 { 10394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10395 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10396 /* dlclose (self); */ 10397 } 10398 else 10399 puts (dlerror ()); 10400 10401 exit (status); 10402} 10403EOF 10404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10405 (eval $ac_link) 2>&5 10406 ac_status=$? 10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10408 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10409 (./conftest; exit; ) >&5 2>/dev/null 10410 lt_status=$? 10411 case x$lt_status in 10412 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10413 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10414 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10415 esac 10416 else : 10417 # compilation failed 10418 lt_cv_dlopen_self_static=no 10419 fi 10420fi 10421rm -fr conftest* 10422 10423 10424fi 10425{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10426echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10427 fi 10428 10429 CPPFLAGS="$save_CPPFLAGS" 10430 LDFLAGS="$save_LDFLAGS" 10431 LIBS="$save_LIBS" 10432 ;; 10433 esac 10434 10435 case $lt_cv_dlopen_self in 10436 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10437 *) enable_dlopen_self=unknown ;; 10438 esac 10439 10440 case $lt_cv_dlopen_self_static in 10441 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10442 *) enable_dlopen_self_static=unknown ;; 10443 esac 10444fi 10445 10446 10447# Report which library types will actually be built 10448{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10449echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10450{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10451echo "${ECHO_T}$can_build_shared" >&6; } 10452 10453{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10454echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10455test "$can_build_shared" = "no" && enable_shared=no 10456 10457# On AIX, shared libraries and static libraries use the same namespace, and 10458# are all built from PIC. 10459case $host_os in 10460aix3*) 10461 test "$enable_shared" = yes && enable_static=no 10462 if test -n "$RANLIB"; then 10463 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10464 postinstall_cmds='$RANLIB $lib' 10465 fi 10466 ;; 10467 10468aix4* | aix5*) 10469 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10470 test "$enable_shared" = yes && enable_static=no 10471 fi 10472 ;; 10473esac 10474{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10475echo "${ECHO_T}$enable_shared" >&6; } 10476 10477{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10478echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10479# Make sure either enable_shared or enable_static is yes. 10480test "$enable_shared" = yes || enable_static=yes 10481{ echo "$as_me:$LINENO: result: $enable_static" >&5 10482echo "${ECHO_T}$enable_static" >&6; } 10483 10484# The else clause should only fire when bootstrapping the 10485# libtool distribution, otherwise you forgot to ship ltmain.sh 10486# with your package, and you will get complaints that there are 10487# no rules to generate ltmain.sh. 10488if test -f "$ltmain"; then 10489 # See if we are running on zsh, and set the options which allow our commands through 10490 # without removal of \ escapes. 10491 if test -n "${ZSH_VERSION+set}" ; then 10492 setopt NO_GLOB_SUBST 10493 fi 10494 # Now quote all the things that may contain metacharacters while being 10495 # careful not to overquote the AC_SUBSTed values. We take copies of the 10496 # variables and quote the copies for generation of the libtool script. 10497 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10498 SED SHELL STRIP \ 10499 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10500 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10501 deplibs_check_method reload_flag reload_cmds need_locks \ 10502 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10503 lt_cv_sys_global_symbol_to_c_name_address \ 10504 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10505 old_postinstall_cmds old_postuninstall_cmds \ 10506 compiler \ 10507 CC \ 10508 LD \ 10509 lt_prog_compiler_wl \ 10510 lt_prog_compiler_pic \ 10511 lt_prog_compiler_static \ 10512 lt_prog_compiler_no_builtin_flag \ 10513 export_dynamic_flag_spec \ 10514 thread_safe_flag_spec \ 10515 whole_archive_flag_spec \ 10516 enable_shared_with_static_runtimes \ 10517 old_archive_cmds \ 10518 old_archive_from_new_cmds \ 10519 predep_objects \ 10520 postdep_objects \ 10521 predeps \ 10522 postdeps \ 10523 compiler_lib_search_path \ 10524 archive_cmds \ 10525 archive_expsym_cmds \ 10526 postinstall_cmds \ 10527 postuninstall_cmds \ 10528 old_archive_from_expsyms_cmds \ 10529 allow_undefined_flag \ 10530 no_undefined_flag \ 10531 export_symbols_cmds \ 10532 hardcode_libdir_flag_spec \ 10533 hardcode_libdir_flag_spec_ld \ 10534 hardcode_libdir_separator \ 10535 hardcode_automatic \ 10536 module_cmds \ 10537 module_expsym_cmds \ 10538 lt_cv_prog_compiler_c_o \ 10539 fix_srcfile_path \ 10540 exclude_expsyms \ 10541 include_expsyms; do 10542 10543 case $var in 10544 old_archive_cmds | \ 10545 old_archive_from_new_cmds | \ 10546 archive_cmds | \ 10547 archive_expsym_cmds | \ 10548 module_cmds | \ 10549 module_expsym_cmds | \ 10550 old_archive_from_expsyms_cmds | \ 10551 export_symbols_cmds | \ 10552 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10553 postinstall_cmds | postuninstall_cmds | \ 10554 old_postinstall_cmds | old_postuninstall_cmds | \ 10555 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10556 # Double-quote double-evaled strings. 10557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10558 ;; 10559 *) 10560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10561 ;; 10562 esac 10563 done 10564 10565 case $lt_echo in 10566 *'\$0 --fallback-echo"') 10567 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10568 ;; 10569 esac 10570 10571cfgfile="${ofile}T" 10572 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10573 $rm -f "$cfgfile" 10574 { echo "$as_me:$LINENO: creating $ofile" >&5 10575echo "$as_me: creating $ofile" >&6;} 10576 10577 cat <<__EOF__ >> "$cfgfile" 10578#! $SHELL 10579 10580# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10581# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10582# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10583# 10584# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10585# Free Software Foundation, Inc. 10586# 10587# This file is part of GNU Libtool: 10588# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10589# 10590# This program is free software; you can redistribute it and/or modify 10591# it under the terms of the GNU General Public License as published by 10592# the Free Software Foundation; either version 2 of the License, or 10593# (at your option) any later version. 10594# 10595# This program is distributed in the hope that it will be useful, but 10596# WITHOUT ANY WARRANTY; without even the implied warranty of 10597# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10598# General Public License for more details. 10599# 10600# You should have received a copy of the GNU General Public License 10601# along with this program; if not, write to the Free Software 10602# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10603# 10604# As a special exception to the GNU General Public License, if you 10605# distribute this file as part of a program that contains a 10606# configuration script generated by Autoconf, you may include it under 10607# the same distribution terms that you use for the rest of that program. 10608 10609# A sed program that does not truncate output. 10610SED=$lt_SED 10611 10612# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10613Xsed="$SED -e 1s/^X//" 10614 10615# The HP-UX ksh and POSIX shell print the target directory to stdout 10616# if CDPATH is set. 10617(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10618 10619# The names of the tagged configurations supported by this script. 10620available_tags= 10621 10622# ### BEGIN LIBTOOL CONFIG 10623 10624# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10625 10626# Shell to use when invoking shell scripts. 10627SHELL=$lt_SHELL 10628 10629# Whether or not to build shared libraries. 10630build_libtool_libs=$enable_shared 10631 10632# Whether or not to build static libraries. 10633build_old_libs=$enable_static 10634 10635# Whether or not to add -lc for building shared libraries. 10636build_libtool_need_lc=$archive_cmds_need_lc 10637 10638# Whether or not to disallow shared libs when runtime libs are static 10639allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10640 10641# Whether or not to optimize for fast installation. 10642fast_install=$enable_fast_install 10643 10644# The host system. 10645host_alias=$host_alias 10646host=$host 10647host_os=$host_os 10648 10649# The build system. 10650build_alias=$build_alias 10651build=$build 10652build_os=$build_os 10653 10654# An echo program that does not interpret backslashes. 10655echo=$lt_echo 10656 10657# The archiver. 10658AR=$lt_AR 10659AR_FLAGS=$lt_AR_FLAGS 10660 10661# A C compiler. 10662LTCC=$lt_LTCC 10663 10664# LTCC compiler flags. 10665LTCFLAGS=$lt_LTCFLAGS 10666 10667# A language-specific compiler. 10668CC=$lt_compiler 10669 10670# Is the compiler the GNU C compiler? 10671with_gcc=$GCC 10672 10673# An ERE matcher. 10674EGREP=$lt_EGREP 10675 10676# The linker used to build libraries. 10677LD=$lt_LD 10678 10679# Whether we need hard or soft links. 10680LN_S=$lt_LN_S 10681 10682# A BSD-compatible nm program. 10683NM=$lt_NM 10684 10685# A symbol stripping program 10686STRIP=$lt_STRIP 10687 10688# Used to examine libraries when file_magic_cmd begins "file" 10689MAGIC_CMD=$MAGIC_CMD 10690 10691# Used on cygwin: DLL creation program. 10692DLLTOOL="$DLLTOOL" 10693 10694# Used on cygwin: object dumper. 10695OBJDUMP="$OBJDUMP" 10696 10697# Used on cygwin: assembler. 10698AS="$AS" 10699 10700# The name of the directory that contains temporary libtool files. 10701objdir=$objdir 10702 10703# How to create reloadable object files. 10704reload_flag=$lt_reload_flag 10705reload_cmds=$lt_reload_cmds 10706 10707# How to pass a linker flag through the compiler. 10708wl=$lt_lt_prog_compiler_wl 10709 10710# Object file suffix (normally "o"). 10711objext="$ac_objext" 10712 10713# Old archive suffix (normally "a"). 10714libext="$libext" 10715 10716# Shared library suffix (normally ".so"). 10717shrext_cmds='$shrext_cmds' 10718 10719# Executable file suffix (normally ""). 10720exeext="$exeext" 10721 10722# Additional compiler flags for building library objects. 10723pic_flag=$lt_lt_prog_compiler_pic 10724pic_mode=$pic_mode 10725 10726# What is the maximum length of a command? 10727max_cmd_len=$lt_cv_sys_max_cmd_len 10728 10729# Does compiler simultaneously support -c and -o options? 10730compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10731 10732# Must we lock files when doing compilation? 10733need_locks=$lt_need_locks 10734 10735# Do we need the lib prefix for modules? 10736need_lib_prefix=$need_lib_prefix 10737 10738# Do we need a version for libraries? 10739need_version=$need_version 10740 10741# Whether dlopen is supported. 10742dlopen_support=$enable_dlopen 10743 10744# Whether dlopen of programs is supported. 10745dlopen_self=$enable_dlopen_self 10746 10747# Whether dlopen of statically linked programs is supported. 10748dlopen_self_static=$enable_dlopen_self_static 10749 10750# Compiler flag to prevent dynamic linking. 10751link_static_flag=$lt_lt_prog_compiler_static 10752 10753# Compiler flag to turn off builtin functions. 10754no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10755 10756# Compiler flag to allow reflexive dlopens. 10757export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10758 10759# Compiler flag to generate shared objects directly from archives. 10760whole_archive_flag_spec=$lt_whole_archive_flag_spec 10761 10762# Compiler flag to generate thread-safe objects. 10763thread_safe_flag_spec=$lt_thread_safe_flag_spec 10764 10765# Library versioning type. 10766version_type=$version_type 10767 10768# Format of library name prefix. 10769libname_spec=$lt_libname_spec 10770 10771# List of archive names. First name is the real one, the rest are links. 10772# The last name is the one that the linker finds with -lNAME. 10773library_names_spec=$lt_library_names_spec 10774 10775# The coded name of the library, if different from the real name. 10776soname_spec=$lt_soname_spec 10777 10778# Commands used to build and install an old-style archive. 10779RANLIB=$lt_RANLIB 10780old_archive_cmds=$lt_old_archive_cmds 10781old_postinstall_cmds=$lt_old_postinstall_cmds 10782old_postuninstall_cmds=$lt_old_postuninstall_cmds 10783 10784# Create an old-style archive from a shared archive. 10785old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10786 10787# Create a temporary old-style archive to link instead of a shared archive. 10788old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10789 10790# Commands used to build and install a shared archive. 10791archive_cmds=$lt_archive_cmds 10792archive_expsym_cmds=$lt_archive_expsym_cmds 10793postinstall_cmds=$lt_postinstall_cmds 10794postuninstall_cmds=$lt_postuninstall_cmds 10795 10796# Commands used to build a loadable module (assumed same as above if empty) 10797module_cmds=$lt_module_cmds 10798module_expsym_cmds=$lt_module_expsym_cmds 10799 10800# Commands to strip libraries. 10801old_striplib=$lt_old_striplib 10802striplib=$lt_striplib 10803 10804# Dependencies to place before the objects being linked to create a 10805# shared library. 10806predep_objects=$lt_predep_objects 10807 10808# Dependencies to place after the objects being linked to create a 10809# shared library. 10810postdep_objects=$lt_postdep_objects 10811 10812# Dependencies to place before the objects being linked to create a 10813# shared library. 10814predeps=$lt_predeps 10815 10816# Dependencies to place after the objects being linked to create a 10817# shared library. 10818postdeps=$lt_postdeps 10819 10820# The library search path used internally by the compiler when linking 10821# a shared library. 10822compiler_lib_search_path=$lt_compiler_lib_search_path 10823 10824# Method to check whether dependent libraries are shared objects. 10825deplibs_check_method=$lt_deplibs_check_method 10826 10827# Command to use when deplibs_check_method == file_magic. 10828file_magic_cmd=$lt_file_magic_cmd 10829 10830# Flag that allows shared libraries with undefined symbols to be built. 10831allow_undefined_flag=$lt_allow_undefined_flag 10832 10833# Flag that forces no undefined symbols. 10834no_undefined_flag=$lt_no_undefined_flag 10835 10836# Commands used to finish a libtool library installation in a directory. 10837finish_cmds=$lt_finish_cmds 10838 10839# Same as above, but a single script fragment to be evaled but not shown. 10840finish_eval=$lt_finish_eval 10841 10842# Take the output of nm and produce a listing of raw symbols and C names. 10843global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10844 10845# Transform the output of nm in a proper C declaration 10846global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10847 10848# Transform the output of nm in a C name address pair 10849global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10850 10851# This is the shared library runtime path variable. 10852runpath_var=$runpath_var 10853 10854# This is the shared library path variable. 10855shlibpath_var=$shlibpath_var 10856 10857# Is shlibpath searched before the hard-coded library search path? 10858shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10859 10860# How to hardcode a shared library path into an executable. 10861hardcode_action=$hardcode_action 10862 10863# Whether we should hardcode library paths into libraries. 10864hardcode_into_libs=$hardcode_into_libs 10865 10866# Flag to hardcode \$libdir into a binary during linking. 10867# This must work even if \$libdir does not exist. 10868hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10869 10870# If ld is used when linking, flag to hardcode \$libdir into 10871# a binary during linking. This must work even if \$libdir does 10872# not exist. 10873hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10874 10875# Whether we need a single -rpath flag with a separated argument. 10876hardcode_libdir_separator=$lt_hardcode_libdir_separator 10877 10878# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10879# resulting binary. 10880hardcode_direct=$hardcode_direct 10881 10882# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10883# resulting binary. 10884hardcode_minus_L=$hardcode_minus_L 10885 10886# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10887# the resulting binary. 10888hardcode_shlibpath_var=$hardcode_shlibpath_var 10889 10890# Set to yes if building a shared library automatically hardcodes DIR into the library 10891# and all subsequent libraries and executables linked against it. 10892hardcode_automatic=$hardcode_automatic 10893 10894# Variables whose values should be saved in libtool wrapper scripts and 10895# restored at relink time. 10896variables_saved_for_relink="$variables_saved_for_relink" 10897 10898# Whether libtool must link a program against all its dependency libraries. 10899link_all_deplibs=$link_all_deplibs 10900 10901# Compile-time system search path for libraries 10902sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10903 10904# Run-time system search path for libraries 10905sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10906 10907# Fix the shell variable \$srcfile for the compiler. 10908fix_srcfile_path=$lt_fix_srcfile_path 10909 10910# Set to yes if exported symbols are required. 10911always_export_symbols=$always_export_symbols 10912 10913# The commands to list exported symbols. 10914export_symbols_cmds=$lt_export_symbols_cmds 10915 10916# The commands to extract the exported symbol list from a shared archive. 10917extract_expsyms_cmds=$lt_extract_expsyms_cmds 10918 10919# Symbols that should not be listed in the preloaded symbols. 10920exclude_expsyms=$lt_exclude_expsyms 10921 10922# Symbols that must always be exported. 10923include_expsyms=$lt_include_expsyms 10924 10925# ### END LIBTOOL CONFIG 10926 10927__EOF__ 10928 10929 10930 case $host_os in 10931 aix3*) 10932 cat <<\EOF >> "$cfgfile" 10933 10934# AIX sometimes has problems with the GCC collect2 program. For some 10935# reason, if we set the COLLECT_NAMES environment variable, the problems 10936# vanish in a puff of smoke. 10937if test "X${COLLECT_NAMES+set}" != Xset; then 10938 COLLECT_NAMES= 10939 export COLLECT_NAMES 10940fi 10941EOF 10942 ;; 10943 esac 10944 10945 # We use sed instead of cat because bash on DJGPP gets confused if 10946 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10947 # text mode, it properly converts lines to CR/LF. This bash problem 10948 # is reportedly fixed, but why not run on old versions too? 10949 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10950 10951 mv -f "$cfgfile" "$ofile" || \ 10952 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10953 chmod +x "$ofile" 10954 10955else 10956 # If there is no Makefile yet, we rely on a make rule to execute 10957 # `config.status --recheck' to rerun these tests and create the 10958 # libtool script then. 10959 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10960 if test -f "$ltmain_in"; then 10961 test -f Makefile && make "$ltmain" 10962 fi 10963fi 10964 10965 10966ac_ext=c 10967ac_cpp='$CPP $CPPFLAGS' 10968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10970ac_compiler_gnu=$ac_cv_c_compiler_gnu 10971 10972CC="$lt_save_CC" 10973 10974 10975# Check whether --with-tags was given. 10976if test "${with_tags+set}" = set; then 10977 withval=$with_tags; tagnames="$withval" 10978fi 10979 10980 10981if test -f "$ltmain" && test -n "$tagnames"; then 10982 if test ! -f "${ofile}"; then 10983 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10984echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10985 fi 10986 10987 if test -z "$LTCC"; then 10988 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10989 if test -z "$LTCC"; then 10990 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10991echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10992 else 10993 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10994echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10995 fi 10996 fi 10997 if test -z "$LTCFLAGS"; then 10998 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10999 fi 11000 11001 # Extract list of available tagged configurations in $ofile. 11002 # Note that this assumes the entire list is on one line. 11003 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11004 11005 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11006 for tagname in $tagnames; do 11007 IFS="$lt_save_ifs" 11008 # Check whether tagname contains only valid characters 11009 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11010 "") ;; 11011 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11012echo "$as_me: error: invalid tag name: $tagname" >&2;} 11013 { (exit 1); exit 1; }; } 11014 ;; 11015 esac 11016 11017 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11018 then 11019 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11020echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11021 { (exit 1); exit 1; }; } 11022 fi 11023 11024 # Update the list of available tags. 11025 if test -n "$tagname"; then 11026 echo appending configuration tag \"$tagname\" to $ofile 11027 11028 case $tagname in 11029 CXX) 11030 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11031 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11032 (test "X$CXX" != "Xg++"))) ; then 11033 ac_ext=cpp 11034ac_cpp='$CXXCPP $CPPFLAGS' 11035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11038 11039 11040 11041 11042archive_cmds_need_lc_CXX=no 11043allow_undefined_flag_CXX= 11044always_export_symbols_CXX=no 11045archive_expsym_cmds_CXX= 11046export_dynamic_flag_spec_CXX= 11047hardcode_direct_CXX=no 11048hardcode_libdir_flag_spec_CXX= 11049hardcode_libdir_flag_spec_ld_CXX= 11050hardcode_libdir_separator_CXX= 11051hardcode_minus_L_CXX=no 11052hardcode_shlibpath_var_CXX=unsupported 11053hardcode_automatic_CXX=no 11054module_cmds_CXX= 11055module_expsym_cmds_CXX= 11056link_all_deplibs_CXX=unknown 11057old_archive_cmds_CXX=$old_archive_cmds 11058no_undefined_flag_CXX= 11059whole_archive_flag_spec_CXX= 11060enable_shared_with_static_runtimes_CXX=no 11061 11062# Dependencies to place before and after the object being linked: 11063predep_objects_CXX= 11064postdep_objects_CXX= 11065predeps_CXX= 11066postdeps_CXX= 11067compiler_lib_search_path_CXX= 11068 11069# Source file extension for C++ test sources. 11070ac_ext=cpp 11071 11072# Object file extension for compiled C++ test sources. 11073objext=o 11074objext_CXX=$objext 11075 11076# Code to be used in simple compile tests 11077lt_simple_compile_test_code="int some_variable = 0;" 11078 11079# Code to be used in simple link tests 11080lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11081 11082# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11083 11084# If no C compiler was specified, use CC. 11085LTCC=${LTCC-"$CC"} 11086 11087# If no C compiler flags were specified, use CFLAGS. 11088LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11089 11090# Allow CC to be a program name with arguments. 11091compiler=$CC 11092 11093 11094# save warnings/boilerplate of simple test code 11095ac_outfile=conftest.$ac_objext 11096echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11097eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11098_lt_compiler_boilerplate=`cat conftest.err` 11099$rm conftest* 11100 11101ac_outfile=conftest.$ac_objext 11102echo "$lt_simple_link_test_code" >conftest.$ac_ext 11103eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11104_lt_linker_boilerplate=`cat conftest.err` 11105$rm conftest* 11106 11107 11108# Allow CC to be a program name with arguments. 11109lt_save_CC=$CC 11110lt_save_LD=$LD 11111lt_save_GCC=$GCC 11112GCC=$GXX 11113lt_save_with_gnu_ld=$with_gnu_ld 11114lt_save_path_LD=$lt_cv_path_LD 11115if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11116 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11117else 11118 $as_unset lt_cv_prog_gnu_ld 11119fi 11120if test -n "${lt_cv_path_LDCXX+set}"; then 11121 lt_cv_path_LD=$lt_cv_path_LDCXX 11122else 11123 $as_unset lt_cv_path_LD 11124fi 11125test -z "${LDCXX+set}" || LD=$LDCXX 11126CC=${CXX-"c++"} 11127compiler=$CC 11128compiler_CXX=$CC 11129for cc_temp in $compiler""; do 11130 case $cc_temp in 11131 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11132 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11133 \-*) ;; 11134 *) break;; 11135 esac 11136done 11137cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11138 11139 11140# We don't want -fno-exception wen compiling C++ code, so set the 11141# no_builtin_flag separately 11142if test "$GXX" = yes; then 11143 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11144else 11145 lt_prog_compiler_no_builtin_flag_CXX= 11146fi 11147 11148if test "$GXX" = yes; then 11149 # Set up default GNU C++ configuration 11150 11151 11152# Check whether --with-gnu-ld was given. 11153if test "${with_gnu_ld+set}" = set; then 11154 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11155else 11156 with_gnu_ld=no 11157fi 11158 11159ac_prog=ld 11160if test "$GCC" = yes; then 11161 # Check if gcc -print-prog-name=ld gives a path. 11162 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11163echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11164 case $host in 11165 *-*-mingw*) 11166 # gcc leaves a trailing carriage return which upsets mingw 11167 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11168 *) 11169 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11170 esac 11171 case $ac_prog in 11172 # Accept absolute paths. 11173 [\\/]* | ?:[\\/]*) 11174 re_direlt='/[^/][^/]*/\.\./' 11175 # Canonicalize the pathname of ld 11176 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11177 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11178 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11179 done 11180 test -z "$LD" && LD="$ac_prog" 11181 ;; 11182 "") 11183 # If it fails, then pretend we aren't using GCC. 11184 ac_prog=ld 11185 ;; 11186 *) 11187 # If it is relative, then search for the first ld in PATH. 11188 with_gnu_ld=unknown 11189 ;; 11190 esac 11191elif test "$with_gnu_ld" = yes; then 11192 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11193echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11194else 11195 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11196echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11197fi 11198if test "${lt_cv_path_LD+set}" = set; then 11199 echo $ECHO_N "(cached) $ECHO_C" >&6 11200else 11201 if test -z "$LD"; then 11202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11203 for ac_dir in $PATH; do 11204 IFS="$lt_save_ifs" 11205 test -z "$ac_dir" && ac_dir=. 11206 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11207 lt_cv_path_LD="$ac_dir/$ac_prog" 11208 # Check to see if the program is GNU ld. I'd rather use --version, 11209 # but apparently some variants of GNU ld only accept -v. 11210 # Break only if it was the GNU/non-GNU ld that we prefer. 11211 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11212 *GNU* | *'with BFD'*) 11213 test "$with_gnu_ld" != no && break 11214 ;; 11215 *) 11216 test "$with_gnu_ld" != yes && break 11217 ;; 11218 esac 11219 fi 11220 done 11221 IFS="$lt_save_ifs" 11222else 11223 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11224fi 11225fi 11226 11227LD="$lt_cv_path_LD" 11228if test -n "$LD"; then 11229 { echo "$as_me:$LINENO: result: $LD" >&5 11230echo "${ECHO_T}$LD" >&6; } 11231else 11232 { echo "$as_me:$LINENO: result: no" >&5 11233echo "${ECHO_T}no" >&6; } 11234fi 11235test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11236echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11237 { (exit 1); exit 1; }; } 11238{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11239echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11240if test "${lt_cv_prog_gnu_ld+set}" = set; then 11241 echo $ECHO_N "(cached) $ECHO_C" >&6 11242else 11243 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11244case `$LD -v 2>&1 </dev/null` in 11245*GNU* | *'with BFD'*) 11246 lt_cv_prog_gnu_ld=yes 11247 ;; 11248*) 11249 lt_cv_prog_gnu_ld=no 11250 ;; 11251esac 11252fi 11253{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11254echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11255with_gnu_ld=$lt_cv_prog_gnu_ld 11256 11257 11258 11259 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11260 # archiving commands below assume that GNU ld is being used. 11261 if test "$with_gnu_ld" = yes; then 11262 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11263 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' 11264 11265 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11266 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11267 11268 # If archive_cmds runs LD, not CC, wlarc should be empty 11269 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11270 # investigate it a little bit more. (MM) 11271 wlarc='${wl}' 11272 11273 # ancient GNU ld didn't support --whole-archive et. al. 11274 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11275 grep 'no-whole-archive' > /dev/null; then 11276 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11277 else 11278 whole_archive_flag_spec_CXX= 11279 fi 11280 else 11281 with_gnu_ld=no 11282 wlarc= 11283 11284 # A generic and very simple default shared library creation 11285 # command for GNU C++ for the case where it uses the native 11286 # linker, instead of GNU ld. If possible, this setting should 11287 # overridden to take advantage of the native linker features on 11288 # the platform it is being used on. 11289 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11290 fi 11291 11292 # Commands to make compiler produce verbose output that lists 11293 # what "hidden" libraries, object files and flags are used when 11294 # linking a shared library. 11295 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11296 11297else 11298 GXX=no 11299 with_gnu_ld=no 11300 wlarc= 11301fi 11302 11303# PORTME: fill in a description of your system's C++ link characteristics 11304{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11305echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11306ld_shlibs_CXX=yes 11307case $host_os in 11308 aix3*) 11309 # FIXME: insert proper C++ library support 11310 ld_shlibs_CXX=no 11311 ;; 11312 aix4* | aix5*) 11313 if test "$host_cpu" = ia64; then 11314 # On IA64, the linker does run time linking by default, so we don't 11315 # have to do anything special. 11316 aix_use_runtimelinking=no 11317 exp_sym_flag='-Bexport' 11318 no_entry_flag="" 11319 else 11320 aix_use_runtimelinking=no 11321 11322 # Test if we are trying to use run time linking or normal 11323 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11324 # need to do runtime linking. 11325 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11326 for ld_flag in $LDFLAGS; do 11327 case $ld_flag in 11328 *-brtl*) 11329 aix_use_runtimelinking=yes 11330 break 11331 ;; 11332 esac 11333 done 11334 ;; 11335 esac 11336 11337 exp_sym_flag='-bexport' 11338 no_entry_flag='-bnoentry' 11339 fi 11340 11341 # When large executables or shared objects are built, AIX ld can 11342 # have problems creating the table of contents. If linking a library 11343 # or program results in "error TOC overflow" add -mminimal-toc to 11344 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11345 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11346 11347 archive_cmds_CXX='' 11348 hardcode_direct_CXX=yes 11349 hardcode_libdir_separator_CXX=':' 11350 link_all_deplibs_CXX=yes 11351 11352 if test "$GXX" = yes; then 11353 case $host_os in aix4.[012]|aix4.[012].*) 11354 # We only want to do this on AIX 4.2 and lower, the check 11355 # below for broken collect2 doesn't work under 4.3+ 11356 collect2name=`${CC} -print-prog-name=collect2` 11357 if test -f "$collect2name" && \ 11358 strings "$collect2name" | grep resolve_lib_name >/dev/null 11359 then 11360 # We have reworked collect2 11361 : 11362 else 11363 # We have old collect2 11364 hardcode_direct_CXX=unsupported 11365 # It fails to find uninstalled libraries when the uninstalled 11366 # path is not listed in the libpath. Setting hardcode_minus_L 11367 # to unsupported forces relinking 11368 hardcode_minus_L_CXX=yes 11369 hardcode_libdir_flag_spec_CXX='-L$libdir' 11370 hardcode_libdir_separator_CXX= 11371 fi 11372 ;; 11373 esac 11374 shared_flag='-shared' 11375 if test "$aix_use_runtimelinking" = yes; then 11376 shared_flag="$shared_flag "'${wl}-G' 11377 fi 11378 else 11379 # not using gcc 11380 if test "$host_cpu" = ia64; then 11381 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11382 # chokes on -Wl,-G. The following line is correct: 11383 shared_flag='-G' 11384 else 11385 if test "$aix_use_runtimelinking" = yes; then 11386 shared_flag='${wl}-G' 11387 else 11388 shared_flag='${wl}-bM:SRE' 11389 fi 11390 fi 11391 fi 11392 11393 # It seems that -bexpall does not export symbols beginning with 11394 # underscore (_), so it is better to generate a list of symbols to export. 11395 always_export_symbols_CXX=yes 11396 if test "$aix_use_runtimelinking" = yes; then 11397 # Warning - without using the other runtime loading flags (-brtl), 11398 # -berok will link without error, but may produce a broken library. 11399 allow_undefined_flag_CXX='-berok' 11400 # Determine the default libpath from the value encoded in an empty executable. 11401 cat >conftest.$ac_ext <<_ACEOF 11402/* confdefs.h. */ 11403_ACEOF 11404cat confdefs.h >>conftest.$ac_ext 11405cat >>conftest.$ac_ext <<_ACEOF 11406/* end confdefs.h. */ 11407 11408int 11409main () 11410{ 11411 11412 ; 11413 return 0; 11414} 11415_ACEOF 11416rm -f conftest.$ac_objext conftest$ac_exeext 11417if { (ac_try="$ac_link" 11418case "(($ac_try" in 11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11420 *) ac_try_echo=$ac_try;; 11421esac 11422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11423 (eval "$ac_link") 2>conftest.er1 11424 ac_status=$? 11425 grep -v '^ *+' conftest.er1 >conftest.err 11426 rm -f conftest.er1 11427 cat conftest.err >&5 11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11429 (exit $ac_status); } && { 11430 test -z "$ac_cxx_werror_flag" || 11431 test ! -s conftest.err 11432 } && test -s conftest$ac_exeext && 11433 $as_test_x conftest$ac_exeext; then 11434 11435lt_aix_libpath_sed=' 11436 /Import File Strings/,/^$/ { 11437 /^0/ { 11438 s/^0 *\(.*\)$/\1/ 11439 p 11440 } 11441 }' 11442aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11443# Check for a 64-bit object if we didn't find anything. 11444if test -z "$aix_libpath"; then 11445 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11446fi 11447else 11448 echo "$as_me: failed program was:" >&5 11449sed 's/^/| /' conftest.$ac_ext >&5 11450 11451 11452fi 11453 11454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11455 conftest$ac_exeext conftest.$ac_ext 11456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11457 11458 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11459 11460 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" 11461 else 11462 if test "$host_cpu" = ia64; then 11463 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11464 allow_undefined_flag_CXX="-z nodefs" 11465 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" 11466 else 11467 # Determine the default libpath from the value encoded in an empty executable. 11468 cat >conftest.$ac_ext <<_ACEOF 11469/* confdefs.h. */ 11470_ACEOF 11471cat confdefs.h >>conftest.$ac_ext 11472cat >>conftest.$ac_ext <<_ACEOF 11473/* end confdefs.h. */ 11474 11475int 11476main () 11477{ 11478 11479 ; 11480 return 0; 11481} 11482_ACEOF 11483rm -f conftest.$ac_objext conftest$ac_exeext 11484if { (ac_try="$ac_link" 11485case "(($ac_try" in 11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11487 *) ac_try_echo=$ac_try;; 11488esac 11489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11490 (eval "$ac_link") 2>conftest.er1 11491 ac_status=$? 11492 grep -v '^ *+' conftest.er1 >conftest.err 11493 rm -f conftest.er1 11494 cat conftest.err >&5 11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11496 (exit $ac_status); } && { 11497 test -z "$ac_cxx_werror_flag" || 11498 test ! -s conftest.err 11499 } && test -s conftest$ac_exeext && 11500 $as_test_x conftest$ac_exeext; then 11501 11502lt_aix_libpath_sed=' 11503 /Import File Strings/,/^$/ { 11504 /^0/ { 11505 s/^0 *\(.*\)$/\1/ 11506 p 11507 } 11508 }' 11509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11510# Check for a 64-bit object if we didn't find anything. 11511if test -z "$aix_libpath"; then 11512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11513fi 11514else 11515 echo "$as_me: failed program was:" >&5 11516sed 's/^/| /' conftest.$ac_ext >&5 11517 11518 11519fi 11520 11521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11522 conftest$ac_exeext conftest.$ac_ext 11523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11524 11525 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11526 # Warning - without using the other run time loading flags, 11527 # -berok will link without error, but may produce a broken library. 11528 no_undefined_flag_CXX=' ${wl}-bernotok' 11529 allow_undefined_flag_CXX=' ${wl}-berok' 11530 # Exported symbols can be pulled into shared objects from archives 11531 whole_archive_flag_spec_CXX='$convenience' 11532 archive_cmds_need_lc_CXX=yes 11533 # This is similar to how AIX traditionally builds its shared libraries. 11534 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' 11535 fi 11536 fi 11537 ;; 11538 11539 beos*) 11540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11541 allow_undefined_flag_CXX=unsupported 11542 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11543 # support --undefined. This deserves some investigation. FIXME 11544 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11545 else 11546 ld_shlibs_CXX=no 11547 fi 11548 ;; 11549 11550 chorus*) 11551 case $cc_basename in 11552 *) 11553 # FIXME: insert proper C++ library support 11554 ld_shlibs_CXX=no 11555 ;; 11556 esac 11557 ;; 11558 11559 cygwin* | mingw* | pw32*) 11560 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11561 # as there is no search path for DLLs. 11562 hardcode_libdir_flag_spec_CXX='-L$libdir' 11563 allow_undefined_flag_CXX=unsupported 11564 always_export_symbols_CXX=no 11565 enable_shared_with_static_runtimes_CXX=yes 11566 11567 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11568 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' 11569 # If the export-symbols file already is a .def file (1st line 11570 # is EXPORTS), use it as is; otherwise, prepend... 11571 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11572 cp $export_symbols $output_objdir/$soname.def; 11573 else 11574 echo EXPORTS > $output_objdir/$soname.def; 11575 cat $export_symbols >> $output_objdir/$soname.def; 11576 fi~ 11577 $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' 11578 else 11579 ld_shlibs_CXX=no 11580 fi 11581 ;; 11582 darwin* | rhapsody*) 11583 case $host_os in 11584 rhapsody* | darwin1.[012]) 11585 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11586 ;; 11587 *) # Darwin 1.3 on 11588 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11589 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11590 else 11591 case ${MACOSX_DEPLOYMENT_TARGET} in 11592 10.[012]) 11593 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11594 ;; 11595 10.*) 11596 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11597 ;; 11598 esac 11599 fi 11600 ;; 11601 esac 11602 archive_cmds_need_lc_CXX=no 11603 hardcode_direct_CXX=no 11604 hardcode_automatic_CXX=yes 11605 hardcode_shlibpath_var_CXX=unsupported 11606 whole_archive_flag_spec_CXX='' 11607 link_all_deplibs_CXX=yes 11608 11609 if test "$GXX" = yes ; then 11610 lt_int_apple_cc_single_mod=no 11611 output_verbose_link_cmd='echo' 11612 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11613 lt_int_apple_cc_single_mod=yes 11614 fi 11615 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11616 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11617 else 11618 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' 11619 fi 11620 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11621 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11622 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11623 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11624 else 11625 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11626 fi 11627 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}' 11628 else 11629 case $cc_basename in 11630 xlc*) 11631 output_verbose_link_cmd='echo' 11632 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' 11633 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11634 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11635 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}' 11636 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}' 11637 ;; 11638 *) 11639 ld_shlibs_CXX=no 11640 ;; 11641 esac 11642 fi 11643 ;; 11644 11645 dgux*) 11646 case $cc_basename in 11647 ec++*) 11648 # FIXME: insert proper C++ library support 11649 ld_shlibs_CXX=no 11650 ;; 11651 ghcx*) 11652 # Green Hills C++ Compiler 11653 # FIXME: insert proper C++ library support 11654 ld_shlibs_CXX=no 11655 ;; 11656 *) 11657 # FIXME: insert proper C++ library support 11658 ld_shlibs_CXX=no 11659 ;; 11660 esac 11661 ;; 11662 freebsd[12]*) 11663 # C++ shared libraries reported to be fairly broken before switch to ELF 11664 ld_shlibs_CXX=no 11665 ;; 11666 freebsd-elf*) 11667 archive_cmds_need_lc_CXX=no 11668 ;; 11669 freebsd* | dragonfly*) 11670 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11671 # conventions 11672 ld_shlibs_CXX=yes 11673 ;; 11674 gnu*) 11675 ;; 11676 hpux9*) 11677 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11678 hardcode_libdir_separator_CXX=: 11679 export_dynamic_flag_spec_CXX='${wl}-E' 11680 hardcode_direct_CXX=yes 11681 hardcode_minus_L_CXX=yes # Not in the search PATH, 11682 # but as the default 11683 # location of the library. 11684 11685 case $cc_basename in 11686 CC*) 11687 # FIXME: insert proper C++ library support 11688 ld_shlibs_CXX=no 11689 ;; 11690 aCC*) 11691 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' 11692 # Commands to make compiler produce verbose output that lists 11693 # what "hidden" libraries, object files and flags are used when 11694 # linking a shared library. 11695 # 11696 # There doesn't appear to be a way to prevent this compiler from 11697 # explicitly linking system object files so we need to strip them 11698 # from the output so that they don't get included in the library 11699 # dependencies. 11700 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' 11701 ;; 11702 *) 11703 if test "$GXX" = yes; then 11704 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' 11705 else 11706 # FIXME: insert proper C++ library support 11707 ld_shlibs_CXX=no 11708 fi 11709 ;; 11710 esac 11711 ;; 11712 hpux10*|hpux11*) 11713 if test $with_gnu_ld = no; then 11714 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11715 hardcode_libdir_separator_CXX=: 11716 11717 case $host_cpu in 11718 hppa*64*|ia64*) ;; 11719 *) 11720 export_dynamic_flag_spec_CXX='${wl}-E' 11721 ;; 11722 esac 11723 fi 11724 case $host_cpu in 11725 hppa*64*|ia64*) 11726 hardcode_direct_CXX=no 11727 hardcode_shlibpath_var_CXX=no 11728 ;; 11729 *) 11730 hardcode_direct_CXX=yes 11731 hardcode_minus_L_CXX=yes # Not in the search PATH, 11732 # but as the default 11733 # location of the library. 11734 ;; 11735 esac 11736 11737 case $cc_basename in 11738 CC*) 11739 # FIXME: insert proper C++ library support 11740 ld_shlibs_CXX=no 11741 ;; 11742 aCC*) 11743 case $host_cpu in 11744 hppa*64*) 11745 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11746 ;; 11747 ia64*) 11748 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11749 ;; 11750 *) 11751 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11752 ;; 11753 esac 11754 # Commands to make compiler produce verbose output that lists 11755 # what "hidden" libraries, object files and flags are used when 11756 # linking a shared library. 11757 # 11758 # There doesn't appear to be a way to prevent this compiler from 11759 # explicitly linking system object files so we need to strip them 11760 # from the output so that they don't get included in the library 11761 # dependencies. 11762 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' 11763 ;; 11764 *) 11765 if test "$GXX" = yes; then 11766 if test $with_gnu_ld = no; then 11767 case $host_cpu in 11768 hppa*64*) 11769 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11770 ;; 11771 ia64*) 11772 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11773 ;; 11774 *) 11775 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' 11776 ;; 11777 esac 11778 fi 11779 else 11780 # FIXME: insert proper C++ library support 11781 ld_shlibs_CXX=no 11782 fi 11783 ;; 11784 esac 11785 ;; 11786 interix[3-9]*) 11787 hardcode_direct_CXX=no 11788 hardcode_shlibpath_var_CXX=no 11789 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11790 export_dynamic_flag_spec_CXX='${wl}-E' 11791 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11792 # Instead, shared libraries are loaded at an image base (0x10000000 by 11793 # default) and relocated if they conflict, which is a slow very memory 11794 # consuming and fragmenting process. To avoid this, we pick a random, 11795 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11796 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11797 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' 11798 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' 11799 ;; 11800 irix5* | irix6*) 11801 case $cc_basename in 11802 CC*) 11803 # SGI C++ 11804 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' 11805 11806 # Archives containing C++ object files must be created using 11807 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11808 # necessary to make sure instantiated templates are included 11809 # in the archive. 11810 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11811 ;; 11812 *) 11813 if test "$GXX" = yes; then 11814 if test "$with_gnu_ld" = no; then 11815 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' 11816 else 11817 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' 11818 fi 11819 fi 11820 link_all_deplibs_CXX=yes 11821 ;; 11822 esac 11823 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11824 hardcode_libdir_separator_CXX=: 11825 ;; 11826 linux* | k*bsd*-gnu) 11827 case $cc_basename in 11828 KCC*) 11829 # Kuck and Associates, Inc. (KAI) C++ Compiler 11830 11831 # KCC will only create a shared library if the output file 11832 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11833 # to its proper name (with version) after linking. 11834 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' 11835 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' 11836 # Commands to make compiler produce verbose output that lists 11837 # what "hidden" libraries, object files and flags are used when 11838 # linking a shared library. 11839 # 11840 # There doesn't appear to be a way to prevent this compiler from 11841 # explicitly linking system object files so we need to strip them 11842 # from the output so that they don't get included in the library 11843 # dependencies. 11844 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' 11845 11846 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11847 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11848 11849 # Archives containing C++ object files must be created using 11850 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11851 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11852 ;; 11853 icpc*) 11854 # Intel C++ 11855 with_gnu_ld=yes 11856 # version 8.0 and above of icpc choke on multiply defined symbols 11857 # if we add $predep_objects and $postdep_objects, however 7.1 and 11858 # earlier do not add the objects themselves. 11859 case `$CC -V 2>&1` in 11860 *"Version 7."*) 11861 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11862 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' 11863 ;; 11864 *) # Version 8.0 or newer 11865 tmp_idyn= 11866 case $host_cpu in 11867 ia64*) tmp_idyn=' -i_dynamic';; 11868 esac 11869 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11870 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' 11871 ;; 11872 esac 11873 archive_cmds_need_lc_CXX=no 11874 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11875 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11876 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11877 ;; 11878 pgCC*) 11879 # Portland Group C++ compiler 11880 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11881 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' 11882 11883 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11884 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11885 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' 11886 ;; 11887 cxx*) 11888 # Compaq C++ 11889 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11890 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' 11891 11892 runpath_var=LD_RUN_PATH 11893 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11894 hardcode_libdir_separator_CXX=: 11895 11896 # Commands to make compiler produce verbose output that lists 11897 # what "hidden" libraries, object files and flags are used when 11898 # linking a shared library. 11899 # 11900 # There doesn't appear to be a way to prevent this compiler from 11901 # explicitly linking system object files so we need to strip them 11902 # from the output so that they don't get included in the library 11903 # dependencies. 11904 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' 11905 ;; 11906 *) 11907 case `$CC -V 2>&1 | sed 5q` in 11908 *Sun\ C*) 11909 # Sun C++ 5.9 11910 no_undefined_flag_CXX=' -zdefs' 11911 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11912 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' 11913 hardcode_libdir_flag_spec_CXX='-R$libdir' 11914 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' 11915 11916 # Not sure whether something based on 11917 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11918 # would be better. 11919 output_verbose_link_cmd='echo' 11920 11921 # Archives containing C++ object files must be created using 11922 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11923 # necessary to make sure instantiated templates are included 11924 # in the archive. 11925 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11926 ;; 11927 esac 11928 ;; 11929 esac 11930 ;; 11931 lynxos*) 11932 # FIXME: insert proper C++ library support 11933 ld_shlibs_CXX=no 11934 ;; 11935 m88k*) 11936 # FIXME: insert proper C++ library support 11937 ld_shlibs_CXX=no 11938 ;; 11939 mvs*) 11940 case $cc_basename in 11941 cxx*) 11942 # FIXME: insert proper C++ library support 11943 ld_shlibs_CXX=no 11944 ;; 11945 *) 11946 # FIXME: insert proper C++ library support 11947 ld_shlibs_CXX=no 11948 ;; 11949 esac 11950 ;; 11951 netbsd*) 11952 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11953 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11954 wlarc= 11955 hardcode_libdir_flag_spec_CXX='-R$libdir' 11956 hardcode_direct_CXX=yes 11957 hardcode_shlibpath_var_CXX=no 11958 fi 11959 # Workaround some broken pre-1.5 toolchains 11960 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11961 ;; 11962 openbsd2*) 11963 # C++ shared libraries are fairly broken 11964 ld_shlibs_CXX=no 11965 ;; 11966 openbsd*) 11967 if test -f /usr/libexec/ld.so; then 11968 hardcode_direct_CXX=yes 11969 hardcode_shlibpath_var_CXX=no 11970 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11971 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11972 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11973 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11974 export_dynamic_flag_spec_CXX='${wl}-E' 11975 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11976 fi 11977 output_verbose_link_cmd='echo' 11978 else 11979 ld_shlibs_CXX=no 11980 fi 11981 ;; 11982 osf3*) 11983 case $cc_basename in 11984 KCC*) 11985 # Kuck and Associates, Inc. (KAI) C++ Compiler 11986 11987 # KCC will only create a shared library if the output file 11988 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11989 # to its proper name (with version) after linking. 11990 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' 11991 11992 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11993 hardcode_libdir_separator_CXX=: 11994 11995 # Archives containing C++ object files must be created using 11996 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11997 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11998 11999 ;; 12000 RCC*) 12001 # Rational C++ 2.4.1 12002 # FIXME: insert proper C++ library support 12003 ld_shlibs_CXX=no 12004 ;; 12005 cxx*) 12006 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12007 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' 12008 12009 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12010 hardcode_libdir_separator_CXX=: 12011 12012 # Commands to make compiler produce verbose output that lists 12013 # what "hidden" libraries, object files and flags are used when 12014 # linking a shared library. 12015 # 12016 # There doesn't appear to be a way to prevent this compiler from 12017 # explicitly linking system object files so we need to strip them 12018 # from the output so that they don't get included in the library 12019 # dependencies. 12020 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' 12021 ;; 12022 *) 12023 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12024 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12025 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' 12026 12027 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12028 hardcode_libdir_separator_CXX=: 12029 12030 # Commands to make compiler produce verbose output that lists 12031 # what "hidden" libraries, object files and flags are used when 12032 # linking a shared library. 12033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12034 12035 else 12036 # FIXME: insert proper C++ library support 12037 ld_shlibs_CXX=no 12038 fi 12039 ;; 12040 esac 12041 ;; 12042 osf4* | osf5*) 12043 case $cc_basename in 12044 KCC*) 12045 # Kuck and Associates, Inc. (KAI) C++ Compiler 12046 12047 # KCC will only create a shared library if the output file 12048 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12049 # to its proper name (with version) after linking. 12050 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' 12051 12052 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12053 hardcode_libdir_separator_CXX=: 12054 12055 # Archives containing C++ object files must be created using 12056 # the KAI C++ compiler. 12057 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12058 ;; 12059 RCC*) 12060 # Rational C++ 2.4.1 12061 # FIXME: insert proper C++ library support 12062 ld_shlibs_CXX=no 12063 ;; 12064 cxx*) 12065 allow_undefined_flag_CXX=' -expect_unresolved \*' 12066 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' 12067 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12068 echo "-hidden">> $lib.exp~ 12069 $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~ 12070 $rm $lib.exp' 12071 12072 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12073 hardcode_libdir_separator_CXX=: 12074 12075 # Commands to make compiler produce verbose output that lists 12076 # what "hidden" libraries, object files and flags are used when 12077 # linking a shared library. 12078 # 12079 # There doesn't appear to be a way to prevent this compiler from 12080 # explicitly linking system object files so we need to strip them 12081 # from the output so that they don't get included in the library 12082 # dependencies. 12083 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' 12084 ;; 12085 *) 12086 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12087 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12088 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' 12089 12090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12091 hardcode_libdir_separator_CXX=: 12092 12093 # Commands to make compiler produce verbose output that lists 12094 # what "hidden" libraries, object files and flags are used when 12095 # linking a shared library. 12096 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12097 12098 else 12099 # FIXME: insert proper C++ library support 12100 ld_shlibs_CXX=no 12101 fi 12102 ;; 12103 esac 12104 ;; 12105 psos*) 12106 # FIXME: insert proper C++ library support 12107 ld_shlibs_CXX=no 12108 ;; 12109 sunos4*) 12110 case $cc_basename in 12111 CC*) 12112 # Sun C++ 4.x 12113 # FIXME: insert proper C++ library support 12114 ld_shlibs_CXX=no 12115 ;; 12116 lcc*) 12117 # Lucid 12118 # FIXME: insert proper C++ library support 12119 ld_shlibs_CXX=no 12120 ;; 12121 *) 12122 # FIXME: insert proper C++ library support 12123 ld_shlibs_CXX=no 12124 ;; 12125 esac 12126 ;; 12127 solaris*) 12128 case $cc_basename in 12129 CC*) 12130 # Sun C++ 4.2, 5.x and Centerline C++ 12131 archive_cmds_need_lc_CXX=yes 12132 no_undefined_flag_CXX=' -zdefs' 12133 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12134 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12135 $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' 12136 12137 hardcode_libdir_flag_spec_CXX='-R$libdir' 12138 hardcode_shlibpath_var_CXX=no 12139 case $host_os in 12140 solaris2.[0-5] | solaris2.[0-5].*) ;; 12141 *) 12142 # The compiler driver will combine and reorder linker options, 12143 # but understands `-z linker_flag'. 12144 # Supported since Solaris 2.6 (maybe 2.5.1?) 12145 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12146 ;; 12147 esac 12148 link_all_deplibs_CXX=yes 12149 12150 output_verbose_link_cmd='echo' 12151 12152 # Archives containing C++ object files must be created using 12153 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12154 # necessary to make sure instantiated templates are included 12155 # in the archive. 12156 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12157 ;; 12158 gcx*) 12159 # Green Hills C++ Compiler 12160 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12161 12162 # The C++ compiler must be used to create the archive. 12163 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12164 ;; 12165 *) 12166 # GNU C++ compiler with Solaris linker 12167 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12168 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12169 if $CC --version | grep -v '^2\.7' > /dev/null; then 12170 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12171 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12172 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12173 12174 # Commands to make compiler produce verbose output that lists 12175 # what "hidden" libraries, object files and flags are used when 12176 # linking a shared library. 12177 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12178 else 12179 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12180 # platform. 12181 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12182 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12183 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12184 12185 # Commands to make compiler produce verbose output that lists 12186 # what "hidden" libraries, object files and flags are used when 12187 # linking a shared library. 12188 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12189 fi 12190 12191 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12192 case $host_os in 12193 solaris2.[0-5] | solaris2.[0-5].*) ;; 12194 *) 12195 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12196 ;; 12197 esac 12198 fi 12199 ;; 12200 esac 12201 ;; 12202 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12203 no_undefined_flag_CXX='${wl}-z,text' 12204 archive_cmds_need_lc_CXX=no 12205 hardcode_shlibpath_var_CXX=no 12206 runpath_var='LD_RUN_PATH' 12207 12208 case $cc_basename in 12209 CC*) 12210 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12211 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12212 ;; 12213 *) 12214 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12215 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12216 ;; 12217 esac 12218 ;; 12219 sysv5* | sco3.2v5* | sco5v6*) 12220 # Note: We can NOT use -z defs as we might desire, because we do not 12221 # link with -lc, and that would cause any symbols used from libc to 12222 # always be unresolved, which means just about no library would 12223 # ever link correctly. If we're not using GNU ld we use -z text 12224 # though, which does catch some bad symbols but isn't as heavy-handed 12225 # as -z defs. 12226 # For security reasons, it is highly recommended that you always 12227 # use absolute paths for naming shared libraries, and exclude the 12228 # DT_RUNPATH tag from executables and libraries. But doing so 12229 # requires that you compile everything twice, which is a pain. 12230 # So that behaviour is only enabled if SCOABSPATH is set to a 12231 # non-empty value in the environment. Most likely only useful for 12232 # creating official distributions of packages. 12233 # This is a hack until libtool officially supports absolute path 12234 # names for shared libraries. 12235 no_undefined_flag_CXX='${wl}-z,text' 12236 allow_undefined_flag_CXX='${wl}-z,nodefs' 12237 archive_cmds_need_lc_CXX=no 12238 hardcode_shlibpath_var_CXX=no 12239 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12240 hardcode_libdir_separator_CXX=':' 12241 link_all_deplibs_CXX=yes 12242 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12243 runpath_var='LD_RUN_PATH' 12244 12245 case $cc_basename in 12246 CC*) 12247 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12248 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12249 ;; 12250 *) 12251 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12252 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12253 ;; 12254 esac 12255 ;; 12256 tandem*) 12257 case $cc_basename in 12258 NCC*) 12259 # NonStop-UX NCC 3.20 12260 # FIXME: insert proper C++ library support 12261 ld_shlibs_CXX=no 12262 ;; 12263 *) 12264 # FIXME: insert proper C++ library support 12265 ld_shlibs_CXX=no 12266 ;; 12267 esac 12268 ;; 12269 vxworks*) 12270 # FIXME: insert proper C++ library support 12271 ld_shlibs_CXX=no 12272 ;; 12273 *) 12274 # FIXME: insert proper C++ library support 12275 ld_shlibs_CXX=no 12276 ;; 12277esac 12278{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12279echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12280test "$ld_shlibs_CXX" = no && can_build_shared=no 12281 12282GCC_CXX="$GXX" 12283LD_CXX="$LD" 12284 12285## CAVEAT EMPTOR: 12286## There is no encapsulation within the following macros, do not change 12287## the running order or otherwise move them around unless you know exactly 12288## what you are doing... 12289 12290cat > conftest.$ac_ext <<EOF 12291class Foo 12292{ 12293public: 12294 Foo (void) { a = 0; } 12295private: 12296 int a; 12297}; 12298EOF 12299 12300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12301 (eval $ac_compile) 2>&5 12302 ac_status=$? 12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12304 (exit $ac_status); }; then 12305 # Parse the compiler output and extract the necessary 12306 # objects, libraries and library flags. 12307 12308 # Sentinel used to keep track of whether or not we are before 12309 # the conftest object file. 12310 pre_test_object_deps_done=no 12311 12312 # The `*' in the case matches for architectures that use `case' in 12313 # $output_verbose_cmd can trigger glob expansion during the loop 12314 # eval without this substitution. 12315 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12316 12317 for p in `eval $output_verbose_link_cmd`; do 12318 case $p in 12319 12320 -L* | -R* | -l*) 12321 # Some compilers place space between "-{L,R}" and the path. 12322 # Remove the space. 12323 if test $p = "-L" \ 12324 || test $p = "-R"; then 12325 prev=$p 12326 continue 12327 else 12328 prev= 12329 fi 12330 12331 if test "$pre_test_object_deps_done" = no; then 12332 case $p in 12333 -L* | -R*) 12334 # Internal compiler library paths should come after those 12335 # provided the user. The postdeps already come after the 12336 # user supplied libs so there is no need to process them. 12337 if test -z "$compiler_lib_search_path_CXX"; then 12338 compiler_lib_search_path_CXX="${prev}${p}" 12339 else 12340 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12341 fi 12342 ;; 12343 # The "-l" case would never come before the object being 12344 # linked, so don't bother handling this case. 12345 esac 12346 else 12347 if test -z "$postdeps_CXX"; then 12348 postdeps_CXX="${prev}${p}" 12349 else 12350 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12351 fi 12352 fi 12353 ;; 12354 12355 *.$objext) 12356 # This assumes that the test object file only shows up 12357 # once in the compiler output. 12358 if test "$p" = "conftest.$objext"; then 12359 pre_test_object_deps_done=yes 12360 continue 12361 fi 12362 12363 if test "$pre_test_object_deps_done" = no; then 12364 if test -z "$predep_objects_CXX"; then 12365 predep_objects_CXX="$p" 12366 else 12367 predep_objects_CXX="$predep_objects_CXX $p" 12368 fi 12369 else 12370 if test -z "$postdep_objects_CXX"; then 12371 postdep_objects_CXX="$p" 12372 else 12373 postdep_objects_CXX="$postdep_objects_CXX $p" 12374 fi 12375 fi 12376 ;; 12377 12378 *) ;; # Ignore the rest. 12379 12380 esac 12381 done 12382 12383 # Clean up. 12384 rm -f a.out a.exe 12385else 12386 echo "libtool.m4: error: problem compiling CXX test program" 12387fi 12388 12389$rm -f confest.$objext 12390 12391# PORTME: override above test on systems where it is broken 12392case $host_os in 12393interix[3-9]*) 12394 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12395 # hack all around it, let's just trust "g++" to DTRT. 12396 predep_objects_CXX= 12397 postdep_objects_CXX= 12398 postdeps_CXX= 12399 ;; 12400 12401linux*) 12402 case `$CC -V 2>&1 | sed 5q` in 12403 *Sun\ C*) 12404 # Sun C++ 5.9 12405 # 12406 # The more standards-conforming stlport4 library is 12407 # incompatible with the Cstd library. Avoid specifying 12408 # it if it's in CXXFLAGS. Ignore libCrun as 12409 # -library=stlport4 depends on it. 12410 case " $CXX $CXXFLAGS " in 12411 *" -library=stlport4 "*) 12412 solaris_use_stlport4=yes 12413 ;; 12414 esac 12415 if test "$solaris_use_stlport4" != yes; then 12416 postdeps_CXX='-library=Cstd -library=Crun' 12417 fi 12418 ;; 12419 esac 12420 ;; 12421 12422solaris*) 12423 case $cc_basename in 12424 CC*) 12425 # The more standards-conforming stlport4 library is 12426 # incompatible with the Cstd library. Avoid specifying 12427 # it if it's in CXXFLAGS. Ignore libCrun as 12428 # -library=stlport4 depends on it. 12429 case " $CXX $CXXFLAGS " in 12430 *" -library=stlport4 "*) 12431 solaris_use_stlport4=yes 12432 ;; 12433 esac 12434 12435 # Adding this requires a known-good setup of shared libraries for 12436 # Sun compiler versions before 5.6, else PIC objects from an old 12437 # archive will be linked into the output, leading to subtle bugs. 12438 if test "$solaris_use_stlport4" != yes; then 12439 postdeps_CXX='-library=Cstd -library=Crun' 12440 fi 12441 ;; 12442 esac 12443 ;; 12444esac 12445 12446 12447case " $postdeps_CXX " in 12448*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12449esac 12450 12451lt_prog_compiler_wl_CXX= 12452lt_prog_compiler_pic_CXX= 12453lt_prog_compiler_static_CXX= 12454 12455{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12456echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12457 12458 # C++ specific cases for pic, static, wl, etc. 12459 if test "$GXX" = yes; then 12460 lt_prog_compiler_wl_CXX='-Wl,' 12461 lt_prog_compiler_static_CXX='-static' 12462 12463 case $host_os in 12464 aix*) 12465 # All AIX code is PIC. 12466 if test "$host_cpu" = ia64; then 12467 # AIX 5 now supports IA64 processor 12468 lt_prog_compiler_static_CXX='-Bstatic' 12469 fi 12470 ;; 12471 amigaos*) 12472 # FIXME: we need at least 68020 code to build shared libraries, but 12473 # adding the `-m68020' flag to GCC prevents building anything better, 12474 # like `-m68040'. 12475 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12476 ;; 12477 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12478 # PIC is the default for these OSes. 12479 ;; 12480 mingw* | cygwin* | os2* | pw32*) 12481 # This hack is so that the source file can tell whether it is being 12482 # built for inclusion in a dll (and should export symbols for example). 12483 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12484 # (--disable-auto-import) libraries 12485 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12486 ;; 12487 darwin* | rhapsody*) 12488 # PIC is the default on this platform 12489 # Common symbols not allowed in MH_DYLIB files 12490 lt_prog_compiler_pic_CXX='-fno-common' 12491 ;; 12492 *djgpp*) 12493 # DJGPP does not support shared libraries at all 12494 lt_prog_compiler_pic_CXX= 12495 ;; 12496 interix[3-9]*) 12497 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12498 # Instead, we relocate shared libraries at runtime. 12499 ;; 12500 sysv4*MP*) 12501 if test -d /usr/nec; then 12502 lt_prog_compiler_pic_CXX=-Kconform_pic 12503 fi 12504 ;; 12505 hpux*) 12506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12507 # not for PA HP-UX. 12508 case $host_cpu in 12509 hppa*64*|ia64*) 12510 ;; 12511 *) 12512 lt_prog_compiler_pic_CXX='-fPIC' 12513 ;; 12514 esac 12515 ;; 12516 *) 12517 lt_prog_compiler_pic_CXX='-fPIC' 12518 ;; 12519 esac 12520 else 12521 case $host_os in 12522 aix4* | aix5*) 12523 # All AIX code is PIC. 12524 if test "$host_cpu" = ia64; then 12525 # AIX 5 now supports IA64 processor 12526 lt_prog_compiler_static_CXX='-Bstatic' 12527 else 12528 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12529 fi 12530 ;; 12531 chorus*) 12532 case $cc_basename in 12533 cxch68*) 12534 # Green Hills C++ Compiler 12535 # _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" 12536 ;; 12537 esac 12538 ;; 12539 darwin*) 12540 # PIC is the default on this platform 12541 # Common symbols not allowed in MH_DYLIB files 12542 case $cc_basename in 12543 xlc*) 12544 lt_prog_compiler_pic_CXX='-qnocommon' 12545 lt_prog_compiler_wl_CXX='-Wl,' 12546 ;; 12547 esac 12548 ;; 12549 dgux*) 12550 case $cc_basename in 12551 ec++*) 12552 lt_prog_compiler_pic_CXX='-KPIC' 12553 ;; 12554 ghcx*) 12555 # Green Hills C++ Compiler 12556 lt_prog_compiler_pic_CXX='-pic' 12557 ;; 12558 *) 12559 ;; 12560 esac 12561 ;; 12562 freebsd* | dragonfly*) 12563 # FreeBSD uses GNU C++ 12564 ;; 12565 hpux9* | hpux10* | hpux11*) 12566 case $cc_basename in 12567 CC*) 12568 lt_prog_compiler_wl_CXX='-Wl,' 12569 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12570 if test "$host_cpu" != ia64; then 12571 lt_prog_compiler_pic_CXX='+Z' 12572 fi 12573 ;; 12574 aCC*) 12575 lt_prog_compiler_wl_CXX='-Wl,' 12576 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12577 case $host_cpu in 12578 hppa*64*|ia64*) 12579 # +Z the default 12580 ;; 12581 *) 12582 lt_prog_compiler_pic_CXX='+Z' 12583 ;; 12584 esac 12585 ;; 12586 *) 12587 ;; 12588 esac 12589 ;; 12590 interix*) 12591 # This is c89, which is MS Visual C++ (no shared libs) 12592 # Anyone wants to do a port? 12593 ;; 12594 irix5* | irix6* | nonstopux*) 12595 case $cc_basename in 12596 CC*) 12597 lt_prog_compiler_wl_CXX='-Wl,' 12598 lt_prog_compiler_static_CXX='-non_shared' 12599 # CC pic flag -KPIC is the default. 12600 ;; 12601 *) 12602 ;; 12603 esac 12604 ;; 12605 linux* | k*bsd*-gnu) 12606 case $cc_basename in 12607 KCC*) 12608 # KAI C++ Compiler 12609 lt_prog_compiler_wl_CXX='--backend -Wl,' 12610 lt_prog_compiler_pic_CXX='-fPIC' 12611 ;; 12612 icpc* | ecpc*) 12613 # Intel C++ 12614 lt_prog_compiler_wl_CXX='-Wl,' 12615 lt_prog_compiler_pic_CXX='-KPIC' 12616 lt_prog_compiler_static_CXX='-static' 12617 ;; 12618 pgCC*) 12619 # Portland Group C++ compiler. 12620 lt_prog_compiler_wl_CXX='-Wl,' 12621 lt_prog_compiler_pic_CXX='-fpic' 12622 lt_prog_compiler_static_CXX='-Bstatic' 12623 ;; 12624 cxx*) 12625 # Compaq C++ 12626 # Make sure the PIC flag is empty. It appears that all Alpha 12627 # Linux and Compaq Tru64 Unix objects are PIC. 12628 lt_prog_compiler_pic_CXX= 12629 lt_prog_compiler_static_CXX='-non_shared' 12630 ;; 12631 *) 12632 case `$CC -V 2>&1 | sed 5q` in 12633 *Sun\ C*) 12634 # Sun C++ 5.9 12635 lt_prog_compiler_pic_CXX='-KPIC' 12636 lt_prog_compiler_static_CXX='-Bstatic' 12637 lt_prog_compiler_wl_CXX='-Qoption ld ' 12638 ;; 12639 esac 12640 ;; 12641 esac 12642 ;; 12643 lynxos*) 12644 ;; 12645 m88k*) 12646 ;; 12647 mvs*) 12648 case $cc_basename in 12649 cxx*) 12650 lt_prog_compiler_pic_CXX='-W c,exportall' 12651 ;; 12652 *) 12653 ;; 12654 esac 12655 ;; 12656 netbsd*) 12657 ;; 12658 osf3* | osf4* | osf5*) 12659 case $cc_basename in 12660 KCC*) 12661 lt_prog_compiler_wl_CXX='--backend -Wl,' 12662 ;; 12663 RCC*) 12664 # Rational C++ 2.4.1 12665 lt_prog_compiler_pic_CXX='-pic' 12666 ;; 12667 cxx*) 12668 # Digital/Compaq C++ 12669 lt_prog_compiler_wl_CXX='-Wl,' 12670 # Make sure the PIC flag is empty. It appears that all Alpha 12671 # Linux and Compaq Tru64 Unix objects are PIC. 12672 lt_prog_compiler_pic_CXX= 12673 lt_prog_compiler_static_CXX='-non_shared' 12674 ;; 12675 *) 12676 ;; 12677 esac 12678 ;; 12679 psos*) 12680 ;; 12681 solaris*) 12682 case $cc_basename in 12683 CC*) 12684 # Sun C++ 4.2, 5.x and Centerline C++ 12685 lt_prog_compiler_pic_CXX='-KPIC' 12686 lt_prog_compiler_static_CXX='-Bstatic' 12687 lt_prog_compiler_wl_CXX='-Qoption ld ' 12688 ;; 12689 gcx*) 12690 # Green Hills C++ Compiler 12691 lt_prog_compiler_pic_CXX='-PIC' 12692 ;; 12693 *) 12694 ;; 12695 esac 12696 ;; 12697 sunos4*) 12698 case $cc_basename in 12699 CC*) 12700 # Sun C++ 4.x 12701 lt_prog_compiler_pic_CXX='-pic' 12702 lt_prog_compiler_static_CXX='-Bstatic' 12703 ;; 12704 lcc*) 12705 # Lucid 12706 lt_prog_compiler_pic_CXX='-pic' 12707 ;; 12708 *) 12709 ;; 12710 esac 12711 ;; 12712 tandem*) 12713 case $cc_basename in 12714 NCC*) 12715 # NonStop-UX NCC 3.20 12716 lt_prog_compiler_pic_CXX='-KPIC' 12717 ;; 12718 *) 12719 ;; 12720 esac 12721 ;; 12722 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12723 case $cc_basename in 12724 CC*) 12725 lt_prog_compiler_wl_CXX='-Wl,' 12726 lt_prog_compiler_pic_CXX='-KPIC' 12727 lt_prog_compiler_static_CXX='-Bstatic' 12728 ;; 12729 esac 12730 ;; 12731 vxworks*) 12732 ;; 12733 *) 12734 lt_prog_compiler_can_build_shared_CXX=no 12735 ;; 12736 esac 12737 fi 12738 12739{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12740echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12741 12742# 12743# Check to make sure the PIC flag actually works. 12744# 12745if test -n "$lt_prog_compiler_pic_CXX"; then 12746 12747{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12748echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12749if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12750 echo $ECHO_N "(cached) $ECHO_C" >&6 12751else 12752 lt_prog_compiler_pic_works_CXX=no 12753 ac_outfile=conftest.$ac_objext 12754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12755 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12756 # Insert the option either (1) after the last *FLAGS variable, or 12757 # (2) before a word containing "conftest.", or (3) at the end. 12758 # Note that $ac_compile itself does not contain backslashes and begins 12759 # with a dollar sign (not a hyphen), so the echo should work correctly. 12760 # The option is referenced via a variable to avoid confusing sed. 12761 lt_compile=`echo "$ac_compile" | $SED \ 12762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12764 -e 's:$: $lt_compiler_flag:'` 12765 (eval echo "\"\$as_me:12765: $lt_compile\"" >&5) 12766 (eval "$lt_compile" 2>conftest.err) 12767 ac_status=$? 12768 cat conftest.err >&5 12769 echo "$as_me:12769: \$? = $ac_status" >&5 12770 if (exit $ac_status) && test -s "$ac_outfile"; then 12771 # The compiler can only warn and ignore the option if not recognized 12772 # So say no if there are warnings other than the usual output. 12773 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12776 lt_prog_compiler_pic_works_CXX=yes 12777 fi 12778 fi 12779 $rm conftest* 12780 12781fi 12782{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12783echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12784 12785if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12786 case $lt_prog_compiler_pic_CXX in 12787 "" | " "*) ;; 12788 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12789 esac 12790else 12791 lt_prog_compiler_pic_CXX= 12792 lt_prog_compiler_can_build_shared_CXX=no 12793fi 12794 12795fi 12796case $host_os in 12797 # For platforms which do not support PIC, -DPIC is meaningless: 12798 *djgpp*) 12799 lt_prog_compiler_pic_CXX= 12800 ;; 12801 *) 12802 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12803 ;; 12804esac 12805 12806# 12807# Check to make sure the static flag actually works. 12808# 12809wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12810{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12811echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12812if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12813 echo $ECHO_N "(cached) $ECHO_C" >&6 12814else 12815 lt_prog_compiler_static_works_CXX=no 12816 save_LDFLAGS="$LDFLAGS" 12817 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12818 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12819 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12820 # The linker can only warn and ignore the option if not recognized 12821 # So say no if there are warnings 12822 if test -s conftest.err; then 12823 # Append any errors to the config.log. 12824 cat conftest.err 1>&5 12825 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12827 if diff conftest.exp conftest.er2 >/dev/null; then 12828 lt_prog_compiler_static_works_CXX=yes 12829 fi 12830 else 12831 lt_prog_compiler_static_works_CXX=yes 12832 fi 12833 fi 12834 $rm conftest* 12835 LDFLAGS="$save_LDFLAGS" 12836 12837fi 12838{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12839echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12840 12841if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12842 : 12843else 12844 lt_prog_compiler_static_CXX= 12845fi 12846 12847 12848{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12849echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12850if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12851 echo $ECHO_N "(cached) $ECHO_C" >&6 12852else 12853 lt_cv_prog_compiler_c_o_CXX=no 12854 $rm -r conftest 2>/dev/null 12855 mkdir conftest 12856 cd conftest 12857 mkdir out 12858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12859 12860 lt_compiler_flag="-o out/conftest2.$ac_objext" 12861 # Insert the option either (1) after the last *FLAGS variable, or 12862 # (2) before a word containing "conftest.", or (3) at the end. 12863 # Note that $ac_compile itself does not contain backslashes and begins 12864 # with a dollar sign (not a hyphen), so the echo should work correctly. 12865 lt_compile=`echo "$ac_compile" | $SED \ 12866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12868 -e 's:$: $lt_compiler_flag:'` 12869 (eval echo "\"\$as_me:12869: $lt_compile\"" >&5) 12870 (eval "$lt_compile" 2>out/conftest.err) 12871 ac_status=$? 12872 cat out/conftest.err >&5 12873 echo "$as_me:12873: \$? = $ac_status" >&5 12874 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12875 then 12876 # The compiler can only warn and ignore the option if not recognized 12877 # So say no if there are warnings 12878 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12881 lt_cv_prog_compiler_c_o_CXX=yes 12882 fi 12883 fi 12884 chmod u+w . 2>&5 12885 $rm conftest* 12886 # SGI C++ compiler will create directory out/ii_files/ for 12887 # template instantiation 12888 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12889 $rm out/* && rmdir out 12890 cd .. 12891 rmdir conftest 12892 $rm conftest* 12893 12894fi 12895{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12896echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12897 12898 12899hard_links="nottested" 12900if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12901 # do not overwrite the value of need_locks provided by the user 12902 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12903echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12904 hard_links=yes 12905 $rm conftest* 12906 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12907 touch conftest.a 12908 ln conftest.a conftest.b 2>&5 || hard_links=no 12909 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12910 { echo "$as_me:$LINENO: result: $hard_links" >&5 12911echo "${ECHO_T}$hard_links" >&6; } 12912 if test "$hard_links" = no; then 12913 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12914echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12915 need_locks=warn 12916 fi 12917else 12918 need_locks=no 12919fi 12920 12921{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12922echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12923 12924 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12925 case $host_os in 12926 aix4* | aix5*) 12927 # If we're using GNU nm, then we don't want the "-C" option. 12928 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12929 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12930 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' 12931 else 12932 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' 12933 fi 12934 ;; 12935 pw32*) 12936 export_symbols_cmds_CXX="$ltdll_cmds" 12937 ;; 12938 cygwin* | mingw*) 12939 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' 12940 ;; 12941 *) 12942 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12943 ;; 12944 esac 12945 12946{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12947echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12948test "$ld_shlibs_CXX" = no && can_build_shared=no 12949 12950# 12951# Do we need to explicitly link libc? 12952# 12953case "x$archive_cmds_need_lc_CXX" in 12954x|xyes) 12955 # Assume -lc should be added 12956 archive_cmds_need_lc_CXX=yes 12957 12958 if test "$enable_shared" = yes && test "$GCC" = yes; then 12959 case $archive_cmds_CXX in 12960 *'~'*) 12961 # FIXME: we may have to deal with multi-command sequences. 12962 ;; 12963 '$CC '*) 12964 # Test whether the compiler implicitly links with -lc since on some 12965 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12966 # to ld, don't add -lc before -lgcc. 12967 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12968echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12969 $rm conftest* 12970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12971 12972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12973 (eval $ac_compile) 2>&5 12974 ac_status=$? 12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12976 (exit $ac_status); } 2>conftest.err; then 12977 soname=conftest 12978 lib=conftest 12979 libobjs=conftest.$ac_objext 12980 deplibs= 12981 wl=$lt_prog_compiler_wl_CXX 12982 pic_flag=$lt_prog_compiler_pic_CXX 12983 compiler_flags=-v 12984 linker_flags=-v 12985 verstring= 12986 output_objdir=. 12987 libname=conftest 12988 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12989 allow_undefined_flag_CXX= 12990 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12991 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12992 ac_status=$? 12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12994 (exit $ac_status); } 12995 then 12996 archive_cmds_need_lc_CXX=no 12997 else 12998 archive_cmds_need_lc_CXX=yes 12999 fi 13000 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13001 else 13002 cat conftest.err 1>&5 13003 fi 13004 $rm conftest* 13005 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13006echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 13007 ;; 13008 esac 13009 fi 13010 ;; 13011esac 13012 13013{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13014echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13015library_names_spec= 13016libname_spec='lib$name' 13017soname_spec= 13018shrext_cmds=".so" 13019postinstall_cmds= 13020postuninstall_cmds= 13021finish_cmds= 13022finish_eval= 13023shlibpath_var= 13024shlibpath_overrides_runpath=unknown 13025version_type=none 13026dynamic_linker="$host_os ld.so" 13027sys_lib_dlsearch_path_spec="/lib /usr/lib" 13028 13029need_lib_prefix=unknown 13030hardcode_into_libs=no 13031 13032# when you set need_version to no, make sure it does not cause -set_version 13033# flags to be left without arguments 13034need_version=unknown 13035 13036case $host_os in 13037aix3*) 13038 version_type=linux 13039 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13040 shlibpath_var=LIBPATH 13041 13042 # AIX 3 has no versioning support, so we append a major version to the name. 13043 soname_spec='${libname}${release}${shared_ext}$major' 13044 ;; 13045 13046aix4* | aix5*) 13047 version_type=linux 13048 need_lib_prefix=no 13049 need_version=no 13050 hardcode_into_libs=yes 13051 if test "$host_cpu" = ia64; then 13052 # AIX 5 supports IA64 13053 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13054 shlibpath_var=LD_LIBRARY_PATH 13055 else 13056 # With GCC up to 2.95.x, collect2 would create an import file 13057 # for dependence libraries. The import file would start with 13058 # the line `#! .'. This would cause the generated library to 13059 # depend on `.', always an invalid library. This was fixed in 13060 # development snapshots of GCC prior to 3.0. 13061 case $host_os in 13062 aix4 | aix4.[01] | aix4.[01].*) 13063 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13064 echo ' yes ' 13065 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13066 : 13067 else 13068 can_build_shared=no 13069 fi 13070 ;; 13071 esac 13072 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13073 # soname into executable. Probably we can add versioning support to 13074 # collect2, so additional links can be useful in future. 13075 if test "$aix_use_runtimelinking" = yes; then 13076 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13077 # instead of lib<name>.a to let people know that these are not 13078 # typical AIX shared libraries. 13079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13080 else 13081 # We preserve .a as extension for shared libraries through AIX4.2 13082 # and later when we are not doing run time linking. 13083 library_names_spec='${libname}${release}.a $libname.a' 13084 soname_spec='${libname}${release}${shared_ext}$major' 13085 fi 13086 shlibpath_var=LIBPATH 13087 fi 13088 ;; 13089 13090amigaos*) 13091 library_names_spec='$libname.ixlibrary $libname.a' 13092 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13093 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' 13094 ;; 13095 13096beos*) 13097 library_names_spec='${libname}${shared_ext}' 13098 dynamic_linker="$host_os ld.so" 13099 shlibpath_var=LIBRARY_PATH 13100 ;; 13101 13102bsdi[45]*) 13103 version_type=linux 13104 need_version=no 13105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13106 soname_spec='${libname}${release}${shared_ext}$major' 13107 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13108 shlibpath_var=LD_LIBRARY_PATH 13109 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13110 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13111 # the default ld.so.conf also contains /usr/contrib/lib and 13112 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13113 # libtool to hard-code these into programs 13114 ;; 13115 13116cygwin* | mingw* | pw32*) 13117 version_type=windows 13118 shrext_cmds=".dll" 13119 need_version=no 13120 need_lib_prefix=no 13121 13122 case $GCC,$host_os in 13123 yes,cygwin* | yes,mingw* | yes,pw32*) 13124 library_names_spec='$libname.dll.a' 13125 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13126 postinstall_cmds='base_file=`basename \${file}`~ 13127 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13128 dldir=$destdir/`dirname \$dlpath`~ 13129 test -d \$dldir || mkdir -p \$dldir~ 13130 $install_prog $dir/$dlname \$dldir/$dlname~ 13131 chmod a+x \$dldir/$dlname' 13132 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13133 dlpath=$dir/\$dldll~ 13134 $rm \$dlpath' 13135 shlibpath_overrides_runpath=yes 13136 13137 case $host_os in 13138 cygwin*) 13139 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13140 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13141 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13142 ;; 13143 mingw*) 13144 # MinGW DLLs use traditional 'lib' prefix 13145 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13146 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13147 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13148 # It is most probably a Windows format PATH printed by 13149 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13150 # path with ; separators, and with drive letters. We can handle the 13151 # drive letters (cygwin fileutils understands them), so leave them, 13152 # especially as we might pass files found there to a mingw objdump, 13153 # which wouldn't understand a cygwinified path. Ahh. 13154 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13155 else 13156 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13157 fi 13158 ;; 13159 pw32*) 13160 # pw32 DLLs use 'pw' prefix rather than 'lib' 13161 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13162 ;; 13163 esac 13164 ;; 13165 13166 *) 13167 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13168 ;; 13169 esac 13170 dynamic_linker='Win32 ld.exe' 13171 # FIXME: first we should search . and the directory the executable is in 13172 shlibpath_var=PATH 13173 ;; 13174 13175darwin* | rhapsody*) 13176 dynamic_linker="$host_os dyld" 13177 version_type=darwin 13178 need_lib_prefix=no 13179 need_version=no 13180 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13181 soname_spec='${libname}${release}${major}$shared_ext' 13182 shlibpath_overrides_runpath=yes 13183 shlibpath_var=DYLD_LIBRARY_PATH 13184 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13185 13186 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13187 ;; 13188 13189dgux*) 13190 version_type=linux 13191 need_lib_prefix=no 13192 need_version=no 13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13194 soname_spec='${libname}${release}${shared_ext}$major' 13195 shlibpath_var=LD_LIBRARY_PATH 13196 ;; 13197 13198freebsd1*) 13199 dynamic_linker=no 13200 ;; 13201 13202freebsd* | dragonfly*) 13203 # DragonFly does not have aout. When/if they implement a new 13204 # versioning mechanism, adjust this. 13205 if test -x /usr/bin/objformat; then 13206 objformat=`/usr/bin/objformat` 13207 else 13208 case $host_os in 13209 freebsd[123]*) objformat=aout ;; 13210 *) objformat=elf ;; 13211 esac 13212 fi 13213 version_type=freebsd-$objformat 13214 case $version_type in 13215 freebsd-elf*) 13216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13217 need_version=no 13218 need_lib_prefix=no 13219 ;; 13220 freebsd-*) 13221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13222 need_version=yes 13223 ;; 13224 esac 13225 shlibpath_var=LD_LIBRARY_PATH 13226 case $host_os in 13227 freebsd2*) 13228 shlibpath_overrides_runpath=yes 13229 ;; 13230 freebsd3.[01]* | freebsdelf3.[01]*) 13231 shlibpath_overrides_runpath=yes 13232 hardcode_into_libs=yes 13233 ;; 13234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13236 shlibpath_overrides_runpath=no 13237 hardcode_into_libs=yes 13238 ;; 13239 *) # from 4.6 on, and DragonFly 13240 shlibpath_overrides_runpath=yes 13241 hardcode_into_libs=yes 13242 ;; 13243 esac 13244 ;; 13245 13246gnu*) 13247 version_type=linux 13248 need_lib_prefix=no 13249 need_version=no 13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13251 soname_spec='${libname}${release}${shared_ext}$major' 13252 shlibpath_var=LD_LIBRARY_PATH 13253 hardcode_into_libs=yes 13254 ;; 13255 13256hpux9* | hpux10* | hpux11*) 13257 # Give a soname corresponding to the major version so that dld.sl refuses to 13258 # link against other versions. 13259 version_type=sunos 13260 need_lib_prefix=no 13261 need_version=no 13262 case $host_cpu in 13263 ia64*) 13264 shrext_cmds='.so' 13265 hardcode_into_libs=yes 13266 dynamic_linker="$host_os dld.so" 13267 shlibpath_var=LD_LIBRARY_PATH 13268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13270 soname_spec='${libname}${release}${shared_ext}$major' 13271 if test "X$HPUX_IA64_MODE" = X32; then 13272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13273 else 13274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13275 fi 13276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13277 ;; 13278 hppa*64*) 13279 shrext_cmds='.sl' 13280 hardcode_into_libs=yes 13281 dynamic_linker="$host_os dld.sl" 13282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13285 soname_spec='${libname}${release}${shared_ext}$major' 13286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13288 ;; 13289 *) 13290 shrext_cmds='.sl' 13291 dynamic_linker="$host_os dld.sl" 13292 shlibpath_var=SHLIB_PATH 13293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13295 soname_spec='${libname}${release}${shared_ext}$major' 13296 ;; 13297 esac 13298 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13299 postinstall_cmds='chmod 555 $lib' 13300 ;; 13301 13302interix[3-9]*) 13303 version_type=linux 13304 need_lib_prefix=no 13305 need_version=no 13306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13307 soname_spec='${libname}${release}${shared_ext}$major' 13308 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13309 shlibpath_var=LD_LIBRARY_PATH 13310 shlibpath_overrides_runpath=no 13311 hardcode_into_libs=yes 13312 ;; 13313 13314irix5* | irix6* | nonstopux*) 13315 case $host_os in 13316 nonstopux*) version_type=nonstopux ;; 13317 *) 13318 if test "$lt_cv_prog_gnu_ld" = yes; then 13319 version_type=linux 13320 else 13321 version_type=irix 13322 fi ;; 13323 esac 13324 need_lib_prefix=no 13325 need_version=no 13326 soname_spec='${libname}${release}${shared_ext}$major' 13327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13328 case $host_os in 13329 irix5* | nonstopux*) 13330 libsuff= shlibsuff= 13331 ;; 13332 *) 13333 case $LD in # libtool.m4 will add one of these switches to LD 13334 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13335 libsuff= shlibsuff= libmagic=32-bit;; 13336 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13337 libsuff=32 shlibsuff=N32 libmagic=N32;; 13338 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13339 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13340 *) libsuff= shlibsuff= libmagic=never-match;; 13341 esac 13342 ;; 13343 esac 13344 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13345 shlibpath_overrides_runpath=no 13346 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13347 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13348 hardcode_into_libs=yes 13349 ;; 13350 13351# No shared lib support for Linux oldld, aout, or coff. 13352linux*oldld* | linux*aout* | linux*coff*) 13353 dynamic_linker=no 13354 ;; 13355 13356# This must be Linux ELF. 13357linux* | k*bsd*-gnu) 13358 version_type=linux 13359 need_lib_prefix=no 13360 need_version=no 13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13362 soname_spec='${libname}${release}${shared_ext}$major' 13363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13364 shlibpath_var=LD_LIBRARY_PATH 13365 shlibpath_overrides_runpath=no 13366 # This implies no fast_install, which is unacceptable. 13367 # Some rework will be needed to allow for fast_install 13368 # before this can be enabled. 13369 hardcode_into_libs=yes 13370 13371 # Append ld.so.conf contents to the search path 13372 if test -f /etc/ld.so.conf; then 13373 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' ' '` 13374 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13375 fi 13376 13377 # We used to test for /lib/ld.so.1 and disable shared libraries on 13378 # powerpc, because MkLinux only supported shared libraries with the 13379 # GNU dynamic linker. Since this was broken with cross compilers, 13380 # most powerpc-linux boxes support dynamic linking these days and 13381 # people can always --disable-shared, the test was removed, and we 13382 # assume the GNU/Linux dynamic linker is in use. 13383 dynamic_linker='GNU/Linux ld.so' 13384 ;; 13385 13386netbsd*) 13387 version_type=sunos 13388 need_lib_prefix=no 13389 need_version=no 13390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13393 dynamic_linker='NetBSD (a.out) ld.so' 13394 else 13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13396 soname_spec='${libname}${release}${shared_ext}$major' 13397 dynamic_linker='NetBSD ld.elf_so' 13398 fi 13399 shlibpath_var=LD_LIBRARY_PATH 13400 shlibpath_overrides_runpath=yes 13401 hardcode_into_libs=yes 13402 ;; 13403 13404newsos6) 13405 version_type=linux 13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13407 shlibpath_var=LD_LIBRARY_PATH 13408 shlibpath_overrides_runpath=yes 13409 ;; 13410 13411nto-qnx*) 13412 version_type=linux 13413 need_lib_prefix=no 13414 need_version=no 13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13416 soname_spec='${libname}${release}${shared_ext}$major' 13417 shlibpath_var=LD_LIBRARY_PATH 13418 shlibpath_overrides_runpath=yes 13419 ;; 13420 13421openbsd*) 13422 version_type=sunos 13423 sys_lib_dlsearch_path_spec="/usr/lib" 13424 need_lib_prefix=no 13425 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13426 case $host_os in 13427 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13428 *) need_version=no ;; 13429 esac 13430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13432 shlibpath_var=LD_LIBRARY_PATH 13433 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13434 case $host_os in 13435 openbsd2.[89] | openbsd2.[89].*) 13436 shlibpath_overrides_runpath=no 13437 ;; 13438 *) 13439 shlibpath_overrides_runpath=yes 13440 ;; 13441 esac 13442 else 13443 shlibpath_overrides_runpath=yes 13444 fi 13445 ;; 13446 13447os2*) 13448 libname_spec='$name' 13449 shrext_cmds=".dll" 13450 need_lib_prefix=no 13451 library_names_spec='$libname${shared_ext} $libname.a' 13452 dynamic_linker='OS/2 ld.exe' 13453 shlibpath_var=LIBPATH 13454 ;; 13455 13456osf3* | osf4* | osf5*) 13457 version_type=osf 13458 need_lib_prefix=no 13459 need_version=no 13460 soname_spec='${libname}${release}${shared_ext}$major' 13461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13462 shlibpath_var=LD_LIBRARY_PATH 13463 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13464 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13465 ;; 13466 13467rdos*) 13468 dynamic_linker=no 13469 ;; 13470 13471solaris*) 13472 version_type=linux 13473 need_lib_prefix=no 13474 need_version=no 13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13476 soname_spec='${libname}${release}${shared_ext}$major' 13477 shlibpath_var=LD_LIBRARY_PATH 13478 shlibpath_overrides_runpath=yes 13479 hardcode_into_libs=yes 13480 # ldd complains unless libraries are executable 13481 postinstall_cmds='chmod +x $lib' 13482 ;; 13483 13484sunos4*) 13485 version_type=sunos 13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13487 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13488 shlibpath_var=LD_LIBRARY_PATH 13489 shlibpath_overrides_runpath=yes 13490 if test "$with_gnu_ld" = yes; then 13491 need_lib_prefix=no 13492 fi 13493 need_version=yes 13494 ;; 13495 13496sysv4 | sysv4.3*) 13497 version_type=linux 13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13499 soname_spec='${libname}${release}${shared_ext}$major' 13500 shlibpath_var=LD_LIBRARY_PATH 13501 case $host_vendor in 13502 sni) 13503 shlibpath_overrides_runpath=no 13504 need_lib_prefix=no 13505 export_dynamic_flag_spec='${wl}-Blargedynsym' 13506 runpath_var=LD_RUN_PATH 13507 ;; 13508 siemens) 13509 need_lib_prefix=no 13510 ;; 13511 motorola) 13512 need_lib_prefix=no 13513 need_version=no 13514 shlibpath_overrides_runpath=no 13515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13516 ;; 13517 esac 13518 ;; 13519 13520sysv4*MP*) 13521 if test -d /usr/nec ;then 13522 version_type=linux 13523 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13524 soname_spec='$libname${shared_ext}.$major' 13525 shlibpath_var=LD_LIBRARY_PATH 13526 fi 13527 ;; 13528 13529sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13530 version_type=freebsd-elf 13531 need_lib_prefix=no 13532 need_version=no 13533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13534 soname_spec='${libname}${release}${shared_ext}$major' 13535 shlibpath_var=LD_LIBRARY_PATH 13536 hardcode_into_libs=yes 13537 if test "$with_gnu_ld" = yes; then 13538 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13539 shlibpath_overrides_runpath=no 13540 else 13541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13542 shlibpath_overrides_runpath=yes 13543 case $host_os in 13544 sco3.2v5*) 13545 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13546 ;; 13547 esac 13548 fi 13549 sys_lib_dlsearch_path_spec='/usr/lib' 13550 ;; 13551 13552uts4*) 13553 version_type=linux 13554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13555 soname_spec='${libname}${release}${shared_ext}$major' 13556 shlibpath_var=LD_LIBRARY_PATH 13557 ;; 13558 13559*) 13560 dynamic_linker=no 13561 ;; 13562esac 13563{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13564echo "${ECHO_T}$dynamic_linker" >&6; } 13565test "$dynamic_linker" = no && can_build_shared=no 13566 13567variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13568if test "$GCC" = yes; then 13569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13570fi 13571 13572{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13573echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13574hardcode_action_CXX= 13575if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13576 test -n "$runpath_var_CXX" || \ 13577 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13578 13579 # We can hardcode non-existant directories. 13580 if test "$hardcode_direct_CXX" != no && 13581 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13582 # have to relink, otherwise we might link with an installed library 13583 # when we should be linking with a yet-to-be-installed one 13584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13585 test "$hardcode_minus_L_CXX" != no; then 13586 # Linking always hardcodes the temporary library directory. 13587 hardcode_action_CXX=relink 13588 else 13589 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13590 hardcode_action_CXX=immediate 13591 fi 13592else 13593 # We cannot hardcode anything, or else we can only hardcode existing 13594 # directories. 13595 hardcode_action_CXX=unsupported 13596fi 13597{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13598echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13599 13600if test "$hardcode_action_CXX" = relink; then 13601 # Fast installation is not supported 13602 enable_fast_install=no 13603elif test "$shlibpath_overrides_runpath" = yes || 13604 test "$enable_shared" = no; then 13605 # Fast installation is not necessary 13606 enable_fast_install=needless 13607fi 13608 13609 13610# The else clause should only fire when bootstrapping the 13611# libtool distribution, otherwise you forgot to ship ltmain.sh 13612# with your package, and you will get complaints that there are 13613# no rules to generate ltmain.sh. 13614if test -f "$ltmain"; then 13615 # See if we are running on zsh, and set the options which allow our commands through 13616 # without removal of \ escapes. 13617 if test -n "${ZSH_VERSION+set}" ; then 13618 setopt NO_GLOB_SUBST 13619 fi 13620 # Now quote all the things that may contain metacharacters while being 13621 # careful not to overquote the AC_SUBSTed values. We take copies of the 13622 # variables and quote the copies for generation of the libtool script. 13623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13624 SED SHELL STRIP \ 13625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13627 deplibs_check_method reload_flag reload_cmds need_locks \ 13628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13629 lt_cv_sys_global_symbol_to_c_name_address \ 13630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13631 old_postinstall_cmds old_postuninstall_cmds \ 13632 compiler_CXX \ 13633 CC_CXX \ 13634 LD_CXX \ 13635 lt_prog_compiler_wl_CXX \ 13636 lt_prog_compiler_pic_CXX \ 13637 lt_prog_compiler_static_CXX \ 13638 lt_prog_compiler_no_builtin_flag_CXX \ 13639 export_dynamic_flag_spec_CXX \ 13640 thread_safe_flag_spec_CXX \ 13641 whole_archive_flag_spec_CXX \ 13642 enable_shared_with_static_runtimes_CXX \ 13643 old_archive_cmds_CXX \ 13644 old_archive_from_new_cmds_CXX \ 13645 predep_objects_CXX \ 13646 postdep_objects_CXX \ 13647 predeps_CXX \ 13648 postdeps_CXX \ 13649 compiler_lib_search_path_CXX \ 13650 archive_cmds_CXX \ 13651 archive_expsym_cmds_CXX \ 13652 postinstall_cmds_CXX \ 13653 postuninstall_cmds_CXX \ 13654 old_archive_from_expsyms_cmds_CXX \ 13655 allow_undefined_flag_CXX \ 13656 no_undefined_flag_CXX \ 13657 export_symbols_cmds_CXX \ 13658 hardcode_libdir_flag_spec_CXX \ 13659 hardcode_libdir_flag_spec_ld_CXX \ 13660 hardcode_libdir_separator_CXX \ 13661 hardcode_automatic_CXX \ 13662 module_cmds_CXX \ 13663 module_expsym_cmds_CXX \ 13664 lt_cv_prog_compiler_c_o_CXX \ 13665 fix_srcfile_path_CXX \ 13666 exclude_expsyms_CXX \ 13667 include_expsyms_CXX; do 13668 13669 case $var in 13670 old_archive_cmds_CXX | \ 13671 old_archive_from_new_cmds_CXX | \ 13672 archive_cmds_CXX | \ 13673 archive_expsym_cmds_CXX | \ 13674 module_cmds_CXX | \ 13675 module_expsym_cmds_CXX | \ 13676 old_archive_from_expsyms_cmds_CXX | \ 13677 export_symbols_cmds_CXX | \ 13678 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13679 postinstall_cmds | postuninstall_cmds | \ 13680 old_postinstall_cmds | old_postuninstall_cmds | \ 13681 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13682 # Double-quote double-evaled strings. 13683 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13684 ;; 13685 *) 13686 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13687 ;; 13688 esac 13689 done 13690 13691 case $lt_echo in 13692 *'\$0 --fallback-echo"') 13693 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13694 ;; 13695 esac 13696 13697cfgfile="$ofile" 13698 13699 cat <<__EOF__ >> "$cfgfile" 13700# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13701 13702# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13703 13704# Shell to use when invoking shell scripts. 13705SHELL=$lt_SHELL 13706 13707# Whether or not to build shared libraries. 13708build_libtool_libs=$enable_shared 13709 13710# Whether or not to build static libraries. 13711build_old_libs=$enable_static 13712 13713# Whether or not to add -lc for building shared libraries. 13714build_libtool_need_lc=$archive_cmds_need_lc_CXX 13715 13716# Whether or not to disallow shared libs when runtime libs are static 13717allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13718 13719# Whether or not to optimize for fast installation. 13720fast_install=$enable_fast_install 13721 13722# The host system. 13723host_alias=$host_alias 13724host=$host 13725host_os=$host_os 13726 13727# The build system. 13728build_alias=$build_alias 13729build=$build 13730build_os=$build_os 13731 13732# An echo program that does not interpret backslashes. 13733echo=$lt_echo 13734 13735# The archiver. 13736AR=$lt_AR 13737AR_FLAGS=$lt_AR_FLAGS 13738 13739# A C compiler. 13740LTCC=$lt_LTCC 13741 13742# LTCC compiler flags. 13743LTCFLAGS=$lt_LTCFLAGS 13744 13745# A language-specific compiler. 13746CC=$lt_compiler_CXX 13747 13748# Is the compiler the GNU C compiler? 13749with_gcc=$GCC_CXX 13750 13751# An ERE matcher. 13752EGREP=$lt_EGREP 13753 13754# The linker used to build libraries. 13755LD=$lt_LD_CXX 13756 13757# Whether we need hard or soft links. 13758LN_S=$lt_LN_S 13759 13760# A BSD-compatible nm program. 13761NM=$lt_NM 13762 13763# A symbol stripping program 13764STRIP=$lt_STRIP 13765 13766# Used to examine libraries when file_magic_cmd begins "file" 13767MAGIC_CMD=$MAGIC_CMD 13768 13769# Used on cygwin: DLL creation program. 13770DLLTOOL="$DLLTOOL" 13771 13772# Used on cygwin: object dumper. 13773OBJDUMP="$OBJDUMP" 13774 13775# Used on cygwin: assembler. 13776AS="$AS" 13777 13778# The name of the directory that contains temporary libtool files. 13779objdir=$objdir 13780 13781# How to create reloadable object files. 13782reload_flag=$lt_reload_flag 13783reload_cmds=$lt_reload_cmds 13784 13785# How to pass a linker flag through the compiler. 13786wl=$lt_lt_prog_compiler_wl_CXX 13787 13788# Object file suffix (normally "o"). 13789objext="$ac_objext" 13790 13791# Old archive suffix (normally "a"). 13792libext="$libext" 13793 13794# Shared library suffix (normally ".so"). 13795shrext_cmds='$shrext_cmds' 13796 13797# Executable file suffix (normally ""). 13798exeext="$exeext" 13799 13800# Additional compiler flags for building library objects. 13801pic_flag=$lt_lt_prog_compiler_pic_CXX 13802pic_mode=$pic_mode 13803 13804# What is the maximum length of a command? 13805max_cmd_len=$lt_cv_sys_max_cmd_len 13806 13807# Does compiler simultaneously support -c and -o options? 13808compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13809 13810# Must we lock files when doing compilation? 13811need_locks=$lt_need_locks 13812 13813# Do we need the lib prefix for modules? 13814need_lib_prefix=$need_lib_prefix 13815 13816# Do we need a version for libraries? 13817need_version=$need_version 13818 13819# Whether dlopen is supported. 13820dlopen_support=$enable_dlopen 13821 13822# Whether dlopen of programs is supported. 13823dlopen_self=$enable_dlopen_self 13824 13825# Whether dlopen of statically linked programs is supported. 13826dlopen_self_static=$enable_dlopen_self_static 13827 13828# Compiler flag to prevent dynamic linking. 13829link_static_flag=$lt_lt_prog_compiler_static_CXX 13830 13831# Compiler flag to turn off builtin functions. 13832no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13833 13834# Compiler flag to allow reflexive dlopens. 13835export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13836 13837# Compiler flag to generate shared objects directly from archives. 13838whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13839 13840# Compiler flag to generate thread-safe objects. 13841thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13842 13843# Library versioning type. 13844version_type=$version_type 13845 13846# Format of library name prefix. 13847libname_spec=$lt_libname_spec 13848 13849# List of archive names. First name is the real one, the rest are links. 13850# The last name is the one that the linker finds with -lNAME. 13851library_names_spec=$lt_library_names_spec 13852 13853# The coded name of the library, if different from the real name. 13854soname_spec=$lt_soname_spec 13855 13856# Commands used to build and install an old-style archive. 13857RANLIB=$lt_RANLIB 13858old_archive_cmds=$lt_old_archive_cmds_CXX 13859old_postinstall_cmds=$lt_old_postinstall_cmds 13860old_postuninstall_cmds=$lt_old_postuninstall_cmds 13861 13862# Create an old-style archive from a shared archive. 13863old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13864 13865# Create a temporary old-style archive to link instead of a shared archive. 13866old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13867 13868# Commands used to build and install a shared archive. 13869archive_cmds=$lt_archive_cmds_CXX 13870archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13871postinstall_cmds=$lt_postinstall_cmds 13872postuninstall_cmds=$lt_postuninstall_cmds 13873 13874# Commands used to build a loadable module (assumed same as above if empty) 13875module_cmds=$lt_module_cmds_CXX 13876module_expsym_cmds=$lt_module_expsym_cmds_CXX 13877 13878# Commands to strip libraries. 13879old_striplib=$lt_old_striplib 13880striplib=$lt_striplib 13881 13882# Dependencies to place before the objects being linked to create a 13883# shared library. 13884predep_objects=$lt_predep_objects_CXX 13885 13886# Dependencies to place after the objects being linked to create a 13887# shared library. 13888postdep_objects=$lt_postdep_objects_CXX 13889 13890# Dependencies to place before the objects being linked to create a 13891# shared library. 13892predeps=$lt_predeps_CXX 13893 13894# Dependencies to place after the objects being linked to create a 13895# shared library. 13896postdeps=$lt_postdeps_CXX 13897 13898# The library search path used internally by the compiler when linking 13899# a shared library. 13900compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13901 13902# Method to check whether dependent libraries are shared objects. 13903deplibs_check_method=$lt_deplibs_check_method 13904 13905# Command to use when deplibs_check_method == file_magic. 13906file_magic_cmd=$lt_file_magic_cmd 13907 13908# Flag that allows shared libraries with undefined symbols to be built. 13909allow_undefined_flag=$lt_allow_undefined_flag_CXX 13910 13911# Flag that forces no undefined symbols. 13912no_undefined_flag=$lt_no_undefined_flag_CXX 13913 13914# Commands used to finish a libtool library installation in a directory. 13915finish_cmds=$lt_finish_cmds 13916 13917# Same as above, but a single script fragment to be evaled but not shown. 13918finish_eval=$lt_finish_eval 13919 13920# Take the output of nm and produce a listing of raw symbols and C names. 13921global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13922 13923# Transform the output of nm in a proper C declaration 13924global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13925 13926# Transform the output of nm in a C name address pair 13927global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13928 13929# This is the shared library runtime path variable. 13930runpath_var=$runpath_var 13931 13932# This is the shared library path variable. 13933shlibpath_var=$shlibpath_var 13934 13935# Is shlibpath searched before the hard-coded library search path? 13936shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13937 13938# How to hardcode a shared library path into an executable. 13939hardcode_action=$hardcode_action_CXX 13940 13941# Whether we should hardcode library paths into libraries. 13942hardcode_into_libs=$hardcode_into_libs 13943 13944# Flag to hardcode \$libdir into a binary during linking. 13945# This must work even if \$libdir does not exist. 13946hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13947 13948# If ld is used when linking, flag to hardcode \$libdir into 13949# a binary during linking. This must work even if \$libdir does 13950# not exist. 13951hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13952 13953# Whether we need a single -rpath flag with a separated argument. 13954hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13955 13956# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13957# resulting binary. 13958hardcode_direct=$hardcode_direct_CXX 13959 13960# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13961# resulting binary. 13962hardcode_minus_L=$hardcode_minus_L_CXX 13963 13964# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13965# the resulting binary. 13966hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13967 13968# Set to yes if building a shared library automatically hardcodes DIR into the library 13969# and all subsequent libraries and executables linked against it. 13970hardcode_automatic=$hardcode_automatic_CXX 13971 13972# Variables whose values should be saved in libtool wrapper scripts and 13973# restored at relink time. 13974variables_saved_for_relink="$variables_saved_for_relink" 13975 13976# Whether libtool must link a program against all its dependency libraries. 13977link_all_deplibs=$link_all_deplibs_CXX 13978 13979# Compile-time system search path for libraries 13980sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13981 13982# Run-time system search path for libraries 13983sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13984 13985# Fix the shell variable \$srcfile for the compiler. 13986fix_srcfile_path=$lt_fix_srcfile_path 13987 13988# Set to yes if exported symbols are required. 13989always_export_symbols=$always_export_symbols_CXX 13990 13991# The commands to list exported symbols. 13992export_symbols_cmds=$lt_export_symbols_cmds_CXX 13993 13994# The commands to extract the exported symbol list from a shared archive. 13995extract_expsyms_cmds=$lt_extract_expsyms_cmds 13996 13997# Symbols that should not be listed in the preloaded symbols. 13998exclude_expsyms=$lt_exclude_expsyms_CXX 13999 14000# Symbols that must always be exported. 14001include_expsyms=$lt_include_expsyms_CXX 14002 14003# ### END LIBTOOL TAG CONFIG: $tagname 14004 14005__EOF__ 14006 14007 14008else 14009 # If there is no Makefile yet, we rely on a make rule to execute 14010 # `config.status --recheck' to rerun these tests and create the 14011 # libtool script then. 14012 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14013 if test -f "$ltmain_in"; then 14014 test -f Makefile && make "$ltmain" 14015 fi 14016fi 14017 14018 14019ac_ext=c 14020ac_cpp='$CPP $CPPFLAGS' 14021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14023ac_compiler_gnu=$ac_cv_c_compiler_gnu 14024 14025CC=$lt_save_CC 14026LDCXX=$LD 14027LD=$lt_save_LD 14028GCC=$lt_save_GCC 14029with_gnu_ldcxx=$with_gnu_ld 14030with_gnu_ld=$lt_save_with_gnu_ld 14031lt_cv_path_LDCXX=$lt_cv_path_LD 14032lt_cv_path_LD=$lt_save_path_LD 14033lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14034lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14035 14036 else 14037 tagname="" 14038 fi 14039 ;; 14040 14041 F77) 14042 if test -n "$F77" && test "X$F77" != "Xno"; then 14043 14044ac_ext=f 14045ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14046ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14047ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14048 14049 14050archive_cmds_need_lc_F77=no 14051allow_undefined_flag_F77= 14052always_export_symbols_F77=no 14053archive_expsym_cmds_F77= 14054export_dynamic_flag_spec_F77= 14055hardcode_direct_F77=no 14056hardcode_libdir_flag_spec_F77= 14057hardcode_libdir_flag_spec_ld_F77= 14058hardcode_libdir_separator_F77= 14059hardcode_minus_L_F77=no 14060hardcode_automatic_F77=no 14061module_cmds_F77= 14062module_expsym_cmds_F77= 14063link_all_deplibs_F77=unknown 14064old_archive_cmds_F77=$old_archive_cmds 14065no_undefined_flag_F77= 14066whole_archive_flag_spec_F77= 14067enable_shared_with_static_runtimes_F77=no 14068 14069# Source file extension for f77 test sources. 14070ac_ext=f 14071 14072# Object file extension for compiled f77 test sources. 14073objext=o 14074objext_F77=$objext 14075 14076# Code to be used in simple compile tests 14077lt_simple_compile_test_code="\ 14078 subroutine t 14079 return 14080 end 14081" 14082 14083# Code to be used in simple link tests 14084lt_simple_link_test_code="\ 14085 program t 14086 end 14087" 14088 14089# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14090 14091# If no C compiler was specified, use CC. 14092LTCC=${LTCC-"$CC"} 14093 14094# If no C compiler flags were specified, use CFLAGS. 14095LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14096 14097# Allow CC to be a program name with arguments. 14098compiler=$CC 14099 14100 14101# save warnings/boilerplate of simple test code 14102ac_outfile=conftest.$ac_objext 14103echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14104eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14105_lt_compiler_boilerplate=`cat conftest.err` 14106$rm conftest* 14107 14108ac_outfile=conftest.$ac_objext 14109echo "$lt_simple_link_test_code" >conftest.$ac_ext 14110eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14111_lt_linker_boilerplate=`cat conftest.err` 14112$rm conftest* 14113 14114 14115# Allow CC to be a program name with arguments. 14116lt_save_CC="$CC" 14117CC=${F77-"f77"} 14118compiler=$CC 14119compiler_F77=$CC 14120for cc_temp in $compiler""; do 14121 case $cc_temp in 14122 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14123 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14124 \-*) ;; 14125 *) break;; 14126 esac 14127done 14128cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14129 14130 14131{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14132echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14133{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14134echo "${ECHO_T}$can_build_shared" >&6; } 14135 14136{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14137echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14138test "$can_build_shared" = "no" && enable_shared=no 14139 14140# On AIX, shared libraries and static libraries use the same namespace, and 14141# are all built from PIC. 14142case $host_os in 14143aix3*) 14144 test "$enable_shared" = yes && enable_static=no 14145 if test -n "$RANLIB"; then 14146 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14147 postinstall_cmds='$RANLIB $lib' 14148 fi 14149 ;; 14150aix4* | aix5*) 14151 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14152 test "$enable_shared" = yes && enable_static=no 14153 fi 14154 ;; 14155esac 14156{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14157echo "${ECHO_T}$enable_shared" >&6; } 14158 14159{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14160echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14161# Make sure either enable_shared or enable_static is yes. 14162test "$enable_shared" = yes || enable_static=yes 14163{ echo "$as_me:$LINENO: result: $enable_static" >&5 14164echo "${ECHO_T}$enable_static" >&6; } 14165 14166GCC_F77="$G77" 14167LD_F77="$LD" 14168 14169lt_prog_compiler_wl_F77= 14170lt_prog_compiler_pic_F77= 14171lt_prog_compiler_static_F77= 14172 14173{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14174echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14175 14176 if test "$GCC" = yes; then 14177 lt_prog_compiler_wl_F77='-Wl,' 14178 lt_prog_compiler_static_F77='-static' 14179 14180 case $host_os in 14181 aix*) 14182 # All AIX code is PIC. 14183 if test "$host_cpu" = ia64; then 14184 # AIX 5 now supports IA64 processor 14185 lt_prog_compiler_static_F77='-Bstatic' 14186 fi 14187 ;; 14188 14189 amigaos*) 14190 # FIXME: we need at least 68020 code to build shared libraries, but 14191 # adding the `-m68020' flag to GCC prevents building anything better, 14192 # like `-m68040'. 14193 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14194 ;; 14195 14196 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14197 # PIC is the default for these OSes. 14198 ;; 14199 14200 mingw* | cygwin* | pw32* | os2*) 14201 # This hack is so that the source file can tell whether it is being 14202 # built for inclusion in a dll (and should export symbols for example). 14203 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14204 # (--disable-auto-import) libraries 14205 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14206 ;; 14207 14208 darwin* | rhapsody*) 14209 # PIC is the default on this platform 14210 # Common symbols not allowed in MH_DYLIB files 14211 lt_prog_compiler_pic_F77='-fno-common' 14212 ;; 14213 14214 interix[3-9]*) 14215 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14216 # Instead, we relocate shared libraries at runtime. 14217 ;; 14218 14219 msdosdjgpp*) 14220 # Just because we use GCC doesn't mean we suddenly get shared libraries 14221 # on systems that don't support them. 14222 lt_prog_compiler_can_build_shared_F77=no 14223 enable_shared=no 14224 ;; 14225 14226 sysv4*MP*) 14227 if test -d /usr/nec; then 14228 lt_prog_compiler_pic_F77=-Kconform_pic 14229 fi 14230 ;; 14231 14232 hpux*) 14233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14234 # not for PA HP-UX. 14235 case $host_cpu in 14236 hppa*64*|ia64*) 14237 # +Z the default 14238 ;; 14239 *) 14240 lt_prog_compiler_pic_F77='-fPIC' 14241 ;; 14242 esac 14243 ;; 14244 14245 *) 14246 lt_prog_compiler_pic_F77='-fPIC' 14247 ;; 14248 esac 14249 else 14250 # PORTME Check for flag to pass linker flags through the system compiler. 14251 case $host_os in 14252 aix*) 14253 lt_prog_compiler_wl_F77='-Wl,' 14254 if test "$host_cpu" = ia64; then 14255 # AIX 5 now supports IA64 processor 14256 lt_prog_compiler_static_F77='-Bstatic' 14257 else 14258 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14259 fi 14260 ;; 14261 darwin*) 14262 # PIC is the default on this platform 14263 # Common symbols not allowed in MH_DYLIB files 14264 case $cc_basename in 14265 xlc*) 14266 lt_prog_compiler_pic_F77='-qnocommon' 14267 lt_prog_compiler_wl_F77='-Wl,' 14268 ;; 14269 esac 14270 ;; 14271 14272 mingw* | cygwin* | pw32* | os2*) 14273 # This hack is so that the source file can tell whether it is being 14274 # built for inclusion in a dll (and should export symbols for example). 14275 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14276 ;; 14277 14278 hpux9* | hpux10* | hpux11*) 14279 lt_prog_compiler_wl_F77='-Wl,' 14280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14281 # not for PA HP-UX. 14282 case $host_cpu in 14283 hppa*64*|ia64*) 14284 # +Z the default 14285 ;; 14286 *) 14287 lt_prog_compiler_pic_F77='+Z' 14288 ;; 14289 esac 14290 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14291 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14292 ;; 14293 14294 irix5* | irix6* | nonstopux*) 14295 lt_prog_compiler_wl_F77='-Wl,' 14296 # PIC (with -KPIC) is the default. 14297 lt_prog_compiler_static_F77='-non_shared' 14298 ;; 14299 14300 newsos6) 14301 lt_prog_compiler_pic_F77='-KPIC' 14302 lt_prog_compiler_static_F77='-Bstatic' 14303 ;; 14304 14305 linux* | k*bsd*-gnu) 14306 case $cc_basename in 14307 icc* | ecc*) 14308 lt_prog_compiler_wl_F77='-Wl,' 14309 lt_prog_compiler_pic_F77='-KPIC' 14310 lt_prog_compiler_static_F77='-static' 14311 ;; 14312 pgcc* | pgf77* | pgf90* | pgf95*) 14313 # Portland Group compilers (*not* the Pentium gcc compiler, 14314 # which looks to be a dead project) 14315 lt_prog_compiler_wl_F77='-Wl,' 14316 lt_prog_compiler_pic_F77='-fpic' 14317 lt_prog_compiler_static_F77='-Bstatic' 14318 ;; 14319 ccc*) 14320 lt_prog_compiler_wl_F77='-Wl,' 14321 # All Alpha code is PIC. 14322 lt_prog_compiler_static_F77='-non_shared' 14323 ;; 14324 como) 14325 lt_prog_compiler_wl_F77='-lopt=' 14326 ;; 14327 *) 14328 case `$CC -V 2>&1 | sed 5q` in 14329 *Sun\ C*) 14330 # Sun C 5.9 14331 lt_prog_compiler_pic_F77='-KPIC' 14332 lt_prog_compiler_static_F77='-Bstatic' 14333 lt_prog_compiler_wl_F77='-Wl,' 14334 ;; 14335 *Sun\ F*) 14336 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14337 lt_prog_compiler_pic_F77='-KPIC' 14338 lt_prog_compiler_static_F77='-Bstatic' 14339 lt_prog_compiler_wl_F77='' 14340 ;; 14341 esac 14342 ;; 14343 esac 14344 ;; 14345 14346 osf3* | osf4* | osf5*) 14347 lt_prog_compiler_wl_F77='-Wl,' 14348 # All OSF/1 code is PIC. 14349 lt_prog_compiler_static_F77='-non_shared' 14350 ;; 14351 14352 rdos*) 14353 lt_prog_compiler_static_F77='-non_shared' 14354 ;; 14355 14356 solaris*) 14357 lt_prog_compiler_pic_F77='-KPIC' 14358 lt_prog_compiler_static_F77='-Bstatic' 14359 case $cc_basename in 14360 f77* | f90* | f95*) 14361 lt_prog_compiler_wl_F77='-Qoption ld ';; 14362 *) 14363 lt_prog_compiler_wl_F77='-Wl,';; 14364 esac 14365 ;; 14366 14367 sunos4*) 14368 lt_prog_compiler_wl_F77='-Qoption ld ' 14369 lt_prog_compiler_pic_F77='-PIC' 14370 lt_prog_compiler_static_F77='-Bstatic' 14371 ;; 14372 14373 sysv4 | sysv4.2uw2* | sysv4.3*) 14374 lt_prog_compiler_wl_F77='-Wl,' 14375 lt_prog_compiler_pic_F77='-KPIC' 14376 lt_prog_compiler_static_F77='-Bstatic' 14377 ;; 14378 14379 sysv4*MP*) 14380 if test -d /usr/nec ;then 14381 lt_prog_compiler_pic_F77='-Kconform_pic' 14382 lt_prog_compiler_static_F77='-Bstatic' 14383 fi 14384 ;; 14385 14386 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14387 lt_prog_compiler_wl_F77='-Wl,' 14388 lt_prog_compiler_pic_F77='-KPIC' 14389 lt_prog_compiler_static_F77='-Bstatic' 14390 ;; 14391 14392 unicos*) 14393 lt_prog_compiler_wl_F77='-Wl,' 14394 lt_prog_compiler_can_build_shared_F77=no 14395 ;; 14396 14397 uts4*) 14398 lt_prog_compiler_pic_F77='-pic' 14399 lt_prog_compiler_static_F77='-Bstatic' 14400 ;; 14401 14402 *) 14403 lt_prog_compiler_can_build_shared_F77=no 14404 ;; 14405 esac 14406 fi 14407 14408{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14409echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14410 14411# 14412# Check to make sure the PIC flag actually works. 14413# 14414if test -n "$lt_prog_compiler_pic_F77"; then 14415 14416{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14417echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14418if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14419 echo $ECHO_N "(cached) $ECHO_C" >&6 14420else 14421 lt_prog_compiler_pic_works_F77=no 14422 ac_outfile=conftest.$ac_objext 14423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14424 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14425 # Insert the option either (1) after the last *FLAGS variable, or 14426 # (2) before a word containing "conftest.", or (3) at the end. 14427 # Note that $ac_compile itself does not contain backslashes and begins 14428 # with a dollar sign (not a hyphen), so the echo should work correctly. 14429 # The option is referenced via a variable to avoid confusing sed. 14430 lt_compile=`echo "$ac_compile" | $SED \ 14431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14433 -e 's:$: $lt_compiler_flag:'` 14434 (eval echo "\"\$as_me:14434: $lt_compile\"" >&5) 14435 (eval "$lt_compile" 2>conftest.err) 14436 ac_status=$? 14437 cat conftest.err >&5 14438 echo "$as_me:14438: \$? = $ac_status" >&5 14439 if (exit $ac_status) && test -s "$ac_outfile"; then 14440 # The compiler can only warn and ignore the option if not recognized 14441 # So say no if there are warnings other than the usual output. 14442 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14445 lt_prog_compiler_pic_works_F77=yes 14446 fi 14447 fi 14448 $rm conftest* 14449 14450fi 14451{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14452echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14453 14454if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14455 case $lt_prog_compiler_pic_F77 in 14456 "" | " "*) ;; 14457 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14458 esac 14459else 14460 lt_prog_compiler_pic_F77= 14461 lt_prog_compiler_can_build_shared_F77=no 14462fi 14463 14464fi 14465case $host_os in 14466 # For platforms which do not support PIC, -DPIC is meaningless: 14467 *djgpp*) 14468 lt_prog_compiler_pic_F77= 14469 ;; 14470 *) 14471 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14472 ;; 14473esac 14474 14475# 14476# Check to make sure the static flag actually works. 14477# 14478wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14479{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14480echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14481if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14482 echo $ECHO_N "(cached) $ECHO_C" >&6 14483else 14484 lt_prog_compiler_static_works_F77=no 14485 save_LDFLAGS="$LDFLAGS" 14486 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14487 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14488 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14489 # The linker can only warn and ignore the option if not recognized 14490 # So say no if there are warnings 14491 if test -s conftest.err; then 14492 # Append any errors to the config.log. 14493 cat conftest.err 1>&5 14494 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14496 if diff conftest.exp conftest.er2 >/dev/null; then 14497 lt_prog_compiler_static_works_F77=yes 14498 fi 14499 else 14500 lt_prog_compiler_static_works_F77=yes 14501 fi 14502 fi 14503 $rm conftest* 14504 LDFLAGS="$save_LDFLAGS" 14505 14506fi 14507{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14508echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14509 14510if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14511 : 14512else 14513 lt_prog_compiler_static_F77= 14514fi 14515 14516 14517{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14518echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14519if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14520 echo $ECHO_N "(cached) $ECHO_C" >&6 14521else 14522 lt_cv_prog_compiler_c_o_F77=no 14523 $rm -r conftest 2>/dev/null 14524 mkdir conftest 14525 cd conftest 14526 mkdir out 14527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14528 14529 lt_compiler_flag="-o out/conftest2.$ac_objext" 14530 # Insert the option either (1) after the last *FLAGS variable, or 14531 # (2) before a word containing "conftest.", or (3) at the end. 14532 # Note that $ac_compile itself does not contain backslashes and begins 14533 # with a dollar sign (not a hyphen), so the echo should work correctly. 14534 lt_compile=`echo "$ac_compile" | $SED \ 14535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14537 -e 's:$: $lt_compiler_flag:'` 14538 (eval echo "\"\$as_me:14538: $lt_compile\"" >&5) 14539 (eval "$lt_compile" 2>out/conftest.err) 14540 ac_status=$? 14541 cat out/conftest.err >&5 14542 echo "$as_me:14542: \$? = $ac_status" >&5 14543 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14544 then 14545 # The compiler can only warn and ignore the option if not recognized 14546 # So say no if there are warnings 14547 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14550 lt_cv_prog_compiler_c_o_F77=yes 14551 fi 14552 fi 14553 chmod u+w . 2>&5 14554 $rm conftest* 14555 # SGI C++ compiler will create directory out/ii_files/ for 14556 # template instantiation 14557 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14558 $rm out/* && rmdir out 14559 cd .. 14560 rmdir conftest 14561 $rm conftest* 14562 14563fi 14564{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14565echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14566 14567 14568hard_links="nottested" 14569if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14570 # do not overwrite the value of need_locks provided by the user 14571 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14572echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14573 hard_links=yes 14574 $rm conftest* 14575 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14576 touch conftest.a 14577 ln conftest.a conftest.b 2>&5 || hard_links=no 14578 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14579 { echo "$as_me:$LINENO: result: $hard_links" >&5 14580echo "${ECHO_T}$hard_links" >&6; } 14581 if test "$hard_links" = no; then 14582 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14583echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14584 need_locks=warn 14585 fi 14586else 14587 need_locks=no 14588fi 14589 14590{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14591echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14592 14593 runpath_var= 14594 allow_undefined_flag_F77= 14595 enable_shared_with_static_runtimes_F77=no 14596 archive_cmds_F77= 14597 archive_expsym_cmds_F77= 14598 old_archive_From_new_cmds_F77= 14599 old_archive_from_expsyms_cmds_F77= 14600 export_dynamic_flag_spec_F77= 14601 whole_archive_flag_spec_F77= 14602 thread_safe_flag_spec_F77= 14603 hardcode_libdir_flag_spec_F77= 14604 hardcode_libdir_flag_spec_ld_F77= 14605 hardcode_libdir_separator_F77= 14606 hardcode_direct_F77=no 14607 hardcode_minus_L_F77=no 14608 hardcode_shlibpath_var_F77=unsupported 14609 link_all_deplibs_F77=unknown 14610 hardcode_automatic_F77=no 14611 module_cmds_F77= 14612 module_expsym_cmds_F77= 14613 always_export_symbols_F77=no 14614 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14615 # include_expsyms should be a list of space-separated symbols to be *always* 14616 # included in the symbol list 14617 include_expsyms_F77= 14618 # exclude_expsyms can be an extended regexp of symbols to exclude 14619 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14620 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14621 # as well as any symbol that contains `d'. 14622 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14623 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14624 # platforms (ab)use it in PIC code, but their linkers get confused if 14625 # the symbol is explicitly referenced. Since portable code cannot 14626 # rely on this symbol name, it's probably fine to never include it in 14627 # preloaded symbol tables. 14628 extract_expsyms_cmds= 14629 # Just being paranoid about ensuring that cc_basename is set. 14630 for cc_temp in $compiler""; do 14631 case $cc_temp in 14632 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14633 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14634 \-*) ;; 14635 *) break;; 14636 esac 14637done 14638cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14639 14640 case $host_os in 14641 cygwin* | mingw* | pw32*) 14642 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14643 # When not using gcc, we currently assume that we are using 14644 # Microsoft Visual C++. 14645 if test "$GCC" != yes; then 14646 with_gnu_ld=no 14647 fi 14648 ;; 14649 interix*) 14650 # we just hope/assume this is gcc and not c89 (= MSVC++) 14651 with_gnu_ld=yes 14652 ;; 14653 openbsd*) 14654 with_gnu_ld=no 14655 ;; 14656 esac 14657 14658 ld_shlibs_F77=yes 14659 if test "$with_gnu_ld" = yes; then 14660 # If archive_cmds runs LD, not CC, wlarc should be empty 14661 wlarc='${wl}' 14662 14663 # Set some defaults for GNU ld with shared library support. These 14664 # are reset later if shared libraries are not supported. Putting them 14665 # here allows them to be overridden if necessary. 14666 runpath_var=LD_RUN_PATH 14667 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14668 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14669 # ancient GNU ld didn't support --whole-archive et. al. 14670 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14671 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14672 else 14673 whole_archive_flag_spec_F77= 14674 fi 14675 supports_anon_versioning=no 14676 case `$LD -v 2>/dev/null` in 14677 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14678 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14679 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14680 *\ 2.11.*) ;; # other 2.11 versions 14681 *) supports_anon_versioning=yes ;; 14682 esac 14683 14684 # See if GNU ld supports shared libraries. 14685 case $host_os in 14686 aix3* | aix4* | aix5*) 14687 # On AIX/PPC, the GNU linker is very broken 14688 if test "$host_cpu" != ia64; then 14689 ld_shlibs_F77=no 14690 cat <<EOF 1>&2 14691 14692*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14693*** to be unable to reliably create shared libraries on AIX. 14694*** Therefore, libtool is disabling shared libraries support. If you 14695*** really care for shared libraries, you may want to modify your PATH 14696*** so that a non-GNU linker is found, and then restart. 14697 14698EOF 14699 fi 14700 ;; 14701 14702 amigaos*) 14703 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)' 14704 hardcode_libdir_flag_spec_F77='-L$libdir' 14705 hardcode_minus_L_F77=yes 14706 14707 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14708 # that the semantics of dynamic libraries on AmigaOS, at least up 14709 # to version 4, is to share data among multiple programs linked 14710 # with the same dynamic library. Since this doesn't match the 14711 # behavior of shared libraries on other platforms, we can't use 14712 # them. 14713 ld_shlibs_F77=no 14714 ;; 14715 14716 beos*) 14717 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14718 allow_undefined_flag_F77=unsupported 14719 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14720 # support --undefined. This deserves some investigation. FIXME 14721 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14722 else 14723 ld_shlibs_F77=no 14724 fi 14725 ;; 14726 14727 cygwin* | mingw* | pw32*) 14728 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14729 # as there is no search path for DLLs. 14730 hardcode_libdir_flag_spec_F77='-L$libdir' 14731 allow_undefined_flag_F77=unsupported 14732 always_export_symbols_F77=no 14733 enable_shared_with_static_runtimes_F77=yes 14734 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14735 14736 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14737 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14738 # If the export-symbols file already is a .def file (1st line 14739 # is EXPORTS), use it as is; otherwise, prepend... 14740 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14741 cp $export_symbols $output_objdir/$soname.def; 14742 else 14743 echo EXPORTS > $output_objdir/$soname.def; 14744 cat $export_symbols >> $output_objdir/$soname.def; 14745 fi~ 14746 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14747 else 14748 ld_shlibs_F77=no 14749 fi 14750 ;; 14751 14752 interix[3-9]*) 14753 hardcode_direct_F77=no 14754 hardcode_shlibpath_var_F77=no 14755 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14756 export_dynamic_flag_spec_F77='${wl}-E' 14757 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14758 # Instead, shared libraries are loaded at an image base (0x10000000 by 14759 # default) and relocated if they conflict, which is a slow very memory 14760 # consuming and fragmenting process. To avoid this, we pick a random, 14761 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14762 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14763 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' 14764 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' 14765 ;; 14766 14767 gnu* | linux* | k*bsd*-gnu) 14768 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14769 tmp_addflag= 14770 case $cc_basename,$host_cpu in 14771 pgcc*) # Portland Group C compiler 14772 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' 14773 tmp_addflag=' $pic_flag' 14774 ;; 14775 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14776 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' 14777 tmp_addflag=' $pic_flag -Mnomain' ;; 14778 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14779 tmp_addflag=' -i_dynamic' ;; 14780 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14781 tmp_addflag=' -i_dynamic -nofor_main' ;; 14782 ifc* | ifort*) # Intel Fortran compiler 14783 tmp_addflag=' -nofor_main' ;; 14784 esac 14785 case `$CC -V 2>&1 | sed 5q` in 14786 *Sun\ C*) # Sun C 5.9 14787 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' 14788 tmp_sharedflag='-G' ;; 14789 *Sun\ F*) # Sun Fortran 8.3 14790 tmp_sharedflag='-G' ;; 14791 *) 14792 tmp_sharedflag='-shared' ;; 14793 esac 14794 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14795 14796 if test $supports_anon_versioning = yes; then 14797 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14798 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14799 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14800 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14801 fi 14802 else 14803 ld_shlibs_F77=no 14804 fi 14805 ;; 14806 14807 netbsd*) 14808 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14809 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14810 wlarc= 14811 else 14812 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14813 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14814 fi 14815 ;; 14816 14817 solaris*) 14818 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14819 ld_shlibs_F77=no 14820 cat <<EOF 1>&2 14821 14822*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14823*** create shared libraries on Solaris systems. Therefore, libtool 14824*** is disabling shared libraries support. We urge you to upgrade GNU 14825*** binutils to release 2.9.1 or newer. Another option is to modify 14826*** your PATH or compiler configuration so that the native linker is 14827*** used, and then restart. 14828 14829EOF 14830 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14831 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14832 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14833 else 14834 ld_shlibs_F77=no 14835 fi 14836 ;; 14837 14838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14839 case `$LD -v 2>&1` in 14840 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14841 ld_shlibs_F77=no 14842 cat <<_LT_EOF 1>&2 14843 14844*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14845*** reliably create shared libraries on SCO systems. Therefore, libtool 14846*** is disabling shared libraries support. We urge you to upgrade GNU 14847*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14848*** your PATH or compiler configuration so that the native linker is 14849*** used, and then restart. 14850 14851_LT_EOF 14852 ;; 14853 *) 14854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14855 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14856 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14857 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14858 else 14859 ld_shlibs_F77=no 14860 fi 14861 ;; 14862 esac 14863 ;; 14864 14865 sunos4*) 14866 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14867 wlarc= 14868 hardcode_direct_F77=yes 14869 hardcode_shlibpath_var_F77=no 14870 ;; 14871 14872 *) 14873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14874 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14875 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14876 else 14877 ld_shlibs_F77=no 14878 fi 14879 ;; 14880 esac 14881 14882 if test "$ld_shlibs_F77" = no; then 14883 runpath_var= 14884 hardcode_libdir_flag_spec_F77= 14885 export_dynamic_flag_spec_F77= 14886 whole_archive_flag_spec_F77= 14887 fi 14888 else 14889 # PORTME fill in a description of your system's linker (not GNU ld) 14890 case $host_os in 14891 aix3*) 14892 allow_undefined_flag_F77=unsupported 14893 always_export_symbols_F77=yes 14894 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' 14895 # Note: this linker hardcodes the directories in LIBPATH if there 14896 # are no directories specified by -L. 14897 hardcode_minus_L_F77=yes 14898 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14899 # Neither direct hardcoding nor static linking is supported with a 14900 # broken collect2. 14901 hardcode_direct_F77=unsupported 14902 fi 14903 ;; 14904 14905 aix4* | aix5*) 14906 if test "$host_cpu" = ia64; then 14907 # On IA64, the linker does run time linking by default, so we don't 14908 # have to do anything special. 14909 aix_use_runtimelinking=no 14910 exp_sym_flag='-Bexport' 14911 no_entry_flag="" 14912 else 14913 # If we're using GNU nm, then we don't want the "-C" option. 14914 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14915 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14916 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' 14917 else 14918 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' 14919 fi 14920 aix_use_runtimelinking=no 14921 14922 # Test if we are trying to use run time linking or normal 14923 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14924 # need to do runtime linking. 14925 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14926 for ld_flag in $LDFLAGS; do 14927 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14928 aix_use_runtimelinking=yes 14929 break 14930 fi 14931 done 14932 ;; 14933 esac 14934 14935 exp_sym_flag='-bexport' 14936 no_entry_flag='-bnoentry' 14937 fi 14938 14939 # When large executables or shared objects are built, AIX ld can 14940 # have problems creating the table of contents. If linking a library 14941 # or program results in "error TOC overflow" add -mminimal-toc to 14942 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14943 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14944 14945 archive_cmds_F77='' 14946 hardcode_direct_F77=yes 14947 hardcode_libdir_separator_F77=':' 14948 link_all_deplibs_F77=yes 14949 14950 if test "$GCC" = yes; then 14951 case $host_os in aix4.[012]|aix4.[012].*) 14952 # We only want to do this on AIX 4.2 and lower, the check 14953 # below for broken collect2 doesn't work under 4.3+ 14954 collect2name=`${CC} -print-prog-name=collect2` 14955 if test -f "$collect2name" && \ 14956 strings "$collect2name" | grep resolve_lib_name >/dev/null 14957 then 14958 # We have reworked collect2 14959 : 14960 else 14961 # We have old collect2 14962 hardcode_direct_F77=unsupported 14963 # It fails to find uninstalled libraries when the uninstalled 14964 # path is not listed in the libpath. Setting hardcode_minus_L 14965 # to unsupported forces relinking 14966 hardcode_minus_L_F77=yes 14967 hardcode_libdir_flag_spec_F77='-L$libdir' 14968 hardcode_libdir_separator_F77= 14969 fi 14970 ;; 14971 esac 14972 shared_flag='-shared' 14973 if test "$aix_use_runtimelinking" = yes; then 14974 shared_flag="$shared_flag "'${wl}-G' 14975 fi 14976 else 14977 # not using gcc 14978 if test "$host_cpu" = ia64; then 14979 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14980 # chokes on -Wl,-G. The following line is correct: 14981 shared_flag='-G' 14982 else 14983 if test "$aix_use_runtimelinking" = yes; then 14984 shared_flag='${wl}-G' 14985 else 14986 shared_flag='${wl}-bM:SRE' 14987 fi 14988 fi 14989 fi 14990 14991 # It seems that -bexpall does not export symbols beginning with 14992 # underscore (_), so it is better to generate a list of symbols to export. 14993 always_export_symbols_F77=yes 14994 if test "$aix_use_runtimelinking" = yes; then 14995 # Warning - without using the other runtime loading flags (-brtl), 14996 # -berok will link without error, but may produce a broken library. 14997 allow_undefined_flag_F77='-berok' 14998 # Determine the default libpath from the value encoded in an empty executable. 14999 cat >conftest.$ac_ext <<_ACEOF 15000 program main 15001 15002 end 15003_ACEOF 15004rm -f conftest.$ac_objext conftest$ac_exeext 15005if { (ac_try="$ac_link" 15006case "(($ac_try" in 15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15008 *) ac_try_echo=$ac_try;; 15009esac 15010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15011 (eval "$ac_link") 2>conftest.er1 15012 ac_status=$? 15013 grep -v '^ *+' conftest.er1 >conftest.err 15014 rm -f conftest.er1 15015 cat conftest.err >&5 15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15017 (exit $ac_status); } && { 15018 test -z "$ac_f77_werror_flag" || 15019 test ! -s conftest.err 15020 } && test -s conftest$ac_exeext && 15021 $as_test_x conftest$ac_exeext; then 15022 15023lt_aix_libpath_sed=' 15024 /Import File Strings/,/^$/ { 15025 /^0/ { 15026 s/^0 *\(.*\)$/\1/ 15027 p 15028 } 15029 }' 15030aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15031# Check for a 64-bit object if we didn't find anything. 15032if test -z "$aix_libpath"; then 15033 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15034fi 15035else 15036 echo "$as_me: failed program was:" >&5 15037sed 's/^/| /' conftest.$ac_ext >&5 15038 15039 15040fi 15041 15042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15043 conftest$ac_exeext conftest.$ac_ext 15044if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15045 15046 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15047 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" 15048 else 15049 if test "$host_cpu" = ia64; then 15050 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15051 allow_undefined_flag_F77="-z nodefs" 15052 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" 15053 else 15054 # Determine the default libpath from the value encoded in an empty executable. 15055 cat >conftest.$ac_ext <<_ACEOF 15056 program main 15057 15058 end 15059_ACEOF 15060rm -f conftest.$ac_objext conftest$ac_exeext 15061if { (ac_try="$ac_link" 15062case "(($ac_try" in 15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15064 *) ac_try_echo=$ac_try;; 15065esac 15066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15067 (eval "$ac_link") 2>conftest.er1 15068 ac_status=$? 15069 grep -v '^ *+' conftest.er1 >conftest.err 15070 rm -f conftest.er1 15071 cat conftest.err >&5 15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15073 (exit $ac_status); } && { 15074 test -z "$ac_f77_werror_flag" || 15075 test ! -s conftest.err 15076 } && test -s conftest$ac_exeext && 15077 $as_test_x conftest$ac_exeext; then 15078 15079lt_aix_libpath_sed=' 15080 /Import File Strings/,/^$/ { 15081 /^0/ { 15082 s/^0 *\(.*\)$/\1/ 15083 p 15084 } 15085 }' 15086aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15087# Check for a 64-bit object if we didn't find anything. 15088if test -z "$aix_libpath"; then 15089 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15090fi 15091else 15092 echo "$as_me: failed program was:" >&5 15093sed 's/^/| /' conftest.$ac_ext >&5 15094 15095 15096fi 15097 15098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15099 conftest$ac_exeext conftest.$ac_ext 15100if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15101 15102 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15103 # Warning - without using the other run time loading flags, 15104 # -berok will link without error, but may produce a broken library. 15105 no_undefined_flag_F77=' ${wl}-bernotok' 15106 allow_undefined_flag_F77=' ${wl}-berok' 15107 # Exported symbols can be pulled into shared objects from archives 15108 whole_archive_flag_spec_F77='$convenience' 15109 archive_cmds_need_lc_F77=yes 15110 # This is similar to how AIX traditionally builds its shared libraries. 15111 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' 15112 fi 15113 fi 15114 ;; 15115 15116 amigaos*) 15117 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)' 15118 hardcode_libdir_flag_spec_F77='-L$libdir' 15119 hardcode_minus_L_F77=yes 15120 # see comment about different semantics on the GNU ld section 15121 ld_shlibs_F77=no 15122 ;; 15123 15124 bsdi[45]*) 15125 export_dynamic_flag_spec_F77=-rdynamic 15126 ;; 15127 15128 cygwin* | mingw* | pw32*) 15129 # When not using gcc, we currently assume that we are using 15130 # Microsoft Visual C++. 15131 # hardcode_libdir_flag_spec is actually meaningless, as there is 15132 # no search path for DLLs. 15133 hardcode_libdir_flag_spec_F77=' ' 15134 allow_undefined_flag_F77=unsupported 15135 # Tell ltmain to make .lib files, not .a files. 15136 libext=lib 15137 # Tell ltmain to make .dll files, not .so files. 15138 shrext_cmds=".dll" 15139 # FIXME: Setting linknames here is a bad hack. 15140 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15141 # The linker will automatically build a .lib file if we build a DLL. 15142 old_archive_From_new_cmds_F77='true' 15143 # FIXME: Should let the user specify the lib program. 15144 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15145 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15146 enable_shared_with_static_runtimes_F77=yes 15147 ;; 15148 15149 darwin* | rhapsody*) 15150 case $host_os in 15151 rhapsody* | darwin1.[012]) 15152 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15153 ;; 15154 *) # Darwin 1.3 on 15155 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15156 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15157 else 15158 case ${MACOSX_DEPLOYMENT_TARGET} in 15159 10.[012]) 15160 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15161 ;; 15162 10.*) 15163 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15164 ;; 15165 esac 15166 fi 15167 ;; 15168 esac 15169 archive_cmds_need_lc_F77=no 15170 hardcode_direct_F77=no 15171 hardcode_automatic_F77=yes 15172 hardcode_shlibpath_var_F77=unsupported 15173 whole_archive_flag_spec_F77='' 15174 link_all_deplibs_F77=yes 15175 if test "$GCC" = yes ; then 15176 output_verbose_link_cmd='echo' 15177 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15178 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15179 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15180 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15181 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}' 15182 else 15183 case $cc_basename in 15184 xlc*) 15185 output_verbose_link_cmd='echo' 15186 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15187 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15188 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15189 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}' 15190 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}' 15191 ;; 15192 *) 15193 ld_shlibs_F77=no 15194 ;; 15195 esac 15196 fi 15197 ;; 15198 15199 dgux*) 15200 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15201 hardcode_libdir_flag_spec_F77='-L$libdir' 15202 hardcode_shlibpath_var_F77=no 15203 ;; 15204 15205 freebsd1*) 15206 ld_shlibs_F77=no 15207 ;; 15208 15209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15210 # support. Future versions do this automatically, but an explicit c++rt0.o 15211 # does not break anything, and helps significantly (at the cost of a little 15212 # extra space). 15213 freebsd2.2*) 15214 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15215 hardcode_libdir_flag_spec_F77='-R$libdir' 15216 hardcode_direct_F77=yes 15217 hardcode_shlibpath_var_F77=no 15218 ;; 15219 15220 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15221 freebsd2*) 15222 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15223 hardcode_direct_F77=yes 15224 hardcode_minus_L_F77=yes 15225 hardcode_shlibpath_var_F77=no 15226 ;; 15227 15228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15229 freebsd* | dragonfly*) 15230 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15231 hardcode_libdir_flag_spec_F77='-R$libdir' 15232 hardcode_direct_F77=yes 15233 hardcode_shlibpath_var_F77=no 15234 ;; 15235 15236 hpux9*) 15237 if test "$GCC" = yes; then 15238 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' 15239 else 15240 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' 15241 fi 15242 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15243 hardcode_libdir_separator_F77=: 15244 hardcode_direct_F77=yes 15245 15246 # hardcode_minus_L: Not really in the search PATH, 15247 # but as the default location of the library. 15248 hardcode_minus_L_F77=yes 15249 export_dynamic_flag_spec_F77='${wl}-E' 15250 ;; 15251 15252 hpux10*) 15253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15254 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15255 else 15256 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15257 fi 15258 if test "$with_gnu_ld" = no; then 15259 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15260 hardcode_libdir_separator_F77=: 15261 15262 hardcode_direct_F77=yes 15263 export_dynamic_flag_spec_F77='${wl}-E' 15264 15265 # hardcode_minus_L: Not really in the search PATH, 15266 # but as the default location of the library. 15267 hardcode_minus_L_F77=yes 15268 fi 15269 ;; 15270 15271 hpux11*) 15272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15273 case $host_cpu in 15274 hppa*64*) 15275 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15276 ;; 15277 ia64*) 15278 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15279 ;; 15280 *) 15281 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15282 ;; 15283 esac 15284 else 15285 case $host_cpu in 15286 hppa*64*) 15287 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15288 ;; 15289 ia64*) 15290 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15291 ;; 15292 *) 15293 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15294 ;; 15295 esac 15296 fi 15297 if test "$with_gnu_ld" = no; then 15298 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15299 hardcode_libdir_separator_F77=: 15300 15301 case $host_cpu in 15302 hppa*64*|ia64*) 15303 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15304 hardcode_direct_F77=no 15305 hardcode_shlibpath_var_F77=no 15306 ;; 15307 *) 15308 hardcode_direct_F77=yes 15309 export_dynamic_flag_spec_F77='${wl}-E' 15310 15311 # hardcode_minus_L: Not really in the search PATH, 15312 # but as the default location of the library. 15313 hardcode_minus_L_F77=yes 15314 ;; 15315 esac 15316 fi 15317 ;; 15318 15319 irix5* | irix6* | nonstopux*) 15320 if test "$GCC" = yes; then 15321 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' 15322 else 15323 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' 15324 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15325 fi 15326 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15327 hardcode_libdir_separator_F77=: 15328 link_all_deplibs_F77=yes 15329 ;; 15330 15331 netbsd*) 15332 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15333 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15334 else 15335 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15336 fi 15337 hardcode_libdir_flag_spec_F77='-R$libdir' 15338 hardcode_direct_F77=yes 15339 hardcode_shlibpath_var_F77=no 15340 ;; 15341 15342 newsos6) 15343 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15344 hardcode_direct_F77=yes 15345 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15346 hardcode_libdir_separator_F77=: 15347 hardcode_shlibpath_var_F77=no 15348 ;; 15349 15350 openbsd*) 15351 if test -f /usr/libexec/ld.so; then 15352 hardcode_direct_F77=yes 15353 hardcode_shlibpath_var_F77=no 15354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15355 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15356 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15357 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15358 export_dynamic_flag_spec_F77='${wl}-E' 15359 else 15360 case $host_os in 15361 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15362 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15363 hardcode_libdir_flag_spec_F77='-R$libdir' 15364 ;; 15365 *) 15366 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15367 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15368 ;; 15369 esac 15370 fi 15371 else 15372 ld_shlibs_F77=no 15373 fi 15374 ;; 15375 15376 os2*) 15377 hardcode_libdir_flag_spec_F77='-L$libdir' 15378 hardcode_minus_L_F77=yes 15379 allow_undefined_flag_F77=unsupported 15380 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' 15381 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15382 ;; 15383 15384 osf3*) 15385 if test "$GCC" = yes; then 15386 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15387 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' 15388 else 15389 allow_undefined_flag_F77=' -expect_unresolved \*' 15390 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' 15391 fi 15392 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15393 hardcode_libdir_separator_F77=: 15394 ;; 15395 15396 osf4* | osf5*) # as osf3* with the addition of -msym flag 15397 if test "$GCC" = yes; then 15398 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15399 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' 15400 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15401 else 15402 allow_undefined_flag_F77=' -expect_unresolved \*' 15403 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' 15404 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~ 15405 $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' 15406 15407 # Both c and cxx compiler support -rpath directly 15408 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15409 fi 15410 hardcode_libdir_separator_F77=: 15411 ;; 15412 15413 solaris*) 15414 no_undefined_flag_F77=' -z text' 15415 if test "$GCC" = yes; then 15416 wlarc='${wl}' 15417 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15418 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15419 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15420 else 15421 wlarc='' 15422 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15423 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15424 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15425 fi 15426 hardcode_libdir_flag_spec_F77='-R$libdir' 15427 hardcode_shlibpath_var_F77=no 15428 case $host_os in 15429 solaris2.[0-5] | solaris2.[0-5].*) ;; 15430 *) 15431 # The compiler driver will combine and reorder linker options, 15432 # but understands `-z linker_flag'. GCC discards it without `$wl', 15433 # but is careful enough not to reorder. 15434 # Supported since Solaris 2.6 (maybe 2.5.1?) 15435 if test "$GCC" = yes; then 15436 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15437 else 15438 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15439 fi 15440 ;; 15441 esac 15442 link_all_deplibs_F77=yes 15443 ;; 15444 15445 sunos4*) 15446 if test "x$host_vendor" = xsequent; then 15447 # Use $CC to link under sequent, because it throws in some extra .o 15448 # files that make .init and .fini sections work. 15449 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15450 else 15451 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15452 fi 15453 hardcode_libdir_flag_spec_F77='-L$libdir' 15454 hardcode_direct_F77=yes 15455 hardcode_minus_L_F77=yes 15456 hardcode_shlibpath_var_F77=no 15457 ;; 15458 15459 sysv4) 15460 case $host_vendor in 15461 sni) 15462 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15463 hardcode_direct_F77=yes # is this really true??? 15464 ;; 15465 siemens) 15466 ## LD is ld it makes a PLAMLIB 15467 ## CC just makes a GrossModule. 15468 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15469 reload_cmds_F77='$CC -r -o $output$reload_objs' 15470 hardcode_direct_F77=no 15471 ;; 15472 motorola) 15473 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15474 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15475 ;; 15476 esac 15477 runpath_var='LD_RUN_PATH' 15478 hardcode_shlibpath_var_F77=no 15479 ;; 15480 15481 sysv4.3*) 15482 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15483 hardcode_shlibpath_var_F77=no 15484 export_dynamic_flag_spec_F77='-Bexport' 15485 ;; 15486 15487 sysv4*MP*) 15488 if test -d /usr/nec; then 15489 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15490 hardcode_shlibpath_var_F77=no 15491 runpath_var=LD_RUN_PATH 15492 hardcode_runpath_var=yes 15493 ld_shlibs_F77=yes 15494 fi 15495 ;; 15496 15497 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15498 no_undefined_flag_F77='${wl}-z,text' 15499 archive_cmds_need_lc_F77=no 15500 hardcode_shlibpath_var_F77=no 15501 runpath_var='LD_RUN_PATH' 15502 15503 if test "$GCC" = yes; then 15504 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15505 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15506 else 15507 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15508 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15509 fi 15510 ;; 15511 15512 sysv5* | sco3.2v5* | sco5v6*) 15513 # Note: We can NOT use -z defs as we might desire, because we do not 15514 # link with -lc, and that would cause any symbols used from libc to 15515 # always be unresolved, which means just about no library would 15516 # ever link correctly. If we're not using GNU ld we use -z text 15517 # though, which does catch some bad symbols but isn't as heavy-handed 15518 # as -z defs. 15519 no_undefined_flag_F77='${wl}-z,text' 15520 allow_undefined_flag_F77='${wl}-z,nodefs' 15521 archive_cmds_need_lc_F77=no 15522 hardcode_shlibpath_var_F77=no 15523 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15524 hardcode_libdir_separator_F77=':' 15525 link_all_deplibs_F77=yes 15526 export_dynamic_flag_spec_F77='${wl}-Bexport' 15527 runpath_var='LD_RUN_PATH' 15528 15529 if test "$GCC" = yes; then 15530 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15531 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15532 else 15533 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15534 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15535 fi 15536 ;; 15537 15538 uts4*) 15539 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15540 hardcode_libdir_flag_spec_F77='-L$libdir' 15541 hardcode_shlibpath_var_F77=no 15542 ;; 15543 15544 *) 15545 ld_shlibs_F77=no 15546 ;; 15547 esac 15548 fi 15549 15550{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15551echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15552test "$ld_shlibs_F77" = no && can_build_shared=no 15553 15554# 15555# Do we need to explicitly link libc? 15556# 15557case "x$archive_cmds_need_lc_F77" in 15558x|xyes) 15559 # Assume -lc should be added 15560 archive_cmds_need_lc_F77=yes 15561 15562 if test "$enable_shared" = yes && test "$GCC" = yes; then 15563 case $archive_cmds_F77 in 15564 *'~'*) 15565 # FIXME: we may have to deal with multi-command sequences. 15566 ;; 15567 '$CC '*) 15568 # Test whether the compiler implicitly links with -lc since on some 15569 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15570 # to ld, don't add -lc before -lgcc. 15571 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15572echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15573 $rm conftest* 15574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15575 15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15577 (eval $ac_compile) 2>&5 15578 ac_status=$? 15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15580 (exit $ac_status); } 2>conftest.err; then 15581 soname=conftest 15582 lib=conftest 15583 libobjs=conftest.$ac_objext 15584 deplibs= 15585 wl=$lt_prog_compiler_wl_F77 15586 pic_flag=$lt_prog_compiler_pic_F77 15587 compiler_flags=-v 15588 linker_flags=-v 15589 verstring= 15590 output_objdir=. 15591 libname=conftest 15592 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15593 allow_undefined_flag_F77= 15594 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15595 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15596 ac_status=$? 15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15598 (exit $ac_status); } 15599 then 15600 archive_cmds_need_lc_F77=no 15601 else 15602 archive_cmds_need_lc_F77=yes 15603 fi 15604 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15605 else 15606 cat conftest.err 1>&5 15607 fi 15608 $rm conftest* 15609 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15610echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15611 ;; 15612 esac 15613 fi 15614 ;; 15615esac 15616 15617{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15618echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15619library_names_spec= 15620libname_spec='lib$name' 15621soname_spec= 15622shrext_cmds=".so" 15623postinstall_cmds= 15624postuninstall_cmds= 15625finish_cmds= 15626finish_eval= 15627shlibpath_var= 15628shlibpath_overrides_runpath=unknown 15629version_type=none 15630dynamic_linker="$host_os ld.so" 15631sys_lib_dlsearch_path_spec="/lib /usr/lib" 15632 15633need_lib_prefix=unknown 15634hardcode_into_libs=no 15635 15636# when you set need_version to no, make sure it does not cause -set_version 15637# flags to be left without arguments 15638need_version=unknown 15639 15640case $host_os in 15641aix3*) 15642 version_type=linux 15643 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15644 shlibpath_var=LIBPATH 15645 15646 # AIX 3 has no versioning support, so we append a major version to the name. 15647 soname_spec='${libname}${release}${shared_ext}$major' 15648 ;; 15649 15650aix4* | aix5*) 15651 version_type=linux 15652 need_lib_prefix=no 15653 need_version=no 15654 hardcode_into_libs=yes 15655 if test "$host_cpu" = ia64; then 15656 # AIX 5 supports IA64 15657 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15658 shlibpath_var=LD_LIBRARY_PATH 15659 else 15660 # With GCC up to 2.95.x, collect2 would create an import file 15661 # for dependence libraries. The import file would start with 15662 # the line `#! .'. This would cause the generated library to 15663 # depend on `.', always an invalid library. This was fixed in 15664 # development snapshots of GCC prior to 3.0. 15665 case $host_os in 15666 aix4 | aix4.[01] | aix4.[01].*) 15667 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15668 echo ' yes ' 15669 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15670 : 15671 else 15672 can_build_shared=no 15673 fi 15674 ;; 15675 esac 15676 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15677 # soname into executable. Probably we can add versioning support to 15678 # collect2, so additional links can be useful in future. 15679 if test "$aix_use_runtimelinking" = yes; then 15680 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15681 # instead of lib<name>.a to let people know that these are not 15682 # typical AIX shared libraries. 15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15684 else 15685 # We preserve .a as extension for shared libraries through AIX4.2 15686 # and later when we are not doing run time linking. 15687 library_names_spec='${libname}${release}.a $libname.a' 15688 soname_spec='${libname}${release}${shared_ext}$major' 15689 fi 15690 shlibpath_var=LIBPATH 15691 fi 15692 ;; 15693 15694amigaos*) 15695 library_names_spec='$libname.ixlibrary $libname.a' 15696 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15697 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' 15698 ;; 15699 15700beos*) 15701 library_names_spec='${libname}${shared_ext}' 15702 dynamic_linker="$host_os ld.so" 15703 shlibpath_var=LIBRARY_PATH 15704 ;; 15705 15706bsdi[45]*) 15707 version_type=linux 15708 need_version=no 15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15710 soname_spec='${libname}${release}${shared_ext}$major' 15711 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15712 shlibpath_var=LD_LIBRARY_PATH 15713 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15714 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15715 # the default ld.so.conf also contains /usr/contrib/lib and 15716 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15717 # libtool to hard-code these into programs 15718 ;; 15719 15720cygwin* | mingw* | pw32*) 15721 version_type=windows 15722 shrext_cmds=".dll" 15723 need_version=no 15724 need_lib_prefix=no 15725 15726 case $GCC,$host_os in 15727 yes,cygwin* | yes,mingw* | yes,pw32*) 15728 library_names_spec='$libname.dll.a' 15729 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15730 postinstall_cmds='base_file=`basename \${file}`~ 15731 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15732 dldir=$destdir/`dirname \$dlpath`~ 15733 test -d \$dldir || mkdir -p \$dldir~ 15734 $install_prog $dir/$dlname \$dldir/$dlname~ 15735 chmod a+x \$dldir/$dlname' 15736 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15737 dlpath=$dir/\$dldll~ 15738 $rm \$dlpath' 15739 shlibpath_overrides_runpath=yes 15740 15741 case $host_os in 15742 cygwin*) 15743 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15744 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15745 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15746 ;; 15747 mingw*) 15748 # MinGW DLLs use traditional 'lib' prefix 15749 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15750 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15751 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15752 # It is most probably a Windows format PATH printed by 15753 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15754 # path with ; separators, and with drive letters. We can handle the 15755 # drive letters (cygwin fileutils understands them), so leave them, 15756 # especially as we might pass files found there to a mingw objdump, 15757 # which wouldn't understand a cygwinified path. Ahh. 15758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15759 else 15760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15761 fi 15762 ;; 15763 pw32*) 15764 # pw32 DLLs use 'pw' prefix rather than 'lib' 15765 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15766 ;; 15767 esac 15768 ;; 15769 15770 *) 15771 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15772 ;; 15773 esac 15774 dynamic_linker='Win32 ld.exe' 15775 # FIXME: first we should search . and the directory the executable is in 15776 shlibpath_var=PATH 15777 ;; 15778 15779darwin* | rhapsody*) 15780 dynamic_linker="$host_os dyld" 15781 version_type=darwin 15782 need_lib_prefix=no 15783 need_version=no 15784 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15785 soname_spec='${libname}${release}${major}$shared_ext' 15786 shlibpath_overrides_runpath=yes 15787 shlibpath_var=DYLD_LIBRARY_PATH 15788 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15789 15790 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15791 ;; 15792 15793dgux*) 15794 version_type=linux 15795 need_lib_prefix=no 15796 need_version=no 15797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15798 soname_spec='${libname}${release}${shared_ext}$major' 15799 shlibpath_var=LD_LIBRARY_PATH 15800 ;; 15801 15802freebsd1*) 15803 dynamic_linker=no 15804 ;; 15805 15806freebsd* | dragonfly*) 15807 # DragonFly does not have aout. When/if they implement a new 15808 # versioning mechanism, adjust this. 15809 if test -x /usr/bin/objformat; then 15810 objformat=`/usr/bin/objformat` 15811 else 15812 case $host_os in 15813 freebsd[123]*) objformat=aout ;; 15814 *) objformat=elf ;; 15815 esac 15816 fi 15817 version_type=freebsd-$objformat 15818 case $version_type in 15819 freebsd-elf*) 15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15821 need_version=no 15822 need_lib_prefix=no 15823 ;; 15824 freebsd-*) 15825 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15826 need_version=yes 15827 ;; 15828 esac 15829 shlibpath_var=LD_LIBRARY_PATH 15830 case $host_os in 15831 freebsd2*) 15832 shlibpath_overrides_runpath=yes 15833 ;; 15834 freebsd3.[01]* | freebsdelf3.[01]*) 15835 shlibpath_overrides_runpath=yes 15836 hardcode_into_libs=yes 15837 ;; 15838 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15839 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15840 shlibpath_overrides_runpath=no 15841 hardcode_into_libs=yes 15842 ;; 15843 *) # from 4.6 on, and DragonFly 15844 shlibpath_overrides_runpath=yes 15845 hardcode_into_libs=yes 15846 ;; 15847 esac 15848 ;; 15849 15850gnu*) 15851 version_type=linux 15852 need_lib_prefix=no 15853 need_version=no 15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15855 soname_spec='${libname}${release}${shared_ext}$major' 15856 shlibpath_var=LD_LIBRARY_PATH 15857 hardcode_into_libs=yes 15858 ;; 15859 15860hpux9* | hpux10* | hpux11*) 15861 # Give a soname corresponding to the major version so that dld.sl refuses to 15862 # link against other versions. 15863 version_type=sunos 15864 need_lib_prefix=no 15865 need_version=no 15866 case $host_cpu in 15867 ia64*) 15868 shrext_cmds='.so' 15869 hardcode_into_libs=yes 15870 dynamic_linker="$host_os dld.so" 15871 shlibpath_var=LD_LIBRARY_PATH 15872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15874 soname_spec='${libname}${release}${shared_ext}$major' 15875 if test "X$HPUX_IA64_MODE" = X32; then 15876 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15877 else 15878 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15879 fi 15880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15881 ;; 15882 hppa*64*) 15883 shrext_cmds='.sl' 15884 hardcode_into_libs=yes 15885 dynamic_linker="$host_os dld.sl" 15886 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15889 soname_spec='${libname}${release}${shared_ext}$major' 15890 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15892 ;; 15893 *) 15894 shrext_cmds='.sl' 15895 dynamic_linker="$host_os dld.sl" 15896 shlibpath_var=SHLIB_PATH 15897 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15899 soname_spec='${libname}${release}${shared_ext}$major' 15900 ;; 15901 esac 15902 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15903 postinstall_cmds='chmod 555 $lib' 15904 ;; 15905 15906interix[3-9]*) 15907 version_type=linux 15908 need_lib_prefix=no 15909 need_version=no 15910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15911 soname_spec='${libname}${release}${shared_ext}$major' 15912 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15913 shlibpath_var=LD_LIBRARY_PATH 15914 shlibpath_overrides_runpath=no 15915 hardcode_into_libs=yes 15916 ;; 15917 15918irix5* | irix6* | nonstopux*) 15919 case $host_os in 15920 nonstopux*) version_type=nonstopux ;; 15921 *) 15922 if test "$lt_cv_prog_gnu_ld" = yes; then 15923 version_type=linux 15924 else 15925 version_type=irix 15926 fi ;; 15927 esac 15928 need_lib_prefix=no 15929 need_version=no 15930 soname_spec='${libname}${release}${shared_ext}$major' 15931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15932 case $host_os in 15933 irix5* | nonstopux*) 15934 libsuff= shlibsuff= 15935 ;; 15936 *) 15937 case $LD in # libtool.m4 will add one of these switches to LD 15938 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15939 libsuff= shlibsuff= libmagic=32-bit;; 15940 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15941 libsuff=32 shlibsuff=N32 libmagic=N32;; 15942 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15943 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15944 *) libsuff= shlibsuff= libmagic=never-match;; 15945 esac 15946 ;; 15947 esac 15948 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15949 shlibpath_overrides_runpath=no 15950 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15951 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15952 hardcode_into_libs=yes 15953 ;; 15954 15955# No shared lib support for Linux oldld, aout, or coff. 15956linux*oldld* | linux*aout* | linux*coff*) 15957 dynamic_linker=no 15958 ;; 15959 15960# This must be Linux ELF. 15961linux* | k*bsd*-gnu) 15962 version_type=linux 15963 need_lib_prefix=no 15964 need_version=no 15965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15966 soname_spec='${libname}${release}${shared_ext}$major' 15967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15968 shlibpath_var=LD_LIBRARY_PATH 15969 shlibpath_overrides_runpath=no 15970 # This implies no fast_install, which is unacceptable. 15971 # Some rework will be needed to allow for fast_install 15972 # before this can be enabled. 15973 hardcode_into_libs=yes 15974 15975 # Append ld.so.conf contents to the search path 15976 if test -f /etc/ld.so.conf; then 15977 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' ' '` 15978 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15979 fi 15980 15981 # We used to test for /lib/ld.so.1 and disable shared libraries on 15982 # powerpc, because MkLinux only supported shared libraries with the 15983 # GNU dynamic linker. Since this was broken with cross compilers, 15984 # most powerpc-linux boxes support dynamic linking these days and 15985 # people can always --disable-shared, the test was removed, and we 15986 # assume the GNU/Linux dynamic linker is in use. 15987 dynamic_linker='GNU/Linux ld.so' 15988 ;; 15989 15990netbsd*) 15991 version_type=sunos 15992 need_lib_prefix=no 15993 need_version=no 15994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15997 dynamic_linker='NetBSD (a.out) ld.so' 15998 else 15999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16000 soname_spec='${libname}${release}${shared_ext}$major' 16001 dynamic_linker='NetBSD ld.elf_so' 16002 fi 16003 shlibpath_var=LD_LIBRARY_PATH 16004 shlibpath_overrides_runpath=yes 16005 hardcode_into_libs=yes 16006 ;; 16007 16008newsos6) 16009 version_type=linux 16010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16011 shlibpath_var=LD_LIBRARY_PATH 16012 shlibpath_overrides_runpath=yes 16013 ;; 16014 16015nto-qnx*) 16016 version_type=linux 16017 need_lib_prefix=no 16018 need_version=no 16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16020 soname_spec='${libname}${release}${shared_ext}$major' 16021 shlibpath_var=LD_LIBRARY_PATH 16022 shlibpath_overrides_runpath=yes 16023 ;; 16024 16025openbsd*) 16026 version_type=sunos 16027 sys_lib_dlsearch_path_spec="/usr/lib" 16028 need_lib_prefix=no 16029 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16030 case $host_os in 16031 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16032 *) need_version=no ;; 16033 esac 16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16036 shlibpath_var=LD_LIBRARY_PATH 16037 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16038 case $host_os in 16039 openbsd2.[89] | openbsd2.[89].*) 16040 shlibpath_overrides_runpath=no 16041 ;; 16042 *) 16043 shlibpath_overrides_runpath=yes 16044 ;; 16045 esac 16046 else 16047 shlibpath_overrides_runpath=yes 16048 fi 16049 ;; 16050 16051os2*) 16052 libname_spec='$name' 16053 shrext_cmds=".dll" 16054 need_lib_prefix=no 16055 library_names_spec='$libname${shared_ext} $libname.a' 16056 dynamic_linker='OS/2 ld.exe' 16057 shlibpath_var=LIBPATH 16058 ;; 16059 16060osf3* | osf4* | osf5*) 16061 version_type=osf 16062 need_lib_prefix=no 16063 need_version=no 16064 soname_spec='${libname}${release}${shared_ext}$major' 16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16066 shlibpath_var=LD_LIBRARY_PATH 16067 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16068 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16069 ;; 16070 16071rdos*) 16072 dynamic_linker=no 16073 ;; 16074 16075solaris*) 16076 version_type=linux 16077 need_lib_prefix=no 16078 need_version=no 16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16080 soname_spec='${libname}${release}${shared_ext}$major' 16081 shlibpath_var=LD_LIBRARY_PATH 16082 shlibpath_overrides_runpath=yes 16083 hardcode_into_libs=yes 16084 # ldd complains unless libraries are executable 16085 postinstall_cmds='chmod +x $lib' 16086 ;; 16087 16088sunos4*) 16089 version_type=sunos 16090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16091 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16092 shlibpath_var=LD_LIBRARY_PATH 16093 shlibpath_overrides_runpath=yes 16094 if test "$with_gnu_ld" = yes; then 16095 need_lib_prefix=no 16096 fi 16097 need_version=yes 16098 ;; 16099 16100sysv4 | sysv4.3*) 16101 version_type=linux 16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16103 soname_spec='${libname}${release}${shared_ext}$major' 16104 shlibpath_var=LD_LIBRARY_PATH 16105 case $host_vendor in 16106 sni) 16107 shlibpath_overrides_runpath=no 16108 need_lib_prefix=no 16109 export_dynamic_flag_spec='${wl}-Blargedynsym' 16110 runpath_var=LD_RUN_PATH 16111 ;; 16112 siemens) 16113 need_lib_prefix=no 16114 ;; 16115 motorola) 16116 need_lib_prefix=no 16117 need_version=no 16118 shlibpath_overrides_runpath=no 16119 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16120 ;; 16121 esac 16122 ;; 16123 16124sysv4*MP*) 16125 if test -d /usr/nec ;then 16126 version_type=linux 16127 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16128 soname_spec='$libname${shared_ext}.$major' 16129 shlibpath_var=LD_LIBRARY_PATH 16130 fi 16131 ;; 16132 16133sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16134 version_type=freebsd-elf 16135 need_lib_prefix=no 16136 need_version=no 16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16138 soname_spec='${libname}${release}${shared_ext}$major' 16139 shlibpath_var=LD_LIBRARY_PATH 16140 hardcode_into_libs=yes 16141 if test "$with_gnu_ld" = yes; then 16142 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16143 shlibpath_overrides_runpath=no 16144 else 16145 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16146 shlibpath_overrides_runpath=yes 16147 case $host_os in 16148 sco3.2v5*) 16149 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16150 ;; 16151 esac 16152 fi 16153 sys_lib_dlsearch_path_spec='/usr/lib' 16154 ;; 16155 16156uts4*) 16157 version_type=linux 16158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16159 soname_spec='${libname}${release}${shared_ext}$major' 16160 shlibpath_var=LD_LIBRARY_PATH 16161 ;; 16162 16163*) 16164 dynamic_linker=no 16165 ;; 16166esac 16167{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16168echo "${ECHO_T}$dynamic_linker" >&6; } 16169test "$dynamic_linker" = no && can_build_shared=no 16170 16171variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16172if test "$GCC" = yes; then 16173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16174fi 16175 16176{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16177echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16178hardcode_action_F77= 16179if test -n "$hardcode_libdir_flag_spec_F77" || \ 16180 test -n "$runpath_var_F77" || \ 16181 test "X$hardcode_automatic_F77" = "Xyes" ; then 16182 16183 # We can hardcode non-existant directories. 16184 if test "$hardcode_direct_F77" != no && 16185 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16186 # have to relink, otherwise we might link with an installed library 16187 # when we should be linking with a yet-to-be-installed one 16188 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16189 test "$hardcode_minus_L_F77" != no; then 16190 # Linking always hardcodes the temporary library directory. 16191 hardcode_action_F77=relink 16192 else 16193 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16194 hardcode_action_F77=immediate 16195 fi 16196else 16197 # We cannot hardcode anything, or else we can only hardcode existing 16198 # directories. 16199 hardcode_action_F77=unsupported 16200fi 16201{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16202echo "${ECHO_T}$hardcode_action_F77" >&6; } 16203 16204if test "$hardcode_action_F77" = relink; then 16205 # Fast installation is not supported 16206 enable_fast_install=no 16207elif test "$shlibpath_overrides_runpath" = yes || 16208 test "$enable_shared" = no; then 16209 # Fast installation is not necessary 16210 enable_fast_install=needless 16211fi 16212 16213 16214# The else clause should only fire when bootstrapping the 16215# libtool distribution, otherwise you forgot to ship ltmain.sh 16216# with your package, and you will get complaints that there are 16217# no rules to generate ltmain.sh. 16218if test -f "$ltmain"; then 16219 # See if we are running on zsh, and set the options which allow our commands through 16220 # without removal of \ escapes. 16221 if test -n "${ZSH_VERSION+set}" ; then 16222 setopt NO_GLOB_SUBST 16223 fi 16224 # Now quote all the things that may contain metacharacters while being 16225 # careful not to overquote the AC_SUBSTed values. We take copies of the 16226 # variables and quote the copies for generation of the libtool script. 16227 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16228 SED SHELL STRIP \ 16229 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16230 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16231 deplibs_check_method reload_flag reload_cmds need_locks \ 16232 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16233 lt_cv_sys_global_symbol_to_c_name_address \ 16234 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16235 old_postinstall_cmds old_postuninstall_cmds \ 16236 compiler_F77 \ 16237 CC_F77 \ 16238 LD_F77 \ 16239 lt_prog_compiler_wl_F77 \ 16240 lt_prog_compiler_pic_F77 \ 16241 lt_prog_compiler_static_F77 \ 16242 lt_prog_compiler_no_builtin_flag_F77 \ 16243 export_dynamic_flag_spec_F77 \ 16244 thread_safe_flag_spec_F77 \ 16245 whole_archive_flag_spec_F77 \ 16246 enable_shared_with_static_runtimes_F77 \ 16247 old_archive_cmds_F77 \ 16248 old_archive_from_new_cmds_F77 \ 16249 predep_objects_F77 \ 16250 postdep_objects_F77 \ 16251 predeps_F77 \ 16252 postdeps_F77 \ 16253 compiler_lib_search_path_F77 \ 16254 archive_cmds_F77 \ 16255 archive_expsym_cmds_F77 \ 16256 postinstall_cmds_F77 \ 16257 postuninstall_cmds_F77 \ 16258 old_archive_from_expsyms_cmds_F77 \ 16259 allow_undefined_flag_F77 \ 16260 no_undefined_flag_F77 \ 16261 export_symbols_cmds_F77 \ 16262 hardcode_libdir_flag_spec_F77 \ 16263 hardcode_libdir_flag_spec_ld_F77 \ 16264 hardcode_libdir_separator_F77 \ 16265 hardcode_automatic_F77 \ 16266 module_cmds_F77 \ 16267 module_expsym_cmds_F77 \ 16268 lt_cv_prog_compiler_c_o_F77 \ 16269 fix_srcfile_path_F77 \ 16270 exclude_expsyms_F77 \ 16271 include_expsyms_F77; do 16272 16273 case $var in 16274 old_archive_cmds_F77 | \ 16275 old_archive_from_new_cmds_F77 | \ 16276 archive_cmds_F77 | \ 16277 archive_expsym_cmds_F77 | \ 16278 module_cmds_F77 | \ 16279 module_expsym_cmds_F77 | \ 16280 old_archive_from_expsyms_cmds_F77 | \ 16281 export_symbols_cmds_F77 | \ 16282 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16283 postinstall_cmds | postuninstall_cmds | \ 16284 old_postinstall_cmds | old_postuninstall_cmds | \ 16285 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16286 # Double-quote double-evaled strings. 16287 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16288 ;; 16289 *) 16290 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16291 ;; 16292 esac 16293 done 16294 16295 case $lt_echo in 16296 *'\$0 --fallback-echo"') 16297 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16298 ;; 16299 esac 16300 16301cfgfile="$ofile" 16302 16303 cat <<__EOF__ >> "$cfgfile" 16304# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16305 16306# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16307 16308# Shell to use when invoking shell scripts. 16309SHELL=$lt_SHELL 16310 16311# Whether or not to build shared libraries. 16312build_libtool_libs=$enable_shared 16313 16314# Whether or not to build static libraries. 16315build_old_libs=$enable_static 16316 16317# Whether or not to add -lc for building shared libraries. 16318build_libtool_need_lc=$archive_cmds_need_lc_F77 16319 16320# Whether or not to disallow shared libs when runtime libs are static 16321allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16322 16323# Whether or not to optimize for fast installation. 16324fast_install=$enable_fast_install 16325 16326# The host system. 16327host_alias=$host_alias 16328host=$host 16329host_os=$host_os 16330 16331# The build system. 16332build_alias=$build_alias 16333build=$build 16334build_os=$build_os 16335 16336# An echo program that does not interpret backslashes. 16337echo=$lt_echo 16338 16339# The archiver. 16340AR=$lt_AR 16341AR_FLAGS=$lt_AR_FLAGS 16342 16343# A C compiler. 16344LTCC=$lt_LTCC 16345 16346# LTCC compiler flags. 16347LTCFLAGS=$lt_LTCFLAGS 16348 16349# A language-specific compiler. 16350CC=$lt_compiler_F77 16351 16352# Is the compiler the GNU C compiler? 16353with_gcc=$GCC_F77 16354 16355# An ERE matcher. 16356EGREP=$lt_EGREP 16357 16358# The linker used to build libraries. 16359LD=$lt_LD_F77 16360 16361# Whether we need hard or soft links. 16362LN_S=$lt_LN_S 16363 16364# A BSD-compatible nm program. 16365NM=$lt_NM 16366 16367# A symbol stripping program 16368STRIP=$lt_STRIP 16369 16370# Used to examine libraries when file_magic_cmd begins "file" 16371MAGIC_CMD=$MAGIC_CMD 16372 16373# Used on cygwin: DLL creation program. 16374DLLTOOL="$DLLTOOL" 16375 16376# Used on cygwin: object dumper. 16377OBJDUMP="$OBJDUMP" 16378 16379# Used on cygwin: assembler. 16380AS="$AS" 16381 16382# The name of the directory that contains temporary libtool files. 16383objdir=$objdir 16384 16385# How to create reloadable object files. 16386reload_flag=$lt_reload_flag 16387reload_cmds=$lt_reload_cmds 16388 16389# How to pass a linker flag through the compiler. 16390wl=$lt_lt_prog_compiler_wl_F77 16391 16392# Object file suffix (normally "o"). 16393objext="$ac_objext" 16394 16395# Old archive suffix (normally "a"). 16396libext="$libext" 16397 16398# Shared library suffix (normally ".so"). 16399shrext_cmds='$shrext_cmds' 16400 16401# Executable file suffix (normally ""). 16402exeext="$exeext" 16403 16404# Additional compiler flags for building library objects. 16405pic_flag=$lt_lt_prog_compiler_pic_F77 16406pic_mode=$pic_mode 16407 16408# What is the maximum length of a command? 16409max_cmd_len=$lt_cv_sys_max_cmd_len 16410 16411# Does compiler simultaneously support -c and -o options? 16412compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16413 16414# Must we lock files when doing compilation? 16415need_locks=$lt_need_locks 16416 16417# Do we need the lib prefix for modules? 16418need_lib_prefix=$need_lib_prefix 16419 16420# Do we need a version for libraries? 16421need_version=$need_version 16422 16423# Whether dlopen is supported. 16424dlopen_support=$enable_dlopen 16425 16426# Whether dlopen of programs is supported. 16427dlopen_self=$enable_dlopen_self 16428 16429# Whether dlopen of statically linked programs is supported. 16430dlopen_self_static=$enable_dlopen_self_static 16431 16432# Compiler flag to prevent dynamic linking. 16433link_static_flag=$lt_lt_prog_compiler_static_F77 16434 16435# Compiler flag to turn off builtin functions. 16436no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16437 16438# Compiler flag to allow reflexive dlopens. 16439export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16440 16441# Compiler flag to generate shared objects directly from archives. 16442whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16443 16444# Compiler flag to generate thread-safe objects. 16445thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16446 16447# Library versioning type. 16448version_type=$version_type 16449 16450# Format of library name prefix. 16451libname_spec=$lt_libname_spec 16452 16453# List of archive names. First name is the real one, the rest are links. 16454# The last name is the one that the linker finds with -lNAME. 16455library_names_spec=$lt_library_names_spec 16456 16457# The coded name of the library, if different from the real name. 16458soname_spec=$lt_soname_spec 16459 16460# Commands used to build and install an old-style archive. 16461RANLIB=$lt_RANLIB 16462old_archive_cmds=$lt_old_archive_cmds_F77 16463old_postinstall_cmds=$lt_old_postinstall_cmds 16464old_postuninstall_cmds=$lt_old_postuninstall_cmds 16465 16466# Create an old-style archive from a shared archive. 16467old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16468 16469# Create a temporary old-style archive to link instead of a shared archive. 16470old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16471 16472# Commands used to build and install a shared archive. 16473archive_cmds=$lt_archive_cmds_F77 16474archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16475postinstall_cmds=$lt_postinstall_cmds 16476postuninstall_cmds=$lt_postuninstall_cmds 16477 16478# Commands used to build a loadable module (assumed same as above if empty) 16479module_cmds=$lt_module_cmds_F77 16480module_expsym_cmds=$lt_module_expsym_cmds_F77 16481 16482# Commands to strip libraries. 16483old_striplib=$lt_old_striplib 16484striplib=$lt_striplib 16485 16486# Dependencies to place before the objects being linked to create a 16487# shared library. 16488predep_objects=$lt_predep_objects_F77 16489 16490# Dependencies to place after the objects being linked to create a 16491# shared library. 16492postdep_objects=$lt_postdep_objects_F77 16493 16494# Dependencies to place before the objects being linked to create a 16495# shared library. 16496predeps=$lt_predeps_F77 16497 16498# Dependencies to place after the objects being linked to create a 16499# shared library. 16500postdeps=$lt_postdeps_F77 16501 16502# The library search path used internally by the compiler when linking 16503# a shared library. 16504compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16505 16506# Method to check whether dependent libraries are shared objects. 16507deplibs_check_method=$lt_deplibs_check_method 16508 16509# Command to use when deplibs_check_method == file_magic. 16510file_magic_cmd=$lt_file_magic_cmd 16511 16512# Flag that allows shared libraries with undefined symbols to be built. 16513allow_undefined_flag=$lt_allow_undefined_flag_F77 16514 16515# Flag that forces no undefined symbols. 16516no_undefined_flag=$lt_no_undefined_flag_F77 16517 16518# Commands used to finish a libtool library installation in a directory. 16519finish_cmds=$lt_finish_cmds 16520 16521# Same as above, but a single script fragment to be evaled but not shown. 16522finish_eval=$lt_finish_eval 16523 16524# Take the output of nm and produce a listing of raw symbols and C names. 16525global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16526 16527# Transform the output of nm in a proper C declaration 16528global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16529 16530# Transform the output of nm in a C name address pair 16531global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16532 16533# This is the shared library runtime path variable. 16534runpath_var=$runpath_var 16535 16536# This is the shared library path variable. 16537shlibpath_var=$shlibpath_var 16538 16539# Is shlibpath searched before the hard-coded library search path? 16540shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16541 16542# How to hardcode a shared library path into an executable. 16543hardcode_action=$hardcode_action_F77 16544 16545# Whether we should hardcode library paths into libraries. 16546hardcode_into_libs=$hardcode_into_libs 16547 16548# Flag to hardcode \$libdir into a binary during linking. 16549# This must work even if \$libdir does not exist. 16550hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16551 16552# If ld is used when linking, flag to hardcode \$libdir into 16553# a binary during linking. This must work even if \$libdir does 16554# not exist. 16555hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16556 16557# Whether we need a single -rpath flag with a separated argument. 16558hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16559 16560# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16561# resulting binary. 16562hardcode_direct=$hardcode_direct_F77 16563 16564# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16565# resulting binary. 16566hardcode_minus_L=$hardcode_minus_L_F77 16567 16568# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16569# the resulting binary. 16570hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16571 16572# Set to yes if building a shared library automatically hardcodes DIR into the library 16573# and all subsequent libraries and executables linked against it. 16574hardcode_automatic=$hardcode_automatic_F77 16575 16576# Variables whose values should be saved in libtool wrapper scripts and 16577# restored at relink time. 16578variables_saved_for_relink="$variables_saved_for_relink" 16579 16580# Whether libtool must link a program against all its dependency libraries. 16581link_all_deplibs=$link_all_deplibs_F77 16582 16583# Compile-time system search path for libraries 16584sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16585 16586# Run-time system search path for libraries 16587sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16588 16589# Fix the shell variable \$srcfile for the compiler. 16590fix_srcfile_path=$lt_fix_srcfile_path 16591 16592# Set to yes if exported symbols are required. 16593always_export_symbols=$always_export_symbols_F77 16594 16595# The commands to list exported symbols. 16596export_symbols_cmds=$lt_export_symbols_cmds_F77 16597 16598# The commands to extract the exported symbol list from a shared archive. 16599extract_expsyms_cmds=$lt_extract_expsyms_cmds 16600 16601# Symbols that should not be listed in the preloaded symbols. 16602exclude_expsyms=$lt_exclude_expsyms_F77 16603 16604# Symbols that must always be exported. 16605include_expsyms=$lt_include_expsyms_F77 16606 16607# ### END LIBTOOL TAG CONFIG: $tagname 16608 16609__EOF__ 16610 16611 16612else 16613 # If there is no Makefile yet, we rely on a make rule to execute 16614 # `config.status --recheck' to rerun these tests and create the 16615 # libtool script then. 16616 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16617 if test -f "$ltmain_in"; then 16618 test -f Makefile && make "$ltmain" 16619 fi 16620fi 16621 16622 16623ac_ext=c 16624ac_cpp='$CPP $CPPFLAGS' 16625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16627ac_compiler_gnu=$ac_cv_c_compiler_gnu 16628 16629CC="$lt_save_CC" 16630 16631 else 16632 tagname="" 16633 fi 16634 ;; 16635 16636 GCJ) 16637 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16638 16639 16640# Source file extension for Java test sources. 16641ac_ext=java 16642 16643# Object file extension for compiled Java test sources. 16644objext=o 16645objext_GCJ=$objext 16646 16647# Code to be used in simple compile tests 16648lt_simple_compile_test_code="class foo {}" 16649 16650# Code to be used in simple link tests 16651lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16652 16653# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16654 16655# If no C compiler was specified, use CC. 16656LTCC=${LTCC-"$CC"} 16657 16658# If no C compiler flags were specified, use CFLAGS. 16659LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16660 16661# Allow CC to be a program name with arguments. 16662compiler=$CC 16663 16664 16665# save warnings/boilerplate of simple test code 16666ac_outfile=conftest.$ac_objext 16667echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16669_lt_compiler_boilerplate=`cat conftest.err` 16670$rm conftest* 16671 16672ac_outfile=conftest.$ac_objext 16673echo "$lt_simple_link_test_code" >conftest.$ac_ext 16674eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16675_lt_linker_boilerplate=`cat conftest.err` 16676$rm conftest* 16677 16678 16679# Allow CC to be a program name with arguments. 16680lt_save_CC="$CC" 16681CC=${GCJ-"gcj"} 16682compiler=$CC 16683compiler_GCJ=$CC 16684for cc_temp in $compiler""; do 16685 case $cc_temp in 16686 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16687 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16688 \-*) ;; 16689 *) break;; 16690 esac 16691done 16692cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16693 16694 16695# GCJ did not exist at the time GCC didn't implicitly link libc in. 16696archive_cmds_need_lc_GCJ=no 16697 16698old_archive_cmds_GCJ=$old_archive_cmds 16699 16700## CAVEAT EMPTOR: 16701## There is no encapsulation within the following macros, do not change 16702## the running order or otherwise move them around unless you know exactly 16703## what you are doing... 16704 16705lt_prog_compiler_no_builtin_flag_GCJ= 16706 16707if test "$GCC" = yes; then 16708 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16709 16710 16711{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16712echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16713if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16714 echo $ECHO_N "(cached) $ECHO_C" >&6 16715else 16716 lt_cv_prog_compiler_rtti_exceptions=no 16717 ac_outfile=conftest.$ac_objext 16718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16719 lt_compiler_flag="-fno-rtti -fno-exceptions" 16720 # Insert the option either (1) after the last *FLAGS variable, or 16721 # (2) before a word containing "conftest.", or (3) at the end. 16722 # Note that $ac_compile itself does not contain backslashes and begins 16723 # with a dollar sign (not a hyphen), so the echo should work correctly. 16724 # The option is referenced via a variable to avoid confusing sed. 16725 lt_compile=`echo "$ac_compile" | $SED \ 16726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16728 -e 's:$: $lt_compiler_flag:'` 16729 (eval echo "\"\$as_me:16729: $lt_compile\"" >&5) 16730 (eval "$lt_compile" 2>conftest.err) 16731 ac_status=$? 16732 cat conftest.err >&5 16733 echo "$as_me:16733: \$? = $ac_status" >&5 16734 if (exit $ac_status) && test -s "$ac_outfile"; then 16735 # The compiler can only warn and ignore the option if not recognized 16736 # So say no if there are warnings other than the usual output. 16737 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16740 lt_cv_prog_compiler_rtti_exceptions=yes 16741 fi 16742 fi 16743 $rm conftest* 16744 16745fi 16746{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16747echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16748 16749if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16750 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16751else 16752 : 16753fi 16754 16755fi 16756 16757lt_prog_compiler_wl_GCJ= 16758lt_prog_compiler_pic_GCJ= 16759lt_prog_compiler_static_GCJ= 16760 16761{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16762echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16763 16764 if test "$GCC" = yes; then 16765 lt_prog_compiler_wl_GCJ='-Wl,' 16766 lt_prog_compiler_static_GCJ='-static' 16767 16768 case $host_os in 16769 aix*) 16770 # All AIX code is PIC. 16771 if test "$host_cpu" = ia64; then 16772 # AIX 5 now supports IA64 processor 16773 lt_prog_compiler_static_GCJ='-Bstatic' 16774 fi 16775 ;; 16776 16777 amigaos*) 16778 # FIXME: we need at least 68020 code to build shared libraries, but 16779 # adding the `-m68020' flag to GCC prevents building anything better, 16780 # like `-m68040'. 16781 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16782 ;; 16783 16784 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16785 # PIC is the default for these OSes. 16786 ;; 16787 16788 mingw* | cygwin* | pw32* | os2*) 16789 # This hack is so that the source file can tell whether it is being 16790 # built for inclusion in a dll (and should export symbols for example). 16791 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16792 # (--disable-auto-import) libraries 16793 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16794 ;; 16795 16796 darwin* | rhapsody*) 16797 # PIC is the default on this platform 16798 # Common symbols not allowed in MH_DYLIB files 16799 lt_prog_compiler_pic_GCJ='-fno-common' 16800 ;; 16801 16802 interix[3-9]*) 16803 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16804 # Instead, we relocate shared libraries at runtime. 16805 ;; 16806 16807 msdosdjgpp*) 16808 # Just because we use GCC doesn't mean we suddenly get shared libraries 16809 # on systems that don't support them. 16810 lt_prog_compiler_can_build_shared_GCJ=no 16811 enable_shared=no 16812 ;; 16813 16814 sysv4*MP*) 16815 if test -d /usr/nec; then 16816 lt_prog_compiler_pic_GCJ=-Kconform_pic 16817 fi 16818 ;; 16819 16820 hpux*) 16821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16822 # not for PA HP-UX. 16823 case $host_cpu in 16824 hppa*64*|ia64*) 16825 # +Z the default 16826 ;; 16827 *) 16828 lt_prog_compiler_pic_GCJ='-fPIC' 16829 ;; 16830 esac 16831 ;; 16832 16833 *) 16834 lt_prog_compiler_pic_GCJ='-fPIC' 16835 ;; 16836 esac 16837 else 16838 # PORTME Check for flag to pass linker flags through the system compiler. 16839 case $host_os in 16840 aix*) 16841 lt_prog_compiler_wl_GCJ='-Wl,' 16842 if test "$host_cpu" = ia64; then 16843 # AIX 5 now supports IA64 processor 16844 lt_prog_compiler_static_GCJ='-Bstatic' 16845 else 16846 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16847 fi 16848 ;; 16849 darwin*) 16850 # PIC is the default on this platform 16851 # Common symbols not allowed in MH_DYLIB files 16852 case $cc_basename in 16853 xlc*) 16854 lt_prog_compiler_pic_GCJ='-qnocommon' 16855 lt_prog_compiler_wl_GCJ='-Wl,' 16856 ;; 16857 esac 16858 ;; 16859 16860 mingw* | cygwin* | pw32* | os2*) 16861 # This hack is so that the source file can tell whether it is being 16862 # built for inclusion in a dll (and should export symbols for example). 16863 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16864 ;; 16865 16866 hpux9* | hpux10* | hpux11*) 16867 lt_prog_compiler_wl_GCJ='-Wl,' 16868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16869 # not for PA HP-UX. 16870 case $host_cpu in 16871 hppa*64*|ia64*) 16872 # +Z the default 16873 ;; 16874 *) 16875 lt_prog_compiler_pic_GCJ='+Z' 16876 ;; 16877 esac 16878 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16879 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16880 ;; 16881 16882 irix5* | irix6* | nonstopux*) 16883 lt_prog_compiler_wl_GCJ='-Wl,' 16884 # PIC (with -KPIC) is the default. 16885 lt_prog_compiler_static_GCJ='-non_shared' 16886 ;; 16887 16888 newsos6) 16889 lt_prog_compiler_pic_GCJ='-KPIC' 16890 lt_prog_compiler_static_GCJ='-Bstatic' 16891 ;; 16892 16893 linux* | k*bsd*-gnu) 16894 case $cc_basename in 16895 icc* | ecc*) 16896 lt_prog_compiler_wl_GCJ='-Wl,' 16897 lt_prog_compiler_pic_GCJ='-KPIC' 16898 lt_prog_compiler_static_GCJ='-static' 16899 ;; 16900 pgcc* | pgf77* | pgf90* | pgf95*) 16901 # Portland Group compilers (*not* the Pentium gcc compiler, 16902 # which looks to be a dead project) 16903 lt_prog_compiler_wl_GCJ='-Wl,' 16904 lt_prog_compiler_pic_GCJ='-fpic' 16905 lt_prog_compiler_static_GCJ='-Bstatic' 16906 ;; 16907 ccc*) 16908 lt_prog_compiler_wl_GCJ='-Wl,' 16909 # All Alpha code is PIC. 16910 lt_prog_compiler_static_GCJ='-non_shared' 16911 ;; 16912 como) 16913 lt_prog_compiler_wl_GCJ='-lopt=' 16914 ;; 16915 *) 16916 case `$CC -V 2>&1 | sed 5q` in 16917 *Sun\ C*) 16918 # Sun C 5.9 16919 lt_prog_compiler_pic_GCJ='-KPIC' 16920 lt_prog_compiler_static_GCJ='-Bstatic' 16921 lt_prog_compiler_wl_GCJ='-Wl,' 16922 ;; 16923 *Sun\ F*) 16924 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16925 lt_prog_compiler_pic_GCJ='-KPIC' 16926 lt_prog_compiler_static_GCJ='-Bstatic' 16927 lt_prog_compiler_wl_GCJ='' 16928 ;; 16929 esac 16930 ;; 16931 esac 16932 ;; 16933 16934 osf3* | osf4* | osf5*) 16935 lt_prog_compiler_wl_GCJ='-Wl,' 16936 # All OSF/1 code is PIC. 16937 lt_prog_compiler_static_GCJ='-non_shared' 16938 ;; 16939 16940 rdos*) 16941 lt_prog_compiler_static_GCJ='-non_shared' 16942 ;; 16943 16944 solaris*) 16945 lt_prog_compiler_pic_GCJ='-KPIC' 16946 lt_prog_compiler_static_GCJ='-Bstatic' 16947 case $cc_basename in 16948 f77* | f90* | f95*) 16949 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16950 *) 16951 lt_prog_compiler_wl_GCJ='-Wl,';; 16952 esac 16953 ;; 16954 16955 sunos4*) 16956 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16957 lt_prog_compiler_pic_GCJ='-PIC' 16958 lt_prog_compiler_static_GCJ='-Bstatic' 16959 ;; 16960 16961 sysv4 | sysv4.2uw2* | sysv4.3*) 16962 lt_prog_compiler_wl_GCJ='-Wl,' 16963 lt_prog_compiler_pic_GCJ='-KPIC' 16964 lt_prog_compiler_static_GCJ='-Bstatic' 16965 ;; 16966 16967 sysv4*MP*) 16968 if test -d /usr/nec ;then 16969 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16970 lt_prog_compiler_static_GCJ='-Bstatic' 16971 fi 16972 ;; 16973 16974 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16975 lt_prog_compiler_wl_GCJ='-Wl,' 16976 lt_prog_compiler_pic_GCJ='-KPIC' 16977 lt_prog_compiler_static_GCJ='-Bstatic' 16978 ;; 16979 16980 unicos*) 16981 lt_prog_compiler_wl_GCJ='-Wl,' 16982 lt_prog_compiler_can_build_shared_GCJ=no 16983 ;; 16984 16985 uts4*) 16986 lt_prog_compiler_pic_GCJ='-pic' 16987 lt_prog_compiler_static_GCJ='-Bstatic' 16988 ;; 16989 16990 *) 16991 lt_prog_compiler_can_build_shared_GCJ=no 16992 ;; 16993 esac 16994 fi 16995 16996{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16997echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16998 16999# 17000# Check to make sure the PIC flag actually works. 17001# 17002if test -n "$lt_prog_compiler_pic_GCJ"; then 17003 17004{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17005echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17006if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17007 echo $ECHO_N "(cached) $ECHO_C" >&6 17008else 17009 lt_prog_compiler_pic_works_GCJ=no 17010 ac_outfile=conftest.$ac_objext 17011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17012 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17013 # Insert the option either (1) after the last *FLAGS variable, or 17014 # (2) before a word containing "conftest.", or (3) at the end. 17015 # Note that $ac_compile itself does not contain backslashes and begins 17016 # with a dollar sign (not a hyphen), so the echo should work correctly. 17017 # The option is referenced via a variable to avoid confusing sed. 17018 lt_compile=`echo "$ac_compile" | $SED \ 17019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17021 -e 's:$: $lt_compiler_flag:'` 17022 (eval echo "\"\$as_me:17022: $lt_compile\"" >&5) 17023 (eval "$lt_compile" 2>conftest.err) 17024 ac_status=$? 17025 cat conftest.err >&5 17026 echo "$as_me:17026: \$? = $ac_status" >&5 17027 if (exit $ac_status) && test -s "$ac_outfile"; then 17028 # The compiler can only warn and ignore the option if not recognized 17029 # So say no if there are warnings other than the usual output. 17030 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17033 lt_prog_compiler_pic_works_GCJ=yes 17034 fi 17035 fi 17036 $rm conftest* 17037 17038fi 17039{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17040echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 17041 17042if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17043 case $lt_prog_compiler_pic_GCJ in 17044 "" | " "*) ;; 17045 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17046 esac 17047else 17048 lt_prog_compiler_pic_GCJ= 17049 lt_prog_compiler_can_build_shared_GCJ=no 17050fi 17051 17052fi 17053case $host_os in 17054 # For platforms which do not support PIC, -DPIC is meaningless: 17055 *djgpp*) 17056 lt_prog_compiler_pic_GCJ= 17057 ;; 17058 *) 17059 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17060 ;; 17061esac 17062 17063# 17064# Check to make sure the static flag actually works. 17065# 17066wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17067{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17068echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17069if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17070 echo $ECHO_N "(cached) $ECHO_C" >&6 17071else 17072 lt_prog_compiler_static_works_GCJ=no 17073 save_LDFLAGS="$LDFLAGS" 17074 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17075 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17076 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17077 # The linker can only warn and ignore the option if not recognized 17078 # So say no if there are warnings 17079 if test -s conftest.err; then 17080 # Append any errors to the config.log. 17081 cat conftest.err 1>&5 17082 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17084 if diff conftest.exp conftest.er2 >/dev/null; then 17085 lt_prog_compiler_static_works_GCJ=yes 17086 fi 17087 else 17088 lt_prog_compiler_static_works_GCJ=yes 17089 fi 17090 fi 17091 $rm conftest* 17092 LDFLAGS="$save_LDFLAGS" 17093 17094fi 17095{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17096echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17097 17098if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17099 : 17100else 17101 lt_prog_compiler_static_GCJ= 17102fi 17103 17104 17105{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17106echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17107if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17108 echo $ECHO_N "(cached) $ECHO_C" >&6 17109else 17110 lt_cv_prog_compiler_c_o_GCJ=no 17111 $rm -r conftest 2>/dev/null 17112 mkdir conftest 17113 cd conftest 17114 mkdir out 17115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17116 17117 lt_compiler_flag="-o out/conftest2.$ac_objext" 17118 # Insert the option either (1) after the last *FLAGS variable, or 17119 # (2) before a word containing "conftest.", or (3) at the end. 17120 # Note that $ac_compile itself does not contain backslashes and begins 17121 # with a dollar sign (not a hyphen), so the echo should work correctly. 17122 lt_compile=`echo "$ac_compile" | $SED \ 17123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17125 -e 's:$: $lt_compiler_flag:'` 17126 (eval echo "\"\$as_me:17126: $lt_compile\"" >&5) 17127 (eval "$lt_compile" 2>out/conftest.err) 17128 ac_status=$? 17129 cat out/conftest.err >&5 17130 echo "$as_me:17130: \$? = $ac_status" >&5 17131 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17132 then 17133 # The compiler can only warn and ignore the option if not recognized 17134 # So say no if there are warnings 17135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17138 lt_cv_prog_compiler_c_o_GCJ=yes 17139 fi 17140 fi 17141 chmod u+w . 2>&5 17142 $rm conftest* 17143 # SGI C++ compiler will create directory out/ii_files/ for 17144 # template instantiation 17145 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17146 $rm out/* && rmdir out 17147 cd .. 17148 rmdir conftest 17149 $rm conftest* 17150 17151fi 17152{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17153echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17154 17155 17156hard_links="nottested" 17157if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17158 # do not overwrite the value of need_locks provided by the user 17159 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17160echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17161 hard_links=yes 17162 $rm conftest* 17163 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17164 touch conftest.a 17165 ln conftest.a conftest.b 2>&5 || hard_links=no 17166 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17167 { echo "$as_me:$LINENO: result: $hard_links" >&5 17168echo "${ECHO_T}$hard_links" >&6; } 17169 if test "$hard_links" = no; then 17170 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17171echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17172 need_locks=warn 17173 fi 17174else 17175 need_locks=no 17176fi 17177 17178{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17179echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17180 17181 runpath_var= 17182 allow_undefined_flag_GCJ= 17183 enable_shared_with_static_runtimes_GCJ=no 17184 archive_cmds_GCJ= 17185 archive_expsym_cmds_GCJ= 17186 old_archive_From_new_cmds_GCJ= 17187 old_archive_from_expsyms_cmds_GCJ= 17188 export_dynamic_flag_spec_GCJ= 17189 whole_archive_flag_spec_GCJ= 17190 thread_safe_flag_spec_GCJ= 17191 hardcode_libdir_flag_spec_GCJ= 17192 hardcode_libdir_flag_spec_ld_GCJ= 17193 hardcode_libdir_separator_GCJ= 17194 hardcode_direct_GCJ=no 17195 hardcode_minus_L_GCJ=no 17196 hardcode_shlibpath_var_GCJ=unsupported 17197 link_all_deplibs_GCJ=unknown 17198 hardcode_automatic_GCJ=no 17199 module_cmds_GCJ= 17200 module_expsym_cmds_GCJ= 17201 always_export_symbols_GCJ=no 17202 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17203 # include_expsyms should be a list of space-separated symbols to be *always* 17204 # included in the symbol list 17205 include_expsyms_GCJ= 17206 # exclude_expsyms can be an extended regexp of symbols to exclude 17207 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17208 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17209 # as well as any symbol that contains `d'. 17210 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17211 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17212 # platforms (ab)use it in PIC code, but their linkers get confused if 17213 # the symbol is explicitly referenced. Since portable code cannot 17214 # rely on this symbol name, it's probably fine to never include it in 17215 # preloaded symbol tables. 17216 extract_expsyms_cmds= 17217 # Just being paranoid about ensuring that cc_basename is set. 17218 for cc_temp in $compiler""; do 17219 case $cc_temp in 17220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17222 \-*) ;; 17223 *) break;; 17224 esac 17225done 17226cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17227 17228 case $host_os in 17229 cygwin* | mingw* | pw32*) 17230 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17231 # When not using gcc, we currently assume that we are using 17232 # Microsoft Visual C++. 17233 if test "$GCC" != yes; then 17234 with_gnu_ld=no 17235 fi 17236 ;; 17237 interix*) 17238 # we just hope/assume this is gcc and not c89 (= MSVC++) 17239 with_gnu_ld=yes 17240 ;; 17241 openbsd*) 17242 with_gnu_ld=no 17243 ;; 17244 esac 17245 17246 ld_shlibs_GCJ=yes 17247 if test "$with_gnu_ld" = yes; then 17248 # If archive_cmds runs LD, not CC, wlarc should be empty 17249 wlarc='${wl}' 17250 17251 # Set some defaults for GNU ld with shared library support. These 17252 # are reset later if shared libraries are not supported. Putting them 17253 # here allows them to be overridden if necessary. 17254 runpath_var=LD_RUN_PATH 17255 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17256 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17257 # ancient GNU ld didn't support --whole-archive et. al. 17258 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17259 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17260 else 17261 whole_archive_flag_spec_GCJ= 17262 fi 17263 supports_anon_versioning=no 17264 case `$LD -v 2>/dev/null` in 17265 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17266 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17267 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17268 *\ 2.11.*) ;; # other 2.11 versions 17269 *) supports_anon_versioning=yes ;; 17270 esac 17271 17272 # See if GNU ld supports shared libraries. 17273 case $host_os in 17274 aix3* | aix4* | aix5*) 17275 # On AIX/PPC, the GNU linker is very broken 17276 if test "$host_cpu" != ia64; then 17277 ld_shlibs_GCJ=no 17278 cat <<EOF 1>&2 17279 17280*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17281*** to be unable to reliably create shared libraries on AIX. 17282*** Therefore, libtool is disabling shared libraries support. If you 17283*** really care for shared libraries, you may want to modify your PATH 17284*** so that a non-GNU linker is found, and then restart. 17285 17286EOF 17287 fi 17288 ;; 17289 17290 amigaos*) 17291 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)' 17292 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17293 hardcode_minus_L_GCJ=yes 17294 17295 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17296 # that the semantics of dynamic libraries on AmigaOS, at least up 17297 # to version 4, is to share data among multiple programs linked 17298 # with the same dynamic library. Since this doesn't match the 17299 # behavior of shared libraries on other platforms, we can't use 17300 # them. 17301 ld_shlibs_GCJ=no 17302 ;; 17303 17304 beos*) 17305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17306 allow_undefined_flag_GCJ=unsupported 17307 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17308 # support --undefined. This deserves some investigation. FIXME 17309 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17310 else 17311 ld_shlibs_GCJ=no 17312 fi 17313 ;; 17314 17315 cygwin* | mingw* | pw32*) 17316 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17317 # as there is no search path for DLLs. 17318 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17319 allow_undefined_flag_GCJ=unsupported 17320 always_export_symbols_GCJ=no 17321 enable_shared_with_static_runtimes_GCJ=yes 17322 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17323 17324 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17325 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17326 # If the export-symbols file already is a .def file (1st line 17327 # is EXPORTS), use it as is; otherwise, prepend... 17328 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17329 cp $export_symbols $output_objdir/$soname.def; 17330 else 17331 echo EXPORTS > $output_objdir/$soname.def; 17332 cat $export_symbols >> $output_objdir/$soname.def; 17333 fi~ 17334 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17335 else 17336 ld_shlibs_GCJ=no 17337 fi 17338 ;; 17339 17340 interix[3-9]*) 17341 hardcode_direct_GCJ=no 17342 hardcode_shlibpath_var_GCJ=no 17343 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17344 export_dynamic_flag_spec_GCJ='${wl}-E' 17345 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17346 # Instead, shared libraries are loaded at an image base (0x10000000 by 17347 # default) and relocated if they conflict, which is a slow very memory 17348 # consuming and fragmenting process. To avoid this, we pick a random, 17349 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17350 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17351 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' 17352 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' 17353 ;; 17354 17355 gnu* | linux* | k*bsd*-gnu) 17356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17357 tmp_addflag= 17358 case $cc_basename,$host_cpu in 17359 pgcc*) # Portland Group C compiler 17360 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' 17361 tmp_addflag=' $pic_flag' 17362 ;; 17363 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17364 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' 17365 tmp_addflag=' $pic_flag -Mnomain' ;; 17366 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17367 tmp_addflag=' -i_dynamic' ;; 17368 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17369 tmp_addflag=' -i_dynamic -nofor_main' ;; 17370 ifc* | ifort*) # Intel Fortran compiler 17371 tmp_addflag=' -nofor_main' ;; 17372 esac 17373 case `$CC -V 2>&1 | sed 5q` in 17374 *Sun\ C*) # Sun C 5.9 17375 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' 17376 tmp_sharedflag='-G' ;; 17377 *Sun\ F*) # Sun Fortran 8.3 17378 tmp_sharedflag='-G' ;; 17379 *) 17380 tmp_sharedflag='-shared' ;; 17381 esac 17382 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17383 17384 if test $supports_anon_versioning = yes; then 17385 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17386 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17387 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17388 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17389 fi 17390 else 17391 ld_shlibs_GCJ=no 17392 fi 17393 ;; 17394 17395 netbsd*) 17396 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17397 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17398 wlarc= 17399 else 17400 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17401 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17402 fi 17403 ;; 17404 17405 solaris*) 17406 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17407 ld_shlibs_GCJ=no 17408 cat <<EOF 1>&2 17409 17410*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17411*** create shared libraries on Solaris systems. Therefore, libtool 17412*** is disabling shared libraries support. We urge you to upgrade GNU 17413*** binutils to release 2.9.1 or newer. Another option is to modify 17414*** your PATH or compiler configuration so that the native linker is 17415*** used, and then restart. 17416 17417EOF 17418 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17419 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17420 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17421 else 17422 ld_shlibs_GCJ=no 17423 fi 17424 ;; 17425 17426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17427 case `$LD -v 2>&1` in 17428 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17429 ld_shlibs_GCJ=no 17430 cat <<_LT_EOF 1>&2 17431 17432*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17433*** reliably create shared libraries on SCO systems. Therefore, libtool 17434*** is disabling shared libraries support. We urge you to upgrade GNU 17435*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17436*** your PATH or compiler configuration so that the native linker is 17437*** used, and then restart. 17438 17439_LT_EOF 17440 ;; 17441 *) 17442 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17443 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17444 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17445 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17446 else 17447 ld_shlibs_GCJ=no 17448 fi 17449 ;; 17450 esac 17451 ;; 17452 17453 sunos4*) 17454 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17455 wlarc= 17456 hardcode_direct_GCJ=yes 17457 hardcode_shlibpath_var_GCJ=no 17458 ;; 17459 17460 *) 17461 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17462 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17463 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17464 else 17465 ld_shlibs_GCJ=no 17466 fi 17467 ;; 17468 esac 17469 17470 if test "$ld_shlibs_GCJ" = no; then 17471 runpath_var= 17472 hardcode_libdir_flag_spec_GCJ= 17473 export_dynamic_flag_spec_GCJ= 17474 whole_archive_flag_spec_GCJ= 17475 fi 17476 else 17477 # PORTME fill in a description of your system's linker (not GNU ld) 17478 case $host_os in 17479 aix3*) 17480 allow_undefined_flag_GCJ=unsupported 17481 always_export_symbols_GCJ=yes 17482 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' 17483 # Note: this linker hardcodes the directories in LIBPATH if there 17484 # are no directories specified by -L. 17485 hardcode_minus_L_GCJ=yes 17486 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17487 # Neither direct hardcoding nor static linking is supported with a 17488 # broken collect2. 17489 hardcode_direct_GCJ=unsupported 17490 fi 17491 ;; 17492 17493 aix4* | aix5*) 17494 if test "$host_cpu" = ia64; then 17495 # On IA64, the linker does run time linking by default, so we don't 17496 # have to do anything special. 17497 aix_use_runtimelinking=no 17498 exp_sym_flag='-Bexport' 17499 no_entry_flag="" 17500 else 17501 # If we're using GNU nm, then we don't want the "-C" option. 17502 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17503 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17504 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' 17505 else 17506 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' 17507 fi 17508 aix_use_runtimelinking=no 17509 17510 # Test if we are trying to use run time linking or normal 17511 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17512 # need to do runtime linking. 17513 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17514 for ld_flag in $LDFLAGS; do 17515 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17516 aix_use_runtimelinking=yes 17517 break 17518 fi 17519 done 17520 ;; 17521 esac 17522 17523 exp_sym_flag='-bexport' 17524 no_entry_flag='-bnoentry' 17525 fi 17526 17527 # When large executables or shared objects are built, AIX ld can 17528 # have problems creating the table of contents. If linking a library 17529 # or program results in "error TOC overflow" add -mminimal-toc to 17530 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17531 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17532 17533 archive_cmds_GCJ='' 17534 hardcode_direct_GCJ=yes 17535 hardcode_libdir_separator_GCJ=':' 17536 link_all_deplibs_GCJ=yes 17537 17538 if test "$GCC" = yes; then 17539 case $host_os in aix4.[012]|aix4.[012].*) 17540 # We only want to do this on AIX 4.2 and lower, the check 17541 # below for broken collect2 doesn't work under 4.3+ 17542 collect2name=`${CC} -print-prog-name=collect2` 17543 if test -f "$collect2name" && \ 17544 strings "$collect2name" | grep resolve_lib_name >/dev/null 17545 then 17546 # We have reworked collect2 17547 : 17548 else 17549 # We have old collect2 17550 hardcode_direct_GCJ=unsupported 17551 # It fails to find uninstalled libraries when the uninstalled 17552 # path is not listed in the libpath. Setting hardcode_minus_L 17553 # to unsupported forces relinking 17554 hardcode_minus_L_GCJ=yes 17555 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17556 hardcode_libdir_separator_GCJ= 17557 fi 17558 ;; 17559 esac 17560 shared_flag='-shared' 17561 if test "$aix_use_runtimelinking" = yes; then 17562 shared_flag="$shared_flag "'${wl}-G' 17563 fi 17564 else 17565 # not using gcc 17566 if test "$host_cpu" = ia64; then 17567 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17568 # chokes on -Wl,-G. The following line is correct: 17569 shared_flag='-G' 17570 else 17571 if test "$aix_use_runtimelinking" = yes; then 17572 shared_flag='${wl}-G' 17573 else 17574 shared_flag='${wl}-bM:SRE' 17575 fi 17576 fi 17577 fi 17578 17579 # It seems that -bexpall does not export symbols beginning with 17580 # underscore (_), so it is better to generate a list of symbols to export. 17581 always_export_symbols_GCJ=yes 17582 if test "$aix_use_runtimelinking" = yes; then 17583 # Warning - without using the other runtime loading flags (-brtl), 17584 # -berok will link without error, but may produce a broken library. 17585 allow_undefined_flag_GCJ='-berok' 17586 # Determine the default libpath from the value encoded in an empty executable. 17587 cat >conftest.$ac_ext <<_ACEOF 17588/* confdefs.h. */ 17589_ACEOF 17590cat confdefs.h >>conftest.$ac_ext 17591cat >>conftest.$ac_ext <<_ACEOF 17592/* end confdefs.h. */ 17593 17594int 17595main () 17596{ 17597 17598 ; 17599 return 0; 17600} 17601_ACEOF 17602rm -f conftest.$ac_objext conftest$ac_exeext 17603if { (ac_try="$ac_link" 17604case "(($ac_try" in 17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17606 *) ac_try_echo=$ac_try;; 17607esac 17608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17609 (eval "$ac_link") 2>conftest.er1 17610 ac_status=$? 17611 grep -v '^ *+' conftest.er1 >conftest.err 17612 rm -f conftest.er1 17613 cat conftest.err >&5 17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17615 (exit $ac_status); } && { 17616 test -z "$ac_c_werror_flag" || 17617 test ! -s conftest.err 17618 } && test -s conftest$ac_exeext && 17619 $as_test_x conftest$ac_exeext; then 17620 17621lt_aix_libpath_sed=' 17622 /Import File Strings/,/^$/ { 17623 /^0/ { 17624 s/^0 *\(.*\)$/\1/ 17625 p 17626 } 17627 }' 17628aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17629# Check for a 64-bit object if we didn't find anything. 17630if test -z "$aix_libpath"; then 17631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17632fi 17633else 17634 echo "$as_me: failed program was:" >&5 17635sed 's/^/| /' conftest.$ac_ext >&5 17636 17637 17638fi 17639 17640rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17641 conftest$ac_exeext conftest.$ac_ext 17642if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17643 17644 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17645 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" 17646 else 17647 if test "$host_cpu" = ia64; then 17648 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17649 allow_undefined_flag_GCJ="-z nodefs" 17650 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" 17651 else 17652 # Determine the default libpath from the value encoded in an empty executable. 17653 cat >conftest.$ac_ext <<_ACEOF 17654/* confdefs.h. */ 17655_ACEOF 17656cat confdefs.h >>conftest.$ac_ext 17657cat >>conftest.$ac_ext <<_ACEOF 17658/* end confdefs.h. */ 17659 17660int 17661main () 17662{ 17663 17664 ; 17665 return 0; 17666} 17667_ACEOF 17668rm -f conftest.$ac_objext conftest$ac_exeext 17669if { (ac_try="$ac_link" 17670case "(($ac_try" in 17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17672 *) ac_try_echo=$ac_try;; 17673esac 17674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17675 (eval "$ac_link") 2>conftest.er1 17676 ac_status=$? 17677 grep -v '^ *+' conftest.er1 >conftest.err 17678 rm -f conftest.er1 17679 cat conftest.err >&5 17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17681 (exit $ac_status); } && { 17682 test -z "$ac_c_werror_flag" || 17683 test ! -s conftest.err 17684 } && test -s conftest$ac_exeext && 17685 $as_test_x conftest$ac_exeext; then 17686 17687lt_aix_libpath_sed=' 17688 /Import File Strings/,/^$/ { 17689 /^0/ { 17690 s/^0 *\(.*\)$/\1/ 17691 p 17692 } 17693 }' 17694aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17695# Check for a 64-bit object if we didn't find anything. 17696if test -z "$aix_libpath"; then 17697 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17698fi 17699else 17700 echo "$as_me: failed program was:" >&5 17701sed 's/^/| /' conftest.$ac_ext >&5 17702 17703 17704fi 17705 17706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17707 conftest$ac_exeext conftest.$ac_ext 17708if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17709 17710 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17711 # Warning - without using the other run time loading flags, 17712 # -berok will link without error, but may produce a broken library. 17713 no_undefined_flag_GCJ=' ${wl}-bernotok' 17714 allow_undefined_flag_GCJ=' ${wl}-berok' 17715 # Exported symbols can be pulled into shared objects from archives 17716 whole_archive_flag_spec_GCJ='$convenience' 17717 archive_cmds_need_lc_GCJ=yes 17718 # This is similar to how AIX traditionally builds its shared libraries. 17719 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' 17720 fi 17721 fi 17722 ;; 17723 17724 amigaos*) 17725 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)' 17726 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17727 hardcode_minus_L_GCJ=yes 17728 # see comment about different semantics on the GNU ld section 17729 ld_shlibs_GCJ=no 17730 ;; 17731 17732 bsdi[45]*) 17733 export_dynamic_flag_spec_GCJ=-rdynamic 17734 ;; 17735 17736 cygwin* | mingw* | pw32*) 17737 # When not using gcc, we currently assume that we are using 17738 # Microsoft Visual C++. 17739 # hardcode_libdir_flag_spec is actually meaningless, as there is 17740 # no search path for DLLs. 17741 hardcode_libdir_flag_spec_GCJ=' ' 17742 allow_undefined_flag_GCJ=unsupported 17743 # Tell ltmain to make .lib files, not .a files. 17744 libext=lib 17745 # Tell ltmain to make .dll files, not .so files. 17746 shrext_cmds=".dll" 17747 # FIXME: Setting linknames here is a bad hack. 17748 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17749 # The linker will automatically build a .lib file if we build a DLL. 17750 old_archive_From_new_cmds_GCJ='true' 17751 # FIXME: Should let the user specify the lib program. 17752 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17753 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17754 enable_shared_with_static_runtimes_GCJ=yes 17755 ;; 17756 17757 darwin* | rhapsody*) 17758 case $host_os in 17759 rhapsody* | darwin1.[012]) 17760 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17761 ;; 17762 *) # Darwin 1.3 on 17763 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17764 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17765 else 17766 case ${MACOSX_DEPLOYMENT_TARGET} in 17767 10.[012]) 17768 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17769 ;; 17770 10.*) 17771 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17772 ;; 17773 esac 17774 fi 17775 ;; 17776 esac 17777 archive_cmds_need_lc_GCJ=no 17778 hardcode_direct_GCJ=no 17779 hardcode_automatic_GCJ=yes 17780 hardcode_shlibpath_var_GCJ=unsupported 17781 whole_archive_flag_spec_GCJ='' 17782 link_all_deplibs_GCJ=yes 17783 if test "$GCC" = yes ; then 17784 output_verbose_link_cmd='echo' 17785 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17786 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17787 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17788 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17789 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}' 17790 else 17791 case $cc_basename in 17792 xlc*) 17793 output_verbose_link_cmd='echo' 17794 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17795 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17796 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17797 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}' 17798 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}' 17799 ;; 17800 *) 17801 ld_shlibs_GCJ=no 17802 ;; 17803 esac 17804 fi 17805 ;; 17806 17807 dgux*) 17808 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17809 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17810 hardcode_shlibpath_var_GCJ=no 17811 ;; 17812 17813 freebsd1*) 17814 ld_shlibs_GCJ=no 17815 ;; 17816 17817 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17818 # support. Future versions do this automatically, but an explicit c++rt0.o 17819 # does not break anything, and helps significantly (at the cost of a little 17820 # extra space). 17821 freebsd2.2*) 17822 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17823 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17824 hardcode_direct_GCJ=yes 17825 hardcode_shlibpath_var_GCJ=no 17826 ;; 17827 17828 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17829 freebsd2*) 17830 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17831 hardcode_direct_GCJ=yes 17832 hardcode_minus_L_GCJ=yes 17833 hardcode_shlibpath_var_GCJ=no 17834 ;; 17835 17836 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17837 freebsd* | dragonfly*) 17838 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17839 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17840 hardcode_direct_GCJ=yes 17841 hardcode_shlibpath_var_GCJ=no 17842 ;; 17843 17844 hpux9*) 17845 if test "$GCC" = yes; then 17846 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' 17847 else 17848 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' 17849 fi 17850 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17851 hardcode_libdir_separator_GCJ=: 17852 hardcode_direct_GCJ=yes 17853 17854 # hardcode_minus_L: Not really in the search PATH, 17855 # but as the default location of the library. 17856 hardcode_minus_L_GCJ=yes 17857 export_dynamic_flag_spec_GCJ='${wl}-E' 17858 ;; 17859 17860 hpux10*) 17861 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17862 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17863 else 17864 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17865 fi 17866 if test "$with_gnu_ld" = no; then 17867 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17868 hardcode_libdir_separator_GCJ=: 17869 17870 hardcode_direct_GCJ=yes 17871 export_dynamic_flag_spec_GCJ='${wl}-E' 17872 17873 # hardcode_minus_L: Not really in the search PATH, 17874 # but as the default location of the library. 17875 hardcode_minus_L_GCJ=yes 17876 fi 17877 ;; 17878 17879 hpux11*) 17880 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17881 case $host_cpu in 17882 hppa*64*) 17883 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17884 ;; 17885 ia64*) 17886 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17887 ;; 17888 *) 17889 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17890 ;; 17891 esac 17892 else 17893 case $host_cpu in 17894 hppa*64*) 17895 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17896 ;; 17897 ia64*) 17898 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17899 ;; 17900 *) 17901 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17902 ;; 17903 esac 17904 fi 17905 if test "$with_gnu_ld" = no; then 17906 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17907 hardcode_libdir_separator_GCJ=: 17908 17909 case $host_cpu in 17910 hppa*64*|ia64*) 17911 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17912 hardcode_direct_GCJ=no 17913 hardcode_shlibpath_var_GCJ=no 17914 ;; 17915 *) 17916 hardcode_direct_GCJ=yes 17917 export_dynamic_flag_spec_GCJ='${wl}-E' 17918 17919 # hardcode_minus_L: Not really in the search PATH, 17920 # but as the default location of the library. 17921 hardcode_minus_L_GCJ=yes 17922 ;; 17923 esac 17924 fi 17925 ;; 17926 17927 irix5* | irix6* | nonstopux*) 17928 if test "$GCC" = yes; then 17929 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' 17930 else 17931 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' 17932 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17933 fi 17934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17935 hardcode_libdir_separator_GCJ=: 17936 link_all_deplibs_GCJ=yes 17937 ;; 17938 17939 netbsd*) 17940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17941 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17942 else 17943 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17944 fi 17945 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17946 hardcode_direct_GCJ=yes 17947 hardcode_shlibpath_var_GCJ=no 17948 ;; 17949 17950 newsos6) 17951 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17952 hardcode_direct_GCJ=yes 17953 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17954 hardcode_libdir_separator_GCJ=: 17955 hardcode_shlibpath_var_GCJ=no 17956 ;; 17957 17958 openbsd*) 17959 if test -f /usr/libexec/ld.so; then 17960 hardcode_direct_GCJ=yes 17961 hardcode_shlibpath_var_GCJ=no 17962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17963 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17964 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17965 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17966 export_dynamic_flag_spec_GCJ='${wl}-E' 17967 else 17968 case $host_os in 17969 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17970 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17971 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17972 ;; 17973 *) 17974 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17975 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17976 ;; 17977 esac 17978 fi 17979 else 17980 ld_shlibs_GCJ=no 17981 fi 17982 ;; 17983 17984 os2*) 17985 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17986 hardcode_minus_L_GCJ=yes 17987 allow_undefined_flag_GCJ=unsupported 17988 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' 17989 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17990 ;; 17991 17992 osf3*) 17993 if test "$GCC" = yes; then 17994 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17995 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' 17996 else 17997 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17998 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' 17999 fi 18000 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18001 hardcode_libdir_separator_GCJ=: 18002 ;; 18003 18004 osf4* | osf5*) # as osf3* with the addition of -msym flag 18005 if test "$GCC" = yes; then 18006 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18007 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' 18008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18009 else 18010 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18011 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' 18012 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~ 18013 $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' 18014 18015 # Both c and cxx compiler support -rpath directly 18016 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18017 fi 18018 hardcode_libdir_separator_GCJ=: 18019 ;; 18020 18021 solaris*) 18022 no_undefined_flag_GCJ=' -z text' 18023 if test "$GCC" = yes; then 18024 wlarc='${wl}' 18025 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18026 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18027 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18028 else 18029 wlarc='' 18030 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18031 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18032 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18033 fi 18034 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18035 hardcode_shlibpath_var_GCJ=no 18036 case $host_os in 18037 solaris2.[0-5] | solaris2.[0-5].*) ;; 18038 *) 18039 # The compiler driver will combine and reorder linker options, 18040 # but understands `-z linker_flag'. GCC discards it without `$wl', 18041 # but is careful enough not to reorder. 18042 # Supported since Solaris 2.6 (maybe 2.5.1?) 18043 if test "$GCC" = yes; then 18044 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18045 else 18046 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18047 fi 18048 ;; 18049 esac 18050 link_all_deplibs_GCJ=yes 18051 ;; 18052 18053 sunos4*) 18054 if test "x$host_vendor" = xsequent; then 18055 # Use $CC to link under sequent, because it throws in some extra .o 18056 # files that make .init and .fini sections work. 18057 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18058 else 18059 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18060 fi 18061 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18062 hardcode_direct_GCJ=yes 18063 hardcode_minus_L_GCJ=yes 18064 hardcode_shlibpath_var_GCJ=no 18065 ;; 18066 18067 sysv4) 18068 case $host_vendor in 18069 sni) 18070 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18071 hardcode_direct_GCJ=yes # is this really true??? 18072 ;; 18073 siemens) 18074 ## LD is ld it makes a PLAMLIB 18075 ## CC just makes a GrossModule. 18076 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18077 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18078 hardcode_direct_GCJ=no 18079 ;; 18080 motorola) 18081 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18082 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18083 ;; 18084 esac 18085 runpath_var='LD_RUN_PATH' 18086 hardcode_shlibpath_var_GCJ=no 18087 ;; 18088 18089 sysv4.3*) 18090 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18091 hardcode_shlibpath_var_GCJ=no 18092 export_dynamic_flag_spec_GCJ='-Bexport' 18093 ;; 18094 18095 sysv4*MP*) 18096 if test -d /usr/nec; then 18097 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18098 hardcode_shlibpath_var_GCJ=no 18099 runpath_var=LD_RUN_PATH 18100 hardcode_runpath_var=yes 18101 ld_shlibs_GCJ=yes 18102 fi 18103 ;; 18104 18105 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18106 no_undefined_flag_GCJ='${wl}-z,text' 18107 archive_cmds_need_lc_GCJ=no 18108 hardcode_shlibpath_var_GCJ=no 18109 runpath_var='LD_RUN_PATH' 18110 18111 if test "$GCC" = yes; then 18112 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18113 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18114 else 18115 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18116 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18117 fi 18118 ;; 18119 18120 sysv5* | sco3.2v5* | sco5v6*) 18121 # Note: We can NOT use -z defs as we might desire, because we do not 18122 # link with -lc, and that would cause any symbols used from libc to 18123 # always be unresolved, which means just about no library would 18124 # ever link correctly. If we're not using GNU ld we use -z text 18125 # though, which does catch some bad symbols but isn't as heavy-handed 18126 # as -z defs. 18127 no_undefined_flag_GCJ='${wl}-z,text' 18128 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18129 archive_cmds_need_lc_GCJ=no 18130 hardcode_shlibpath_var_GCJ=no 18131 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18132 hardcode_libdir_separator_GCJ=':' 18133 link_all_deplibs_GCJ=yes 18134 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18135 runpath_var='LD_RUN_PATH' 18136 18137 if test "$GCC" = yes; then 18138 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18139 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18140 else 18141 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18142 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18143 fi 18144 ;; 18145 18146 uts4*) 18147 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18148 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18149 hardcode_shlibpath_var_GCJ=no 18150 ;; 18151 18152 *) 18153 ld_shlibs_GCJ=no 18154 ;; 18155 esac 18156 fi 18157 18158{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18159echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18160test "$ld_shlibs_GCJ" = no && can_build_shared=no 18161 18162# 18163# Do we need to explicitly link libc? 18164# 18165case "x$archive_cmds_need_lc_GCJ" in 18166x|xyes) 18167 # Assume -lc should be added 18168 archive_cmds_need_lc_GCJ=yes 18169 18170 if test "$enable_shared" = yes && test "$GCC" = yes; then 18171 case $archive_cmds_GCJ in 18172 *'~'*) 18173 # FIXME: we may have to deal with multi-command sequences. 18174 ;; 18175 '$CC '*) 18176 # Test whether the compiler implicitly links with -lc since on some 18177 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18178 # to ld, don't add -lc before -lgcc. 18179 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18180echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18181 $rm conftest* 18182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18183 18184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18185 (eval $ac_compile) 2>&5 18186 ac_status=$? 18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18188 (exit $ac_status); } 2>conftest.err; then 18189 soname=conftest 18190 lib=conftest 18191 libobjs=conftest.$ac_objext 18192 deplibs= 18193 wl=$lt_prog_compiler_wl_GCJ 18194 pic_flag=$lt_prog_compiler_pic_GCJ 18195 compiler_flags=-v 18196 linker_flags=-v 18197 verstring= 18198 output_objdir=. 18199 libname=conftest 18200 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18201 allow_undefined_flag_GCJ= 18202 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18203 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18204 ac_status=$? 18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18206 (exit $ac_status); } 18207 then 18208 archive_cmds_need_lc_GCJ=no 18209 else 18210 archive_cmds_need_lc_GCJ=yes 18211 fi 18212 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18213 else 18214 cat conftest.err 1>&5 18215 fi 18216 $rm conftest* 18217 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18218echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18219 ;; 18220 esac 18221 fi 18222 ;; 18223esac 18224 18225{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18226echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18227library_names_spec= 18228libname_spec='lib$name' 18229soname_spec= 18230shrext_cmds=".so" 18231postinstall_cmds= 18232postuninstall_cmds= 18233finish_cmds= 18234finish_eval= 18235shlibpath_var= 18236shlibpath_overrides_runpath=unknown 18237version_type=none 18238dynamic_linker="$host_os ld.so" 18239sys_lib_dlsearch_path_spec="/lib /usr/lib" 18240 18241need_lib_prefix=unknown 18242hardcode_into_libs=no 18243 18244# when you set need_version to no, make sure it does not cause -set_version 18245# flags to be left without arguments 18246need_version=unknown 18247 18248case $host_os in 18249aix3*) 18250 version_type=linux 18251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18252 shlibpath_var=LIBPATH 18253 18254 # AIX 3 has no versioning support, so we append a major version to the name. 18255 soname_spec='${libname}${release}${shared_ext}$major' 18256 ;; 18257 18258aix4* | aix5*) 18259 version_type=linux 18260 need_lib_prefix=no 18261 need_version=no 18262 hardcode_into_libs=yes 18263 if test "$host_cpu" = ia64; then 18264 # AIX 5 supports IA64 18265 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18266 shlibpath_var=LD_LIBRARY_PATH 18267 else 18268 # With GCC up to 2.95.x, collect2 would create an import file 18269 # for dependence libraries. The import file would start with 18270 # the line `#! .'. This would cause the generated library to 18271 # depend on `.', always an invalid library. This was fixed in 18272 # development snapshots of GCC prior to 3.0. 18273 case $host_os in 18274 aix4 | aix4.[01] | aix4.[01].*) 18275 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18276 echo ' yes ' 18277 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18278 : 18279 else 18280 can_build_shared=no 18281 fi 18282 ;; 18283 esac 18284 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18285 # soname into executable. Probably we can add versioning support to 18286 # collect2, so additional links can be useful in future. 18287 if test "$aix_use_runtimelinking" = yes; then 18288 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18289 # instead of lib<name>.a to let people know that these are not 18290 # typical AIX shared libraries. 18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18292 else 18293 # We preserve .a as extension for shared libraries through AIX4.2 18294 # and later when we are not doing run time linking. 18295 library_names_spec='${libname}${release}.a $libname.a' 18296 soname_spec='${libname}${release}${shared_ext}$major' 18297 fi 18298 shlibpath_var=LIBPATH 18299 fi 18300 ;; 18301 18302amigaos*) 18303 library_names_spec='$libname.ixlibrary $libname.a' 18304 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18305 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' 18306 ;; 18307 18308beos*) 18309 library_names_spec='${libname}${shared_ext}' 18310 dynamic_linker="$host_os ld.so" 18311 shlibpath_var=LIBRARY_PATH 18312 ;; 18313 18314bsdi[45]*) 18315 version_type=linux 18316 need_version=no 18317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18318 soname_spec='${libname}${release}${shared_ext}$major' 18319 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18320 shlibpath_var=LD_LIBRARY_PATH 18321 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18322 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18323 # the default ld.so.conf also contains /usr/contrib/lib and 18324 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18325 # libtool to hard-code these into programs 18326 ;; 18327 18328cygwin* | mingw* | pw32*) 18329 version_type=windows 18330 shrext_cmds=".dll" 18331 need_version=no 18332 need_lib_prefix=no 18333 18334 case $GCC,$host_os in 18335 yes,cygwin* | yes,mingw* | yes,pw32*) 18336 library_names_spec='$libname.dll.a' 18337 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18338 postinstall_cmds='base_file=`basename \${file}`~ 18339 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18340 dldir=$destdir/`dirname \$dlpath`~ 18341 test -d \$dldir || mkdir -p \$dldir~ 18342 $install_prog $dir/$dlname \$dldir/$dlname~ 18343 chmod a+x \$dldir/$dlname' 18344 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18345 dlpath=$dir/\$dldll~ 18346 $rm \$dlpath' 18347 shlibpath_overrides_runpath=yes 18348 18349 case $host_os in 18350 cygwin*) 18351 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18352 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18353 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18354 ;; 18355 mingw*) 18356 # MinGW DLLs use traditional 'lib' prefix 18357 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18358 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18359 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18360 # It is most probably a Windows format PATH printed by 18361 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18362 # path with ; separators, and with drive letters. We can handle the 18363 # drive letters (cygwin fileutils understands them), so leave them, 18364 # especially as we might pass files found there to a mingw objdump, 18365 # which wouldn't understand a cygwinified path. Ahh. 18366 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18367 else 18368 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18369 fi 18370 ;; 18371 pw32*) 18372 # pw32 DLLs use 'pw' prefix rather than 'lib' 18373 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18374 ;; 18375 esac 18376 ;; 18377 18378 *) 18379 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18380 ;; 18381 esac 18382 dynamic_linker='Win32 ld.exe' 18383 # FIXME: first we should search . and the directory the executable is in 18384 shlibpath_var=PATH 18385 ;; 18386 18387darwin* | rhapsody*) 18388 dynamic_linker="$host_os dyld" 18389 version_type=darwin 18390 need_lib_prefix=no 18391 need_version=no 18392 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18393 soname_spec='${libname}${release}${major}$shared_ext' 18394 shlibpath_overrides_runpath=yes 18395 shlibpath_var=DYLD_LIBRARY_PATH 18396 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18397 18398 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18399 ;; 18400 18401dgux*) 18402 version_type=linux 18403 need_lib_prefix=no 18404 need_version=no 18405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18406 soname_spec='${libname}${release}${shared_ext}$major' 18407 shlibpath_var=LD_LIBRARY_PATH 18408 ;; 18409 18410freebsd1*) 18411 dynamic_linker=no 18412 ;; 18413 18414freebsd* | dragonfly*) 18415 # DragonFly does not have aout. When/if they implement a new 18416 # versioning mechanism, adjust this. 18417 if test -x /usr/bin/objformat; then 18418 objformat=`/usr/bin/objformat` 18419 else 18420 case $host_os in 18421 freebsd[123]*) objformat=aout ;; 18422 *) objformat=elf ;; 18423 esac 18424 fi 18425 version_type=freebsd-$objformat 18426 case $version_type in 18427 freebsd-elf*) 18428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18429 need_version=no 18430 need_lib_prefix=no 18431 ;; 18432 freebsd-*) 18433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18434 need_version=yes 18435 ;; 18436 esac 18437 shlibpath_var=LD_LIBRARY_PATH 18438 case $host_os in 18439 freebsd2*) 18440 shlibpath_overrides_runpath=yes 18441 ;; 18442 freebsd3.[01]* | freebsdelf3.[01]*) 18443 shlibpath_overrides_runpath=yes 18444 hardcode_into_libs=yes 18445 ;; 18446 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18447 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18448 shlibpath_overrides_runpath=no 18449 hardcode_into_libs=yes 18450 ;; 18451 *) # from 4.6 on, and DragonFly 18452 shlibpath_overrides_runpath=yes 18453 hardcode_into_libs=yes 18454 ;; 18455 esac 18456 ;; 18457 18458gnu*) 18459 version_type=linux 18460 need_lib_prefix=no 18461 need_version=no 18462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18463 soname_spec='${libname}${release}${shared_ext}$major' 18464 shlibpath_var=LD_LIBRARY_PATH 18465 hardcode_into_libs=yes 18466 ;; 18467 18468hpux9* | hpux10* | hpux11*) 18469 # Give a soname corresponding to the major version so that dld.sl refuses to 18470 # link against other versions. 18471 version_type=sunos 18472 need_lib_prefix=no 18473 need_version=no 18474 case $host_cpu in 18475 ia64*) 18476 shrext_cmds='.so' 18477 hardcode_into_libs=yes 18478 dynamic_linker="$host_os dld.so" 18479 shlibpath_var=LD_LIBRARY_PATH 18480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18482 soname_spec='${libname}${release}${shared_ext}$major' 18483 if test "X$HPUX_IA64_MODE" = X32; then 18484 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18485 else 18486 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18487 fi 18488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18489 ;; 18490 hppa*64*) 18491 shrext_cmds='.sl' 18492 hardcode_into_libs=yes 18493 dynamic_linker="$host_os dld.sl" 18494 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18497 soname_spec='${libname}${release}${shared_ext}$major' 18498 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18500 ;; 18501 *) 18502 shrext_cmds='.sl' 18503 dynamic_linker="$host_os dld.sl" 18504 shlibpath_var=SHLIB_PATH 18505 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18507 soname_spec='${libname}${release}${shared_ext}$major' 18508 ;; 18509 esac 18510 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18511 postinstall_cmds='chmod 555 $lib' 18512 ;; 18513 18514interix[3-9]*) 18515 version_type=linux 18516 need_lib_prefix=no 18517 need_version=no 18518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18519 soname_spec='${libname}${release}${shared_ext}$major' 18520 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18521 shlibpath_var=LD_LIBRARY_PATH 18522 shlibpath_overrides_runpath=no 18523 hardcode_into_libs=yes 18524 ;; 18525 18526irix5* | irix6* | nonstopux*) 18527 case $host_os in 18528 nonstopux*) version_type=nonstopux ;; 18529 *) 18530 if test "$lt_cv_prog_gnu_ld" = yes; then 18531 version_type=linux 18532 else 18533 version_type=irix 18534 fi ;; 18535 esac 18536 need_lib_prefix=no 18537 need_version=no 18538 soname_spec='${libname}${release}${shared_ext}$major' 18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18540 case $host_os in 18541 irix5* | nonstopux*) 18542 libsuff= shlibsuff= 18543 ;; 18544 *) 18545 case $LD in # libtool.m4 will add one of these switches to LD 18546 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18547 libsuff= shlibsuff= libmagic=32-bit;; 18548 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18549 libsuff=32 shlibsuff=N32 libmagic=N32;; 18550 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18551 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18552 *) libsuff= shlibsuff= libmagic=never-match;; 18553 esac 18554 ;; 18555 esac 18556 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18557 shlibpath_overrides_runpath=no 18558 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18559 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18560 hardcode_into_libs=yes 18561 ;; 18562 18563# No shared lib support for Linux oldld, aout, or coff. 18564linux*oldld* | linux*aout* | linux*coff*) 18565 dynamic_linker=no 18566 ;; 18567 18568# This must be Linux ELF. 18569linux* | k*bsd*-gnu) 18570 version_type=linux 18571 need_lib_prefix=no 18572 need_version=no 18573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18574 soname_spec='${libname}${release}${shared_ext}$major' 18575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18576 shlibpath_var=LD_LIBRARY_PATH 18577 shlibpath_overrides_runpath=no 18578 # This implies no fast_install, which is unacceptable. 18579 # Some rework will be needed to allow for fast_install 18580 # before this can be enabled. 18581 hardcode_into_libs=yes 18582 18583 # Append ld.so.conf contents to the search path 18584 if test -f /etc/ld.so.conf; then 18585 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' ' '` 18586 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18587 fi 18588 18589 # We used to test for /lib/ld.so.1 and disable shared libraries on 18590 # powerpc, because MkLinux only supported shared libraries with the 18591 # GNU dynamic linker. Since this was broken with cross compilers, 18592 # most powerpc-linux boxes support dynamic linking these days and 18593 # people can always --disable-shared, the test was removed, and we 18594 # assume the GNU/Linux dynamic linker is in use. 18595 dynamic_linker='GNU/Linux ld.so' 18596 ;; 18597 18598netbsd*) 18599 version_type=sunos 18600 need_lib_prefix=no 18601 need_version=no 18602 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18605 dynamic_linker='NetBSD (a.out) ld.so' 18606 else 18607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18608 soname_spec='${libname}${release}${shared_ext}$major' 18609 dynamic_linker='NetBSD ld.elf_so' 18610 fi 18611 shlibpath_var=LD_LIBRARY_PATH 18612 shlibpath_overrides_runpath=yes 18613 hardcode_into_libs=yes 18614 ;; 18615 18616newsos6) 18617 version_type=linux 18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18619 shlibpath_var=LD_LIBRARY_PATH 18620 shlibpath_overrides_runpath=yes 18621 ;; 18622 18623nto-qnx*) 18624 version_type=linux 18625 need_lib_prefix=no 18626 need_version=no 18627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18628 soname_spec='${libname}${release}${shared_ext}$major' 18629 shlibpath_var=LD_LIBRARY_PATH 18630 shlibpath_overrides_runpath=yes 18631 ;; 18632 18633openbsd*) 18634 version_type=sunos 18635 sys_lib_dlsearch_path_spec="/usr/lib" 18636 need_lib_prefix=no 18637 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18638 case $host_os in 18639 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18640 *) need_version=no ;; 18641 esac 18642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18644 shlibpath_var=LD_LIBRARY_PATH 18645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18646 case $host_os in 18647 openbsd2.[89] | openbsd2.[89].*) 18648 shlibpath_overrides_runpath=no 18649 ;; 18650 *) 18651 shlibpath_overrides_runpath=yes 18652 ;; 18653 esac 18654 else 18655 shlibpath_overrides_runpath=yes 18656 fi 18657 ;; 18658 18659os2*) 18660 libname_spec='$name' 18661 shrext_cmds=".dll" 18662 need_lib_prefix=no 18663 library_names_spec='$libname${shared_ext} $libname.a' 18664 dynamic_linker='OS/2 ld.exe' 18665 shlibpath_var=LIBPATH 18666 ;; 18667 18668osf3* | osf4* | osf5*) 18669 version_type=osf 18670 need_lib_prefix=no 18671 need_version=no 18672 soname_spec='${libname}${release}${shared_ext}$major' 18673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18674 shlibpath_var=LD_LIBRARY_PATH 18675 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18676 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18677 ;; 18678 18679rdos*) 18680 dynamic_linker=no 18681 ;; 18682 18683solaris*) 18684 version_type=linux 18685 need_lib_prefix=no 18686 need_version=no 18687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18688 soname_spec='${libname}${release}${shared_ext}$major' 18689 shlibpath_var=LD_LIBRARY_PATH 18690 shlibpath_overrides_runpath=yes 18691 hardcode_into_libs=yes 18692 # ldd complains unless libraries are executable 18693 postinstall_cmds='chmod +x $lib' 18694 ;; 18695 18696sunos4*) 18697 version_type=sunos 18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18699 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18700 shlibpath_var=LD_LIBRARY_PATH 18701 shlibpath_overrides_runpath=yes 18702 if test "$with_gnu_ld" = yes; then 18703 need_lib_prefix=no 18704 fi 18705 need_version=yes 18706 ;; 18707 18708sysv4 | sysv4.3*) 18709 version_type=linux 18710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18711 soname_spec='${libname}${release}${shared_ext}$major' 18712 shlibpath_var=LD_LIBRARY_PATH 18713 case $host_vendor in 18714 sni) 18715 shlibpath_overrides_runpath=no 18716 need_lib_prefix=no 18717 export_dynamic_flag_spec='${wl}-Blargedynsym' 18718 runpath_var=LD_RUN_PATH 18719 ;; 18720 siemens) 18721 need_lib_prefix=no 18722 ;; 18723 motorola) 18724 need_lib_prefix=no 18725 need_version=no 18726 shlibpath_overrides_runpath=no 18727 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18728 ;; 18729 esac 18730 ;; 18731 18732sysv4*MP*) 18733 if test -d /usr/nec ;then 18734 version_type=linux 18735 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18736 soname_spec='$libname${shared_ext}.$major' 18737 shlibpath_var=LD_LIBRARY_PATH 18738 fi 18739 ;; 18740 18741sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18742 version_type=freebsd-elf 18743 need_lib_prefix=no 18744 need_version=no 18745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18746 soname_spec='${libname}${release}${shared_ext}$major' 18747 shlibpath_var=LD_LIBRARY_PATH 18748 hardcode_into_libs=yes 18749 if test "$with_gnu_ld" = yes; then 18750 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18751 shlibpath_overrides_runpath=no 18752 else 18753 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18754 shlibpath_overrides_runpath=yes 18755 case $host_os in 18756 sco3.2v5*) 18757 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18758 ;; 18759 esac 18760 fi 18761 sys_lib_dlsearch_path_spec='/usr/lib' 18762 ;; 18763 18764uts4*) 18765 version_type=linux 18766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18767 soname_spec='${libname}${release}${shared_ext}$major' 18768 shlibpath_var=LD_LIBRARY_PATH 18769 ;; 18770 18771*) 18772 dynamic_linker=no 18773 ;; 18774esac 18775{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18776echo "${ECHO_T}$dynamic_linker" >&6; } 18777test "$dynamic_linker" = no && can_build_shared=no 18778 18779variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18780if test "$GCC" = yes; then 18781 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18782fi 18783 18784{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18785echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18786hardcode_action_GCJ= 18787if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18788 test -n "$runpath_var_GCJ" || \ 18789 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18790 18791 # We can hardcode non-existant directories. 18792 if test "$hardcode_direct_GCJ" != no && 18793 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18794 # have to relink, otherwise we might link with an installed library 18795 # when we should be linking with a yet-to-be-installed one 18796 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18797 test "$hardcode_minus_L_GCJ" != no; then 18798 # Linking always hardcodes the temporary library directory. 18799 hardcode_action_GCJ=relink 18800 else 18801 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18802 hardcode_action_GCJ=immediate 18803 fi 18804else 18805 # We cannot hardcode anything, or else we can only hardcode existing 18806 # directories. 18807 hardcode_action_GCJ=unsupported 18808fi 18809{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18810echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18811 18812if test "$hardcode_action_GCJ" = relink; then 18813 # Fast installation is not supported 18814 enable_fast_install=no 18815elif test "$shlibpath_overrides_runpath" = yes || 18816 test "$enable_shared" = no; then 18817 # Fast installation is not necessary 18818 enable_fast_install=needless 18819fi 18820 18821 18822# The else clause should only fire when bootstrapping the 18823# libtool distribution, otherwise you forgot to ship ltmain.sh 18824# with your package, and you will get complaints that there are 18825# no rules to generate ltmain.sh. 18826if test -f "$ltmain"; then 18827 # See if we are running on zsh, and set the options which allow our commands through 18828 # without removal of \ escapes. 18829 if test -n "${ZSH_VERSION+set}" ; then 18830 setopt NO_GLOB_SUBST 18831 fi 18832 # Now quote all the things that may contain metacharacters while being 18833 # careful not to overquote the AC_SUBSTed values. We take copies of the 18834 # variables and quote the copies for generation of the libtool script. 18835 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18836 SED SHELL STRIP \ 18837 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18838 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18839 deplibs_check_method reload_flag reload_cmds need_locks \ 18840 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18841 lt_cv_sys_global_symbol_to_c_name_address \ 18842 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18843 old_postinstall_cmds old_postuninstall_cmds \ 18844 compiler_GCJ \ 18845 CC_GCJ \ 18846 LD_GCJ \ 18847 lt_prog_compiler_wl_GCJ \ 18848 lt_prog_compiler_pic_GCJ \ 18849 lt_prog_compiler_static_GCJ \ 18850 lt_prog_compiler_no_builtin_flag_GCJ \ 18851 export_dynamic_flag_spec_GCJ \ 18852 thread_safe_flag_spec_GCJ \ 18853 whole_archive_flag_spec_GCJ \ 18854 enable_shared_with_static_runtimes_GCJ \ 18855 old_archive_cmds_GCJ \ 18856 old_archive_from_new_cmds_GCJ \ 18857 predep_objects_GCJ \ 18858 postdep_objects_GCJ \ 18859 predeps_GCJ \ 18860 postdeps_GCJ \ 18861 compiler_lib_search_path_GCJ \ 18862 archive_cmds_GCJ \ 18863 archive_expsym_cmds_GCJ \ 18864 postinstall_cmds_GCJ \ 18865 postuninstall_cmds_GCJ \ 18866 old_archive_from_expsyms_cmds_GCJ \ 18867 allow_undefined_flag_GCJ \ 18868 no_undefined_flag_GCJ \ 18869 export_symbols_cmds_GCJ \ 18870 hardcode_libdir_flag_spec_GCJ \ 18871 hardcode_libdir_flag_spec_ld_GCJ \ 18872 hardcode_libdir_separator_GCJ \ 18873 hardcode_automatic_GCJ \ 18874 module_cmds_GCJ \ 18875 module_expsym_cmds_GCJ \ 18876 lt_cv_prog_compiler_c_o_GCJ \ 18877 fix_srcfile_path_GCJ \ 18878 exclude_expsyms_GCJ \ 18879 include_expsyms_GCJ; do 18880 18881 case $var in 18882 old_archive_cmds_GCJ | \ 18883 old_archive_from_new_cmds_GCJ | \ 18884 archive_cmds_GCJ | \ 18885 archive_expsym_cmds_GCJ | \ 18886 module_cmds_GCJ | \ 18887 module_expsym_cmds_GCJ | \ 18888 old_archive_from_expsyms_cmds_GCJ | \ 18889 export_symbols_cmds_GCJ | \ 18890 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18891 postinstall_cmds | postuninstall_cmds | \ 18892 old_postinstall_cmds | old_postuninstall_cmds | \ 18893 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18894 # Double-quote double-evaled strings. 18895 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18896 ;; 18897 *) 18898 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18899 ;; 18900 esac 18901 done 18902 18903 case $lt_echo in 18904 *'\$0 --fallback-echo"') 18905 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18906 ;; 18907 esac 18908 18909cfgfile="$ofile" 18910 18911 cat <<__EOF__ >> "$cfgfile" 18912# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18913 18914# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18915 18916# Shell to use when invoking shell scripts. 18917SHELL=$lt_SHELL 18918 18919# Whether or not to build shared libraries. 18920build_libtool_libs=$enable_shared 18921 18922# Whether or not to build static libraries. 18923build_old_libs=$enable_static 18924 18925# Whether or not to add -lc for building shared libraries. 18926build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18927 18928# Whether or not to disallow shared libs when runtime libs are static 18929allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18930 18931# Whether or not to optimize for fast installation. 18932fast_install=$enable_fast_install 18933 18934# The host system. 18935host_alias=$host_alias 18936host=$host 18937host_os=$host_os 18938 18939# The build system. 18940build_alias=$build_alias 18941build=$build 18942build_os=$build_os 18943 18944# An echo program that does not interpret backslashes. 18945echo=$lt_echo 18946 18947# The archiver. 18948AR=$lt_AR 18949AR_FLAGS=$lt_AR_FLAGS 18950 18951# A C compiler. 18952LTCC=$lt_LTCC 18953 18954# LTCC compiler flags. 18955LTCFLAGS=$lt_LTCFLAGS 18956 18957# A language-specific compiler. 18958CC=$lt_compiler_GCJ 18959 18960# Is the compiler the GNU C compiler? 18961with_gcc=$GCC_GCJ 18962 18963# An ERE matcher. 18964EGREP=$lt_EGREP 18965 18966# The linker used to build libraries. 18967LD=$lt_LD_GCJ 18968 18969# Whether we need hard or soft links. 18970LN_S=$lt_LN_S 18971 18972# A BSD-compatible nm program. 18973NM=$lt_NM 18974 18975# A symbol stripping program 18976STRIP=$lt_STRIP 18977 18978# Used to examine libraries when file_magic_cmd begins "file" 18979MAGIC_CMD=$MAGIC_CMD 18980 18981# Used on cygwin: DLL creation program. 18982DLLTOOL="$DLLTOOL" 18983 18984# Used on cygwin: object dumper. 18985OBJDUMP="$OBJDUMP" 18986 18987# Used on cygwin: assembler. 18988AS="$AS" 18989 18990# The name of the directory that contains temporary libtool files. 18991objdir=$objdir 18992 18993# How to create reloadable object files. 18994reload_flag=$lt_reload_flag 18995reload_cmds=$lt_reload_cmds 18996 18997# How to pass a linker flag through the compiler. 18998wl=$lt_lt_prog_compiler_wl_GCJ 18999 19000# Object file suffix (normally "o"). 19001objext="$ac_objext" 19002 19003# Old archive suffix (normally "a"). 19004libext="$libext" 19005 19006# Shared library suffix (normally ".so"). 19007shrext_cmds='$shrext_cmds' 19008 19009# Executable file suffix (normally ""). 19010exeext="$exeext" 19011 19012# Additional compiler flags for building library objects. 19013pic_flag=$lt_lt_prog_compiler_pic_GCJ 19014pic_mode=$pic_mode 19015 19016# What is the maximum length of a command? 19017max_cmd_len=$lt_cv_sys_max_cmd_len 19018 19019# Does compiler simultaneously support -c and -o options? 19020compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19021 19022# Must we lock files when doing compilation? 19023need_locks=$lt_need_locks 19024 19025# Do we need the lib prefix for modules? 19026need_lib_prefix=$need_lib_prefix 19027 19028# Do we need a version for libraries? 19029need_version=$need_version 19030 19031# Whether dlopen is supported. 19032dlopen_support=$enable_dlopen 19033 19034# Whether dlopen of programs is supported. 19035dlopen_self=$enable_dlopen_self 19036 19037# Whether dlopen of statically linked programs is supported. 19038dlopen_self_static=$enable_dlopen_self_static 19039 19040# Compiler flag to prevent dynamic linking. 19041link_static_flag=$lt_lt_prog_compiler_static_GCJ 19042 19043# Compiler flag to turn off builtin functions. 19044no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19045 19046# Compiler flag to allow reflexive dlopens. 19047export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19048 19049# Compiler flag to generate shared objects directly from archives. 19050whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19051 19052# Compiler flag to generate thread-safe objects. 19053thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19054 19055# Library versioning type. 19056version_type=$version_type 19057 19058# Format of library name prefix. 19059libname_spec=$lt_libname_spec 19060 19061# List of archive names. First name is the real one, the rest are links. 19062# The last name is the one that the linker finds with -lNAME. 19063library_names_spec=$lt_library_names_spec 19064 19065# The coded name of the library, if different from the real name. 19066soname_spec=$lt_soname_spec 19067 19068# Commands used to build and install an old-style archive. 19069RANLIB=$lt_RANLIB 19070old_archive_cmds=$lt_old_archive_cmds_GCJ 19071old_postinstall_cmds=$lt_old_postinstall_cmds 19072old_postuninstall_cmds=$lt_old_postuninstall_cmds 19073 19074# Create an old-style archive from a shared archive. 19075old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19076 19077# Create a temporary old-style archive to link instead of a shared archive. 19078old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19079 19080# Commands used to build and install a shared archive. 19081archive_cmds=$lt_archive_cmds_GCJ 19082archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19083postinstall_cmds=$lt_postinstall_cmds 19084postuninstall_cmds=$lt_postuninstall_cmds 19085 19086# Commands used to build a loadable module (assumed same as above if empty) 19087module_cmds=$lt_module_cmds_GCJ 19088module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19089 19090# Commands to strip libraries. 19091old_striplib=$lt_old_striplib 19092striplib=$lt_striplib 19093 19094# Dependencies to place before the objects being linked to create a 19095# shared library. 19096predep_objects=$lt_predep_objects_GCJ 19097 19098# Dependencies to place after the objects being linked to create a 19099# shared library. 19100postdep_objects=$lt_postdep_objects_GCJ 19101 19102# Dependencies to place before the objects being linked to create a 19103# shared library. 19104predeps=$lt_predeps_GCJ 19105 19106# Dependencies to place after the objects being linked to create a 19107# shared library. 19108postdeps=$lt_postdeps_GCJ 19109 19110# The library search path used internally by the compiler when linking 19111# a shared library. 19112compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19113 19114# Method to check whether dependent libraries are shared objects. 19115deplibs_check_method=$lt_deplibs_check_method 19116 19117# Command to use when deplibs_check_method == file_magic. 19118file_magic_cmd=$lt_file_magic_cmd 19119 19120# Flag that allows shared libraries with undefined symbols to be built. 19121allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19122 19123# Flag that forces no undefined symbols. 19124no_undefined_flag=$lt_no_undefined_flag_GCJ 19125 19126# Commands used to finish a libtool library installation in a directory. 19127finish_cmds=$lt_finish_cmds 19128 19129# Same as above, but a single script fragment to be evaled but not shown. 19130finish_eval=$lt_finish_eval 19131 19132# Take the output of nm and produce a listing of raw symbols and C names. 19133global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19134 19135# Transform the output of nm in a proper C declaration 19136global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19137 19138# Transform the output of nm in a C name address pair 19139global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19140 19141# This is the shared library runtime path variable. 19142runpath_var=$runpath_var 19143 19144# This is the shared library path variable. 19145shlibpath_var=$shlibpath_var 19146 19147# Is shlibpath searched before the hard-coded library search path? 19148shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19149 19150# How to hardcode a shared library path into an executable. 19151hardcode_action=$hardcode_action_GCJ 19152 19153# Whether we should hardcode library paths into libraries. 19154hardcode_into_libs=$hardcode_into_libs 19155 19156# Flag to hardcode \$libdir into a binary during linking. 19157# This must work even if \$libdir does not exist. 19158hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19159 19160# If ld is used when linking, flag to hardcode \$libdir into 19161# a binary during linking. This must work even if \$libdir does 19162# not exist. 19163hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19164 19165# Whether we need a single -rpath flag with a separated argument. 19166hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19167 19168# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19169# resulting binary. 19170hardcode_direct=$hardcode_direct_GCJ 19171 19172# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19173# resulting binary. 19174hardcode_minus_L=$hardcode_minus_L_GCJ 19175 19176# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19177# the resulting binary. 19178hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19179 19180# Set to yes if building a shared library automatically hardcodes DIR into the library 19181# and all subsequent libraries and executables linked against it. 19182hardcode_automatic=$hardcode_automatic_GCJ 19183 19184# Variables whose values should be saved in libtool wrapper scripts and 19185# restored at relink time. 19186variables_saved_for_relink="$variables_saved_for_relink" 19187 19188# Whether libtool must link a program against all its dependency libraries. 19189link_all_deplibs=$link_all_deplibs_GCJ 19190 19191# Compile-time system search path for libraries 19192sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19193 19194# Run-time system search path for libraries 19195sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19196 19197# Fix the shell variable \$srcfile for the compiler. 19198fix_srcfile_path=$lt_fix_srcfile_path 19199 19200# Set to yes if exported symbols are required. 19201always_export_symbols=$always_export_symbols_GCJ 19202 19203# The commands to list exported symbols. 19204export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19205 19206# The commands to extract the exported symbol list from a shared archive. 19207extract_expsyms_cmds=$lt_extract_expsyms_cmds 19208 19209# Symbols that should not be listed in the preloaded symbols. 19210exclude_expsyms=$lt_exclude_expsyms_GCJ 19211 19212# Symbols that must always be exported. 19213include_expsyms=$lt_include_expsyms_GCJ 19214 19215# ### END LIBTOOL TAG CONFIG: $tagname 19216 19217__EOF__ 19218 19219 19220else 19221 # If there is no Makefile yet, we rely on a make rule to execute 19222 # `config.status --recheck' to rerun these tests and create the 19223 # libtool script then. 19224 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19225 if test -f "$ltmain_in"; then 19226 test -f Makefile && make "$ltmain" 19227 fi 19228fi 19229 19230 19231ac_ext=c 19232ac_cpp='$CPP $CPPFLAGS' 19233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19235ac_compiler_gnu=$ac_cv_c_compiler_gnu 19236 19237CC="$lt_save_CC" 19238 19239 else 19240 tagname="" 19241 fi 19242 ;; 19243 19244 RC) 19245 19246 19247# Source file extension for RC test sources. 19248ac_ext=rc 19249 19250# Object file extension for compiled RC test sources. 19251objext=o 19252objext_RC=$objext 19253 19254# Code to be used in simple compile tests 19255lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19256 19257# Code to be used in simple link tests 19258lt_simple_link_test_code="$lt_simple_compile_test_code" 19259 19260# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19261 19262# If no C compiler was specified, use CC. 19263LTCC=${LTCC-"$CC"} 19264 19265# If no C compiler flags were specified, use CFLAGS. 19266LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19267 19268# Allow CC to be a program name with arguments. 19269compiler=$CC 19270 19271 19272# save warnings/boilerplate of simple test code 19273ac_outfile=conftest.$ac_objext 19274echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19275eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19276_lt_compiler_boilerplate=`cat conftest.err` 19277$rm conftest* 19278 19279ac_outfile=conftest.$ac_objext 19280echo "$lt_simple_link_test_code" >conftest.$ac_ext 19281eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19282_lt_linker_boilerplate=`cat conftest.err` 19283$rm conftest* 19284 19285 19286# Allow CC to be a program name with arguments. 19287lt_save_CC="$CC" 19288CC=${RC-"windres"} 19289compiler=$CC 19290compiler_RC=$CC 19291for cc_temp in $compiler""; do 19292 case $cc_temp in 19293 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19294 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19295 \-*) ;; 19296 *) break;; 19297 esac 19298done 19299cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19300 19301lt_cv_prog_compiler_c_o_RC=yes 19302 19303# The else clause should only fire when bootstrapping the 19304# libtool distribution, otherwise you forgot to ship ltmain.sh 19305# with your package, and you will get complaints that there are 19306# no rules to generate ltmain.sh. 19307if test -f "$ltmain"; then 19308 # See if we are running on zsh, and set the options which allow our commands through 19309 # without removal of \ escapes. 19310 if test -n "${ZSH_VERSION+set}" ; then 19311 setopt NO_GLOB_SUBST 19312 fi 19313 # Now quote all the things that may contain metacharacters while being 19314 # careful not to overquote the AC_SUBSTed values. We take copies of the 19315 # variables and quote the copies for generation of the libtool script. 19316 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19317 SED SHELL STRIP \ 19318 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19319 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19320 deplibs_check_method reload_flag reload_cmds need_locks \ 19321 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19322 lt_cv_sys_global_symbol_to_c_name_address \ 19323 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19324 old_postinstall_cmds old_postuninstall_cmds \ 19325 compiler_RC \ 19326 CC_RC \ 19327 LD_RC \ 19328 lt_prog_compiler_wl_RC \ 19329 lt_prog_compiler_pic_RC \ 19330 lt_prog_compiler_static_RC \ 19331 lt_prog_compiler_no_builtin_flag_RC \ 19332 export_dynamic_flag_spec_RC \ 19333 thread_safe_flag_spec_RC \ 19334 whole_archive_flag_spec_RC \ 19335 enable_shared_with_static_runtimes_RC \ 19336 old_archive_cmds_RC \ 19337 old_archive_from_new_cmds_RC \ 19338 predep_objects_RC \ 19339 postdep_objects_RC \ 19340 predeps_RC \ 19341 postdeps_RC \ 19342 compiler_lib_search_path_RC \ 19343 archive_cmds_RC \ 19344 archive_expsym_cmds_RC \ 19345 postinstall_cmds_RC \ 19346 postuninstall_cmds_RC \ 19347 old_archive_from_expsyms_cmds_RC \ 19348 allow_undefined_flag_RC \ 19349 no_undefined_flag_RC \ 19350 export_symbols_cmds_RC \ 19351 hardcode_libdir_flag_spec_RC \ 19352 hardcode_libdir_flag_spec_ld_RC \ 19353 hardcode_libdir_separator_RC \ 19354 hardcode_automatic_RC \ 19355 module_cmds_RC \ 19356 module_expsym_cmds_RC \ 19357 lt_cv_prog_compiler_c_o_RC \ 19358 fix_srcfile_path_RC \ 19359 exclude_expsyms_RC \ 19360 include_expsyms_RC; do 19361 19362 case $var in 19363 old_archive_cmds_RC | \ 19364 old_archive_from_new_cmds_RC | \ 19365 archive_cmds_RC | \ 19366 archive_expsym_cmds_RC | \ 19367 module_cmds_RC | \ 19368 module_expsym_cmds_RC | \ 19369 old_archive_from_expsyms_cmds_RC | \ 19370 export_symbols_cmds_RC | \ 19371 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19372 postinstall_cmds | postuninstall_cmds | \ 19373 old_postinstall_cmds | old_postuninstall_cmds | \ 19374 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19375 # Double-quote double-evaled strings. 19376 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19377 ;; 19378 *) 19379 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19380 ;; 19381 esac 19382 done 19383 19384 case $lt_echo in 19385 *'\$0 --fallback-echo"') 19386 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19387 ;; 19388 esac 19389 19390cfgfile="$ofile" 19391 19392 cat <<__EOF__ >> "$cfgfile" 19393# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19394 19395# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19396 19397# Shell to use when invoking shell scripts. 19398SHELL=$lt_SHELL 19399 19400# Whether or not to build shared libraries. 19401build_libtool_libs=$enable_shared 19402 19403# Whether or not to build static libraries. 19404build_old_libs=$enable_static 19405 19406# Whether or not to add -lc for building shared libraries. 19407build_libtool_need_lc=$archive_cmds_need_lc_RC 19408 19409# Whether or not to disallow shared libs when runtime libs are static 19410allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19411 19412# Whether or not to optimize for fast installation. 19413fast_install=$enable_fast_install 19414 19415# The host system. 19416host_alias=$host_alias 19417host=$host 19418host_os=$host_os 19419 19420# The build system. 19421build_alias=$build_alias 19422build=$build 19423build_os=$build_os 19424 19425# An echo program that does not interpret backslashes. 19426echo=$lt_echo 19427 19428# The archiver. 19429AR=$lt_AR 19430AR_FLAGS=$lt_AR_FLAGS 19431 19432# A C compiler. 19433LTCC=$lt_LTCC 19434 19435# LTCC compiler flags. 19436LTCFLAGS=$lt_LTCFLAGS 19437 19438# A language-specific compiler. 19439CC=$lt_compiler_RC 19440 19441# Is the compiler the GNU C compiler? 19442with_gcc=$GCC_RC 19443 19444# An ERE matcher. 19445EGREP=$lt_EGREP 19446 19447# The linker used to build libraries. 19448LD=$lt_LD_RC 19449 19450# Whether we need hard or soft links. 19451LN_S=$lt_LN_S 19452 19453# A BSD-compatible nm program. 19454NM=$lt_NM 19455 19456# A symbol stripping program 19457STRIP=$lt_STRIP 19458 19459# Used to examine libraries when file_magic_cmd begins "file" 19460MAGIC_CMD=$MAGIC_CMD 19461 19462# Used on cygwin: DLL creation program. 19463DLLTOOL="$DLLTOOL" 19464 19465# Used on cygwin: object dumper. 19466OBJDUMP="$OBJDUMP" 19467 19468# Used on cygwin: assembler. 19469AS="$AS" 19470 19471# The name of the directory that contains temporary libtool files. 19472objdir=$objdir 19473 19474# How to create reloadable object files. 19475reload_flag=$lt_reload_flag 19476reload_cmds=$lt_reload_cmds 19477 19478# How to pass a linker flag through the compiler. 19479wl=$lt_lt_prog_compiler_wl_RC 19480 19481# Object file suffix (normally "o"). 19482objext="$ac_objext" 19483 19484# Old archive suffix (normally "a"). 19485libext="$libext" 19486 19487# Shared library suffix (normally ".so"). 19488shrext_cmds='$shrext_cmds' 19489 19490# Executable file suffix (normally ""). 19491exeext="$exeext" 19492 19493# Additional compiler flags for building library objects. 19494pic_flag=$lt_lt_prog_compiler_pic_RC 19495pic_mode=$pic_mode 19496 19497# What is the maximum length of a command? 19498max_cmd_len=$lt_cv_sys_max_cmd_len 19499 19500# Does compiler simultaneously support -c and -o options? 19501compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19502 19503# Must we lock files when doing compilation? 19504need_locks=$lt_need_locks 19505 19506# Do we need the lib prefix for modules? 19507need_lib_prefix=$need_lib_prefix 19508 19509# Do we need a version for libraries? 19510need_version=$need_version 19511 19512# Whether dlopen is supported. 19513dlopen_support=$enable_dlopen 19514 19515# Whether dlopen of programs is supported. 19516dlopen_self=$enable_dlopen_self 19517 19518# Whether dlopen of statically linked programs is supported. 19519dlopen_self_static=$enable_dlopen_self_static 19520 19521# Compiler flag to prevent dynamic linking. 19522link_static_flag=$lt_lt_prog_compiler_static_RC 19523 19524# Compiler flag to turn off builtin functions. 19525no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19526 19527# Compiler flag to allow reflexive dlopens. 19528export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19529 19530# Compiler flag to generate shared objects directly from archives. 19531whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19532 19533# Compiler flag to generate thread-safe objects. 19534thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19535 19536# Library versioning type. 19537version_type=$version_type 19538 19539# Format of library name prefix. 19540libname_spec=$lt_libname_spec 19541 19542# List of archive names. First name is the real one, the rest are links. 19543# The last name is the one that the linker finds with -lNAME. 19544library_names_spec=$lt_library_names_spec 19545 19546# The coded name of the library, if different from the real name. 19547soname_spec=$lt_soname_spec 19548 19549# Commands used to build and install an old-style archive. 19550RANLIB=$lt_RANLIB 19551old_archive_cmds=$lt_old_archive_cmds_RC 19552old_postinstall_cmds=$lt_old_postinstall_cmds 19553old_postuninstall_cmds=$lt_old_postuninstall_cmds 19554 19555# Create an old-style archive from a shared archive. 19556old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19557 19558# Create a temporary old-style archive to link instead of a shared archive. 19559old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19560 19561# Commands used to build and install a shared archive. 19562archive_cmds=$lt_archive_cmds_RC 19563archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19564postinstall_cmds=$lt_postinstall_cmds 19565postuninstall_cmds=$lt_postuninstall_cmds 19566 19567# Commands used to build a loadable module (assumed same as above if empty) 19568module_cmds=$lt_module_cmds_RC 19569module_expsym_cmds=$lt_module_expsym_cmds_RC 19570 19571# Commands to strip libraries. 19572old_striplib=$lt_old_striplib 19573striplib=$lt_striplib 19574 19575# Dependencies to place before the objects being linked to create a 19576# shared library. 19577predep_objects=$lt_predep_objects_RC 19578 19579# Dependencies to place after the objects being linked to create a 19580# shared library. 19581postdep_objects=$lt_postdep_objects_RC 19582 19583# Dependencies to place before the objects being linked to create a 19584# shared library. 19585predeps=$lt_predeps_RC 19586 19587# Dependencies to place after the objects being linked to create a 19588# shared library. 19589postdeps=$lt_postdeps_RC 19590 19591# The library search path used internally by the compiler when linking 19592# a shared library. 19593compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19594 19595# Method to check whether dependent libraries are shared objects. 19596deplibs_check_method=$lt_deplibs_check_method 19597 19598# Command to use when deplibs_check_method == file_magic. 19599file_magic_cmd=$lt_file_magic_cmd 19600 19601# Flag that allows shared libraries with undefined symbols to be built. 19602allow_undefined_flag=$lt_allow_undefined_flag_RC 19603 19604# Flag that forces no undefined symbols. 19605no_undefined_flag=$lt_no_undefined_flag_RC 19606 19607# Commands used to finish a libtool library installation in a directory. 19608finish_cmds=$lt_finish_cmds 19609 19610# Same as above, but a single script fragment to be evaled but not shown. 19611finish_eval=$lt_finish_eval 19612 19613# Take the output of nm and produce a listing of raw symbols and C names. 19614global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19615 19616# Transform the output of nm in a proper C declaration 19617global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19618 19619# Transform the output of nm in a C name address pair 19620global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19621 19622# This is the shared library runtime path variable. 19623runpath_var=$runpath_var 19624 19625# This is the shared library path variable. 19626shlibpath_var=$shlibpath_var 19627 19628# Is shlibpath searched before the hard-coded library search path? 19629shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19630 19631# How to hardcode a shared library path into an executable. 19632hardcode_action=$hardcode_action_RC 19633 19634# Whether we should hardcode library paths into libraries. 19635hardcode_into_libs=$hardcode_into_libs 19636 19637# Flag to hardcode \$libdir into a binary during linking. 19638# This must work even if \$libdir does not exist. 19639hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19640 19641# If ld is used when linking, flag to hardcode \$libdir into 19642# a binary during linking. This must work even if \$libdir does 19643# not exist. 19644hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19645 19646# Whether we need a single -rpath flag with a separated argument. 19647hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19648 19649# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19650# resulting binary. 19651hardcode_direct=$hardcode_direct_RC 19652 19653# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19654# resulting binary. 19655hardcode_minus_L=$hardcode_minus_L_RC 19656 19657# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19658# the resulting binary. 19659hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19660 19661# Set to yes if building a shared library automatically hardcodes DIR into the library 19662# and all subsequent libraries and executables linked against it. 19663hardcode_automatic=$hardcode_automatic_RC 19664 19665# Variables whose values should be saved in libtool wrapper scripts and 19666# restored at relink time. 19667variables_saved_for_relink="$variables_saved_for_relink" 19668 19669# Whether libtool must link a program against all its dependency libraries. 19670link_all_deplibs=$link_all_deplibs_RC 19671 19672# Compile-time system search path for libraries 19673sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19674 19675# Run-time system search path for libraries 19676sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19677 19678# Fix the shell variable \$srcfile for the compiler. 19679fix_srcfile_path=$lt_fix_srcfile_path 19680 19681# Set to yes if exported symbols are required. 19682always_export_symbols=$always_export_symbols_RC 19683 19684# The commands to list exported symbols. 19685export_symbols_cmds=$lt_export_symbols_cmds_RC 19686 19687# The commands to extract the exported symbol list from a shared archive. 19688extract_expsyms_cmds=$lt_extract_expsyms_cmds 19689 19690# Symbols that should not be listed in the preloaded symbols. 19691exclude_expsyms=$lt_exclude_expsyms_RC 19692 19693# Symbols that must always be exported. 19694include_expsyms=$lt_include_expsyms_RC 19695 19696# ### END LIBTOOL TAG CONFIG: $tagname 19697 19698__EOF__ 19699 19700 19701else 19702 # If there is no Makefile yet, we rely on a make rule to execute 19703 # `config.status --recheck' to rerun these tests and create the 19704 # libtool script then. 19705 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19706 if test -f "$ltmain_in"; then 19707 test -f Makefile && make "$ltmain" 19708 fi 19709fi 19710 19711 19712ac_ext=c 19713ac_cpp='$CPP $CPPFLAGS' 19714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19716ac_compiler_gnu=$ac_cv_c_compiler_gnu 19717 19718CC="$lt_save_CC" 19719 19720 ;; 19721 19722 *) 19723 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19724echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19725 { (exit 1); exit 1; }; } 19726 ;; 19727 esac 19728 19729 # Append the new tag name to the list of available tags. 19730 if test -n "$tagname" ; then 19731 available_tags="$available_tags $tagname" 19732 fi 19733 fi 19734 done 19735 IFS="$lt_save_ifs" 19736 19737 # Now substitute the updated list of available tags. 19738 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19739 mv "${ofile}T" "$ofile" 19740 chmod +x "$ofile" 19741 else 19742 rm -f "${ofile}T" 19743 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19744echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19745 { (exit 1); exit 1; }; } 19746 fi 19747fi 19748 19749 19750 19751# This can be used to rebuild libtool when needed 19752LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19753 19754# Always use our own libtool. 19755LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19756 19757# Prevent multiple expansion 19758 19759 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778case "$host_os" in 19779 # On Cygwin, without -no-undefined, a warning is emitted and only a static 19780 # library is built. 19781 beos* | mingw* | cygwin*) LTNOUNDEF='-no-undefined' ;; 19782 *) LTNOUNDEF='' ;; 19783esac 19784 19785 19786 19787 19788{ echo "$as_me:$LINENO: checking for inline" >&5 19789echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 19790if test "${ac_cv_c_inline+set}" = set; then 19791 echo $ECHO_N "(cached) $ECHO_C" >&6 19792else 19793 ac_cv_c_inline=no 19794for ac_kw in inline __inline__ __inline; do 19795 cat >conftest.$ac_ext <<_ACEOF 19796/* confdefs.h. */ 19797_ACEOF 19798cat confdefs.h >>conftest.$ac_ext 19799cat >>conftest.$ac_ext <<_ACEOF 19800/* end confdefs.h. */ 19801#ifndef __cplusplus 19802typedef int foo_t; 19803static $ac_kw foo_t static_foo () {return 0; } 19804$ac_kw foo_t foo () {return 0; } 19805#endif 19806 19807_ACEOF 19808rm -f conftest.$ac_objext 19809if { (ac_try="$ac_compile" 19810case "(($ac_try" in 19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19812 *) ac_try_echo=$ac_try;; 19813esac 19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19815 (eval "$ac_compile") 2>conftest.er1 19816 ac_status=$? 19817 grep -v '^ *+' conftest.er1 >conftest.err 19818 rm -f conftest.er1 19819 cat conftest.err >&5 19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19821 (exit $ac_status); } && { 19822 test -z "$ac_c_werror_flag" || 19823 test ! -s conftest.err 19824 } && test -s conftest.$ac_objext; then 19825 ac_cv_c_inline=$ac_kw 19826else 19827 echo "$as_me: failed program was:" >&5 19828sed 's/^/| /' conftest.$ac_ext >&5 19829 19830 19831fi 19832 19833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19834 test "$ac_cv_c_inline" != no && break 19835done 19836 19837fi 19838{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 19839echo "${ECHO_T}$ac_cv_c_inline" >&6; } 19840 19841 19842case $ac_cv_c_inline in 19843 inline | yes) ;; 19844 *) 19845 case $ac_cv_c_inline in 19846 no) ac_val=;; 19847 *) ac_val=$ac_cv_c_inline;; 19848 esac 19849 cat >>confdefs.h <<_ACEOF 19850#ifndef __cplusplus 19851#define inline $ac_val 19852#endif 19853_ACEOF 19854 ;; 19855esac 19856 19857{ echo "$as_me:$LINENO: checking for size_t" >&5 19858echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 19859if test "${ac_cv_type_size_t+set}" = set; then 19860 echo $ECHO_N "(cached) $ECHO_C" >&6 19861else 19862 cat >conftest.$ac_ext <<_ACEOF 19863/* confdefs.h. */ 19864_ACEOF 19865cat confdefs.h >>conftest.$ac_ext 19866cat >>conftest.$ac_ext <<_ACEOF 19867/* end confdefs.h. */ 19868$ac_includes_default 19869typedef size_t ac__type_new_; 19870int 19871main () 19872{ 19873if ((ac__type_new_ *) 0) 19874 return 0; 19875if (sizeof (ac__type_new_)) 19876 return 0; 19877 ; 19878 return 0; 19879} 19880_ACEOF 19881rm -f conftest.$ac_objext 19882if { (ac_try="$ac_compile" 19883case "(($ac_try" in 19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19885 *) ac_try_echo=$ac_try;; 19886esac 19887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19888 (eval "$ac_compile") 2>conftest.er1 19889 ac_status=$? 19890 grep -v '^ *+' conftest.er1 >conftest.err 19891 rm -f conftest.er1 19892 cat conftest.err >&5 19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19894 (exit $ac_status); } && { 19895 test -z "$ac_c_werror_flag" || 19896 test ! -s conftest.err 19897 } && test -s conftest.$ac_objext; then 19898 ac_cv_type_size_t=yes 19899else 19900 echo "$as_me: failed program was:" >&5 19901sed 's/^/| /' conftest.$ac_ext >&5 19902 19903 ac_cv_type_size_t=no 19904fi 19905 19906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19907fi 19908{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 19909echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 19910if test $ac_cv_type_size_t = yes; then 19911 : 19912else 19913 19914cat >>confdefs.h <<_ACEOF 19915#define size_t unsigned int 19916_ACEOF 19917 19918fi 19919 19920 19921 { echo "$as_me:$LINENO: checking for long long int" >&5 19922echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } 19923if test "${ac_cv_type_long_long_int+set}" = set; then 19924 echo $ECHO_N "(cached) $ECHO_C" >&6 19925else 19926 cat >conftest.$ac_ext <<_ACEOF 19927 19928 /* confdefs.h. */ 19929_ACEOF 19930cat confdefs.h >>conftest.$ac_ext 19931cat >>conftest.$ac_ext <<_ACEOF 19932/* end confdefs.h. */ 19933/* Test preprocessor. */ 19934 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 19935 error in preprocessor; 19936 #endif 19937 #if ! (18446744073709551615ULL <= -1ull) 19938 error in preprocessor; 19939 #endif 19940 /* Test literals. */ 19941 long long int ll = 9223372036854775807ll; 19942 long long int nll = -9223372036854775807LL; 19943 unsigned long long int ull = 18446744073709551615ULL; 19944 /* Test constant expressions. */ 19945 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 19946 ? 1 : -1)]; 19947 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 19948 ? 1 : -1)]; 19949 int i = 63; 19950int 19951main () 19952{ 19953/* Test availability of runtime routines for shift and division. */ 19954 long long int llmax = 9223372036854775807ll; 19955 unsigned long long int ullmax = 18446744073709551615ull; 19956 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 19957 | (llmax / ll) | (llmax % ll) 19958 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 19959 | (ullmax / ull) | (ullmax % ull)); 19960 ; 19961 return 0; 19962} 19963 19964_ACEOF 19965rm -f conftest.$ac_objext conftest$ac_exeext 19966if { (ac_try="$ac_link" 19967case "(($ac_try" in 19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19969 *) ac_try_echo=$ac_try;; 19970esac 19971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19972 (eval "$ac_link") 2>conftest.er1 19973 ac_status=$? 19974 grep -v '^ *+' conftest.er1 >conftest.err 19975 rm -f conftest.er1 19976 cat conftest.err >&5 19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19978 (exit $ac_status); } && { 19979 test -z "$ac_c_werror_flag" || 19980 test ! -s conftest.err 19981 } && test -s conftest$ac_exeext && 19982 $as_test_x conftest$ac_exeext; then 19983 if test "$cross_compiling" = yes; then 19984 ac_cv_type_long_long_int=yes 19985else 19986 cat >conftest.$ac_ext <<_ACEOF 19987/* confdefs.h. */ 19988_ACEOF 19989cat confdefs.h >>conftest.$ac_ext 19990cat >>conftest.$ac_ext <<_ACEOF 19991/* end confdefs.h. */ 19992#include <limits.h> 19993 #ifndef LLONG_MAX 19994 # define HALF \ 19995 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 19996 # define LLONG_MAX (HALF - 1 + HALF) 19997 #endif 19998int 19999main () 20000{ 20001long long int n = 1; 20002 int i; 20003 for (i = 0; ; i++) 20004 { 20005 long long int m = n << i; 20006 if (m >> i != n) 20007 return 1; 20008 if (LLONG_MAX / 2 < m) 20009 break; 20010 } 20011 return 0; 20012 ; 20013 return 0; 20014} 20015_ACEOF 20016rm -f conftest$ac_exeext 20017if { (ac_try="$ac_link" 20018case "(($ac_try" in 20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20020 *) ac_try_echo=$ac_try;; 20021esac 20022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20023 (eval "$ac_link") 2>&5 20024 ac_status=$? 20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20027 { (case "(($ac_try" in 20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20029 *) ac_try_echo=$ac_try;; 20030esac 20031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20032 (eval "$ac_try") 2>&5 20033 ac_status=$? 20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20035 (exit $ac_status); }; }; then 20036 ac_cv_type_long_long_int=yes 20037else 20038 echo "$as_me: program exited with status $ac_status" >&5 20039echo "$as_me: failed program was:" >&5 20040sed 's/^/| /' conftest.$ac_ext >&5 20041 20042( exit $ac_status ) 20043ac_cv_type_long_long_int=no 20044fi 20045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20046fi 20047 20048 20049else 20050 echo "$as_me: failed program was:" >&5 20051sed 's/^/| /' conftest.$ac_ext >&5 20052 20053 ac_cv_type_long_long_int=no 20054fi 20055 20056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20057 conftest$ac_exeext conftest.$ac_ext 20058fi 20059{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 20060echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } 20061 if test $ac_cv_type_long_long_int = yes; then 20062 20063cat >>confdefs.h <<\_ACEOF 20064#define HAVE_LONG_LONG_INT 1 20065_ACEOF 20066 20067 fi 20068 20069 20070 20071 ac_cv_type_long_long=$ac_cv_type_long_long_int 20072 if test $ac_cv_type_long_long = yes; then 20073 20074cat >>confdefs.h <<\_ACEOF 20075#define HAVE_LONG_LONG 1 20076_ACEOF 20077 20078 fi 20079 20080 20081 { echo "$as_me:$LINENO: checking for long double" >&5 20082echo $ECHO_N "checking for long double... $ECHO_C" >&6; } 20083if test "${gt_cv_c_long_double+set}" = set; then 20084 echo $ECHO_N "(cached) $ECHO_C" >&6 20085else 20086 if test "$GCC" = yes; then 20087 gt_cv_c_long_double=yes 20088 else 20089 cat >conftest.$ac_ext <<_ACEOF 20090/* confdefs.h. */ 20091_ACEOF 20092cat confdefs.h >>conftest.$ac_ext 20093cat >>conftest.$ac_ext <<_ACEOF 20094/* end confdefs.h. */ 20095 20096 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 20097 long double foo = 0.0; 20098 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 20099 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 20100 20101int 20102main () 20103{ 20104 20105 ; 20106 return 0; 20107} 20108_ACEOF 20109rm -f conftest.$ac_objext 20110if { (ac_try="$ac_compile" 20111case "(($ac_try" in 20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20113 *) ac_try_echo=$ac_try;; 20114esac 20115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20116 (eval "$ac_compile") 2>conftest.er1 20117 ac_status=$? 20118 grep -v '^ *+' conftest.er1 >conftest.err 20119 rm -f conftest.er1 20120 cat conftest.err >&5 20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20122 (exit $ac_status); } && { 20123 test -z "$ac_c_werror_flag" || 20124 test ! -s conftest.err 20125 } && test -s conftest.$ac_objext; then 20126 gt_cv_c_long_double=yes 20127else 20128 echo "$as_me: failed program was:" >&5 20129sed 's/^/| /' conftest.$ac_ext >&5 20130 20131 gt_cv_c_long_double=no 20132fi 20133 20134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20135 fi 20136fi 20137{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 20138echo "${ECHO_T}$gt_cv_c_long_double" >&6; } 20139 if test $gt_cv_c_long_double = yes; then 20140 20141cat >>confdefs.h <<\_ACEOF 20142#define HAVE_LONG_DOUBLE 1 20143_ACEOF 20144 20145 fi 20146 20147 20148 { echo "$as_me:$LINENO: checking for wchar_t" >&5 20149echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } 20150if test "${gt_cv_c_wchar_t+set}" = set; then 20151 echo $ECHO_N "(cached) $ECHO_C" >&6 20152else 20153 cat >conftest.$ac_ext <<_ACEOF 20154/* confdefs.h. */ 20155_ACEOF 20156cat confdefs.h >>conftest.$ac_ext 20157cat >>conftest.$ac_ext <<_ACEOF 20158/* end confdefs.h. */ 20159#include <stddef.h> 20160 wchar_t foo = (wchar_t)'\0'; 20161int 20162main () 20163{ 20164 20165 ; 20166 return 0; 20167} 20168_ACEOF 20169rm -f conftest.$ac_objext 20170if { (ac_try="$ac_compile" 20171case "(($ac_try" in 20172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20173 *) ac_try_echo=$ac_try;; 20174esac 20175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20176 (eval "$ac_compile") 2>conftest.er1 20177 ac_status=$? 20178 grep -v '^ *+' conftest.er1 >conftest.err 20179 rm -f conftest.er1 20180 cat conftest.err >&5 20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20182 (exit $ac_status); } && { 20183 test -z "$ac_c_werror_flag" || 20184 test ! -s conftest.err 20185 } && test -s conftest.$ac_objext; then 20186 gt_cv_c_wchar_t=yes 20187else 20188 echo "$as_me: failed program was:" >&5 20189sed 's/^/| /' conftest.$ac_ext >&5 20190 20191 gt_cv_c_wchar_t=no 20192fi 20193 20194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20195fi 20196{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 20197echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } 20198 if test $gt_cv_c_wchar_t = yes; then 20199 20200cat >>confdefs.h <<\_ACEOF 20201#define HAVE_WCHAR_T 1 20202_ACEOF 20203 20204 fi 20205 20206 20207 { echo "$as_me:$LINENO: checking for wint_t" >&5 20208echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } 20209if test "${gt_cv_c_wint_t+set}" = set; then 20210 echo $ECHO_N "(cached) $ECHO_C" >&6 20211else 20212 cat >conftest.$ac_ext <<_ACEOF 20213/* confdefs.h. */ 20214_ACEOF 20215cat confdefs.h >>conftest.$ac_ext 20216cat >>conftest.$ac_ext <<_ACEOF 20217/* end confdefs.h. */ 20218 20219/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 20220 <wchar.h>. 20221 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 20222 before <wchar.h>. */ 20223#include <stddef.h> 20224#include <stdio.h> 20225#include <time.h> 20226#include <wchar.h> 20227 wint_t foo = (wchar_t)'\0'; 20228int 20229main () 20230{ 20231 20232 ; 20233 return 0; 20234} 20235_ACEOF 20236rm -f conftest.$ac_objext 20237if { (ac_try="$ac_compile" 20238case "(($ac_try" in 20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20240 *) ac_try_echo=$ac_try;; 20241esac 20242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20243 (eval "$ac_compile") 2>conftest.er1 20244 ac_status=$? 20245 grep -v '^ *+' conftest.er1 >conftest.err 20246 rm -f conftest.er1 20247 cat conftest.err >&5 20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20249 (exit $ac_status); } && { 20250 test -z "$ac_c_werror_flag" || 20251 test ! -s conftest.err 20252 } && test -s conftest.$ac_objext; then 20253 gt_cv_c_wint_t=yes 20254else 20255 echo "$as_me: failed program was:" >&5 20256sed 's/^/| /' conftest.$ac_ext >&5 20257 20258 gt_cv_c_wint_t=no 20259fi 20260 20261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20262fi 20263{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 20264echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } 20265 if test $gt_cv_c_wint_t = yes; then 20266 20267cat >>confdefs.h <<\_ACEOF 20268#define HAVE_WINT_T 1 20269_ACEOF 20270 20271 fi 20272 20273{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 20274echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } 20275if test "${ac_cv_type_ptrdiff_t+set}" = set; then 20276 echo $ECHO_N "(cached) $ECHO_C" >&6 20277else 20278 cat >conftest.$ac_ext <<_ACEOF 20279/* confdefs.h. */ 20280_ACEOF 20281cat confdefs.h >>conftest.$ac_ext 20282cat >>conftest.$ac_ext <<_ACEOF 20283/* end confdefs.h. */ 20284$ac_includes_default 20285typedef ptrdiff_t ac__type_new_; 20286int 20287main () 20288{ 20289if ((ac__type_new_ *) 0) 20290 return 0; 20291if (sizeof (ac__type_new_)) 20292 return 0; 20293 ; 20294 return 0; 20295} 20296_ACEOF 20297rm -f conftest.$ac_objext 20298if { (ac_try="$ac_compile" 20299case "(($ac_try" in 20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20301 *) ac_try_echo=$ac_try;; 20302esac 20303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20304 (eval "$ac_compile") 2>conftest.er1 20305 ac_status=$? 20306 grep -v '^ *+' conftest.er1 >conftest.err 20307 rm -f conftest.er1 20308 cat conftest.err >&5 20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20310 (exit $ac_status); } && { 20311 test -z "$ac_c_werror_flag" || 20312 test ! -s conftest.err 20313 } && test -s conftest.$ac_objext; then 20314 ac_cv_type_ptrdiff_t=yes 20315else 20316 echo "$as_me: failed program was:" >&5 20317sed 's/^/| /' conftest.$ac_ext >&5 20318 20319 ac_cv_type_ptrdiff_t=no 20320fi 20321 20322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20323fi 20324{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 20325echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } 20326if test $ac_cv_type_ptrdiff_t = yes; then 20327 : 20328else 20329 20330cat >>confdefs.h <<\_ACEOF 20331#define ptrdiff_t long 20332_ACEOF 20333 20334 20335fi 20336 20337 20338 { echo "$as_me:$LINENO: checking for inttypes.h" >&5 20339echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 20340if test "${gl_cv_header_inttypes_h+set}" = set; then 20341 echo $ECHO_N "(cached) $ECHO_C" >&6 20342else 20343 cat >conftest.$ac_ext <<_ACEOF 20344/* confdefs.h. */ 20345_ACEOF 20346cat confdefs.h >>conftest.$ac_ext 20347cat >>conftest.$ac_ext <<_ACEOF 20348/* end confdefs.h. */ 20349#include <sys/types.h> 20350#include <inttypes.h> 20351int 20352main () 20353{ 20354uintmax_t i = (uintmax_t) -1; return !i; 20355 ; 20356 return 0; 20357} 20358_ACEOF 20359rm -f conftest.$ac_objext 20360if { (ac_try="$ac_compile" 20361case "(($ac_try" in 20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20363 *) ac_try_echo=$ac_try;; 20364esac 20365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20366 (eval "$ac_compile") 2>conftest.er1 20367 ac_status=$? 20368 grep -v '^ *+' conftest.er1 >conftest.err 20369 rm -f conftest.er1 20370 cat conftest.err >&5 20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20372 (exit $ac_status); } && { 20373 test -z "$ac_c_werror_flag" || 20374 test ! -s conftest.err 20375 } && test -s conftest.$ac_objext; then 20376 gl_cv_header_inttypes_h=yes 20377else 20378 echo "$as_me: failed program was:" >&5 20379sed 's/^/| /' conftest.$ac_ext >&5 20380 20381 gl_cv_header_inttypes_h=no 20382fi 20383 20384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20385fi 20386{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 20387echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; } 20388 if test $gl_cv_header_inttypes_h = yes; then 20389 20390cat >>confdefs.h <<_ACEOF 20391#define HAVE_INTTYPES_H_WITH_UINTMAX 1 20392_ACEOF 20393 20394 fi 20395 20396 20397 { echo "$as_me:$LINENO: checking for stdint.h" >&5 20398echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 20399if test "${gl_cv_header_stdint_h+set}" = set; then 20400 echo $ECHO_N "(cached) $ECHO_C" >&6 20401else 20402 cat >conftest.$ac_ext <<_ACEOF 20403/* confdefs.h. */ 20404_ACEOF 20405cat confdefs.h >>conftest.$ac_ext 20406cat >>conftest.$ac_ext <<_ACEOF 20407/* end confdefs.h. */ 20408#include <sys/types.h> 20409#include <stdint.h> 20410int 20411main () 20412{ 20413uintmax_t i = (uintmax_t) -1; return !i; 20414 ; 20415 return 0; 20416} 20417_ACEOF 20418rm -f conftest.$ac_objext 20419if { (ac_try="$ac_compile" 20420case "(($ac_try" in 20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20422 *) ac_try_echo=$ac_try;; 20423esac 20424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20425 (eval "$ac_compile") 2>conftest.er1 20426 ac_status=$? 20427 grep -v '^ *+' conftest.er1 >conftest.err 20428 rm -f conftest.er1 20429 cat conftest.err >&5 20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20431 (exit $ac_status); } && { 20432 test -z "$ac_c_werror_flag" || 20433 test ! -s conftest.err 20434 } && test -s conftest.$ac_objext; then 20435 gl_cv_header_stdint_h=yes 20436else 20437 echo "$as_me: failed program was:" >&5 20438sed 's/^/| /' conftest.$ac_ext >&5 20439 20440 gl_cv_header_stdint_h=no 20441fi 20442 20443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20444fi 20445{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 20446echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; } 20447 if test $gl_cv_header_stdint_h = yes; then 20448 20449cat >>confdefs.h <<_ACEOF 20450#define HAVE_STDINT_H_WITH_UINTMAX 1 20451_ACEOF 20452 20453 fi 20454 20455 20456 20457 20458 { echo "$as_me:$LINENO: checking for intmax_t" >&5 20459echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } 20460if test "${gt_cv_c_intmax_t+set}" = set; then 20461 echo $ECHO_N "(cached) $ECHO_C" >&6 20462else 20463 cat >conftest.$ac_ext <<_ACEOF 20464/* confdefs.h. */ 20465_ACEOF 20466cat confdefs.h >>conftest.$ac_ext 20467cat >>conftest.$ac_ext <<_ACEOF 20468/* end confdefs.h. */ 20469 20470#include <stddef.h> 20471#include <stdlib.h> 20472#if HAVE_STDINT_H_WITH_UINTMAX 20473#include <stdint.h> 20474#endif 20475#if HAVE_INTTYPES_H_WITH_UINTMAX 20476#include <inttypes.h> 20477#endif 20478 20479int 20480main () 20481{ 20482intmax_t x = -1; 20483 return !x; 20484 ; 20485 return 0; 20486} 20487_ACEOF 20488rm -f conftest.$ac_objext 20489if { (ac_try="$ac_compile" 20490case "(($ac_try" in 20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20492 *) ac_try_echo=$ac_try;; 20493esac 20494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20495 (eval "$ac_compile") 2>conftest.er1 20496 ac_status=$? 20497 grep -v '^ *+' conftest.er1 >conftest.err 20498 rm -f conftest.er1 20499 cat conftest.err >&5 20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20501 (exit $ac_status); } && { 20502 test -z "$ac_c_werror_flag" || 20503 test ! -s conftest.err 20504 } && test -s conftest.$ac_objext; then 20505 gt_cv_c_intmax_t=yes 20506else 20507 echo "$as_me: failed program was:" >&5 20508sed 's/^/| /' conftest.$ac_ext >&5 20509 20510 gt_cv_c_intmax_t=no 20511fi 20512 20513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20514fi 20515{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 20516echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } 20517 if test $gt_cv_c_intmax_t = yes; then 20518 20519cat >>confdefs.h <<\_ACEOF 20520#define HAVE_INTMAX_T 1 20521_ACEOF 20522 20523 fi 20524 20525 20526 20527for ac_header in stdint.h 20528do 20529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20530if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20531 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20534 echo $ECHO_N "(cached) $ECHO_C" >&6 20535fi 20536ac_res=`eval echo '${'$as_ac_Header'}'` 20537 { echo "$as_me:$LINENO: result: $ac_res" >&5 20538echo "${ECHO_T}$ac_res" >&6; } 20539else 20540 # Is the header compilable? 20541{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20543cat >conftest.$ac_ext <<_ACEOF 20544/* confdefs.h. */ 20545_ACEOF 20546cat confdefs.h >>conftest.$ac_ext 20547cat >>conftest.$ac_ext <<_ACEOF 20548/* end confdefs.h. */ 20549$ac_includes_default 20550#include <$ac_header> 20551_ACEOF 20552rm -f conftest.$ac_objext 20553if { (ac_try="$ac_compile" 20554case "(($ac_try" in 20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20556 *) ac_try_echo=$ac_try;; 20557esac 20558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20559 (eval "$ac_compile") 2>conftest.er1 20560 ac_status=$? 20561 grep -v '^ *+' conftest.er1 >conftest.err 20562 rm -f conftest.er1 20563 cat conftest.err >&5 20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20565 (exit $ac_status); } && { 20566 test -z "$ac_c_werror_flag" || 20567 test ! -s conftest.err 20568 } && test -s conftest.$ac_objext; then 20569 ac_header_compiler=yes 20570else 20571 echo "$as_me: failed program was:" >&5 20572sed 's/^/| /' conftest.$ac_ext >&5 20573 20574 ac_header_compiler=no 20575fi 20576 20577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20578{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20579echo "${ECHO_T}$ac_header_compiler" >&6; } 20580 20581# Is the header present? 20582{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20584cat >conftest.$ac_ext <<_ACEOF 20585/* confdefs.h. */ 20586_ACEOF 20587cat confdefs.h >>conftest.$ac_ext 20588cat >>conftest.$ac_ext <<_ACEOF 20589/* end confdefs.h. */ 20590#include <$ac_header> 20591_ACEOF 20592if { (ac_try="$ac_cpp conftest.$ac_ext" 20593case "(($ac_try" in 20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20595 *) ac_try_echo=$ac_try;; 20596esac 20597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20599 ac_status=$? 20600 grep -v '^ *+' conftest.er1 >conftest.err 20601 rm -f conftest.er1 20602 cat conftest.err >&5 20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20604 (exit $ac_status); } >/dev/null && { 20605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20606 test ! -s conftest.err 20607 }; then 20608 ac_header_preproc=yes 20609else 20610 echo "$as_me: failed program was:" >&5 20611sed 's/^/| /' conftest.$ac_ext >&5 20612 20613 ac_header_preproc=no 20614fi 20615 20616rm -f conftest.err conftest.$ac_ext 20617{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20618echo "${ECHO_T}$ac_header_preproc" >&6; } 20619 20620# So? What about this header? 20621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20622 yes:no: ) 20623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20624echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20626echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20627 ac_header_preproc=yes 20628 ;; 20629 no:yes:* ) 20630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20631echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20633echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20635echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20637echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20639echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20641echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20642 20643 ;; 20644esac 20645{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20648 echo $ECHO_N "(cached) $ECHO_C" >&6 20649else 20650 eval "$as_ac_Header=\$ac_header_preproc" 20651fi 20652ac_res=`eval echo '${'$as_ac_Header'}'` 20653 { echo "$as_me:$LINENO: result: $ac_res" >&5 20654echo "${ECHO_T}$ac_res" >&6; } 20655 20656fi 20657if test `eval echo '${'$as_ac_Header'}'` = yes; then 20658 cat >>confdefs.h <<_ACEOF 20659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20660_ACEOF 20661 20662fi 20663 20664done 20665 20666 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 20667echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } 20668 if test "${gl_cv_size_max+set}" = set; then 20669 echo $ECHO_N "(cached) $ECHO_C" >&6 20670else 20671 20672 gl_cv_size_max= 20673 cat >conftest.$ac_ext <<_ACEOF 20674/* confdefs.h. */ 20675_ACEOF 20676cat confdefs.h >>conftest.$ac_ext 20677cat >>conftest.$ac_ext <<_ACEOF 20678/* end confdefs.h. */ 20679 20680#include <limits.h> 20681#if HAVE_STDINT_H 20682#include <stdint.h> 20683#endif 20684#ifdef SIZE_MAX 20685Found it 20686#endif 20687 20688_ACEOF 20689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20690 $EGREP "Found it" >/dev/null 2>&1; then 20691 gl_cv_size_max=yes 20692fi 20693rm -f conftest* 20694 20695 if test -z "$gl_cv_size_max"; then 20696 if test "$cross_compiling" = yes; then 20697 # Depending upon the size, compute the lo and hi bounds. 20698cat >conftest.$ac_ext <<_ACEOF 20699/* confdefs.h. */ 20700_ACEOF 20701cat confdefs.h >>conftest.$ac_ext 20702cat >>conftest.$ac_ext <<_ACEOF 20703/* end confdefs.h. */ 20704#include <stddef.h> 20705#include <limits.h> 20706int 20707main () 20708{ 20709static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)]; 20710test_array [0] = 0 20711 20712 ; 20713 return 0; 20714} 20715_ACEOF 20716rm -f conftest.$ac_objext 20717if { (ac_try="$ac_compile" 20718case "(($ac_try" in 20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20720 *) ac_try_echo=$ac_try;; 20721esac 20722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20723 (eval "$ac_compile") 2>conftest.er1 20724 ac_status=$? 20725 grep -v '^ *+' conftest.er1 >conftest.err 20726 rm -f conftest.er1 20727 cat conftest.err >&5 20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20729 (exit $ac_status); } && { 20730 test -z "$ac_c_werror_flag" || 20731 test ! -s conftest.err 20732 } && test -s conftest.$ac_objext; then 20733 ac_lo=0 ac_mid=0 20734 while :; do 20735 cat >conftest.$ac_ext <<_ACEOF 20736/* confdefs.h. */ 20737_ACEOF 20738cat confdefs.h >>conftest.$ac_ext 20739cat >>conftest.$ac_ext <<_ACEOF 20740/* end confdefs.h. */ 20741#include <stddef.h> 20742#include <limits.h> 20743int 20744main () 20745{ 20746static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; 20747test_array [0] = 0 20748 20749 ; 20750 return 0; 20751} 20752_ACEOF 20753rm -f conftest.$ac_objext 20754if { (ac_try="$ac_compile" 20755case "(($ac_try" in 20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20757 *) ac_try_echo=$ac_try;; 20758esac 20759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20760 (eval "$ac_compile") 2>conftest.er1 20761 ac_status=$? 20762 grep -v '^ *+' conftest.er1 >conftest.err 20763 rm -f conftest.er1 20764 cat conftest.err >&5 20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20766 (exit $ac_status); } && { 20767 test -z "$ac_c_werror_flag" || 20768 test ! -s conftest.err 20769 } && test -s conftest.$ac_objext; then 20770 ac_hi=$ac_mid; break 20771else 20772 echo "$as_me: failed program was:" >&5 20773sed 's/^/| /' conftest.$ac_ext >&5 20774 20775 ac_lo=`expr $ac_mid + 1` 20776 if test $ac_lo -le $ac_mid; then 20777 ac_lo= ac_hi= 20778 break 20779 fi 20780 ac_mid=`expr 2 '*' $ac_mid + 1` 20781fi 20782 20783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20784 done 20785else 20786 echo "$as_me: failed program was:" >&5 20787sed 's/^/| /' conftest.$ac_ext >&5 20788 20789 cat >conftest.$ac_ext <<_ACEOF 20790/* confdefs.h. */ 20791_ACEOF 20792cat confdefs.h >>conftest.$ac_ext 20793cat >>conftest.$ac_ext <<_ACEOF 20794/* end confdefs.h. */ 20795#include <stddef.h> 20796#include <limits.h> 20797int 20798main () 20799{ 20800static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)]; 20801test_array [0] = 0 20802 20803 ; 20804 return 0; 20805} 20806_ACEOF 20807rm -f conftest.$ac_objext 20808if { (ac_try="$ac_compile" 20809case "(($ac_try" in 20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20811 *) ac_try_echo=$ac_try;; 20812esac 20813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20814 (eval "$ac_compile") 2>conftest.er1 20815 ac_status=$? 20816 grep -v '^ *+' conftest.er1 >conftest.err 20817 rm -f conftest.er1 20818 cat conftest.err >&5 20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20820 (exit $ac_status); } && { 20821 test -z "$ac_c_werror_flag" || 20822 test ! -s conftest.err 20823 } && test -s conftest.$ac_objext; then 20824 ac_hi=-1 ac_mid=-1 20825 while :; do 20826 cat >conftest.$ac_ext <<_ACEOF 20827/* confdefs.h. */ 20828_ACEOF 20829cat confdefs.h >>conftest.$ac_ext 20830cat >>conftest.$ac_ext <<_ACEOF 20831/* end confdefs.h. */ 20832#include <stddef.h> 20833#include <limits.h> 20834int 20835main () 20836{ 20837static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)]; 20838test_array [0] = 0 20839 20840 ; 20841 return 0; 20842} 20843_ACEOF 20844rm -f conftest.$ac_objext 20845if { (ac_try="$ac_compile" 20846case "(($ac_try" in 20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20848 *) ac_try_echo=$ac_try;; 20849esac 20850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20851 (eval "$ac_compile") 2>conftest.er1 20852 ac_status=$? 20853 grep -v '^ *+' conftest.er1 >conftest.err 20854 rm -f conftest.er1 20855 cat conftest.err >&5 20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20857 (exit $ac_status); } && { 20858 test -z "$ac_c_werror_flag" || 20859 test ! -s conftest.err 20860 } && test -s conftest.$ac_objext; then 20861 ac_lo=$ac_mid; break 20862else 20863 echo "$as_me: failed program was:" >&5 20864sed 's/^/| /' conftest.$ac_ext >&5 20865 20866 ac_hi=`expr '(' $ac_mid ')' - 1` 20867 if test $ac_mid -le $ac_hi; then 20868 ac_lo= ac_hi= 20869 break 20870 fi 20871 ac_mid=`expr 2 '*' $ac_mid` 20872fi 20873 20874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20875 done 20876else 20877 echo "$as_me: failed program was:" >&5 20878sed 's/^/| /' conftest.$ac_ext >&5 20879 20880 ac_lo= ac_hi= 20881fi 20882 20883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20884fi 20885 20886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20887# Binary search between lo and hi bounds. 20888while test "x$ac_lo" != "x$ac_hi"; do 20889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 20890 cat >conftest.$ac_ext <<_ACEOF 20891/* confdefs.h. */ 20892_ACEOF 20893cat confdefs.h >>conftest.$ac_ext 20894cat >>conftest.$ac_ext <<_ACEOF 20895/* end confdefs.h. */ 20896#include <stddef.h> 20897#include <limits.h> 20898int 20899main () 20900{ 20901static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; 20902test_array [0] = 0 20903 20904 ; 20905 return 0; 20906} 20907_ACEOF 20908rm -f conftest.$ac_objext 20909if { (ac_try="$ac_compile" 20910case "(($ac_try" in 20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20912 *) ac_try_echo=$ac_try;; 20913esac 20914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20915 (eval "$ac_compile") 2>conftest.er1 20916 ac_status=$? 20917 grep -v '^ *+' conftest.er1 >conftest.err 20918 rm -f conftest.er1 20919 cat conftest.err >&5 20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20921 (exit $ac_status); } && { 20922 test -z "$ac_c_werror_flag" || 20923 test ! -s conftest.err 20924 } && test -s conftest.$ac_objext; then 20925 ac_hi=$ac_mid 20926else 20927 echo "$as_me: failed program was:" >&5 20928sed 's/^/| /' conftest.$ac_ext >&5 20929 20930 ac_lo=`expr '(' $ac_mid ')' + 1` 20931fi 20932 20933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20934done 20935case $ac_lo in 20936?*) size_t_bits_minus_1=$ac_lo;; 20937'') size_t_bits_minus_1= ;; 20938esac 20939else 20940 cat >conftest.$ac_ext <<_ACEOF 20941/* confdefs.h. */ 20942_ACEOF 20943cat confdefs.h >>conftest.$ac_ext 20944cat >>conftest.$ac_ext <<_ACEOF 20945/* end confdefs.h. */ 20946#include <stddef.h> 20947#include <limits.h> 20948static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; } 20949static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; } 20950#include <stdio.h> 20951#include <stdlib.h> 20952int 20953main () 20954{ 20955 20956 FILE *f = fopen ("conftest.val", "w"); 20957 if (! f) 20958 return 1; 20959 if ((sizeof (size_t) * CHAR_BIT - 1) < 0) 20960 { 20961 long int i = longval (); 20962 if (i != (sizeof (size_t) * CHAR_BIT - 1)) 20963 return 1; 20964 fprintf (f, "%ld\n", i); 20965 } 20966 else 20967 { 20968 unsigned long int i = ulongval (); 20969 if (i != (sizeof (size_t) * CHAR_BIT - 1)) 20970 return 1; 20971 fprintf (f, "%lu\n", i); 20972 } 20973 return ferror (f) || fclose (f) != 0; 20974 20975 ; 20976 return 0; 20977} 20978_ACEOF 20979rm -f conftest$ac_exeext 20980if { (ac_try="$ac_link" 20981case "(($ac_try" in 20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20983 *) ac_try_echo=$ac_try;; 20984esac 20985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20986 (eval "$ac_link") 2>&5 20987 ac_status=$? 20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20990 { (case "(($ac_try" in 20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20992 *) ac_try_echo=$ac_try;; 20993esac 20994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20995 (eval "$ac_try") 2>&5 20996 ac_status=$? 20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20998 (exit $ac_status); }; }; then 20999 size_t_bits_minus_1=`cat conftest.val` 21000else 21001 echo "$as_me: program exited with status $ac_status" >&5 21002echo "$as_me: failed program was:" >&5 21003sed 's/^/| /' conftest.$ac_ext >&5 21004 21005( exit $ac_status ) 21006size_t_bits_minus_1= 21007fi 21008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21009fi 21010rm -f conftest.val 21011 if test "$cross_compiling" = yes; then 21012 # Depending upon the size, compute the lo and hi bounds. 21013cat >conftest.$ac_ext <<_ACEOF 21014/* confdefs.h. */ 21015_ACEOF 21016cat confdefs.h >>conftest.$ac_ext 21017cat >>conftest.$ac_ext <<_ACEOF 21018/* end confdefs.h. */ 21019#include <stddef.h> 21020int 21021main () 21022{ 21023static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; 21024test_array [0] = 0 21025 21026 ; 21027 return 0; 21028} 21029_ACEOF 21030rm -f conftest.$ac_objext 21031if { (ac_try="$ac_compile" 21032case "(($ac_try" in 21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21034 *) ac_try_echo=$ac_try;; 21035esac 21036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21037 (eval "$ac_compile") 2>conftest.er1 21038 ac_status=$? 21039 grep -v '^ *+' conftest.er1 >conftest.err 21040 rm -f conftest.er1 21041 cat conftest.err >&5 21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21043 (exit $ac_status); } && { 21044 test -z "$ac_c_werror_flag" || 21045 test ! -s conftest.err 21046 } && test -s conftest.$ac_objext; then 21047 ac_lo=0 ac_mid=0 21048 while :; do 21049 cat >conftest.$ac_ext <<_ACEOF 21050/* confdefs.h. */ 21051_ACEOF 21052cat confdefs.h >>conftest.$ac_ext 21053cat >>conftest.$ac_ext <<_ACEOF 21054/* end confdefs.h. */ 21055#include <stddef.h> 21056int 21057main () 21058{ 21059static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 21060test_array [0] = 0 21061 21062 ; 21063 return 0; 21064} 21065_ACEOF 21066rm -f conftest.$ac_objext 21067if { (ac_try="$ac_compile" 21068case "(($ac_try" in 21069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21070 *) ac_try_echo=$ac_try;; 21071esac 21072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21073 (eval "$ac_compile") 2>conftest.er1 21074 ac_status=$? 21075 grep -v '^ *+' conftest.er1 >conftest.err 21076 rm -f conftest.er1 21077 cat conftest.err >&5 21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21079 (exit $ac_status); } && { 21080 test -z "$ac_c_werror_flag" || 21081 test ! -s conftest.err 21082 } && test -s conftest.$ac_objext; then 21083 ac_hi=$ac_mid; break 21084else 21085 echo "$as_me: failed program was:" >&5 21086sed 's/^/| /' conftest.$ac_ext >&5 21087 21088 ac_lo=`expr $ac_mid + 1` 21089 if test $ac_lo -le $ac_mid; then 21090 ac_lo= ac_hi= 21091 break 21092 fi 21093 ac_mid=`expr 2 '*' $ac_mid + 1` 21094fi 21095 21096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21097 done 21098else 21099 echo "$as_me: failed program was:" >&5 21100sed 's/^/| /' conftest.$ac_ext >&5 21101 21102 cat >conftest.$ac_ext <<_ACEOF 21103/* confdefs.h. */ 21104_ACEOF 21105cat confdefs.h >>conftest.$ac_ext 21106cat >>conftest.$ac_ext <<_ACEOF 21107/* end confdefs.h. */ 21108#include <stddef.h> 21109int 21110main () 21111{ 21112static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; 21113test_array [0] = 0 21114 21115 ; 21116 return 0; 21117} 21118_ACEOF 21119rm -f conftest.$ac_objext 21120if { (ac_try="$ac_compile" 21121case "(($ac_try" in 21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21123 *) ac_try_echo=$ac_try;; 21124esac 21125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21126 (eval "$ac_compile") 2>conftest.er1 21127 ac_status=$? 21128 grep -v '^ *+' conftest.er1 >conftest.err 21129 rm -f conftest.er1 21130 cat conftest.err >&5 21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21132 (exit $ac_status); } && { 21133 test -z "$ac_c_werror_flag" || 21134 test ! -s conftest.err 21135 } && test -s conftest.$ac_objext; then 21136 ac_hi=-1 ac_mid=-1 21137 while :; do 21138 cat >conftest.$ac_ext <<_ACEOF 21139/* confdefs.h. */ 21140_ACEOF 21141cat confdefs.h >>conftest.$ac_ext 21142cat >>conftest.$ac_ext <<_ACEOF 21143/* end confdefs.h. */ 21144#include <stddef.h> 21145int 21146main () 21147{ 21148static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; 21149test_array [0] = 0 21150 21151 ; 21152 return 0; 21153} 21154_ACEOF 21155rm -f conftest.$ac_objext 21156if { (ac_try="$ac_compile" 21157case "(($ac_try" in 21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21159 *) ac_try_echo=$ac_try;; 21160esac 21161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21162 (eval "$ac_compile") 2>conftest.er1 21163 ac_status=$? 21164 grep -v '^ *+' conftest.er1 >conftest.err 21165 rm -f conftest.er1 21166 cat conftest.err >&5 21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21168 (exit $ac_status); } && { 21169 test -z "$ac_c_werror_flag" || 21170 test ! -s conftest.err 21171 } && test -s conftest.$ac_objext; then 21172 ac_lo=$ac_mid; break 21173else 21174 echo "$as_me: failed program was:" >&5 21175sed 's/^/| /' conftest.$ac_ext >&5 21176 21177 ac_hi=`expr '(' $ac_mid ')' - 1` 21178 if test $ac_mid -le $ac_hi; then 21179 ac_lo= ac_hi= 21180 break 21181 fi 21182 ac_mid=`expr 2 '*' $ac_mid` 21183fi 21184 21185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21186 done 21187else 21188 echo "$as_me: failed program was:" >&5 21189sed 's/^/| /' conftest.$ac_ext >&5 21190 21191 ac_lo= ac_hi= 21192fi 21193 21194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21195fi 21196 21197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21198# Binary search between lo and hi bounds. 21199while test "x$ac_lo" != "x$ac_hi"; do 21200 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 21201 cat >conftest.$ac_ext <<_ACEOF 21202/* confdefs.h. */ 21203_ACEOF 21204cat confdefs.h >>conftest.$ac_ext 21205cat >>conftest.$ac_ext <<_ACEOF 21206/* end confdefs.h. */ 21207#include <stddef.h> 21208int 21209main () 21210{ 21211static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 21212test_array [0] = 0 21213 21214 ; 21215 return 0; 21216} 21217_ACEOF 21218rm -f conftest.$ac_objext 21219if { (ac_try="$ac_compile" 21220case "(($ac_try" in 21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21222 *) ac_try_echo=$ac_try;; 21223esac 21224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21225 (eval "$ac_compile") 2>conftest.er1 21226 ac_status=$? 21227 grep -v '^ *+' conftest.er1 >conftest.err 21228 rm -f conftest.er1 21229 cat conftest.err >&5 21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21231 (exit $ac_status); } && { 21232 test -z "$ac_c_werror_flag" || 21233 test ! -s conftest.err 21234 } && test -s conftest.$ac_objext; then 21235 ac_hi=$ac_mid 21236else 21237 echo "$as_me: failed program was:" >&5 21238sed 's/^/| /' conftest.$ac_ext >&5 21239 21240 ac_lo=`expr '(' $ac_mid ')' + 1` 21241fi 21242 21243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21244done 21245case $ac_lo in 21246?*) fits_in_uint=$ac_lo;; 21247'') fits_in_uint= ;; 21248esac 21249else 21250 cat >conftest.$ac_ext <<_ACEOF 21251/* confdefs.h. */ 21252_ACEOF 21253cat confdefs.h >>conftest.$ac_ext 21254cat >>conftest.$ac_ext <<_ACEOF 21255/* end confdefs.h. */ 21256#include <stddef.h> 21257static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } 21258static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } 21259#include <stdio.h> 21260#include <stdlib.h> 21261int 21262main () 21263{ 21264 21265 FILE *f = fopen ("conftest.val", "w"); 21266 if (! f) 21267 return 1; 21268 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) 21269 { 21270 long int i = longval (); 21271 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 21272 return 1; 21273 fprintf (f, "%ld\n", i); 21274 } 21275 else 21276 { 21277 unsigned long int i = ulongval (); 21278 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 21279 return 1; 21280 fprintf (f, "%lu\n", i); 21281 } 21282 return ferror (f) || fclose (f) != 0; 21283 21284 ; 21285 return 0; 21286} 21287_ACEOF 21288rm -f conftest$ac_exeext 21289if { (ac_try="$ac_link" 21290case "(($ac_try" in 21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21292 *) ac_try_echo=$ac_try;; 21293esac 21294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21295 (eval "$ac_link") 2>&5 21296 ac_status=$? 21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21299 { (case "(($ac_try" in 21300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21301 *) ac_try_echo=$ac_try;; 21302esac 21303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21304 (eval "$ac_try") 2>&5 21305 ac_status=$? 21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21307 (exit $ac_status); }; }; then 21308 fits_in_uint=`cat conftest.val` 21309else 21310 echo "$as_me: program exited with status $ac_status" >&5 21311echo "$as_me: failed program was:" >&5 21312sed 's/^/| /' conftest.$ac_ext >&5 21313 21314( exit $ac_status ) 21315fits_in_uint= 21316fi 21317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21318fi 21319rm -f conftest.val 21320 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then 21321 if test $fits_in_uint = 1; then 21322 cat >conftest.$ac_ext <<_ACEOF 21323/* confdefs.h. */ 21324_ACEOF 21325cat confdefs.h >>conftest.$ac_ext 21326cat >>conftest.$ac_ext <<_ACEOF 21327/* end confdefs.h. */ 21328#include <stddef.h> 21329 extern size_t foo; 21330 extern unsigned long foo; 21331 21332int 21333main () 21334{ 21335 21336 ; 21337 return 0; 21338} 21339_ACEOF 21340rm -f conftest.$ac_objext 21341if { (ac_try="$ac_compile" 21342case "(($ac_try" in 21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21344 *) ac_try_echo=$ac_try;; 21345esac 21346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21347 (eval "$ac_compile") 2>conftest.er1 21348 ac_status=$? 21349 grep -v '^ *+' conftest.er1 >conftest.err 21350 rm -f conftest.er1 21351 cat conftest.err >&5 21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21353 (exit $ac_status); } && { 21354 test -z "$ac_c_werror_flag" || 21355 test ! -s conftest.err 21356 } && test -s conftest.$ac_objext; then 21357 fits_in_uint=0 21358else 21359 echo "$as_me: failed program was:" >&5 21360sed 's/^/| /' conftest.$ac_ext >&5 21361 21362 21363fi 21364 21365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21366 fi 21367 if test $fits_in_uint = 1; then 21368 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" 21369 else 21370 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" 21371 fi 21372 else 21373 gl_cv_size_max='((size_t)~(size_t)0)' 21374 fi 21375 fi 21376 21377fi 21378 21379 { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5 21380echo "${ECHO_T}$gl_cv_size_max" >&6; } 21381 if test "$gl_cv_size_max" != yes; then 21382 21383cat >>confdefs.h <<_ACEOF 21384#define SIZE_MAX $gl_cv_size_max 21385_ACEOF 21386 21387 fi 21388 21389 21390 21391 21392 21393for ac_header in stdint.h 21394do 21395as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21397 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21400 echo $ECHO_N "(cached) $ECHO_C" >&6 21401fi 21402ac_res=`eval echo '${'$as_ac_Header'}'` 21403 { echo "$as_me:$LINENO: result: $ac_res" >&5 21404echo "${ECHO_T}$ac_res" >&6; } 21405else 21406 # Is the header compilable? 21407{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21408echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21409cat >conftest.$ac_ext <<_ACEOF 21410/* confdefs.h. */ 21411_ACEOF 21412cat confdefs.h >>conftest.$ac_ext 21413cat >>conftest.$ac_ext <<_ACEOF 21414/* end confdefs.h. */ 21415$ac_includes_default 21416#include <$ac_header> 21417_ACEOF 21418rm -f conftest.$ac_objext 21419if { (ac_try="$ac_compile" 21420case "(($ac_try" in 21421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21422 *) ac_try_echo=$ac_try;; 21423esac 21424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21425 (eval "$ac_compile") 2>conftest.er1 21426 ac_status=$? 21427 grep -v '^ *+' conftest.er1 >conftest.err 21428 rm -f conftest.er1 21429 cat conftest.err >&5 21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21431 (exit $ac_status); } && { 21432 test -z "$ac_c_werror_flag" || 21433 test ! -s conftest.err 21434 } && test -s conftest.$ac_objext; then 21435 ac_header_compiler=yes 21436else 21437 echo "$as_me: failed program was:" >&5 21438sed 's/^/| /' conftest.$ac_ext >&5 21439 21440 ac_header_compiler=no 21441fi 21442 21443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21444{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21445echo "${ECHO_T}$ac_header_compiler" >&6; } 21446 21447# Is the header present? 21448{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21450cat >conftest.$ac_ext <<_ACEOF 21451/* confdefs.h. */ 21452_ACEOF 21453cat confdefs.h >>conftest.$ac_ext 21454cat >>conftest.$ac_ext <<_ACEOF 21455/* end confdefs.h. */ 21456#include <$ac_header> 21457_ACEOF 21458if { (ac_try="$ac_cpp conftest.$ac_ext" 21459case "(($ac_try" in 21460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21461 *) ac_try_echo=$ac_try;; 21462esac 21463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21465 ac_status=$? 21466 grep -v '^ *+' conftest.er1 >conftest.err 21467 rm -f conftest.er1 21468 cat conftest.err >&5 21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21470 (exit $ac_status); } >/dev/null && { 21471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21472 test ! -s conftest.err 21473 }; then 21474 ac_header_preproc=yes 21475else 21476 echo "$as_me: failed program was:" >&5 21477sed 's/^/| /' conftest.$ac_ext >&5 21478 21479 ac_header_preproc=no 21480fi 21481 21482rm -f conftest.err conftest.$ac_ext 21483{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21484echo "${ECHO_T}$ac_header_preproc" >&6; } 21485 21486# So? What about this header? 21487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21488 yes:no: ) 21489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21490echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21492echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21493 ac_header_preproc=yes 21494 ;; 21495 no:yes:* ) 21496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21497echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21499echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21501echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21503echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21507echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21508 21509 ;; 21510esac 21511{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21514 echo $ECHO_N "(cached) $ECHO_C" >&6 21515else 21516 eval "$as_ac_Header=\$ac_header_preproc" 21517fi 21518ac_res=`eval echo '${'$as_ac_Header'}'` 21519 { echo "$as_me:$LINENO: result: $ac_res" >&5 21520echo "${ECHO_T}$ac_res" >&6; } 21521 21522fi 21523if test `eval echo '${'$as_ac_Header'}'` = yes; then 21524 cat >>confdefs.h <<_ACEOF 21525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21526_ACEOF 21527 21528fi 21529 21530done 21531 21532 21533 21534 21535# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 21536# for constant arguments. Useless! 21537{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 21538echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } 21539if test "${ac_cv_working_alloca_h+set}" = set; then 21540 echo $ECHO_N "(cached) $ECHO_C" >&6 21541else 21542 cat >conftest.$ac_ext <<_ACEOF 21543/* confdefs.h. */ 21544_ACEOF 21545cat confdefs.h >>conftest.$ac_ext 21546cat >>conftest.$ac_ext <<_ACEOF 21547/* end confdefs.h. */ 21548#include <alloca.h> 21549int 21550main () 21551{ 21552char *p = (char *) alloca (2 * sizeof (int)); 21553 if (p) return 0; 21554 ; 21555 return 0; 21556} 21557_ACEOF 21558rm -f conftest.$ac_objext conftest$ac_exeext 21559if { (ac_try="$ac_link" 21560case "(($ac_try" in 21561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21562 *) ac_try_echo=$ac_try;; 21563esac 21564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21565 (eval "$ac_link") 2>conftest.er1 21566 ac_status=$? 21567 grep -v '^ *+' conftest.er1 >conftest.err 21568 rm -f conftest.er1 21569 cat conftest.err >&5 21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21571 (exit $ac_status); } && { 21572 test -z "$ac_c_werror_flag" || 21573 test ! -s conftest.err 21574 } && test -s conftest$ac_exeext && 21575 $as_test_x conftest$ac_exeext; then 21576 ac_cv_working_alloca_h=yes 21577else 21578 echo "$as_me: failed program was:" >&5 21579sed 's/^/| /' conftest.$ac_ext >&5 21580 21581 ac_cv_working_alloca_h=no 21582fi 21583 21584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21585 conftest$ac_exeext conftest.$ac_ext 21586fi 21587{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 21588echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } 21589if test $ac_cv_working_alloca_h = yes; then 21590 21591cat >>confdefs.h <<\_ACEOF 21592#define HAVE_ALLOCA_H 1 21593_ACEOF 21594 21595fi 21596 21597{ echo "$as_me:$LINENO: checking for alloca" >&5 21598echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } 21599if test "${ac_cv_func_alloca_works+set}" = set; then 21600 echo $ECHO_N "(cached) $ECHO_C" >&6 21601else 21602 cat >conftest.$ac_ext <<_ACEOF 21603/* confdefs.h. */ 21604_ACEOF 21605cat confdefs.h >>conftest.$ac_ext 21606cat >>conftest.$ac_ext <<_ACEOF 21607/* end confdefs.h. */ 21608#ifdef __GNUC__ 21609# define alloca __builtin_alloca 21610#else 21611# ifdef _MSC_VER 21612# include <malloc.h> 21613# define alloca _alloca 21614# else 21615# ifdef HAVE_ALLOCA_H 21616# include <alloca.h> 21617# else 21618# ifdef _AIX 21619 #pragma alloca 21620# else 21621# ifndef alloca /* predefined by HP cc +Olibcalls */ 21622char *alloca (); 21623# endif 21624# endif 21625# endif 21626# endif 21627#endif 21628 21629int 21630main () 21631{ 21632char *p = (char *) alloca (1); 21633 if (p) return 0; 21634 ; 21635 return 0; 21636} 21637_ACEOF 21638rm -f conftest.$ac_objext conftest$ac_exeext 21639if { (ac_try="$ac_link" 21640case "(($ac_try" in 21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21642 *) ac_try_echo=$ac_try;; 21643esac 21644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21645 (eval "$ac_link") 2>conftest.er1 21646 ac_status=$? 21647 grep -v '^ *+' conftest.er1 >conftest.err 21648 rm -f conftest.er1 21649 cat conftest.err >&5 21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21651 (exit $ac_status); } && { 21652 test -z "$ac_c_werror_flag" || 21653 test ! -s conftest.err 21654 } && test -s conftest$ac_exeext && 21655 $as_test_x conftest$ac_exeext; then 21656 ac_cv_func_alloca_works=yes 21657else 21658 echo "$as_me: failed program was:" >&5 21659sed 's/^/| /' conftest.$ac_ext >&5 21660 21661 ac_cv_func_alloca_works=no 21662fi 21663 21664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21665 conftest$ac_exeext conftest.$ac_ext 21666fi 21667{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 21668echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } 21669 21670if test $ac_cv_func_alloca_works = yes; then 21671 21672cat >>confdefs.h <<\_ACEOF 21673#define HAVE_ALLOCA 1 21674_ACEOF 21675 21676else 21677 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 21678# that cause trouble. Some versions do not even contain alloca or 21679# contain a buggy version. If you still want to use their alloca, 21680# use ar to extract alloca.o from them instead of compiling alloca.c. 21681 21682ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 21683 21684cat >>confdefs.h <<\_ACEOF 21685#define C_ALLOCA 1 21686_ACEOF 21687 21688 21689{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 21690echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } 21691if test "${ac_cv_os_cray+set}" = set; then 21692 echo $ECHO_N "(cached) $ECHO_C" >&6 21693else 21694 cat >conftest.$ac_ext <<_ACEOF 21695/* confdefs.h. */ 21696_ACEOF 21697cat confdefs.h >>conftest.$ac_ext 21698cat >>conftest.$ac_ext <<_ACEOF 21699/* end confdefs.h. */ 21700#if defined CRAY && ! defined CRAY2 21701webecray 21702#else 21703wenotbecray 21704#endif 21705 21706_ACEOF 21707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21708 $EGREP "webecray" >/dev/null 2>&1; then 21709 ac_cv_os_cray=yes 21710else 21711 ac_cv_os_cray=no 21712fi 21713rm -f conftest* 21714 21715fi 21716{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 21717echo "${ECHO_T}$ac_cv_os_cray" >&6; } 21718if test $ac_cv_os_cray = yes; then 21719 for ac_func in _getb67 GETB67 getb67; do 21720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21721{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21723if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21724 echo $ECHO_N "(cached) $ECHO_C" >&6 21725else 21726 cat >conftest.$ac_ext <<_ACEOF 21727/* confdefs.h. */ 21728_ACEOF 21729cat confdefs.h >>conftest.$ac_ext 21730cat >>conftest.$ac_ext <<_ACEOF 21731/* end confdefs.h. */ 21732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21733 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21734#define $ac_func innocuous_$ac_func 21735 21736/* System header to define __stub macros and hopefully few prototypes, 21737 which can conflict with char $ac_func (); below. 21738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21739 <limits.h> exists even on freestanding compilers. */ 21740 21741#ifdef __STDC__ 21742# include <limits.h> 21743#else 21744# include <assert.h> 21745#endif 21746 21747#undef $ac_func 21748 21749/* Override any GCC internal prototype to avoid an error. 21750 Use char because int might match the return type of a GCC 21751 builtin and then its argument prototype would still apply. */ 21752#ifdef __cplusplus 21753extern "C" 21754#endif 21755char $ac_func (); 21756/* The GNU C library defines this for functions which it implements 21757 to always fail with ENOSYS. Some functions are actually named 21758 something starting with __ and the normal name is an alias. */ 21759#if defined __stub_$ac_func || defined __stub___$ac_func 21760choke me 21761#endif 21762 21763int 21764main () 21765{ 21766return $ac_func (); 21767 ; 21768 return 0; 21769} 21770_ACEOF 21771rm -f conftest.$ac_objext conftest$ac_exeext 21772if { (ac_try="$ac_link" 21773case "(($ac_try" in 21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21775 *) ac_try_echo=$ac_try;; 21776esac 21777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21778 (eval "$ac_link") 2>conftest.er1 21779 ac_status=$? 21780 grep -v '^ *+' conftest.er1 >conftest.err 21781 rm -f conftest.er1 21782 cat conftest.err >&5 21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21784 (exit $ac_status); } && { 21785 test -z "$ac_c_werror_flag" || 21786 test ! -s conftest.err 21787 } && test -s conftest$ac_exeext && 21788 $as_test_x conftest$ac_exeext; then 21789 eval "$as_ac_var=yes" 21790else 21791 echo "$as_me: failed program was:" >&5 21792sed 's/^/| /' conftest.$ac_ext >&5 21793 21794 eval "$as_ac_var=no" 21795fi 21796 21797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21798 conftest$ac_exeext conftest.$ac_ext 21799fi 21800ac_res=`eval echo '${'$as_ac_var'}'` 21801 { echo "$as_me:$LINENO: result: $ac_res" >&5 21802echo "${ECHO_T}$ac_res" >&6; } 21803if test `eval echo '${'$as_ac_var'}'` = yes; then 21804 21805cat >>confdefs.h <<_ACEOF 21806#define CRAY_STACKSEG_END $ac_func 21807_ACEOF 21808 21809 break 21810fi 21811 21812 done 21813fi 21814 21815{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 21816echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } 21817if test "${ac_cv_c_stack_direction+set}" = set; then 21818 echo $ECHO_N "(cached) $ECHO_C" >&6 21819else 21820 if test "$cross_compiling" = yes; then 21821 ac_cv_c_stack_direction=0 21822else 21823 cat >conftest.$ac_ext <<_ACEOF 21824/* confdefs.h. */ 21825_ACEOF 21826cat confdefs.h >>conftest.$ac_ext 21827cat >>conftest.$ac_ext <<_ACEOF 21828/* end confdefs.h. */ 21829$ac_includes_default 21830int 21831find_stack_direction () 21832{ 21833 static char *addr = 0; 21834 auto char dummy; 21835 if (addr == 0) 21836 { 21837 addr = &dummy; 21838 return find_stack_direction (); 21839 } 21840 else 21841 return (&dummy > addr) ? 1 : -1; 21842} 21843 21844int 21845main () 21846{ 21847 return find_stack_direction () < 0; 21848} 21849_ACEOF 21850rm -f conftest$ac_exeext 21851if { (ac_try="$ac_link" 21852case "(($ac_try" in 21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21854 *) ac_try_echo=$ac_try;; 21855esac 21856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21857 (eval "$ac_link") 2>&5 21858 ac_status=$? 21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21861 { (case "(($ac_try" in 21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21863 *) ac_try_echo=$ac_try;; 21864esac 21865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21866 (eval "$ac_try") 2>&5 21867 ac_status=$? 21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21869 (exit $ac_status); }; }; then 21870 ac_cv_c_stack_direction=1 21871else 21872 echo "$as_me: program exited with status $ac_status" >&5 21873echo "$as_me: failed program was:" >&5 21874sed 's/^/| /' conftest.$ac_ext >&5 21875 21876( exit $ac_status ) 21877ac_cv_c_stack_direction=-1 21878fi 21879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21880fi 21881 21882 21883fi 21884{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 21885echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } 21886 21887cat >>confdefs.h <<_ACEOF 21888#define STACK_DIRECTION $ac_cv_c_stack_direction 21889_ACEOF 21890 21891 21892fi 21893 21894cat >conftest.$ac_ext <<_ACEOF 21895/* confdefs.h. */ 21896_ACEOF 21897cat confdefs.h >>conftest.$ac_ext 21898cat >>conftest.$ac_ext <<_ACEOF 21899/* end confdefs.h. */ 21900 21901#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H 21902 Need own alloca 21903#endif 21904 21905_ACEOF 21906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21907 $EGREP "Need own alloca" >/dev/null 2>&1; then 21908 ALLOCA_H=alloca.h 21909else 21910 ALLOCA_H= 21911fi 21912rm -f conftest* 21913 21914 21915 21916 21917 21918 21919for ac_func in snprintf vasprintf wcslen 21920do 21921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21922{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21924if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21925 echo $ECHO_N "(cached) $ECHO_C" >&6 21926else 21927 cat >conftest.$ac_ext <<_ACEOF 21928/* confdefs.h. */ 21929_ACEOF 21930cat confdefs.h >>conftest.$ac_ext 21931cat >>conftest.$ac_ext <<_ACEOF 21932/* end confdefs.h. */ 21933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21934 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21935#define $ac_func innocuous_$ac_func 21936 21937/* System header to define __stub macros and hopefully few prototypes, 21938 which can conflict with char $ac_func (); below. 21939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21940 <limits.h> exists even on freestanding compilers. */ 21941 21942#ifdef __STDC__ 21943# include <limits.h> 21944#else 21945# include <assert.h> 21946#endif 21947 21948#undef $ac_func 21949 21950/* Override any GCC internal prototype to avoid an error. 21951 Use char because int might match the return type of a GCC 21952 builtin and then its argument prototype would still apply. */ 21953#ifdef __cplusplus 21954extern "C" 21955#endif 21956char $ac_func (); 21957/* The GNU C library defines this for functions which it implements 21958 to always fail with ENOSYS. Some functions are actually named 21959 something starting with __ and the normal name is an alias. */ 21960#if defined __stub_$ac_func || defined __stub___$ac_func 21961choke me 21962#endif 21963 21964int 21965main () 21966{ 21967return $ac_func (); 21968 ; 21969 return 0; 21970} 21971_ACEOF 21972rm -f conftest.$ac_objext conftest$ac_exeext 21973if { (ac_try="$ac_link" 21974case "(($ac_try" in 21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21976 *) ac_try_echo=$ac_try;; 21977esac 21978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21979 (eval "$ac_link") 2>conftest.er1 21980 ac_status=$? 21981 grep -v '^ *+' conftest.er1 >conftest.err 21982 rm -f conftest.er1 21983 cat conftest.err >&5 21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21985 (exit $ac_status); } && { 21986 test -z "$ac_c_werror_flag" || 21987 test ! -s conftest.err 21988 } && test -s conftest$ac_exeext && 21989 $as_test_x conftest$ac_exeext; then 21990 eval "$as_ac_var=yes" 21991else 21992 echo "$as_me: failed program was:" >&5 21993sed 's/^/| /' conftest.$ac_ext >&5 21994 21995 eval "$as_ac_var=no" 21996fi 21997 21998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21999 conftest$ac_exeext conftest.$ac_ext 22000fi 22001ac_res=`eval echo '${'$as_ac_var'}'` 22002 { echo "$as_me:$LINENO: result: $ac_res" >&5 22003echo "${ECHO_T}$ac_res" >&6; } 22004if test `eval echo '${'$as_ac_var'}'` = yes; then 22005 cat >>confdefs.h <<_ACEOF 22006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22007_ACEOF 22008 22009fi 22010done 22011 22012{ echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 22013echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } 22014if test "${ac_cv_have_decl__snprintf+set}" = set; then 22015 echo $ECHO_N "(cached) $ECHO_C" >&6 22016else 22017 cat >conftest.$ac_ext <<_ACEOF 22018/* confdefs.h. */ 22019_ACEOF 22020cat confdefs.h >>conftest.$ac_ext 22021cat >>conftest.$ac_ext <<_ACEOF 22022/* end confdefs.h. */ 22023$ac_includes_default 22024int 22025main () 22026{ 22027#ifndef _snprintf 22028 (void) _snprintf; 22029#endif 22030 22031 ; 22032 return 0; 22033} 22034_ACEOF 22035rm -f conftest.$ac_objext 22036if { (ac_try="$ac_compile" 22037case "(($ac_try" in 22038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22039 *) ac_try_echo=$ac_try;; 22040esac 22041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22042 (eval "$ac_compile") 2>conftest.er1 22043 ac_status=$? 22044 grep -v '^ *+' conftest.er1 >conftest.err 22045 rm -f conftest.er1 22046 cat conftest.err >&5 22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22048 (exit $ac_status); } && { 22049 test -z "$ac_c_werror_flag" || 22050 test ! -s conftest.err 22051 } && test -s conftest.$ac_objext; then 22052 ac_cv_have_decl__snprintf=yes 22053else 22054 echo "$as_me: failed program was:" >&5 22055sed 's/^/| /' conftest.$ac_ext >&5 22056 22057 ac_cv_have_decl__snprintf=no 22058fi 22059 22060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22061fi 22062{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 22063echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } 22064if test $ac_cv_have_decl__snprintf = yes; then 22065 22066cat >>confdefs.h <<_ACEOF 22067#define HAVE_DECL__SNPRINTF 1 22068_ACEOF 22069 22070 22071else 22072 cat >>confdefs.h <<_ACEOF 22073#define HAVE_DECL__SNPRINTF 0 22074_ACEOF 22075 22076 22077fi 22078 22079 22080 22081 22082 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 22083echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } 22084if test "${gt_cv_func_printf_posix+set}" = set; then 22085 echo $ECHO_N "(cached) $ECHO_C" >&6 22086else 22087 22088 if test "$cross_compiling" = yes; then 22089 22090 cat >conftest.$ac_ext <<_ACEOF 22091/* confdefs.h. */ 22092_ACEOF 22093cat confdefs.h >>conftest.$ac_ext 22094cat >>conftest.$ac_ext <<_ACEOF 22095/* end confdefs.h. */ 22096 22097#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 22098 notposix 22099#endif 22100 22101_ACEOF 22102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22103 $EGREP "notposix" >/dev/null 2>&1; then 22104 gt_cv_func_printf_posix="guessing no" 22105else 22106 gt_cv_func_printf_posix="guessing yes" 22107fi 22108rm -f conftest* 22109 22110 22111else 22112 cat >conftest.$ac_ext <<_ACEOF 22113/* confdefs.h. */ 22114_ACEOF 22115cat confdefs.h >>conftest.$ac_ext 22116cat >>conftest.$ac_ext <<_ACEOF 22117/* end confdefs.h. */ 22118 22119#include <stdio.h> 22120#include <string.h> 22121/* The string "%2$d %1$d", with dollar characters protected from the shell's 22122 dollar expansion (possibly an autoconf bug). */ 22123static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 22124static char buf[100]; 22125int main () 22126{ 22127 sprintf (buf, format, 33, 55); 22128 return (strcmp (buf, "55 33") != 0); 22129} 22130_ACEOF 22131rm -f conftest$ac_exeext 22132if { (ac_try="$ac_link" 22133case "(($ac_try" in 22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22135 *) ac_try_echo=$ac_try;; 22136esac 22137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22138 (eval "$ac_link") 2>&5 22139 ac_status=$? 22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22142 { (case "(($ac_try" in 22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22144 *) ac_try_echo=$ac_try;; 22145esac 22146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22147 (eval "$ac_try") 2>&5 22148 ac_status=$? 22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22150 (exit $ac_status); }; }; then 22151 gt_cv_func_printf_posix=yes 22152else 22153 echo "$as_me: program exited with status $ac_status" >&5 22154echo "$as_me: failed program was:" >&5 22155sed 's/^/| /' conftest.$ac_ext >&5 22156 22157( exit $ac_status ) 22158gt_cv_func_printf_posix=no 22159fi 22160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22161fi 22162 22163 22164 22165fi 22166{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 22167echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } 22168 case $gt_cv_func_printf_posix in 22169 *yes) 22170 22171cat >>confdefs.h <<\_ACEOF 22172#define HAVE_POSIX_PRINTF 1 22173_ACEOF 22174 22175 ;; 22176 esac 22177 22178 22179ac_aux_dir_abs=`cd $ac_aux_dir && pwd` 22180# Extract the first word of "dvips", so it can be a program name with args. 22181set dummy dvips; ac_word=$2 22182{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22184if test "${ac_cv_path_DVIPS+set}" = set; then 22185 echo $ECHO_N "(cached) $ECHO_C" >&6 22186else 22187 case $DVIPS in 22188 [\\/]* | ?:[\\/]*) 22189 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path. 22190 ;; 22191 *) 22192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22193for as_dir in $PATH 22194do 22195 IFS=$as_save_IFS 22196 test -z "$as_dir" && as_dir=. 22197 for ac_exec_ext in '' $ac_executable_extensions; do 22198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22199 ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext" 22200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22201 break 2 22202 fi 22203done 22204done 22205IFS=$as_save_IFS 22206 22207 test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips" 22208 ;; 22209esac 22210fi 22211DVIPS=$ac_cv_path_DVIPS 22212if test -n "$DVIPS"; then 22213 { echo "$as_me:$LINENO: result: $DVIPS" >&5 22214echo "${ECHO_T}$DVIPS" >&6; } 22215else 22216 { echo "$as_me:$LINENO: result: no" >&5 22217echo "${ECHO_T}no" >&6; } 22218fi 22219 22220 22221# Extract the first word of "texi2pdf", so it can be a program name with args. 22222set dummy texi2pdf; ac_word=$2 22223{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22225if test "${ac_cv_path_TEXI2PDF+set}" = set; then 22226 echo $ECHO_N "(cached) $ECHO_C" >&6 22227else 22228 case $TEXI2PDF in 22229 [\\/]* | ?:[\\/]*) 22230 ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path. 22231 ;; 22232 *) 22233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22234for as_dir in $PATH 22235do 22236 IFS=$as_save_IFS 22237 test -z "$as_dir" && as_dir=. 22238 for ac_exec_ext in '' $ac_executable_extensions; do 22239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22240 ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext" 22241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22242 break 2 22243 fi 22244done 22245done 22246IFS=$as_save_IFS 22247 22248 test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf" 22249 ;; 22250esac 22251fi 22252TEXI2PDF=$ac_cv_path_TEXI2PDF 22253if test -n "$TEXI2PDF"; then 22254 { echo "$as_me:$LINENO: result: $TEXI2PDF" >&5 22255echo "${ECHO_T}$TEXI2PDF" >&6; } 22256else 22257 { echo "$as_me:$LINENO: result: no" >&5 22258echo "${ECHO_T}no" >&6; } 22259fi 22260 22261 22262# Extract the first word of "perl", so it can be a program name with args. 22263set dummy perl; ac_word=$2 22264{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22266if test "${ac_cv_path_PERL+set}" = set; then 22267 echo $ECHO_N "(cached) $ECHO_C" >&6 22268else 22269 case $PERL in 22270 [\\/]* | ?:[\\/]*) 22271 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 22272 ;; 22273 *) 22274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22275for as_dir in $PATH 22276do 22277 IFS=$as_save_IFS 22278 test -z "$as_dir" && as_dir=. 22279 for ac_exec_ext in '' $ac_executable_extensions; do 22280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22281 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 22282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22283 break 2 22284 fi 22285done 22286done 22287IFS=$as_save_IFS 22288 22289 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl" 22290 ;; 22291esac 22292fi 22293PERL=$ac_cv_path_PERL 22294if test -n "$PERL"; then 22295 { echo "$as_me:$LINENO: result: $PERL" >&5 22296echo "${ECHO_T}$PERL" >&6; } 22297else 22298 { echo "$as_me:$LINENO: result: no" >&5 22299echo "${ECHO_T}no" >&6; } 22300fi 22301 22302 22303 22304ac_config_files="$ac_config_files Makefile" 22305 22306 22307cat >confcache <<\_ACEOF 22308# This file is a shell script that caches the results of configure 22309# tests run on this system so they can be shared between configure 22310# scripts and configure runs, see configure's option --config-cache. 22311# It is not useful on other systems. If it contains results you don't 22312# want to keep, you may remove or edit it. 22313# 22314# config.status only pays attention to the cache file if you give it 22315# the --recheck option to rerun configure. 22316# 22317# `ac_cv_env_foo' variables (set or unset) will be overridden when 22318# loading this file, other *unset* `ac_cv_foo' will be assigned the 22319# following values. 22320 22321_ACEOF 22322 22323# The following way of writing the cache mishandles newlines in values, 22324# but we know of no workaround that is simple, portable, and efficient. 22325# So, we kill variables containing newlines. 22326# Ultrix sh set writes to stderr and can't be redirected directly, 22327# and sets the high bit in the cache file unless we assign to the vars. 22328( 22329 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22330 eval ac_val=\$$ac_var 22331 case $ac_val in #( 22332 *${as_nl}*) 22333 case $ac_var in #( 22334 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22335echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22336 esac 22337 case $ac_var in #( 22338 _ | IFS | as_nl) ;; #( 22339 *) $as_unset $ac_var ;; 22340 esac ;; 22341 esac 22342 done 22343 22344 (set) 2>&1 | 22345 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22346 *${as_nl}ac_space=\ *) 22347 # `set' does not quote correctly, so add quotes (double-quote 22348 # substitution turns \\\\ into \\, and sed turns \\ into \). 22349 sed -n \ 22350 "s/'/'\\\\''/g; 22351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22352 ;; #( 22353 *) 22354 # `set' quotes correctly as required by POSIX, so do not add quotes. 22355 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22356 ;; 22357 esac | 22358 sort 22359) | 22360 sed ' 22361 /^ac_cv_env_/b end 22362 t clear 22363 :clear 22364 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22365 t end 22366 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22367 :end' >>confcache 22368if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22369 if test -w "$cache_file"; then 22370 test "x$cache_file" != "x/dev/null" && 22371 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22372echo "$as_me: updating cache $cache_file" >&6;} 22373 cat confcache >$cache_file 22374 else 22375 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22376echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22377 fi 22378fi 22379rm -f confcache 22380 22381test "x$prefix" = xNONE && prefix=$ac_default_prefix 22382# Let make expand exec_prefix. 22383test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22384 22385DEFS=-DHAVE_CONFIG_H 22386 22387ac_libobjs= 22388ac_ltlibobjs= 22389for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22390 # 1. Remove the extension, and $U if already installed. 22391 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22392 ac_i=`echo "$ac_i" | sed "$ac_script"` 22393 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22394 # will be set to the directory where LIBOBJS objects are built. 22395 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22396 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22397done 22398LIBOBJS=$ac_libobjs 22399 22400LTLIBOBJS=$ac_ltlibobjs 22401 22402 22403if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22404 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22405Usually this means the macro was only invoked conditionally." >&5 22406echo "$as_me: error: conditional \"AMDEP\" was never defined. 22407Usually this means the macro was only invoked conditionally." >&2;} 22408 { (exit 1); exit 1; }; } 22409fi 22410if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22411 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22412Usually this means the macro was only invoked conditionally." >&5 22413echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22414Usually this means the macro was only invoked conditionally." >&2;} 22415 { (exit 1); exit 1; }; } 22416fi 22417if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22418 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22419Usually this means the macro was only invoked conditionally." >&5 22420echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22421Usually this means the macro was only invoked conditionally." >&2;} 22422 { (exit 1); exit 1; }; } 22423fi 22424 22425: ${CONFIG_STATUS=./config.status} 22426ac_clean_files_save=$ac_clean_files 22427ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22428{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22429echo "$as_me: creating $CONFIG_STATUS" >&6;} 22430cat >$CONFIG_STATUS <<_ACEOF 22431#! $SHELL 22432# Generated by $as_me. 22433# Run this file to recreate the current configuration. 22434# Compiler output produced by configure, useful for debugging 22435# configure, is in config.log if it exists. 22436 22437debug=false 22438ac_cs_recheck=false 22439ac_cs_silent=false 22440SHELL=\${CONFIG_SHELL-$SHELL} 22441_ACEOF 22442 22443cat >>$CONFIG_STATUS <<\_ACEOF 22444## --------------------- ## 22445## M4sh Initialization. ## 22446## --------------------- ## 22447 22448# Be more Bourne compatible 22449DUALCASE=1; export DUALCASE # for MKS sh 22450if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22451 emulate sh 22452 NULLCMD=: 22453 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22454 # is contrary to our usage. Disable this feature. 22455 alias -g '${1+"$@"}'='"$@"' 22456 setopt NO_GLOB_SUBST 22457else 22458 case `(set -o) 2>/dev/null` in 22459 *posix*) set -o posix ;; 22460esac 22461 22462fi 22463 22464 22465 22466 22467# PATH needs CR 22468# Avoid depending upon Character Ranges. 22469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22472as_cr_digits='0123456789' 22473as_cr_alnum=$as_cr_Letters$as_cr_digits 22474 22475# The user is always right. 22476if test "${PATH_SEPARATOR+set}" != set; then 22477 echo "#! /bin/sh" >conf$$.sh 22478 echo "exit 0" >>conf$$.sh 22479 chmod +x conf$$.sh 22480 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22481 PATH_SEPARATOR=';' 22482 else 22483 PATH_SEPARATOR=: 22484 fi 22485 rm -f conf$$.sh 22486fi 22487 22488# Support unset when possible. 22489if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22490 as_unset=unset 22491else 22492 as_unset=false 22493fi 22494 22495 22496# IFS 22497# We need space, tab and new line, in precisely that order. Quoting is 22498# there to prevent editors from complaining about space-tab. 22499# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22500# splitting by setting IFS to empty value.) 22501as_nl=' 22502' 22503IFS=" "" $as_nl" 22504 22505# Find who we are. Look in the path if we contain no directory separator. 22506case $0 in 22507 *[\\/]* ) as_myself=$0 ;; 22508 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22509for as_dir in $PATH 22510do 22511 IFS=$as_save_IFS 22512 test -z "$as_dir" && as_dir=. 22513 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22514done 22515IFS=$as_save_IFS 22516 22517 ;; 22518esac 22519# We did not find ourselves, most probably we were run as `sh COMMAND' 22520# in which case we are not to be found in the path. 22521if test "x$as_myself" = x; then 22522 as_myself=$0 22523fi 22524if test ! -f "$as_myself"; then 22525 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22526 { (exit 1); exit 1; } 22527fi 22528 22529# Work around bugs in pre-3.0 UWIN ksh. 22530for as_var in ENV MAIL MAILPATH 22531do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22532done 22533PS1='$ ' 22534PS2='> ' 22535PS4='+ ' 22536 22537# NLS nuisances. 22538for as_var in \ 22539 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22540 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22541 LC_TELEPHONE LC_TIME 22542do 22543 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22544 eval $as_var=C; export $as_var 22545 else 22546 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22547 fi 22548done 22549 22550# Required to use basename. 22551if expr a : '\(a\)' >/dev/null 2>&1 && 22552 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22553 as_expr=expr 22554else 22555 as_expr=false 22556fi 22557 22558if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22559 as_basename=basename 22560else 22561 as_basename=false 22562fi 22563 22564 22565# Name of the executable. 22566as_me=`$as_basename -- "$0" || 22567$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22568 X"$0" : 'X\(//\)$' \| \ 22569 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22570echo X/"$0" | 22571 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22572 s//\1/ 22573 q 22574 } 22575 /^X\/\(\/\/\)$/{ 22576 s//\1/ 22577 q 22578 } 22579 /^X\/\(\/\).*/{ 22580 s//\1/ 22581 q 22582 } 22583 s/.*/./; q'` 22584 22585# CDPATH. 22586$as_unset CDPATH 22587 22588 22589 22590 as_lineno_1=$LINENO 22591 as_lineno_2=$LINENO 22592 test "x$as_lineno_1" != "x$as_lineno_2" && 22593 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22594 22595 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22596 # uniformly replaced by the line number. The first 'sed' inserts a 22597 # line-number line after each line using $LINENO; the second 'sed' 22598 # does the real work. The second script uses 'N' to pair each 22599 # line-number line with the line containing $LINENO, and appends 22600 # trailing '-' during substitution so that $LINENO is not a special 22601 # case at line end. 22602 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22603 # scripts with optimization help from Paolo Bonzini. Blame Lee 22604 # E. McMahon (1931-1989) for sed's syntax. :-) 22605 sed -n ' 22606 p 22607 /[$]LINENO/= 22608 ' <$as_myself | 22609 sed ' 22610 s/[$]LINENO.*/&-/ 22611 t lineno 22612 b 22613 :lineno 22614 N 22615 :loop 22616 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22617 t loop 22618 s/-\n.*// 22619 ' >$as_me.lineno && 22620 chmod +x "$as_me.lineno" || 22621 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22622 { (exit 1); exit 1; }; } 22623 22624 # Don't try to exec as it changes $[0], causing all sort of problems 22625 # (the dirname of $[0] is not the place where we might find the 22626 # original and so on. Autoconf is especially sensitive to this). 22627 . "./$as_me.lineno" 22628 # Exit status is that of the last command. 22629 exit 22630} 22631 22632 22633if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22634 as_dirname=dirname 22635else 22636 as_dirname=false 22637fi 22638 22639ECHO_C= ECHO_N= ECHO_T= 22640case `echo -n x` in 22641-n*) 22642 case `echo 'x\c'` in 22643 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22644 *) ECHO_C='\c';; 22645 esac;; 22646*) 22647 ECHO_N='-n';; 22648esac 22649 22650if expr a : '\(a\)' >/dev/null 2>&1 && 22651 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22652 as_expr=expr 22653else 22654 as_expr=false 22655fi 22656 22657rm -f conf$$ conf$$.exe conf$$.file 22658if test -d conf$$.dir; then 22659 rm -f conf$$.dir/conf$$.file 22660else 22661 rm -f conf$$.dir 22662 mkdir conf$$.dir 22663fi 22664echo >conf$$.file 22665if ln -s conf$$.file conf$$ 2>/dev/null; then 22666 as_ln_s='ln -s' 22667 # ... but there are two gotchas: 22668 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22669 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22670 # In both cases, we have to default to `cp -p'. 22671 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22672 as_ln_s='cp -p' 22673elif ln conf$$.file conf$$ 2>/dev/null; then 22674 as_ln_s=ln 22675else 22676 as_ln_s='cp -p' 22677fi 22678rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22679rmdir conf$$.dir 2>/dev/null 22680 22681if mkdir -p . 2>/dev/null; then 22682 as_mkdir_p=: 22683else 22684 test -d ./-p && rmdir ./-p 22685 as_mkdir_p=false 22686fi 22687 22688if test -x / >/dev/null 2>&1; then 22689 as_test_x='test -x' 22690else 22691 if ls -dL / >/dev/null 2>&1; then 22692 as_ls_L_option=L 22693 else 22694 as_ls_L_option= 22695 fi 22696 as_test_x=' 22697 eval sh -c '\'' 22698 if test -d "$1"; then 22699 test -d "$1/."; 22700 else 22701 case $1 in 22702 -*)set "./$1";; 22703 esac; 22704 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22705 ???[sx]*):;;*)false;;esac;fi 22706 '\'' sh 22707 ' 22708fi 22709as_executable_p=$as_test_x 22710 22711# Sed expression to map a string onto a valid CPP name. 22712as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22713 22714# Sed expression to map a string onto a valid variable name. 22715as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22716 22717 22718exec 6>&1 22719 22720# Save the log message, to keep $[0] and so on meaningful, and to 22721# report actual input values of CONFIG_FILES etc. instead of their 22722# values after options handling. 22723ac_log=" 22724This file was extended by $as_me, which was 22725generated by GNU Autoconf 2.61. Invocation command line was 22726 22727 CONFIG_FILES = $CONFIG_FILES 22728 CONFIG_HEADERS = $CONFIG_HEADERS 22729 CONFIG_LINKS = $CONFIG_LINKS 22730 CONFIG_COMMANDS = $CONFIG_COMMANDS 22731 $ $0 $@ 22732 22733on `(hostname || uname -n) 2>/dev/null | sed 1q` 22734" 22735 22736_ACEOF 22737 22738cat >>$CONFIG_STATUS <<_ACEOF 22739# Files that config.status was made for. 22740config_files="$ac_config_files" 22741config_headers="$ac_config_headers" 22742config_commands="$ac_config_commands" 22743 22744_ACEOF 22745 22746cat >>$CONFIG_STATUS <<\_ACEOF 22747ac_cs_usage="\ 22748\`$as_me' instantiates files from templates according to the 22749current configuration. 22750 22751Usage: $0 [OPTIONS] [FILE]... 22752 22753 -h, --help print this help, then exit 22754 -V, --version print version number and configuration settings, then exit 22755 -q, --quiet do not print progress messages 22756 -d, --debug don't remove temporary files 22757 --recheck update $as_me by reconfiguring in the same conditions 22758 --file=FILE[:TEMPLATE] 22759 instantiate the configuration file FILE 22760 --header=FILE[:TEMPLATE] 22761 instantiate the configuration header FILE 22762 22763Configuration files: 22764$config_files 22765 22766Configuration headers: 22767$config_headers 22768 22769Configuration commands: 22770$config_commands 22771 22772Report bugs to <bug-autoconf@gnu.org>." 22773 22774_ACEOF 22775cat >>$CONFIG_STATUS <<_ACEOF 22776ac_cs_version="\\ 22777config.status 22778configured by $0, generated by GNU Autoconf 2.61, 22779 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22780 22781Copyright (C) 2006 Free Software Foundation, Inc. 22782This config.status script is free software; the Free Software Foundation 22783gives unlimited permission to copy, distribute and modify it." 22784 22785ac_pwd='$ac_pwd' 22786srcdir='$srcdir' 22787INSTALL='$INSTALL' 22788MKDIR_P='$MKDIR_P' 22789_ACEOF 22790 22791cat >>$CONFIG_STATUS <<\_ACEOF 22792# If no file are specified by the user, then we need to provide default 22793# value. By we need to know if files were specified by the user. 22794ac_need_defaults=: 22795while test $# != 0 22796do 22797 case $1 in 22798 --*=*) 22799 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22800 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22801 ac_shift=: 22802 ;; 22803 *) 22804 ac_option=$1 22805 ac_optarg=$2 22806 ac_shift=shift 22807 ;; 22808 esac 22809 22810 case $ac_option in 22811 # Handling of the options. 22812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22813 ac_cs_recheck=: ;; 22814 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22815 echo "$ac_cs_version"; exit ;; 22816 --debug | --debu | --deb | --de | --d | -d ) 22817 debug=: ;; 22818 --file | --fil | --fi | --f ) 22819 $ac_shift 22820 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22821 ac_need_defaults=false;; 22822 --header | --heade | --head | --hea ) 22823 $ac_shift 22824 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22825 ac_need_defaults=false;; 22826 --he | --h) 22827 # Conflict between --help and --header 22828 { echo "$as_me: error: ambiguous option: $1 22829Try \`$0 --help' for more information." >&2 22830 { (exit 1); exit 1; }; };; 22831 --help | --hel | -h ) 22832 echo "$ac_cs_usage"; exit ;; 22833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22834 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22835 ac_cs_silent=: ;; 22836 22837 # This is an error. 22838 -*) { echo "$as_me: error: unrecognized option: $1 22839Try \`$0 --help' for more information." >&2 22840 { (exit 1); exit 1; }; } ;; 22841 22842 *) ac_config_targets="$ac_config_targets $1" 22843 ac_need_defaults=false ;; 22844 22845 esac 22846 shift 22847done 22848 22849ac_configure_extra_args= 22850 22851if $ac_cs_silent; then 22852 exec 6>/dev/null 22853 ac_configure_extra_args="$ac_configure_extra_args --silent" 22854fi 22855 22856_ACEOF 22857cat >>$CONFIG_STATUS <<_ACEOF 22858if \$ac_cs_recheck; then 22859 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22860 CONFIG_SHELL=$SHELL 22861 export CONFIG_SHELL 22862 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22863fi 22864 22865_ACEOF 22866cat >>$CONFIG_STATUS <<\_ACEOF 22867exec 5>>config.log 22868{ 22869 echo 22870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22871## Running $as_me. ## 22872_ASBOX 22873 echo "$ac_log" 22874} >&5 22875 22876_ACEOF 22877cat >>$CONFIG_STATUS <<_ACEOF 22878# 22879# INIT-COMMANDS 22880# 22881AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22882 22883_ACEOF 22884 22885cat >>$CONFIG_STATUS <<\_ACEOF 22886 22887# Handling of arguments. 22888for ac_config_target in $ac_config_targets 22889do 22890 case $ac_config_target in 22891 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22892 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22893 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22894 22895 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22896echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22897 { (exit 1); exit 1; }; };; 22898 esac 22899done 22900 22901 22902# If the user did not use the arguments to specify the items to instantiate, 22903# then the envvar interface is used. Set only those that are not. 22904# We use the long form for the default assignment because of an extremely 22905# bizarre bug on SunOS 4.1.3. 22906if $ac_need_defaults; then 22907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22910fi 22911 22912# Have a temporary directory for convenience. Make it in the build tree 22913# simply because there is no reason against having it here, and in addition, 22914# creating and moving files from /tmp can sometimes cause problems. 22915# Hook for its removal unless debugging. 22916# Note that there is a small window in which the directory will not be cleaned: 22917# after its creation but before its name has been assigned to `$tmp'. 22918$debug || 22919{ 22920 tmp= 22921 trap 'exit_status=$? 22922 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22923' 0 22924 trap '{ (exit 1); exit 1; }' 1 2 13 15 22925} 22926# Create a (secure) tmp directory for tmp files. 22927 22928{ 22929 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22930 test -n "$tmp" && test -d "$tmp" 22931} || 22932{ 22933 tmp=./conf$$-$RANDOM 22934 (umask 077 && mkdir "$tmp") 22935} || 22936{ 22937 echo "$me: cannot create a temporary directory in ." >&2 22938 { (exit 1); exit 1; } 22939} 22940 22941# 22942# Set up the sed scripts for CONFIG_FILES section. 22943# 22944 22945# No need to generate the scripts if there are no CONFIG_FILES. 22946# This happens for instance when ./config.status config.h 22947if test -n "$CONFIG_FILES"; then 22948 22949_ACEOF 22950 22951 22952 22953ac_delim='%!_!# ' 22954for ac_last_try in false false false false false :; do 22955 cat >conf$$subs.sed <<_ACEOF 22956SHELL!$SHELL$ac_delim 22957PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22958PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22959PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22960PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22961PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22962PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22963exec_prefix!$exec_prefix$ac_delim 22964prefix!$prefix$ac_delim 22965program_transform_name!$program_transform_name$ac_delim 22966bindir!$bindir$ac_delim 22967sbindir!$sbindir$ac_delim 22968libexecdir!$libexecdir$ac_delim 22969datarootdir!$datarootdir$ac_delim 22970datadir!$datadir$ac_delim 22971sysconfdir!$sysconfdir$ac_delim 22972sharedstatedir!$sharedstatedir$ac_delim 22973localstatedir!$localstatedir$ac_delim 22974includedir!$includedir$ac_delim 22975oldincludedir!$oldincludedir$ac_delim 22976docdir!$docdir$ac_delim 22977infodir!$infodir$ac_delim 22978htmldir!$htmldir$ac_delim 22979dvidir!$dvidir$ac_delim 22980pdfdir!$pdfdir$ac_delim 22981psdir!$psdir$ac_delim 22982libdir!$libdir$ac_delim 22983localedir!$localedir$ac_delim 22984mandir!$mandir$ac_delim 22985DEFS!$DEFS$ac_delim 22986ECHO_C!$ECHO_C$ac_delim 22987ECHO_N!$ECHO_N$ac_delim 22988ECHO_T!$ECHO_T$ac_delim 22989LIBS!$LIBS$ac_delim 22990build_alias!$build_alias$ac_delim 22991host_alias!$host_alias$ac_delim 22992target_alias!$target_alias$ac_delim 22993INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22994INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22995INSTALL_DATA!$INSTALL_DATA$ac_delim 22996am__isrc!$am__isrc$ac_delim 22997CYGPATH_W!$CYGPATH_W$ac_delim 22998PACKAGE!$PACKAGE$ac_delim 22999VERSION!$VERSION$ac_delim 23000ACLOCAL!$ACLOCAL$ac_delim 23001AUTOCONF!$AUTOCONF$ac_delim 23002AUTOMAKE!$AUTOMAKE$ac_delim 23003AUTOHEADER!$AUTOHEADER$ac_delim 23004MAKEINFO!$MAKEINFO$ac_delim 23005install_sh!$install_sh$ac_delim 23006STRIP!$STRIP$ac_delim 23007INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 23008mkdir_p!$mkdir_p$ac_delim 23009AWK!$AWK$ac_delim 23010SET_MAKE!$SET_MAKE$ac_delim 23011am__leading_dot!$am__leading_dot$ac_delim 23012AMTAR!$AMTAR$ac_delim 23013am__tar!$am__tar$ac_delim 23014am__untar!$am__untar$ac_delim 23015CC!$CC$ac_delim 23016CFLAGS!$CFLAGS$ac_delim 23017LDFLAGS!$LDFLAGS$ac_delim 23018CPPFLAGS!$CPPFLAGS$ac_delim 23019ac_ct_CC!$ac_ct_CC$ac_delim 23020EXEEXT!$EXEEXT$ac_delim 23021OBJEXT!$OBJEXT$ac_delim 23022DEPDIR!$DEPDIR$ac_delim 23023am__include!$am__include$ac_delim 23024am__quote!$am__quote$ac_delim 23025AMDEP_TRUE!$AMDEP_TRUE$ac_delim 23026AMDEP_FALSE!$AMDEP_FALSE$ac_delim 23027AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 23028CCDEPMODE!$CCDEPMODE$ac_delim 23029am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 23030am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 23031CXX!$CXX$ac_delim 23032CXXFLAGS!$CXXFLAGS$ac_delim 23033ac_ct_CXX!$ac_ct_CXX$ac_delim 23034CXXDEPMODE!$CXXDEPMODE$ac_delim 23035am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 23036am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 23037build!$build$ac_delim 23038build_cpu!$build_cpu$ac_delim 23039build_vendor!$build_vendor$ac_delim 23040build_os!$build_os$ac_delim 23041host!$host$ac_delim 23042host_cpu!$host_cpu$ac_delim 23043host_vendor!$host_vendor$ac_delim 23044host_os!$host_os$ac_delim 23045SED!$SED$ac_delim 23046GREP!$GREP$ac_delim 23047EGREP!$EGREP$ac_delim 23048LN_S!$LN_S$ac_delim 23049ECHO!$ECHO$ac_delim 23050AR!$AR$ac_delim 23051RANLIB!$RANLIB$ac_delim 23052DLLTOOL!$DLLTOOL$ac_delim 23053_ACEOF 23054 23055 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23056 break 23057 elif $ac_last_try; then 23058 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23059echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23060 { (exit 1); exit 1; }; } 23061 else 23062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23063 fi 23064done 23065 23066ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23067if test -n "$ac_eof"; then 23068 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23069 ac_eof=`expr $ac_eof + 1` 23070fi 23071 23072cat >>$CONFIG_STATUS <<_ACEOF 23073cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23074/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23075_ACEOF 23076sed ' 23077s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23078s/^/s,@/; s/!/@,|#_!!_#|/ 23079:n 23080t n 23081s/'"$ac_delim"'$/,g/; t 23082s/$/\\/; p 23083N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23084' >>$CONFIG_STATUS <conf$$subs.sed 23085rm -f conf$$subs.sed 23086cat >>$CONFIG_STATUS <<_ACEOF 23087CEOF$ac_eof 23088_ACEOF 23089 23090 23091ac_delim='%!_!# ' 23092for ac_last_try in false false false false false :; do 23093 cat >conf$$subs.sed <<_ACEOF 23094AS!$AS$ac_delim 23095OBJDUMP!$OBJDUMP$ac_delim 23096CPP!$CPP$ac_delim 23097CXXCPP!$CXXCPP$ac_delim 23098F77!$F77$ac_delim 23099FFLAGS!$FFLAGS$ac_delim 23100ac_ct_F77!$ac_ct_F77$ac_delim 23101LIBTOOL!$LIBTOOL$ac_delim 23102LTNOUNDEF!$LTNOUNDEF$ac_delim 23103ALLOCA!$ALLOCA$ac_delim 23104ALLOCA_H!$ALLOCA_H$ac_delim 23105DVIPS!$DVIPS$ac_delim 23106TEXI2PDF!$TEXI2PDF$ac_delim 23107PERL!$PERL$ac_delim 23108LIBOBJS!$LIBOBJS$ac_delim 23109LTLIBOBJS!$LTLIBOBJS$ac_delim 23110_ACEOF 23111 23112 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then 23113 break 23114 elif $ac_last_try; then 23115 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23116echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23117 { (exit 1); exit 1; }; } 23118 else 23119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23120 fi 23121done 23122 23123ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23124if test -n "$ac_eof"; then 23125 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23126 ac_eof=`expr $ac_eof + 1` 23127fi 23128 23129cat >>$CONFIG_STATUS <<_ACEOF 23130cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23131/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23132_ACEOF 23133sed ' 23134s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23135s/^/s,@/; s/!/@,|#_!!_#|/ 23136:n 23137t n 23138s/'"$ac_delim"'$/,g/; t 23139s/$/\\/; p 23140N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23141' >>$CONFIG_STATUS <conf$$subs.sed 23142rm -f conf$$subs.sed 23143cat >>$CONFIG_STATUS <<_ACEOF 23144:end 23145s/|#_!!_#|//g 23146CEOF$ac_eof 23147_ACEOF 23148 23149 23150# VPATH may cause trouble with some makes, so we remove $(srcdir), 23151# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23152# trailing colons and then remove the whole line if VPATH becomes empty 23153# (actually we leave an empty line to preserve line numbers). 23154if test "x$srcdir" = x.; then 23155 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23156s/:*\$(srcdir):*/:/ 23157s/:*\${srcdir}:*/:/ 23158s/:*@srcdir@:*/:/ 23159s/^\([^=]*=[ ]*\):*/\1/ 23160s/:*$// 23161s/^[^=]*=[ ]*$// 23162}' 23163fi 23164 23165cat >>$CONFIG_STATUS <<\_ACEOF 23166fi # test -n "$CONFIG_FILES" 23167 23168 23169for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23170do 23171 case $ac_tag in 23172 :[FHLC]) ac_mode=$ac_tag; continue;; 23173 esac 23174 case $ac_mode$ac_tag in 23175 :[FHL]*:*);; 23176 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23177echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23178 { (exit 1); exit 1; }; };; 23179 :[FH]-) ac_tag=-:-;; 23180 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23181 esac 23182 ac_save_IFS=$IFS 23183 IFS=: 23184 set x $ac_tag 23185 IFS=$ac_save_IFS 23186 shift 23187 ac_file=$1 23188 shift 23189 23190 case $ac_mode in 23191 :L) ac_source=$1;; 23192 :[FH]) 23193 ac_file_inputs= 23194 for ac_f 23195 do 23196 case $ac_f in 23197 -) ac_f="$tmp/stdin";; 23198 *) # Look for the file first in the build tree, then in the source tree 23199 # (if the path is not absolute). The absolute path cannot be DOS-style, 23200 # because $ac_f cannot contain `:'. 23201 test -f "$ac_f" || 23202 case $ac_f in 23203 [\\/$]*) false;; 23204 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23205 esac || 23206 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23207echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23208 { (exit 1); exit 1; }; };; 23209 esac 23210 ac_file_inputs="$ac_file_inputs $ac_f" 23211 done 23212 23213 # Let's still pretend it is `configure' which instantiates (i.e., don't 23214 # use $as_me), people would be surprised to read: 23215 # /* config.h. Generated by config.status. */ 23216 configure_input="Generated from "`IFS=: 23217 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23218 if test x"$ac_file" != x-; then 23219 configure_input="$ac_file. $configure_input" 23220 { echo "$as_me:$LINENO: creating $ac_file" >&5 23221echo "$as_me: creating $ac_file" >&6;} 23222 fi 23223 23224 case $ac_tag in 23225 *:-:* | *:-) cat >"$tmp/stdin";; 23226 esac 23227 ;; 23228 esac 23229 23230 ac_dir=`$as_dirname -- "$ac_file" || 23231$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23232 X"$ac_file" : 'X\(//\)[^/]' \| \ 23233 X"$ac_file" : 'X\(//\)$' \| \ 23234 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23235echo X"$ac_file" | 23236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23237 s//\1/ 23238 q 23239 } 23240 /^X\(\/\/\)[^/].*/{ 23241 s//\1/ 23242 q 23243 } 23244 /^X\(\/\/\)$/{ 23245 s//\1/ 23246 q 23247 } 23248 /^X\(\/\).*/{ 23249 s//\1/ 23250 q 23251 } 23252 s/.*/./; q'` 23253 { as_dir="$ac_dir" 23254 case $as_dir in #( 23255 -*) as_dir=./$as_dir;; 23256 esac 23257 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23258 as_dirs= 23259 while :; do 23260 case $as_dir in #( 23261 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23262 *) as_qdir=$as_dir;; 23263 esac 23264 as_dirs="'$as_qdir' $as_dirs" 23265 as_dir=`$as_dirname -- "$as_dir" || 23266$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23267 X"$as_dir" : 'X\(//\)[^/]' \| \ 23268 X"$as_dir" : 'X\(//\)$' \| \ 23269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23270echo X"$as_dir" | 23271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23272 s//\1/ 23273 q 23274 } 23275 /^X\(\/\/\)[^/].*/{ 23276 s//\1/ 23277 q 23278 } 23279 /^X\(\/\/\)$/{ 23280 s//\1/ 23281 q 23282 } 23283 /^X\(\/\).*/{ 23284 s//\1/ 23285 q 23286 } 23287 s/.*/./; q'` 23288 test -d "$as_dir" && break 23289 done 23290 test -z "$as_dirs" || eval "mkdir $as_dirs" 23291 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23292echo "$as_me: error: cannot create directory $as_dir" >&2;} 23293 { (exit 1); exit 1; }; }; } 23294 ac_builddir=. 23295 23296case "$ac_dir" in 23297.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23298*) 23299 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23300 # A ".." for each directory in $ac_dir_suffix. 23301 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23302 case $ac_top_builddir_sub in 23303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23305 esac ;; 23306esac 23307ac_abs_top_builddir=$ac_pwd 23308ac_abs_builddir=$ac_pwd$ac_dir_suffix 23309# for backward compatibility: 23310ac_top_builddir=$ac_top_build_prefix 23311 23312case $srcdir in 23313 .) # We are building in place. 23314 ac_srcdir=. 23315 ac_top_srcdir=$ac_top_builddir_sub 23316 ac_abs_top_srcdir=$ac_pwd ;; 23317 [\\/]* | ?:[\\/]* ) # Absolute name. 23318 ac_srcdir=$srcdir$ac_dir_suffix; 23319 ac_top_srcdir=$srcdir 23320 ac_abs_top_srcdir=$srcdir ;; 23321 *) # Relative name. 23322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23323 ac_top_srcdir=$ac_top_build_prefix$srcdir 23324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23325esac 23326ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23327 23328 23329 case $ac_mode in 23330 :F) 23331 # 23332 # CONFIG_FILE 23333 # 23334 23335 case $INSTALL in 23336 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23337 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23338 esac 23339 ac_MKDIR_P=$MKDIR_P 23340 case $MKDIR_P in 23341 [\\/$]* | ?:[\\/]* ) ;; 23342 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23343 esac 23344_ACEOF 23345 23346cat >>$CONFIG_STATUS <<\_ACEOF 23347# If the template does not know about datarootdir, expand it. 23348# FIXME: This hack should be removed a few years after 2.60. 23349ac_datarootdir_hack=; ac_datarootdir_seen= 23350 23351case `sed -n '/datarootdir/ { 23352 p 23353 q 23354} 23355/@datadir@/p 23356/@docdir@/p 23357/@infodir@/p 23358/@localedir@/p 23359/@mandir@/p 23360' $ac_file_inputs` in 23361*datarootdir*) ac_datarootdir_seen=yes;; 23362*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23363 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23364echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23365_ACEOF 23366cat >>$CONFIG_STATUS <<_ACEOF 23367 ac_datarootdir_hack=' 23368 s&@datadir@&$datadir&g 23369 s&@docdir@&$docdir&g 23370 s&@infodir@&$infodir&g 23371 s&@localedir@&$localedir&g 23372 s&@mandir@&$mandir&g 23373 s&\\\${datarootdir}&$datarootdir&g' ;; 23374esac 23375_ACEOF 23376 23377# Neutralize VPATH when `$srcdir' = `.'. 23378# Shell code in configure.ac might set extrasub. 23379# FIXME: do we really want to maintain this feature? 23380cat >>$CONFIG_STATUS <<_ACEOF 23381 sed "$ac_vpsub 23382$extrasub 23383_ACEOF 23384cat >>$CONFIG_STATUS <<\_ACEOF 23385:t 23386/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23387s&@configure_input@&$configure_input&;t t 23388s&@top_builddir@&$ac_top_builddir_sub&;t t 23389s&@srcdir@&$ac_srcdir&;t t 23390s&@abs_srcdir@&$ac_abs_srcdir&;t t 23391s&@top_srcdir@&$ac_top_srcdir&;t t 23392s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23393s&@builddir@&$ac_builddir&;t t 23394s&@abs_builddir@&$ac_abs_builddir&;t t 23395s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23396s&@INSTALL@&$ac_INSTALL&;t t 23397s&@MKDIR_P@&$ac_MKDIR_P&;t t 23398$ac_datarootdir_hack 23399" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 23400 23401test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23402 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23403 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23404 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23405which seems to be undefined. Please make sure it is defined." >&5 23406echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23407which seems to be undefined. Please make sure it is defined." >&2;} 23408 23409 rm -f "$tmp/stdin" 23410 case $ac_file in 23411 -) cat "$tmp/out"; rm -f "$tmp/out";; 23412 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23413 esac 23414 ;; 23415 :H) 23416 # 23417 # CONFIG_HEADER 23418 # 23419_ACEOF 23420 23421# Transform confdefs.h into a sed script `conftest.defines', that 23422# substitutes the proper values into config.h.in to produce config.h. 23423rm -f conftest.defines conftest.tail 23424# First, append a space to every undef/define line, to ease matching. 23425echo 's/$/ /' >conftest.defines 23426# Then, protect against being on the right side of a sed subst, or in 23427# an unquoted here document, in config.status. If some macros were 23428# called several times there might be several #defines for the same 23429# symbol, which is useless. But do not sort them, since the last 23430# AC_DEFINE must be honored. 23431ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23432# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23433# NAME is the cpp macro being defined, VALUE is the value it is being given. 23434# PARAMS is the parameter list in the macro definition--in most cases, it's 23435# just an empty string. 23436ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23437ac_dB='\\)[ (].*,\\1define\\2' 23438ac_dC=' ' 23439ac_dD=' ,' 23440 23441uniq confdefs.h | 23442 sed -n ' 23443 t rset 23444 :rset 23445 s/^[ ]*#[ ]*define[ ][ ]*// 23446 t ok 23447 d 23448 :ok 23449 s/[\\&,]/\\&/g 23450 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23451 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23452 ' >>conftest.defines 23453 23454# Remove the space that was appended to ease matching. 23455# Then replace #undef with comments. This is necessary, for 23456# example, in the case of _POSIX_SOURCE, which is predefined and required 23457# on some systems where configure will not decide to define it. 23458# (The regexp can be short, since the line contains either #define or #undef.) 23459echo 's/ $// 23460s,^[ #]*u.*,/* & */,' >>conftest.defines 23461 23462# Break up conftest.defines: 23463ac_max_sed_lines=50 23464 23465# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23466# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23467# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23468# et cetera. 23469ac_in='$ac_file_inputs' 23470ac_out='"$tmp/out1"' 23471ac_nxt='"$tmp/out2"' 23472 23473while : 23474do 23475 # Write a here document: 23476 cat >>$CONFIG_STATUS <<_ACEOF 23477 # First, check the format of the line: 23478 cat >"\$tmp/defines.sed" <<\\CEOF 23479/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23480/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23481b 23482:def 23483_ACEOF 23484 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23485 echo 'CEOF 23486 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23487 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23488 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23489 grep . conftest.tail >/dev/null || break 23490 rm -f conftest.defines 23491 mv conftest.tail conftest.defines 23492done 23493rm -f conftest.defines conftest.tail 23494 23495echo "ac_result=$ac_in" >>$CONFIG_STATUS 23496cat >>$CONFIG_STATUS <<\_ACEOF 23497 if test x"$ac_file" != x-; then 23498 echo "/* $configure_input */" >"$tmp/config.h" 23499 cat "$ac_result" >>"$tmp/config.h" 23500 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23501 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23502echo "$as_me: $ac_file is unchanged" >&6;} 23503 else 23504 rm -f $ac_file 23505 mv "$tmp/config.h" $ac_file 23506 fi 23507 else 23508 echo "/* $configure_input */" 23509 cat "$ac_result" 23510 fi 23511 rm -f "$tmp/out12" 23512# Compute $ac_file's index in $config_headers. 23513_am_stamp_count=1 23514for _am_header in $config_headers :; do 23515 case $_am_header in 23516 $ac_file | $ac_file:* ) 23517 break ;; 23518 * ) 23519 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23520 esac 23521done 23522echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 23523$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23524 X$ac_file : 'X\(//\)[^/]' \| \ 23525 X$ac_file : 'X\(//\)$' \| \ 23526 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 23527echo X$ac_file | 23528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23529 s//\1/ 23530 q 23531 } 23532 /^X\(\/\/\)[^/].*/{ 23533 s//\1/ 23534 q 23535 } 23536 /^X\(\/\/\)$/{ 23537 s//\1/ 23538 q 23539 } 23540 /^X\(\/\).*/{ 23541 s//\1/ 23542 q 23543 } 23544 s/.*/./; q'`/stamp-h$_am_stamp_count 23545 ;; 23546 23547 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23548echo "$as_me: executing $ac_file commands" >&6;} 23549 ;; 23550 esac 23551 23552 23553 case $ac_file$ac_mode in 23554 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23555 # Strip MF so we end up with the name of the file. 23556 mf=`echo "$mf" | sed -e 's/:.*$//'` 23557 # Check whether this is an Automake generated Makefile or not. 23558 # We used to match only the files named `Makefile.in', but 23559 # some people rename them; so instead we look at the file content. 23560 # Grep'ing the first line is not enough: some people post-process 23561 # each Makefile.in and add a new line on top of each file to say so. 23562 # Grep'ing the whole file is not good either: AIX grep has a line 23563 # limit of 2048, but all sed's we know have understand at least 4000. 23564 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 23565 dirpart=`$as_dirname -- "$mf" || 23566$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23567 X"$mf" : 'X\(//\)[^/]' \| \ 23568 X"$mf" : 'X\(//\)$' \| \ 23569 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23570echo X"$mf" | 23571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23572 s//\1/ 23573 q 23574 } 23575 /^X\(\/\/\)[^/].*/{ 23576 s//\1/ 23577 q 23578 } 23579 /^X\(\/\/\)$/{ 23580 s//\1/ 23581 q 23582 } 23583 /^X\(\/\).*/{ 23584 s//\1/ 23585 q 23586 } 23587 s/.*/./; q'` 23588 else 23589 continue 23590 fi 23591 # Extract the definition of DEPDIR, am__include, and am__quote 23592 # from the Makefile without running `make'. 23593 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23594 test -z "$DEPDIR" && continue 23595 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23596 test -z "am__include" && continue 23597 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23598 # When using ansi2knr, U may be empty or an underscore; expand it 23599 U=`sed -n 's/^U = //p' < "$mf"` 23600 # Find all dependency output files, they are included files with 23601 # $(DEPDIR) in their names. We invoke sed twice because it is the 23602 # simplest approach to changing $(DEPDIR) to its actual value in the 23603 # expansion. 23604 for file in `sed -n " 23605 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23606 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23607 # Make sure the directory exists. 23608 test -f "$dirpart/$file" && continue 23609 fdir=`$as_dirname -- "$file" || 23610$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23611 X"$file" : 'X\(//\)[^/]' \| \ 23612 X"$file" : 'X\(//\)$' \| \ 23613 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23614echo X"$file" | 23615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23616 s//\1/ 23617 q 23618 } 23619 /^X\(\/\/\)[^/].*/{ 23620 s//\1/ 23621 q 23622 } 23623 /^X\(\/\/\)$/{ 23624 s//\1/ 23625 q 23626 } 23627 /^X\(\/\).*/{ 23628 s//\1/ 23629 q 23630 } 23631 s/.*/./; q'` 23632 { as_dir=$dirpart/$fdir 23633 case $as_dir in #( 23634 -*) as_dir=./$as_dir;; 23635 esac 23636 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23637 as_dirs= 23638 while :; do 23639 case $as_dir in #( 23640 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23641 *) as_qdir=$as_dir;; 23642 esac 23643 as_dirs="'$as_qdir' $as_dirs" 23644 as_dir=`$as_dirname -- "$as_dir" || 23645$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23646 X"$as_dir" : 'X\(//\)[^/]' \| \ 23647 X"$as_dir" : 'X\(//\)$' \| \ 23648 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23649echo X"$as_dir" | 23650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23651 s//\1/ 23652 q 23653 } 23654 /^X\(\/\/\)[^/].*/{ 23655 s//\1/ 23656 q 23657 } 23658 /^X\(\/\/\)$/{ 23659 s//\1/ 23660 q 23661 } 23662 /^X\(\/\).*/{ 23663 s//\1/ 23664 q 23665 } 23666 s/.*/./; q'` 23667 test -d "$as_dir" && break 23668 done 23669 test -z "$as_dirs" || eval "mkdir $as_dirs" 23670 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23671echo "$as_me: error: cannot create directory $as_dir" >&2;} 23672 { (exit 1); exit 1; }; }; } 23673 # echo "creating $dirpart/$file" 23674 echo '# dummy' > "$dirpart/$file" 23675 done 23676done 23677 ;; 23678 "Makefile":F) 23679 sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp 23680 mv $ac_file.tmp $ac_file 23681 23682 23683 sed -e '/@rm -f \$''@/d' < $ac_file > $ac_file.tmp 23684 mv $ac_file.tmp $ac_file 23685 ;; 23686 23687 esac 23688done # for ac_tag 23689 23690 23691{ (exit 0); exit 0; } 23692_ACEOF 23693chmod +x $CONFIG_STATUS 23694ac_clean_files=$ac_clean_files_save 23695 23696 23697# configure is writing to config.log, and then calls config.status. 23698# config.status does its own redirection, appending to config.log. 23699# Unfortunately, on DOS this fails, as config.log is still kept open 23700# by configure, so config.status won't be able to write to it; its 23701# output is simply discarded. So we exec the FD to /dev/null, 23702# effectively closing config.log, so it can be properly (re)opened and 23703# appended to by config.status. When coming back to configure, we 23704# need to make the FD available again. 23705if test "$no_create" != yes; then 23706 ac_cs_success=: 23707 ac_config_status_args= 23708 test "$silent" = yes && 23709 ac_config_status_args="$ac_config_status_args --quiet" 23710 exec 5>/dev/null 23711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23712 exec 5>>config.log 23713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23714 # would make configure fail if this is the last instruction. 23715 $ac_cs_success || { (exit 1); exit 1; } 23716fi 23717 23718